From 30cd13eae4c8ad133dd4582cf1c11d5181052ea5 Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Thu, 9 Jan 2025 15:25:30 +0200 Subject: [PATCH] bug fix --- indigo_app/js/components/DocumentTOCView.vue | 2 +- indigo_app/static/javascript/indigo-app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indigo_app/js/components/DocumentTOCView.vue b/indigo_app/js/components/DocumentTOCView.vue index bc91d0ccc..e18e5bf49 100644 --- a/indigo_app/js/components/DocumentTOCView.vue +++ b/indigo_app/js/components/DocumentTOCView.vue @@ -232,7 +232,7 @@ export default { onTitleClick (e) { e.detail.preventDefault(); - if (!Indigo.view.bodyEditorView || Indigo.view.bodyEditorView.canCancelEdits()) { + if (!Indigo.view.sourceEditorView || Indigo.view.sourceEditorView.confirmAndDiscardChanges()) { this.selectItem(e.target.item.index); } } diff --git a/indigo_app/static/javascript/indigo-app.js b/indigo_app/static/javascript/indigo-app.js index 61dd3b168..75fca69df 100644 --- a/indigo_app/static/javascript/indigo-app.js +++ b/indigo_app/static/javascript/indigo-app.js @@ -1,2 +1,2 @@ /*! For license information please see indigo-app.js.LICENSE.txt */ -(()=>{var __webpack_modules__={945:(t,e,n)=>{var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,r=function(){function t(){this.fetch=!1,this.DOMException=o.DOMException}return t.prototype=o,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==n&&n,o="URLSearchParams"in n,r="Symbol"in n&&"iterator"in Symbol,a="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in n,s="ArrayBuffer"in n;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function p(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function g(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:a&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&a&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var t,e,n,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,n=m(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),o=0;o-1?o:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},y.call(k.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];w.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(t,o){return new Promise((function(r,i){var l=new k(t,o);if(l.signal&&l.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}c.onload=function(){var t,e,n={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();e.append(o,r)}})),e)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){r(new w(o,n))}),0)},c.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){i(new e.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":s&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof f?l.headers.forEach((function(t,e){c.setRequestHeader(e,t)})):Object.getOwnPropertyNames(o.headers).forEach((function(t){c.setRequestHeader(t,p(o.headers[t]))})),l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}_.polyfill=!0,n.fetch||(n.fetch=_,n.Headers=f,n.Request=k,n.Response=w),e.Headers=f,e.Request=k,e.Response=w,e.fetch=_}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=o.fetch?o:r;(e=a.fetch).default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e},2:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(314),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const a=r},354:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(314),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,"\n.toc-controller-wrapper {\n padding-bottom: 50px;\n}\n.toc-controller-wrapper .popover {\n max-width: 200px !important;\n}\n",""]);const a=r},163:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(314),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,"\nla-toc-item input[type=checkbox] {\n margin-right: 0.25rem;\n}\nla-toc-item label {\n margin-bottom: 0.1rem;\n}\n",""]);const a=r},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var a=0;a{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var htmx=function(){const htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(t,e){return getInputValues(t,e||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0},parseInterval:null,_:null,version:"2.0.2"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;const internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map((function(t){return"[hx-"+t+"], [data-hx-"+t+"]"})).join(", "),HEAD_TAG_REGEX=makeTagRegEx("head");function makeTagRegEx(t,e=!1){return new RegExp(`<${t}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${t}>`,e?"gim":"im")}function parseInterval(t){if(null==t)return;let e=NaN;return e="ms"==t.slice(-2)?parseFloat(t.slice(0,-2)):"s"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1)):"m"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1))*60:parseFloat(t),isNaN(e)?void 0:e}function getRawAttribute(t,e){return t instanceof Element&&t.getAttribute(e)}function hasAttribute(t,e){return!!t.hasAttribute&&(t.hasAttribute(e)||t.hasAttribute("data-"+e))}function getAttributeValue(t,e){return getRawAttribute(t,e)||getRawAttribute(t,"data-"+e)}function parentElt(t){const e=t.parentElement;return!e&&t.parentNode instanceof ShadowRoot?t.parentNode:e}function getDocument(){return document}function getRootNode(t,e){return t.getRootNode?t.getRootNode({composed:e}):getDocument()}function getClosestMatch(t,e){for(;t&&!e(t);)t=parentElt(t);return t||null}function getAttributeValueWithDisinheritance(t,e,n){const o=getAttributeValue(e,n),r=getAttributeValue(e,"hx-disinherit");var a=getAttributeValue(e,"hx-inherit");if(t!==e){if(htmx.config.disableInheritance)return a&&("*"===a||a.split(" ").indexOf(n)>=0)?o:null;if(r&&("*"===r||r.split(" ").indexOf(n)>=0))return"unset"}return o}function getClosestAttributeValue(t,e){let n=null;if(getClosestMatch(t,(function(o){return!!(n=getAttributeValueWithDisinheritance(t,asElement(o),e))})),"unset"!==n)return n}function matches(t,e){const n=t instanceof Element&&(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function getStartTag(t){const e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(t);return e?e[1].toLowerCase():""}function parseHTML(t){return(new DOMParser).parseFromString(t,"text/html")}function takeChildrenFor(t,e){for(;e.childNodes.length>0;)t.append(e.childNodes[0])}function duplicateScript(t){const e=getDocument().createElement("script");return forEach(t.attributes,(function(t){e.setAttribute(t.name,t.value)})),e.textContent=t.textContent,e.async=!1,htmx.config.inlineScriptNonce&&(e.nonce=htmx.config.inlineScriptNonce),e}function isJavaScriptScriptNode(t){return t.matches("script")&&("text/javascript"===t.type||"module"===t.type||""===t.type)}function normalizeScriptTags(t){Array.from(t.querySelectorAll("script")).forEach((t=>{if(isJavaScriptScriptNode(t)){const e=duplicateScript(t),n=t.parentNode;try{n.insertBefore(e,t)}catch(t){logError(t)}finally{t.remove()}}}))}function makeFragment(t){const e=t.replace(HEAD_TAG_REGEX,""),n=getStartTag(e);let o;if("html"===n){o=new DocumentFragment;const e=parseHTML(t);takeChildrenFor(o,e.body),o.title=e.title}else if("body"===n){o=new DocumentFragment;const t=parseHTML(e);takeChildrenFor(o,t.body),o.title=t.title}else{const t=parseHTML('");o=t.querySelector("template").content,o.title=t.title;var r=o.querySelector("title");r&&r.parentNode===o&&(r.remove(),o.title=r.innerText)}return o&&(htmx.config.allowScriptTags?normalizeScriptTags(o):o.querySelectorAll("script").forEach((t=>t.remove()))),o}function maybeCall(t){t&&t()}function isType(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function isFunction(t){return"function"==typeof t}function isRawObject(t){return isType(t,"Object")}function getInternalData(t){const e="htmx-internal-data";let n=t[e];return n||(n=t[e]={}),n}function toArray(t){const e=[];if(t)for(let n=0;n=0}function bodyContains(t){const e=t.getRootNode&&t.getRootNode();return e&&e instanceof window.ShadowRoot?getDocument().body.contains(e.host):getDocument().body.contains(t)}function splitOnWhitespace(t){return t.trim().split(/\s+/)}function mergeObjects(t,e){for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function parseJSON(t){try{return JSON.parse(t)}catch(t){return logError(t),null}}function canAccessLocalStorage(){const t="htmx:localStorageTest";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}function normalizePath(t){try{const e=new URL(t);return e&&(t=e.pathname+e.search),/^\/$/.test(t)||(t=t.replace(/\/+$/,"")),t}catch(e){return t}}function internalEval(str){return maybeEval(getDocument().body,(function(){return eval(str)}))}function onLoadHelper(t){return htmx.on("htmx:load",(function(e){t(e.detail.elt)}))}function logAll(){htmx.logger=function(t,e,n){console&&console.log(e,t,n)}}function logNone(){htmx.logger=null}function find(t,e){return"string"!=typeof t?t.querySelector(e):find(getDocument(),t)}function findAll(t,e){return"string"!=typeof t?t.querySelectorAll(e):findAll(getDocument(),t)}function getWindow(){return window}function removeElement(t,e){t=resolveTarget(t),e?getWindow().setTimeout((function(){removeElement(t),t=null}),e):parentElt(t).removeChild(t)}function asElement(t){return t instanceof Element?t:null}function asHtmlElement(t){return t instanceof HTMLElement?t:null}function asString(t){return"string"==typeof t?t:null}function asParentNode(t){return t instanceof Element||t instanceof Document||t instanceof DocumentFragment?t:null}function addClassToElement(t,e,n){(t=asElement(resolveTarget(t)))&&(n?getWindow().setTimeout((function(){addClassToElement(t,e),t=null}),n):t.classList&&t.classList.add(e))}function removeClassFromElement(t,e,n){let o=asElement(resolveTarget(t));o&&(n?getWindow().setTimeout((function(){removeClassFromElement(o,e),o=null}),n):o.classList&&(o.classList.remove(e),0===o.classList.length&&o.removeAttribute("class")))}function toggleClassOnElement(t,e){(t=resolveTarget(t)).classList.toggle(e)}function takeClassForElement(t,e){forEach((t=resolveTarget(t)).parentElement.children,(function(t){removeClassFromElement(t,e)})),addClassToElement(asElement(t),e)}function closest(t,e){if((t=asElement(resolveTarget(t)))&&t.closest)return t.closest(e);do{if(null==t||matches(t,e))return t}while(t=t&&asElement(parentElt(t)));return null}function startsWith(t,e){return t.substring(0,e.length)===e}function endsWith(t,e){return t.substring(t.length-e.length)===e}function normalizeSelector(t){const e=t.trim();return startsWith(e,"<")&&endsWith(e,"/>")?e.substring(1,e.length-2):e}function querySelectorAllExt(t,e,n){return t=resolveTarget(t),0===e.indexOf("closest ")?[closest(asElement(t),normalizeSelector(e.substr(8)))]:0===e.indexOf("find ")?[find(asParentNode(t),normalizeSelector(e.substr(5)))]:"next"===e?[asElement(t).nextElementSibling]:0===e.indexOf("next ")?[scanForwardQuery(t,normalizeSelector(e.substr(5)),!!n)]:"previous"===e?[asElement(t).previousElementSibling]:0===e.indexOf("previous ")?[scanBackwardsQuery(t,normalizeSelector(e.substr(9)),!!n)]:"document"===e?[document]:"window"===e?[window]:"body"===e?[document.body]:"root"===e?[getRootNode(t,!!n)]:0===e.indexOf("global ")?querySelectorAllExt(t,e.slice(7),!0):toArray(asParentNode(getRootNode(t,!!n)).querySelectorAll(normalizeSelector(e)))}var scanForwardQuery=function(t,e,n){const o=asParentNode(getRootNode(t,n)).querySelectorAll(e);for(let e=0;e=0;e--){const n=o[e];if(n.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function querySelectorExt(t,e){return"string"!=typeof t?querySelectorAllExt(t,e)[0]:querySelectorAllExt(getDocument().body,t)[0]}function resolveTarget(t,e){return"string"==typeof t?find(asParentNode(e)||document,t):t}function processEventArgs(t,e,n){return isFunction(e)?{target:getDocument().body,event:asString(t),listener:e}:{target:resolveTarget(t),event:asString(e),listener:n}}function addEventListenerImpl(t,e,n){return ready((function(){const o=processEventArgs(t,e,n);o.target.addEventListener(o.event,o.listener)})),isFunction(e)?e:n}function removeEventListenerImpl(t,e,n){return ready((function(){const o=processEventArgs(t,e,n);o.target.removeEventListener(o.event,o.listener)})),isFunction(e)?e:n}const DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(t,e){const n=getClosestAttributeValue(t,e);if(n){if("this"===n)return[findThisElement(t,e)];{const o=querySelectorAllExt(t,n);return 0===o.length?(logError('The selector "'+n+'" on '+e+" returned no matches!"),[DUMMY_ELT]):o}}}function findThisElement(t,e){return asElement(getClosestMatch(t,(function(t){return null!=getAttributeValue(asElement(t),e)})))}function getTarget(t){const e=getClosestAttributeValue(t,"hx-target");return e?"this"===e?findThisElement(t,"hx-target"):querySelectorExt(t,e):getInternalData(t).boosted?getDocument().body:t}function shouldSettleAttribute(t){const e=htmx.config.attributesToSettle;for(let n=0;n0?(r=t.substr(0,t.indexOf(":")),o=t.substr(t.indexOf(":")+1,t.length)):r=t);const a=getDocument().querySelectorAll(o);return a?(forEach(a,(function(t){let o;const a=e.cloneNode(!0);o=getDocument().createDocumentFragment(),o.appendChild(a),isInlineSwap(r,t)||(o=asParentNode(a));const i={shouldSwap:!0,target:t,fragment:o};triggerEvent(t,"htmx:oobBeforeSwap",i)&&(t=i.target,i.shouldSwap&&swapWithStyle(r,t,t,o,n),forEach(n.elts,(function(t){triggerEvent(t,"htmx:oobAfterSwap",i)})))})),e.parentNode.removeChild(e)):(e.parentNode.removeChild(e),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:e})),t}function handlePreservedElements(t){forEach(findAll(t,"[hx-preserve], [data-hx-preserve]"),(function(t){const e=getAttributeValue(t,"id"),n=getDocument().getElementById(e);null!=n&&t.parentNode.replaceChild(n,t)}))}function handleAttributes(t,e,n){forEach(e.querySelectorAll("[id]"),(function(e){const o=getRawAttribute(e,"id");if(o&&o.length>0){const r=o.replace("'","\\'"),a=e.tagName.replace(":","\\:"),i=asParentNode(t),s=i&&i.querySelector(a+"[id='"+r+"']");if(s&&s!==i){const t=e.cloneNode();cloneAttributes(e,s),n.tasks.push((function(){cloneAttributes(e,t)}))}}}))}function makeAjaxLoadTask(t){return function(){removeClassFromElement(t,htmx.config.addedClass),processNode(asElement(t)),processFocus(asParentNode(t)),triggerEvent(t,"htmx:load")}}function processFocus(t){const e="[autofocus]",n=asHtmlElement(matches(t,e)?t:t.querySelector(e));null!=n&&n.focus()}function insertNodesBefore(t,e,n,o){for(handleAttributes(t,n,o);n.childNodes.length>0;){const r=n.firstChild;addClassToElement(asElement(r),htmx.config.addedClass),t.insertBefore(r,e),r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.COMMENT_NODE&&o.tasks.push(makeAjaxLoadTask(r))}}function stringHash(t,e){let n=0;for(;n0}function swap(t,e,n,o){o||(o={}),t=resolveTarget(t);const r=document.activeElement;let a={};try{a={elt:r,start:r?r.selectionStart:null,end:r?r.selectionEnd:null}}catch(t){}const i=makeSettleInfo(t);if("textContent"===n.swapStyle)t.textContent=e;else{let r=makeFragment(e);if(i.title=r.title,o.selectOOB){const t=o.selectOOB.split(",");for(let e=0;e0?getWindow().setTimeout(s,n.settleDelay):s()}function handleTriggerHeader(t,e,n){const o=t.getResponseHeader(e);if(0===o.indexOf("{")){const t=parseJSON(o);for(const e in t)if(t.hasOwnProperty(e)){let o=t[e];isRawObject(o)?n=void 0!==o.target?o.target:n:o={value:o},triggerEvent(n,e,o)}}else{const t=o.split(",");for(let e=0;e0;){const i=e[0];if("]"===i){if(o--,0===o){null===a&&(r+="true"),e.shift(),r+=")})";try{const e=maybeEval(t,(function(){return Function(r)()}),(function(){return!0}));return e.source=r,e}catch(t){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:t,source:r}),null}}}else"["===i&&o++;isPossibleRelativeReference(i,a,n)?r+="(("+n+"."+i+") ? ("+n+"."+i+") : (window."+i+"))":r+=i,a=e.shift()}}}function consumeUntil(t,e){let n="";for(;t.length>0&&!e.test(t[0]);)n+=t.shift();return n}function consumeCSSSelector(t){let e;return t.length>0&&COMBINED_SELECTOR_START.test(t[0])?(t.shift(),e=consumeUntil(t,COMBINED_SELECTOR_END).trim(),t.shift()):e=consumeUntil(t,WHITESPACE_OR_COMMA),e}const INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(t,e,n){const o=[],r=tokenizeString(e);do{consumeUntil(r,NOT_WHITESPACE);const e=r.length,n=consumeUntil(r,/[,\[\s]/);if(""!==n)if("every"===n){const e={trigger:"every"};consumeUntil(r,NOT_WHITESPACE),e.pollInterval=parseInterval(consumeUntil(r,/[,\[\s]/)),consumeUntil(r,NOT_WHITESPACE),(a=maybeGenerateConditional(t,r,"event"))&&(e.eventFilter=a),o.push(e)}else{const e={trigger:n};var a;for((a=maybeGenerateConditional(t,r,"event"))&&(e.eventFilter=a);r.length>0&&","!==r[0];){consumeUntil(r,NOT_WHITESPACE);const n=r.shift();if("changed"===n)e.changed=!0;else if("once"===n)e.once=!0;else if("consume"===n)e.consume=!0;else if("delay"===n&&":"===r[0])r.shift(),e.delay=parseInterval(consumeUntil(r,WHITESPACE_OR_COMMA));else if("from"===n&&":"===r[0]){if(r.shift(),COMBINED_SELECTOR_START.test(r[0]))var i=consumeCSSSelector(r);else if("closest"===(i=consumeUntil(r,WHITESPACE_OR_COMMA))||"find"===i||"next"===i||"previous"===i){r.shift();const t=consumeCSSSelector(r);t.length>0&&(i+=" "+t)}e.from=i}else"target"===n&&":"===r[0]?(r.shift(),e.target=consumeCSSSelector(r)):"throttle"===n&&":"===r[0]?(r.shift(),e.throttle=parseInterval(consumeUntil(r,WHITESPACE_OR_COMMA))):"queue"===n&&":"===r[0]?(r.shift(),e.queue=consumeUntil(r,WHITESPACE_OR_COMMA)):"root"===n&&":"===r[0]?(r.shift(),e[n]=consumeCSSSelector(r)):"threshold"===n&&":"===r[0]?(r.shift(),e[n]=consumeUntil(r,WHITESPACE_OR_COMMA)):triggerErrorEvent(t,"htmx:syntax:error",{token:r.shift()})}o.push(e)}r.length===e&&triggerErrorEvent(t,"htmx:syntax:error",{token:r.shift()}),consumeUntil(r,NOT_WHITESPACE)}while(","===r[0]&&r.shift());return n&&(n[e]=o),o}function getTriggerSpecs(t){const e=getAttributeValue(t,"hx-trigger");let n=[];if(e){const o=htmx.config.triggerSpecsCache;n=o&&o[e]||parseAndCacheTrigger(t,e,o)}return n.length>0?n:matches(t,"form")?[{trigger:"submit"}]:matches(t,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(t,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(t){getInternalData(t).cancelled=!0}function processPolling(t,e,n){const o=getInternalData(t);o.timeout=getWindow().setTimeout((function(){bodyContains(t)&&!0!==o.cancelled&&(maybeFilterEvent(n,t,makeEvent("hx:poll:trigger",{triggerSpec:n,target:t}))||e(t),processPolling(t,e,n))}),n.pollInterval)}function isLocalLink(t){return location.hostname===t.hostname&&getRawAttribute(t,"href")&&0!==getRawAttribute(t,"href").indexOf("#")}function eltIsDisabled(t){return closest(t,htmx.config.disableSelector)}function boostElement(t,e,n){if(t instanceof HTMLAnchorElement&&isLocalLink(t)&&(""===t.target||"_self"===t.target)||"FORM"===t.tagName&&"dialog"!==String(getRawAttribute(t,"method")).toLowerCase()){let o,r;if(e.boosted=!0,"A"===t.tagName)o="get",r=getRawAttribute(t,"href");else{const e=getRawAttribute(t,"method");o=e?e.toLowerCase():"get",r=getRawAttribute(t,"action")}n.forEach((function(n){addEventListener(t,(function(t,e){const n=asElement(t);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(o,r,n,e)}),e,n,!0)}))}}function shouldCancel(t,e){const n=asElement(e);if(!n)return!1;if("submit"===t.type||"click"===t.type){if("FORM"===n.tagName)return!0;if(matches(n,'input[type="submit"], button')&&null!==closest(n,"form"))return!0;if(n instanceof HTMLAnchorElement&&n.href&&("#"===n.getAttribute("href")||0!==n.getAttribute("href").indexOf("#")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(t,e){return getInternalData(t).boosted&&t instanceof HTMLAnchorElement&&"click"===e.type&&(e.ctrlKey||e.metaKey)}function maybeFilterEvent(t,e,n){const o=t.eventFilter;if(o)try{return!0!==o.call(e,n)}catch(t){const e=o.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:t,source:e}),!0}return!1}function addEventListener(t,e,n,o,r){const a=getInternalData(t);let i;i=o.from?querySelectorAllExt(t,o.from):[t],o.changed&&i.forEach((function(t){getInternalData(t).lastValue=t.value})),forEach(i,(function(i){const s=function(n){if(!bodyContains(t))return void i.removeEventListener(o.trigger,s);if(ignoreBoostedAnchorCtrlClick(t,n))return;if((r||shouldCancel(n,t))&&n.preventDefault(),maybeFilterEvent(o,t,n))return;const l=getInternalData(n);if(l.triggerSpec=o,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(t)<0){if(l.handledFor.push(t),o.consume&&n.stopPropagation(),o.target&&n.target&&!matches(asElement(n.target),o.target))return;if(o.once){if(a.triggeredOnce)return;a.triggeredOnce=!0}if(o.changed){const t=getInternalData(i),e=i.value;if(t.lastValue===e)return;t.lastValue=e}if(a.delayed&&clearTimeout(a.delayed),a.throttle)return;o.throttle>0?a.throttle||(triggerEvent(t,"htmx:trigger"),e(t,n),a.throttle=getWindow().setTimeout((function(){a.throttle=null}),o.throttle)):o.delay>0?a.delayed=getWindow().setTimeout((function(){triggerEvent(t,"htmx:trigger"),e(t,n)}),o.delay):(triggerEvent(t,"htmx:trigger"),e(t,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:o.trigger,listener:s,on:i}),i.addEventListener(o.trigger,s)}))}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),setInterval((function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),(function(t){maybeReveal(t)})))}),200))}function maybeReveal(t){!hasAttribute(t,"data-hx-revealed")&&isScrolledIntoView(t)&&(t.setAttribute("data-hx-revealed","true"),getInternalData(t).initHash?triggerEvent(t,"revealed"):t.addEventListener("htmx:afterProcessNode",(function(){triggerEvent(t,"revealed")}),{once:!0}))}function loadImmediately(t,e,n,o){const r=function(){n.loaded||(n.loaded=!0,e(t))};o>0?getWindow().setTimeout(r,o):r()}function processVerbs(t,e,n){let o=!1;return forEach(VERBS,(function(r){if(hasAttribute(t,"hx-"+r)){const a=getAttributeValue(t,"hx-"+r);o=!0,e.path=a,e.verb=r,n.forEach((function(n){addTriggerHandler(t,n,e,(function(t,e){const n=asElement(t);closest(n,htmx.config.disableSelector)?cleanUpElement(n):issueAjaxRequest(r,a,n,e)}))}))}})),o}function addTriggerHandler(t,e,n,o){if("revealed"===e.trigger)initScrollHandler(),addEventListener(t,o,n,e),maybeReveal(asElement(t));else if("intersect"===e.trigger){const r={};e.root&&(r.root=querySelectorExt(t,e.root)),e.threshold&&(r.threshold=parseFloat(e.threshold)),new IntersectionObserver((function(e){for(let n=0;n0?(n.polling=!0,processPolling(asElement(t),o,e)):addEventListener(t,o,n,e)}function shouldProcessHxOn(t){const e=asElement(t);if(!e)return!1;const n=e.attributes;for(let t=0;t", "+t)).join(""))}return[]}function maybeSetLastButtonClicked(t){const e=closest(asElement(t.target),"button, input[type='submit']"),n=getRelatedFormData(t);n&&(n.lastButtonClicked=e)}function maybeUnsetLastButtonClicked(t){const e=getRelatedFormData(t);e&&(e.lastButtonClicked=null)}function getRelatedFormData(t){const e=closest(asElement(t.target),"button, input[type='submit']");if(!e)return;const n=resolveTarget("#"+getRawAttribute(e,"form"),e.getRootNode())||closest(e,"form");return n?getInternalData(n):void 0}function initButtonTracking(t){t.addEventListener("click",maybeSetLastButtonClicked),t.addEventListener("focusin",maybeSetLastButtonClicked),t.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(t,e,n){const o=getInternalData(t);let r;Array.isArray(o.onHandlers)||(o.onHandlers=[]);const a=function(e){maybeEval(t,(function(){eltIsDisabled(t)||(r||(r=new Function("event",n)),r.call(t,e))}))};t.addEventListener(e,a),o.onHandlers.push({event:e,listener:a})}function processHxOnWildcard(t){deInitOnHandlers(t);for(let e=0;ehtmx.config.historyCacheSize;)a.shift();for(;a.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(a));break}catch(t){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:t,cache:a}),a.shift()}}function getCachedHistory(t){if(!canAccessLocalStorage())return null;t=normalizePath(t);const e=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(let n=0;n=200&&this.status<400){triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",n);const e=makeFragment(this.response),o=e.querySelector("[hx-history-elt],[data-hx-history-elt]")||e,r=getHistoryElement(),a=makeSettleInfo(r);handleTitle(e.title),swapInnerHTML(r,o,a),settleImmediately(a.tasks),currentPathForHistory=t,triggerEvent(getDocument().body,"htmx:historyRestore",{path:t,cacheMiss:!0,serverResponse:this.response})}else triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",n)},e.send()}function restoreHistory(t){saveCurrentPageToHistory();const e=getCachedHistory(t=t||location.pathname+location.search);if(e){const n=makeFragment(e.content),o=getHistoryElement(),r=makeSettleInfo(o);handleTitle(n.title),swapInnerHTML(o,n,r),settleImmediately(r.tasks),getWindow().setTimeout((function(){window.scrollTo(0,e.scroll)}),0),currentPathForHistory=t,triggerEvent(getDocument().body,"htmx:historyRestore",{path:t,item:e})}else htmx.config.refreshOnHistoryMiss?window.location.reload(!0):loadHistoryFromServer(t)}function addRequestIndicatorClasses(t){let e=findAttributeTargets(t,"hx-indicator");return null==e&&(e=[t]),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)+1,t.classList.add.call(t.classList,htmx.config.requestClass)})),e}function disableElements(t){let e=findAttributeTargets(t,"hx-disabled-elt");return null==e&&(e=[]),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)+1,t.setAttribute("disabled",""),t.setAttribute("data-disabled-by-htmx","")})),e}function removeRequestIndicators(t,e){forEach(t,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)-1,0===e.requestCount&&t.classList.remove.call(t.classList,htmx.config.requestClass)})),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)-1,0===e.requestCount&&(t.removeAttribute("disabled"),t.removeAttribute("data-disabled-by-htmx"))}))}function haveSeenNode(t,e){for(let n=0;ne.indexOf(t)<0)):o.filter((t=>t!==e)),n.delete(t),forEach(o,(e=>n.append(t,e)))}}function processInputValue(t,e,n,o,r){if(null!=o&&!haveSeenNode(t,o)){if(t.push(o),shouldInclude(o)){const t=getRawAttribute(o,"name");let a=o.value;o instanceof HTMLSelectElement&&o.multiple&&(a=toArray(o.querySelectorAll("option:checked")).map((function(t){return t.value}))),o instanceof HTMLInputElement&&o.files&&(a=toArray(o.files)),addValueToFormData(t,a,e),r&&validateElement(o,n)}o instanceof HTMLFormElement&&(forEach(o.elements,(function(o){t.indexOf(o)>=0?removeValueFromFormData(o.name,o.value,e):t.push(o),r&&validateElement(o,n)})),new FormData(o).forEach((function(t,n){t instanceof File&&""===t.name||addValueToFormData(n,t,e)})))}}function validateElement(t,e){const n=t;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(e.push({elt:n,message:n.validationMessage,validity:n.validity}),triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})))}function overrideFormData(t,e){for(const n of e.keys())t.delete(n);return e.forEach((function(e,n){t.append(n,e)})),t}function getInputValues(t,e){const n=[],o=new FormData,r=new FormData,a=[],i=getInternalData(t);i.lastButtonClicked&&!bodyContains(i.lastButtonClicked)&&(i.lastButtonClicked=null);let s=t instanceof HTMLFormElement&&!0!==t.noValidate||"true"===getAttributeValue(t,"hx-validate");if(i.lastButtonClicked&&(s=s&&!0!==i.lastButtonClicked.formNoValidate),"get"!==e&&processInputValue(n,r,a,closest(t,"form"),s),processInputValue(n,o,a,t,s),i.lastButtonClicked||"BUTTON"===t.tagName||"INPUT"===t.tagName&&"submit"===getRawAttribute(t,"type")){const e=i.lastButtonClicked||t;addValueToFormData(getRawAttribute(e,"name"),e.value,r)}return forEach(findAttributeTargets(t,"hx-include"),(function(t){processInputValue(n,o,a,asElement(t),s),matches(t,"form")||forEach(asParentNode(t).querySelectorAll(INPUT_SELECTOR),(function(t){processInputValue(n,o,a,t,s)}))})),overrideFormData(o,r),{errors:a,formData:o,values:formDataProxy(o)}}function appendParam(t,e,n){""!==t&&(t+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const o=encodeURIComponent(n);return t+(encodeURIComponent(e)+"=")+o}function urlEncode(t){t=formDataFromObject(t);let e="";return t.forEach((function(t,n){e=appendParam(e,n,t)})),e}function getHeaders(t,e,n){const o={"HX-Request":"true","HX-Trigger":getRawAttribute(t,"id"),"HX-Trigger-Name":getRawAttribute(t,"name"),"HX-Target":getAttributeValue(e,"id"),"HX-Current-URL":getDocument().location.href};return getValuesForElement(t,"hx-headers",!1,o),void 0!==n&&(o["HX-Prompt"]=n),getInternalData(t).boosted&&(o["HX-Boosted"]="true"),o}function filterValues(t,e){const n=getClosestAttributeValue(e,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return t;if(0===n.indexOf("not "))return forEach(n.substr(4).split(","),(function(e){e=e.trim(),t.delete(e)})),t;{const e=new FormData;return forEach(n.split(","),(function(n){n=n.trim(),t.has(n)&&t.getAll(n).forEach((function(t){e.append(n,t)}))})),e}}return t}function isAnchorLink(t){return!!getRawAttribute(t,"href")&&getRawAttribute(t,"href").indexOf("#")>=0}function getSwapSpecification(t,e){const n=e||getClosestAttributeValue(t,"hx-swap"),o={swapStyle:getInternalData(t).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(t).boosted&&!isAnchorLink(t)&&(o.show="top"),n){const t=splitOnWhitespace(n);if(t.length>0)for(let e=0;e0?a.join(":"):null;o.scroll=t,o.scrollTarget=r}else if(0===n.indexOf("show:")){var a;const t=(a=n.substr(5).split(":")).pop();r=a.length>0?a.join(":"):null,o.show=t,o.showTarget=r}else if(0===n.indexOf("focus-scroll:")){const t=n.substr(13);o.focusScroll="true"==t}else 0==e?o.swapStyle=n:logError("Unknown modifier in hx-swap: "+n)}}return o}function usesFormData(t){return"multipart/form-data"===getClosestAttributeValue(t,"hx-encoding")||matches(t,"form")&&"multipart/form-data"===getRawAttribute(t,"enctype")}function encodeParamsForBody(t,e,n){let o=null;return withExtensions(e,(function(r){null==o&&(o=r.encodeParameters(t,n,e))})),null!=o?o:usesFormData(e)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(t){return{tasks:[],elts:[t]}}function updateScrollState(t,e){const n=t[0],o=t[t.length-1];if(e.scroll){var r=null;e.scrollTarget&&(r=asElement(querySelectorExt(n,e.scrollTarget))),"top"===e.scroll&&(n||r)&&((r=r||n).scrollTop=0),"bottom"===e.scroll&&(o||r)&&((r=r||o).scrollTop=r.scrollHeight)}if(e.show){if(r=null,e.showTarget){let t=e.showTarget;"window"===e.showTarget&&(t="body"),r=asElement(querySelectorExt(n,t))}"top"===e.show&&(n||r)&&(r=r||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===e.show&&(o||r)&&(r=r||o).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(t,e,n,o){if(null==o&&(o={}),null==t)return o;const r=getAttributeValue(t,e);if(r){let e,a=r.trim(),i=n;if("unset"===a)return null;0===a.indexOf("javascript:")?(a=a.substr(11),i=!0):0===a.indexOf("js:")&&(a=a.substr(3),i=!0),0!==a.indexOf("{")&&(a="{"+a+"}"),e=i?maybeEval(t,(function(){return Function("return ("+a+")")()}),{}):parseJSON(a);for(const t in e)e.hasOwnProperty(t)&&null==o[t]&&(o[t]=e[t])}return getValuesForElement(asElement(parentElt(t)),e,n,o)}function maybeEval(t,e,n){return htmx.config.allowEval?e():(triggerErrorEvent(t,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(t,e){return getValuesForElement(t,"hx-vars",!0,e)}function getHXValsForElement(t,e){return getValuesForElement(t,"hx-vals",!1,e)}function getExpressionVars(t){return mergeObjects(getHXVarsForElement(t),getHXValsForElement(t))}function safelySetHeaderValue(t,e,n){if(null!==n)try{t.setRequestHeader(e,n)}catch(o){t.setRequestHeader(e,encodeURIComponent(n)),t.setRequestHeader(e+"-URI-AutoEncoded","true")}}function getPathFromResponse(t){if(t.responseURL&&"undefined"!=typeof URL)try{const e=new URL(t.responseURL);return e.pathname+e.search}catch(e){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:t.responseURL})}}function hasHeader(t,e){return e.test(t.getAllResponseHeaders())}function ajaxHelper(t,e,n){return t=t.toLowerCase(),n?n instanceof Element||"string"==typeof n?issueAjaxRequest(t,e,null,null,{targetOverride:resolveTarget(n),returnPromise:!0}):issueAjaxRequest(t,e,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:resolveTarget(n.target),swapOverride:n.swap,select:n.select,returnPromise:!0}):issueAjaxRequest(t,e,null,null,{returnPromise:!0})}function hierarchyForElt(t){const e=[];for(;t;)e.push(t),t=t.parentElement;return e}function verifyPath(t,e,n){let o,r;return"function"==typeof URL?(r=new URL(e,document.location.href),o=document.location.origin===r.origin):(r=e,o=startsWith(e,document.location.origin)),!(htmx.config.selfRequestsOnly&&!o)&&triggerEvent(t,"htmx:validateUrl",mergeObjects({url:r,sameHost:o},n))}function formDataFromObject(t){if(t instanceof FormData)return t;const e=new FormData;for(const n in t)t.hasOwnProperty(n)&&("function"==typeof t[n].forEach?t[n].forEach((function(t){e.append(n,t)})):"object"!=typeof t[n]||t[n]instanceof Blob?e.append(n,t[n]):e.append(n,JSON.stringify(t[n])));return e}function formDataArrayProxy(t,e,n){return new Proxy(n,{get:function(n,o){return"number"==typeof o?n[o]:"length"===o?n.length:"push"===o?function(o){n.push(o),t.append(e,o)}:"function"==typeof n[o]?function(){n[o].apply(n,arguments),t.delete(e),n.forEach((function(n){t.append(e,n)}))}:n[o]&&1===n[o].length?n[o][0]:n[o]},set:function(n,o,r){return n[o]=r,t.delete(e),n.forEach((function(n){t.append(e,n)})),!0}})}function formDataProxy(t){return new Proxy(t,{get:function(e,n){if("symbol"==typeof n)return Reflect.get(e,n);if("toJSON"===n)return()=>Object.fromEntries(t);if(n in e)return"function"==typeof e[n]?function(){return t[n].apply(t,arguments)}:e[n];const o=t.getAll(n);return 0===o.length?void 0:1===o.length?o[0]:formDataArrayProxy(e,n,o)},set:function(t,e,n){return"string"==typeof e&&(t.delete(e),"function"==typeof n.forEach?n.forEach((function(n){t.append(e,n)})):"object"!=typeof n||n instanceof Blob?t.append(e,n):t.append(e,JSON.stringify(n)),!0)},deleteProperty:function(t,e){return"string"==typeof e&&t.delete(e),!0},ownKeys:function(t){return Reflect.ownKeys(Object.fromEntries(t))},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(t),e)}})}function issueAjaxRequest(t,e,n,o,r,a){let i=null,s=null;if((r=null!=r?r:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(t,e){i=t,s=e}));null==n&&(n=getDocument().body);const c=r.handler||handleAjaxResponse,u=r.select||null;if(!bodyContains(n))return maybeCall(i),l;const p=r.targetOverride||asElement(getTarget(n));if(null==p||p==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getAttributeValue(n,"hx-target")}),maybeCall(s),l;let d=getInternalData(n);const f=d.lastButtonClicked;if(f){const n=getRawAttribute(f,"formaction");null!=n&&(e=n);const o=getRawAttribute(f,"formmethod");null!=o&&"dialog"!==o.toLowerCase()&&(t=o)}const h=getClosestAttributeValue(n,"hx-confirm");if(void 0===a&&!1===triggerEvent(n,"htmx:confirm",{target:p,elt:n,path:e,verb:t,triggeringEvent:o,etc:r,issueRequest:function(a){return issueAjaxRequest(t,e,n,o,r,!!a)},question:h}))return maybeCall(i),l;let m=n,g=getClosestAttributeValue(n,"hx-sync"),b=null,y=!1;if(g){const t=g.split(":"),e=t[0].trim();if(m="this"===e?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,e)),g=(t[1]||"drop").trim(),d=getInternalData(m),"drop"===g&&d.xhr&&!0!==d.abortable)return maybeCall(i),l;if("abort"===g){if(d.xhr)return maybeCall(i),l;y=!0}else"replace"===g?triggerEvent(m,"htmx:abort"):0===g.indexOf("queue")&&(b=(g.split(" ")[1]||"last").trim())}if(d.xhr){if(!d.abortable){if(null==b){if(o){const t=getInternalData(o);t&&t.triggerSpec&&t.triggerSpec.queue&&(b=t.triggerSpec.queue)}null==b&&(b="last")}return null==d.queuedRequests&&(d.queuedRequests=[]),"first"===b&&0===d.queuedRequests.length||"all"===b?d.queuedRequests.push((function(){issueAjaxRequest(t,e,n,o,r)})):"last"===b&&(d.queuedRequests=[],d.queuedRequests.push((function(){issueAjaxRequest(t,e,n,o,r)}))),maybeCall(i),l}triggerEvent(m,"htmx:abort")}const v=new XMLHttpRequest;d.xhr=v,d.abortable=y;const k=function(){d.xhr=null,d.abortable=!1,null!=d.queuedRequests&&d.queuedRequests.length>0&&d.queuedRequests.shift()()},x=getClosestAttributeValue(n,"hx-prompt");if(x){var w=prompt(x);if(null===w||!triggerEvent(n,"htmx:prompt",{prompt:w,target:p}))return maybeCall(i),k(),l}if(h&&!a&&!confirm(h))return maybeCall(i),k(),l;let E=getHeaders(n,p,w);"get"===t||usesFormData(n)||(E["Content-Type"]="application/x-www-form-urlencoded"),r.headers&&(E=mergeObjects(E,r.headers));const _=getInputValues(n,t);let O=_.errors;const S=_.formData;r.values&&overrideFormData(S,formDataFromObject(r.values));const T=overrideFormData(S,formDataFromObject(getExpressionVars(n)));let C=filterValues(T,n);htmx.config.getCacheBusterParam&&"get"===t&&C.set("org.htmx.cache-buster",getRawAttribute(p,"id")||"true"),null!=e&&""!==e||(e=getDocument().location.href);const $=getValuesForElement(n,"hx-request"),A=getInternalData(n).boosted;let N=htmx.config.methodsThatUseUrlParams.indexOf(t)>=0;const L={boosted:A,useUrlParams:N,formData:C,parameters:formDataProxy(C),unfilteredFormData:T,unfilteredParameters:formDataProxy(T),headers:E,target:p,verb:t,errors:O,withCredentials:r.credentials||$.credentials||htmx.config.withCredentials,timeout:r.timeout||$.timeout||htmx.config.timeout,path:e,triggeringEvent:o};if(!triggerEvent(n,"htmx:configRequest",L))return maybeCall(i),k(),l;if(e=L.path,t=L.verb,E=L.headers,C=formDataFromObject(L.parameters),O=L.errors,N=L.useUrlParams,O&&O.length>0)return triggerEvent(n,"htmx:validation:halted",L),maybeCall(i),k(),l;const D=e.split("#"),I=D[0],M=D[1];let j=e;if(N&&(j=I,!C.keys().next().done&&(j.indexOf("?")<0?j+="?":j+="&",j+=urlEncode(C),M&&(j+="#"+M))),!verifyPath(n,j,L))return triggerErrorEvent(n,"htmx:invalidPath",L),maybeCall(s),l;if(v.open(t.toUpperCase(),j,!0),v.overrideMimeType("text/html"),v.withCredentials=L.withCredentials,v.timeout=L.timeout,$.noHeaders);else for(const t in E)if(E.hasOwnProperty(t)){const e=E[t];safelySetHeaderValue(v,t,e)}const R={xhr:v,target:p,requestConfig:L,etc:r,boosted:A,select:u,pathInfo:{requestPath:e,finalRequestPath:j,responsePath:null,anchor:M}};if(v.onload=function(){try{const t=hierarchyForElt(n);if(R.pathInfo.responsePath=getPathFromResponse(v),c(n,R),!0!==R.keepIndicators&&removeRequestIndicators(P,H),triggerEvent(n,"htmx:afterRequest",R),triggerEvent(n,"htmx:afterOnLoad",R),!bodyContains(n)){let e=null;for(;t.length>0&&null==e;){const n=t.shift();bodyContains(n)&&(e=n)}e&&(triggerEvent(e,"htmx:afterRequest",R),triggerEvent(e,"htmx:afterOnLoad",R))}maybeCall(i),k()}catch(t){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:t},R)),t}},v.onerror=function(){removeRequestIndicators(P,H),triggerErrorEvent(n,"htmx:afterRequest",R),triggerErrorEvent(n,"htmx:sendError",R),maybeCall(s),k()},v.onabort=function(){removeRequestIndicators(P,H),triggerErrorEvent(n,"htmx:afterRequest",R),triggerErrorEvent(n,"htmx:sendAbort",R),maybeCall(s),k()},v.ontimeout=function(){removeRequestIndicators(P,H),triggerErrorEvent(n,"htmx:afterRequest",R),triggerErrorEvent(n,"htmx:timeout",R),maybeCall(s),k()},!triggerEvent(n,"htmx:beforeRequest",R))return maybeCall(i),k(),l;var P=addRequestIndicatorClasses(n),H=disableElements(n);forEach(["loadstart","loadend","progress","abort"],(function(t){forEach([v,v.upload],(function(e){e.addEventListener(t,(function(e){triggerEvent(n,"htmx:xhr:"+t,{lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total})}))}))})),triggerEvent(n,"htmx:beforeSend",R);const F=N?null:encodeParamsForBody(v,n,C);return v.send(F),l}function determineHistoryUpdates(t,e){const n=e.xhr;let o=null,r=null;if(hasHeader(n,/HX-Push:/i)?(o=n.getResponseHeader("HX-Push"),r="push"):hasHeader(n,/HX-Push-Url:/i)?(o=n.getResponseHeader("HX-Push-Url"),r="push"):hasHeader(n,/HX-Replace-Url:/i)&&(o=n.getResponseHeader("HX-Replace-Url"),r="replace"),o)return"false"===o?{}:{type:r,path:o};const a=e.pathInfo.finalRequestPath,i=e.pathInfo.responsePath,s=getClosestAttributeValue(t,"hx-push-url"),l=getClosestAttributeValue(t,"hx-replace-url"),c=getInternalData(t).boosted;let u=null,p=null;return s?(u="push",p=s):l?(u="replace",p=l):c&&(u="push",p=i||a),p?"false"===p?{}:("true"===p&&(p=i||a),e.pathInfo.anchor&&-1===p.indexOf("#")&&(p=p+"#"+e.pathInfo.anchor),{type:u,path:p}):{}}function codeMatches(t,e){return new RegExp(t.code).test(e.toString(10))}function resolveResponseHandling(t){for(var e=0;e0?getWindow().setTimeout(u,b.swapDelay):u()}p&&triggerErrorEvent(t,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+e.pathInfo.requestPath},e))}}const extensions={};function extensionBase(){return{init:function(t){return null},getSelectors:function(){return null},onEvent:function(t,e){return!0},transformResponse:function(t,e,n){return t},isInlineSwap:function(t){return!1},handleSwap:function(t,e,n,o){return!1},encodeParameters:function(t,e,n){return null}}}function defineExtension(t,e){e.init&&e.init(internalAPI),extensions[t]=mergeObjects(extensionBase(),e)}function removeExtension(t){delete extensions[t]}function getExtensions(t,e,n){if(null==e&&(e=[]),null==t)return e;null==n&&(n=[]);const o=getAttributeValue(t,"hx-ext");return o&&forEach(o.split(","),(function(t){if("ignore:"!=(t=t.replace(/ /g,"")).slice(0,7)){if(n.indexOf(t)<0){const n=extensions[t];n&&e.indexOf(n)<0&&e.push(n)}}else n.push(t.slice(7))})),getExtensions(asElement(parentElt(t)),e,n)}var isReady=!1;function ready(t){isReady||"complete"===getDocument().readyState?t():getDocument().addEventListener("DOMContentLoaded",t)}function insertIndicatorStyles(){if(!1!==htmx.config.includeIndicatorStyles){const t=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"";getDocument().head.insertAdjacentHTML("beforeend"," ."+htmx.config.indicatorClass+"{opacity:0} ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ")}}function getMetaConfig(){const t=getDocument().querySelector('meta[name="htmx-config"]');return t?parseJSON(t.content):null}function mergeMetaConfig(){const t=getMetaConfig();t&&(htmx.config=mergeObjects(htmx.config,t))}return getDocument().addEventListener("DOMContentLoaded",(function(){isReady=!0})),ready((function(){mergeMetaConfig(),insertIndicatorStyles();let t=getDocument().body;processNode(t);const e=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");t.addEventListener("htmx:abort",(function(t){const e=getInternalData(t.target);e&&e.xhr&&e.xhr.abort()}));const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(t){t.state&&t.state.htmx?(restoreHistory(),forEach(e,(function(t){triggerEvent(t,"htmx:restored",{document:getDocument(),triggerEvent})}))):n&&n(t)},getWindow().setTimeout((function(){triggerEvent(t,"htmx:load",{}),t=null}),0)})),htmx}();const __WEBPACK_DEFAULT_EXPORT__=htmx},215:(t,e,n)=>{var o=n(2);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals),(0,n(534).A)("49b6e69a",o,!1,{})},235:(t,e,n)=>{var o=n(354);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals),(0,n(534).A)("f021657e",o,!1,{})},254:(t,e,n)=>{var o=n(163);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals),(0,n(534).A)("2fcb1776",o,!1,{})},534:(t,e,n)=>{"use strict";function o(t,e){for(var n=[],o={},r=0;rh});var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},p=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,r){c=n,p=r||{};var i=o(t,e);return m(i),function(e){for(var n=[],r=0;rn.parts.length&&(o.parts.length=n.parts.length)}else{var i=[];for(r=0;r{var o;if("function"==typeof fetch&&(o=void 0!==n.g&&n.g.fetch?n.g.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),"undefined"==typeof window){var r=o||n(945);r.default&&(r=r.default),e.default=r,t.exports=e.default}}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},getProto=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,__webpack_require__.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var n=Object.create(null);__webpack_require__.r(n);var o={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var r=2&e&&t;"object"==typeof r&&!~leafPrototypes.indexOf(r);r=getProto(r))Object.getOwnPropertyNames(r).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,__webpack_require__.d(n,o),n},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var t={};__webpack_require__.r(t),__webpack_require__.d(t,{PopupIssuesProvider:()=>id});var e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toc-controller-wrapper"},[n("la-table-of-contents-controller",{ref:"la-toc-controller",attrs:{"title-filter":t.titleQuery,"expand-all-btn-classes":"btn btn-primary btn-sm me-1","collapse-all-btn-classes":"btn btn-primary btn-sm mr-1","title-filter-input-classes":"form-control form-control-sm","title-filter-clear-btn-classes":"btn btn-sm btn-secondary"},domProps:{items:t.roots},on:{itemRendered:t.handleItemRendered,itemTitleClicked:t.onTitleClick}},[n("span",{attrs:{slot:"expand-icon"},slot:"expand-icon"},[n("i",{staticClass:"fas fa-plus"})]),t._v(" "),n("span",{attrs:{slot:"collapse-icon"},slot:"collapse-icon"},[n("i",{staticClass:"fas fa-minus"})])])],1)};e._withStripped=!0;const n={name:"DocumentTOCView",props:{selection:{type:Object,required:!0},model:{type:Object,required:!0},issues:{type:Object,required:!0}},data:()=>({titleQuery:"",toc:[],roots:[],tocItems:[]}),methods:{handleItemRendered(t){if(t.target.item.issues.length){const e=document.createElement("i");e.className=`float-right issue-icon issue-${t.target.item.issues_severity}`,e.dataset.toggle="popover",e.dataset.content=t.target.item.issues_description,e.dataset.title=t.target.item.issues_title,e.dataset.trigger="hover",e.dataset.placement="bottom",e.dataset.html=!0,e.dataset.container=".toc-controller-wrapper",t.target.appendHtml=e.outerHTML,$('#toc [data-toggle="popover"]').popover()}},rebuild(){this.model.xmlDocument&&(console.log("rebuilding TOC"),this.buildToc(),this.selectItem(this.selection.get("index")))},buildToc(){const t=[],e=[],n=Indigo.traditions.get(this.model.document.get("country")),o=(r,i)=>{const s=r.children;for(let r=0;r{let e="";const n=this.model.xpath("./a:heading//text()[not(ancestor::a:authorialNote)]",t);for(let t=0;t0&&"akomaNtoso"===e[0].type&&e[0].children&&(t.push(...e[0].children),e[0].children=[]),this.toc=e,this.roots=t,this.mergeIssues()},mergeIssues(){const t=[];_.each(this.toc,(t=>{t.issues=[]})),this.issues.each((e=>{const n=e.get("element");if(n){const o=this.entryForElement(n);o&&(o.issues.push(e),t.push(o))}})),_.each(t,(t=>{let e=_.map(t.issues,(t=>t.get("severity")));e=_.contains(e,"error")?"error":_.contains(e,"warning")?"warning":"information",t.issues_title=t.issues.length+" issue"+(1===t.issues.length?"":"s"),t.issues_description=t.issues.map((t=>t.get("message"))).join("
"),t.issues_severity=e}))},entryForElement(t){const e=Indigo.traditions.get(this.model.document.get("country")),n=this.toc;for(;t;){if(e.is_toc_element(t))for(let e=0;e-1?this.toc[t]:{})},selectItemById(t){for(let e=0;eo(t)));return t.expanded=n.includes(t.data.slug)||e.some((t=>t.expanded)),t}return e.map((t=>o(t))),{taxonomy:e,selectedSlugs:n}},mounted(){this.$el.addEventListener("itemRendered",(t=>{const e=t.target;if(!e)return;const n=e.querySelector(".content__action");if(this.checkbox&&!n.querySelector('input[type="checkbox"]')){const t=e.querySelector(".content__action .content__action__title"),n=document.createElement("label");n.innerHTML=t.innerHTML,n.className="content__action__title",n.title=t.innerText,t.insertAdjacentElement("beforebegin",n),t.remove();const o=document.createElement("input");o.type="checkbox",o.name=this.checkbox,this.classes&&(o.className=this.classes),o.value=e.item.data.slug,o.checked=this.selectedSlugs.includes(o.value),this.form&&o.setAttribute("form",this.form),o.addEventListener("change",(t=>this.checkboxChanged(t,e))),n.insertBefore(o,n.firstChild)}if(!this.checkbox&&this.selectedSlugs.includes(e.item.data?.slug)&&n.querySelector(".content__action__title").classList.add("active"),void 0!==e.item.data.count&&!n.querySelector(".badge")){const t=document.createElement("div");t.className="badge text-bg-light",t.innerText=(e.item.data.count||"0")+(e.item.children?`/${e.item.data.total}`:""),n.appendChild(t)}}))},methods:{checkboxChanged(t,e){for(const n of e.querySelectorAll('input[type="checkbox"]'))n.checked=t.target.checked}}};__webpack_require__(254);const u=r(c,l,[],!1,null,null,null).exports;class p{constructor(t){this.cursor="col-resize",this.splitter=t,this.container=t.parentElement,this.firstPane=t.previousElementSibling,this.secondPane=t.nextElementSibling,this.isDragging=!1,this.splitter.addEventListener("mousedown",(t=>this.onMouseDown(t))),this.mouseUp=this.onMouseUp.bind(this),this.mouseMove=this.onMouseMove.bind(this),this.splitter.id?(this.storageKey=`splitter:${this.splitter.id}`,this.loadState()):this.storageKey=null}loadState(){let t=window.localStorage.getItem(this.storageKey);if(t)try{t=Math.max(10,Math.min(90,parseFloat(t))),this.setFirstPanePercentage(t)}catch{window.localStorage.removeItem(this.storageKey)}}saveState(t){this.storageKey&&window.localStorage.setItem(this.storageKey,t.toString())}onMouseDown(t){this.isDragging=!0,document.body.classList.add("splitter-dragging"),document.body.style.cursor=this.cursor,document.body.style.userSelect="none",document.addEventListener("mouseup",this.mouseUp),document.addEventListener("mousemove",this.mouseMove)}onMouseUp(t){this.isDragging&&(this.isDragging=!1,document.body.classList.remove("splitter-dragging"),document.body.style.cursor="default",document.body.style.userSelect=null,document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("mousemove",this.mouseMove))}onMouseMove(t){if(!this.isDragging)return;const e=this.container.getBoundingClientRect().left,n=t.clientX-e,o=this.container.clientWidth;this.setFirstPanePercentage(n/o*100)}setFirstPanePercentage(t){const e=this.container.clientWidth,n=this.splitter.offsetWidth;let o=100-t-n/e*100;const r=50/e*100;t{$(t.parentElement).modal("hide")}))}},WorkListCard:class{constructor(t){this.element=t,this.element.addEventListener("click",(t=>this.clicked(t))),this.detail=document.querySelector(this.element.getAttribute("hx-target")),this.detail&&(this.collapse=new window.bootstrap.Collapse(this.detail,{toggle:!1}),this.detail.addEventListener("hide.bs.collapse",(()=>this.element.classList.add("collapsed"))),this.detail.addEventListener("show.bs.collapse",(()=>this.element.classList.remove("collapsed"))))}clicked(t){this.collapse&&"A"!==t.target.tagName&&this.collapse.toggle()}},FacetGroup:class{constructor(t){this.root=t,this.root.addEventListener("click",(t=>{t.target.classList.contains("negate")&&(t.preventDefault(),this.negate(t.target.parentElement))}))}negate(t){const e=t.querySelector("input");e&&(e.value.startsWith("-")?e.value=e.value.slice(1):e.value="-"+e.value,e.checked=!0,e.dispatchEvent(new Event("change",{bubbles:!0})))}},RemoveFacetButton:class{constructor(t){this.root=t,this.root.addEventListener("click",(t=>this.removeFacet(t)))}removeFacet(){const t=document.getElementById(this.root.dataset.form),e=this.root.dataset.name;if(e&&t){let n=t[e];n.length||(n=[n]);for(const t of n)t.value===this.root.dataset.value&&(t.checked=!1,t.dispatchEvent(new Event("change",{bubbles:!0})),this.root.remove())}}},HSplitter:class extends p{constructor(t){super(t),this.cursor="row-resize"}onMouseMove(t){if(!this.isDragging)return;const e=this.container.getBoundingClientRect().top,n=t.clientY-e,o=this.container.clientHeight;this.setFirstPanePercentage(n/o*100)}setFirstPanePercentage(t){const e=this.container.clientHeight,n=this.splitter.offsetHeight;let o=100-t-n/e*100;const r=50/e*100;tm.get(t),b=(t,e)=>e in t,y=(t,e)=>(0,console.error)(t,e),v=new Map,k="http://www.w3.org/1999/xlink",x="undefined"!=typeof window?window:{},w=x.document||{head:{}},E=x.HTMLElement||class{},O={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},S=(()=>{let t=!1;try{w.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(t){}return t})(),T=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),C=!1,A=[],N=[],L=(t,e)=>n=>{t.push(n),C||(C=!0,e&&4&O.$flags$?M(I):O.raf(I))},D=t=>{for(let e=0;e{D(A),D(N),(C=A.length>0)&&O.raf(I)},M=t=>Promise.resolve(undefined).then(t),j=L(N,!0),R={},P=t=>"object"==(t=typeof t)||"function"===t;((t,e)=>{for(var n in e)h(t,n,{get:e[n],enumerable:!0})})({},{err:()=>F,map:()=>V,ok:()=>H,unwrap:()=>U,unwrapErr:()=>W});var H=t=>({isOk:!0,isErr:!1,value:t}),F=t=>({isOk:!1,isErr:!0,value:t});function V(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>H(t))):H(n)}if(t.isErr){const e=t.value;return F(e)}throw"should never get here"}var q,z,U=t=>{if(t.isOk)return t.value;throw t.value},W=t=>{if(t.isErr)return t.value;throw t.value},B=(t,e,...n)=>{let o=null,r=null,a=null,i=!1,s=!1;const l=[],c=e=>{for(let n=0;nt[e])).join(" "))}}const u=Z(t,null);return u.$attrs$=e,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=a,u},Z=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),J={},X=(t,e,n)=>{const o=t;return{emit:t=>Y(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},Y=(t,e,n)=>{const o=O.ce(e,n);return t.dispatchEvent(o),o},G=new WeakMap,K=(t,e)=>"sc-"+t.$tagName$,Q=(t,e,n,o,r,a)=>{if(n!==o){let i=b(t,e),s=e.toLowerCase();if("class"===e){const e=t.classList,r=et(n),a=et(o);e.remove(...r.filter((t=>t&&!a.includes(t)))),e.add(...a.filter((t=>t&&!r.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const l=P(o);if((i||l&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const r=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==r||(t[e]=r)}}catch(t){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,c=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(k,e):t.removeAttribute(e)):(!i||4&a||r)&&!l&&(o=!0===o?"":o,c?t.setAttributeNS(k,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):b(x,s)?s.slice(2):s[2]+e.slice(3),n||o){const r=e.endsWith(nt);e=e.replace(ot,""),n&&O.rel(t,e,n,r),o&&O.ael(t,e,o,r)}}},tt=/\s/,et=t=>t?t.split(tt):[],nt="Capture",ot=new RegExp(nt+"$"),rt=(t,e,n)=>{const o=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||R,a=e.$attrs$||R;for(const t of at(Object.keys(r)))t in a||Q(o,t,r[t],void 0,n,e.$flags$);for(const t of at(Object.keys(a)))Q(o,t,r[t],a[t],n,e.$flags$)};function at(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var it=!1,st=!1,lt=!1,ct=!1,ut=(t,e,n,o)=>{var r;const a=e.$children$[n];let i,s,l,c=0;if(it||(lt=!0,"slot"===a.$tag$&&(a.$flags$|=a.$children$?2:1)),null!==a.$text$)i=a.$elm$=w.createTextNode(a.$text$);else if(1&a.$flags$)i=a.$elm$=w.createTextNode("");else if(i=a.$elm$=w.createElement(!it&&2&a.$flags$?"slot-fb":a.$tag$),rt(null,a,ct),a.$children$)for(c=0;c{O.$flags$|=1;const n=Array.from(t.childNodes);t["s-sr"];for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==z&&o["s-ol"]&&(Et(gt(o),o,mt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,lt=!0),e&&pt(o,e)}O.$flags$&=-2},dt=(t,e,n,o,r,a)=>{let i,s=t["s-cr"]&&t["s-cr"].parentNode||t;for(;r<=a;++r)o[r]&&(i=ut(null,n,r),i&&(o[r].$elm$=i,Et(s,i,mt(e))))},ft=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$elm$;wt(e),t&&(st=!0,t["s-ol"]?t["s-ol"].remove():pt(t,!0),t.remove())}}},ht=(t,e,n=!1)=>t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:!!n||t.$key$===e.$key$),mt=t=>t&&t["s-ol"]||t,gt=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,bt=(t,e,n=!1)=>{const o=e.$elm$=t.$elm$,r=t.$children$,a=e.$children$,i=e.$tag$,s=e.$text$;let l;null===s?(("slot"!==i||it)&&rt(t,e,ct),null!==r&&null!==a?((t,e,n,o,r=!1)=>{let a,i,s=0,l=0,c=0,u=0,p=e.length-1,d=e[0],f=e[p],h=o.length-1,m=o[0],g=o[h];for(;s<=p&&l<=h;)if(null==d)d=e[++s];else if(null==f)f=e[--p];else if(null==m)m=o[++l];else if(null==g)g=o[--h];else if(ht(d,m,r))bt(d,m,r),d=e[++s],m=o[++l];else if(ht(f,g,r))bt(f,g,r),f=e[--p],g=o[--h];else if(ht(d,g,r))"slot"!==d.$tag$&&"slot"!==g.$tag$||pt(d.$elm$.parentNode,!1),bt(d,g,r),Et(t,d.$elm$,f.$elm$.nextSibling),d=e[++s],g=o[--h];else if(ht(f,m,r))"slot"!==d.$tag$&&"slot"!==g.$tag$||pt(f.$elm$.parentNode,!1),bt(f,m,r),Et(t,f.$elm$,d.$elm$),f=e[--p],m=o[++l];else{for(c=-1,u=s;u<=p;++u)if(e[u]&&null!==e[u].$key$&&e[u].$key$===m.$key$){c=u;break}c>=0?(i=e[c],i.$tag$!==m.$tag$?a=ut(e&&e[l],n,c):(bt(i,m,r),e[c]=void 0,a=i.$elm$),m=o[++l]):(a=ut(e&&e[l],n,l),m=o[++l]),a&&Et(gt(d.$elm$),a,mt(d.$elm$))}s>p?dt(t,null==o[h+1]?null:o[h+1].$elm$,n,o,l,h):l>h&&ft(e,s,p)})(o,r,e,a,n):null!==a?(null!==t.$text$&&(o.textContent=""),dt(o,null,e,a,0,a.length-1)):null!==r&&ft(r,0,r.length-1)):(l=o["s-cr"])?l.parentNode.textContent=s:t.$text$!==s&&(o.data=s)},yt=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}yt(t)}},vt=[],kt=t=>{let e,n,o;for(const r of t.childNodes){if(r["s-sr"]&&(e=r["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=r["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==r["s-hn"])if(xt(e,t)){let n=vt.find((t=>t.$nodeToRelocate$===e));st=!0,e["s-sn"]=e["s-sn"]||t,n?(n.$nodeToRelocate$["s-sh"]=r["s-hn"],n.$slotRefNode$=r):(e["s-sh"]=r["s-hn"],vt.push({$slotRefNode$:r,$nodeToRelocate$:e})),e["s-sr"]&&vt.map((t=>{xt(t.$nodeToRelocate$,e["s-sn"])&&(n=vt.find((t=>t.$nodeToRelocate$===e)),n&&!t.$slotRefNode$&&(t.$slotRefNode$=n.$slotRefNode$))}))}else vt.some((t=>t.$nodeToRelocate$===e))||vt.push({$nodeToRelocate$:e})}1===r.nodeType&&kt(r)}},xt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,wt=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(wt)},Et=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),_t=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},Ot=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return _t(t,t.$ancestorComponent$),j((()=>St(t,e)));t.$flags$|=512},St=(t,e)=>{const n=t.$hostElement$,o=(t.$cmpMeta$.$tagName$,()=>{}),r=n;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return e&&(a=Dt(r,"componentWillLoad")),o(),Tt(a,(()=>$t(t,r,e)))},Tt=(t,e)=>Ct(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ct=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,$t=async(t,e,n)=>{var o;const r=t.$hostElement$,a=(t.$cmpMeta$.$tagName$,()=>{}),i=r["s-rc"];n&&(t=>{const e=t.$cmpMeta$,n=t.$hostElement$,o=(e.$tagName$,()=>{});((t,e)=>{var n;const o=t,r=K(e),a=v.get(r);if(t=11===t.nodeType?t:w,a)if("string"==typeof a){t=o.head||t;let i,s=G.get(t);if(s||G.set(t,s=new Set),!s.has(r)){{i=w.createElement("style"),i.innerHTML=a;const e=null!=(n=O.$nonce$)?n:function(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}(w);null!=e&&i.setAttribute("nonce",e),t.insertBefore(i,t.querySelector("link"))}4&e.$flags$&&(i.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(r)}}else o.adoptedStyleSheets.includes(a)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,a])})(n.getRootNode(),e),o()})(t);const s=(t.$cmpMeta$.$tagName$,()=>{});At(t,e,r,n),i&&(i.map((t=>t())),r["s-rc"]=void 0),s(),a();{const e=null!=(o=r["s-p"])?o:[],n=()=>Nt(t);0===e.length?n():(Promise.all(e).then(n),t.$flags$|=4,e.length=0)}},At=(t,e,n,o)=>{try{e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e,n=!1)=>{var o,r,a,i;const s=t.$hostElement$,l=t.$cmpMeta$,c=t.$vnode$||Z(null,null),u=(p=e)&&p.$tag$===J?e:B(null,null,e);var p;if(z=s.tagName,l.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},l.$attrsToReflect$.map((([t,e])=>u.$attrs$[e]=s[t]))),n&&u.$attrs$)for(const t of Object.keys(u.$attrs$))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(u.$attrs$[t]=s[t]);if(u.$tag$=null,u.$flags$|=4,t.$vnode$=u,u.$elm$=c.$elm$=s,it=!1,q=s["s-cr"],st=!1,bt(c,u,n),O.$flags$|=1,lt){kt(u.$elm$);for(const t of vt){const e=t.$nodeToRelocate$;if(!e["s-ol"]){const t=w.createTextNode("");t["s-nr"]=e,Et(e.parentNode,e["s-ol"]=t,e)}}for(const t of vt){const e=t.$nodeToRelocate$,s=t.$slotRefNode$;if(s){const t=s.parentNode;let n=s.nextSibling;{let a=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;a;){let o=null!=(r=a["s-nr"])?r:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}a=a.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),Et(t,e,n),1===e.nodeType&&(e.hidden=null!=(a=e["s-ih"])&&a)),e&&"function"==typeof s["s-rf"]&&s["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}st&&yt(u.$elm$),O.$flags$&=-2,vt.length=0,q=void 0})(t,e,o)}catch(e){y(e,t.$hostElement$)}return null},Nt=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,n=e,o=t.$ancestorComponent$;Dt(n,"componentDidRender"),64&t.$flags$||(t.$flags$|=64,It(e),Dt(n,"componentDidLoad"),t.$onReadyResolve$(e),o||Lt()),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&M((()=>Ot(t,!1))),t.$flags$&=-517},Lt=t=>{It(w.documentElement),M((()=>Y(x,"appload",{detail:{namespace:"lawwidgets"}})))},Dt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){y(t)}},It=t=>t.classList.add("hydrated"),Mt=(t,e,n)=>{var o,r;const a=t.prototype;if(e.$members$||e.$watchers$||t.watchers){t.watchers&&!e.$watchers$&&(e.$watchers$=t.watchers);const n=Object.entries(null!=(o=e.$members$)?o:{});n.map((([t,[n]])=>{(31&n||32&n)&&Object.defineProperty(a,t,{get(){return((t,e)=>g(this).$instanceValues$.get(e))(0,t)},set(n){((t,e,n,o)=>{const r=g(t),a=t,i=r.$instanceValues$.get(e),s=r.$flags$,l=a;var c,u;c=n,u=o.$members$[e][0],n=null==c||P(c)?c:4&u?"false"!==c&&(""===c||!!c):1&u?String(c):c;const p=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!p){if(r.$instanceValues$.set(e,n),o.$watchers$&&128&s){const t=o.$watchers$[e];t&&t.map((t=>{try{l[t](n,i,e)}catch(t){y(t,a)}}))}2==(18&s)&&Ot(r,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}));{const o=new Map;a.attributeChangedCallback=function(t,n,r){O.jmp((()=>{var i;const s=o.get(t);if(this.hasOwnProperty(s))r=this[s],delete this[s];else{if(a.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==r)return;if(null==s){const o=g(this),a=null==o?void 0:o.$flags$;if(a&&!(8&a)&&128&a&&r!==n){const o=this,a=null==(i=e.$watchers$)?void 0:i[t];null==a||a.forEach((e=>{null!=o[e]&&o[e].call(o,r,n,t)}))}return}}this[s]=(null!==r||"boolean"!=typeof this[s])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.$watchers$)?r:{}),...n.filter((([t,e])=>15&e[0])).map((([t,n])=>{var r;const a=n[1]||t;return o.set(a,t),512&n[0]&&(null==(r=e.$attrsToReflect$)||r.push([t,a])),a}))]))}}return t},jt=(t,e)=>{const n={$flags$:e[0],$tagName$:e[1]};n.$members$=e[2],n.$listeners$=e[3],n.$watchers$=t.$watchers$,n.$attrsToReflect$=[];const o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__registerHost(){((t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};n.$onReadyPromise$=new Promise((t=>n.$onReadyResolve$=t)),t["s-p"]=[],t["s-rc"]=[],m.set(t,n)})(this,n)},connectedCallback(){const t=g(this);Rt(this,t,n.$listeners$),(t=>{if(!(1&O.$flags$)){const e=g(t),n=e.$cmpMeta$,o=(n.$tagName$,()=>{});if(1&e.$flags$)Rt(t,e,n.$listeners$),(null==e?void 0:e.$lazyInstance$)||(null==e?void 0:e.$onReadyPromise$)&&e.$onReadyPromise$.then((()=>{}));else{e.$flags$|=1,12&n.$flags$&&(t=>{const e=t["s-cr"]=w.createComment("");e["s-cn"]=!0,Et(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){_t(e,e.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.$flags$)){e.$flags$|=32;{o=t.constructor;const n=t.localName;customElements.whenDefined(n).then((()=>e.$flags$|=128))}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=K(n);if(!v.has(e)){const o=(n.$tagName$,()=>{});((t,e,n)=>{let o=v.get(t);T&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,v.set(t,o)})(e,t,!!(1&n.$flags$)),o()}}}const r=e.$ancestorComponent$,a=()=>Ot(e,!0);r&&r["s-rc"]?r["s-rc"].push(a):a()})(t,e,n)}o()}})(this)},disconnectedCallback(){(async t=>{if(!(1&O.$flags$)){const e=g(t);e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0)}})(this),o&&o.call(this)},__attachShadow(){this.shadowRoot=this}}),t.is=n.$tagName$,Mt(t,n)},Rt=(t,e,n,o)=>{n&&n.map((([n,o,r])=>{const a=t,i=Pt(e,r),s=Ht(n);O.ael(a,o,i,s),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>O.rel(a,o,i,s)))}))},Pt=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(t){y(t)}},Ht=t=>S?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t);function Ft(){return document.location.hostname.replace(/^www\./,"")}const Vt="https://services.lawsafrica.com/v1",qt=jt(class extends E{constructor(){super(),this.__registerHost(),this.frbrExpressionUri=void 0,this.frbrCountry=void 0,this.frbrType=void 0,this.frbrSubtype=void 0,this.frbrAuthor=void 0,this.frbrDate=void 0,this.frbrNumber=void 0,this.frbrExpressionDate=void 0,this.frbrLanguage=void 0,this.fetch=!1,this.partner=void 0,this.provider=Vt}refetch(){this.fetchContent()}parseFrbrExpressionUri(t){const e=new RegExp("^(/(?akn))/(?[a-z]{2})(-(?[^/]+))?/(?[^/]+)(/(?[^0-9][^/]*))?(/(?[^0-9][^/]*))?/(?[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?)/(?[^/]+)(/(((?[a-z]{3})(?[@:][^/]*)?(/!?(?[^/]+?)?(/(?[^.]+))?)?(.(?[a-z0-9]+))?)|!?(?[^/]+)))?$","g").exec(t);(null==e?void 0:e.groups)&&Object.keys(e.groups).forEach((t=>{var n;if(null===(n=e.groups)||void 0===n?void 0:n[t])switch(t){case"country":this.frbrCountry||(this.frbrCountry=e.groups[t]);break;case"doctype":this.frbrType||(this.frbrType=e.groups[t]);break;case"subtype":this.frbrSubtype||(this.frbrSubtype=e.groups[t]);break;case"actor":this.frbrAuthor||(this.frbrAuthor=e.groups[t]);break;case"date":this.frbrDate||(this.frbrDate=e.groups[t]);break;case"number":this.frbrNumber||(this.frbrNumber=e.groups[t]);break;case"expression_date":this.frbrExpressionDate||(this.frbrExpressionDate=e.groups[t].replace("@","").replace(":",""));break;case"language":this.frbrLanguage||(this.frbrLanguage=e.groups[t])}})),this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const t=this.provider+"/p/"+this.partner+"/e/portion"+this.frbrExpressionUri;try{const e=await fetch(t);e.ok&&(this.el.innerHTML=await e.text())}catch(t){}}}ensurePartner(){this.partner||(this.partner=Ft())}componentWillLoad(){this.frbrExpressionUri&&this.parseFrbrExpressionUri(this.frbrExpressionUri)}get el(){return this}static get watchers(){return{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}}static get style(){return'@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");la-akoma-ntoso{display:block;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-size:15px;line-height:1.35;}@-webkit-keyframes fadeout{from{background-color:yellow}to{background-color:unset}}@keyframes fadeout{from{background-color:yellow}to{background-color:unset}}la-akoma-ntoso.flash-target :target{-webkit-animation:fadeout 2s;animation:fadeout 2s}la-akoma-ntoso .akn-blockContainer{display:block}la-akoma-ntoso .akn-block{display:block}la-akoma-ntoso .akn-blockList{display:block}la-akoma-ntoso .akn-conclusions{display:block}la-akoma-ntoso .akn-coverPage{display:block}la-akoma-ntoso .akn-foreign{display:block}la-akoma-ntoso .akn-item{display:block}la-akoma-ntoso .akn-listIntroduction{display:block}la-akoma-ntoso .akn-listWrapUp{display:block}la-akoma-ntoso .akn-ol{display:block}la-akoma-ntoso .akn-p{display:block}la-akoma-ntoso .akn-preamble{display:block}la-akoma-ntoso .akn-preface{display:block}la-akoma-ntoso .akn-tblock{display:block}la-akoma-ntoso .akn-toc{display:block}la-akoma-ntoso .akn-ul{display:block}la-akoma-ntoso .akn-from{display:block}la-akoma-ntoso .akn-narrative{display:block}la-akoma-ntoso .akn-scene{display:block}la-akoma-ntoso .akn-summary{display:block}la-akoma-ntoso .akn-preface,la-akoma-ntoso .akn-preamble{margin-bottom:1.6em}la-akoma-ntoso .akn-preface>.akn-p,la-akoma-ntoso .akn-preamble>.akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-listIntroduction,la-akoma-ntoso .akn-listWrapUp,la-akoma-ntoso .akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-ul,la-akoma-ntoso .akn-ol{list-style-position:outside;padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-ul{list-style-type:disc}la-akoma-ntoso .akn-ol{list-style-type:arabic}la-akoma-ntoso .akn-li{display:list-item;margin-bottom:0.8em}la-akoma-ntoso .akn-akomaNtoso{display:block}la-akoma-ntoso .akn-act{display:block}la-akoma-ntoso .akn-amendment{display:block}la-akoma-ntoso .akn-amendmentList{display:block}la-akoma-ntoso .akn-bill{display:block}la-akoma-ntoso .akn-components{display:block}la-akoma-ntoso .akn-debate{display:block}la-akoma-ntoso .akn-debateReport{display:block}la-akoma-ntoso .akn-doc{display:block}la-akoma-ntoso .akn-documentCollection{display:block}la-akoma-ntoso .akn-judgment{display:block}la-akoma-ntoso .akn-officialGazette{display:block}la-akoma-ntoso .akn-portion{display:block}la-akoma-ntoso .akn-statement{display:block}la-akoma-ntoso .coverpage{text-align:center;margin-bottom:1.6em}la-akoma-ntoso .coverpage .notice-list{margin:0px;padding:0px}la-akoma-ntoso .coverpage .notice-list li{list-style:none}la-akoma-ntoso .coverpage .place-name,la-akoma-ntoso .coverpage .parent-work{font-size:19px;line-height:1.2;margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .assent-date,la-akoma-ntoso .coverpage .commencement-date{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencement-date-list{margin-bottom:0.8em}la-akoma-ntoso .coverpage .commencement-date-uncommenced{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencements-table{margin:auto;max-width:80%}la-akoma-ntoso .coverpage .amendment-list{margin-top:1.6em;padding:0px}la-akoma-ntoso .coverpage .amendment{list-style:none;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso .coverpage .commencement-note,la-akoma-ntoso .coverpage .verification-notice,la-akoma-ntoso .coverpage .as-at-date-notice{margin-top:0.8em;font-style:italic}la-akoma-ntoso .akn-from{float:left;margin-right:0.5em;font-weight:bold}la-akoma-ntoso h1,la-akoma-ntoso h2,la-akoma-ntoso h3,la-akoma-ntoso h4,la-akoma-ntoso h5,la-akoma-ntoso .akn-heading{margin-top:0px;margin-bottom:0.8em;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-weight:bold}la-akoma-ntoso h1{font-size:26px;line-height:1.2}la-akoma-ntoso h2,la-akoma-ntoso .akn-heading{text-align:center;font-size:19px;line-height:1.2}la-akoma-ntoso h3{font-size:18px;line-height:1.35}la-akoma-ntoso h4{font-size:15px;line-height:1.35}la-akoma-ntoso .akn-subheading,la-akoma-ntoso .akn-crossHeading{text-align:center;font-style:italic}la-akoma-ntoso .akn-attachment>.akn-subheading{font-style:normal}la-akoma-ntoso .akn-alinea{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-article{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-book{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-chapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-clause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-division{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-hcontainer{display:block;margin-bottom:0.8em}la-akoma-ntoso .akn-indent{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-level{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-list{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-paragraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-part{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-point{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proviso{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-section{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subchapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subclause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subdivision{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-sublist{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subparagraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subpart{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subrule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subsection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subtitle{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-title{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-tome{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-transitional{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-address{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-adjournment{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-administrationOfOath{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-answer{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-communication{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-debateSection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-declarationOfVote{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-ministerialStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-nationalInterest{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-noticesOfMotion{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-oralStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-papers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-personalStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-petitions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-pointOfOrder{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-prayers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proceduralMotions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-question{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-questions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-resolutions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rollCall{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speech{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speechGroup{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-writtenStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-crossHeading{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-alinea{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-alinea.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-alinea>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-alinea>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-alinea>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-indent{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-indent.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-indent>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-indent>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-indent>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-level{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-level.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-level>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-level>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-level>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-list{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-list.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-list>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-list>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-list>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-paragraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-paragraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-paragraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-paragraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-paragraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-point{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-point.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-point>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-point>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-point>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-proviso{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-proviso.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-proviso>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-proviso>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-proviso>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-rule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-rule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-rule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-rule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-rule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-sublist{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-sublist.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-sublist>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-sublist>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-sublist>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subparagraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subparagraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subparagraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subparagraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subparagraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subrule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subrule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subrule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subrule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subrule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subsection{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subsection.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subsection>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subsection>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subsection>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-transitional{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-transitional.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-transitional>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-transitional>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-transitional>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-br{display:block}la-akoma-ntoso .akn-def{font-weight:bold}la-akoma-ntoso .akn-longTitle{display:block;font-weight:bold;margin-bottom:0.8em}la-akoma-ntoso .akn-remark{font-style:italic}la-akoma-ntoso img{max-width:100%}la-akoma-ntoso .akn-ins{text-decoration:underline}la-akoma-ntoso .akn-del{text-decoration:line-through}la-akoma-ntoso .akn-authorialNote{display:-ms-flexbox;display:flex;font-size:small;margin-top:0.4em;padding:0.25em 0.25em 0 0.25em;position:relative;background-color:rgba(0, 0, 0, 0.07)}la-akoma-ntoso .akn-authorialNote::before{content:" ";position:absolute;top:0;left:0;border-top:1px solid black;width:15%}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote{margin-top:0px}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote::before{border-top:0px}la-akoma-ntoso .akn-authorialNote>.akn-authorialNote--marker{margin-right:0.5em}la-akoma-ntoso .akn-embeddedStructure{display:block;margin-left:2em}la-akoma-ntoso .akn-embeddedStructure .akn-embeddedStructure--startQuote{margin-left:-0.5em;float:left}la-akoma-ntoso .akn--table-container{max-width:100%;overflow-y:auto;margin-bottom:1.6em}la-akoma-ntoso table{width:100%;border:1px solid #ddd;border-collapse:collapse}la-akoma-ntoso table th,la-akoma-ntoso table td{border-top:1px solid #ddd;border-left:1px solid #ddd;padding:5px;text-align:left;vertical-align:top}la-akoma-ntoso table th{font-weight:bold}la-akoma-ntoso table th>:last-child,la-akoma-ntoso table td>:last-child{margin-bottom:0px}la-akoma-ntoso table thead th{vertical-align:bottom}la-akoma-ntoso table caption+thead tr:first-child th,la-akoma-ntoso table caption+thead tr:first-child td,la-akoma-ntoso table colgroup+thead tr:first-child th,la-akoma-ntoso table colgroup+thead tr:first-child td,la-akoma-ntoso table thead:first-child tr:first-child th,la-akoma-ntoso table thead:first-child tr:first-child td{border-top:0}la-akoma-ntoso table tbody+tbody{border-top:2px solid #ddd}la-akoma-ntoso .akn--text-left{text-align:left}la-akoma-ntoso .akn--text-center{text-align:center}la-akoma-ntoso .akn--text-right{text-align:right}la-akoma-ntoso[frbr-country^=ke]{}la-akoma-ntoso[frbr-country^=ke] .akn-remark,la-akoma-ntoso[frbr-country^=ke] .akn-crossHeading{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .coverpage .amendment,la-akoma-ntoso[frbr-country^=ke] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=ke] .coverpage .as-at-date-notice{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .akn-listIntroduction>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=ke] .akn-p>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-division .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-paragraph .akn-heading{text-align:start;font-size:15px;line-height:1.35}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-subheading{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-judgmentBody .akn-p,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-attachments .akn-p{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-remark,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-ref,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-term{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] em{font-style:normal;text-decoration:underline}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-header{padding-top:1.6em;padding-bottom:3.2em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header{width:80%;margin-left:auto;margin-right:auto;margin-bottom:1.6em;font-weight:bold;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .neutral-citation{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-date,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .judges,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .docket-number,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .extra-text,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-authority{margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .legacy-citation{margin-bottom:0.8em;font-weight:normal;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .republic-head,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .parties-separator{margin-top:1.6em;margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing{margin-bottom:0.8em;text-transform:uppercase;display:-ms-flexbox;display:flex;-ms-flex-line-pack:end;align-content:flex-end}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .party-name{text-align:left;max-width:60%}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .dotted{-ms-flex-positive:1;flex-grow:1;border-bottom:dotted 1px;margin:6px}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .header-note{margin-top:1.6em;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .summary-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .author{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .catchwords,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .outcome{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .akn-h4{font-weight:bold;font-style:normal}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .introduction .decision-action{text-align:center;margin-top:2.4em;text-transform:uppercase;font-weight:bold}la-akoma-ntoso[frbr-country^=na] .coverpage .amendment-list,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-date,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .assent-date{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .amendment,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-note,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice{font-style:normal}la-akoma-ntoso[frbr-country^=na] .akn-remark{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .akn-p>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=na] .akn-listIntroduction>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=pl]{}la-akoma-ntoso[frbr-country^=pl] .coverpage .doctype{text-transform:uppercase}la-akoma-ntoso[frbr-country^=pl] .akn-intro,la-akoma-ntoso[frbr-country^=pl] .akn-list,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea,la-akoma-ntoso[frbr-country^=pl] .akn-indent,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-left:3em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-indent-num{display:block;float:left;margin-left:-3em}la-akoma-ntoso.show-structure .akn-alinea,la-akoma-ntoso.show-structure-hier .akn-alinea{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-alinea::before,la-akoma-ntoso.show-structure-hier .akn-alinea::before{content:"alinea";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-article,la-akoma-ntoso.show-structure-hier .akn-article{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-article::before,la-akoma-ntoso.show-structure-hier .akn-article::before{content:"article";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-book,la-akoma-ntoso.show-structure-hier .akn-book{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-book::before,la-akoma-ntoso.show-structure-hier .akn-book::before{content:"book";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-chapter,la-akoma-ntoso.show-structure-hier .akn-chapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-chapter::before,la-akoma-ntoso.show-structure-hier .akn-chapter::before{content:"chapter";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-clause,la-akoma-ntoso.show-structure-hier .akn-clause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-clause::before,la-akoma-ntoso.show-structure-hier .akn-clause::before{content:"clause";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-division,la-akoma-ntoso.show-structure-hier .akn-division{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-division::before,la-akoma-ntoso.show-structure-hier .akn-division::before{content:"division";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer,la-akoma-ntoso.show-structure-hier .akn-hcontainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-hcontainer::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer::before{content:"hcontainer";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-indent,la-akoma-ntoso.show-structure-hier .akn-indent{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-indent::before,la-akoma-ntoso.show-structure-hier .akn-indent::before{content:"indent";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-level,la-akoma-ntoso.show-structure-hier .akn-level{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-level::before,la-akoma-ntoso.show-structure-hier .akn-level::before{content:"level";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-list,la-akoma-ntoso.show-structure-hier .akn-list{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-list::before,la-akoma-ntoso.show-structure-hier .akn-list::before{content:"list";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-paragraph,la-akoma-ntoso.show-structure-hier .akn-paragraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-paragraph::before,la-akoma-ntoso.show-structure-hier .akn-paragraph::before{content:"para";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-part,la-akoma-ntoso.show-structure-hier .akn-part{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-part::before,la-akoma-ntoso.show-structure-hier .akn-part::before{content:"part";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-point,la-akoma-ntoso.show-structure-hier .akn-point{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-point::before,la-akoma-ntoso.show-structure-hier .akn-point::before{content:"point";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proviso,la-akoma-ntoso.show-structure-hier .akn-proviso{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-proviso::before,la-akoma-ntoso.show-structure-hier .akn-proviso::before{content:"proviso";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rule,la-akoma-ntoso.show-structure-hier .akn-rule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-rule::before,la-akoma-ntoso.show-structure-hier .akn-rule::before{content:"rule";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-section,la-akoma-ntoso.show-structure-hier .akn-section{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-section::before,la-akoma-ntoso.show-structure-hier .akn-section::before{content:"section";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subchapter,la-akoma-ntoso.show-structure-hier .akn-subchapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-subchapter::before,la-akoma-ntoso.show-structure-hier .akn-subchapter::before{content:"subchapter";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subclause,la-akoma-ntoso.show-structure-hier .akn-subclause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe1}la-akoma-ntoso.show-structure .akn-subclause::before,la-akoma-ntoso.show-structure-hier .akn-subclause::before{content:"subclause";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subdivision,la-akoma-ntoso.show-structure-hier .akn-subdivision{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefef}la-akoma-ntoso.show-structure .akn-subdivision::before,la-akoma-ntoso.show-structure-hier .akn-subdivision::before{content:"subdivision";position:absolute;top:0px;left:0px;color:black;background-color:#9aefef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-sublist,la-akoma-ntoso.show-structure-hier .akn-sublist{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae1ef}la-akoma-ntoso.show-structure .akn-sublist::before,la-akoma-ntoso.show-structure-hier .akn-sublist::before{content:"sublist";position:absolute;top:0px;left:0px;color:black;background-color:#9ae1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subparagraph,la-akoma-ntoso.show-structure-hier .akn-subparagraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ad3ef}la-akoma-ntoso.show-structure .akn-subparagraph::before,la-akoma-ntoso.show-structure-hier .akn-subparagraph::before{content:"subpara";position:absolute;top:0px;left:0px;color:black;background-color:#9ad3ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subpart,la-akoma-ntoso.show-structure-hier .akn-subpart{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ac5ef}la-akoma-ntoso.show-structure .akn-subpart::before,la-akoma-ntoso.show-structure-hier .akn-subpart::before{content:"subpart";position:absolute;top:0px;left:0px;color:white;background-color:#9ac5ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subrule,la-akoma-ntoso.show-structure-hier .akn-subrule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ab6ef}la-akoma-ntoso.show-structure .akn-subrule::before,la-akoma-ntoso.show-structure-hier .akn-subrule::before{content:"subrule";position:absolute;top:0px;left:0px;color:white;background-color:#9ab6ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subsection,la-akoma-ntoso.show-structure-hier .akn-subsection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa8ef}la-akoma-ntoso.show-structure .akn-subsection::before,la-akoma-ntoso.show-structure-hier .akn-subsection::before{content:"subsection";position:absolute;top:0px;left:0px;color:white;background-color:#9aa8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subtitle,la-akoma-ntoso.show-structure-hier .akn-subtitle{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9a9aef}la-akoma-ntoso.show-structure .akn-subtitle::before,la-akoma-ntoso.show-structure-hier .akn-subtitle::before{content:"subtitle";position:absolute;top:0px;left:0px;color:white;background-color:#9a9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-title,la-akoma-ntoso.show-structure-hier .akn-title{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a89aef}la-akoma-ntoso.show-structure .akn-title::before,la-akoma-ntoso.show-structure-hier .akn-title::before{content:"title";position:absolute;top:0px;left:0px;color:white;background-color:#a89aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tome,la-akoma-ntoso.show-structure-hier .akn-tome{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b69aef}la-akoma-ntoso.show-structure .akn-tome::before,la-akoma-ntoso.show-structure-hier .akn-tome::before{content:"tome";position:absolute;top:0px;left:0px;color:white;background-color:#b69aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-transitional,la-akoma-ntoso.show-structure-hier .akn-transitional{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c59aef}la-akoma-ntoso.show-structure .akn-transitional::before,la-akoma-ntoso.show-structure-hier .akn-transitional::before{content:"transitional";position:absolute;top:0px;left:0px;color:white;background-color:#c59aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-address,la-akoma-ntoso.show-structure-hier .akn-address{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d39aef}la-akoma-ntoso.show-structure .akn-address::before,la-akoma-ntoso.show-structure-hier .akn-address::before{content:"address";position:absolute;top:0px;left:0px;color:white;background-color:#d39aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-adjournment,la-akoma-ntoso.show-structure-hier .akn-adjournment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e19aef}la-akoma-ntoso.show-structure .akn-adjournment::before,la-akoma-ntoso.show-structure-hier .akn-adjournment::before{content:"adjournment";position:absolute;top:0px;left:0px;color:white;background-color:#e19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-administrationOfOath,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aef}la-akoma-ntoso.show-structure .akn-administrationOfOath::before,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath::before{content:"administrationOfOath";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-answer,la-akoma-ntoso.show-structure-hier .akn-answer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ae1}la-akoma-ntoso.show-structure .akn-answer::before,la-akoma-ntoso.show-structure-hier .akn-answer::before{content:"answer";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ae1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-communication,la-akoma-ntoso.show-structure-hier .akn-communication{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ad3}la-akoma-ntoso.show-structure .akn-communication::before,la-akoma-ntoso.show-structure-hier .akn-communication::before{content:"communication";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ad3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-debateSection,la-akoma-ntoso.show-structure-hier .akn-debateSection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ac5}la-akoma-ntoso.show-structure .akn-debateSection::before,la-akoma-ntoso.show-structure-hier .akn-debateSection::before{content:"debateSection";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ac5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-declarationOfVote,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ab6}la-akoma-ntoso.show-structure .akn-declarationOfVote::before,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote::before{content:"declarationOfVote";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ab6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ministerialStatements,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aa8}la-akoma-ntoso.show-structure .akn-ministerialStatements::before,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements::before{content:"ministerialStatements";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-nationalInterest,la-akoma-ntoso.show-structure-hier .akn-nationalInterest{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-nationalInterest::before,la-akoma-ntoso.show-structure-hier .akn-nationalInterest::before{content:"nationalInterest";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-noticesOfMotion,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-noticesOfMotion::before,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion::before{content:"noticesOfMotion";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-oralStatements,la-akoma-ntoso.show-structure-hier .akn-oralStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-oralStatements::before,la-akoma-ntoso.show-structure-hier .akn-oralStatements::before{content:"oralStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-papers,la-akoma-ntoso.show-structure-hier .akn-papers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-papers::before,la-akoma-ntoso.show-structure-hier .akn-papers::before{content:"papers";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-personalStatements,la-akoma-ntoso.show-structure-hier .akn-personalStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-personalStatements::before,la-akoma-ntoso.show-structure-hier .akn-personalStatements::before{content:"personalStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-petitions,la-akoma-ntoso.show-structure-hier .akn-petitions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-petitions::before,la-akoma-ntoso.show-structure-hier .akn-petitions::before{content:"petitions";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-pointOfOrder,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-pointOfOrder::before,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder::before{content:"pointOfOrder";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-prayers,la-akoma-ntoso.show-structure-hier .akn-prayers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-prayers::before,la-akoma-ntoso.show-structure-hier .akn-prayers::before{content:"prayers";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proceduralMotions,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-proceduralMotions::before,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions::before{content:"proceduralMotions";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-question,la-akoma-ntoso.show-structure-hier .akn-question{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-question::before,la-akoma-ntoso.show-structure-hier .akn-question::before{content:"question";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-questions,la-akoma-ntoso.show-structure-hier .akn-questions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-questions::before,la-akoma-ntoso.show-structure-hier .akn-questions::before{content:"questions";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-resolutions,la-akoma-ntoso.show-structure-hier .akn-resolutions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-resolutions::before,la-akoma-ntoso.show-structure-hier .akn-resolutions::before{content:"resolutions";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rollCall,la-akoma-ntoso.show-structure-hier .akn-rollCall{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-rollCall::before,la-akoma-ntoso.show-structure-hier .akn-rollCall::before{content:"rollCall";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speech,la-akoma-ntoso.show-structure-hier .akn-speech{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-speech::before,la-akoma-ntoso.show-structure-hier .akn-speech::before{content:"speech";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speechGroup,la-akoma-ntoso.show-structure-hier .akn-speechGroup{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-speechGroup::before,la-akoma-ntoso.show-structure-hier .akn-speechGroup::before{content:"speechGroup";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-writtenStatements,la-akoma-ntoso.show-structure-hier .akn-writtenStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-writtenStatements::before,la-akoma-ntoso.show-structure-hier .akn-writtenStatements::before{content:"writtenStatements";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-crossHeading,la-akoma-ntoso.show-structure-hier .akn-crossHeading{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-crossHeading::before,la-akoma-ntoso.show-structure-hier .akn-crossHeading::before{content:"crossHeading";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer:not([data-name=hcontainer])::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer:not([data-name=hcontainer])::before{content:"HCONTAINER - " attr(data-name) !important}la-akoma-ntoso.show-structure .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-blockList>.akn-item:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-blockList>.akn-item:not(.akn--no-indent){padding-left:calc(3em + 3px)}la-akoma-ntoso.show-structure .akn-blockContainer,la-akoma-ntoso.show-structure-block .akn-blockContainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn-blockContainer::before,la-akoma-ntoso.show-structure-block .akn-blockContainer::before{position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-block,la-akoma-ntoso.show-structure-block .akn-block{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e8ef9a}la-akoma-ntoso.show-structure .akn-block::before,la-akoma-ntoso.show-structure-block .akn-block::before{position:absolute;top:0px;left:0px;color:black;background-color:#e8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-blockList,la-akoma-ntoso.show-structure-block .akn-blockList{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #daef9a}la-akoma-ntoso.show-structure .akn-blockList::before,la-akoma-ntoso.show-structure-block .akn-blockList::before{content:"items";position:absolute;top:0px;left:0px;color:black;background-color:#daef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-conclusions,la-akoma-ntoso.show-structure-block .akn-conclusions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-conclusions::before,la-akoma-ntoso.show-structure-block .akn-conclusions::before{position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-coverPage,la-akoma-ntoso.show-structure-block .akn-coverPage{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-coverPage::before,la-akoma-ntoso.show-structure-block .akn-coverPage::before{position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-foreign,la-akoma-ntoso.show-structure-block .akn-foreign{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #afef9a}la-akoma-ntoso.show-structure .akn-foreign::before,la-akoma-ntoso.show-structure-block .akn-foreign::before{position:absolute;top:0px;left:0px;color:black;background-color:#afef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-item,la-akoma-ntoso.show-structure-block .akn-item{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a1ef9a}la-akoma-ntoso.show-structure .akn-item::before,la-akoma-ntoso.show-structure-block .akn-item::before{content:"item";position:absolute;top:0px;left:0px;color:black;background-color:#a1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listIntroduction,la-akoma-ntoso.show-structure-block .akn-listIntroduction{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa1}la-akoma-ntoso.show-structure .akn-listIntroduction::before,la-akoma-ntoso.show-structure-block .akn-listIntroduction::before{content:"listIntro";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listWrapUp,la-akoma-ntoso.show-structure-block .akn-listWrapUp{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefaf}la-akoma-ntoso.show-structure .akn-listWrapUp::before,la-akoma-ntoso.show-structure-block .akn-listWrapUp::before{content:"listWrapUp";position:absolute;top:0px;left:0px;color:black;background-color:#9aefaf;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ol,la-akoma-ntoso.show-structure-block .akn-ol{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefbd}la-akoma-ntoso.show-structure .akn-ol::before,la-akoma-ntoso.show-structure-block .akn-ol::before{position:absolute;top:0px;left:0px;color:black;background-color:#9aefbd;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preamble,la-akoma-ntoso.show-structure-block .akn-preamble{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefda}la-akoma-ntoso.show-structure .akn-preamble::before,la-akoma-ntoso.show-structure-block .akn-preamble::before{content:"preamble";position:absolute;top:0px;left:0px;color:black;background-color:#9aefda;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preface,la-akoma-ntoso.show-structure-block .akn-preface{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe8}la-akoma-ntoso.show-structure .akn-preface::before,la-akoma-ntoso.show-structure-block .akn-preface::before{content:"preface";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tblock,la-akoma-ntoso.show-structure-block .akn-tblock{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae8ef}la-akoma-ntoso.show-structure .akn-tblock::before,la-akoma-ntoso.show-structure-block .akn-tblock::before{position:absolute;top:0px;left:0px;color:black;background-color:#9ae8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-toc,la-akoma-ntoso.show-structure-block .akn-toc{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9adaef}la-akoma-ntoso.show-structure .akn-toc::before,la-akoma-ntoso.show-structure-block .akn-toc::before{position:absolute;top:0px;left:0px;color:black;background-color:#9adaef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ul,la-akoma-ntoso.show-structure-block .akn-ul{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9accef}la-akoma-ntoso.show-structure .akn-ul::before,la-akoma-ntoso.show-structure-block .akn-ul::before{content:"bullets";position:absolute;top:0px;left:0px;color:black;background-color:#9accef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-from,la-akoma-ntoso.show-structure-block .akn-from{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9abdef}la-akoma-ntoso.show-structure .akn-from::before,la-akoma-ntoso.show-structure-block .akn-from::before{content:"from";position:absolute;top:0px;left:0px;color:white;background-color:#9abdef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-narrative,la-akoma-ntoso.show-structure-block .akn-narrative{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aafef}la-akoma-ntoso.show-structure .akn-narrative::before,la-akoma-ntoso.show-structure-block .akn-narrative::before{content:"narrative";position:absolute;top:0px;left:0px;color:white;background-color:#9aafef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-scene,la-akoma-ntoso.show-structure-block .akn-scene{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa1ef}la-akoma-ntoso.show-structure .akn-scene::before,la-akoma-ntoso.show-structure-block .akn-scene::before{content:"scene";position:absolute;top:0px;left:0px;color:white;background-color:#9aa1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-summary,la-akoma-ntoso.show-structure-block .akn-summary{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a19aef}la-akoma-ntoso.show-structure .akn-summary::before,la-akoma-ntoso.show-structure-block .akn-summary::before{content:"summary";position:absolute;top:0px;left:0px;color:white;background-color:#a19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn--table-container,la-akoma-ntoso.show-structure-block .akn--table-container{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn--table-container::before,la-akoma-ntoso.show-structure-block .akn--table-container::before{content:"table";position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-abbr,la-akoma-ntoso.show-structure-inline .akn-abbr{background-color:rgba(175, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"abbr";color:black;background-color:#afef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-remark,la-akoma-ntoso.show-structure-inline .akn-remark{background-color:rgba(161, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-remark:hover::before,la-akoma-ntoso.show-structure-inline .akn-remark:hover::before{content:"remark";color:black;background-color:#a1ef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"ABBR - " attr(title);text-transform:none}la-akoma-ntoso.show-structure .akn-authorialNote,la-akoma-ntoso.show-structure-subflow .akn-authorialNote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efbd9a}la-akoma-ntoso.show-structure .akn-authorialNote::before,la-akoma-ntoso.show-structure-subflow .akn-authorialNote::before{content:"footnote";position:absolute;top:0px;left:0px;color:black;background-color:#efbd9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-embeddedStructure,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-embeddedStructure::before,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure::before{content:"quote";position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-attachment,la-akoma-ntoso.show-structure-doc-container .akn-attachment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efcc9a}la-akoma-ntoso.show-structure .akn-attachment::before,la-akoma-ntoso.show-structure-doc-container .akn-attachment::before{content:"attachment";position:absolute;top:0px;left:0px;color:black;background-color:#efcc9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-component,la-akoma-ntoso.show-structure-doc-container .akn-component{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-component::before,la-akoma-ntoso.show-structure-doc-container .akn-component::before{content:"component";position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}'}},[0,"la-akoma-ntoso",{frbrExpressionUri:[1537,"frbr-expression-uri"],frbrCountry:[1537,"frbr-country"],frbrType:[1537,"frbr-type"],frbrSubtype:[1537,"frbr-subtype"],frbrAuthor:[1537,"frbr-author"],frbrDate:[1537,"frbr-date"],frbrNumber:[1537,"frbr-number"],frbrExpressionDate:[1537,"frbr-expression-date"],frbrLanguage:[1537,"frbr-language"],fetch:[1540],partner:[1537],provider:[1]},void 0,{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}]);"undefined"!=typeof customElements&&["la-akoma-ntoso"].forEach((t=>{"la-akoma-ntoso"===t&&(customElements.get(t)||customElements.define(t,qt))}));var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},Ut=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Wt="object"==typeof zt&&zt&&zt.Object===Object&&zt,Bt="object"==typeof self&&self&&self.Object===Object&&self,Zt=Wt||Bt||Function("return this")(),Jt=Zt,Xt=/\s/,Yt=function(t){for(var e=t.length;e--&&Xt.test(t.charAt(e)););return e},Gt=/^\s+/,Kt=Zt.Symbol,Qt=Kt,te=Object.prototype,ee=te.hasOwnProperty,ne=te.toString,oe=Qt?Qt.toStringTag:void 0,re=Object.prototype.toString,ae=function(t){var e=ee.call(t,oe),n=t[oe];try{t[oe]=void 0;var o=!0}catch(t){}var r=ne.call(t);return o&&(e?t[oe]=n:delete t[oe]),r},ie=Kt?Kt.toStringTag:void 0,se=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ie&&ie in Object(t)?ae(t):function(t){return re.call(t)}(t)},le=function(t){return t?t.slice(0,Yt(t)+1).replace(Gt,""):t},ce=Ut,ue=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,de=/^0o[0-7]+$/i,fe=parseInt,he=Ut,me=function(){return Jt.Date.now()},ge=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==se(t)}(t))return NaN;if(ce(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ce(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=le(t);var n=pe.test(t);return n||de.test(t)?fe(t.slice(2),n?2:8):ue.test(t)?NaN:+t},be=Math.max,ye=Math.min,ve=function(t,e,n){var o,r,a,i,s,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=o,a=r;return o=r=void 0,c=e,i=t.apply(a,n)}function h(t){var n=t-l;return void 0===l||n>=e||n<0||p&&t-c>=a}function m(){var t=me();if(h(t))return g(t);s=setTimeout(m,function(t){var n=e-(t-l);return p?ye(n,a-(t-c)):n}(t))}function g(t){return s=void 0,d&&o?f(t):(o=r=void 0,i)}function b(){var t=me(),n=h(t);if(o=arguments,r=this,l=t,n){if(void 0===s)return function(t){return c=t,s=setTimeout(m,e),u?f(t):i}(l);if(p)return clearTimeout(s),s=setTimeout(m,e),f(l)}return void 0===s&&(s=setTimeout(m,e)),i}return e=ge(e)||0,he(n)&&(u=!!n.leading,a=(p="maxWait"in n)?be(ge(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},b.flush=function(){return void 0===s?i:g(me())},b};class ke{constructor(t,e,n){this.component=t,this.selector=e,this.callback=n,this.target=this.findElement(),this.target&&window.MutationObserver?(this.observer=new MutationObserver((()=>{this.targetDomChanged()})),this.observer.observe(this.target,{childList:!0})):this.observer=null}getElement(){return this.target}findElement(){if(this.selector)return this.selector instanceof HTMLElement?this.selector:this.component.ownerDocument.querySelector(this.selector);let t=this.component.closest("la-akoma-ntoso");return t||(t=this.component.ownerDocument.querySelector("la-akoma-ntoso")),t}targetDomChanged(){this.callback&&this.callback()}}class xe{constructor(t){this.root=t,this.buffer=10,this.tops=new WeakMap,this.anchors=new WeakMap}layout(t){this.updateAnchorsAndItems(t),this.updateTops(t);const e=(t=this.sortItems(t)).find((t=>t.active));if(e){const n=t.indexOf(e);if(n>-1){const o=this.anchors.get(e);if(o){const r=this.tops.get(o);if(r)return e.style.top=`${r}px`,this.layoutUpwards(t,n-1,r-this.buffer),void this.layoutDownwards(t,n+1,r+e.clientHeight+this.buffer)}}}this.layoutDownwards(t,0,0)}sortItems(t){return[...t].sort(this.compareItems.bind(this))}compareItems(t,e){const n=this.anchors.get(t),o=this.anchors.get(e);if(n){if(o){const t=this.tops.get(n),e=this.tops.get(o);return t?e?t-e:1:-1}return 1}return-1}layoutUpwards(t,e,n){for(let o=e;o>=0;o--){const e=t[o],r=this.anchors.get(e);if(r){let t=this.tops.get(r);t&&(t+e.clientHeight>=n&&(t=n-e.clientHeight),e.style.top=`${t}px`,n=t-this.buffer)}}}layoutDownwards(t,e,n){for(let o=e;o{t.active=!1}))}setOtherItemsInactive(t){Array.from(this.items()).forEach((e=>{e!=t&&(e.active=!1)}))}setupLayout(){this.akomaNtosoElement&&(this.layout=new xe(this.akomaNtosoElement),window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(this.queueLayout),this.resizeObserver.observe(this.akomaNtosoElement)))}async layoutItems(){this.layout&&(this.layout.layout([...this.items()]),this.layoutComplete.emit())}async activateNextItem(){const t=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===t.length)return t[0].active=!0,t[0];if(t.length>1){const e=t.findIndex((t=>t.active)),n=-1===e||e===t.length-1?t[0]:t[e+1];return n.active=!0,n}return null}async activatePrevItem(){const t=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===t.length)return t[0].active=!0,t[0];if(t.length>1){const e=t.findIndex((t=>t.active)),n=-1===e||0===e?t[t.length-1]:t[e-1];return n.active=!0,n}return null}items(){return this.el.querySelectorAll("la-gutter-item")}getVisibleItems(){return[...this.items()].filter((t=>"none"!==t.style.display))}get el(){return this}static get style(){return".la-akoma-ntoso-with-gutter{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.la-akoma-ntoso-with-gutter>la-akoma-ntoso{-ms-flex:80%;flex:80%;max-width:80%;position:relative;padding-right:0.5rem}.la-akoma-ntoso-with-gutter>la-gutter{-ms-flex:20%;flex:20%;max-width:20%;position:relative;overflow-y:hidden;background-color:rgba(0, 0, 0, 0.05);padding-left:0.5rem;padding-right:0.5rem}la-gutter>la-gutter-item{position:absolute;left:1rem;width:calc(100% - 1.5rem);-webkit-transition:top ease-out 100ms, left ease-out 100ms;transition:top ease-out 100ms, left ease-out 100ms;z-index:2}la-gutter>la-gutter-item[active]{left:0.5rem;z-index:3}"}},[0,"la-gutter",{akomaNtoso:[1,"akoma-ntoso"],layoutItems:[64],activateNextItem:[64],activatePrevItem:[64]},[[0,"laItemChanged","itemChanged"],[0,"click","clicked"]]]);"undefined"!=typeof customElements&&["la-gutter"].forEach((t=>{"la-gutter"===t&&(customElements.get(t)||customElements.define(t,we))}));const Ee=jt(class extends E{constructor(){super(),this.__registerHost(),this.laItemChanged=X(this,"laItemChanged",7),this.anchor=void 0,this.active=!1}activeChanged(){this.laItemChanged.emit()}anchorChanged(){this.laItemChanged.emit()}onClick(){this.active=!0}static get watchers(){return{active:["activeChanged"],anchor:["anchorChanged"]}}static get style(){return"la-gutter-item{display:block}"}},[0,"la-gutter-item",{anchor:[1],active:[1540]},[[0,"click","onClick"]],{active:["activeChanged"],anchor:["anchorChanged"]}]);"undefined"!=typeof customElements&&["la-gutter-item"].forEach((t=>{"la-gutter-item"===t&&(customElements.get(t)||customElements.define(t,Ee))}));const _e=jt(class extends E{constructor(){super(),this.__registerHost(),this.itemRendered=X(this,"itemRendered",7),this.itemTitleClicked=X(this,"itemTitleClicked",7),this.onItemTitleClick=t=>{this.itemTitleClicked.emit(t)},this.item={},this.filteredItems=null,this.prependHtml="",this.appendHtml="",this.expandIconHtml="",this.collapseIconHtml="",this.expanded=!0}toggle(){this.expanded=!this.expanded}componentDidRender(){this.itemRendered.emit()}render(){var t;const e=!!(null===(t=this.item.children)||void 0===t?void 0:t.length),n=!this.filteredItems||this.filteredItems.has(this.item),o=this.item.href||`#${this.item.id||""}`;return B(J,Object.assign({},e?{parent:e}:{},{class:n?"":"excluded"}),B("div",{class:"indented"},e?B("div",{class:"indented__toggle-btn",role:"button",onClick:()=>this.toggle()},(()=>this.expanded?this.collapseIconHtml?B("span",{innerHTML:this.collapseIconHtml}):B("span",null,"▼"):this.expandIconHtml?B("span",{innerHTML:this.expandIconHtml}):B("span",null,"►"))()):null),B("div",{class:"content"},B("div",{class:"content__action"},this.prependHtml?B("div",{class:"content__action__prepend",innerHTML:this.prependHtml}):null,B("a",{href:o,class:"content__action__title",onClick:this.onItemTitleClick},this.item.title),this.appendHtml?B("div",{class:"content__action__append",innerHTML:this.appendHtml}):null),B("div",{class:"content__children"},B("slot",null))))}static get style(){return"la-toc-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}la-toc-item *{-webkit-box-sizing:border-box;box-sizing:border-box}la-toc-item .indented{width:1.4em;height:1.4em}la-toc-item .content{-ms-flex:1;flex:1}la-toc-item .content__action{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}la-toc-item .content__action__title{-ms-flex-positive:1;flex-grow:1}la-toc-item .content__children{display:none}la-toc-item[expanded]>.content>.content__children{display:inherit}la-toc-item.excluded{display:none}la-toc-item .indented__toggle-btn{cursor:pointer;display:inline-block;font-size:smaller;text-align:center;padding:1px 6px}"}},[4,"la-toc-item",{item:[16],filteredItems:[16],prependHtml:[1,"prepend-html"],appendHtml:[1,"append-html"],expandIconHtml:[1,"expand-icon-html"],collapseIconHtml:[1,"collapse-icon-html"],expanded:[1540]}]);function Oe(){"undefined"!=typeof customElements&&["la-toc-item"].forEach((t=>{"la-toc-item"===t&&(customElements.get(t)||customElements.define(t,_e))}))}Oe();const Se=jt(class extends E{constructor(){super(),this.__registerHost(),this.expandIconHtml="",this.collapseIconHtml="",this.items=[],this.titleFilter="",this.expanded=!0,this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=Vt,this.filteredItems=null,this.innerItems=[]}parseItemsProp(t){"string"==typeof t?this.innerItems=JSON.parse(t):Array.isArray(t)&&(this.innerItems=[...t])}refetch(){this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const t=this.provider+"/p/"+this.partner+"/e/we/toc.json"+this.frbrExpressionUri;try{const e=await fetch(t);e.ok&&(this.innerItems=(await e.json()).toc)}catch(t){}}}ensurePartner(){this.partner||(this.partner=Ft())}getSlotHTML(t){var e;const n=this.el.querySelector(t);return(null==n?void 0:n.querySelector(t))?(null===(e=n.querySelector(t))||void 0===e?void 0:e.innerHTML)||"":(null==n?void 0:n.innerHTML)||""}componentWillLoad(){this.expandIconHtml=this.getSlotHTML("[slot='expand-icon']"),this.collapseIconHtml=this.getSlotHTML("[slot='collapse-icon']"),this.parseItemsProp(this.items),this.titleFilterChanged(this.titleFilter),this.fetchContent()}async expandAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((t=>{t.expanded=!0}))}async collapseAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((t=>{t.expanded=!1}))}titleFilterChanged(t){if(t){const e=t.toLocaleLowerCase().trim(),n=new Set;function o(t){for(const e of t.children||[])n.add(e),o(e)}function r(t){var a;let i=((null===(a=t.title)||void 0===a?void 0:a.toLocaleLowerCase())||"").includes(e);if(i)o(t);else if(t.children)for(const e of t.children)i=r(e)||i;return i&&n.add(t),i}for(const a of this.innerItems)r(a);this.filteredItems=n}else this.filteredItems=null;this.expandAll()}renderItem(t){const e=(t.children||[]).map((t=>this.renderItem(t))),n=void 0===t.expanded?this.expanded:t.expanded;return B("la-toc-item",{item:t,filteredItems:this.filteredItems,expandIconHtml:this.expandIconHtml,collapseIconHtml:this.collapseIconHtml,expanded:n},e)}render(){return B(J,{key:"f8b5eaf0e2c359af4eea3b7d6ab3fcad94f393bb"},B("div",{key:"ddca6abce36c9be705a172c12e833a6f9d088b89",style:{display:"none"}},B("slot",{key:"6f55f20f2cb614bb7a7519c44a71f2f94ff60b14",name:"expand-icon"}),B("slot",{key:"9bc755de6658047c64c1c3f5e42a4b6342a883f8",name:"collapse-icon"})),this.innerItems.map((t=>this.renderItem(t))))}get el(){return this}static get watchers(){return{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}}},[4,"la-table-of-contents",{items:[1],titleFilter:[1,"title-filter"],expanded:[4],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],filteredItems:[32],innerItems:[32],expandAll:[64],collapseAll:[64]},void 0,{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}]);function Te(){"undefined"!=typeof customElements&&["la-table-of-contents","la-toc-item"].forEach((t=>{switch(t){case"la-table-of-contents":customElements.get(t)||customElements.define(t,Se);break;case"la-toc-item":customElements.get(t)||Oe()}}))}Te();const Ce=jt(class extends E{constructor(){super(),this.__registerHost(),this.handleTitleChange=ve((t=>{this.titleFilter=t.target.value}),300),this.items=[],this.titleFilterPlaceholder="Search the table of contents",this.hideClearTitleFilterButton=!1,this.titleFilterClearBtnClasses="",this.expandAllBtnClasses="",this.collapseAllBtnClasses="",this.expandAllBtnText="Expand all",this.collapseAllBtnText="Collapse all",this.expanded=!0,this.titleFilterInputClasses="",this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=Vt,this.titleFilter=""}clearTitleFilter(){this.titleFilter=""}async expandAll(){const t=this.el.querySelector("la-table-of-contents");null==t||t.expandAll()}async collapseAll(){const t=this.el.querySelector("la-table-of-contents");null==t||t.collapseAll()}render(){return B(J,null,B("div",{class:"search"},B("input",{class:`search__input ${this.titleFilterInputClasses}`,value:this.titleFilter,placeholder:this.titleFilterPlaceholder,onInput:t=>this.handleTitleChange(t)}),(()=>this.hideClearTitleFilterButton?null:B("button",{class:`search__clear-btn ${this.titleFilterClearBtnClasses}`,type:"button",onClick:()=>this.clearTitleFilter(),disabled:!this.titleFilter},B("slot",{name:"clear-title-filter-icon"},"✕")))()),B("div",{class:"toggle"},B("button",{type:"button",class:`toggle__expand-all-btn ${this.expandAllBtnClasses}`,onClick:()=>this.expandAll()},this.expandAllBtnText),B("button",{type:"button",class:`toggle__collapse-all-btn ${this.collapseAllBtnClasses}`,onClick:()=>this.collapseAll()},this.collapseAllBtnText)),B("la-table-of-contents",{items:this.items,titleFilter:this.titleFilter,fetch:this.fetch,provider:this.provider,partner:this.partner,"frbr-expression-uri":this.frbrExpressionUri,expanded:this.expanded},B("span",{slot:"expand-icon"},B("slot",{name:"expand-icon"})),B("span",{slot:"collapse-icon"},B("slot",{name:"collapse-icon"}))))}get el(){return this}static get style(){return"la-table-of-contents-controller *{-webkit-box-sizing:border-box;box-sizing:border-box}la-table-of-contents-controller .search{width:100%;margin-bottom:5px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative}la-table-of-contents-controller .search__input{-ms-flex:1;flex:1}la-table-of-contents-controller .search__clear-btn{position:absolute;top:0;right:0;height:100%}la-table-of-contents-controller .toggle{margin-bottom:5px}la-table-of-contents-controller .toggle__expand-all-btn{margin-right:5px}"}},[4,"la-table-of-contents-controller",{items:[1],titleFilterPlaceholder:[1,"title-filter-placeholder"],hideClearTitleFilterButton:[4,"hide-clear-title-filter-button"],titleFilterClearBtnClasses:[1,"title-filter-clear-btn-classes"],expandAllBtnClasses:[1,"expand-all-btn-classes"],collapseAllBtnClasses:[1,"collapse-all-btn-classes"],expandAllBtnText:[1,"expand-all-btn-text"],collapseAllBtnText:[1,"collapse-all-btn-text"],expanded:[4],titleFilterInputClasses:[1,"title-filter-input-classes"],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],titleFilter:[32]}]);"undefined"!=typeof customElements&&["la-table-of-contents-controller","la-table-of-contents","la-toc-item"].forEach((t=>{switch(t){case"la-table-of-contents-controller":customElements.get(t)||customElements.define(t,Ce);break;case"la-table-of-contents":customElements.get(t)||Te();break;case"la-toc-item":customElements.get(t)||Oe()}}));var $e="top",Ae="bottom",Ne="right",Le="left",De="auto",Ie=[$e,Ae,Ne,Le],Me="start",je="end",Re="clippingParents",Pe="viewport",He="popper",Fe="reference",Ve=Ie.reduce((function(t,e){return t.concat([e+"-"+Me,e+"-"+je])}),[]),qe=[].concat(Ie,[De]).reduce((function(t,e){return t.concat([e,e+"-"+Me,e+"-"+je])}),[]),ze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ue(t){return t?(t.nodeName||"").toLowerCase():null}function We(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Be(t){return t instanceof We(t).Element||t instanceof Element}function Ze(t){return t instanceof We(t).HTMLElement||t instanceof HTMLElement}function Je(t){return"undefined"!=typeof ShadowRoot&&(t instanceof We(t).ShadowRoot||t instanceof ShadowRoot)}const Xe={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];Ze(r)&&Ue(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],r=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Ze(o)&&Ue(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ye(t){return t.split("-")[0]}var Ge=Math.max,Ke=Math.min,Qe=Math.round;function tn(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function en(){return!/^((?!chrome|android).)*safari/i.test(tn())}function nn(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=1,a=1;e&&Ze(t)&&(r=t.offsetWidth>0&&Qe(o.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Qe(o.height)/t.offsetHeight||1);var i=(Be(t)?We(t):window).visualViewport,s=!en()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/r,c=(o.top+(s&&i?i.offsetTop:0))/a,u=o.width/r,p=o.height/a;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function on(t){var e=nn(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function rn(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Je(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function an(t){return We(t).getComputedStyle(t)}function sn(t){return["table","td","th"].indexOf(Ue(t))>=0}function ln(t){return((Be(t)?t.ownerDocument:t.document)||window.document).documentElement}function cn(t){return"html"===Ue(t)?t:t.assignedSlot||t.parentNode||(Je(t)?t.host:null)||ln(t)}function un(t){return Ze(t)&&"fixed"!==an(t).position?t.offsetParent:null}function pn(t){for(var e=We(t),n=un(t);n&&sn(n)&&"static"===an(n).position;)n=un(n);return n&&("html"===Ue(n)||"body"===Ue(n)&&"static"===an(n).position)?e:n||function(t){var e=/firefox/i.test(tn());if(/Trident/i.test(tn())&&Ze(t)&&"fixed"===an(t).position)return null;var n=cn(t);for(Je(n)&&(n=n.host);Ze(n)&&["html","body"].indexOf(Ue(n))<0;){var o=an(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}function dn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fn(t,e,n){return Ge(t,Ke(e,n))}function hn(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function mn(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const gn={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,r=t.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Ye(n.placement),l=dn(s),c=[Le,Ne].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(t,e){return hn("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:mn(t,Ie))}(r.padding,n),p=on(a),d="y"===l?$e:Le,f="y"===l?Ae:Ne,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=pn(a),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[d],k=b-p[c]-u[f],x=b/2-p[c]/2+y,w=fn(v,x,k),E=l;n.modifiersData[o]=((e={})[E]=w,e.centerOffset=w-x,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&rn(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bn(t){return t.split("-")[1]}var yn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vn(t){var e,n=t.popper,o=t.popperRect,r=t.placement,a=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,p=t.isFixed,d=i.x,f=void 0===d?0:d,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=Le,k=$e,x=window;if(c){var w=pn(n),E="clientHeight",_="clientWidth";w===We(n)&&"static"!==an(w=ln(n)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(r===$e||(r===Le||r===Ne)&&a===je)&&(k=Ae,m-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[E])-o.height,m*=l?1:-1),r!==Le&&(r!==$e&&r!==Ae||a!==je)||(v=Ne,f-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[_])-o.width,f*=l?1:-1)}var O,S=Object.assign({position:s},c&&yn),T=!0===u?function(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Qe(n*r)/r||0,y:Qe(o*r)/r||0}}({x:f,y:m},We(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},S,((O={})[k]=y?"0":"",O[v]=b?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",O)):Object.assign({},S,((e={})[k]=y?m+"px":"",e[v]=b?f+"px":"",e.transform="",e))}var kn={passive:!0};const xn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,a=void 0===r||r,i=o.resize,s=void 0===i||i,l=We(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach((function(t){t.addEventListener("scroll",n.update,kn)})),s&&l.addEventListener("resize",n.update,kn),function(){a&&c.forEach((function(t){t.removeEventListener("scroll",n.update,kn)})),s&&l.removeEventListener("resize",n.update,kn)}},data:{}};var wn={left:"right",right:"left",bottom:"top",top:"bottom"};function En(t){return t.replace(/left|right|bottom|top/g,(function(t){return wn[t]}))}var _n={start:"end",end:"start"};function On(t){return t.replace(/start|end/g,(function(t){return _n[t]}))}function Sn(t){var e=We(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Tn(t){return nn(ln(t)).left+Sn(t).scrollLeft}function Cn(t){var e=an(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function $n(t){return["html","body","#document"].indexOf(Ue(t))>=0?t.ownerDocument.body:Ze(t)&&Cn(t)?t:$n(cn(t))}function An(t,e){var n;void 0===e&&(e=[]);var o=$n(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),a=We(o),i=r?[a].concat(a.visualViewport||[],Cn(o)?o:[]):o,s=e.concat(i);return r?s:s.concat(An(cn(i)))}function Nn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ln(t,e,n){return e===Pe?Nn(function(t,e){var n=We(t),o=ln(t),r=n.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;var c=en();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:a,height:i,x:s+Tn(t),y:l}}(t,n)):Be(e)?function(t,e){var n=nn(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Nn(function(t){var e,n=ln(t),o=Sn(t),r=null==(e=t.ownerDocument)?void 0:e.body,a=Ge(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Ge(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Tn(t),l=-o.scrollTop;return"rtl"===an(r||n).direction&&(s+=Ge(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(ln(t)))}function Dn(t){var e,n=t.reference,o=t.element,r=t.placement,a=r?Ye(r):null,i=r?bn(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case $e:e={x:s,y:n.y-o.height};break;case Ae:e={x:s,y:n.y+n.height};break;case Ne:e={x:n.x+n.width,y:l};break;case Le:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=a?dn(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Me:e[c]=e[c]-(n[u]/2-o[u]/2);break;case je:e[c]=e[c]+(n[u]/2-o[u]/2)}}return e}function In(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=void 0===o?t.placement:o,a=n.strategy,i=void 0===a?t.strategy:a,s=n.boundary,l=void 0===s?Re:s,c=n.rootBoundary,u=void 0===c?Pe:c,p=n.elementContext,d=void 0===p?He:p,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=hn("number"!=typeof g?g:mn(g,Ie)),y=d===He?Fe:He,v=t.rects.popper,k=t.elements[h?y:d],x=function(t,e,n,o){var r="clippingParents"===e?function(t){var e=An(cn(t)),n=["absolute","fixed"].indexOf(an(t).position)>=0&&Ze(t)?pn(t):t;return Be(n)?e.filter((function(t){return Be(t)&&rn(t,n)&&"body"!==Ue(t)})):[]}(t):[].concat(e),a=[].concat(r,[n]),i=a[0],s=a.reduce((function(e,n){var r=Ln(t,n,o);return e.top=Ge(r.top,e.top),e.right=Ke(r.right,e.right),e.bottom=Ke(r.bottom,e.bottom),e.left=Ge(r.left,e.left),e}),Ln(t,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Be(k)?k:k.contextElement||ln(t.elements.popper),l,u,i),w=nn(t.elements.reference),E=Dn({reference:w,element:v,strategy:"absolute",placement:r}),_=Nn(Object.assign({},v,E)),O=d===He?_:w,S={top:x.top-O.top+b.top,bottom:O.bottom-x.bottom+b.bottom,left:x.left-O.left+b.left,right:O.right-x.right+b.right},T=t.modifiersData.offset;if(d===He&&T){var C=T[r];Object.keys(S).forEach((function(t){var e=[Ne,Ae].indexOf(t)>=0?1:-1,n=[$e,Ae].indexOf(t)>=0?"y":"x";S[t]+=C[n]*e}))}return S}function Mn(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qe:l,u=bn(o),p=u?s?Ve:Ve.filter((function(t){return bn(t)===u})):Ie,d=p.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=p);var f=d.reduce((function(e,n){return e[n]=In(t,{placement:n,boundary:r,rootBoundary:a,padding:i})[Ye(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const jn={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=e.options.placement,b=Ye(g),y=l||(b!==g&&h?function(t){if(Ye(t)===De)return[];var e=En(t);return[On(t),e,On(e)]}(g):[En(g)]),v=[g].concat(y).reduce((function(t,n){return t.concat(Ye(n)===De?Mn(e,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),k=e.rects.reference,x=e.rects.popper,w=new Map,E=!0,_=v[0],O=0;O=0,A=$?"width":"height",N=In(e,{placement:S,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),L=$?C?Ne:Le:C?Ae:$e;k[A]>x[A]&&(L=En(L));var D=En(L),I=[];if(a&&I.push(N[T]<=0),s&&I.push(N[L]<=0,N[D]<=0),I.every((function(t){return t}))){_=S,E=!1;break}w.set(S,I)}if(E)for(var M=function(t){var e=v.find((function(e){var n=w.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},j=h?3:1;j>0&&"break"!==M(j);j--);e.placement!==_&&(e.modifiersData[o]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Rn(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Pn(t){return[$e,Ne,Ae,Le].some((function(e){return t[e]>=0}))}const Hn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=In(e,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Ye(e.placement),y=bn(e.placement),v=!y,k=dn(b),x="x"===k?"y":"x",w=e.modifiersData.popperOffsets,E=e.rects.reference,_=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(w){if(a){var $,A="y"===k?$e:Le,N="y"===k?Ae:Ne,L="y"===k?"height":"width",D=w[k],I=D+g[A],M=D-g[N],j=f?-_[L]/2:0,R=y===Me?E[L]:_[L],P=y===Me?-_[L]:-E[L],H=e.elements.arrow,F=f&&H?on(H):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=V[A],z=V[N],U=fn(0,E[L],F[L]),W=v?E[L]/2-j-U-q-S.mainAxis:R-U-q-S.mainAxis,B=v?-E[L]/2+j+U+z+S.mainAxis:P+U+z+S.mainAxis,Z=e.elements.arrow&&pn(e.elements.arrow),J=Z?"y"===k?Z.clientTop||0:Z.clientLeft||0:0,X=null!=($=null==T?void 0:T[k])?$:0,Y=D+B-X,G=fn(f?Ke(I,D+W-X-J):I,D,f?Ge(M,Y):M);w[k]=G,C[k]=G-D}if(s){var K,Q="x"===k?$e:Le,tt="x"===k?Ae:Ne,et=w[x],nt="y"===x?"height":"width",ot=et+g[Q],rt=et-g[tt],at=-1!==[$e,Le].indexOf(b),it=null!=(K=null==T?void 0:T[x])?K:0,st=at?ot:et-E[nt]-_[nt]-it+S.altAxis,lt=at?et+E[nt]+_[nt]-it-S.altAxis:rt,ct=f&&at?function(t,e,n){var o=fn(t,e,n);return o>n?n:o}(st,et,lt):fn(f?st:ot,et,f?lt:rt);w[x]=ct,C[x]=ct-et}e.modifiersData[o]=C}},requiresIfExists:["offset"]};function Fn(t,e,n){void 0===n&&(n=!1);var o,r,a=Ze(e),i=Ze(e)&&function(t){var e=t.getBoundingClientRect(),n=Qe(e.width)/t.offsetWidth||1,o=Qe(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),s=ln(e),l=nn(t,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Ue(e)||Cn(s))&&(c=(o=e)!==We(o)&&Ze(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Sn(o)),Ze(e)?((u=nn(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Tn(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Vn(t){var e=new Map,n=new Set,o=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&r(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),o}function qn(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var zn={placement:"bottom",modifiers:[],strategy:"absolute"};function Un(){for(var t=arguments.length,e=new Array(t),n=0;n=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[Le,Ne].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,e.rects,a),t}),{}),s=i[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=i}},jn,Hn,gn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=In(e,{elementContext:"reference"}),s=In(e,{altBoundary:!0}),l=Rn(i,o),c=Rn(s,r,a),u=Pn(l),p=Pn(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Zn="tippy-content",Jn="tippy-backdrop",Xn="tippy-arrow",Yn="tippy-svg-arrow",Gn={passive:!0,capture:!0},Kn=function(){return document.body};function Qn(t,e,n){if(Array.isArray(t)){var o=t[e];return null==o?Array.isArray(n)?n[e]:n:o}return t}function to(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function eo(t,e){return"function"==typeof t?t.apply(void 0,e):t}function no(t,e){return 0===e?t:function(o){clearTimeout(n),n=setTimeout((function(){t(o)}),e)};var n}function oo(t){return[].concat(t)}function ro(t,e){-1===t.indexOf(e)&&t.push(e)}function ao(t){return[].slice.call(t)}function io(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function so(){return document.createElement("div")}function lo(t){return["Element","Fragment"].some((function(e){return to(t,e)}))}function co(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function uo(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function po(t,e,n){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[o](e,n)}))}function fo(t,e){for(var n=e;n;){var o;if(t.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var ho={isTouch:!1},mo=0;function go(){ho.isTouch||(ho.isTouch=!0,window.performance&&document.addEventListener("mousemove",bo))}function bo(){var t=performance.now();t-mo<20&&(ho.isTouch=!1,document.removeEventListener("mousemove",bo)),mo=t}function yo(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var vo=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),ko=Object.assign({appendTo:Kn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),xo=Object.keys(ko);function wo(t){var e=(t.plugins||[]).reduce((function(e,n){var o,r=n.name,a=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:null!=(o=ko[r])?o:a),e}),{});return Object.assign({},t,e)}function Eo(t,e){var n=Object.assign({},e,{content:eo(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(wo(Object.assign({},ko,{plugins:e}))):xo).reduce((function(e,n){var o=(t.getAttribute("data-tippy-"+n)||"").trim();if(!o)return e;if("content"===n)e[n]=o;else try{e[n]=JSON.parse(o)}catch(t){e[n]=o}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},ko.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var _o=function(){return"innerHTML"};function Oo(t,e){t[_o()]=e}function So(t){var e=so();return!0===t?e.className=Xn:(e.className=Yn,lo(t)?e.appendChild(t):Oo(e,t)),e}function To(t,e){lo(e.content)?(Oo(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Oo(t,e.content):t.textContent=e.content)}function Co(t){var e=t.firstElementChild,n=ao(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(Zn)})),arrow:n.find((function(t){return t.classList.contains(Xn)||t.classList.contains(Yn)})),backdrop:n.find((function(t){return t.classList.contains(Jn)}))}}function $o(t){var e=so(),n=so();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=so();function r(n,o){var r=Co(e),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||To(i,t.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(So(o.arrow))):a.appendChild(So(o.arrow)):s&&a.removeChild(s)}return o.className=Zn,o.setAttribute("data-state","hidden"),To(o,t.props),e.appendChild(n),n.appendChild(o),r(t.props,t.props),{popper:e,onUpdate:r}}$o.$$tippy=!0;var Ao=1,No=[],Lo=[];function Do(t,e){var n,o,r,a,i,s,l,c,u=Eo(t,Object.assign({},ko,wo(io(e)))),p=!1,d=!1,f=!1,h=!1,m=[],g=no(Z,u.interactiveDebounce),b=Ao++,y=(c=u.plugins).filter((function(t,e){return c.indexOf(t)===e})),v={id:b,reference:t,popper:so(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(!v.state.isDestroyed){D("onBeforeUpdate",[v,e]),W();var n=v.props,o=Eo(t,Object.assign({},n,io(e),{ignoreAttributes:!0}));v.props=o,U(),n.interactiveDebounce!==o.interactiveDebounce&&(j(),g=no(Z,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?oo(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):o.triggerTarget&&t.removeAttribute("aria-expanded"),M(),L(),w&&w(n,o),v.popperInstance&&(G(),Q().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[v,e])}},setContent:function(t){v.setProps({content:t})},show:function(){var t=v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=ho.isTouch&&!v.props.touch,r=Qn(v.props.duration,0,ko.duration);if(!(t||e||n||o||C().hasAttribute("disabled")||(D("onShow",[v],!1),!1===v.props.onShow(v)))){if(v.state.isVisible=!0,T()&&(x.style.visibility="visible"),L(),F(),v.state.isMounted||(x.style.transition="none"),T()){var a=A();co([a.box,a.content],0)}var i,l,c;s=function(){var t;if(v.state.isVisible&&!h){if(h=!0,x.style.transition=v.props.moveTransition,T()&&v.props.animation){var e=A(),n=e.box,o=e.content;co([n,o],r),uo([n,o],"visible")}I(),M(),ro(Lo,v),null==(t=v.popperInstance)||t.forceUpdate(),D("onMount",[v]),v.props.animation&&T()&&function(t){q(t,(function(){v.state.isShown=!0,D("onShown",[v])}))}(r)}},l=v.props.appendTo,c=C(),(i=v.props.interactive&&l===Kn||"parent"===l?c.parentNode:eo(l,[c])).contains(x)||i.appendChild(x),v.state.isMounted=!0,G()}},hide:function(){var t=!v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=Qn(v.props.duration,1,ko.duration);if(!(t||e||n)&&(D("onHide",[v],!1),!1!==v.props.onHide(v))){if(v.state.isVisible=!1,v.state.isShown=!1,h=!1,p=!1,T()&&(x.style.visibility="hidden"),j(),V(),L(!0),T()){var r=A(),a=r.box,i=r.content;v.props.animation&&(co([a,i],o),uo([a,i],"hidden"))}I(),M(),v.props.animation?T()&&function(t,e){q(t,(function(){!v.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}(o,v.unmount):v.unmount()}},hideWithInteractivity:function(t){$().addEventListener("mousemove",g),ro(No,g),g(t)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){v.state.isVisible&&v.hide(),v.state.isMounted&&(K(),Q().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Lo=Lo.filter((function(t){return t!==v})),v.state.isMounted=!1,D("onHidden",[v]))},destroy:function(){v.state.isDestroyed||(v.clearDelayTimeouts(),v.unmount(),W(),delete t._tippy,v.state.isDestroyed=!0,D("onDestroy",[v]))}};if(!u.render)return v;var k=u.render(v),x=k.popper,w=k.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+v.id,v.popper=x,t._tippy=v,x._tippy=v;var E=y.map((function(t){return t.fn(v)})),_=t.hasAttribute("aria-expanded");return U(),M(),L(),D("onCreate",[v]),u.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",g)})),v;function O(){var t=v.props.touch;return Array.isArray(t)?t:[t,0]}function S(){return"hold"===O()[0]}function T(){var t;return!(null==(t=v.props.render)||!t.$$tippy)}function C(){return l||t}function $(){var t,e,n=C().parentNode;return n&&null!=(e=oo(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}function A(){return Co(x)}function N(t){return v.state.isMounted&&!v.state.isVisible||ho.isTouch||a&&"focus"===a.type?0:Qn(v.props.delay,t?0:1,ko.delay)}function L(t){void 0===t&&(t=!1),x.style.pointerEvents=v.props.interactive&&!t?"":"none",x.style.zIndex=""+v.props.zIndex}function D(t,e,n){var o;void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n&&(o=v.props)[t].apply(o,e)}function I(){var e=v.props.aria;if(e.content){var n="aria-"+e.content,o=x.id;oo(v.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(v.state.isVisible)t.setAttribute(n,e?e+" "+o:o);else{var r=e&&e.replace(o,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function M(){!_&&v.props.aria.expanded&&oo(v.props.triggerTarget||t).forEach((function(t){v.props.interactive?t.setAttribute("aria-expanded",v.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function j(){$().removeEventListener("mousemove",g),No=No.filter((function(t){return t!==g}))}function R(e){if(!ho.isTouch||!f&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!v.props.interactive||!fo(x,n)){if(oo(v.props.triggerTarget||t).some((function(t){return fo(t,n)}))){if(ho.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[v,e]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),d=!0,setTimeout((function(){d=!1})),v.state.isMounted||V())}}}function P(){f=!0}function H(){f=!1}function F(){var t=$();t.addEventListener("mousedown",R,!0),t.addEventListener("touchend",R,Gn),t.addEventListener("touchstart",H,Gn),t.addEventListener("touchmove",P,Gn)}function V(){var t=$();t.removeEventListener("mousedown",R,!0),t.removeEventListener("touchend",R,Gn),t.removeEventListener("touchstart",H,Gn),t.removeEventListener("touchmove",P,Gn)}function q(t,e){var n=A().box;function o(t){t.target===n&&(po(n,"remove",o),e())}if(0===t)return e();po(n,"remove",i),po(n,"add",o),i=o}function z(e,n,o){void 0===o&&(o=!1),oo(v.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,o),m.push({node:t,eventType:e,handler:n,options:o})}))}function U(){var t;S()&&(z("touchstart",B,{passive:!0}),z("touchend",J,{passive:!0})),(t=v.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(z(t,B),t){case"mouseenter":z("mouseleave",J);break;case"focus":z(vo?"focusout":"blur",X);break;case"focusin":z("focusout",X)}}))}function W(){m.forEach((function(t){var e=t.node,n=t.eventType,o=t.handler,r=t.options;e.removeEventListener(n,o,r)})),m=[]}function B(t){var e,n=!1;if(v.state.isEnabled&&!Y(t)&&!d){var o="focus"===(null==(e=a)?void 0:e.type);a=t,l=t.currentTarget,M(),!v.state.isVisible&&to(t,"MouseEvent")&&No.forEach((function(e){return e(t)})),"click"===t.type&&(v.props.trigger.indexOf("mouseenter")<0||p)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:tt(t),"click"===t.type&&(p=!n),n&&!o&&et(t)}}function Z(t){var e=t.target,n=C().contains(e)||x.contains(e);if("mousemove"!==t.type||!n){var o=Q().concat(x).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(t,e){var n=e.clientX,o=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,a=t.props.interactiveBorder,i=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,p="left"===i?s.right.x:0,d=e.top-o+l>a,f=o-e.bottom-c>a,h=e.left-n+u>a,m=n-e.right-p>a;return d||f||h||m}))})(o,t)&&(j(),et(t))}}function J(t){Y(t)||v.props.trigger.indexOf("click")>=0&&p||(v.props.interactive?v.hideWithInteractivity(t):et(t))}function X(t){v.props.trigger.indexOf("focusin")<0&&t.target!==C()||v.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||et(t)}function Y(t){return!!ho.isTouch&&S()!==t.type.indexOf("touch")>=0}function G(){K();var e=v.props,n=e.popperOptions,o=e.placement,r=e.offset,a=e.getReferenceClientRect,i=e.moveTransition,l=T()?Co(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||C()}:t,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(T()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];T()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Bn(c,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function K(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Q(){return ao(x.querySelectorAll("[data-tippy-root]"))}function tt(t){v.clearDelayTimeouts(),t&&D("onTrigger",[v,t]),F();var e=N(!0),o=O(),r=o[0],a=o[1];ho.isTouch&&"hold"===r&&a&&(e=a),e?n=setTimeout((function(){v.show()}),e):v.show()}function et(t){if(v.clearDelayTimeouts(),D("onUntrigger",[v,t]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&p)){var e=N(!1);e?o=setTimeout((function(){v.state.isVisible&&v.hide()}),e):r=requestAnimationFrame((function(){v.hide()}))}}else V()}}function Io(t,e){void 0===e&&(e={});var n=ko.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",go,Gn),window.addEventListener("blur",yo);var o,r=Object.assign({},e,{plugins:n}),a=(o=t,lo(o)?[o]:function(t){return to(t,"NodeList")}(o)?ao(o):Array.isArray(o)?o:ao(document.querySelectorAll(o))).reduce((function(t,e){var n=e&&Do(e,r);return n&&t.push(n),t}),[]);return lo(t)?a[0]:a}Io.defaultProps=ko,Io.setDefaultProps=function(t){Object.keys(t).forEach((function(e){ko[e]=t[e]}))},Io.currentInput=ho,Object.assign({},Xe,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Io.setDefaultProps({render:$o});const Mo=jt(class extends E{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.partner=void 0,this.provider=Vt}componentWillLoad(){const t=new ke(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=t.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-external-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changePopups(this.popups)}changePopups(t){for(const t of this.tippies)t.destroy();this.tippies=[],this.akomaNtosoElement&&t&&this.createPopups()}createPopups(){this.akomaNtosoElement&&(this.tippies=Io(this.akomaNtosoElement.querySelectorAll('a.akn-ref[data-href^="/akn/"]'),{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"}))}async onTrigger(t){const e=t.reference.getAttribute("data-href")||"",n=await this.fetchContent(e);n&&t.setContent(`\n
\n
${n}
\n
`)}ensurePartner(){this.partner||(this.partner=Ft())}async fetchContent(t){if(this.ensurePartner(),t&&this.provider){const e=this.provider+"/p/"+this.partner+"/e/popup"+t;try{const t=await fetch(e);if(t.ok)return await t.text()}catch(t){}}return null}get el(){return this}static get watchers(){return{popups:["changePopups"]}}static get style(){return'.la-decorate-external-refs__popup{position:relative}.la-decorate-external-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-external-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-external-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-external-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-external-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-external-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-external-refs__popup .tippy-content{padding:0}.la-decorate-external-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-external-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-external-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}'}},[0,"la-decorate-external-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],partner:[1],provider:[1]},void 0,{popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-external-refs"].forEach((t=>{"la-decorate-external-refs"===t&&(customElements.get(t)||customElements.define(t,Mo))}));const jo=jt(class extends E{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.flag=!1,this.fetch=!1,this.partner=void 0,this.provider=Vt}componentWillLoad(){const t=new ke(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=t.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-internal-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changeFlag(this.flag),this.changePopups(this.popups)}changeFlag(t){this.akomaNtosoElement&&this.akomaNtosoElement.classList.toggle("flag-internal-refs",t)}changePopups(t){for(const t of this.tippies)t.destroy();this.tippies=[],this.akomaNtosoElement&&t&&this.createPopups()}createPopups(){this.tippies=Io('a.akn-ref[href^="#"]',{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}async onTrigger(t){if(this.akomaNtosoElement){const e=t.reference.getAttribute("href")||"";let n="";const o=this.akomaNtosoElement.querySelector(e);o?n=o.outerHTML:this.fetch&&(n=await this.fetchContent(e.slice(1))),n&&t.setContent(`\n
\n
${n}
\n
`)}}async fetchContent(t){if(this.ensurePartner(),this.provider&&this.akomaNtosoElement){const e=this.akomaNtosoElement.getAttribute("frbr-expression-uri");if(e){const n=this.provider+"/p/"+this.partner+"/e/portion"+function(t,e){const n=t.indexOf("~");return n>-1&&(t=t.slice(0,n)),t.endsWith("/")||(t+="/"),t+e}(e,"~"+t);try{const t=await fetch(n);if(t.ok)return await t.text()}catch(t){}}}return null}ensurePartner(){this.partner||(this.partner=Ft())}get el(){return this}static get watchers(){return{flag:["changeFlag"],popups:["changePopups"]}}static get style(){return'.la-decorate-internal-refs__popup{position:relative}.la-decorate-internal-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-internal-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-internal-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-internal-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-internal-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-internal-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-internal-refs__popup .tippy-content{padding:0}.la-decorate-internal-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-internal-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-internal-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.flag-internal-refs .akn-ref[href^="#"]::after{display:inline-block;content:"";vertical-align:-0.125em;background-image:url("data:image/svg+xml,");background-repeat:no-repeat;width:0.8rem;height:0.8rem}'}},[0,"la-decorate-internal-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],flag:[4],fetch:[1540],partner:[1537],provider:[1]},void 0,{flag:["changeFlag"],popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-internal-refs"].forEach((t=>{"la-decorate-internal-refs"===t&&(customElements.get(t)||customElements.define(t,jo))}));const Ro=jt(class extends E{constructor(){super(),this.__registerHost(),this.defnContainers=".akn-p, .akn-subsection, .akn-section, .akn-blockList",this.tippies=[],this.akomaNtoso=void 0,this.popupDefinitions=!1,this.linkTerms=!1}componentWillLoad(){const t=new ke(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=t.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-terms__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.akomaNtosoElement&&(this.setupDefinitions(),this.linkTerms&&this.makeTermLinks(),this.changePopupDefinitions(this.popupDefinitions))}changePopupDefinitions(t){for(const t of this.tippies)t.destroy();this.tippies=[],this.akomaNtosoElement&&t&&this.createPopups(),this.toggleCssClasses()}changeLinkTerms(){this.toggleCssClasses()}toggleCssClasses(){this.akomaNtosoElement&&(this.akomaNtosoElement.classList.toggle("show-terms",this.linkTerms||this.popupDefinitions),this.akomaNtosoElement.classList.toggle("link-terms",this.linkTerms))}setupDefinitions(){this.akomaNtosoElement&&Array.from(this.akomaNtosoElement.querySelectorAll(".akn-def[data-refersto]")).forEach((t=>{var e;const n=null===(e=t.getAttribute("data-refersto"))||void 0===e?void 0:e.replace("#",""),o=t.closest(this.defnContainers);o&&n&&(o.dataset.defines=t.dataset.refersto,o.setAttribute("id",`defn-${n}`))}))}createPopups(){this.tippies=Io(this.akomaNtosoElement.querySelectorAll(".akn-term"),{appendTo:()=>this.tippyContainer,allowHTML:!0,content:"",hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}onTrigger(t){const e=t.reference,n=this.getDefinition(e);n&&t.setContent(`\n
\n
${e.innerText}
\n
${n.outerHTML}
\n
`)}getDefinition(t){const e=t.getAttribute("data-refersto");return this.akomaNtosoElement?this.akomaNtosoElement.querySelector(`[data-defines="${e}"]`):null}makeTermLinks(){this.akomaNtosoElement&&this.akomaNtosoElement.addEventListener("click",(t=>{if(t.target&&t.target instanceof E){const e=t.target;if(e.classList.contains("akn-term")){const t=(e.dataset.refersto||"").replace("#","");t&&(window.location.hash=`#defn-${t}`)}}}))}get el(){return this}static get watchers(){return{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}}static get style(){return'.la-decorate-terms__popup{position:relative}.la-decorate-terms__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-terms__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-terms__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-terms__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-terms__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-terms__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-terms__popup .tippy-content{padding:0}.la-decorate-terms__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-terms__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-terms__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.show-terms .akn-term{-webkit-text-decoration:underline dotted 1px;text-decoration:underline dotted 1px}la-akoma-ntoso.link-terms .akn-term{cursor:pointer}'}},[0,"la-decorate-terms",{akomaNtoso:[1,"akoma-ntoso"],popupDefinitions:[4,"popup-definitions"],linkTerms:[4,"link-terms"]},void 0,{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}]);"undefined"!=typeof customElements&&["la-decorate-terms"].forEach((t=>{"la-decorate-terms"===t&&(customElements.get(t)||customElements.define(t,Ro))}));var Po=Object.freeze({});function Ho(t){return null==t}function Fo(t){return null!=t}function Vo(t){return!0===t}function qo(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function zo(t){return null!==t&&"object"==typeof t}var Uo=Object.prototype.toString;function Wo(t){return"[object Object]"===Uo.call(t)}function Bo(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function Zo(t){return Fo(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function Jo(t){return null==t?"":Array.isArray(t)||Wo(t)&&t.toString===Uo?JSON.stringify(t,null,2):String(t)}function Xo(t){var e=parseFloat(t);return isNaN(e)?t:e}function Yo(t,e){for(var n=Object.create(null),o=t.split(","),r=0;r-1)return t.splice(n,1)}}var tr=Object.prototype.hasOwnProperty;function er(t,e){return tr.call(t,e)}function nr(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var or=/-(\w)/g,rr=nr((function(t){return t.replace(or,(function(t,e){return e?e.toUpperCase():""}))})),ar=nr((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),ir=/\B([A-Z])/g,sr=nr((function(t){return t.replace(ir,"-$1").toLowerCase()})),lr=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function cr(t,e){e=e||0;for(var n=t.length-e,o=new Array(n);n--;)o[n]=t[n+e];return o}function ur(t,e){for(var n in e)t[n]=e[n];return t}function pr(t){for(var e={},n=0;n0,Ir=Nr&&Nr.indexOf("edge/")>0,Mr=(Nr&&Nr.indexOf("android"),Nr&&/iphone|ipad|ipod|ios/.test(Nr)||"ios"===Ar),jr=(Nr&&/chrome\/\d+/.test(Nr),Nr&&/phantomjs/.test(Nr),Nr&&Nr.match(/firefox\/(\d+)/)),Rr={}.watch,Pr=!1;if(Cr)try{var Hr={};Object.defineProperty(Hr,"passive",{get:function(){Pr=!0}}),window.addEventListener("test-passive",null,Hr)}catch(t){}var Fr=function(){return void 0===Or&&(Or=!Cr&&!$r&&void 0!==__webpack_require__.g&&__webpack_require__.g.process&&"server"===__webpack_require__.g.process.env.VUE_ENV),Or},Vr=Cr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function qr(t){return"function"==typeof t&&/native code/.test(t.toString())}var zr,Ur="undefined"!=typeof Symbol&&qr(Symbol)&&"undefined"!=typeof Reflect&&qr(Reflect.ownKeys);zr="undefined"!=typeof Set&&qr(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Wr=dr,Br=0,Zr=function(){this.id=Br++,this.subs=[]};Zr.prototype.addSub=function(t){this.subs.push(t)},Zr.prototype.removeSub=function(t){Qo(this.subs,t)},Zr.prototype.depend=function(){Zr.target&&Zr.target.addDep(this)},Zr.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(a&&!er(r,"default"))i=!1;else if(""===i||i===sr(t)){var l=Oa(String,r.type);(l<0||s0&&(Xa((o=Ya(o,(e||"")+"_"+n))[0])&&Xa(a)&&(i[r]=ta(a.text+o[0].text),o.shift()),i.push.apply(i,o)):qo(o)?Xa(a)?i[r]=ta(a.text+o):""!==o&&i.push(ta(o)):Xa(o)&&Xa(a)?i[r]=ta(a.text+o.text):(Vo(t._isVList)&&Fo(o.tag)&&Ho(o.key)&&Fo(e)&&(o.key="__vlist"+e+"_"+n+"__"),i.push(o)));return i}function Ga(t,e){if(t){for(var n=Object.create(null),o=Ur?Reflect.ownKeys(t):Object.keys(t),r=0;r0,a=t?!!t.$stable:!r,i=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==Po&&i===n.$key&&!r&&!n.$hasNormal)return n;for(var s in o={},t)t[s]&&"$"!==s[0]&&(o[s]=ni(e,s,t[s]))}else o={};for(var l in e)l in o||(o[l]=oi(e,l));return t&&Object.isExtensible(t)&&(t._normalized=o),_r(o,"$stable",a),_r(o,"$key",i),_r(o,"$hasNormal",r),o}function ni(t,e,n){var o=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:Ja(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!ti(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:o,enumerable:!0,configurable:!0}),o}function oi(t,e){return function(){return t[e]}}function ri(t,e){var n,o,r,a,i;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),o=0,r=t.length;odocument.createEvent("Event").timeStamp&&(Gi=function(){return Ki.now()})}function Qi(){var t,e;for(Yi=Gi(),Ji=!0,Ui.sort((function(t,e){return t.id-e.id})),Xi=0;XiXi&&Ui[n].id>t.id;)n--;Ui.splice(n+1,0,t)}else Ui.push(t);Zi||(Zi=!0,Ha(Qi))}}(this)},es.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||zo(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Ta(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},es.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},es.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},es.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||Qo(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var ns={enumerable:!0,configurable:!0,get:dr,set:dr};function os(t,e,n){ns.get=function(){return this[e][n]},ns.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ns)}var rs={lazy:!0};function as(t,e,n){var o=!Fr();"function"==typeof n?(ns.get=o?is(e):ss(n),ns.set=dr):(ns.get=n.get?o&&!1!==n.cache?is(e):ss(n.get):dr,ns.set=n.set||dr),Object.defineProperty(t,e,ns)}function is(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Zr.target&&e.depend(),e.value}}function ss(t){return function(){return t.call(this,this)}}function ls(t,e,n,o){return Wo(n)&&(o=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,o)}var cs=0;function us(t){var e=t.options;if(t.super){var n=us(t.super);if(n!==t.superOptions){t.superOptions=n;var o=function(t){var e,n=t.options,o=t.sealedOptions;for(var r in n)n[r]!==o[r]&&(e||(e={}),e[r]=n[r]);return e}(t);o&&ur(t.extendOptions,o),(e=t.options=va(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function ps(t){this._init(t)}function ds(t){return t&&(t.Ctor.options.name||t.tag)}function fs(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,!("[object RegExp]"!==Uo.call(n))&&t.test(e));var n}function hs(t,e){var n=t.cache,o=t.keys,r=t._vnode;for(var a in n){var i=n[a];if(i){var s=i.name;s&&!e(s)&&ms(n,a,o,r)}}}function ms(t,e,n,o){var r=t[e];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),t[e]=null,Qo(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=cs++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),o=e._parentVnode;n.parent=e.parent,n._parentVnode=o;var r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=va(us(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ri(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=Ka(e._renderChildren,o),t.$scopedSlots=Po,t._c=function(e,n,o,r){return Ci(t,e,n,o,r,!1)},t.$createElement=function(e,n,o,r){return Ci(t,e,n,o,r,!0)};var r=n&&n.data;ca(t,"$attrs",r&&r.attrs||Po,null,!0),ca(t,"$listeners",e._parentListeners||Po,null,!0)}(e),zi(e,"beforeCreate"),function(t){var e=Ga(t.$options.inject,t);e&&(ia(!1),Object.keys(e).forEach((function(n){ca(t,n,e[n])})),ia(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},o=t._props={},r=t.$options._propKeys=[];!t.$parent||ia(!1);var a=function(a){r.push(a);var i=xa(a,e,n,t);ca(o,a,i),a in t||os(t,"_props",a)};for(var i in e)a(i);ia(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?dr:lr(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;Wo(e=t._data="function"==typeof e?function(t,e){Xr();try{return t.call(e,e)}catch(t){return Sa(t,e,"data()"),{}}finally{Yr()}}(e,t):e||{})||(e={});for(var n=Object.keys(e),o=t.$options.props,r=(t.$options.methods,n.length);r--;){var a=n[r];o&&er(o,a)||Er(a)||os(t,"_data",a)}la(e,!0)}(t):la(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),o=Fr();for(var r in e){var a=e[r],i="function"==typeof a?a:a.get;o||(n[r]=new es(t,i||dr,dr,rs)),r in t||as(t,r,a)}}(t,e.computed),e.watch&&e.watch!==Rr&&function(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var r=0;r1?cr(n):n;for(var o=cr(arguments,1),r='event handler for "'+t+'"',a=0,i=n.length;aparseInt(this.max)&&ms(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ms(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){hs(t,(function(t){return fs(e,t)}))})),this.$watch("exclude",(function(e){hs(t,(function(t){return!fs(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Di(t),n=e&&e.componentOptions;if(n){var o=ds(n),r=this.include,a=this.exclude;if(r&&(!o||!fs(r,o))||a&&o&&fs(a,o))return e;var i=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;i[l]?(e.componentInstance=i[l].componentInstance,Qo(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}},ys={KeepAlive:bs};!function(t){var e={get:function(){return xr}};Object.defineProperty(t,"config",e),t.util={warn:Wr,extend:ur,mergeOptions:va,defineReactive:ca},t.set=ua,t.delete=pa,t.nextTick=Ha,t.observable=function(t){return la(t),t},t.options=Object.create(null),vr.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,ur(t.options.components,ys),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=cr(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=va(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,r=t._Ctor||(t._Ctor={});if(r[o])return r[o];var a=t.name||n.options.name,i=function(t){this._init(t)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=e++,i.options=va(n.options,t),i.super=n,i.options.props&&function(t){var e=t.options.props;for(var n in e)os(t.prototype,"_props",n)}(i),i.options.computed&&function(t){var e=t.options.computed;for(var n in e)as(t.prototype,n,e[n])}(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,vr.forEach((function(t){i[t]=n[t]})),a&&(i.options.components[a]=i),i.superOptions=n.options,i.extendOptions=t,i.sealedOptions=ur({},i.options),r[o]=i,i}}(t),function(t){vr.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&Wo(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ps),Object.defineProperty(ps.prototype,"$isServer",{get:Fr}),Object.defineProperty(ps.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ps,"FunctionalRenderContext",{value:vi}),ps.version="2.6.14";var vs=Yo("style,class"),ks=Yo("input,textarea,option,select,progress"),xs=function(t,e,n){return"value"===n&&ks(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ws=Yo("contenteditable,draggable,spellcheck"),Es=Yo("events,caret,typing,plaintext-only"),_s=function(t,e){return $s(e)||"false"===e?"false":"contenteditable"===t&&Es(e)?e:"true"},Os=Yo("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ss="http://www.w3.org/1999/xlink",Ts=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Cs=function(t){return Ts(t)?t.slice(6,t.length):""},$s=function(t){return null==t||!1===t};function As(t,e){return{staticClass:Ns(t.staticClass,e.staticClass),class:Fo(t.class)?[t.class,e.class]:e.class}}function Ns(t,e){return t?e?t+" "+e:t:e||""}function Ls(t){return Array.isArray(t)?function(t){for(var e,n="",o=0,r=t.length;o-1?ol(t,e,n):Os(e)?$s(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ws(e)?t.setAttribute(e,_s(e,n)):Ts(e)?$s(n)?t.removeAttributeNS(Ss,Cs(e)):t.setAttributeNS(Ss,e,n):ol(t,e,n)}function ol(t,e,n){if($s(n))t.removeAttribute(e);else{if(Lr&&!Dr&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var o=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",o)};t.addEventListener("input",o),t.__ieph=!0}t.setAttribute(e,n)}}var rl={create:el,update:el};function al(t,e){var n=e.elm,o=e.data,r=t.data;if(!(Ho(o.staticClass)&&Ho(o.class)&&(Ho(r)||Ho(r.staticClass)&&Ho(r.class)))){var a=function(t){for(var e=t.data,n=t,o=t;Fo(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=As(o.data,e));for(;Fo(n=n.parent);)n&&n.data&&(e=As(e,n.data));return r=e.staticClass,a=e.class,Fo(r)||Fo(a)?Ns(r,Ls(a)):"";var r,a}(e),i=n._transitionClasses;Fo(i)&&(a=Ns(a,Ls(i))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var il,sl,ll,cl,ul,pl,dl={create:al,update:al},fl=/[\w).+\-_$\]]/;function hl(t){var e,n,o,r,a,i=!1,s=!1,l=!1,c=!1,u=0,p=0,d=0,f=0;for(o=0;o=0&&" "===(m=t.charAt(h));h--);m&&fl.test(m)||(c=!0)}}else void 0===r?(f=o+1,r=t.slice(0,o).trim()):g();function g(){(a||(a=[])).push(t.slice(f,o).trim()),f=o+1}if(void 0===r?r=t.slice(0,o).trim():0!==f&&g(),a)for(o=0;o-1?{exp:t.slice(0,cl),key:'"'+t.slice(cl+1)+'"'}:{exp:t,key:null};for(sl=t,cl=ul=pl=0;!Nl();)Ll(ll=Al())?Il(ll):91===ll&&Dl(ll);return{exp:t.slice(0,ul),key:t.slice(ul+1,pl)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Al(){return sl.charCodeAt(++cl)}function Nl(){return cl>=il}function Ll(t){return 34===t||39===t}function Dl(t){var e=1;for(ul=cl;!Nl();)if(Ll(t=Al()))Il(t);else if(91===t&&e++,93===t&&e--,0===e){pl=cl;break}}function Il(t){for(var e=t;!Nl()&&(t=Al())!==e;);}var Ml,jl="__r",Rl="__c";function Pl(t,e,n){var o=Ml;return function r(){null!==e.apply(null,arguments)&&Vl(t,r,n,o)}}var Hl=Na&&!(jr&&Number(jr[1])<=53);function Fl(t,e,n,o){if(Hl){var r=Yi,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Ml.addEventListener(t,e,Pr?{capture:n,passive:o}:n)}function Vl(t,e,n,o){(o||Ml).removeEventListener(t,e._wrapper||e,n)}function ql(t,e){if(!Ho(t.data.on)||!Ho(e.data.on)){var n=e.data.on||{},o=t.data.on||{};Ml=e.elm,function(t){if(Fo(t[jl])){var e=Lr?"change":"input";t[e]=[].concat(t[jl],t[e]||[]),delete t[jl]}Fo(t[Rl])&&(t.change=[].concat(t[Rl],t.change||[]),delete t[Rl])}(n),Wa(n,o,Fl,Vl,Pl,e.context),Ml=void 0}}var zl,Ul={create:ql,update:ql};function Wl(t,e){if(!Ho(t.data.domProps)||!Ho(e.data.domProps)){var n,o,r=e.elm,a=t.data.domProps||{},i=e.data.domProps||{};for(n in Fo(i.__ob__)&&(i=e.data.domProps=ur({},i)),a)n in i||(r[n]="");for(n in i){if(o=i[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===a[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=o;var s=Ho(o)?"":String(o);Bl(r,s)&&(r.value=s)}else if("innerHTML"===n&&Ms(r.tagName)&&Ho(r.innerHTML)){(zl=zl||document.createElement("div")).innerHTML=""+o+"";for(var l=zl.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;l.firstChild;)r.appendChild(l.firstChild)}else if(o!==a[n])try{r[n]=o}catch(t){}}}}function Bl(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,o=t._vModifiers;if(Fo(o)){if(o.number)return Xo(n)!==Xo(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Zl={create:Wl,update:Wl},Jl=nr((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var o=t.split(n);o.length>1&&(e[o[0].trim()]=o[1].trim())}})),e}));function Xl(t){var e=Yl(t.style);return t.staticStyle?ur(t.staticStyle,e):e}function Yl(t){return Array.isArray(t)?pr(t):"string"==typeof t?Jl(t):t}var Gl,Kl=/^--/,Ql=/\s*!important$/,tc=function(t,e,n){if(Kl.test(e))t.style.setProperty(e,n);else if(Ql.test(n))t.style.setProperty(sr(e),n.replace(Ql,""),"important");else{var o=nc(e);if(Array.isArray(n))for(var r=0,a=n.length;r-1?e.split(ac).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function sc(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ac).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";n.indexOf(o)>=0;)n=n.replace(o," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function lc(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&ur(e,cc(t.name||"v")),ur(e,t),e}return"string"==typeof t?cc(t):void 0}}var cc=nr((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),uc=Cr&&!Dr,pc="transition",dc="animation",fc="transition",hc="transitionend",mc="animation",gc="animationend";uc&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fc="WebkitTransition",hc="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(mc="WebkitAnimation",gc="webkitAnimationEnd"));var bc=Cr?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function yc(t){bc((function(){bc(t)}))}function vc(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),ic(t,e))}function kc(t,e){t._transitionClasses&&Qo(t._transitionClasses,e),sc(t,e)}function xc(t,e,n){var o=Ec(t,e),r=o.type,a=o.timeout,i=o.propCount;if(!r)return n();var s=r===pc?hc:gc,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=i&&c()};setTimeout((function(){l0&&(n=pc,u=i,p=a.length):e===dc?c>0&&(n=dc,u=c,p=l.length):p=(n=(u=Math.max(i,c))>0?i>c?pc:dc:null)?n===pc?a.length:l.length:0,{type:n,timeout:u,propCount:p,hasTransform:n===pc&&wc.test(o[fc+"Property"])}}function _c(t,e){for(;t.length1}function Ac(t,e){!0!==e.data.show&&Sc(e)}var Nc=function(t){var e,n,o={},r=t.modules,a=t.nodeOps;for(e=0;ed?h(t,Ho(n[b+1])?null:n[b+1].elm,n,p,b,o):p>b&&g(e,u,d)}(c,f,m,n,l):Fo(m)?(Fo(t.text)&&a.setTextContent(c,""),h(c,null,m,0,m.length-1,n)):Fo(f)?g(f,0,f.length-1):Fo(t.text)&&a.setTextContent(c,""):t.text!==e.text&&a.setTextContent(c,e.text),Fo(d)&&Fo(u=d.hook)&&Fo(u=u.postpatch)&&u(t,e)}}}function k(t,e,n){if(Vo(n)&&Fo(t.parent))t.parent.data.pendingInsert=e;else for(var o=0;o-1,i.selected!==a&&(i.selected=a);else if(mr(jc(i),o))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Mc(t,e){return e.every((function(e){return!mr(e,t)}))}function jc(t){return"_value"in t?t._value:t.value}function Rc(t){t.target.composing=!0}function Pc(t){t.target.composing&&(t.target.composing=!1,Hc(t.target,"input"))}function Hc(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Fc(t){return!t.componentInstance||t.data&&t.data.transition?t:Fc(t.componentInstance._vnode)}var Vc={bind:function(t,e,n){var o=e.value,r=(n=Fc(n)).data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;o&&r?(n.data.show=!0,Sc(n,(function(){t.style.display=a}))):t.style.display=o?a:"none"},update:function(t,e,n){var o=e.value;!o!=!e.oldValue&&((n=Fc(n)).data&&n.data.transition?(n.data.show=!0,o?Sc(n,(function(){t.style.display=t.__vOriginalDisplay})):Tc(n,(function(){t.style.display="none"}))):t.style.display=o?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,o,r){r||(t.style.display=t.__vOriginalDisplay)}},qc={model:Lc,show:Vc},zc={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Uc(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Uc(Di(e.children)):t}function Wc(t){var e={},n=t.$options;for(var o in n.propsData)e[o]=t[o];var r=n._parentListeners;for(var a in r)e[rr(a)]=r[a];return e}function Bc(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Zc=function(t){return t.tag||ti(t)},Jc=function(t){return"show"===t.name},Xc={name:"transition",props:zc,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Zc)).length){var o=this.mode,r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var a=Uc(r);if(!a)return r;if(this._leaving)return Bc(t,r);var i="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?i+"comment":i+a.tag:qo(a.key)?0===String(a.key).indexOf(i)?a.key:i+a.key:a.key;var s=(a.data||(a.data={})).transition=Wc(this),l=this._vnode,c=Uc(l);if(a.data.directives&&a.data.directives.some(Jc)&&(a.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(a,c)&&!ti(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=ur({},s);if("out-in"===o)return this._leaving=!0,Ba(u,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Bc(t,r);if("in-out"===o){if(ti(a))return l;var p,d=function(){p()};Ba(s,"afterEnter",d),Ba(s,"enterCancelled",d),Ba(u,"delayLeave",(function(t){p=t}))}}return r}}},Yc=ur({tag:String,moveClass:String},zc);delete Yc.mode;var Gc={props:Yc,beforeMount:function(){var t=this,e=this._update;this._update=function(n,o){var r=Hi(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,o)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],i=Wc(this),s=0;s-1?Ps[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ps[t]=/HTMLUnknownElement/.test(e.toString())},ur(ps.options.directives,qc),ur(ps.options.components,eu),ps.prototype.__patch__=Cr?Nc:dr,ps.prototype.$mount=function(t,e){return function(t,e,n){var o;return t.$el=e,t.$options.render||(t.$options.render=Qr),zi(t,"beforeMount"),o=function(){t._update(t._render(),n)},new es(t,o,dr,{before:function(){t._isMounted&&!t._isDestroyed&&zi(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,zi(t,"mounted")),t}(this,t=t&&Cr?Fs(t):void 0,e)},Cr&&setTimeout((function(){xr.devtools&&Vr&&Vr.emit("init",ps)}),0);var nu,ou=/\{\{((?:.|\r?\n)+?)\}\}/g,ru=/[-.*+?^${}()|[\]\/\\]/g,au=nr((function(t){var e=t[0].replace(ru,"\\$&"),n=t[1].replace(ru,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),iu={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Ol(t,"class");n&&(t.staticClass=JSON.stringify(n));var o=_l(t,"class",!1);o&&(t.classBinding=o)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},su={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Ol(t,"style");n&&(t.staticStyle=JSON.stringify(Jl(n)));var o=_l(t,"style",!1);o&&(t.styleBinding=o)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},lu=Yo("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),cu=Yo("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),uu=Yo("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),pu=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,du=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,fu="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+wr.source+"]*",hu="((?:"+fu+"\\:)?"+fu+")",mu=new RegExp("^<"+hu),gu=/^\s*(\/?)>/,bu=new RegExp("^<\\/"+hu+"[^>]*>"),yu=/^]+>/i,vu=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},_u=/&(?:lt|gt|quot|amp|#39);/g,Ou=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Su=Yo("pre,textarea",!0),Tu=function(t,e){return t&&Su(t)&&"\n"===e[0]};function Cu(t,e){var n=e?Ou:_u;return t.replace(n,(function(t){return Eu[t]}))}var $u,Au,Nu,Lu,Du,Iu,Mu,ju,Ru=/^@|^v-on:/,Pu=/^v-|^@|^:|^#/,Hu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Fu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vu=/^\(|\)$/g,qu=/^\[.*\]$/,zu=/:(.*)$/,Uu=/^:|^\.|^v-bind:/,Wu=/\.[^.\]]+(?=[^\]]*$)/g,Bu=/^v-slot(:|$)|^#/,Zu=/[\r\n]/,Ju=/[ \f\t\r\n]+/g,Xu=nr((function(t){return(nu=nu||document.createElement("div")).innerHTML=t,nu.textContent})),Yu="_empty_";function Gu(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:op(e),rawAttrsMap:{},parent:n,children:[]}}function Ku(t,e){var n;!function(t){var e=_l(t,"key");e&&(t.key=e)}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=_l(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Ol(t,"scope"),t.slotScope=e||Ol(t,"slot-scope")):(e=Ol(t,"slot-scope"))&&(t.slotScope=e);var n=_l(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||vl(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var o=Sl(t,Bu);if(o){var r=ep(o),a=r.name,i=r.dynamic;t.slotTarget=a,t.slotTargetDynamic=i,t.slotScope=o.value||Yu}}else{var s=Sl(t,Bu);if(s){var l=t.scopedSlots||(t.scopedSlots={}),c=ep(s),u=c.name,p=c.dynamic,d=l[u]=Gu("template",[],t);d.slotTarget=u,d.slotTargetDynamic=p,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=s.value||Yu,t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=_l(n,"name")),function(t){var e;(e=_l(t,"is"))&&(t.component=e),null!=Ol(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),El(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+i+");if(Array.isArray($$a)){var $$v="+(o?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$l(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$l(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$l(e,"$$c")+"}",null,!0)}(t,o,r);else if("input"===a&&"radio"===i)!function(t,e,n){var o=n&&n.number,r=_l(t,"value")||"null";yl(t,"checked","_q("+e+","+(r=o?"_n("+r+")":r)+")"),El(t,"change",$l(e,r),null,!0)}(t,o,r);else if("input"===a||"textarea"===a)!function(t,e,n){var o=t.attrsMap.type,r=n||{},a=r.lazy,i=r.number,s=r.trim,l=!a&&"range"!==o,c=a?"change":"range"===o?jl:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),i&&(u="_n("+u+")");var p=$l(e,u);l&&(p="if($event.target.composing)return;"+p),yl(t,"value","("+e+")"),El(t,c,p,null,!0),(s||i)&&El(t,"blur","$forceUpdate()")}(t,o,r);else if(!xr.isReservedTag(a))return Cl(t,o,r),!1;return!0},text:function(t,e){e.value&&yl(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&yl(t,"innerHTML","_s("+e.value+")",e)}},fp={expectHTML:!0,modules:pp,directives:dp,isPreTag:function(t){return"pre"===t},isUnaryTag:lu,mustUseProp:xs,canBeLeftOpenTag:cu,isReservedTag:js,getTagNamespace:Rs,staticKeys:(cp=pp,cp.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(","))},hp=nr((function(t){return Yo("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function mp(t,e){t&&(sp=hp(e.staticKeys||""),lp=e.isReservedTag||fr,gp(t),bp(t,!1))}function gp(t){if(t.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Go(t.tag)||!lp(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(sp))))}(t),1===t.type){if(!lp(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e|^function(?:\s+[\w$]+)?\s*\(/,vp=/\([^)]*?\);*$/,kp=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,xp={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},wp={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ep=function(t){return"if("+t+")return null;"},_p={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ep("$event.target !== $event.currentTarget"),ctrl:Ep("!$event.ctrlKey"),shift:Ep("!$event.shiftKey"),alt:Ep("!$event.altKey"),meta:Ep("!$event.metaKey"),left:Ep("'button' in $event && $event.button !== 0"),middle:Ep("'button' in $event && $event.button !== 1"),right:Ep("'button' in $event && $event.button !== 2")};function Op(t,e){var n=e?"nativeOn:":"on:",o="",r="";for(var a in t){var i=Sp(t[a]);t[a]&&t[a].dynamic?r+=a+","+i+",":o+='"'+a+'":'+i+","}return o="{"+o.slice(0,-1)+"}",r?n+"_d("+o+",["+r.slice(0,-1)+"])":n+o}function Sp(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Sp(t)})).join(",")+"]";var e=kp.test(t.value),n=yp.test(t.value),o=kp.test(t.value.replace(vp,""));if(t.modifiers){var r="",a="",i=[];for(var s in t.modifiers)if(_p[s])a+=_p[s],xp[s]&&i.push(s);else if("exact"===s){var l=t.modifiers;a+=Ep(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else i.push(s);return i.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Tp).join("&&")+")return null;"}(i)),a&&(r+=a),"function($event){"+r+(e?"return "+t.value+".apply(null, arguments)":n?"return ("+t.value+").apply(null, arguments)":o?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(o?"return "+t.value:t.value)+"}"}function Tp(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=xp[t],o=wp[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Cp={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:dr},$p=function(t){this.options=t,this.warn=t.warn||gl,this.transforms=bl(t.modules,"transformCode"),this.dataGenFns=bl(t.modules,"genData"),this.directives=ur(ur({},Cp),t.directives);var e=t.isReservedTag||fr;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ap(t,e){var n=new $p(e);return{render:"with(this){return "+(t?"script"===t.tag?"null":Np(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Np(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Lp(t,e);if(t.once&&!t.onceProcessed)return Dp(t,e);if(t.for&&!t.forProcessed)return jp(t,e);if(t.if&&!t.ifProcessed)return Ip(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',o=Fp(t,e),r="_t("+n+(o?",function(){return "+o+"}":""),a=t.attrs||t.dynamicAttrs?zp((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:rr(t.name),value:t.value,dynamic:t.dynamic}}))):null,i=t.attrsMap["v-bind"];return!a&&!i||o||(r+=",null"),a&&(r+=","+a),i&&(r+=(a?"":",null")+","+i),r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var o=e.inlineTemplate?null:Fp(e,n,!0);return"_c("+t+","+Rp(e,n)+(o?","+o:"")+")"}(t.component,t,e);else{var o;(!t.plain||t.pre&&e.maybeComponent(t))&&(o=Rp(t,e));var r=t.inlineTemplate?null:Fp(t,e,!0);n="_c('"+t.tag+"'"+(o?","+o:"")+(r?","+r:"")+")"}for(var a=0;a>>0}(i):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var a=function(t,e){var n=t.children[0];if(n&&1===n.type){var o=Ap(n,e.options);return"inlineTemplate:{render:function(){"+o.render+"},staticRenderFns:["+o.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+zp(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Pp(t){return 1===t.type&&("slot"===t.tag||t.children.some(Pp))}function Hp(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Ip(t,e,Hp,"null");if(t.for&&!t.forProcessed)return jp(t,e,Hp);var o=t.slotScope===Yu?"":String(t.slotScope),r="function("+o+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Fp(t,e)||"undefined")+":undefined":Fp(t,e)||"undefined":Np(t,e))+"}",a=o?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+a+"}"}function Fp(t,e,n,o,r){var a=t.children;if(a.length){var i=a[0];if(1===a.length&&i.for&&"template"!==i.tag&&"slot"!==i.tag){var s=n?e.maybeComponent(i)?",1":",0":"";return""+(o||Np)(i,e)+s}var l=n?function(t,e){for(var n=0,o=0;o]*>)","i")),d=t.replace(p,(function(t,n,o){return c=o.length,xu(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Tu(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-d.length,t=d,S(u,l-c,l)}else{var f=t.indexOf("<");if(0===f){if(vu.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),l,l+h+3),E(h+3);continue}}if(ku.test(t)){var m=t.indexOf("]>");if(m>=0){E(m+2);continue}}var g=t.match(yu);if(g){E(g[0].length);continue}var b=t.match(bu);if(b){var y=l;E(b[0].length),S(b[1],y,l);continue}var v=_();if(v){O(v),Tu(v.tagName,t)&&E(1);continue}}var k=void 0,x=void 0,w=void 0;if(f>=0){for(x=t.slice(f);!(bu.test(x)||mu.test(x)||vu.test(x)||ku.test(x)||(w=x.indexOf("<",1))<0);)f+=w,x=t.slice(f);k=t.substring(0,f)}f<0&&(k=t),k&&E(k.length),e.chars&&k&&e.chars(k,l-k.length,l)}if(t===n){e.chars&&e.chars(t);break}}function E(e){l+=e,t=t.substring(e)}function _(){var e=t.match(mu);if(e){var n,o,r={tagName:e[1],attrs:[],start:l};for(E(e[0].length);!(n=t.match(gu))&&(o=t.match(du)||t.match(pu));)o.start=l,E(o[0].length),o.end=l,r.attrs.push(o);if(n)return r.unarySlash=n[1],E(n[0].length),r.end=l,r}}function O(t){var n=t.tagName,l=t.unarySlash;a&&("p"===o&&uu(n)&&S(o),s(n)&&o===n&&S(n));for(var c=i(n)||!!l,u=t.attrs.length,p=new Array(u),d=0;d=0&&r[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=r.length-1;c>=i;c--)e.end&&e.end(r[c].tag,n,a);r.length=i,o=i&&r[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,a):"p"===s&&(e.start&&e.start(t,[],!1,n,a),e.end&&e.end(t,n,a))}S()}(t,{warn:$u,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,a,i,u,p){var d=o&&o.ns||ju(t);Lr&&"svg"===d&&(a=function(t){for(var e=[],n=0;nl&&(s.push(a=t.slice(l,r)),i.push(JSON.stringify(a)));var c=hl(o[1].trim());i.push("_s("+c+")"),s.push({"@binding":c}),l=r+o[0].length}return l':'
',Jp.innerHTML.indexOf(" ")>0}var Qp=!!Cr&&Kp(!1),td=!!Cr&&Kp(!0),ed=nr((function(t){var e=Fs(t);return e&&e.innerHTML})),nd=ps.prototype.$mount;ps.prototype.$mount=function(t,e){if((t=t&&Fs(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var o=n.template;if(o)if("string"==typeof o)"#"===o.charAt(0)&&(o=ed(o));else{if(!o.nodeType)return this;o=o.innerHTML}else t&&(o=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(o){var r=Gp(o,{outputSourceRange:!1,shouldDecodeNewlines:Qp,shouldDecodeNewlinesForHref:td,delimiters:n.delimiters,comments:n.comments},this),a=r.render,i=r.staticRenderFns;n.render=a,n.staticRenderFns=i}}return nd.call(this,t,e)},ps.compile=Gp;const od=ps;function rd(t,e){return new(od.extend(od.options.components[t]))(e)}class ad{constructor(t,e){this.issue=t,this.target=e}}class id{constructor(t){this.issues=t,this.vue=rd("LinterPopup",{propsData:{issue:null}}),this.vue.$on("fix",(t=>t.fix())),this.vue.$mount()}getEnrichments(){return this.issues.filter((t=>t.get("target"))).map((t=>new ad(t,t.get("target"))))}getPopupContent(t,e){return this.vue.issue=t.issue.attributes,this.vue.$el}markCreated(t,e){const n=t.issue;e.classList.add(`enrichment--${n.attributes.severity}`)}popupCreated(t,e){}}window.enrichments=t;class sd extends Error{}class ld extends sd{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class cd extends sd{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class ud extends sd{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class pd extends sd{}class dd extends sd{constructor(t){super(`Invalid unit ${t}`)}}class fd extends sd{}class hd extends sd{constructor(){super("Zone is an abstract class")}}const md="numeric",gd="short",bd="long",yd={year:md,month:md,day:md},vd={year:md,month:gd,day:md},kd={year:md,month:gd,day:md,weekday:gd},xd={year:md,month:bd,day:md},wd={year:md,month:bd,day:md,weekday:bd},Ed={hour:md,minute:md},_d={hour:md,minute:md,second:md},Od={hour:md,minute:md,second:md,timeZoneName:gd},Sd={hour:md,minute:md,second:md,timeZoneName:bd},Td={hour:md,minute:md,hourCycle:"h23"},Cd={hour:md,minute:md,second:md,hourCycle:"h23"},$d={hour:md,minute:md,second:md,hourCycle:"h23",timeZoneName:gd},Ad={hour:md,minute:md,second:md,hourCycle:"h23",timeZoneName:bd},Nd={year:md,month:md,day:md,hour:md,minute:md},Ld={year:md,month:md,day:md,hour:md,minute:md,second:md},Dd={year:md,month:gd,day:md,hour:md,minute:md},Id={year:md,month:gd,day:md,hour:md,minute:md,second:md},Md={year:md,month:gd,day:md,weekday:gd,hour:md,minute:md},jd={year:md,month:bd,day:md,hour:md,minute:md,timeZoneName:gd},Rd={year:md,month:bd,day:md,hour:md,minute:md,second:md,timeZoneName:gd},Pd={year:md,month:bd,day:md,weekday:bd,hour:md,minute:md,timeZoneName:bd},Hd={year:md,month:bd,day:md,weekday:bd,hour:md,minute:md,second:md,timeZoneName:bd};class Fd{get type(){throw new hd}get name(){throw new hd}get ianaName(){return this.name}get isUniversal(){throw new hd}offsetName(t,e){throw new hd}formatOffset(t,e){throw new hd}offset(t){throw new hd}equals(t){throw new hd}get isValid(){throw new hd}}let Vd=null;class qd extends Fd{static get instance(){return null===Vd&&(Vd=new qd),Vd}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return nh(t,e,n)}formatOffset(t,e){return ih(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let zd={};const Ud={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Wd={};class Bd extends Fd{static create(t){return Wd[t]||(Wd[t]=new Bd(t)),Wd[t]}static resetCache(){Wd={},zd={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Bd.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return nh(t,e,n,this.name)}formatOffset(t,e){return ih(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(o=this.name,zd[o]||(zd[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),zd[o]);var o;let[r,a,i,s,l,c,u]=n.formatToParts?function(t,e){const n=t.formatToParts(e),o=[];for(let t=0;t=0?d:1e3+d,(Kf({year:r,month:a,day:i,hour:24===l?0:l,minute:c,second:u,millisecond:0})-p)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Zd={},Jd={};function Xd(t,e={}){const n=JSON.stringify([t,e]);let o=Jd[n];return o||(o=new Intl.DateTimeFormat(t,e),Jd[n]=o),o}let Yd={},Gd={},Kd=null,Qd={};function tf(t,e,n,o){const r=t.listingMode();return"error"===r?null:"en"===r?n(e):o(e)}class ef{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:o,floor:r,...a}=n;if(!e||Object.keys(a).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let o=Yd[n];return o||(o=new Intl.NumberFormat(t,e),Yd[n]=o),o}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Uf(this.floor?Math.floor(t):Jf(t,3),this.padTo)}}class nf{constructor(t,e,n){let o;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&Bd.create(n).valid?(o=n,this.dt=t):(o="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||o,this.dtf=Xd(e,r)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class of{constructor(t,e,n){this.opts={style:"long",...n},!e&&Pf()&&(this.rtf=function(t,e={}){const{base:n,...o}=e,r=JSON.stringify([t,o]);let a=Gd[r];return a||(a=new Intl.RelativeTimeFormat(t,e),Gd[r]=a),a}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",o=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&a){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${r[t][0]}`;case-1:return n?"yesterday":`last ${r[t][0]}`;case 0:return n?"today":`this ${r[t][0]}`}}const i=Object.is(e,-0)||e<0,s=Math.abs(e),l=1===s,c=r[t],u=o?l?c[1]:c[2]||c[1]:l?r[t][0]:t;return i?`${s} ${u} ago`:`in ${s} ${u}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const rf={firstDay:1,minimalDays:4,weekend:[6,7]};class af{static fromOpts(t){return af.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,o,r=!1){const a=t||vf.defaultLocale,i=a||(r?"en-US":Kd||(Kd=(new Intl.DateTimeFormat).resolvedOptions().locale,Kd)),s=e||vf.defaultNumberingSystem,l=n||vf.defaultOutputCalendar,c=qf(o)||vf.defaultWeekSettings;return new af(i,s,l,c,a)}static resetCache(){Kd=null,Jd={},Yd={},Gd={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:o}={}){return af.create(t,e,n,o)}constructor(t,e,n,o,r){const[a,i,s]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,o;try{e=Xd(t).resolvedOptions(),o=t}catch(r){const a=t.substring(0,n);e=Xd(a).resolvedOptions(),o=a}const{numberingSystem:r,calendar:a}=e;return[o,r,a]}}(t);this.locale=a,this.numberingSystem=e||i||null,this.outputCalendar=n||s||null,this.weekSettings=o,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?af.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,qf(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return tf(this,t,ph,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},o=e?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=function(t){const e=[];for(let n=1;n<=12;n++){const o=dg.utc(2009,n,1);e.push(t(o))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[o][t]}))}weekdays(t,e=!1){return tf(this,t,mh,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=e?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=function(t){const e=[];for(let n=1;n<=7;n++){const o=dg.utc(2016,11,13+n);e.push(t(o))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[o][t]}))}meridiems(){return tf(this,void 0,(()=>gh),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dg.utc(2016,11,13,9),dg.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return tf(this,t,kh,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[dg.utc(-40,1,1),dg.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const o=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return o?o.value:null}numberFormatter(t={}){return new ef(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new nf(t,this.intl,e)}relFormatter(t={}){return new of(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let o=Zd[n];return o||(o=new Intl.ListFormat(t,e),Zd[n]=o),o}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Hf()?function(t){let e=Qd[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Qd[t]=e}return e}(this.locale):rf}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let sf=null;class lf extends Fd{static get utcInstance(){return null===sf&&(sf=new lf(0)),sf}static instance(t){return 0===t?lf.utcInstance:new lf(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new lf(oh(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ih(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ih(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ih(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class cf extends Fd{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function uf(t,e){if(Mf(t)||null===t)return e;if(t instanceof Fd)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?qd.instance:"utc"===n||"gmt"===n?lf.utcInstance:lf.parseSpecifier(n)||Bd.create(t)}return jf(t)?lf.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new cf(t)}let pf,df=()=>Date.now(),ff="system",hf=null,mf=null,gf=null,bf=60,yf=null;class vf{static get now(){return df}static set now(t){df=t}static set defaultZone(t){ff=t}static get defaultZone(){return uf(ff,qd.instance)}static get defaultLocale(){return hf}static set defaultLocale(t){hf=t}static get defaultNumberingSystem(){return mf}static set defaultNumberingSystem(t){mf=t}static get defaultOutputCalendar(){return gf}static set defaultOutputCalendar(t){gf=t}static get defaultWeekSettings(){return yf}static set defaultWeekSettings(t){yf=qf(t)}static get twoDigitCutoffYear(){return bf}static set twoDigitCutoffYear(t){bf=t%100}static get throwOnInvalid(){return pf}static set throwOnInvalid(t){pf=t}static resetCaches(){af.resetCache(),Bd.resetCache()}}class kf{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const xf=[0,31,59,90,120,151,181,212,243,273,304,334],wf=[0,31,60,91,121,152,182,213,244,274,305,335];function Ef(t,e){return new kf("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function _f(t,e,n){const o=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const r=o.getUTCDay();return 0===r?7:r}function Of(t,e,n){return n+(Xf(t)?wf:xf)[e-1]}function Sf(t,e){const n=Xf(t)?wf:xf,o=n.findIndex((t=>tth(o,e,n)?(l=o+1,c=1):l=o,{weekYear:l,weekNumber:c,weekday:s,...sh(t)}}function $f(t,e=4,n=1){const{weekYear:o,weekNumber:r,weekday:a}=t,i=Tf(_f(o,1,e),n),s=Yf(o);let l,c=7*r+a-i-7+e;c<1?(l=o-1,c+=Yf(l)):c>s?(l=o+1,c-=Yf(o)):l=o;const{month:u,day:p}=Sf(l,c);return{year:l,month:u,day:p,...sh(t)}}function Af(t){const{year:e,month:n,day:o}=t;return{year:e,ordinal:Of(e,n,o),...sh(t)}}function Nf(t){const{year:e,ordinal:n}=t,{month:o,day:r}=Sf(e,n);return{year:e,month:o,day:r,...sh(t)}}function Lf(t,e){if(!Mf(t.localWeekday)||!Mf(t.localWeekNumber)||!Mf(t.localWeekYear)){if(!Mf(t.weekday)||!Mf(t.weekNumber)||!Mf(t.weekYear))throw new pd("Cannot mix locale-based week fields with ISO-based week fields");return Mf(t.localWeekday)||(t.weekday=t.localWeekday),Mf(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Mf(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Df(t){const e=Rf(t.year),n=zf(t.month,1,12),o=zf(t.day,1,Gf(t.year,t.month));return e?n?!o&&Ef("day",t.day):Ef("month",t.month):Ef("year",t.year)}function If(t){const{hour:e,minute:n,second:o,millisecond:r}=t,a=zf(e,0,23)||24===e&&0===n&&0===o&&0===r,i=zf(n,0,59),s=zf(o,0,59),l=zf(r,0,999);return a?i?s?!l&&Ef("millisecond",r):Ef("second",o):Ef("minute",n):Ef("hour",e)}function Mf(t){return void 0===t}function jf(t){return"number"==typeof t}function Rf(t){return"number"==typeof t&&t%1==0}function Pf(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Hf(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Ff(t,e,n){if(0!==t.length)return t.reduce(((t,o)=>{const r=[e(o),o];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function Vf(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function qf(t){if(null==t)return null;if("object"!=typeof t)throw new fd("Week settings must be an object");if(!zf(t.firstDay,1,7)||!zf(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!zf(t,1,7))))throw new fd("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function zf(t,e,n){return Rf(t)&&t>=e&&t<=n}function Uf(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Wf(t){return Mf(t)||null===t||""===t?void 0:parseInt(t,10)}function Bf(t){return Mf(t)||null===t||""===t?void 0:parseFloat(t)}function Zf(t){if(!Mf(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Jf(t,e,n=!1){const o=10**e;return(n?Math.trunc:Math.round)(t*o)/o}function Xf(t){return t%4==0&&(t%100!=0||t%400==0)}function Yf(t){return Xf(t)?366:365}function Gf(t,e){const n=(o=e-1)-12*Math.floor(o/12)+1;var o;return 2===n?Xf(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Kf(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Qf(t,e,n){return-Tf(_f(t,1,e),n)+e-1}function th(t,e=4,n=1){const o=Qf(t,e,n),r=Qf(t+1,e,n);return(Yf(t)-o+r)/7}function eh(t){return t>99?t:t>vf.twoDigitCutoffYear?1900+t:2e3+t}function nh(t,e,n,o=null){const r=new Date(t),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(a.timeZone=o);const i={timeZoneName:e,...a},s=new Intl.DateTimeFormat(n,i).formatToParts(r).find((t=>"timezonename"===t.type.toLowerCase()));return s?s.value:null}function oh(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const o=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-o:o)}function rh(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new fd(`Invalid unit value ${t}`);return e}function ah(t,e){const n={};for(const o in t)if(Vf(t,o)){const r=t[o];if(null==r)continue;n[e(o)]=rh(r)}return n}function ih(t,e){const n=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${Uf(n,2)}:${Uf(o,2)}`;case"narrow":return`${r}${n}${o>0?`:${o}`:""}`;case"techie":return`${r}${Uf(n,2)}${Uf(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function sh(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const lh=["January","February","March","April","May","June","July","August","September","October","November","December"],ch=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],uh=["J","F","M","A","M","J","J","A","S","O","N","D"];function ph(t){switch(t){case"narrow":return[...uh];case"short":return[...ch];case"long":return[...lh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const dh=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fh=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],hh=["M","T","W","T","F","S","S"];function mh(t){switch(t){case"narrow":return[...hh];case"short":return[...fh];case"long":return[...dh];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const gh=["AM","PM"],bh=["Before Christ","Anno Domini"],yh=["BC","AD"],vh=["B","A"];function kh(t){switch(t){case"narrow":return[...vh];case"short":return[...yh];case"long":return[...bh];default:return null}}function xh(t,e){let n="";for(const o of t)o.literal?n+=o.val:n+=e(o.val);return n}const wh={D:yd,DD:vd,DDD:xd,DDDD:wd,t:Ed,tt:_d,ttt:Od,tttt:Sd,T:Td,TT:Cd,TTT:$d,TTTT:Ad,f:Nd,ff:Dd,fff:jd,ffff:Pd,F:Ld,FF:Id,FFF:Rd,FFFF:Hd};class Eh{static create(t,e={}){return new Eh(t,e)}static parseFormat(t){let e=null,n="",o=!1;const r=[];for(let a=0;a0&&r.push({literal:o||/^\s+$/.test(n),val:n}),e=null,n="",o=!o):o||i===e?n+=i:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=i,e=i)}return n.length>0&&r.push({literal:o||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(t){return wh[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return Uf(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(e,n)=>this.loc.extract(t,e,n),a=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",i=(e,o)=>n?function(t,e){return ph(e)[t.month-1]}(t,e):r(o?{month:e}:{month:e,day:"numeric"},"month"),s=(e,o)=>n?function(t,e){return mh(e)[t.weekday-1]}(t,e):r(o?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),l=e=>{const n=Eh.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return kh(e)[t.year<0?0:1]}(t,e):r({era:e},"era");return xh(Eh.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return gh[t.hour<12?0:1]}(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return o?r({day:"numeric"},"day"):this.num(t.day);case"dd":return o?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return o?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return i("short",!0);case"LLLL":return i("long",!0);case"LLLLL":return i("narrow",!0);case"M":return o?r({month:"numeric"},"month"):this.num(t.month);case"MM":return o?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return i("short",!1);case"MMMM":return i("long",!1);case"MMMMM":return i("narrow",!1);case"y":return o?r({year:"numeric"},"year"):this.num(t.year);case"yy":return o?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return l(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=Eh.parseFormat(e),r=o.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]);return xh(o,(t=>e=>{const o=n(e);return o?this.num(t.get(o),e.length):e})(t.shiftTo(...r.map(n).filter((t=>t)))))}}const _h=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Oh(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function Sh(...t){return e=>t.reduce((([t,n,o],r)=>{const[a,i,s]=r(e,o);return[{...t,...a},i||n,s]}),[{},null,1]).slice(0,2)}function Th(t,...e){if(null==t)return[null,null];for(const[n,o]of e){const e=n.exec(t);if(e)return o(e)}return[null,null]}function Ch(...t){return(e,n)=>{const o={};let r;for(r=0;rvoid 0!==t&&(e||t&&u)?-t:t;return[{years:d(Bf(n)),months:d(Bf(o)),weeks:d(Bf(r)),days:d(Bf(a)),hours:d(Bf(i)),minutes:d(Bf(s)),seconds:d(Bf(l),"-0"===l),milliseconds:d(Zf(c),p)}]}const Uh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Wh(t,e,n,o,r,a,i){const s={year:2===e.length?eh(Wf(e)):Wf(e),month:ch.indexOf(n)+1,day:Wf(o),hour:Wf(r),minute:Wf(a)};return i&&(s.second=Wf(i)),t&&(s.weekday=t.length>3?dh.indexOf(t)+1:fh.indexOf(t)+1),s}const Bh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Zh(t){const[,e,n,o,r,a,i,s,l,c,u,p]=t,d=Wh(e,r,o,n,a,i,s);let f;return f=l?Uh[l]:c?0:oh(u,p),[d,new lf(f)]}const Jh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Xh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Yh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Gh(t){const[,e,n,o,r,a,i,s]=t;return[Wh(e,r,o,n,a,i,s),lf.utcInstance]}function Kh(t){const[,e,n,o,r,a,i,s]=t;return[Wh(e,s,n,o,r,a,i),lf.utcInstance]}const Qh=Oh(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Lh),tm=Oh(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Lh),em=Oh(/(\d{4})-?(\d{3})/,Lh),nm=Oh(Nh),om=Sh((function(t,e){return[{year:Rh(t,e),month:Rh(t,e+1,1),day:Rh(t,e+2,1)},null,e+3]}),Ph,Hh,Fh),rm=Sh(Dh,Ph,Hh,Fh),am=Sh(Ih,Ph,Hh,Fh),im=Sh(Ph,Hh,Fh),sm=Sh(Ph),lm=Oh(/(\d{4})-(\d\d)-(\d\d)/,jh),cm=Oh(Mh),um=Sh(Ph,Hh,Fh),pm="Invalid Duration",dm={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},fm={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...dm},hm={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...dm},mm=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],gm=mm.slice(0).reverse();function bm(t,e,n=!1){const o={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new km(o)}function ym(t,e){let n=e.milliseconds??0;for(const o of gm.slice(1))e[o]&&(n+=e[o]*t[o].milliseconds);return n}function vm(t,e){const n=ym(t,e)<0?-1:1;mm.reduceRight(((o,r)=>{if(Mf(e[r]))return o;if(o){const a=e[o]*n,i=t[r][o],s=Math.floor(a/i);e[r]+=s*n,e[o]-=s*i*n}return r}),null),mm.reduce(((n,o)=>{if(Mf(e[o]))return n;if(n){const r=e[n]%1;e[n]-=r,e[o]+=r*t[n][o]}return o}),null)}class km{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?hm:fm;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||af.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return km.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new fd("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new km({values:ah(t,km.normalizeUnit),loc:af.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(jf(t))return km.fromMillis(t);if(km.isDuration(t))return t;if("object"==typeof t)return km.fromObject(t);throw new fd(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return Th(t,[qh,zh])}(t);return n?km.fromObject(n,e):km.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return Th(t,[Vh,sm])}(t);return n?km.fromObject(n,e):km.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new fd("need to specify a reason the Duration is invalid");const n=t instanceof kf?t:new kf(t,e);if(vf.throwOnInvalid)throw new ud(n);return new km({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new dd(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Eh.create(this.loc,n).formatDurationFromString(this,t):pm}toHuman(t={}){if(!this.isValid)return pm;const e=mm.map((e=>{const n=this.values[e];return Mf(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Jf(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},dg.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ym(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=km.fromDurationLike(t),n={};for(const t of mm)(Vf(e.values,t)||Vf(this.values,t))&&(n[t]=e.get(t)+this.get(t));return bm(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=km.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=rh(t(this.values[n],n));return bm(this,{values:e},!0)}get(t){return this[km.normalizeUnit(t)]}set(t){return this.isValid?bm(this,{values:{...this.values,...ah(t,km.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:o}={}){return bm(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:o,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return vm(this.matrix,t),bm(this,{values:t},!0)}rescale(){return this.isValid?bm(this,{values:function(t){const e={};for(const[n,o]of Object.entries(t))0!==o&&(e[n]=o);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>km.normalizeUnit(t)));const e={},n={},o=this.toObject();let r;for(const a of mm)if(t.indexOf(a)>=0){r=a;let t=0;for(const e in n)t+=this.matrix[e][a]*n[e],n[e]=0;jf(o[a])&&(t+=o[a]);const i=Math.trunc(t);e[a]=i,n[a]=(1e3*t-1e3*i)/1e3}else jf(o[a])&&(n[a]=o[a]);for(const t in n)0!==n[t]&&(e[r]+=t===r?n[t]:n[t]/this.matrix[r][t]);return vm(this.matrix,e),bm(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return bm(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const o of mm)if(e=this.values[o],n=t.values[o],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const xm="Invalid Interval";class wm{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new fd("need to specify a reason the Interval is invalid");const n=t instanceof kf?t:new kf(t,e);if(vf.throwOnInvalid)throw new cd(n);return new wm({invalid:n})}static fromDateTimes(t,e){const n=fg(t),o=fg(e),r=function(t,e){return t&&t.isValid?e&&e.isValid?et}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?wm.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(fg).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:o}=this,r=0;for(;o+this.e?this.e:t;n.push(wm.fromDateTimes(o,a)),o=a,r+=1}return n}splitBy(t){const e=km.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:o}=this,r=1;const a=[];for(;ot*r)));n=+t>+this.e?this.e:t,a.push(wm.fromDateTimes(o,n)),o=n,r+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e=n?null:wm.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.st.e?this.e:t.e;return wm.fromDateTimes(e,n)}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const o=[],r=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),a=Array.prototype.concat(...r).sort(((t,e)=>t.time-e.time));for(const t of a)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&o.push(wm.fromDateTimes(e,t.time)),e=null);return wm.merge(o)}difference(...t){return wm.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:xm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=yd,e={}){return this.isValid?Eh.create(this.s.loc.clone(e),t).formatInterval(this):xm}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:xm}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:xm}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:xm}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:xm}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):km.invalid(this.invalidReason)}mapEndpoints(t){return wm.fromDateTimes(t(this.s),t(this.e))}}class Em{static hasDST(t=vf.defaultZone){const e=dg.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Bd.isValidZone(t)}static normalizeZone(t){return uf(t,vf.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||af.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||af.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||af.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||af.create(e,n,r)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||af.create(e,n,r)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null}={}){return(o||af.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null}={}){return(o||af.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return af.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return af.create(e,null,"gregory").eras(t)}static features(){return{relative:Pf(),localeWeek:Hf()}}}function _m(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(e)-n(t);return Math.floor(km.fromMillis(o).as("days"))}const Om={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Sm={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Tm=Om.hanidec.replace(/[\[|\]]/g,"").split("");function Cm({numberingSystem:t},e=""){return new RegExp(`${Om[t||"latn"]}${e}`)}function $m(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=n&&o<=r&&(e+=o-n)}}return parseInt(e,10)}return e}(t))}}const Am=`[ ${String.fromCharCode(160)}]`,Nm=new RegExp(Am,"g");function Lm(t){return t.replace(/\./g,"\\.?").replace(Nm,Am)}function Dm(t){return t.replace(/\./g,"").replace(Nm," ").toLowerCase()}function Im(t,e){return null===t?null:{regex:RegExp(t.map(Lm).join("|")),deser:([n])=>t.findIndex((t=>Dm(n)===Dm(t)))+e}}function Mm(t,e){return{regex:t,deser:([,t,e])=>oh(t,e),groups:e}}function jm(t){return{regex:t,deser:([t])=>t}}const Rm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Pm=null;function Hm(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Vm(Eh.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function Fm(t,e,n){const o=Hm(Eh.parseFormat(n),t),r=o.map((e=>function(t,e){const n=Cm(e),o=Cm(e,"{2}"),r=Cm(e,"{3}"),a=Cm(e,"{4}"),i=Cm(e,"{6}"),s=Cm(e,"{1,2}"),l=Cm(e,"{1,3}"),c=Cm(e,"{1,6}"),u=Cm(e,"{1,9}"),p=Cm(e,"{2,4}"),d=Cm(e,"{4,6}"),f=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},h=(h=>{if(t.literal)return f(h);switch(h.val){case"G":return Im(e.eras("short"),0);case"GG":return Im(e.eras("long"),0);case"y":return $m(c);case"yy":case"kk":return $m(p,eh);case"yyyy":case"kkkk":return $m(a);case"yyyyy":return $m(d);case"yyyyyy":return $m(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return $m(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return $m(o);case"MMM":return Im(e.months("short",!0),1);case"MMMM":return Im(e.months("long",!0),1);case"LLL":return Im(e.months("short",!1),1);case"LLLL":return Im(e.months("long",!1),1);case"o":case"S":return $m(l);case"ooo":case"SSS":return $m(r);case"u":return jm(u);case"uu":return jm(s);case"uuu":case"E":case"c":return $m(n);case"a":return Im(e.meridiems(),0);case"EEE":return Im(e.weekdays("short",!1),1);case"EEEE":return Im(e.weekdays("long",!1),1);case"ccc":return Im(e.weekdays("short",!0),1);case"cccc":return Im(e.weekdays("long",!0),1);case"Z":case"ZZ":return Mm(new RegExp(`([+-]${s.source})(?::(${o.source}))?`),2);case"ZZZ":return Mm(new RegExp(`([+-]${s.source})(${o.source})?`),2);case"z":return jm(/[a-z_+-/]{1,256}?/i);case" ":return jm(/[^\S\n\r]/);default:return f(h)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return h.token=t,h}(e,t))),a=r.find((t=>t.invalidReason));if(a)return{input:e,tokens:o,invalidReason:a.invalidReason};{const[t,n]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,t]}(r),a=RegExp(t,"i"),[i,s]=function(t,e,n){const o=t.match(e);if(o){const t={};let e=1;for(const r in n)if(Vf(n,r)){const a=n[r],i=a.groups?a.groups+1:1;!a.literal&&a.token&&(t[a.token.val[0]]=a.deser(o.slice(e,e+i))),e+=i}return[o,t]}return[o,{}]}(e,a,n),[l,c,u]=s?function(t){let e,n=null;return Mf(t.z)||(n=Bd.create(t.z)),Mf(t.Z)||(n||(n=new lf(t.Z)),e=t.Z),Mf(t.q)||(t.M=3*(t.q-1)+1),Mf(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Mf(t.u)||(t.S=Zf(t.u)),[Object.keys(t).reduce(((e,n)=>{const o=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return o&&(e[o]=t[n]),e}),{}),n,e]}(s):[null,null,void 0];if(Vf(s,"a")&&Vf(s,"H"))throw new pd("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:a,rawMatches:i,matches:s,result:l,zone:c,specificOffset:u}}}function Vm(t,e){if(!t)return null;const n=Eh.create(e,t).dtFormatter((Pm||(Pm=dg.fromMillis(1555555555555)),Pm)),o=n.formatToParts(),r=n.resolvedOptions();return o.map((e=>function(t,e,n){const{type:o,value:r}=t;if("literal"===o){const t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}const a=e[o];let i=o;"hour"===o&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Rm[i];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(e,t,r)))}const qm="Invalid DateTime",zm=864e13;function Um(t){return new kf("unsupported zone",`the zone "${t.name}" is not supported`)}function Wm(t){return null===t.weekData&&(t.weekData=Cf(t.c)),t.weekData}function Bm(t){return null===t.localWeekData&&(t.localWeekData=Cf(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Zm(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new dg({...n,...e,old:n})}function Jm(t,e,n){let o=t-60*e*1e3;const r=n.offset(o);if(e===r)return[o,e];o-=60*(r-e)*1e3;const a=n.offset(o);return r===a?[o,r]:[t-60*Math.min(r,a)*1e3,Math.max(r,a)]}function Xm(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ym(t,e,n){return Jm(Kf(t),e,n)}function Gm(t,e){const n=t.o,o=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),a={...t.c,year:o,month:r,day:Math.min(t.c.day,Gf(o,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},i=km.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Kf(a);let[l,c]=Jm(s,n,t.zone);return 0!==i&&(l+=i,c=t.zone.offset(l)),{ts:l,o:c}}function Km(t,e,n,o,r,a){const{setZone:i,zone:s}=n;if(t&&0!==Object.keys(t).length||e){const o=e||s,r=dg.fromObject(t,{...n,zone:o,specificOffset:a});return i?r:r.setZone(s)}return dg.invalid(new kf("unparsable",`the input "${r}" can't be parsed as ${o}`))}function Qm(t,e,n=!0){return t.isValid?Eh.create(af.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function tg(t,e){const n=t.c.year>9999||t.c.year<0;let o="";return n&&t.c.year>=0&&(o+="+"),o+=Uf(t.c.year,n?6:4),e?(o+="-",o+=Uf(t.c.month),o+="-",o+=Uf(t.c.day)):(o+=Uf(t.c.month),o+=Uf(t.c.day)),o}function eg(t,e,n,o,r,a){let i=Uf(t.c.hour);return e?(i+=":",i+=Uf(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(i+=":")):i+=Uf(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(i+=Uf(t.c.second),0===t.c.millisecond&&o||(i+=".",i+=Uf(t.c.millisecond,3))),r&&(t.isOffsetFixed&&0===t.offset&&!a?i+="Z":t.o<0?(i+="-",i+=Uf(Math.trunc(-t.o/60)),i+=":",i+=Uf(Math.trunc(-t.o%60))):(i+="+",i+=Uf(Math.trunc(t.o/60)),i+=":",i+=Uf(Math.trunc(t.o%60)))),a&&(i+="["+t.zone.ianaName+"]"),i}const ng={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},og={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ag=["year","month","day","hour","minute","second","millisecond"],ig=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sg=["year","ordinal","hour","minute","second","millisecond"];function lg(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new dd(t);return e}(t)}}function cg(t,e){const n=uf(e.zone,vf.defaultZone),o=af.fromObject(e),r=vf.now();let a,i;if(Mf(t.year))a=r;else{for(const e of ag)Mf(t[e])&&(t[e]=ng[e]);const e=Df(t)||If(t);if(e)return dg.invalid(e);const o=n.offset(r);[a,i]=Ym(t,o,n)}return new dg({ts:a,zone:n,loc:o,o:i})}function ug(t,e,n){const o=!!Mf(n.round)||n.round,r=(t,r)=>(t=Jf(t,o||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,r)),a=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(a(n.unit),n.unit);for(const t of n.units){const e=a(t);if(Math.abs(e)>=1)return r(e,t)}return r(t>e?-0:0,n.units[n.units.length-1])}function pg(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class dg{constructor(t){const e=t.zone||vf.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new kf("invalid input"):null)||(e.isValid?null:Um(e));this.ts=Mf(t.ts)?vf.now():t.ts;let o=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[o,r]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);o=Xm(this.ts,t),n=Number.isNaN(o.year)?new kf("invalid input"):null,o=n?null:o,r=n?null:t}this._zone=e,this.loc=t.loc||af.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=r,this.isLuxonDateTime=!0}static now(){return new dg({})}static local(){const[t,e]=pg(arguments),[n,o,r,a,i,s,l]=e;return cg({year:n,month:o,day:r,hour:a,minute:i,second:s,millisecond:l},t)}static utc(){const[t,e]=pg(arguments),[n,o,r,a,i,s,l]=e;return t.zone=lf.utcInstance,cg({year:n,month:o,day:r,hour:a,minute:i,second:s,millisecond:l},t)}static fromJSDate(t,e={}){const n=(o=t,"[object Date]"===Object.prototype.toString.call(o)?t.valueOf():NaN);var o;if(Number.isNaN(n))return dg.invalid("invalid input");const r=uf(e.zone,vf.defaultZone);return r.isValid?new dg({ts:n,zone:r,loc:af.fromObject(e)}):dg.invalid(Um(r))}static fromMillis(t,e={}){if(jf(t))return t<-zm||t>zm?dg.invalid("Timestamp out of range"):new dg({ts:t,zone:uf(e.zone,vf.defaultZone),loc:af.fromObject(e)});throw new fd(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(jf(t))return new dg({ts:1e3*t,zone:uf(e.zone,vf.defaultZone),loc:af.fromObject(e)});throw new fd("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=uf(e.zone,vf.defaultZone);if(!n.isValid)return dg.invalid(Um(n));const o=af.fromObject(e),r=ah(t,lg),{minDaysInFirstWeek:a,startOfWeek:i}=Lf(r,o),s=vf.now(),l=Mf(e.specificOffset)?n.offset(s):e.specificOffset,c=!Mf(r.ordinal),u=!Mf(r.year),p=!Mf(r.month)||!Mf(r.day),d=u||p,f=r.weekYear||r.weekNumber;if((d||c)&&f)throw new pd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&c)throw new pd("Can't mix ordinal dates with month/day");const h=f||r.weekday&&!d;let m,g,b=Xm(s,l);h?(m=ig,g=og,b=Cf(b,a,i)):c?(m=sg,g=rg,b=Af(b)):(m=ag,g=ng);let y=!1;for(const t of m)Mf(r[t])?r[t]=y?g[t]:b[t]:y=!0;const v=h?function(t,e=4,n=1){const o=Rf(t.weekYear),r=zf(t.weekNumber,1,th(t.weekYear,e,n)),a=zf(t.weekday,1,7);return o?r?!a&&Ef("weekday",t.weekday):Ef("week",t.weekNumber):Ef("weekYear",t.weekYear)}(r,a,i):c?function(t){const e=Rf(t.year),n=zf(t.ordinal,1,Yf(t.year));return e?!n&&Ef("ordinal",t.ordinal):Ef("year",t.year)}(r):Df(r),k=v||If(r);if(k)return dg.invalid(k);const x=h?$f(r,a,i):c?Nf(r):r,[w,E]=Ym(x,l,n),_=new dg({ts:w,zone:n,o:E,loc:o});return r.weekday&&d&&t.weekday!==_.weekday?dg.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${_.toISO()}`):_}static fromISO(t,e={}){const[n,o]=function(t){return Th(t,[Qh,om],[tm,rm],[em,am],[nm,im])}(t);return Km(n,o,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,o]=function(t){return Th(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Bh,Zh])}(t);return Km(n,o,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,o]=function(t){return Th(t,[Jh,Gh],[Xh,Gh],[Yh,Kh])}(t);return Km(n,o,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Mf(t)||Mf(e))throw new fd("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:r=null}=n,a=af.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),[i,s,l,c]=function(t,e,n){const{result:o,zone:r,specificOffset:a,invalidReason:i}=Fm(t,e,n);return[o,r,a,i]}(a,t,e);return c?dg.invalid(c):Km(i,s,n,`format ${e}`,t,l)}static fromString(t,e,n={}){return dg.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,o]=function(t){return Th(t,[lm,om],[cm,um])}(t);return Km(n,o,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new fd("need to specify a reason the DateTime is invalid");const n=t instanceof kf?t:new kf(t,e);if(vf.throwOnInvalid)throw new ld(n);return new dg({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=Vm(t,af.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return Hm(Eh.parseFormat(t),af.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Wm(this).weekYear:NaN}get weekNumber(){return this.isValid?Wm(this).weekNumber:NaN}get weekday(){return this.isValid?Wm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Bm(this).weekday:NaN}get localWeekNumber(){return this.isValid?Bm(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Bm(this).weekYear:NaN}get ordinal(){return this.isValid?Af(this.c).ordinal:NaN}get monthShort(){return this.isValid?Em.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Em.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Em.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Em.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Kf(this.c),o=this.zone.offset(n-t),r=this.zone.offset(n+t),a=this.zone.offset(n-o*e),i=this.zone.offset(n-r*e);if(a===i)return[this];const s=n-a*e,l=n-i*e,c=Xm(s,a),u=Xm(l,i);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[Zm(this,{ts:s}),Zm(this,{ts:l})]:[this]}get isInLeapYear(){return Xf(this.year)}get daysInMonth(){return Gf(this.year,this.month)}get daysInYear(){return this.isValid?Yf(this.year):NaN}get weeksInWeekYear(){return this.isValid?th(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?th(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:o}=Eh.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:o}}toUTC(t=0,e={}){return this.setZone(lf.instance(t),e)}toLocal(){return this.setZone(vf.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=uf(t,vf.defaultZone)).equals(this.zone))return this;if(t.isValid){let o=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[o]=Ym(n,e,t)}return Zm(this,{ts:o,zone:t})}return dg.invalid(Um(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Zm(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=ah(t,lg),{minDaysInFirstWeek:n,startOfWeek:o}=Lf(e,this.loc),r=!Mf(e.weekYear)||!Mf(e.weekNumber)||!Mf(e.weekday),a=!Mf(e.ordinal),i=!Mf(e.year),s=!Mf(e.month)||!Mf(e.day),l=i||s,c=e.weekYear||e.weekNumber;if((l||a)&&c)throw new pd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new pd("Can't mix ordinal dates with month/day");let u;r?u=$f({...Cf(this.c,n,o),...e},n,o):Mf(e.ordinal)?(u={...this.toObject(),...e},Mf(e.day)&&(u.day=Math.min(Gf(u.year,u.month),u.day))):u=Nf({...Af(this.c),...e});const[p,d]=Ym(u,this.o,this.zone);return Zm(this,{ts:p,o:d})}plus(t){return this.isValid?Zm(this,Gm(this,km.fromDurationLike(t))):this}minus(t){return this.isValid?Zm(this,Gm(this,km.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},o=km.normalizeUnit(t);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===o)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;ethis.valueOf(),i=function(t,e,n,o){let[r,a,i,s]=function(t,e,n){const o=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=_m(t,e);return(n-n%7)/7}],["days",_m]],r={},a=t;let i,s;for(const[l,c]of o)n.indexOf(l)>=0&&(i=l,r[l]=c(t,e),s=a.plus(r),s>e?(r[l]--,(t=a.plus(r))>e&&(s=t,r[l]--,t=a.plus(r))):t=s);return[t,r,s,i]}(t,e,n);const l=e-r,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(i0?km.fromMillis(l,o).shiftTo(...c).plus(u):u}(a?this:t,a?t:this,r,o);var s;return a?i.negate():i}diffNow(t="milliseconds",e={}){return this.diff(dg.now(),t,e)}until(t){return this.isValid?wm.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const o=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e,n)<=o&&o<=r.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||dg.fromObject({},{zone:this.zone}),n=t.padding?thist.valueOf()),Math.min)}static max(...t){if(!t.every(dg.isDateTime))throw new fd("max requires all arguments be DateTimes");return Ff(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:o=null,numberingSystem:r=null}=n;return Fm(af.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return dg.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return yd}static get DATE_MED(){return vd}static get DATE_MED_WITH_WEEKDAY(){return kd}static get DATE_FULL(){return xd}static get DATE_HUGE(){return wd}static get TIME_SIMPLE(){return Ed}static get TIME_WITH_SECONDS(){return _d}static get TIME_WITH_SHORT_OFFSET(){return Od}static get TIME_WITH_LONG_OFFSET(){return Sd}static get TIME_24_SIMPLE(){return Td}static get TIME_24_WITH_SECONDS(){return Cd}static get TIME_24_WITH_SHORT_OFFSET(){return $d}static get TIME_24_WITH_LONG_OFFSET(){return Ad}static get DATETIME_SHORT(){return Nd}static get DATETIME_SHORT_WITH_SECONDS(){return Ld}static get DATETIME_MED(){return Dd}static get DATETIME_MED_WITH_SECONDS(){return Id}static get DATETIME_MED_WITH_WEEKDAY(){return Md}static get DATETIME_FULL(){return jd}static get DATETIME_FULL_WITH_SECONDS(){return Rd}static get DATETIME_HUGE(){return Pd}static get DATETIME_HUGE_WITH_SECONDS(){return Hd}}function fg(t){if(dg.isDateTime(t))return t;if(t&&t.valueOf&&jf(t.valueOf()))return dg.fromJSDate(t);if(t&&"object"==typeof t)return dg.fromObject(t);throw new fd(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function hg(t){(t||document).querySelectorAll(".time-ago[data-timestamp]").forEach((t=>{const e=dg.fromISO(t.getAttribute("data-timestamp"));t.innerText=e.toRelative(),t.getAttribute("title")||(t.dataset.bsToggle="tooltip",t.dataset.bsPlacement="top",t.dataset.bsTitle=e.toLocaleString(dg.DATETIME_FULL))}))}!function t(){hg(),window.setTimeout(t,6e4)}();var mg=__webpack_require__(37);const gg={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class bg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||gg,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o{let[e,o]=t;for(let t=0;t{let[o,r]=e;for(let e=0;e{t=n,e=o}));return n.resolve=t,n.reject=e,n}function xg(t){return null==t?"":""+t}const wg=/###/g;function Eg(t,e,n){function o(t){return t&&t.indexOf("###")>-1?t.replace(wg,"."):t}function r(){return!t||"string"==typeof t}const a="string"!=typeof e?e:e.split(".");let i=0;for(;i":">",'"':""","'":"'","/":"/"};function $g(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(t=>Cg[t])):t}const Ag=[" ",",","?","!",";"],Ng=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20);function Lg(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let t=0;t-1&&i0?t.replace("_","-"):t}class Ig extends vg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,e],n&&(Array.isArray(n)?i.push(...n):"string"==typeof n&&r?i.push(...n.split(r)):i.push(n)));const s=Og(this.data,i);return!s&&!e&&!n&&t.indexOf(".")>-1&&(t=i[0],e=i[1],n=i.slice(2).join(".")),s||!a||"string"!=typeof n?s:Lg(this.data&&this.data[t]&&this.data[t][e],n,r)}addResource(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let i=[t,e];n&&(i=i.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(i=t.split("."),o=e,e=i[1]),this.addNamespaces(e),_g(this.data,i,o),r.silent||this.emit("added",t,e,n,o)}addResources(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,e,o,n[o],{silent:!0});o.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,o,r){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[t,e];t.indexOf(".")>-1&&(i=t.split("."),o=n,n=e,e=i[1]),this.addNamespaces(e);let s=Og(this.data,i)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Sg(s,n,r):s={...s,...n},_g(this.data,i,s),a.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var Mg={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,o,r))})),e}};const jg={};class Rg extends vg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(t,e,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{e[t]&&(n[t]=e[t])}))}(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=yg.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,n){e=e||"",n=n||"";const o=Ag.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===o.length)return!0;const r=Ng.getRegExp(`(${o.map((t=>"?"===t?"\\?":t)).join("|")})`);let a=!r.test(t);if(!a){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(a=!0)}return a}(t,n,o));if(a&&!i){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const a=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),t=a.join(o)}return"string"==typeof r&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:a,namespaces:i}=this.extractFromKey(t[t.length-1],e),s=i[i.length-1],l=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const t=e.nsSeparator||this.options.nsSeparator;return o?{res:`${s}${t}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(e)}:`${s}${t}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(e)}:a}const u=this.resolve(t,e);let p=u&&u.res;const d=u&&u.usedKey||a,f=u&&u.exactUsedKey||a,h=Object.prototype.toString.apply(p),m=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&p&&"string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof m||"[object Array]"!==h)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,p,{...e,ns:i}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(u.res=t,u.usedParams=this.getUsedParamsDetails(e),u):t}if(r){const t="[object Array]"===h,n=t?[]:{},o=t?f:d;for(const t in p)if(Object.prototype.hasOwnProperty.call(p,t)){const a=`${o}${r}${t}`;n[t]=this.translate(a,{...e,joinArrays:!1,ns:i}),n[t]===a&&(n[t]=p[t])}p=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)p=p.join(m),p&&(p=this.extendTranslation(p,t,e,n));else{let o=!1,i=!1;const c=void 0!==e.count&&"string"!=typeof e.count,d=Rg.hasDefaultValue(e),f=c?this.pluralResolver.getSuffix(l,e.count,e):"",h=e.ordinal&&c?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",m=c&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${f}`]||e[`defaultValue${h}`]||e.defaultValue;!this.isValidLookup(p)&&d&&(o=!0,p=g),this.isValidLookup(p)||(i=!0,p=a);const b=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,y=d&&g!==p&&this.options.updateMissing;if(i||o||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,a,y?g:p),r){const t=this.resolve(a,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e{const r=d&&o!==p?o:b;this.options.missingKeyHandler?this.options.missingKeyHandler(t,s,n,r,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,s,n,r,y,e),this.emit("missingKey",t,s,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);m&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{o([t],a+n,e[`defaultValue${n}`]||g)}))})):o(t,a,g))}p=this.extendTranslation(p,t,e,u,n),i&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${a}`),(i||o)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,o?p:void 0):this.options.parseMissingKeyHandler(p))}return o?(u.res=p,u.usedParams=this.getUsedParamsDetails(e),u):p}extendTranslation(t,e,n,o,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(i){const e=t.match(this.interpolator.nestingRegexp);s=e&&e.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,n.lng||this.language,n),i){const e=t.match(this.interpolator.nestingRegexp);s<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&o&&o.res&&(n.lng=o.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,o=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const s=this.extractFromKey(t,i),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==i.count&&"string"!=typeof i.count,p=u&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==i.context&&("string"==typeof i.context||"number"==typeof i.context)&&""!==i.context,f=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);c.forEach((t=>{this.isValidLookup(e)||(a=t,!jg[`${f[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(jg[`${f[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((n=>{if(this.isValidLookup(e))return;r=n;const a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,n,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(n,i.count,i));const e=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(a.push(l+t),i.ordinal&&0===t.indexOf(o)&&a.push(l+t.replace(o,this.options.pluralSeparator)),p&&a.push(l+e)),d){const n=`${l}${this.options.contextSeparator}${i.context}`;a.push(n),u&&(a.push(n+t),i.ordinal&&0===t.indexOf(o)&&a.push(n+t.replace(o,this.options.pluralSeparator)),p&&a.push(n+e))}}let s;for(;s=a.pop();)this.isValidLookup(e)||(o=s,e=this.getResource(n,t,s,i))})))}))})),{res:e,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,o):this.resourceStore.getResource(t,e,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&"string"!=typeof t.replace;let o=n?t.replace:t;if(n&&void 0!==t.count&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const t of e)delete o[t]}return o}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}function Pg(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Hg{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yg.create("languageUtils")}getScriptPartFromCode(t){if(!(t=Dg(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=Dg(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pg(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pg(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=Pg(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),o=[],r=t=>{t&&(this.isSupportedCode(t)?o.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):"string"==typeof t&&r(this.formatLanguageCode(t)),n.forEach((t=>{o.indexOf(t)<0&&r(this.formatLanguageCode(t))})),o}}let Fg=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vg={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};const qg=["v1","v2","v3"],zg=["v4"],Ug={zero:0,one:1,two:2,few:3,many:4,other:5};class Wg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=yg.create("pluralResolver"),this.options.compatibilityJSON&&!zg.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const t={};return Fg.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:Vg[e.fc]}}))})),t}()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dg("dev"===t?"en":t),{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>Ug[t]-Ug[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(e)}`:this.getSuffixRetroCompatible(o,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let o=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===o?o="plural":1===o&&(o=""));const r=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?`_plural_${o.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!qg.includes(this.options.compatibilityJSON)}}function Bg(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=function(t,e,n){const o=Og(t,n);return void 0!==o?o:Og(e,n)}(t,e,n);return!a&&r&&"string"==typeof n&&(a=Lg(t,n,o),void 0===a&&(a=Lg(e,n,o))),a}class Zg{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yg.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const e=t.interpolation;this.escape=void 0!==e.escape?e.escape:$g,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?Tg(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?Tg(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?Tg(e.nestingPrefix):e.nestingPrefixEscaped||Tg("$t("),this.nestingSuffix=e.nestingSuffix?Tg(e.nestingSuffix):e.nestingSuffixEscaped||Tg(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,o){let r,a,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(t){return t.replace(/\$/g,"$$$$")}const c=t=>{if(t.indexOf(this.formatSeparator)<0){const r=Bg(e,s,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),a=r.shift().trim(),i=r.join(this.formatSeparator).trim();return this.format(Bg(e,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...o,...e,interpolationkey:a})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>l(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?l(this.escape(t)):l(t)}].forEach((e=>{for(i=0;r=e.regex.exec(t);){const n=r[1].trim();if(a=c(n),void 0===a)if("function"==typeof u){const e=u(t,r,o);a="string"==typeof e?e:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))a="";else{if(p){a=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),a=""}else"string"==typeof a||this.useRawValueToEscape||(a=xg(a));const s=e.safeValue(a);if(t=t.replace(r[0],s),p?(e.regex.lastIndex+=a.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),t}nest(t,e){let n,o,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(t,e){const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const o=t.split(new RegExp(`${n}[ ]*{`));let a=`{${o[1]}`;t=o[0],a=this.interpolate(a,r);const i=a.match(/'/g),s=a.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{r=JSON.parse(a),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${a}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t}for(;n=this.nestingRegexp.exec(t);){let s=[];r={...a},r=r.replace&&"string"!=typeof r.replace?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),s=t,l=!0}if(o=e(i.call(this,n[1].trim(),r),r),o&&n[0]===t&&"string"!=typeof o)return o;"string"!=typeof o&&(o=xg(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),o=""),l&&(o=s.reduce(((t,e)=>this.format(t,e,a.lng,{...a,interpolationkey:n[1].trim()})),o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}function Jg(t){const e={};return function(n,o,r){const a=o+JSON.stringify(r);let i=e[a];return i||(i=t(Dg(o),r),e[a]=i),i(n)}}class Xg{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yg.create("formatter"),this.options=t,this.formats={number:Jg(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:Jg(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:Jg(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:Jg(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:Jg(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=Jg(e)}format(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator).reduce(((t,e)=>{const{formatName:r,formatOptions:a}=function(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(!t)return;const[e,...o]=t.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,"");n[e.trim()]||(n[e.trim()]=r),"false"===r&&(n[e.trim()]=!1),"true"===r&&(n[e.trim()]=!0),isNaN(r)||(n[e.trim()]=parseInt(r,10))}))}return{formatName:e,formatOptions:n}}(e);if(this.formats[r]){let e=t;try{const i=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},s=i.locale||i.lng||o.locale||o.lng||n;e=this.formats[r](t,s,{...a,...o,...i})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t);return r}}class Yg extends vg{constructor(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=yg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,e,n,o){const r={},a={},i={},s={};return t.forEach((t=>{let o=!0;e.forEach((e=>{const i=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===a[i]&&(a[i]=!0):(this.state[i]=1,o=!1,void 0===a[i]&&(a[i]=!0),void 0===r[i]&&(r[i]=!0),void 0===s[e]&&(s[e]=!0)))})),o||(i[t]=!0)})),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(t,e,n){const o=t.split("|"),r=o[0],a=o[1];e&&this.emit("failedLoading",r,a,e),n&&this.store.addResourceBundle(r,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2;const i={};this.queue.forEach((n=>{!function(t,e,n){const{obj:o,k:r}=Eg(t,e,Object);o[r]=o[r]||[],o[r].push(n)}(n.loaded,[r],a),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{i[t]||(i[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===i[t][e]&&(i[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:o,wait:r,callback:a});this.readingCalls++;const i=(i,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}i&&s&&o{this.read.call(this,t,e,n,o+1,2*r,a)}),r):a(i,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(t,e,i);try{const n=s(t,e);n&&"function"==typeof n.then?n.then((t=>i(null,t))).catch(i):i(null,n)}catch(t){i(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);const r=this.queueLoad(t,e,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,((n,a)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${o} failed`,n),!n&&a&&this.logger.log(`${e}loaded namespace ${r} for language ${o}`,a),this.loaded(t,n,a)}))}saveMissing(t,e,n,o,r){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...a,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,o,s):l(t,e,n,o),r&&"function"==typeof r.then?r.then((t=>i(null,t))).catch(i):i(null,r)}catch(t){i(t)}else l(t,e,n,o,i,s)}t&&t[0]&&this.store.addResource(t[0],e,n,o)}}}function Gg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kg(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Qg(){}class tb extends vg{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Kg(t),this.services={},this.logger=yg,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const o=Gg();function r(t){return t?"function"==typeof t?new t:t:null}if(this.options={...o,...this.options,...Kg(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?yg.init(r(this.modules.logger),this.options):yg.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Xg);const n=new Hg(this.options);this.store=new Ig(this.options.resources,this.options);const a=this.services;a.logger=yg,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Wg(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(a.formatter=r(e),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Zg(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Yg(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Qg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const a=kg(),i=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),a}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qg;const n="string"==typeof t?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],o=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>o(t))),this.options.preload&&this.options.preload.forEach((t=>o(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const o=kg();return t||(t=this.languages),e||(e=this.options.ns),n||(n=Qg),this.services.backendConnector.reload(t,e,(t=>{o.resolve(),n(t)})),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&Mg.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const o=kg();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},a=(t,a)=>{a?(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,o.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},i=e=>{t||e||!this.services.languageDetector||(e=[]);const n="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{a(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect()),o}getFixedT(t,e,n){var o=this;const r=function(t,e){let a;if("object"!=typeof e){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l`${a.keyPrefix}${c}${t}`)):a.keyPrefix?`${a.keyPrefix}${c}${t}`:t,o.t(u,a)};return"string"==typeof t?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=e.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||2===n};if(e.precheck){const t=e.precheck(this,a);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,t)||o&&!a(r,t)))}loadNamespaces(t,e){const n=kg();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=kg();"string"==typeof t&&(t=[t]);const o=this.options.preload||[],r=t.filter((t=>o.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=o.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new Hg(Gg());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new tb(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qg;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},r=new tb(o);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new Ig(this.store.data,o),r.services.resourceStore=r.store),r.translator=new Rg(r.services,o),r.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o=1?t.alternateFetch:void 0;try{fb(e,i,o,s)}catch(t){if(!a||0===Object.keys(a).length||!t.message||t.message.indexOf("not implemented")<0)return o(t);try{Object.keys(a).forEach((function(t){delete i[t]})),fb(e,i,o,s),hb=!0}catch(t){o(t)}}}(t,e,n,o):ob()||"function"==typeof ActiveXObject?function(t,e,n,o){n&&"object"===pb(n)&&(n=db("",n).slice(1)),t.queryStringParams&&(e=db(e,t.queryStringParams));try{var r;(r=ab?new ab:new ib("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",e,1),t.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!t.withCredentials,n&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var a=t.customHeaders;if(a="function"==typeof a?a():a)for(var i in a)r.setRequestHeader(i,a[i]);r.onreadystatechange=function(){r.readyState>3&&o(r.status>=400?r.statusText:null,{status:r.status,data:r.responseText})},r.send(n)}catch(t){console&&console.log(t)}}(t,e,n,o):void o(new Error("No fetch and no xhr implementation found!"))};function gb(t){return gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gb(t)}function bb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yb(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.services=e,this.options=n,this.allOptions=o,this.type="backend",this.init(e,n,o)}var e,n;return e=t,n=[{key:"init",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=yb(yb(yb({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,e,n){return kb({},e,n||"")},parseLoadPayload:function(t,e){},request:mb,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval((function(){return e.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(t,e,n){this._readAny(t,t,e,e,n)}},{key:"read",value:function(t,e,n){this._readAny([t],t,[e],e,n)}},{key:"_readAny",value:function(t,e,n,o,r){var a,i=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(t,n)),(s=function(t){return!!t&&"function"==typeof t.then}(a=s)?a:Promise.resolve(a)).then((function(a){if(!a)return r(null,{});var s=i.services.interpolator.interpolate(a,{lng:t.join("+"),ns:n.join("+")});i.loadUrl(s,r,e,o)}))}},{key:"loadUrl",value:function(t,e,n,o){var r=this,a="string"==typeof n?[n]:n,i="string"==typeof o?[o]:o,s=this.options.parseLoadPayload(a,i);this.options.request(this.options,t,s,(function(a,i){if(i&&(i.status>=500&&i.status<600||!i.status))return e("failed loading "+t+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return e("failed loading "+t+"; status code: "+i.status,!1);if(!i&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return e("failed loading "+t+": "+a.message,!0);if(a)return e(a,!1);var s,l;try{s="string"==typeof i.data?r.options.parse(i.data,n,o):i.data}catch(e){l="failed parsing "+t+" to json"}if(l)return e(l,!1);e(null,s)}))}},{key:"create",value:function(t,e,n,o,r){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var i=this.options.parsePayload(e,n,o),s=0,l=[],c=[];t.forEach((function(n){var o=a.options.addPath;"function"==typeof a.options.addPath&&(o=a.options.addPath(n,e));var u=a.services.interpolator.interpolate(o,{lng:n,ns:e});a.options.request(a.options,u,i,(function(e,n){s+=1,l.push(e),c.push(n),s===t.length&&"function"==typeof r&&r(l,c)}))}))}}},{key:"reload",value:function(){var t=this,e=this.services,n=e.backendConnector,o=e.languageUtils,r=e.logger,a=n.language;if(!a||"cimode"!==a.toLowerCase()){var i=[],s=function(t){o.toResolveHierarchy(t).forEach((function(t){i.indexOf(t)<0&&i.push(t)}))};s(a),this.allOptions.preload&&this.allOptions.preload.forEach((function(t){return s(t)})),i.forEach((function(e){t.allOptions.ns.forEach((function(t){n.read(e,t,"read",null,null,(function(o,a){o&&r.warn("loading namespace ".concat(t," for language ").concat(e," failed"),o),!o&&a&&r.log("loaded namespace ".concat(t," for language ").concat(e),a),n.loaded("".concat(e,"|").concat(t),o,a)}))}))}))}}}],n&&vb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();wb.type="backend";const Eb=wb;function _b(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ob(t){return t instanceof _b(t).Element||t instanceof Element}function Sb(t){return t instanceof _b(t).HTMLElement||t instanceof HTMLElement}function Tb(t){return"undefined"!=typeof ShadowRoot&&(t instanceof _b(t).ShadowRoot||t instanceof ShadowRoot)}var Cb=Math.max,$b=Math.min,Ab=Math.round;function Nb(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Lb(){return!/^((?!chrome|android).)*safari/i.test(Nb())}function Db(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=1,a=1;e&&Sb(t)&&(r=t.offsetWidth>0&&Ab(o.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ab(o.height)/t.offsetHeight||1);var i=(Ob(t)?_b(t):window).visualViewport,s=!Lb()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/r,c=(o.top+(s&&i?i.offsetTop:0))/a,u=o.width/r,p=o.height/a;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Ib(t){var e=_b(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mb(t){return t?(t.nodeName||"").toLowerCase():null}function jb(t){return((Ob(t)?t.ownerDocument:t.document)||window.document).documentElement}function Rb(t){return Db(jb(t)).left+Ib(t).scrollLeft}function Pb(t){return _b(t).getComputedStyle(t)}function Hb(t){var e=Pb(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Fb(t,e,n){void 0===n&&(n=!1);var o,r,a=Sb(e),i=Sb(e)&&function(t){var e=t.getBoundingClientRect(),n=Ab(e.width)/t.offsetWidth||1,o=Ab(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),s=jb(e),l=Db(t,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Mb(e)||Hb(s))&&(c=(o=e)!==_b(o)&&Sb(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Ib(o)),Sb(e)?((u=Db(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Rb(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Vb(t){var e=Db(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function qb(t){return"html"===Mb(t)?t:t.assignedSlot||t.parentNode||(Tb(t)?t.host:null)||jb(t)}function zb(t){return["html","body","#document"].indexOf(Mb(t))>=0?t.ownerDocument.body:Sb(t)&&Hb(t)?t:zb(qb(t))}function Ub(t,e){var n;void 0===e&&(e=[]);var o=zb(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),a=_b(o),i=r?[a].concat(a.visualViewport||[],Hb(o)?o:[]):o,s=e.concat(i);return r?s:s.concat(Ub(qb(i)))}function Wb(t){return["table","td","th"].indexOf(Mb(t))>=0}function Bb(t){return Sb(t)&&"fixed"!==Pb(t).position?t.offsetParent:null}function Zb(t){for(var e=_b(t),n=Bb(t);n&&Wb(n)&&"static"===Pb(n).position;)n=Bb(n);return n&&("html"===Mb(n)||"body"===Mb(n)&&"static"===Pb(n).position)?e:n||function(t){var e=/firefox/i.test(Nb());if(/Trident/i.test(Nb())&&Sb(t)&&"fixed"===Pb(t).position)return null;var n=qb(t);for(Tb(n)&&(n=n.host);Sb(n)&&["html","body"].indexOf(Mb(n))<0;){var o=Pb(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}var Jb="top",Xb="bottom",Yb="right",Gb="left",Kb="auto",Qb=[Jb,Xb,Yb,Gb],ty="start",ey="end",ny="viewport",oy="popper",ry=Qb.reduce((function(t,e){return t.concat([e+"-"+ty,e+"-"+ey])}),[]),ay=[].concat(Qb,[Kb]).reduce((function(t,e){return t.concat([e,e+"-"+ty,e+"-"+ey])}),[]),iy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function sy(t){var e=new Map,n=new Set,o=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&r(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),o}function ly(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var cy={placement:"bottom",modifiers:[],strategy:"absolute"};function uy(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function by(t){var e,n=t.reference,o=t.element,r=t.placement,a=r?hy(r):null,i=r?my(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case Jb:e={x:s,y:n.y-o.height};break;case Xb:e={x:s,y:n.y+n.height};break;case Yb:e={x:n.x+n.width,y:l};break;case Gb:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=a?gy(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ty:e[c]=e[c]-(n[u]/2-o[u]/2);break;case ey:e[c]=e[c]+(n[u]/2-o[u]/2)}}return e}var yy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vy(t){var e,n=t.popper,o=t.popperRect,r=t.placement,a=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,p=t.isFixed,d=i.x,f=void 0===d?0:d,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=Gb,k=Jb,x=window;if(c){var w=Zb(n),E="clientHeight",_="clientWidth";w===_b(n)&&"static"!==Pb(w=jb(n)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(r===Jb||(r===Gb||r===Yb)&&a===ey)&&(k=Xb,m-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[E])-o.height,m*=l?1:-1),r!==Gb&&(r!==Jb&&r!==Xb||a!==ey)||(v=Yb,f-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[_])-o.width,f*=l?1:-1)}var O,S=Object.assign({position:s},c&&yy),T=!0===u?function(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Ab(n*r)/r||0,y:Ab(o*r)/r||0}}({x:f,y:m},_b(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},S,((O={})[k]=y?"0":"",O[v]=b?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",O)):Object.assign({},S,((e={})[k]=y?m+"px":"",e[v]=b?f+"px":"",e.transform="",e))}const ky={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];Sb(r)&&Mb(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],r=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Sb(o)&&Mb(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};var xy={left:"right",right:"left",bottom:"top",top:"bottom"};function wy(t){return t.replace(/left|right|bottom|top/g,(function(t){return xy[t]}))}var Ey={start:"end",end:"start"};function _y(t){return t.replace(/start|end/g,(function(t){return Ey[t]}))}function Oy(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Tb(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Sy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ty(t,e,n){return e===ny?Sy(function(t,e){var n=_b(t),o=jb(t),r=n.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;var c=Lb();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:a,height:i,x:s+Rb(t),y:l}}(t,n)):Ob(e)?function(t,e){var n=Db(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Sy(function(t){var e,n=jb(t),o=Ib(t),r=null==(e=t.ownerDocument)?void 0:e.body,a=Cb(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Cb(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Rb(t),l=-o.scrollTop;return"rtl"===Pb(r||n).direction&&(s+=Cb(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(jb(t)))}function Cy(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $y(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Ay(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=void 0===o?t.placement:o,a=n.strategy,i=void 0===a?t.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?ny:c,p=n.elementContext,d=void 0===p?oy:p,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Cy("number"!=typeof g?g:$y(g,Qb)),y=d===oy?"reference":oy,v=t.rects.popper,k=t.elements[h?y:d],x=function(t,e,n,o){var r="clippingParents"===e?function(t){var e=Ub(qb(t)),n=["absolute","fixed"].indexOf(Pb(t).position)>=0&&Sb(t)?Zb(t):t;return Ob(n)?e.filter((function(t){return Ob(t)&&Oy(t,n)&&"body"!==Mb(t)})):[]}(t):[].concat(e),a=[].concat(r,[n]),i=a[0],s=a.reduce((function(e,n){var r=Ty(t,n,o);return e.top=Cb(r.top,e.top),e.right=$b(r.right,e.right),e.bottom=$b(r.bottom,e.bottom),e.left=Cb(r.left,e.left),e}),Ty(t,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Ob(k)?k:k.contextElement||jb(t.elements.popper),l,u,i),w=Db(t.elements.reference),E=by({reference:w,element:v,strategy:"absolute",placement:r}),_=Sy(Object.assign({},v,E)),O=d===oy?_:w,S={top:x.top-O.top+b.top,bottom:O.bottom-x.bottom+b.bottom,left:x.left-O.left+b.left,right:O.right-x.right+b.right},T=t.modifiersData.offset;if(d===oy&&T){var C=T[r];Object.keys(S).forEach((function(t){var e=[Yb,Xb].indexOf(t)>=0?1:-1,n=[Jb,Xb].indexOf(t)>=0?"y":"x";S[t]+=C[n]*e}))}return S}const Ny={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=e.options.placement,b=hy(g),y=l||(b!==g&&h?function(t){if(hy(t)===Kb)return[];var e=wy(t);return[_y(t),e,_y(e)]}(g):[wy(g)]),v=[g].concat(y).reduce((function(t,n){return t.concat(hy(n)===Kb?function(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ay:l,u=my(o),p=u?s?ry:ry.filter((function(t){return my(t)===u})):Qb,d=p.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=p);var f=d.reduce((function(e,n){return e[n]=Ay(t,{placement:n,boundary:r,rootBoundary:a,padding:i})[hy(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),k=e.rects.reference,x=e.rects.popper,w=new Map,E=!0,_=v[0],O=0;O=0,A=$?"width":"height",N=Ay(e,{placement:S,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),L=$?C?Yb:Gb:C?Xb:Jb;k[A]>x[A]&&(L=wy(L));var D=wy(L),I=[];if(a&&I.push(N[T]<=0),s&&I.push(N[L]<=0,N[D]<=0),I.every((function(t){return t}))){_=S,E=!1;break}w.set(S,I)}if(E)for(var M=function(t){var e=v.find((function(e){var n=w.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},j=h?3:1;j>0&&"break"!==M(j);j--);e.placement!==_&&(e.modifiersData[o]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ly(t,e,n){return Cb(t,$b(e,n))}const Dy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=Ay(e,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=hy(e.placement),y=my(e.placement),v=!y,k=gy(b),x="x"===k?"y":"x",w=e.modifiersData.popperOffsets,E=e.rects.reference,_=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(w){if(a){var $,A="y"===k?Jb:Gb,N="y"===k?Xb:Yb,L="y"===k?"height":"width",D=w[k],I=D+g[A],M=D-g[N],j=f?-_[L]/2:0,R=y===ty?E[L]:_[L],P=y===ty?-_[L]:-E[L],H=e.elements.arrow,F=f&&H?Vb(H):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=V[A],z=V[N],U=Ly(0,E[L],F[L]),W=v?E[L]/2-j-U-q-S.mainAxis:R-U-q-S.mainAxis,B=v?-E[L]/2+j+U+z+S.mainAxis:P+U+z+S.mainAxis,Z=e.elements.arrow&&Zb(e.elements.arrow),J=Z?"y"===k?Z.clientTop||0:Z.clientLeft||0:0,X=null!=($=null==T?void 0:T[k])?$:0,Y=D+B-X,G=Ly(f?$b(I,D+W-X-J):I,D,f?Cb(M,Y):M);w[k]=G,C[k]=G-D}if(s){var K,Q="x"===k?Jb:Gb,tt="x"===k?Xb:Yb,et=w[x],nt="y"===x?"height":"width",ot=et+g[Q],rt=et-g[tt],at=-1!==[Jb,Gb].indexOf(b),it=null!=(K=null==T?void 0:T[x])?K:0,st=at?ot:et-E[nt]-_[nt]-it+S.altAxis,lt=at?et+E[nt]+_[nt]-it-S.altAxis:rt,ct=f&&at?function(t,e,n){var o=Ly(t,e,n);return o>n?n:o}(st,et,lt):Ly(f?st:ot,et,f?lt:rt);w[x]=ct,C[x]=ct-et}e.modifiersData[o]=C}},requiresIfExists:["offset"]},Iy={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,r=t.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=hy(n.placement),l=gy(s),c=[Gb,Yb].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(t,e){return Cy("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:$y(t,Qb))}(r.padding,n),p=Vb(a),d="y"===l?Jb:Gb,f="y"===l?Xb:Yb,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=Zb(a),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[d],k=b-p[c]-u[f],x=b/2-p[c]/2+y,w=Ly(v,x,k),E=l;n.modifiersData[o]=((e={})[E]=w,e.centerOffset=w-x,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Oy(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function My(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jy(t){return[Jb,Yb,Xb,Gb].some((function(e){return t[e]>=0}))}var Ry=py({defaultModifiers:[fy,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=by({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:hy(e.placement),variation:my(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,vy(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,vy(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ky,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.offset,a=void 0===r?[0,0]:r,i=ay.reduce((function(t,n){return t[n]=function(t,e,n){var o=hy(t),r=[Gb,Jb].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[Gb,Yb].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,e.rects,a),t}),{}),s=i[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=i}},Ny,Dy,Iy,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=Ay(e,{elementContext:"reference"}),s=Ay(e,{altBoundary:!0}),l=My(i,o),c=My(s,r,a),u=jy(l),p=jy(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Py="tippy-content",Hy="tippy-backdrop",Fy="tippy-arrow",Vy="tippy-svg-arrow",qy={passive:!0,capture:!0},zy=function(){return document.body};function Uy(t,e,n){if(Array.isArray(t)){var o=t[e];return null==o?Array.isArray(n)?n[e]:n:o}return t}function Wy(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function By(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Zy(t,e){return 0===e?t:function(o){clearTimeout(n),n=setTimeout((function(){t(o)}),e)};var n}function Jy(t){return[].concat(t)}function Xy(t,e){-1===t.indexOf(e)&&t.push(e)}function Yy(t){return[].slice.call(t)}function Gy(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Ky(){return document.createElement("div")}function Qy(t){return["Element","Fragment"].some((function(e){return Wy(t,e)}))}function tv(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function ev(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function nv(t,e,n){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[o](e,n)}))}function ov(t,e){for(var n=e;n;){var o;if(t.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var rv={isTouch:!1},av=0;function iv(){rv.isTouch||(rv.isTouch=!0,window.performance&&document.addEventListener("mousemove",sv))}function sv(){var t=performance.now();t-av<20&&(rv.isTouch=!1,document.removeEventListener("mousemove",sv)),av=t}function lv(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var cv=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),uv=Object.assign({appendTo:zy,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),pv=Object.keys(uv);function dv(t){var e=(t.plugins||[]).reduce((function(e,n){var o,r=n.name,a=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:null!=(o=uv[r])?o:a),e}),{});return Object.assign({},t,e)}function fv(t,e){var n=Object.assign({},e,{content:By(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(dv(Object.assign({},uv,{plugins:e}))):pv).reduce((function(e,n){var o=(t.getAttribute("data-tippy-"+n)||"").trim();if(!o)return e;if("content"===n)e[n]=o;else try{e[n]=JSON.parse(o)}catch(t){e[n]=o}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},uv.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var hv=function(){return"innerHTML"};function mv(t,e){t[hv()]=e}function gv(t){var e=Ky();return!0===t?e.className=Fy:(e.className=Vy,Qy(t)?e.appendChild(t):mv(e,t)),e}function bv(t,e){Qy(e.content)?(mv(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?mv(t,e.content):t.textContent=e.content)}function yv(t){var e=t.firstElementChild,n=Yy(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(Py)})),arrow:n.find((function(t){return t.classList.contains(Fy)||t.classList.contains(Vy)})),backdrop:n.find((function(t){return t.classList.contains(Hy)}))}}function vv(t){var e=Ky(),n=Ky();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Ky();function r(n,o){var r=yv(e),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||bv(i,t.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(gv(o.arrow))):a.appendChild(gv(o.arrow)):s&&a.removeChild(s)}return o.className=Py,o.setAttribute("data-state","hidden"),bv(o,t.props),e.appendChild(n),n.appendChild(o),r(t.props,t.props),{popper:e,onUpdate:r}}vv.$$tippy=!0;var kv=1,xv=[],wv=[];function Ev(t,e){var n,o,r,a,i,s,l,c,u=fv(t,Object.assign({},uv,dv(Gy(e)))),p=!1,d=!1,f=!1,h=!1,m=[],g=Zy(Z,u.interactiveDebounce),b=kv++,y=(c=u.plugins).filter((function(t,e){return c.indexOf(t)===e})),v={id:b,reference:t,popper:Ky(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(!v.state.isDestroyed){D("onBeforeUpdate",[v,e]),W();var n=v.props,o=fv(t,Object.assign({},n,Gy(e),{ignoreAttributes:!0}));v.props=o,U(),n.interactiveDebounce!==o.interactiveDebounce&&(j(),g=Zy(Z,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?Jy(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):o.triggerTarget&&t.removeAttribute("aria-expanded"),M(),L(),w&&w(n,o),v.popperInstance&&(G(),Q().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[v,e])}},setContent:function(t){v.setProps({content:t})},show:function(){var t=v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=rv.isTouch&&!v.props.touch,r=Uy(v.props.duration,0,uv.duration);if(!(t||e||n||o||C().hasAttribute("disabled")||(D("onShow",[v],!1),!1===v.props.onShow(v)))){if(v.state.isVisible=!0,T()&&(x.style.visibility="visible"),L(),F(),v.state.isMounted||(x.style.transition="none"),T()){var a=A();tv([a.box,a.content],0)}var i,l,c;s=function(){var t;if(v.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=v.props.moveTransition,T()&&v.props.animation){var e=A(),n=e.box,o=e.content;tv([n,o],r),ev([n,o],"visible")}I(),M(),Xy(wv,v),null==(t=v.popperInstance)||t.forceUpdate(),D("onMount",[v]),v.props.animation&&T()&&function(t){q(t,(function(){v.state.isShown=!0,D("onShown",[v])}))}(r)}},l=v.props.appendTo,c=C(),(i=v.props.interactive&&l===zy||"parent"===l?c.parentNode:By(l,[c])).contains(x)||i.appendChild(x),v.state.isMounted=!0,G()}},hide:function(){var t=!v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=Uy(v.props.duration,1,uv.duration);if(!(t||e||n)&&(D("onHide",[v],!1),!1!==v.props.onHide(v))){if(v.state.isVisible=!1,v.state.isShown=!1,h=!1,p=!1,T()&&(x.style.visibility="hidden"),j(),V(),L(!0),T()){var r=A(),a=r.box,i=r.content;v.props.animation&&(tv([a,i],o),ev([a,i],"hidden"))}I(),M(),v.props.animation?T()&&function(t,e){q(t,(function(){!v.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}(o,v.unmount):v.unmount()}},hideWithInteractivity:function(t){$().addEventListener("mousemove",g),Xy(xv,g),g(t)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){v.state.isVisible&&v.hide(),v.state.isMounted&&(K(),Q().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),wv=wv.filter((function(t){return t!==v})),v.state.isMounted=!1,D("onHidden",[v]))},destroy:function(){v.state.isDestroyed||(v.clearDelayTimeouts(),v.unmount(),W(),delete t._tippy,v.state.isDestroyed=!0,D("onDestroy",[v]))}};if(!u.render)return v;var k=u.render(v),x=k.popper,w=k.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+v.id,v.popper=x,t._tippy=v,x._tippy=v;var E=y.map((function(t){return t.fn(v)})),_=t.hasAttribute("aria-expanded");return U(),M(),L(),D("onCreate",[v]),u.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",g)})),v;function O(){var t=v.props.touch;return Array.isArray(t)?t:[t,0]}function S(){return"hold"===O()[0]}function T(){var t;return!(null==(t=v.props.render)||!t.$$tippy)}function C(){return l||t}function $(){var t,e,n=C().parentNode;return n?null!=(e=Jy(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document:document}function A(){return yv(x)}function N(t){return v.state.isMounted&&!v.state.isVisible||rv.isTouch||a&&"focus"===a.type?0:Uy(v.props.delay,t?0:1,uv.delay)}function L(t){void 0===t&&(t=!1),x.style.pointerEvents=v.props.interactive&&!t?"":"none",x.style.zIndex=""+v.props.zIndex}function D(t,e,n){var o;void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n&&(o=v.props)[t].apply(o,e)}function I(){var e=v.props.aria;if(e.content){var n="aria-"+e.content,o=x.id;Jy(v.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(v.state.isVisible)t.setAttribute(n,e?e+" "+o:o);else{var r=e&&e.replace(o,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function M(){!_&&v.props.aria.expanded&&Jy(v.props.triggerTarget||t).forEach((function(t){v.props.interactive?t.setAttribute("aria-expanded",v.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function j(){$().removeEventListener("mousemove",g),xv=xv.filter((function(t){return t!==g}))}function R(e){if(!rv.isTouch||!f&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!v.props.interactive||!ov(x,n)){if(Jy(v.props.triggerTarget||t).some((function(t){return ov(t,n)}))){if(rv.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[v,e]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),d=!0,setTimeout((function(){d=!1})),v.state.isMounted||V())}}}function P(){f=!0}function H(){f=!1}function F(){var t=$();t.addEventListener("mousedown",R,!0),t.addEventListener("touchend",R,qy),t.addEventListener("touchstart",H,qy),t.addEventListener("touchmove",P,qy)}function V(){var t=$();t.removeEventListener("mousedown",R,!0),t.removeEventListener("touchend",R,qy),t.removeEventListener("touchstart",H,qy),t.removeEventListener("touchmove",P,qy)}function q(t,e){var n=A().box;function o(t){t.target===n&&(nv(n,"remove",o),e())}if(0===t)return e();nv(n,"remove",i),nv(n,"add",o),i=o}function z(e,n,o){void 0===o&&(o=!1),Jy(v.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,o),m.push({node:t,eventType:e,handler:n,options:o})}))}function U(){var t;S()&&(z("touchstart",B,{passive:!0}),z("touchend",J,{passive:!0})),(t=v.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(z(t,B),t){case"mouseenter":z("mouseleave",J);break;case"focus":z(cv?"focusout":"blur",X);break;case"focusin":z("focusout",X)}}))}function W(){m.forEach((function(t){var e=t.node,n=t.eventType,o=t.handler,r=t.options;e.removeEventListener(n,o,r)})),m=[]}function B(t){var e,n=!1;if(v.state.isEnabled&&!Y(t)&&!d){var o="focus"===(null==(e=a)?void 0:e.type);a=t,l=t.currentTarget,M(),!v.state.isVisible&&Wy(t,"MouseEvent")&&xv.forEach((function(e){return e(t)})),"click"===t.type&&(v.props.trigger.indexOf("mouseenter")<0||p)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:tt(t),"click"===t.type&&(p=!n),n&&!o&&et(t)}}function Z(t){var e=t.target,n=C().contains(e)||x.contains(e);if("mousemove"!==t.type||!n){var o=Q().concat(x).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(t,e){var n=e.clientX,o=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,a=t.props.interactiveBorder,i=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,p="left"===i?s.right.x:0,d=e.top-o+l>a,f=o-e.bottom-c>a,h=e.left-n+u>a,m=n-e.right-p>a;return d||f||h||m}))})(o,t)&&(j(),et(t))}}function J(t){Y(t)||v.props.trigger.indexOf("click")>=0&&p||(v.props.interactive?v.hideWithInteractivity(t):et(t))}function X(t){v.props.trigger.indexOf("focusin")<0&&t.target!==C()||v.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||et(t)}function Y(t){return!!rv.isTouch&&S()!==t.type.indexOf("touch")>=0}function G(){K();var e=v.props,n=e.popperOptions,o=e.placement,r=e.offset,a=e.getReferenceClientRect,i=e.moveTransition,l=T()?yv(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||C()}:t,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(T()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];T()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Ry(c,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function K(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Q(){return Yy(x.querySelectorAll("[data-tippy-root]"))}function tt(t){v.clearDelayTimeouts(),t&&D("onTrigger",[v,t]),F();var e=N(!0),o=O(),r=o[0],a=o[1];rv.isTouch&&"hold"===r&&a&&(e=a),e?n=setTimeout((function(){v.show()}),e):v.show()}function et(t){if(v.clearDelayTimeouts(),D("onUntrigger",[v,t]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&p)){var e=N(!1);e?o=setTimeout((function(){v.state.isVisible&&v.hide()}),e):r=requestAnimationFrame((function(){v.hide()}))}}else V()}}function _v(t,e){void 0===e&&(e={});var n=uv.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",iv,qy),window.addEventListener("blur",lv);var o,r=Object.assign({},e,{plugins:n}),a=(o=t,Qy(o)?[o]:function(t){return Wy(t,"NodeList")}(o)?Yy(o):Array.isArray(o)?o:Yy(document.querySelectorAll(o))).reduce((function(t,e){var n=e&&Ev(e,r);return n&&t.push(n),t}),[]);return Qy(t)?a[0]:a}_v.defaultProps=uv,_v.setDefaultProps=function(t){Object.keys(t).forEach((function(e){uv[e]=t[e]}))},_v.currentInput=rv,Object.assign({},ky,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});var Ov={mouseover:"mouseenter",focusin:"focus",click:"click"};function Sv(t,e){var n=[],o=[],r=!1,a=e.target,i=function(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}(e,["target"]),s=Object.assign({},i,{trigger:"manual",touch:!1}),l=Object.assign({touch:uv.touch},i,{showOnCreate:!0}),c=_v(t,s);function u(t){if(t.target&&!r){var n=t.target.closest(a);if(n){var i=n.getAttribute("data-tippy-trigger")||e.trigger||uv.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof l.touch||"touchstart"!==t.type&&i.indexOf(Ov[t.type])<0)){var s=_v(n,l);s&&(o=o.concat(s))}}}}function p(t,e,o,r){void 0===r&&(r=!1),t.addEventListener(e,o,r),n.push({node:t,eventType:e,handler:o,options:r})}return Jy(c).forEach((function(t){var e=t.destroy,a=t.enable,i=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&o.forEach((function(t){t.destroy()})),o=[],n.forEach((function(t){var e=t.node,n=t.eventType,o=t.handler,r=t.options;e.removeEventListener(n,o,r)})),n=[],e()},t.enable=function(){a(),o.forEach((function(t){return t.enable()})),r=!1},t.disable=function(){i(),o.forEach((function(t){return t.disable()})),r=!0},function(t){var e=t.reference;p(e,"touchstart",u,qy),p(e,"mouseover",u),p(e,"focusin",u),p(e,"click",u)}(t)})),c}_v.setDefaultProps({render:vv});const Tv=_v;__webpack_require__(215),window.tippy=Tv;const Cv=new class{setup(){this.components=[],this.componentLibrary={},this.Vue=od,this.setupI18n(),this.setupHtmx(),this.setupPopups();for(const[t,e]of Object.entries(f))this.componentLibrary[t]=e;!function(t){for(const e of Object.values(t))od.component(e.name,e)}(d),window.dispatchEvent(new Event("indigo.vue-components-registered")),this.createComponents(document.body),this.createVueComponents(document.body),this.disableWith(),window.dispatchEvent(new Event("indigo.components-created"))}setupI18n(){const t=window.Indigo.i18n;t.backend={},t.backend.loadPath=function(e,n){return t.loadPaths[n[0]+"-"+e[0]]},eb.use(Eb).init(t),window.$t=eb.t.bind(eb)}setupHtmx(){window.htmx=mg.A,document.body.addEventListener("htmx:configRequest",(t=>{t.detail.headers["X-CSRFToken"]=window.Indigo.csrfToken})),document.body.addEventListener("htmx:beforeRequest",(t=>{window.Indigo.progressView.push()})),document.body.addEventListener("htmx:afterRequest",(t=>{window.Indigo.progressView.pop()}));const t={firstLoad:!0};document.body.addEventListener("htmx:load",(e=>{t.firstLoad?t.firstLoad=!1:(this.createComponents(e.target),this.createVueComponents(e.target),hg(e.target),$(".selectpicker").selectpicker())})),document.body.addEventListener("hx-messages",(t=>{t.detail.value.forEach(this.createToast)}))}createToast(t){const e=mg.A.find("[data-toast-template]").cloneNode(!0);delete e.dataset.toastTemplate,e.className+=" "+t.tags,mg.A.find(e,"[data-toast-body]").innerText=t.message,mg.A.find("[data-toast-container]").appendChild(e),new window.bootstrap.Toast(e,{delay:5e3}).show()}createComponents(t){t.getAttribute("data-component")&&this.createComponent(t);for(const e of t.querySelectorAll("[data-component]"))this.createComponent(e)}createComponent(t){const e=t.getAttribute("data-component");this.componentLibrary[e]&&!t.component&&this.components.push(t.component=new this.componentLibrary[e](t))}createVueComponents(t){for(const e of t.querySelectorAll("[data-vue-component]"))this.createVueComponent(e)}createVueComponent(t){const e=t.getAttribute("data-vue-component");if(this.Vue.options.components[e]&&!t.component){const n=rd(e,{el:t,propsData:t.dataset});n.$el.component=n,this.components.push(n)}}disableWith(){document.addEventListener("submit",(t=>{for(const e of t.target.elements)e.hasAttribute("data-disable-with")&&(e.textContent=e.getAttribute("data-disable-with"),e.removeAttribute("data-disable-with"),setTimeout((()=>{e.disabled=!0}),10))}))}setupPopups(){Sv("body",{target:"a[data-popup-url]",content:"...",allowHTML:!0,interactive:!0,theme:"light",placement:"bottom-start",appendTo:document.body,onTrigger:async(t,e)=>{const n=e.currentTarget.getAttribute("data-popup-url");if(n)try{const e=await fetch(n);e.ok?t.setContent(await e.text()):t.setContent(":(")}catch(t){console.log(t)}}})}};window.addEventListener("indigo.beforecreateviews",(()=>{window.indigoApp=Cv,Cv.setup()}))})()})(); \ No newline at end of file +(()=>{var __webpack_modules__={945:(t,e,n)=>{var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,r=function(){function t(){this.fetch=!1,this.DOMException=o.DOMException}return t.prototype=o,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==n&&n,o="URLSearchParams"in n,r="Symbol"in n&&"iterator"in Symbol,a="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in n,s="ArrayBuffer"in n;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function p(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function g(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:a&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&a&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var t,e,n,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,n=m(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),o=0;o-1?o:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},y.call(k.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];w.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(t,o){return new Promise((function(r,i){var l=new k(t,o);if(l.signal&&l.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}c.onload=function(){var t,e,n={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();e.append(o,r)}})),e)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){r(new w(o,n))}),0)},c.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){i(new e.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":s&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof f?l.headers.forEach((function(t,e){c.setRequestHeader(e,t)})):Object.getOwnPropertyNames(o.headers).forEach((function(t){c.setRequestHeader(t,p(o.headers[t]))})),l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}_.polyfill=!0,n.fetch||(n.fetch=_,n.Headers=f,n.Request=k,n.Response=w),e.Headers=f,e.Request=k,e.Response=w,e.fetch=_}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=o.fetch?o:r;(e=a.fetch).default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e},2:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(314),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const a=r},223:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(314),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,"\n.toc-controller-wrapper {\n padding-bottom: 50px;\n}\n.toc-controller-wrapper .popover {\n max-width: 200px !important;\n}\n",""]);const a=r},163:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var o=n(314),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,"\nla-toc-item input[type=checkbox] {\n margin-right: 0.25rem;\n}\nla-toc-item label {\n margin-bottom: 0.1rem;\n}\n",""]);const a=r},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var a=0;a{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var htmx=function(){const htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(t,e){return getInputValues(t,e||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0},parseInterval:null,_:null,version:"2.0.2"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;const internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map((function(t){return"[hx-"+t+"], [data-hx-"+t+"]"})).join(", "),HEAD_TAG_REGEX=makeTagRegEx("head");function makeTagRegEx(t,e=!1){return new RegExp(`<${t}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${t}>`,e?"gim":"im")}function parseInterval(t){if(null==t)return;let e=NaN;return e="ms"==t.slice(-2)?parseFloat(t.slice(0,-2)):"s"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1)):"m"==t.slice(-1)?1e3*parseFloat(t.slice(0,-1))*60:parseFloat(t),isNaN(e)?void 0:e}function getRawAttribute(t,e){return t instanceof Element&&t.getAttribute(e)}function hasAttribute(t,e){return!!t.hasAttribute&&(t.hasAttribute(e)||t.hasAttribute("data-"+e))}function getAttributeValue(t,e){return getRawAttribute(t,e)||getRawAttribute(t,"data-"+e)}function parentElt(t){const e=t.parentElement;return!e&&t.parentNode instanceof ShadowRoot?t.parentNode:e}function getDocument(){return document}function getRootNode(t,e){return t.getRootNode?t.getRootNode({composed:e}):getDocument()}function getClosestMatch(t,e){for(;t&&!e(t);)t=parentElt(t);return t||null}function getAttributeValueWithDisinheritance(t,e,n){const o=getAttributeValue(e,n),r=getAttributeValue(e,"hx-disinherit");var a=getAttributeValue(e,"hx-inherit");if(t!==e){if(htmx.config.disableInheritance)return a&&("*"===a||a.split(" ").indexOf(n)>=0)?o:null;if(r&&("*"===r||r.split(" ").indexOf(n)>=0))return"unset"}return o}function getClosestAttributeValue(t,e){let n=null;if(getClosestMatch(t,(function(o){return!!(n=getAttributeValueWithDisinheritance(t,asElement(o),e))})),"unset"!==n)return n}function matches(t,e){const n=t instanceof Element&&(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function getStartTag(t){const e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(t);return e?e[1].toLowerCase():""}function parseHTML(t){return(new DOMParser).parseFromString(t,"text/html")}function takeChildrenFor(t,e){for(;e.childNodes.length>0;)t.append(e.childNodes[0])}function duplicateScript(t){const e=getDocument().createElement("script");return forEach(t.attributes,(function(t){e.setAttribute(t.name,t.value)})),e.textContent=t.textContent,e.async=!1,htmx.config.inlineScriptNonce&&(e.nonce=htmx.config.inlineScriptNonce),e}function isJavaScriptScriptNode(t){return t.matches("script")&&("text/javascript"===t.type||"module"===t.type||""===t.type)}function normalizeScriptTags(t){Array.from(t.querySelectorAll("script")).forEach((t=>{if(isJavaScriptScriptNode(t)){const e=duplicateScript(t),n=t.parentNode;try{n.insertBefore(e,t)}catch(t){logError(t)}finally{t.remove()}}}))}function makeFragment(t){const e=t.replace(HEAD_TAG_REGEX,""),n=getStartTag(e);let o;if("html"===n){o=new DocumentFragment;const e=parseHTML(t);takeChildrenFor(o,e.body),o.title=e.title}else if("body"===n){o=new DocumentFragment;const t=parseHTML(e);takeChildrenFor(o,t.body),o.title=t.title}else{const t=parseHTML('");o=t.querySelector("template").content,o.title=t.title;var r=o.querySelector("title");r&&r.parentNode===o&&(r.remove(),o.title=r.innerText)}return o&&(htmx.config.allowScriptTags?normalizeScriptTags(o):o.querySelectorAll("script").forEach((t=>t.remove()))),o}function maybeCall(t){t&&t()}function isType(t,e){return Object.prototype.toString.call(t)==="[object "+e+"]"}function isFunction(t){return"function"==typeof t}function isRawObject(t){return isType(t,"Object")}function getInternalData(t){const e="htmx-internal-data";let n=t[e];return n||(n=t[e]={}),n}function toArray(t){const e=[];if(t)for(let n=0;n=0}function bodyContains(t){const e=t.getRootNode&&t.getRootNode();return e&&e instanceof window.ShadowRoot?getDocument().body.contains(e.host):getDocument().body.contains(t)}function splitOnWhitespace(t){return t.trim().split(/\s+/)}function mergeObjects(t,e){for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function parseJSON(t){try{return JSON.parse(t)}catch(t){return logError(t),null}}function canAccessLocalStorage(){const t="htmx:localStorageTest";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}function normalizePath(t){try{const e=new URL(t);return e&&(t=e.pathname+e.search),/^\/$/.test(t)||(t=t.replace(/\/+$/,"")),t}catch(e){return t}}function internalEval(str){return maybeEval(getDocument().body,(function(){return eval(str)}))}function onLoadHelper(t){return htmx.on("htmx:load",(function(e){t(e.detail.elt)}))}function logAll(){htmx.logger=function(t,e,n){console&&console.log(e,t,n)}}function logNone(){htmx.logger=null}function find(t,e){return"string"!=typeof t?t.querySelector(e):find(getDocument(),t)}function findAll(t,e){return"string"!=typeof t?t.querySelectorAll(e):findAll(getDocument(),t)}function getWindow(){return window}function removeElement(t,e){t=resolveTarget(t),e?getWindow().setTimeout((function(){removeElement(t),t=null}),e):parentElt(t).removeChild(t)}function asElement(t){return t instanceof Element?t:null}function asHtmlElement(t){return t instanceof HTMLElement?t:null}function asString(t){return"string"==typeof t?t:null}function asParentNode(t){return t instanceof Element||t instanceof Document||t instanceof DocumentFragment?t:null}function addClassToElement(t,e,n){(t=asElement(resolveTarget(t)))&&(n?getWindow().setTimeout((function(){addClassToElement(t,e),t=null}),n):t.classList&&t.classList.add(e))}function removeClassFromElement(t,e,n){let o=asElement(resolveTarget(t));o&&(n?getWindow().setTimeout((function(){removeClassFromElement(o,e),o=null}),n):o.classList&&(o.classList.remove(e),0===o.classList.length&&o.removeAttribute("class")))}function toggleClassOnElement(t,e){(t=resolveTarget(t)).classList.toggle(e)}function takeClassForElement(t,e){forEach((t=resolveTarget(t)).parentElement.children,(function(t){removeClassFromElement(t,e)})),addClassToElement(asElement(t),e)}function closest(t,e){if((t=asElement(resolveTarget(t)))&&t.closest)return t.closest(e);do{if(null==t||matches(t,e))return t}while(t=t&&asElement(parentElt(t)));return null}function startsWith(t,e){return t.substring(0,e.length)===e}function endsWith(t,e){return t.substring(t.length-e.length)===e}function normalizeSelector(t){const e=t.trim();return startsWith(e,"<")&&endsWith(e,"/>")?e.substring(1,e.length-2):e}function querySelectorAllExt(t,e,n){return t=resolveTarget(t),0===e.indexOf("closest ")?[closest(asElement(t),normalizeSelector(e.substr(8)))]:0===e.indexOf("find ")?[find(asParentNode(t),normalizeSelector(e.substr(5)))]:"next"===e?[asElement(t).nextElementSibling]:0===e.indexOf("next ")?[scanForwardQuery(t,normalizeSelector(e.substr(5)),!!n)]:"previous"===e?[asElement(t).previousElementSibling]:0===e.indexOf("previous ")?[scanBackwardsQuery(t,normalizeSelector(e.substr(9)),!!n)]:"document"===e?[document]:"window"===e?[window]:"body"===e?[document.body]:"root"===e?[getRootNode(t,!!n)]:0===e.indexOf("global ")?querySelectorAllExt(t,e.slice(7),!0):toArray(asParentNode(getRootNode(t,!!n)).querySelectorAll(normalizeSelector(e)))}var scanForwardQuery=function(t,e,n){const o=asParentNode(getRootNode(t,n)).querySelectorAll(e);for(let e=0;e=0;e--){const n=o[e];if(n.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function querySelectorExt(t,e){return"string"!=typeof t?querySelectorAllExt(t,e)[0]:querySelectorAllExt(getDocument().body,t)[0]}function resolveTarget(t,e){return"string"==typeof t?find(asParentNode(e)||document,t):t}function processEventArgs(t,e,n){return isFunction(e)?{target:getDocument().body,event:asString(t),listener:e}:{target:resolveTarget(t),event:asString(e),listener:n}}function addEventListenerImpl(t,e,n){return ready((function(){const o=processEventArgs(t,e,n);o.target.addEventListener(o.event,o.listener)})),isFunction(e)?e:n}function removeEventListenerImpl(t,e,n){return ready((function(){const o=processEventArgs(t,e,n);o.target.removeEventListener(o.event,o.listener)})),isFunction(e)?e:n}const DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(t,e){const n=getClosestAttributeValue(t,e);if(n){if("this"===n)return[findThisElement(t,e)];{const o=querySelectorAllExt(t,n);return 0===o.length?(logError('The selector "'+n+'" on '+e+" returned no matches!"),[DUMMY_ELT]):o}}}function findThisElement(t,e){return asElement(getClosestMatch(t,(function(t){return null!=getAttributeValue(asElement(t),e)})))}function getTarget(t){const e=getClosestAttributeValue(t,"hx-target");return e?"this"===e?findThisElement(t,"hx-target"):querySelectorExt(t,e):getInternalData(t).boosted?getDocument().body:t}function shouldSettleAttribute(t){const e=htmx.config.attributesToSettle;for(let n=0;n0?(r=t.substr(0,t.indexOf(":")),o=t.substr(t.indexOf(":")+1,t.length)):r=t);const a=getDocument().querySelectorAll(o);return a?(forEach(a,(function(t){let o;const a=e.cloneNode(!0);o=getDocument().createDocumentFragment(),o.appendChild(a),isInlineSwap(r,t)||(o=asParentNode(a));const i={shouldSwap:!0,target:t,fragment:o};triggerEvent(t,"htmx:oobBeforeSwap",i)&&(t=i.target,i.shouldSwap&&swapWithStyle(r,t,t,o,n),forEach(n.elts,(function(t){triggerEvent(t,"htmx:oobAfterSwap",i)})))})),e.parentNode.removeChild(e)):(e.parentNode.removeChild(e),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:e})),t}function handlePreservedElements(t){forEach(findAll(t,"[hx-preserve], [data-hx-preserve]"),(function(t){const e=getAttributeValue(t,"id"),n=getDocument().getElementById(e);null!=n&&t.parentNode.replaceChild(n,t)}))}function handleAttributes(t,e,n){forEach(e.querySelectorAll("[id]"),(function(e){const o=getRawAttribute(e,"id");if(o&&o.length>0){const r=o.replace("'","\\'"),a=e.tagName.replace(":","\\:"),i=asParentNode(t),s=i&&i.querySelector(a+"[id='"+r+"']");if(s&&s!==i){const t=e.cloneNode();cloneAttributes(e,s),n.tasks.push((function(){cloneAttributes(e,t)}))}}}))}function makeAjaxLoadTask(t){return function(){removeClassFromElement(t,htmx.config.addedClass),processNode(asElement(t)),processFocus(asParentNode(t)),triggerEvent(t,"htmx:load")}}function processFocus(t){const e="[autofocus]",n=asHtmlElement(matches(t,e)?t:t.querySelector(e));null!=n&&n.focus()}function insertNodesBefore(t,e,n,o){for(handleAttributes(t,n,o);n.childNodes.length>0;){const r=n.firstChild;addClassToElement(asElement(r),htmx.config.addedClass),t.insertBefore(r,e),r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.COMMENT_NODE&&o.tasks.push(makeAjaxLoadTask(r))}}function stringHash(t,e){let n=0;for(;n0}function swap(t,e,n,o){o||(o={}),t=resolveTarget(t);const r=document.activeElement;let a={};try{a={elt:r,start:r?r.selectionStart:null,end:r?r.selectionEnd:null}}catch(t){}const i=makeSettleInfo(t);if("textContent"===n.swapStyle)t.textContent=e;else{let r=makeFragment(e);if(i.title=r.title,o.selectOOB){const t=o.selectOOB.split(",");for(let e=0;e0?getWindow().setTimeout(s,n.settleDelay):s()}function handleTriggerHeader(t,e,n){const o=t.getResponseHeader(e);if(0===o.indexOf("{")){const t=parseJSON(o);for(const e in t)if(t.hasOwnProperty(e)){let o=t[e];isRawObject(o)?n=void 0!==o.target?o.target:n:o={value:o},triggerEvent(n,e,o)}}else{const t=o.split(",");for(let e=0;e0;){const i=e[0];if("]"===i){if(o--,0===o){null===a&&(r+="true"),e.shift(),r+=")})";try{const e=maybeEval(t,(function(){return Function(r)()}),(function(){return!0}));return e.source=r,e}catch(t){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:t,source:r}),null}}}else"["===i&&o++;isPossibleRelativeReference(i,a,n)?r+="(("+n+"."+i+") ? ("+n+"."+i+") : (window."+i+"))":r+=i,a=e.shift()}}}function consumeUntil(t,e){let n="";for(;t.length>0&&!e.test(t[0]);)n+=t.shift();return n}function consumeCSSSelector(t){let e;return t.length>0&&COMBINED_SELECTOR_START.test(t[0])?(t.shift(),e=consumeUntil(t,COMBINED_SELECTOR_END).trim(),t.shift()):e=consumeUntil(t,WHITESPACE_OR_COMMA),e}const INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(t,e,n){const o=[],r=tokenizeString(e);do{consumeUntil(r,NOT_WHITESPACE);const e=r.length,n=consumeUntil(r,/[,\[\s]/);if(""!==n)if("every"===n){const e={trigger:"every"};consumeUntil(r,NOT_WHITESPACE),e.pollInterval=parseInterval(consumeUntil(r,/[,\[\s]/)),consumeUntil(r,NOT_WHITESPACE),(a=maybeGenerateConditional(t,r,"event"))&&(e.eventFilter=a),o.push(e)}else{const e={trigger:n};var a;for((a=maybeGenerateConditional(t,r,"event"))&&(e.eventFilter=a);r.length>0&&","!==r[0];){consumeUntil(r,NOT_WHITESPACE);const n=r.shift();if("changed"===n)e.changed=!0;else if("once"===n)e.once=!0;else if("consume"===n)e.consume=!0;else if("delay"===n&&":"===r[0])r.shift(),e.delay=parseInterval(consumeUntil(r,WHITESPACE_OR_COMMA));else if("from"===n&&":"===r[0]){if(r.shift(),COMBINED_SELECTOR_START.test(r[0]))var i=consumeCSSSelector(r);else if("closest"===(i=consumeUntil(r,WHITESPACE_OR_COMMA))||"find"===i||"next"===i||"previous"===i){r.shift();const t=consumeCSSSelector(r);t.length>0&&(i+=" "+t)}e.from=i}else"target"===n&&":"===r[0]?(r.shift(),e.target=consumeCSSSelector(r)):"throttle"===n&&":"===r[0]?(r.shift(),e.throttle=parseInterval(consumeUntil(r,WHITESPACE_OR_COMMA))):"queue"===n&&":"===r[0]?(r.shift(),e.queue=consumeUntil(r,WHITESPACE_OR_COMMA)):"root"===n&&":"===r[0]?(r.shift(),e[n]=consumeCSSSelector(r)):"threshold"===n&&":"===r[0]?(r.shift(),e[n]=consumeUntil(r,WHITESPACE_OR_COMMA)):triggerErrorEvent(t,"htmx:syntax:error",{token:r.shift()})}o.push(e)}r.length===e&&triggerErrorEvent(t,"htmx:syntax:error",{token:r.shift()}),consumeUntil(r,NOT_WHITESPACE)}while(","===r[0]&&r.shift());return n&&(n[e]=o),o}function getTriggerSpecs(t){const e=getAttributeValue(t,"hx-trigger");let n=[];if(e){const o=htmx.config.triggerSpecsCache;n=o&&o[e]||parseAndCacheTrigger(t,e,o)}return n.length>0?n:matches(t,"form")?[{trigger:"submit"}]:matches(t,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(t,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(t){getInternalData(t).cancelled=!0}function processPolling(t,e,n){const o=getInternalData(t);o.timeout=getWindow().setTimeout((function(){bodyContains(t)&&!0!==o.cancelled&&(maybeFilterEvent(n,t,makeEvent("hx:poll:trigger",{triggerSpec:n,target:t}))||e(t),processPolling(t,e,n))}),n.pollInterval)}function isLocalLink(t){return location.hostname===t.hostname&&getRawAttribute(t,"href")&&0!==getRawAttribute(t,"href").indexOf("#")}function eltIsDisabled(t){return closest(t,htmx.config.disableSelector)}function boostElement(t,e,n){if(t instanceof HTMLAnchorElement&&isLocalLink(t)&&(""===t.target||"_self"===t.target)||"FORM"===t.tagName&&"dialog"!==String(getRawAttribute(t,"method")).toLowerCase()){let o,r;if(e.boosted=!0,"A"===t.tagName)o="get",r=getRawAttribute(t,"href");else{const e=getRawAttribute(t,"method");o=e?e.toLowerCase():"get",r=getRawAttribute(t,"action")}n.forEach((function(n){addEventListener(t,(function(t,e){const n=asElement(t);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(o,r,n,e)}),e,n,!0)}))}}function shouldCancel(t,e){const n=asElement(e);if(!n)return!1;if("submit"===t.type||"click"===t.type){if("FORM"===n.tagName)return!0;if(matches(n,'input[type="submit"], button')&&null!==closest(n,"form"))return!0;if(n instanceof HTMLAnchorElement&&n.href&&("#"===n.getAttribute("href")||0!==n.getAttribute("href").indexOf("#")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(t,e){return getInternalData(t).boosted&&t instanceof HTMLAnchorElement&&"click"===e.type&&(e.ctrlKey||e.metaKey)}function maybeFilterEvent(t,e,n){const o=t.eventFilter;if(o)try{return!0!==o.call(e,n)}catch(t){const e=o.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:t,source:e}),!0}return!1}function addEventListener(t,e,n,o,r){const a=getInternalData(t);let i;i=o.from?querySelectorAllExt(t,o.from):[t],o.changed&&i.forEach((function(t){getInternalData(t).lastValue=t.value})),forEach(i,(function(i){const s=function(n){if(!bodyContains(t))return void i.removeEventListener(o.trigger,s);if(ignoreBoostedAnchorCtrlClick(t,n))return;if((r||shouldCancel(n,t))&&n.preventDefault(),maybeFilterEvent(o,t,n))return;const l=getInternalData(n);if(l.triggerSpec=o,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(t)<0){if(l.handledFor.push(t),o.consume&&n.stopPropagation(),o.target&&n.target&&!matches(asElement(n.target),o.target))return;if(o.once){if(a.triggeredOnce)return;a.triggeredOnce=!0}if(o.changed){const t=getInternalData(i),e=i.value;if(t.lastValue===e)return;t.lastValue=e}if(a.delayed&&clearTimeout(a.delayed),a.throttle)return;o.throttle>0?a.throttle||(triggerEvent(t,"htmx:trigger"),e(t,n),a.throttle=getWindow().setTimeout((function(){a.throttle=null}),o.throttle)):o.delay>0?a.delayed=getWindow().setTimeout((function(){triggerEvent(t,"htmx:trigger"),e(t,n)}),o.delay):(triggerEvent(t,"htmx:trigger"),e(t,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:o.trigger,listener:s,on:i}),i.addEventListener(o.trigger,s)}))}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),setInterval((function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),(function(t){maybeReveal(t)})))}),200))}function maybeReveal(t){!hasAttribute(t,"data-hx-revealed")&&isScrolledIntoView(t)&&(t.setAttribute("data-hx-revealed","true"),getInternalData(t).initHash?triggerEvent(t,"revealed"):t.addEventListener("htmx:afterProcessNode",(function(){triggerEvent(t,"revealed")}),{once:!0}))}function loadImmediately(t,e,n,o){const r=function(){n.loaded||(n.loaded=!0,e(t))};o>0?getWindow().setTimeout(r,o):r()}function processVerbs(t,e,n){let o=!1;return forEach(VERBS,(function(r){if(hasAttribute(t,"hx-"+r)){const a=getAttributeValue(t,"hx-"+r);o=!0,e.path=a,e.verb=r,n.forEach((function(n){addTriggerHandler(t,n,e,(function(t,e){const n=asElement(t);closest(n,htmx.config.disableSelector)?cleanUpElement(n):issueAjaxRequest(r,a,n,e)}))}))}})),o}function addTriggerHandler(t,e,n,o){if("revealed"===e.trigger)initScrollHandler(),addEventListener(t,o,n,e),maybeReveal(asElement(t));else if("intersect"===e.trigger){const r={};e.root&&(r.root=querySelectorExt(t,e.root)),e.threshold&&(r.threshold=parseFloat(e.threshold)),new IntersectionObserver((function(e){for(let n=0;n0?(n.polling=!0,processPolling(asElement(t),o,e)):addEventListener(t,o,n,e)}function shouldProcessHxOn(t){const e=asElement(t);if(!e)return!1;const n=e.attributes;for(let t=0;t", "+t)).join(""))}return[]}function maybeSetLastButtonClicked(t){const e=closest(asElement(t.target),"button, input[type='submit']"),n=getRelatedFormData(t);n&&(n.lastButtonClicked=e)}function maybeUnsetLastButtonClicked(t){const e=getRelatedFormData(t);e&&(e.lastButtonClicked=null)}function getRelatedFormData(t){const e=closest(asElement(t.target),"button, input[type='submit']");if(!e)return;const n=resolveTarget("#"+getRawAttribute(e,"form"),e.getRootNode())||closest(e,"form");return n?getInternalData(n):void 0}function initButtonTracking(t){t.addEventListener("click",maybeSetLastButtonClicked),t.addEventListener("focusin",maybeSetLastButtonClicked),t.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(t,e,n){const o=getInternalData(t);let r;Array.isArray(o.onHandlers)||(o.onHandlers=[]);const a=function(e){maybeEval(t,(function(){eltIsDisabled(t)||(r||(r=new Function("event",n)),r.call(t,e))}))};t.addEventListener(e,a),o.onHandlers.push({event:e,listener:a})}function processHxOnWildcard(t){deInitOnHandlers(t);for(let e=0;ehtmx.config.historyCacheSize;)a.shift();for(;a.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(a));break}catch(t){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:t,cache:a}),a.shift()}}function getCachedHistory(t){if(!canAccessLocalStorage())return null;t=normalizePath(t);const e=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(let n=0;n=200&&this.status<400){triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",n);const e=makeFragment(this.response),o=e.querySelector("[hx-history-elt],[data-hx-history-elt]")||e,r=getHistoryElement(),a=makeSettleInfo(r);handleTitle(e.title),swapInnerHTML(r,o,a),settleImmediately(a.tasks),currentPathForHistory=t,triggerEvent(getDocument().body,"htmx:historyRestore",{path:t,cacheMiss:!0,serverResponse:this.response})}else triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",n)},e.send()}function restoreHistory(t){saveCurrentPageToHistory();const e=getCachedHistory(t=t||location.pathname+location.search);if(e){const n=makeFragment(e.content),o=getHistoryElement(),r=makeSettleInfo(o);handleTitle(n.title),swapInnerHTML(o,n,r),settleImmediately(r.tasks),getWindow().setTimeout((function(){window.scrollTo(0,e.scroll)}),0),currentPathForHistory=t,triggerEvent(getDocument().body,"htmx:historyRestore",{path:t,item:e})}else htmx.config.refreshOnHistoryMiss?window.location.reload(!0):loadHistoryFromServer(t)}function addRequestIndicatorClasses(t){let e=findAttributeTargets(t,"hx-indicator");return null==e&&(e=[t]),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)+1,t.classList.add.call(t.classList,htmx.config.requestClass)})),e}function disableElements(t){let e=findAttributeTargets(t,"hx-disabled-elt");return null==e&&(e=[]),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)+1,t.setAttribute("disabled",""),t.setAttribute("data-disabled-by-htmx","")})),e}function removeRequestIndicators(t,e){forEach(t,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)-1,0===e.requestCount&&t.classList.remove.call(t.classList,htmx.config.requestClass)})),forEach(e,(function(t){const e=getInternalData(t);e.requestCount=(e.requestCount||0)-1,0===e.requestCount&&(t.removeAttribute("disabled"),t.removeAttribute("data-disabled-by-htmx"))}))}function haveSeenNode(t,e){for(let n=0;ne.indexOf(t)<0)):o.filter((t=>t!==e)),n.delete(t),forEach(o,(e=>n.append(t,e)))}}function processInputValue(t,e,n,o,r){if(null!=o&&!haveSeenNode(t,o)){if(t.push(o),shouldInclude(o)){const t=getRawAttribute(o,"name");let a=o.value;o instanceof HTMLSelectElement&&o.multiple&&(a=toArray(o.querySelectorAll("option:checked")).map((function(t){return t.value}))),o instanceof HTMLInputElement&&o.files&&(a=toArray(o.files)),addValueToFormData(t,a,e),r&&validateElement(o,n)}o instanceof HTMLFormElement&&(forEach(o.elements,(function(o){t.indexOf(o)>=0?removeValueFromFormData(o.name,o.value,e):t.push(o),r&&validateElement(o,n)})),new FormData(o).forEach((function(t,n){t instanceof File&&""===t.name||addValueToFormData(n,t,e)})))}}function validateElement(t,e){const n=t;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(e.push({elt:n,message:n.validationMessage,validity:n.validity}),triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})))}function overrideFormData(t,e){for(const n of e.keys())t.delete(n);return e.forEach((function(e,n){t.append(n,e)})),t}function getInputValues(t,e){const n=[],o=new FormData,r=new FormData,a=[],i=getInternalData(t);i.lastButtonClicked&&!bodyContains(i.lastButtonClicked)&&(i.lastButtonClicked=null);let s=t instanceof HTMLFormElement&&!0!==t.noValidate||"true"===getAttributeValue(t,"hx-validate");if(i.lastButtonClicked&&(s=s&&!0!==i.lastButtonClicked.formNoValidate),"get"!==e&&processInputValue(n,r,a,closest(t,"form"),s),processInputValue(n,o,a,t,s),i.lastButtonClicked||"BUTTON"===t.tagName||"INPUT"===t.tagName&&"submit"===getRawAttribute(t,"type")){const e=i.lastButtonClicked||t;addValueToFormData(getRawAttribute(e,"name"),e.value,r)}return forEach(findAttributeTargets(t,"hx-include"),(function(t){processInputValue(n,o,a,asElement(t),s),matches(t,"form")||forEach(asParentNode(t).querySelectorAll(INPUT_SELECTOR),(function(t){processInputValue(n,o,a,t,s)}))})),overrideFormData(o,r),{errors:a,formData:o,values:formDataProxy(o)}}function appendParam(t,e,n){""!==t&&(t+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const o=encodeURIComponent(n);return t+(encodeURIComponent(e)+"=")+o}function urlEncode(t){t=formDataFromObject(t);let e="";return t.forEach((function(t,n){e=appendParam(e,n,t)})),e}function getHeaders(t,e,n){const o={"HX-Request":"true","HX-Trigger":getRawAttribute(t,"id"),"HX-Trigger-Name":getRawAttribute(t,"name"),"HX-Target":getAttributeValue(e,"id"),"HX-Current-URL":getDocument().location.href};return getValuesForElement(t,"hx-headers",!1,o),void 0!==n&&(o["HX-Prompt"]=n),getInternalData(t).boosted&&(o["HX-Boosted"]="true"),o}function filterValues(t,e){const n=getClosestAttributeValue(e,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return t;if(0===n.indexOf("not "))return forEach(n.substr(4).split(","),(function(e){e=e.trim(),t.delete(e)})),t;{const e=new FormData;return forEach(n.split(","),(function(n){n=n.trim(),t.has(n)&&t.getAll(n).forEach((function(t){e.append(n,t)}))})),e}}return t}function isAnchorLink(t){return!!getRawAttribute(t,"href")&&getRawAttribute(t,"href").indexOf("#")>=0}function getSwapSpecification(t,e){const n=e||getClosestAttributeValue(t,"hx-swap"),o={swapStyle:getInternalData(t).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(t).boosted&&!isAnchorLink(t)&&(o.show="top"),n){const t=splitOnWhitespace(n);if(t.length>0)for(let e=0;e0?a.join(":"):null;o.scroll=t,o.scrollTarget=r}else if(0===n.indexOf("show:")){var a;const t=(a=n.substr(5).split(":")).pop();r=a.length>0?a.join(":"):null,o.show=t,o.showTarget=r}else if(0===n.indexOf("focus-scroll:")){const t=n.substr(13);o.focusScroll="true"==t}else 0==e?o.swapStyle=n:logError("Unknown modifier in hx-swap: "+n)}}return o}function usesFormData(t){return"multipart/form-data"===getClosestAttributeValue(t,"hx-encoding")||matches(t,"form")&&"multipart/form-data"===getRawAttribute(t,"enctype")}function encodeParamsForBody(t,e,n){let o=null;return withExtensions(e,(function(r){null==o&&(o=r.encodeParameters(t,n,e))})),null!=o?o:usesFormData(e)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(t){return{tasks:[],elts:[t]}}function updateScrollState(t,e){const n=t[0],o=t[t.length-1];if(e.scroll){var r=null;e.scrollTarget&&(r=asElement(querySelectorExt(n,e.scrollTarget))),"top"===e.scroll&&(n||r)&&((r=r||n).scrollTop=0),"bottom"===e.scroll&&(o||r)&&((r=r||o).scrollTop=r.scrollHeight)}if(e.show){if(r=null,e.showTarget){let t=e.showTarget;"window"===e.showTarget&&(t="body"),r=asElement(querySelectorExt(n,t))}"top"===e.show&&(n||r)&&(r=r||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===e.show&&(o||r)&&(r=r||o).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(t,e,n,o){if(null==o&&(o={}),null==t)return o;const r=getAttributeValue(t,e);if(r){let e,a=r.trim(),i=n;if("unset"===a)return null;0===a.indexOf("javascript:")?(a=a.substr(11),i=!0):0===a.indexOf("js:")&&(a=a.substr(3),i=!0),0!==a.indexOf("{")&&(a="{"+a+"}"),e=i?maybeEval(t,(function(){return Function("return ("+a+")")()}),{}):parseJSON(a);for(const t in e)e.hasOwnProperty(t)&&null==o[t]&&(o[t]=e[t])}return getValuesForElement(asElement(parentElt(t)),e,n,o)}function maybeEval(t,e,n){return htmx.config.allowEval?e():(triggerErrorEvent(t,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(t,e){return getValuesForElement(t,"hx-vars",!0,e)}function getHXValsForElement(t,e){return getValuesForElement(t,"hx-vals",!1,e)}function getExpressionVars(t){return mergeObjects(getHXVarsForElement(t),getHXValsForElement(t))}function safelySetHeaderValue(t,e,n){if(null!==n)try{t.setRequestHeader(e,n)}catch(o){t.setRequestHeader(e,encodeURIComponent(n)),t.setRequestHeader(e+"-URI-AutoEncoded","true")}}function getPathFromResponse(t){if(t.responseURL&&"undefined"!=typeof URL)try{const e=new URL(t.responseURL);return e.pathname+e.search}catch(e){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:t.responseURL})}}function hasHeader(t,e){return e.test(t.getAllResponseHeaders())}function ajaxHelper(t,e,n){return t=t.toLowerCase(),n?n instanceof Element||"string"==typeof n?issueAjaxRequest(t,e,null,null,{targetOverride:resolveTarget(n),returnPromise:!0}):issueAjaxRequest(t,e,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:resolveTarget(n.target),swapOverride:n.swap,select:n.select,returnPromise:!0}):issueAjaxRequest(t,e,null,null,{returnPromise:!0})}function hierarchyForElt(t){const e=[];for(;t;)e.push(t),t=t.parentElement;return e}function verifyPath(t,e,n){let o,r;return"function"==typeof URL?(r=new URL(e,document.location.href),o=document.location.origin===r.origin):(r=e,o=startsWith(e,document.location.origin)),!(htmx.config.selfRequestsOnly&&!o)&&triggerEvent(t,"htmx:validateUrl",mergeObjects({url:r,sameHost:o},n))}function formDataFromObject(t){if(t instanceof FormData)return t;const e=new FormData;for(const n in t)t.hasOwnProperty(n)&&("function"==typeof t[n].forEach?t[n].forEach((function(t){e.append(n,t)})):"object"!=typeof t[n]||t[n]instanceof Blob?e.append(n,t[n]):e.append(n,JSON.stringify(t[n])));return e}function formDataArrayProxy(t,e,n){return new Proxy(n,{get:function(n,o){return"number"==typeof o?n[o]:"length"===o?n.length:"push"===o?function(o){n.push(o),t.append(e,o)}:"function"==typeof n[o]?function(){n[o].apply(n,arguments),t.delete(e),n.forEach((function(n){t.append(e,n)}))}:n[o]&&1===n[o].length?n[o][0]:n[o]},set:function(n,o,r){return n[o]=r,t.delete(e),n.forEach((function(n){t.append(e,n)})),!0}})}function formDataProxy(t){return new Proxy(t,{get:function(e,n){if("symbol"==typeof n)return Reflect.get(e,n);if("toJSON"===n)return()=>Object.fromEntries(t);if(n in e)return"function"==typeof e[n]?function(){return t[n].apply(t,arguments)}:e[n];const o=t.getAll(n);return 0===o.length?void 0:1===o.length?o[0]:formDataArrayProxy(e,n,o)},set:function(t,e,n){return"string"==typeof e&&(t.delete(e),"function"==typeof n.forEach?n.forEach((function(n){t.append(e,n)})):"object"!=typeof n||n instanceof Blob?t.append(e,n):t.append(e,JSON.stringify(n)),!0)},deleteProperty:function(t,e){return"string"==typeof e&&t.delete(e),!0},ownKeys:function(t){return Reflect.ownKeys(Object.fromEntries(t))},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(t),e)}})}function issueAjaxRequest(t,e,n,o,r,a){let i=null,s=null;if((r=null!=r?r:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(t,e){i=t,s=e}));null==n&&(n=getDocument().body);const c=r.handler||handleAjaxResponse,u=r.select||null;if(!bodyContains(n))return maybeCall(i),l;const p=r.targetOverride||asElement(getTarget(n));if(null==p||p==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getAttributeValue(n,"hx-target")}),maybeCall(s),l;let d=getInternalData(n);const f=d.lastButtonClicked;if(f){const n=getRawAttribute(f,"formaction");null!=n&&(e=n);const o=getRawAttribute(f,"formmethod");null!=o&&"dialog"!==o.toLowerCase()&&(t=o)}const h=getClosestAttributeValue(n,"hx-confirm");if(void 0===a&&!1===triggerEvent(n,"htmx:confirm",{target:p,elt:n,path:e,verb:t,triggeringEvent:o,etc:r,issueRequest:function(a){return issueAjaxRequest(t,e,n,o,r,!!a)},question:h}))return maybeCall(i),l;let m=n,g=getClosestAttributeValue(n,"hx-sync"),b=null,y=!1;if(g){const t=g.split(":"),e=t[0].trim();if(m="this"===e?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,e)),g=(t[1]||"drop").trim(),d=getInternalData(m),"drop"===g&&d.xhr&&!0!==d.abortable)return maybeCall(i),l;if("abort"===g){if(d.xhr)return maybeCall(i),l;y=!0}else"replace"===g?triggerEvent(m,"htmx:abort"):0===g.indexOf("queue")&&(b=(g.split(" ")[1]||"last").trim())}if(d.xhr){if(!d.abortable){if(null==b){if(o){const t=getInternalData(o);t&&t.triggerSpec&&t.triggerSpec.queue&&(b=t.triggerSpec.queue)}null==b&&(b="last")}return null==d.queuedRequests&&(d.queuedRequests=[]),"first"===b&&0===d.queuedRequests.length||"all"===b?d.queuedRequests.push((function(){issueAjaxRequest(t,e,n,o,r)})):"last"===b&&(d.queuedRequests=[],d.queuedRequests.push((function(){issueAjaxRequest(t,e,n,o,r)}))),maybeCall(i),l}triggerEvent(m,"htmx:abort")}const v=new XMLHttpRequest;d.xhr=v,d.abortable=y;const k=function(){d.xhr=null,d.abortable=!1,null!=d.queuedRequests&&d.queuedRequests.length>0&&d.queuedRequests.shift()()},x=getClosestAttributeValue(n,"hx-prompt");if(x){var w=prompt(x);if(null===w||!triggerEvent(n,"htmx:prompt",{prompt:w,target:p}))return maybeCall(i),k(),l}if(h&&!a&&!confirm(h))return maybeCall(i),k(),l;let E=getHeaders(n,p,w);"get"===t||usesFormData(n)||(E["Content-Type"]="application/x-www-form-urlencoded"),r.headers&&(E=mergeObjects(E,r.headers));const _=getInputValues(n,t);let O=_.errors;const S=_.formData;r.values&&overrideFormData(S,formDataFromObject(r.values));const T=overrideFormData(S,formDataFromObject(getExpressionVars(n)));let C=filterValues(T,n);htmx.config.getCacheBusterParam&&"get"===t&&C.set("org.htmx.cache-buster",getRawAttribute(p,"id")||"true"),null!=e&&""!==e||(e=getDocument().location.href);const $=getValuesForElement(n,"hx-request"),A=getInternalData(n).boosted;let N=htmx.config.methodsThatUseUrlParams.indexOf(t)>=0;const L={boosted:A,useUrlParams:N,formData:C,parameters:formDataProxy(C),unfilteredFormData:T,unfilteredParameters:formDataProxy(T),headers:E,target:p,verb:t,errors:O,withCredentials:r.credentials||$.credentials||htmx.config.withCredentials,timeout:r.timeout||$.timeout||htmx.config.timeout,path:e,triggeringEvent:o};if(!triggerEvent(n,"htmx:configRequest",L))return maybeCall(i),k(),l;if(e=L.path,t=L.verb,E=L.headers,C=formDataFromObject(L.parameters),O=L.errors,N=L.useUrlParams,O&&O.length>0)return triggerEvent(n,"htmx:validation:halted",L),maybeCall(i),k(),l;const D=e.split("#"),I=D[0],M=D[1];let j=e;if(N&&(j=I,!C.keys().next().done&&(j.indexOf("?")<0?j+="?":j+="&",j+=urlEncode(C),M&&(j+="#"+M))),!verifyPath(n,j,L))return triggerErrorEvent(n,"htmx:invalidPath",L),maybeCall(s),l;if(v.open(t.toUpperCase(),j,!0),v.overrideMimeType("text/html"),v.withCredentials=L.withCredentials,v.timeout=L.timeout,$.noHeaders);else for(const t in E)if(E.hasOwnProperty(t)){const e=E[t];safelySetHeaderValue(v,t,e)}const R={xhr:v,target:p,requestConfig:L,etc:r,boosted:A,select:u,pathInfo:{requestPath:e,finalRequestPath:j,responsePath:null,anchor:M}};if(v.onload=function(){try{const t=hierarchyForElt(n);if(R.pathInfo.responsePath=getPathFromResponse(v),c(n,R),!0!==R.keepIndicators&&removeRequestIndicators(P,H),triggerEvent(n,"htmx:afterRequest",R),triggerEvent(n,"htmx:afterOnLoad",R),!bodyContains(n)){let e=null;for(;t.length>0&&null==e;){const n=t.shift();bodyContains(n)&&(e=n)}e&&(triggerEvent(e,"htmx:afterRequest",R),triggerEvent(e,"htmx:afterOnLoad",R))}maybeCall(i),k()}catch(t){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:t},R)),t}},v.onerror=function(){removeRequestIndicators(P,H),triggerErrorEvent(n,"htmx:afterRequest",R),triggerErrorEvent(n,"htmx:sendError",R),maybeCall(s),k()},v.onabort=function(){removeRequestIndicators(P,H),triggerErrorEvent(n,"htmx:afterRequest",R),triggerErrorEvent(n,"htmx:sendAbort",R),maybeCall(s),k()},v.ontimeout=function(){removeRequestIndicators(P,H),triggerErrorEvent(n,"htmx:afterRequest",R),triggerErrorEvent(n,"htmx:timeout",R),maybeCall(s),k()},!triggerEvent(n,"htmx:beforeRequest",R))return maybeCall(i),k(),l;var P=addRequestIndicatorClasses(n),H=disableElements(n);forEach(["loadstart","loadend","progress","abort"],(function(t){forEach([v,v.upload],(function(e){e.addEventListener(t,(function(e){triggerEvent(n,"htmx:xhr:"+t,{lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total})}))}))})),triggerEvent(n,"htmx:beforeSend",R);const F=N?null:encodeParamsForBody(v,n,C);return v.send(F),l}function determineHistoryUpdates(t,e){const n=e.xhr;let o=null,r=null;if(hasHeader(n,/HX-Push:/i)?(o=n.getResponseHeader("HX-Push"),r="push"):hasHeader(n,/HX-Push-Url:/i)?(o=n.getResponseHeader("HX-Push-Url"),r="push"):hasHeader(n,/HX-Replace-Url:/i)&&(o=n.getResponseHeader("HX-Replace-Url"),r="replace"),o)return"false"===o?{}:{type:r,path:o};const a=e.pathInfo.finalRequestPath,i=e.pathInfo.responsePath,s=getClosestAttributeValue(t,"hx-push-url"),l=getClosestAttributeValue(t,"hx-replace-url"),c=getInternalData(t).boosted;let u=null,p=null;return s?(u="push",p=s):l?(u="replace",p=l):c&&(u="push",p=i||a),p?"false"===p?{}:("true"===p&&(p=i||a),e.pathInfo.anchor&&-1===p.indexOf("#")&&(p=p+"#"+e.pathInfo.anchor),{type:u,path:p}):{}}function codeMatches(t,e){return new RegExp(t.code).test(e.toString(10))}function resolveResponseHandling(t){for(var e=0;e0?getWindow().setTimeout(u,b.swapDelay):u()}p&&triggerErrorEvent(t,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+e.pathInfo.requestPath},e))}}const extensions={};function extensionBase(){return{init:function(t){return null},getSelectors:function(){return null},onEvent:function(t,e){return!0},transformResponse:function(t,e,n){return t},isInlineSwap:function(t){return!1},handleSwap:function(t,e,n,o){return!1},encodeParameters:function(t,e,n){return null}}}function defineExtension(t,e){e.init&&e.init(internalAPI),extensions[t]=mergeObjects(extensionBase(),e)}function removeExtension(t){delete extensions[t]}function getExtensions(t,e,n){if(null==e&&(e=[]),null==t)return e;null==n&&(n=[]);const o=getAttributeValue(t,"hx-ext");return o&&forEach(o.split(","),(function(t){if("ignore:"!=(t=t.replace(/ /g,"")).slice(0,7)){if(n.indexOf(t)<0){const n=extensions[t];n&&e.indexOf(n)<0&&e.push(n)}}else n.push(t.slice(7))})),getExtensions(asElement(parentElt(t)),e,n)}var isReady=!1;function ready(t){isReady||"complete"===getDocument().readyState?t():getDocument().addEventListener("DOMContentLoaded",t)}function insertIndicatorStyles(){if(!1!==htmx.config.includeIndicatorStyles){const t=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"";getDocument().head.insertAdjacentHTML("beforeend"," ."+htmx.config.indicatorClass+"{opacity:0} ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ")}}function getMetaConfig(){const t=getDocument().querySelector('meta[name="htmx-config"]');return t?parseJSON(t.content):null}function mergeMetaConfig(){const t=getMetaConfig();t&&(htmx.config=mergeObjects(htmx.config,t))}return getDocument().addEventListener("DOMContentLoaded",(function(){isReady=!0})),ready((function(){mergeMetaConfig(),insertIndicatorStyles();let t=getDocument().body;processNode(t);const e=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");t.addEventListener("htmx:abort",(function(t){const e=getInternalData(t.target);e&&e.xhr&&e.xhr.abort()}));const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(t){t.state&&t.state.htmx?(restoreHistory(),forEach(e,(function(t){triggerEvent(t,"htmx:restored",{document:getDocument(),triggerEvent})}))):n&&n(t)},getWindow().setTimeout((function(){triggerEvent(t,"htmx:load",{}),t=null}),0)})),htmx}();const __WEBPACK_DEFAULT_EXPORT__=htmx},215:(t,e,n)=>{var o=n(2);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals),(0,n(534).A)("49b6e69a",o,!1,{})},86:(t,e,n)=>{var o=n(223);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals),(0,n(534).A)("2dd99462",o,!1,{})},254:(t,e,n)=>{var o=n(163);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals),(0,n(534).A)("2fcb1776",o,!1,{})},534:(t,e,n)=>{"use strict";function o(t,e){for(var n=[],o={},r=0;rh});var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},p=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,r){c=n,p=r||{};var i=o(t,e);return m(i),function(e){for(var n=[],r=0;rn.parts.length&&(o.parts.length=n.parts.length)}else{var i=[];for(r=0;r{var o;if("function"==typeof fetch&&(o=void 0!==n.g&&n.g.fetch?n.g.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),"undefined"==typeof window){var r=o||n(945);r.default&&(r=r.default),e.default=r,t.exports=e.default}}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},getProto=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,__webpack_require__.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var n=Object.create(null);__webpack_require__.r(n);var o={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var r=2&e&&t;"object"==typeof r&&!~leafPrototypes.indexOf(r);r=getProto(r))Object.getOwnPropertyNames(r).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,__webpack_require__.d(n,o),n},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var t={};__webpack_require__.r(t),__webpack_require__.d(t,{PopupIssuesProvider:()=>id});var e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toc-controller-wrapper"},[n("la-table-of-contents-controller",{ref:"la-toc-controller",attrs:{"title-filter":t.titleQuery,"expand-all-btn-classes":"btn btn-primary btn-sm me-1","collapse-all-btn-classes":"btn btn-primary btn-sm mr-1","title-filter-input-classes":"form-control form-control-sm","title-filter-clear-btn-classes":"btn btn-sm btn-secondary"},domProps:{items:t.roots},on:{itemRendered:t.handleItemRendered,itemTitleClicked:t.onTitleClick}},[n("span",{attrs:{slot:"expand-icon"},slot:"expand-icon"},[n("i",{staticClass:"fas fa-plus"})]),t._v(" "),n("span",{attrs:{slot:"collapse-icon"},slot:"collapse-icon"},[n("i",{staticClass:"fas fa-minus"})])])],1)};e._withStripped=!0;const n={name:"DocumentTOCView",props:{selection:{type:Object,required:!0},model:{type:Object,required:!0},issues:{type:Object,required:!0}},data:()=>({titleQuery:"",toc:[],roots:[],tocItems:[]}),methods:{handleItemRendered(t){if(t.target.item.issues.length){const e=document.createElement("i");e.className=`float-right issue-icon issue-${t.target.item.issues_severity}`,e.dataset.toggle="popover",e.dataset.content=t.target.item.issues_description,e.dataset.title=t.target.item.issues_title,e.dataset.trigger="hover",e.dataset.placement="bottom",e.dataset.html=!0,e.dataset.container=".toc-controller-wrapper",t.target.appendHtml=e.outerHTML,$('#toc [data-toggle="popover"]').popover()}},rebuild(){this.model.xmlDocument&&(console.log("rebuilding TOC"),this.buildToc(),this.selectItem(this.selection.get("index")))},buildToc(){const t=[],e=[],n=Indigo.traditions.get(this.model.document.get("country")),o=(r,i)=>{const s=r.children;for(let r=0;r{let e="";const n=this.model.xpath("./a:heading//text()[not(ancestor::a:authorialNote)]",t);for(let t=0;t0&&"akomaNtoso"===e[0].type&&e[0].children&&(t.push(...e[0].children),e[0].children=[]),this.toc=e,this.roots=t,this.mergeIssues()},mergeIssues(){const t=[];_.each(this.toc,(t=>{t.issues=[]})),this.issues.each((e=>{const n=e.get("element");if(n){const o=this.entryForElement(n);o&&(o.issues.push(e),t.push(o))}})),_.each(t,(t=>{let e=_.map(t.issues,(t=>t.get("severity")));e=_.contains(e,"error")?"error":_.contains(e,"warning")?"warning":"information",t.issues_title=t.issues.length+" issue"+(1===t.issues.length?"":"s"),t.issues_description=t.issues.map((t=>t.get("message"))).join("
"),t.issues_severity=e}))},entryForElement(t){const e=Indigo.traditions.get(this.model.document.get("country")),n=this.toc;for(;t;){if(e.is_toc_element(t))for(let e=0;e-1?this.toc[t]:{})},selectItemById(t){for(let e=0;eo(t)));return t.expanded=n.includes(t.data.slug)||e.some((t=>t.expanded)),t}return e.map((t=>o(t))),{taxonomy:e,selectedSlugs:n}},mounted(){this.$el.addEventListener("itemRendered",(t=>{const e=t.target;if(!e)return;const n=e.querySelector(".content__action");if(this.checkbox&&!n.querySelector('input[type="checkbox"]')){const t=e.querySelector(".content__action .content__action__title"),n=document.createElement("label");n.innerHTML=t.innerHTML,n.className="content__action__title",n.title=t.innerText,t.insertAdjacentElement("beforebegin",n),t.remove();const o=document.createElement("input");o.type="checkbox",o.name=this.checkbox,this.classes&&(o.className=this.classes),o.value=e.item.data.slug,o.checked=this.selectedSlugs.includes(o.value),this.form&&o.setAttribute("form",this.form),o.addEventListener("change",(t=>this.checkboxChanged(t,e))),n.insertBefore(o,n.firstChild)}if(!this.checkbox&&this.selectedSlugs.includes(e.item.data?.slug)&&n.querySelector(".content__action__title").classList.add("active"),void 0!==e.item.data.count&&!n.querySelector(".badge")){const t=document.createElement("div");t.className="badge text-bg-light",t.innerText=(e.item.data.count||"0")+(e.item.children?`/${e.item.data.total}`:""),n.appendChild(t)}}))},methods:{checkboxChanged(t,e){for(const n of e.querySelectorAll('input[type="checkbox"]'))n.checked=t.target.checked}}};__webpack_require__(254);const u=r(c,l,[],!1,null,null,null).exports;class p{constructor(t){this.cursor="col-resize",this.splitter=t,this.container=t.parentElement,this.firstPane=t.previousElementSibling,this.secondPane=t.nextElementSibling,this.isDragging=!1,this.splitter.addEventListener("mousedown",(t=>this.onMouseDown(t))),this.mouseUp=this.onMouseUp.bind(this),this.mouseMove=this.onMouseMove.bind(this),this.splitter.id?(this.storageKey=`splitter:${this.splitter.id}`,this.loadState()):this.storageKey=null}loadState(){let t=window.localStorage.getItem(this.storageKey);if(t)try{t=Math.max(10,Math.min(90,parseFloat(t))),this.setFirstPanePercentage(t)}catch{window.localStorage.removeItem(this.storageKey)}}saveState(t){this.storageKey&&window.localStorage.setItem(this.storageKey,t.toString())}onMouseDown(t){this.isDragging=!0,document.body.classList.add("splitter-dragging"),document.body.style.cursor=this.cursor,document.body.style.userSelect="none",document.addEventListener("mouseup",this.mouseUp),document.addEventListener("mousemove",this.mouseMove)}onMouseUp(t){this.isDragging&&(this.isDragging=!1,document.body.classList.remove("splitter-dragging"),document.body.style.cursor="default",document.body.style.userSelect=null,document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("mousemove",this.mouseMove))}onMouseMove(t){if(!this.isDragging)return;const e=this.container.getBoundingClientRect().left,n=t.clientX-e,o=this.container.clientWidth;this.setFirstPanePercentage(n/o*100)}setFirstPanePercentage(t){const e=this.container.clientWidth,n=this.splitter.offsetWidth;let o=100-t-n/e*100;const r=50/e*100;t{$(t.parentElement).modal("hide")}))}},WorkListCard:class{constructor(t){this.element=t,this.element.addEventListener("click",(t=>this.clicked(t))),this.detail=document.querySelector(this.element.getAttribute("hx-target")),this.detail&&(this.collapse=new window.bootstrap.Collapse(this.detail,{toggle:!1}),this.detail.addEventListener("hide.bs.collapse",(()=>this.element.classList.add("collapsed"))),this.detail.addEventListener("show.bs.collapse",(()=>this.element.classList.remove("collapsed"))))}clicked(t){this.collapse&&"A"!==t.target.tagName&&this.collapse.toggle()}},FacetGroup:class{constructor(t){this.root=t,this.root.addEventListener("click",(t=>{t.target.classList.contains("negate")&&(t.preventDefault(),this.negate(t.target.parentElement))}))}negate(t){const e=t.querySelector("input");e&&(e.value.startsWith("-")?e.value=e.value.slice(1):e.value="-"+e.value,e.checked=!0,e.dispatchEvent(new Event("change",{bubbles:!0})))}},RemoveFacetButton:class{constructor(t){this.root=t,this.root.addEventListener("click",(t=>this.removeFacet(t)))}removeFacet(){const t=document.getElementById(this.root.dataset.form),e=this.root.dataset.name;if(e&&t){let n=t[e];n.length||(n=[n]);for(const t of n)t.value===this.root.dataset.value&&(t.checked=!1,t.dispatchEvent(new Event("change",{bubbles:!0})),this.root.remove())}}},HSplitter:class extends p{constructor(t){super(t),this.cursor="row-resize"}onMouseMove(t){if(!this.isDragging)return;const e=this.container.getBoundingClientRect().top,n=t.clientY-e,o=this.container.clientHeight;this.setFirstPanePercentage(n/o*100)}setFirstPanePercentage(t){const e=this.container.clientHeight,n=this.splitter.offsetHeight;let o=100-t-n/e*100;const r=50/e*100;tm.get(t),b=(t,e)=>e in t,y=(t,e)=>(0,console.error)(t,e),v=new Map,k="http://www.w3.org/1999/xlink",x="undefined"!=typeof window?window:{},w=x.document||{head:{}},E=x.HTMLElement||class{},O={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},S=(()=>{let t=!1;try{w.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(t){}return t})(),T=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),C=!1,A=[],N=[],L=(t,e)=>n=>{t.push(n),C||(C=!0,e&&4&O.$flags$?M(I):O.raf(I))},D=t=>{for(let e=0;e{D(A),D(N),(C=A.length>0)&&O.raf(I)},M=t=>Promise.resolve(undefined).then(t),j=L(N,!0),R={},P=t=>"object"==(t=typeof t)||"function"===t;((t,e)=>{for(var n in e)h(t,n,{get:e[n],enumerable:!0})})({},{err:()=>F,map:()=>V,ok:()=>H,unwrap:()=>U,unwrapErr:()=>W});var H=t=>({isOk:!0,isErr:!1,value:t}),F=t=>({isOk:!1,isErr:!0,value:t});function V(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>H(t))):H(n)}if(t.isErr){const e=t.value;return F(e)}throw"should never get here"}var q,z,U=t=>{if(t.isOk)return t.value;throw t.value},W=t=>{if(t.isErr)return t.value;throw t.value},B=(t,e,...n)=>{let o=null,r=null,a=null,i=!1,s=!1;const l=[],c=e=>{for(let n=0;nt[e])).join(" "))}}const u=Z(t,null);return u.$attrs$=e,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=a,u},Z=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),J={},X=(t,e,n)=>{const o=t;return{emit:t=>Y(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},Y=(t,e,n)=>{const o=O.ce(e,n);return t.dispatchEvent(o),o},G=new WeakMap,K=(t,e)=>"sc-"+t.$tagName$,Q=(t,e,n,o,r,a)=>{if(n!==o){let i=b(t,e),s=e.toLowerCase();if("class"===e){const e=t.classList,r=et(n),a=et(o);e.remove(...r.filter((t=>t&&!a.includes(t)))),e.add(...a.filter((t=>t&&!r.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(t.__lookupSetter__(e)||"o"!==e[0]||"n"!==e[1]){const l=P(o);if((i||l&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const r=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==r||(t[e]=r)}}catch(t){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,c=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(k,e):t.removeAttribute(e)):(!i||4&a||r)&&!l&&(o=!0===o?"":o,c?t.setAttributeNS(k,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):b(x,s)?s.slice(2):s[2]+e.slice(3),n||o){const r=e.endsWith(nt);e=e.replace(ot,""),n&&O.rel(t,e,n,r),o&&O.ael(t,e,o,r)}}},tt=/\s/,et=t=>t?t.split(tt):[],nt="Capture",ot=new RegExp(nt+"$"),rt=(t,e,n)=>{const o=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||R,a=e.$attrs$||R;for(const t of at(Object.keys(r)))t in a||Q(o,t,r[t],void 0,n,e.$flags$);for(const t of at(Object.keys(a)))Q(o,t,r[t],a[t],n,e.$flags$)};function at(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var it=!1,st=!1,lt=!1,ct=!1,ut=(t,e,n,o)=>{var r;const a=e.$children$[n];let i,s,l,c=0;if(it||(lt=!0,"slot"===a.$tag$&&(a.$flags$|=a.$children$?2:1)),null!==a.$text$)i=a.$elm$=w.createTextNode(a.$text$);else if(1&a.$flags$)i=a.$elm$=w.createTextNode("");else if(i=a.$elm$=w.createElement(!it&&2&a.$flags$?"slot-fb":a.$tag$),rt(null,a,ct),a.$children$)for(c=0;c{O.$flags$|=1;const n=Array.from(t.childNodes);t["s-sr"];for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==z&&o["s-ol"]&&(Et(gt(o),o,mt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,lt=!0),e&&pt(o,e)}O.$flags$&=-2},dt=(t,e,n,o,r,a)=>{let i,s=t["s-cr"]&&t["s-cr"].parentNode||t;for(;r<=a;++r)o[r]&&(i=ut(null,n,r),i&&(o[r].$elm$=i,Et(s,i,mt(e))))},ft=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$elm$;wt(e),t&&(st=!0,t["s-ol"]?t["s-ol"].remove():pt(t,!0),t.remove())}}},ht=(t,e,n=!1)=>t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:!!n||t.$key$===e.$key$),mt=t=>t&&t["s-ol"]||t,gt=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,bt=(t,e,n=!1)=>{const o=e.$elm$=t.$elm$,r=t.$children$,a=e.$children$,i=e.$tag$,s=e.$text$;let l;null===s?(("slot"!==i||it)&&rt(t,e,ct),null!==r&&null!==a?((t,e,n,o,r=!1)=>{let a,i,s=0,l=0,c=0,u=0,p=e.length-1,d=e[0],f=e[p],h=o.length-1,m=o[0],g=o[h];for(;s<=p&&l<=h;)if(null==d)d=e[++s];else if(null==f)f=e[--p];else if(null==m)m=o[++l];else if(null==g)g=o[--h];else if(ht(d,m,r))bt(d,m,r),d=e[++s],m=o[++l];else if(ht(f,g,r))bt(f,g,r),f=e[--p],g=o[--h];else if(ht(d,g,r))"slot"!==d.$tag$&&"slot"!==g.$tag$||pt(d.$elm$.parentNode,!1),bt(d,g,r),Et(t,d.$elm$,f.$elm$.nextSibling),d=e[++s],g=o[--h];else if(ht(f,m,r))"slot"!==d.$tag$&&"slot"!==g.$tag$||pt(f.$elm$.parentNode,!1),bt(f,m,r),Et(t,f.$elm$,d.$elm$),f=e[--p],m=o[++l];else{for(c=-1,u=s;u<=p;++u)if(e[u]&&null!==e[u].$key$&&e[u].$key$===m.$key$){c=u;break}c>=0?(i=e[c],i.$tag$!==m.$tag$?a=ut(e&&e[l],n,c):(bt(i,m,r),e[c]=void 0,a=i.$elm$),m=o[++l]):(a=ut(e&&e[l],n,l),m=o[++l]),a&&Et(gt(d.$elm$),a,mt(d.$elm$))}s>p?dt(t,null==o[h+1]?null:o[h+1].$elm$,n,o,l,h):l>h&&ft(e,s,p)})(o,r,e,a,n):null!==a?(null!==t.$text$&&(o.textContent=""),dt(o,null,e,a,0,a.length-1)):null!==r&&ft(r,0,r.length-1)):(l=o["s-cr"])?l.parentNode.textContent=s:t.$text$!==s&&(o.data=s)},yt=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}yt(t)}},vt=[],kt=t=>{let e,n,o;for(const r of t.childNodes){if(r["s-sr"]&&(e=r["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=r["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==r["s-hn"])if(xt(e,t)){let n=vt.find((t=>t.$nodeToRelocate$===e));st=!0,e["s-sn"]=e["s-sn"]||t,n?(n.$nodeToRelocate$["s-sh"]=r["s-hn"],n.$slotRefNode$=r):(e["s-sh"]=r["s-hn"],vt.push({$slotRefNode$:r,$nodeToRelocate$:e})),e["s-sr"]&&vt.map((t=>{xt(t.$nodeToRelocate$,e["s-sn"])&&(n=vt.find((t=>t.$nodeToRelocate$===e)),n&&!t.$slotRefNode$&&(t.$slotRefNode$=n.$slotRefNode$))}))}else vt.some((t=>t.$nodeToRelocate$===e))||vt.push({$nodeToRelocate$:e})}1===r.nodeType&&kt(r)}},xt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,wt=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(wt)},Et=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),_t=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},Ot=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return _t(t,t.$ancestorComponent$),j((()=>St(t,e)));t.$flags$|=512},St=(t,e)=>{const n=t.$hostElement$,o=(t.$cmpMeta$.$tagName$,()=>{}),r=n;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return e&&(a=Dt(r,"componentWillLoad")),o(),Tt(a,(()=>$t(t,r,e)))},Tt=(t,e)=>Ct(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Ct=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,$t=async(t,e,n)=>{var o;const r=t.$hostElement$,a=(t.$cmpMeta$.$tagName$,()=>{}),i=r["s-rc"];n&&(t=>{const e=t.$cmpMeta$,n=t.$hostElement$,o=(e.$tagName$,()=>{});((t,e)=>{var n;const o=t,r=K(e),a=v.get(r);if(t=11===t.nodeType?t:w,a)if("string"==typeof a){t=o.head||t;let i,s=G.get(t);if(s||G.set(t,s=new Set),!s.has(r)){{i=w.createElement("style"),i.innerHTML=a;const e=null!=(n=O.$nonce$)?n:function(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}(w);null!=e&&i.setAttribute("nonce",e),t.insertBefore(i,t.querySelector("link"))}4&e.$flags$&&(i.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(r)}}else o.adoptedStyleSheets.includes(a)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,a])})(n.getRootNode(),e),o()})(t);const s=(t.$cmpMeta$.$tagName$,()=>{});At(t,e,r,n),i&&(i.map((t=>t())),r["s-rc"]=void 0),s(),a();{const e=null!=(o=r["s-p"])?o:[],n=()=>Nt(t);0===e.length?n():(Promise.all(e).then(n),t.$flags$|=4,e.length=0)}},At=(t,e,n,o)=>{try{e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e,n=!1)=>{var o,r,a,i;const s=t.$hostElement$,l=t.$cmpMeta$,c=t.$vnode$||Z(null,null),u=(p=e)&&p.$tag$===J?e:B(null,null,e);var p;if(z=s.tagName,l.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},l.$attrsToReflect$.map((([t,e])=>u.$attrs$[e]=s[t]))),n&&u.$attrs$)for(const t of Object.keys(u.$attrs$))s.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(u.$attrs$[t]=s[t]);if(u.$tag$=null,u.$flags$|=4,t.$vnode$=u,u.$elm$=c.$elm$=s,it=!1,q=s["s-cr"],st=!1,bt(c,u,n),O.$flags$|=1,lt){kt(u.$elm$);for(const t of vt){const e=t.$nodeToRelocate$;if(!e["s-ol"]){const t=w.createTextNode("");t["s-nr"]=e,Et(e.parentNode,e["s-ol"]=t,e)}}for(const t of vt){const e=t.$nodeToRelocate$,s=t.$slotRefNode$;if(s){const t=s.parentNode;let n=s.nextSibling;{let a=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;a;){let o=null!=(r=a["s-nr"])?r:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}a=a.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),Et(t,e,n),1===e.nodeType&&(e.hidden=null!=(a=e["s-ih"])&&a)),e&&"function"==typeof s["s-rf"]&&s["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}st&&yt(u.$elm$),O.$flags$&=-2,vt.length=0,q=void 0})(t,e,o)}catch(e){y(e,t.$hostElement$)}return null},Nt=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,n=e,o=t.$ancestorComponent$;Dt(n,"componentDidRender"),64&t.$flags$||(t.$flags$|=64,It(e),Dt(n,"componentDidLoad"),t.$onReadyResolve$(e),o||Lt()),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&M((()=>Ot(t,!1))),t.$flags$&=-517},Lt=t=>{It(w.documentElement),M((()=>Y(x,"appload",{detail:{namespace:"lawwidgets"}})))},Dt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){y(t)}},It=t=>t.classList.add("hydrated"),Mt=(t,e,n)=>{var o,r;const a=t.prototype;if(e.$members$||e.$watchers$||t.watchers){t.watchers&&!e.$watchers$&&(e.$watchers$=t.watchers);const n=Object.entries(null!=(o=e.$members$)?o:{});n.map((([t,[n]])=>{(31&n||32&n)&&Object.defineProperty(a,t,{get(){return((t,e)=>g(this).$instanceValues$.get(e))(0,t)},set(n){((t,e,n,o)=>{const r=g(t),a=t,i=r.$instanceValues$.get(e),s=r.$flags$,l=a;var c,u;c=n,u=o.$members$[e][0],n=null==c||P(c)?c:4&u?"false"!==c&&(""===c||!!c):1&u?String(c):c;const p=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!p){if(r.$instanceValues$.set(e,n),o.$watchers$&&128&s){const t=o.$watchers$[e];t&&t.map((t=>{try{l[t](n,i,e)}catch(t){y(t,a)}}))}2==(18&s)&&Ot(r,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})}));{const o=new Map;a.attributeChangedCallback=function(t,n,r){O.jmp((()=>{var i;const s=o.get(t);if(this.hasOwnProperty(s))r=this[s],delete this[s];else{if(a.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==r)return;if(null==s){const o=g(this),a=null==o?void 0:o.$flags$;if(a&&!(8&a)&&128&a&&r!==n){const o=this,a=null==(i=e.$watchers$)?void 0:i[t];null==a||a.forEach((e=>{null!=o[e]&&o[e].call(o,r,n,t)}))}return}}this[s]=(null!==r||"boolean"!=typeof this[s])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.$watchers$)?r:{}),...n.filter((([t,e])=>15&e[0])).map((([t,n])=>{var r;const a=n[1]||t;return o.set(a,t),512&n[0]&&(null==(r=e.$attrsToReflect$)||r.push([t,a])),a}))]))}}return t},jt=(t,e)=>{const n={$flags$:e[0],$tagName$:e[1]};n.$members$=e[2],n.$listeners$=e[3],n.$watchers$=t.$watchers$,n.$attrsToReflect$=[];const o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__registerHost(){((t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};n.$onReadyPromise$=new Promise((t=>n.$onReadyResolve$=t)),t["s-p"]=[],t["s-rc"]=[],m.set(t,n)})(this,n)},connectedCallback(){const t=g(this);Rt(this,t,n.$listeners$),(t=>{if(!(1&O.$flags$)){const e=g(t),n=e.$cmpMeta$,o=(n.$tagName$,()=>{});if(1&e.$flags$)Rt(t,e,n.$listeners$),(null==e?void 0:e.$lazyInstance$)||(null==e?void 0:e.$onReadyPromise$)&&e.$onReadyPromise$.then((()=>{}));else{e.$flags$|=1,12&n.$flags$&&(t=>{const e=t["s-cr"]=w.createComment("");e["s-cn"]=!0,Et(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){_t(e,e.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.$flags$)){e.$flags$|=32;{o=t.constructor;const n=t.localName;customElements.whenDefined(n).then((()=>e.$flags$|=128))}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=K(n);if(!v.has(e)){const o=(n.$tagName$,()=>{});((t,e,n)=>{let o=v.get(t);T&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,v.set(t,o)})(e,t,!!(1&n.$flags$)),o()}}}const r=e.$ancestorComponent$,a=()=>Ot(e,!0);r&&r["s-rc"]?r["s-rc"].push(a):a()})(t,e,n)}o()}})(this)},disconnectedCallback(){(async t=>{if(!(1&O.$flags$)){const e=g(t);e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0)}})(this),o&&o.call(this)},__attachShadow(){this.shadowRoot=this}}),t.is=n.$tagName$,Mt(t,n)},Rt=(t,e,n,o)=>{n&&n.map((([n,o,r])=>{const a=t,i=Pt(e,r),s=Ht(n);O.ael(a,o,i,s),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>O.rel(a,o,i,s)))}))},Pt=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(t){y(t)}},Ht=t=>S?{passive:!!(1&t),capture:!!(2&t)}:!!(2&t);function Ft(){return document.location.hostname.replace(/^www\./,"")}const Vt="https://services.lawsafrica.com/v1",qt=jt(class extends E{constructor(){super(),this.__registerHost(),this.frbrExpressionUri=void 0,this.frbrCountry=void 0,this.frbrType=void 0,this.frbrSubtype=void 0,this.frbrAuthor=void 0,this.frbrDate=void 0,this.frbrNumber=void 0,this.frbrExpressionDate=void 0,this.frbrLanguage=void 0,this.fetch=!1,this.partner=void 0,this.provider=Vt}refetch(){this.fetchContent()}parseFrbrExpressionUri(t){const e=new RegExp("^(/(?akn))/(?[a-z]{2})(-(?[^/]+))?/(?[^/]+)(/(?[^0-9][^/]*))?(/(?[^0-9][^/]*))?/(?[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?)/(?[^/]+)(/(((?[a-z]{3})(?[@:][^/]*)?(/!?(?[^/]+?)?(/(?[^.]+))?)?(.(?[a-z0-9]+))?)|!?(?[^/]+)))?$","g").exec(t);(null==e?void 0:e.groups)&&Object.keys(e.groups).forEach((t=>{var n;if(null===(n=e.groups)||void 0===n?void 0:n[t])switch(t){case"country":this.frbrCountry||(this.frbrCountry=e.groups[t]);break;case"doctype":this.frbrType||(this.frbrType=e.groups[t]);break;case"subtype":this.frbrSubtype||(this.frbrSubtype=e.groups[t]);break;case"actor":this.frbrAuthor||(this.frbrAuthor=e.groups[t]);break;case"date":this.frbrDate||(this.frbrDate=e.groups[t]);break;case"number":this.frbrNumber||(this.frbrNumber=e.groups[t]);break;case"expression_date":this.frbrExpressionDate||(this.frbrExpressionDate=e.groups[t].replace("@","").replace(":",""));break;case"language":this.frbrLanguage||(this.frbrLanguage=e.groups[t])}})),this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const t=this.provider+"/p/"+this.partner+"/e/portion"+this.frbrExpressionUri;try{const e=await fetch(t);e.ok&&(this.el.innerHTML=await e.text())}catch(t){}}}ensurePartner(){this.partner||(this.partner=Ft())}componentWillLoad(){this.frbrExpressionUri&&this.parseFrbrExpressionUri(this.frbrExpressionUri)}get el(){return this}static get watchers(){return{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}}static get style(){return'@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");la-akoma-ntoso{display:block;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-size:15px;line-height:1.35;}@-webkit-keyframes fadeout{from{background-color:yellow}to{background-color:unset}}@keyframes fadeout{from{background-color:yellow}to{background-color:unset}}la-akoma-ntoso.flash-target :target{-webkit-animation:fadeout 2s;animation:fadeout 2s}la-akoma-ntoso .akn-blockContainer{display:block}la-akoma-ntoso .akn-block{display:block}la-akoma-ntoso .akn-blockList{display:block}la-akoma-ntoso .akn-conclusions{display:block}la-akoma-ntoso .akn-coverPage{display:block}la-akoma-ntoso .akn-foreign{display:block}la-akoma-ntoso .akn-item{display:block}la-akoma-ntoso .akn-listIntroduction{display:block}la-akoma-ntoso .akn-listWrapUp{display:block}la-akoma-ntoso .akn-ol{display:block}la-akoma-ntoso .akn-p{display:block}la-akoma-ntoso .akn-preamble{display:block}la-akoma-ntoso .akn-preface{display:block}la-akoma-ntoso .akn-tblock{display:block}la-akoma-ntoso .akn-toc{display:block}la-akoma-ntoso .akn-ul{display:block}la-akoma-ntoso .akn-from{display:block}la-akoma-ntoso .akn-narrative{display:block}la-akoma-ntoso .akn-scene{display:block}la-akoma-ntoso .akn-summary{display:block}la-akoma-ntoso .akn-preface,la-akoma-ntoso .akn-preamble{margin-bottom:1.6em}la-akoma-ntoso .akn-preface>.akn-p,la-akoma-ntoso .akn-preamble>.akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-listIntroduction,la-akoma-ntoso .akn-listWrapUp,la-akoma-ntoso .akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-ul,la-akoma-ntoso .akn-ol{list-style-position:outside;padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-ul{list-style-type:disc}la-akoma-ntoso .akn-ol{list-style-type:arabic}la-akoma-ntoso .akn-li{display:list-item;margin-bottom:0.8em}la-akoma-ntoso .akn-akomaNtoso{display:block}la-akoma-ntoso .akn-act{display:block}la-akoma-ntoso .akn-amendment{display:block}la-akoma-ntoso .akn-amendmentList{display:block}la-akoma-ntoso .akn-bill{display:block}la-akoma-ntoso .akn-components{display:block}la-akoma-ntoso .akn-debate{display:block}la-akoma-ntoso .akn-debateReport{display:block}la-akoma-ntoso .akn-doc{display:block}la-akoma-ntoso .akn-documentCollection{display:block}la-akoma-ntoso .akn-judgment{display:block}la-akoma-ntoso .akn-officialGazette{display:block}la-akoma-ntoso .akn-portion{display:block}la-akoma-ntoso .akn-statement{display:block}la-akoma-ntoso .coverpage{text-align:center;margin-bottom:1.6em}la-akoma-ntoso .coverpage .notice-list{margin:0px;padding:0px}la-akoma-ntoso .coverpage .notice-list li{list-style:none}la-akoma-ntoso .coverpage .place-name,la-akoma-ntoso .coverpage .parent-work{font-size:19px;line-height:1.2;margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .assent-date,la-akoma-ntoso .coverpage .commencement-date{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencement-date-list{margin-bottom:0.8em}la-akoma-ntoso .coverpage .commencement-date-uncommenced{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencements-table{margin:auto;max-width:80%}la-akoma-ntoso .coverpage .amendment-list{margin-top:1.6em;padding:0px}la-akoma-ntoso .coverpage .amendment{list-style:none;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso .coverpage .commencement-note,la-akoma-ntoso .coverpage .verification-notice,la-akoma-ntoso .coverpage .as-at-date-notice{margin-top:0.8em;font-style:italic}la-akoma-ntoso .akn-from{float:left;margin-right:0.5em;font-weight:bold}la-akoma-ntoso h1,la-akoma-ntoso h2,la-akoma-ntoso h3,la-akoma-ntoso h4,la-akoma-ntoso h5,la-akoma-ntoso .akn-heading{margin-top:0px;margin-bottom:0.8em;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-weight:bold}la-akoma-ntoso h1{font-size:26px;line-height:1.2}la-akoma-ntoso h2,la-akoma-ntoso .akn-heading{text-align:center;font-size:19px;line-height:1.2}la-akoma-ntoso h3{font-size:18px;line-height:1.35}la-akoma-ntoso h4{font-size:15px;line-height:1.35}la-akoma-ntoso .akn-subheading,la-akoma-ntoso .akn-crossHeading{text-align:center;font-style:italic}la-akoma-ntoso .akn-attachment>.akn-subheading{font-style:normal}la-akoma-ntoso .akn-alinea{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-article{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-book{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-chapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-clause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-division{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-hcontainer{display:block;margin-bottom:0.8em}la-akoma-ntoso .akn-indent{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-level{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-list{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-paragraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-part{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-point{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proviso{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-section{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subchapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subclause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subdivision{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-sublist{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subparagraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subpart{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subrule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subsection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subtitle{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-title{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-tome{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-transitional{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-address{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-adjournment{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-administrationOfOath{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-answer{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-communication{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-debateSection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-declarationOfVote{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-ministerialStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-nationalInterest{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-noticesOfMotion{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-oralStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-papers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-personalStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-petitions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-pointOfOrder{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-prayers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proceduralMotions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-question{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-questions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-resolutions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rollCall{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speech{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speechGroup{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-writtenStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-crossHeading{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-alinea{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-alinea.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-alinea>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-alinea>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-alinea>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-indent{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-indent.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-indent>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-indent>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-indent>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-level{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-level.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-level>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-level>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-level>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-list{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-list.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-list>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-list>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-list>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-paragraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-paragraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-paragraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-paragraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-paragraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-point{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-point.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-point>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-point>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-point>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-proviso{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-proviso.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-proviso>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-proviso>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-proviso>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-rule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-rule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-rule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-rule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-rule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-sublist{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-sublist.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-sublist>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-sublist>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-sublist>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subparagraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subparagraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subparagraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subparagraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subparagraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subrule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subrule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subrule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subrule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subrule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subsection{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subsection.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subsection>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subsection>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subsection>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-transitional{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-transitional.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-transitional>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-transitional>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-transitional>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-br{display:block}la-akoma-ntoso .akn-def{font-weight:bold}la-akoma-ntoso .akn-longTitle{display:block;font-weight:bold;margin-bottom:0.8em}la-akoma-ntoso .akn-remark{font-style:italic}la-akoma-ntoso img{max-width:100%}la-akoma-ntoso .akn-ins{text-decoration:underline}la-akoma-ntoso .akn-del{text-decoration:line-through}la-akoma-ntoso .akn-authorialNote{display:-ms-flexbox;display:flex;font-size:small;margin-top:0.4em;padding:0.25em 0.25em 0 0.25em;position:relative;background-color:rgba(0, 0, 0, 0.07)}la-akoma-ntoso .akn-authorialNote::before{content:" ";position:absolute;top:0;left:0;border-top:1px solid black;width:15%}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote{margin-top:0px}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote::before{border-top:0px}la-akoma-ntoso .akn-authorialNote>.akn-authorialNote--marker{margin-right:0.5em}la-akoma-ntoso .akn-embeddedStructure{display:block;margin-left:2em}la-akoma-ntoso .akn-embeddedStructure .akn-embeddedStructure--startQuote{margin-left:-0.5em;float:left}la-akoma-ntoso .akn--table-container{max-width:100%;overflow-y:auto;margin-bottom:1.6em}la-akoma-ntoso table{width:100%;border:1px solid #ddd;border-collapse:collapse}la-akoma-ntoso table th,la-akoma-ntoso table td{border-top:1px solid #ddd;border-left:1px solid #ddd;padding:5px;text-align:left;vertical-align:top}la-akoma-ntoso table th{font-weight:bold}la-akoma-ntoso table th>:last-child,la-akoma-ntoso table td>:last-child{margin-bottom:0px}la-akoma-ntoso table thead th{vertical-align:bottom}la-akoma-ntoso table caption+thead tr:first-child th,la-akoma-ntoso table caption+thead tr:first-child td,la-akoma-ntoso table colgroup+thead tr:first-child th,la-akoma-ntoso table colgroup+thead tr:first-child td,la-akoma-ntoso table thead:first-child tr:first-child th,la-akoma-ntoso table thead:first-child tr:first-child td{border-top:0}la-akoma-ntoso table tbody+tbody{border-top:2px solid #ddd}la-akoma-ntoso .akn--text-left{text-align:left}la-akoma-ntoso .akn--text-center{text-align:center}la-akoma-ntoso .akn--text-right{text-align:right}la-akoma-ntoso[frbr-country^=ke]{}la-akoma-ntoso[frbr-country^=ke] .akn-remark,la-akoma-ntoso[frbr-country^=ke] .akn-crossHeading{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .coverpage .amendment,la-akoma-ntoso[frbr-country^=ke] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=ke] .coverpage .as-at-date-notice{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .akn-listIntroduction>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=ke] .akn-p>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-division .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-paragraph .akn-heading{text-align:start;font-size:15px;line-height:1.35}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-subheading{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-judgmentBody .akn-p,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-attachments .akn-p{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-remark,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-ref,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-term{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] em{font-style:normal;text-decoration:underline}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-header{padding-top:1.6em;padding-bottom:3.2em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header{width:80%;margin-left:auto;margin-right:auto;margin-bottom:1.6em;font-weight:bold;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .neutral-citation{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-date,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .judges,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .docket-number,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .extra-text,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-authority{margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .legacy-citation{margin-bottom:0.8em;font-weight:normal;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .republic-head,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .parties-separator{margin-top:1.6em;margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing{margin-bottom:0.8em;text-transform:uppercase;display:-ms-flexbox;display:flex;-ms-flex-line-pack:end;align-content:flex-end}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .party-name{text-align:left;max-width:60%}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .dotted{-ms-flex-positive:1;flex-grow:1;border-bottom:dotted 1px;margin:6px}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .header-note{margin-top:1.6em;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .summary-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .author{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .catchwords,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .outcome{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .akn-h4{font-weight:bold;font-style:normal}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .introduction .decision-action{text-align:center;margin-top:2.4em;text-transform:uppercase;font-weight:bold}la-akoma-ntoso[frbr-country^=na] .coverpage .amendment-list,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-date,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .assent-date{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .amendment,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-note,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice{font-style:normal}la-akoma-ntoso[frbr-country^=na] .akn-remark{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .akn-p>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=na] .akn-listIntroduction>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=pl]{}la-akoma-ntoso[frbr-country^=pl] .coverpage .doctype{text-transform:uppercase}la-akoma-ntoso[frbr-country^=pl] .akn-intro,la-akoma-ntoso[frbr-country^=pl] .akn-list,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea,la-akoma-ntoso[frbr-country^=pl] .akn-indent,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-left:3em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-indent-num{display:block;float:left;margin-left:-3em}la-akoma-ntoso.show-structure .akn-alinea,la-akoma-ntoso.show-structure-hier .akn-alinea{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-alinea::before,la-akoma-ntoso.show-structure-hier .akn-alinea::before{content:"alinea";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-article,la-akoma-ntoso.show-structure-hier .akn-article{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-article::before,la-akoma-ntoso.show-structure-hier .akn-article::before{content:"article";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-book,la-akoma-ntoso.show-structure-hier .akn-book{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-book::before,la-akoma-ntoso.show-structure-hier .akn-book::before{content:"book";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-chapter,la-akoma-ntoso.show-structure-hier .akn-chapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-chapter::before,la-akoma-ntoso.show-structure-hier .akn-chapter::before{content:"chapter";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-clause,la-akoma-ntoso.show-structure-hier .akn-clause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-clause::before,la-akoma-ntoso.show-structure-hier .akn-clause::before{content:"clause";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-division,la-akoma-ntoso.show-structure-hier .akn-division{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-division::before,la-akoma-ntoso.show-structure-hier .akn-division::before{content:"division";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer,la-akoma-ntoso.show-structure-hier .akn-hcontainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-hcontainer::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer::before{content:"hcontainer";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-indent,la-akoma-ntoso.show-structure-hier .akn-indent{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-indent::before,la-akoma-ntoso.show-structure-hier .akn-indent::before{content:"indent";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-level,la-akoma-ntoso.show-structure-hier .akn-level{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-level::before,la-akoma-ntoso.show-structure-hier .akn-level::before{content:"level";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-list,la-akoma-ntoso.show-structure-hier .akn-list{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-list::before,la-akoma-ntoso.show-structure-hier .akn-list::before{content:"list";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-paragraph,la-akoma-ntoso.show-structure-hier .akn-paragraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-paragraph::before,la-akoma-ntoso.show-structure-hier .akn-paragraph::before{content:"para";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-part,la-akoma-ntoso.show-structure-hier .akn-part{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-part::before,la-akoma-ntoso.show-structure-hier .akn-part::before{content:"part";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-point,la-akoma-ntoso.show-structure-hier .akn-point{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-point::before,la-akoma-ntoso.show-structure-hier .akn-point::before{content:"point";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proviso,la-akoma-ntoso.show-structure-hier .akn-proviso{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-proviso::before,la-akoma-ntoso.show-structure-hier .akn-proviso::before{content:"proviso";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rule,la-akoma-ntoso.show-structure-hier .akn-rule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-rule::before,la-akoma-ntoso.show-structure-hier .akn-rule::before{content:"rule";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-section,la-akoma-ntoso.show-structure-hier .akn-section{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-section::before,la-akoma-ntoso.show-structure-hier .akn-section::before{content:"section";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subchapter,la-akoma-ntoso.show-structure-hier .akn-subchapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-subchapter::before,la-akoma-ntoso.show-structure-hier .akn-subchapter::before{content:"subchapter";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subclause,la-akoma-ntoso.show-structure-hier .akn-subclause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe1}la-akoma-ntoso.show-structure .akn-subclause::before,la-akoma-ntoso.show-structure-hier .akn-subclause::before{content:"subclause";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subdivision,la-akoma-ntoso.show-structure-hier .akn-subdivision{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefef}la-akoma-ntoso.show-structure .akn-subdivision::before,la-akoma-ntoso.show-structure-hier .akn-subdivision::before{content:"subdivision";position:absolute;top:0px;left:0px;color:black;background-color:#9aefef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-sublist,la-akoma-ntoso.show-structure-hier .akn-sublist{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae1ef}la-akoma-ntoso.show-structure .akn-sublist::before,la-akoma-ntoso.show-structure-hier .akn-sublist::before{content:"sublist";position:absolute;top:0px;left:0px;color:black;background-color:#9ae1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subparagraph,la-akoma-ntoso.show-structure-hier .akn-subparagraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ad3ef}la-akoma-ntoso.show-structure .akn-subparagraph::before,la-akoma-ntoso.show-structure-hier .akn-subparagraph::before{content:"subpara";position:absolute;top:0px;left:0px;color:black;background-color:#9ad3ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subpart,la-akoma-ntoso.show-structure-hier .akn-subpart{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ac5ef}la-akoma-ntoso.show-structure .akn-subpart::before,la-akoma-ntoso.show-structure-hier .akn-subpart::before{content:"subpart";position:absolute;top:0px;left:0px;color:white;background-color:#9ac5ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subrule,la-akoma-ntoso.show-structure-hier .akn-subrule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ab6ef}la-akoma-ntoso.show-structure .akn-subrule::before,la-akoma-ntoso.show-structure-hier .akn-subrule::before{content:"subrule";position:absolute;top:0px;left:0px;color:white;background-color:#9ab6ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subsection,la-akoma-ntoso.show-structure-hier .akn-subsection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa8ef}la-akoma-ntoso.show-structure .akn-subsection::before,la-akoma-ntoso.show-structure-hier .akn-subsection::before{content:"subsection";position:absolute;top:0px;left:0px;color:white;background-color:#9aa8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subtitle,la-akoma-ntoso.show-structure-hier .akn-subtitle{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9a9aef}la-akoma-ntoso.show-structure .akn-subtitle::before,la-akoma-ntoso.show-structure-hier .akn-subtitle::before{content:"subtitle";position:absolute;top:0px;left:0px;color:white;background-color:#9a9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-title,la-akoma-ntoso.show-structure-hier .akn-title{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a89aef}la-akoma-ntoso.show-structure .akn-title::before,la-akoma-ntoso.show-structure-hier .akn-title::before{content:"title";position:absolute;top:0px;left:0px;color:white;background-color:#a89aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tome,la-akoma-ntoso.show-structure-hier .akn-tome{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b69aef}la-akoma-ntoso.show-structure .akn-tome::before,la-akoma-ntoso.show-structure-hier .akn-tome::before{content:"tome";position:absolute;top:0px;left:0px;color:white;background-color:#b69aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-transitional,la-akoma-ntoso.show-structure-hier .akn-transitional{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c59aef}la-akoma-ntoso.show-structure .akn-transitional::before,la-akoma-ntoso.show-structure-hier .akn-transitional::before{content:"transitional";position:absolute;top:0px;left:0px;color:white;background-color:#c59aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-address,la-akoma-ntoso.show-structure-hier .akn-address{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d39aef}la-akoma-ntoso.show-structure .akn-address::before,la-akoma-ntoso.show-structure-hier .akn-address::before{content:"address";position:absolute;top:0px;left:0px;color:white;background-color:#d39aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-adjournment,la-akoma-ntoso.show-structure-hier .akn-adjournment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e19aef}la-akoma-ntoso.show-structure .akn-adjournment::before,la-akoma-ntoso.show-structure-hier .akn-adjournment::before{content:"adjournment";position:absolute;top:0px;left:0px;color:white;background-color:#e19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-administrationOfOath,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aef}la-akoma-ntoso.show-structure .akn-administrationOfOath::before,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath::before{content:"administrationOfOath";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-answer,la-akoma-ntoso.show-structure-hier .akn-answer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ae1}la-akoma-ntoso.show-structure .akn-answer::before,la-akoma-ntoso.show-structure-hier .akn-answer::before{content:"answer";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ae1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-communication,la-akoma-ntoso.show-structure-hier .akn-communication{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ad3}la-akoma-ntoso.show-structure .akn-communication::before,la-akoma-ntoso.show-structure-hier .akn-communication::before{content:"communication";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ad3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-debateSection,la-akoma-ntoso.show-structure-hier .akn-debateSection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ac5}la-akoma-ntoso.show-structure .akn-debateSection::before,la-akoma-ntoso.show-structure-hier .akn-debateSection::before{content:"debateSection";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ac5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-declarationOfVote,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ab6}la-akoma-ntoso.show-structure .akn-declarationOfVote::before,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote::before{content:"declarationOfVote";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ab6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ministerialStatements,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aa8}la-akoma-ntoso.show-structure .akn-ministerialStatements::before,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements::before{content:"ministerialStatements";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-nationalInterest,la-akoma-ntoso.show-structure-hier .akn-nationalInterest{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-nationalInterest::before,la-akoma-ntoso.show-structure-hier .akn-nationalInterest::before{content:"nationalInterest";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-noticesOfMotion,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-noticesOfMotion::before,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion::before{content:"noticesOfMotion";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-oralStatements,la-akoma-ntoso.show-structure-hier .akn-oralStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-oralStatements::before,la-akoma-ntoso.show-structure-hier .akn-oralStatements::before{content:"oralStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-papers,la-akoma-ntoso.show-structure-hier .akn-papers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-papers::before,la-akoma-ntoso.show-structure-hier .akn-papers::before{content:"papers";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-personalStatements,la-akoma-ntoso.show-structure-hier .akn-personalStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-personalStatements::before,la-akoma-ntoso.show-structure-hier .akn-personalStatements::before{content:"personalStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-petitions,la-akoma-ntoso.show-structure-hier .akn-petitions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-petitions::before,la-akoma-ntoso.show-structure-hier .akn-petitions::before{content:"petitions";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-pointOfOrder,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-pointOfOrder::before,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder::before{content:"pointOfOrder";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-prayers,la-akoma-ntoso.show-structure-hier .akn-prayers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-prayers::before,la-akoma-ntoso.show-structure-hier .akn-prayers::before{content:"prayers";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proceduralMotions,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-proceduralMotions::before,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions::before{content:"proceduralMotions";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-question,la-akoma-ntoso.show-structure-hier .akn-question{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-question::before,la-akoma-ntoso.show-structure-hier .akn-question::before{content:"question";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-questions,la-akoma-ntoso.show-structure-hier .akn-questions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-questions::before,la-akoma-ntoso.show-structure-hier .akn-questions::before{content:"questions";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-resolutions,la-akoma-ntoso.show-structure-hier .akn-resolutions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-resolutions::before,la-akoma-ntoso.show-structure-hier .akn-resolutions::before{content:"resolutions";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rollCall,la-akoma-ntoso.show-structure-hier .akn-rollCall{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-rollCall::before,la-akoma-ntoso.show-structure-hier .akn-rollCall::before{content:"rollCall";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speech,la-akoma-ntoso.show-structure-hier .akn-speech{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-speech::before,la-akoma-ntoso.show-structure-hier .akn-speech::before{content:"speech";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speechGroup,la-akoma-ntoso.show-structure-hier .akn-speechGroup{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-speechGroup::before,la-akoma-ntoso.show-structure-hier .akn-speechGroup::before{content:"speechGroup";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-writtenStatements,la-akoma-ntoso.show-structure-hier .akn-writtenStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-writtenStatements::before,la-akoma-ntoso.show-structure-hier .akn-writtenStatements::before{content:"writtenStatements";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-crossHeading,la-akoma-ntoso.show-structure-hier .akn-crossHeading{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-crossHeading::before,la-akoma-ntoso.show-structure-hier .akn-crossHeading::before{content:"crossHeading";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer:not([data-name=hcontainer])::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer:not([data-name=hcontainer])::before{content:"HCONTAINER - " attr(data-name) !important}la-akoma-ntoso.show-structure .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-blockList>.akn-item:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-blockList>.akn-item:not(.akn--no-indent){padding-left:calc(3em + 3px)}la-akoma-ntoso.show-structure .akn-blockContainer,la-akoma-ntoso.show-structure-block .akn-blockContainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn-blockContainer::before,la-akoma-ntoso.show-structure-block .akn-blockContainer::before{position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-block,la-akoma-ntoso.show-structure-block .akn-block{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e8ef9a}la-akoma-ntoso.show-structure .akn-block::before,la-akoma-ntoso.show-structure-block .akn-block::before{position:absolute;top:0px;left:0px;color:black;background-color:#e8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-blockList,la-akoma-ntoso.show-structure-block .akn-blockList{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #daef9a}la-akoma-ntoso.show-structure .akn-blockList::before,la-akoma-ntoso.show-structure-block .akn-blockList::before{content:"items";position:absolute;top:0px;left:0px;color:black;background-color:#daef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-conclusions,la-akoma-ntoso.show-structure-block .akn-conclusions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-conclusions::before,la-akoma-ntoso.show-structure-block .akn-conclusions::before{position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-coverPage,la-akoma-ntoso.show-structure-block .akn-coverPage{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-coverPage::before,la-akoma-ntoso.show-structure-block .akn-coverPage::before{position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-foreign,la-akoma-ntoso.show-structure-block .akn-foreign{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #afef9a}la-akoma-ntoso.show-structure .akn-foreign::before,la-akoma-ntoso.show-structure-block .akn-foreign::before{position:absolute;top:0px;left:0px;color:black;background-color:#afef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-item,la-akoma-ntoso.show-structure-block .akn-item{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a1ef9a}la-akoma-ntoso.show-structure .akn-item::before,la-akoma-ntoso.show-structure-block .akn-item::before{content:"item";position:absolute;top:0px;left:0px;color:black;background-color:#a1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listIntroduction,la-akoma-ntoso.show-structure-block .akn-listIntroduction{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa1}la-akoma-ntoso.show-structure .akn-listIntroduction::before,la-akoma-ntoso.show-structure-block .akn-listIntroduction::before{content:"listIntro";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listWrapUp,la-akoma-ntoso.show-structure-block .akn-listWrapUp{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefaf}la-akoma-ntoso.show-structure .akn-listWrapUp::before,la-akoma-ntoso.show-structure-block .akn-listWrapUp::before{content:"listWrapUp";position:absolute;top:0px;left:0px;color:black;background-color:#9aefaf;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ol,la-akoma-ntoso.show-structure-block .akn-ol{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefbd}la-akoma-ntoso.show-structure .akn-ol::before,la-akoma-ntoso.show-structure-block .akn-ol::before{position:absolute;top:0px;left:0px;color:black;background-color:#9aefbd;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preamble,la-akoma-ntoso.show-structure-block .akn-preamble{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefda}la-akoma-ntoso.show-structure .akn-preamble::before,la-akoma-ntoso.show-structure-block .akn-preamble::before{content:"preamble";position:absolute;top:0px;left:0px;color:black;background-color:#9aefda;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preface,la-akoma-ntoso.show-structure-block .akn-preface{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe8}la-akoma-ntoso.show-structure .akn-preface::before,la-akoma-ntoso.show-structure-block .akn-preface::before{content:"preface";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tblock,la-akoma-ntoso.show-structure-block .akn-tblock{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae8ef}la-akoma-ntoso.show-structure .akn-tblock::before,la-akoma-ntoso.show-structure-block .akn-tblock::before{position:absolute;top:0px;left:0px;color:black;background-color:#9ae8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-toc,la-akoma-ntoso.show-structure-block .akn-toc{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9adaef}la-akoma-ntoso.show-structure .akn-toc::before,la-akoma-ntoso.show-structure-block .akn-toc::before{position:absolute;top:0px;left:0px;color:black;background-color:#9adaef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ul,la-akoma-ntoso.show-structure-block .akn-ul{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9accef}la-akoma-ntoso.show-structure .akn-ul::before,la-akoma-ntoso.show-structure-block .akn-ul::before{content:"bullets";position:absolute;top:0px;left:0px;color:black;background-color:#9accef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-from,la-akoma-ntoso.show-structure-block .akn-from{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9abdef}la-akoma-ntoso.show-structure .akn-from::before,la-akoma-ntoso.show-structure-block .akn-from::before{content:"from";position:absolute;top:0px;left:0px;color:white;background-color:#9abdef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-narrative,la-akoma-ntoso.show-structure-block .akn-narrative{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aafef}la-akoma-ntoso.show-structure .akn-narrative::before,la-akoma-ntoso.show-structure-block .akn-narrative::before{content:"narrative";position:absolute;top:0px;left:0px;color:white;background-color:#9aafef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-scene,la-akoma-ntoso.show-structure-block .akn-scene{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa1ef}la-akoma-ntoso.show-structure .akn-scene::before,la-akoma-ntoso.show-structure-block .akn-scene::before{content:"scene";position:absolute;top:0px;left:0px;color:white;background-color:#9aa1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-summary,la-akoma-ntoso.show-structure-block .akn-summary{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a19aef}la-akoma-ntoso.show-structure .akn-summary::before,la-akoma-ntoso.show-structure-block .akn-summary::before{content:"summary";position:absolute;top:0px;left:0px;color:white;background-color:#a19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn--table-container,la-akoma-ntoso.show-structure-block .akn--table-container{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn--table-container::before,la-akoma-ntoso.show-structure-block .akn--table-container::before{content:"table";position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-abbr,la-akoma-ntoso.show-structure-inline .akn-abbr{background-color:rgba(175, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"abbr";color:black;background-color:#afef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-remark,la-akoma-ntoso.show-structure-inline .akn-remark{background-color:rgba(161, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-remark:hover::before,la-akoma-ntoso.show-structure-inline .akn-remark:hover::before{content:"remark";color:black;background-color:#a1ef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"ABBR - " attr(title);text-transform:none}la-akoma-ntoso.show-structure .akn-authorialNote,la-akoma-ntoso.show-structure-subflow .akn-authorialNote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efbd9a}la-akoma-ntoso.show-structure .akn-authorialNote::before,la-akoma-ntoso.show-structure-subflow .akn-authorialNote::before{content:"footnote";position:absolute;top:0px;left:0px;color:black;background-color:#efbd9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-embeddedStructure,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-embeddedStructure::before,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure::before{content:"quote";position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-attachment,la-akoma-ntoso.show-structure-doc-container .akn-attachment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efcc9a}la-akoma-ntoso.show-structure .akn-attachment::before,la-akoma-ntoso.show-structure-doc-container .akn-attachment::before{content:"attachment";position:absolute;top:0px;left:0px;color:black;background-color:#efcc9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-component,la-akoma-ntoso.show-structure-doc-container .akn-component{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-component::before,la-akoma-ntoso.show-structure-doc-container .akn-component::before{content:"component";position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}'}},[0,"la-akoma-ntoso",{frbrExpressionUri:[1537,"frbr-expression-uri"],frbrCountry:[1537,"frbr-country"],frbrType:[1537,"frbr-type"],frbrSubtype:[1537,"frbr-subtype"],frbrAuthor:[1537,"frbr-author"],frbrDate:[1537,"frbr-date"],frbrNumber:[1537,"frbr-number"],frbrExpressionDate:[1537,"frbr-expression-date"],frbrLanguage:[1537,"frbr-language"],fetch:[1540],partner:[1537],provider:[1]},void 0,{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}]);"undefined"!=typeof customElements&&["la-akoma-ntoso"].forEach((t=>{"la-akoma-ntoso"===t&&(customElements.get(t)||customElements.define(t,qt))}));var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},Ut=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Wt="object"==typeof zt&&zt&&zt.Object===Object&&zt,Bt="object"==typeof self&&self&&self.Object===Object&&self,Zt=Wt||Bt||Function("return this")(),Jt=Zt,Xt=/\s/,Yt=function(t){for(var e=t.length;e--&&Xt.test(t.charAt(e)););return e},Gt=/^\s+/,Kt=Zt.Symbol,Qt=Kt,te=Object.prototype,ee=te.hasOwnProperty,ne=te.toString,oe=Qt?Qt.toStringTag:void 0,re=Object.prototype.toString,ae=function(t){var e=ee.call(t,oe),n=t[oe];try{t[oe]=void 0;var o=!0}catch(t){}var r=ne.call(t);return o&&(e?t[oe]=n:delete t[oe]),r},ie=Kt?Kt.toStringTag:void 0,se=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ie&&ie in Object(t)?ae(t):function(t){return re.call(t)}(t)},le=function(t){return t?t.slice(0,Yt(t)+1).replace(Gt,""):t},ce=Ut,ue=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,de=/^0o[0-7]+$/i,fe=parseInt,he=Ut,me=function(){return Jt.Date.now()},ge=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==se(t)}(t))return NaN;if(ce(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ce(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=le(t);var n=pe.test(t);return n||de.test(t)?fe(t.slice(2),n?2:8):ue.test(t)?NaN:+t},be=Math.max,ye=Math.min,ve=function(t,e,n){var o,r,a,i,s,l,c=0,u=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=o,a=r;return o=r=void 0,c=e,i=t.apply(a,n)}function h(t){var n=t-l;return void 0===l||n>=e||n<0||p&&t-c>=a}function m(){var t=me();if(h(t))return g(t);s=setTimeout(m,function(t){var n=e-(t-l);return p?ye(n,a-(t-c)):n}(t))}function g(t){return s=void 0,d&&o?f(t):(o=r=void 0,i)}function b(){var t=me(),n=h(t);if(o=arguments,r=this,l=t,n){if(void 0===s)return function(t){return c=t,s=setTimeout(m,e),u?f(t):i}(l);if(p)return clearTimeout(s),s=setTimeout(m,e),f(l)}return void 0===s&&(s=setTimeout(m,e)),i}return e=ge(e)||0,he(n)&&(u=!!n.leading,a=(p="maxWait"in n)?be(ge(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},b.flush=function(){return void 0===s?i:g(me())},b};class ke{constructor(t,e,n){this.component=t,this.selector=e,this.callback=n,this.target=this.findElement(),this.target&&window.MutationObserver?(this.observer=new MutationObserver((()=>{this.targetDomChanged()})),this.observer.observe(this.target,{childList:!0})):this.observer=null}getElement(){return this.target}findElement(){if(this.selector)return this.selector instanceof HTMLElement?this.selector:this.component.ownerDocument.querySelector(this.selector);let t=this.component.closest("la-akoma-ntoso");return t||(t=this.component.ownerDocument.querySelector("la-akoma-ntoso")),t}targetDomChanged(){this.callback&&this.callback()}}class xe{constructor(t){this.root=t,this.buffer=10,this.tops=new WeakMap,this.anchors=new WeakMap}layout(t){this.updateAnchorsAndItems(t),this.updateTops(t);const e=(t=this.sortItems(t)).find((t=>t.active));if(e){const n=t.indexOf(e);if(n>-1){const o=this.anchors.get(e);if(o){const r=this.tops.get(o);if(r)return e.style.top=`${r}px`,this.layoutUpwards(t,n-1,r-this.buffer),void this.layoutDownwards(t,n+1,r+e.clientHeight+this.buffer)}}}this.layoutDownwards(t,0,0)}sortItems(t){return[...t].sort(this.compareItems.bind(this))}compareItems(t,e){const n=this.anchors.get(t),o=this.anchors.get(e);if(n){if(o){const t=this.tops.get(n),e=this.tops.get(o);return t?e?t-e:1:-1}return 1}return-1}layoutUpwards(t,e,n){for(let o=e;o>=0;o--){const e=t[o],r=this.anchors.get(e);if(r){let t=this.tops.get(r);t&&(t+e.clientHeight>=n&&(t=n-e.clientHeight),e.style.top=`${t}px`,n=t-this.buffer)}}}layoutDownwards(t,e,n){for(let o=e;o{t.active=!1}))}setOtherItemsInactive(t){Array.from(this.items()).forEach((e=>{e!=t&&(e.active=!1)}))}setupLayout(){this.akomaNtosoElement&&(this.layout=new xe(this.akomaNtosoElement),window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(this.queueLayout),this.resizeObserver.observe(this.akomaNtosoElement)))}async layoutItems(){this.layout&&(this.layout.layout([...this.items()]),this.layoutComplete.emit())}async activateNextItem(){const t=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===t.length)return t[0].active=!0,t[0];if(t.length>1){const e=t.findIndex((t=>t.active)),n=-1===e||e===t.length-1?t[0]:t[e+1];return n.active=!0,n}return null}async activatePrevItem(){const t=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===t.length)return t[0].active=!0,t[0];if(t.length>1){const e=t.findIndex((t=>t.active)),n=-1===e||0===e?t[t.length-1]:t[e-1];return n.active=!0,n}return null}items(){return this.el.querySelectorAll("la-gutter-item")}getVisibleItems(){return[...this.items()].filter((t=>"none"!==t.style.display))}get el(){return this}static get style(){return".la-akoma-ntoso-with-gutter{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.la-akoma-ntoso-with-gutter>la-akoma-ntoso{-ms-flex:80%;flex:80%;max-width:80%;position:relative;padding-right:0.5rem}.la-akoma-ntoso-with-gutter>la-gutter{-ms-flex:20%;flex:20%;max-width:20%;position:relative;overflow-y:hidden;background-color:rgba(0, 0, 0, 0.05);padding-left:0.5rem;padding-right:0.5rem}la-gutter>la-gutter-item{position:absolute;left:1rem;width:calc(100% - 1.5rem);-webkit-transition:top ease-out 100ms, left ease-out 100ms;transition:top ease-out 100ms, left ease-out 100ms;z-index:2}la-gutter>la-gutter-item[active]{left:0.5rem;z-index:3}"}},[0,"la-gutter",{akomaNtoso:[1,"akoma-ntoso"],layoutItems:[64],activateNextItem:[64],activatePrevItem:[64]},[[0,"laItemChanged","itemChanged"],[0,"click","clicked"]]]);"undefined"!=typeof customElements&&["la-gutter"].forEach((t=>{"la-gutter"===t&&(customElements.get(t)||customElements.define(t,we))}));const Ee=jt(class extends E{constructor(){super(),this.__registerHost(),this.laItemChanged=X(this,"laItemChanged",7),this.anchor=void 0,this.active=!1}activeChanged(){this.laItemChanged.emit()}anchorChanged(){this.laItemChanged.emit()}onClick(){this.active=!0}static get watchers(){return{active:["activeChanged"],anchor:["anchorChanged"]}}static get style(){return"la-gutter-item{display:block}"}},[0,"la-gutter-item",{anchor:[1],active:[1540]},[[0,"click","onClick"]],{active:["activeChanged"],anchor:["anchorChanged"]}]);"undefined"!=typeof customElements&&["la-gutter-item"].forEach((t=>{"la-gutter-item"===t&&(customElements.get(t)||customElements.define(t,Ee))}));const _e=jt(class extends E{constructor(){super(),this.__registerHost(),this.itemRendered=X(this,"itemRendered",7),this.itemTitleClicked=X(this,"itemTitleClicked",7),this.onItemTitleClick=t=>{this.itemTitleClicked.emit(t)},this.item={},this.filteredItems=null,this.prependHtml="",this.appendHtml="",this.expandIconHtml="",this.collapseIconHtml="",this.expanded=!0}toggle(){this.expanded=!this.expanded}componentDidRender(){this.itemRendered.emit()}render(){var t;const e=!!(null===(t=this.item.children)||void 0===t?void 0:t.length),n=!this.filteredItems||this.filteredItems.has(this.item),o=this.item.href||`#${this.item.id||""}`;return B(J,Object.assign({},e?{parent:e}:{},{class:n?"":"excluded"}),B("div",{class:"indented"},e?B("div",{class:"indented__toggle-btn",role:"button",onClick:()=>this.toggle()},(()=>this.expanded?this.collapseIconHtml?B("span",{innerHTML:this.collapseIconHtml}):B("span",null,"▼"):this.expandIconHtml?B("span",{innerHTML:this.expandIconHtml}):B("span",null,"►"))()):null),B("div",{class:"content"},B("div",{class:"content__action"},this.prependHtml?B("div",{class:"content__action__prepend",innerHTML:this.prependHtml}):null,B("a",{href:o,class:"content__action__title",onClick:this.onItemTitleClick},this.item.title),this.appendHtml?B("div",{class:"content__action__append",innerHTML:this.appendHtml}):null),B("div",{class:"content__children"},B("slot",null))))}static get style(){return"la-toc-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}la-toc-item *{-webkit-box-sizing:border-box;box-sizing:border-box}la-toc-item .indented{width:1.4em;height:1.4em}la-toc-item .content{-ms-flex:1;flex:1}la-toc-item .content__action{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}la-toc-item .content__action__title{-ms-flex-positive:1;flex-grow:1}la-toc-item .content__children{display:none}la-toc-item[expanded]>.content>.content__children{display:inherit}la-toc-item.excluded{display:none}la-toc-item .indented__toggle-btn{cursor:pointer;display:inline-block;font-size:smaller;text-align:center;padding:1px 6px}"}},[4,"la-toc-item",{item:[16],filteredItems:[16],prependHtml:[1,"prepend-html"],appendHtml:[1,"append-html"],expandIconHtml:[1,"expand-icon-html"],collapseIconHtml:[1,"collapse-icon-html"],expanded:[1540]}]);function Oe(){"undefined"!=typeof customElements&&["la-toc-item"].forEach((t=>{"la-toc-item"===t&&(customElements.get(t)||customElements.define(t,_e))}))}Oe();const Se=jt(class extends E{constructor(){super(),this.__registerHost(),this.expandIconHtml="",this.collapseIconHtml="",this.items=[],this.titleFilter="",this.expanded=!0,this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=Vt,this.filteredItems=null,this.innerItems=[]}parseItemsProp(t){"string"==typeof t?this.innerItems=JSON.parse(t):Array.isArray(t)&&(this.innerItems=[...t])}refetch(){this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const t=this.provider+"/p/"+this.partner+"/e/we/toc.json"+this.frbrExpressionUri;try{const e=await fetch(t);e.ok&&(this.innerItems=(await e.json()).toc)}catch(t){}}}ensurePartner(){this.partner||(this.partner=Ft())}getSlotHTML(t){var e;const n=this.el.querySelector(t);return(null==n?void 0:n.querySelector(t))?(null===(e=n.querySelector(t))||void 0===e?void 0:e.innerHTML)||"":(null==n?void 0:n.innerHTML)||""}componentWillLoad(){this.expandIconHtml=this.getSlotHTML("[slot='expand-icon']"),this.collapseIconHtml=this.getSlotHTML("[slot='collapse-icon']"),this.parseItemsProp(this.items),this.titleFilterChanged(this.titleFilter),this.fetchContent()}async expandAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((t=>{t.expanded=!0}))}async collapseAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((t=>{t.expanded=!1}))}titleFilterChanged(t){if(t){const e=t.toLocaleLowerCase().trim(),n=new Set;function o(t){for(const e of t.children||[])n.add(e),o(e)}function r(t){var a;let i=((null===(a=t.title)||void 0===a?void 0:a.toLocaleLowerCase())||"").includes(e);if(i)o(t);else if(t.children)for(const e of t.children)i=r(e)||i;return i&&n.add(t),i}for(const a of this.innerItems)r(a);this.filteredItems=n}else this.filteredItems=null;this.expandAll()}renderItem(t){const e=(t.children||[]).map((t=>this.renderItem(t))),n=void 0===t.expanded?this.expanded:t.expanded;return B("la-toc-item",{item:t,filteredItems:this.filteredItems,expandIconHtml:this.expandIconHtml,collapseIconHtml:this.collapseIconHtml,expanded:n},e)}render(){return B(J,{key:"f8b5eaf0e2c359af4eea3b7d6ab3fcad94f393bb"},B("div",{key:"ddca6abce36c9be705a172c12e833a6f9d088b89",style:{display:"none"}},B("slot",{key:"6f55f20f2cb614bb7a7519c44a71f2f94ff60b14",name:"expand-icon"}),B("slot",{key:"9bc755de6658047c64c1c3f5e42a4b6342a883f8",name:"collapse-icon"})),this.innerItems.map((t=>this.renderItem(t))))}get el(){return this}static get watchers(){return{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}}},[4,"la-table-of-contents",{items:[1],titleFilter:[1,"title-filter"],expanded:[4],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],filteredItems:[32],innerItems:[32],expandAll:[64],collapseAll:[64]},void 0,{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}]);function Te(){"undefined"!=typeof customElements&&["la-table-of-contents","la-toc-item"].forEach((t=>{switch(t){case"la-table-of-contents":customElements.get(t)||customElements.define(t,Se);break;case"la-toc-item":customElements.get(t)||Oe()}}))}Te();const Ce=jt(class extends E{constructor(){super(),this.__registerHost(),this.handleTitleChange=ve((t=>{this.titleFilter=t.target.value}),300),this.items=[],this.titleFilterPlaceholder="Search the table of contents",this.hideClearTitleFilterButton=!1,this.titleFilterClearBtnClasses="",this.expandAllBtnClasses="",this.collapseAllBtnClasses="",this.expandAllBtnText="Expand all",this.collapseAllBtnText="Collapse all",this.expanded=!0,this.titleFilterInputClasses="",this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=Vt,this.titleFilter=""}clearTitleFilter(){this.titleFilter=""}async expandAll(){const t=this.el.querySelector("la-table-of-contents");null==t||t.expandAll()}async collapseAll(){const t=this.el.querySelector("la-table-of-contents");null==t||t.collapseAll()}render(){return B(J,null,B("div",{class:"search"},B("input",{class:`search__input ${this.titleFilterInputClasses}`,value:this.titleFilter,placeholder:this.titleFilterPlaceholder,onInput:t=>this.handleTitleChange(t)}),(()=>this.hideClearTitleFilterButton?null:B("button",{class:`search__clear-btn ${this.titleFilterClearBtnClasses}`,type:"button",onClick:()=>this.clearTitleFilter(),disabled:!this.titleFilter},B("slot",{name:"clear-title-filter-icon"},"✕")))()),B("div",{class:"toggle"},B("button",{type:"button",class:`toggle__expand-all-btn ${this.expandAllBtnClasses}`,onClick:()=>this.expandAll()},this.expandAllBtnText),B("button",{type:"button",class:`toggle__collapse-all-btn ${this.collapseAllBtnClasses}`,onClick:()=>this.collapseAll()},this.collapseAllBtnText)),B("la-table-of-contents",{items:this.items,titleFilter:this.titleFilter,fetch:this.fetch,provider:this.provider,partner:this.partner,"frbr-expression-uri":this.frbrExpressionUri,expanded:this.expanded},B("span",{slot:"expand-icon"},B("slot",{name:"expand-icon"})),B("span",{slot:"collapse-icon"},B("slot",{name:"collapse-icon"}))))}get el(){return this}static get style(){return"la-table-of-contents-controller *{-webkit-box-sizing:border-box;box-sizing:border-box}la-table-of-contents-controller .search{width:100%;margin-bottom:5px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative}la-table-of-contents-controller .search__input{-ms-flex:1;flex:1}la-table-of-contents-controller .search__clear-btn{position:absolute;top:0;right:0;height:100%}la-table-of-contents-controller .toggle{margin-bottom:5px}la-table-of-contents-controller .toggle__expand-all-btn{margin-right:5px}"}},[4,"la-table-of-contents-controller",{items:[1],titleFilterPlaceholder:[1,"title-filter-placeholder"],hideClearTitleFilterButton:[4,"hide-clear-title-filter-button"],titleFilterClearBtnClasses:[1,"title-filter-clear-btn-classes"],expandAllBtnClasses:[1,"expand-all-btn-classes"],collapseAllBtnClasses:[1,"collapse-all-btn-classes"],expandAllBtnText:[1,"expand-all-btn-text"],collapseAllBtnText:[1,"collapse-all-btn-text"],expanded:[4],titleFilterInputClasses:[1,"title-filter-input-classes"],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],titleFilter:[32]}]);"undefined"!=typeof customElements&&["la-table-of-contents-controller","la-table-of-contents","la-toc-item"].forEach((t=>{switch(t){case"la-table-of-contents-controller":customElements.get(t)||customElements.define(t,Ce);break;case"la-table-of-contents":customElements.get(t)||Te();break;case"la-toc-item":customElements.get(t)||Oe()}}));var $e="top",Ae="bottom",Ne="right",Le="left",De="auto",Ie=[$e,Ae,Ne,Le],Me="start",je="end",Re="clippingParents",Pe="viewport",He="popper",Fe="reference",Ve=Ie.reduce((function(t,e){return t.concat([e+"-"+Me,e+"-"+je])}),[]),qe=[].concat(Ie,[De]).reduce((function(t,e){return t.concat([e,e+"-"+Me,e+"-"+je])}),[]),ze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ue(t){return t?(t.nodeName||"").toLowerCase():null}function We(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Be(t){return t instanceof We(t).Element||t instanceof Element}function Ze(t){return t instanceof We(t).HTMLElement||t instanceof HTMLElement}function Je(t){return"undefined"!=typeof ShadowRoot&&(t instanceof We(t).ShadowRoot||t instanceof ShadowRoot)}const Xe={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];Ze(r)&&Ue(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],r=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Ze(o)&&Ue(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ye(t){return t.split("-")[0]}var Ge=Math.max,Ke=Math.min,Qe=Math.round;function tn(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function en(){return!/^((?!chrome|android).)*safari/i.test(tn())}function nn(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=1,a=1;e&&Ze(t)&&(r=t.offsetWidth>0&&Qe(o.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Qe(o.height)/t.offsetHeight||1);var i=(Be(t)?We(t):window).visualViewport,s=!en()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/r,c=(o.top+(s&&i?i.offsetTop:0))/a,u=o.width/r,p=o.height/a;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function on(t){var e=nn(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function rn(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Je(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function an(t){return We(t).getComputedStyle(t)}function sn(t){return["table","td","th"].indexOf(Ue(t))>=0}function ln(t){return((Be(t)?t.ownerDocument:t.document)||window.document).documentElement}function cn(t){return"html"===Ue(t)?t:t.assignedSlot||t.parentNode||(Je(t)?t.host:null)||ln(t)}function un(t){return Ze(t)&&"fixed"!==an(t).position?t.offsetParent:null}function pn(t){for(var e=We(t),n=un(t);n&&sn(n)&&"static"===an(n).position;)n=un(n);return n&&("html"===Ue(n)||"body"===Ue(n)&&"static"===an(n).position)?e:n||function(t){var e=/firefox/i.test(tn());if(/Trident/i.test(tn())&&Ze(t)&&"fixed"===an(t).position)return null;var n=cn(t);for(Je(n)&&(n=n.host);Ze(n)&&["html","body"].indexOf(Ue(n))<0;){var o=an(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}function dn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fn(t,e,n){return Ge(t,Ke(e,n))}function hn(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function mn(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const gn={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,r=t.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Ye(n.placement),l=dn(s),c=[Le,Ne].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(t,e){return hn("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:mn(t,Ie))}(r.padding,n),p=on(a),d="y"===l?$e:Le,f="y"===l?Ae:Ne,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=pn(a),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[d],k=b-p[c]-u[f],x=b/2-p[c]/2+y,w=fn(v,x,k),E=l;n.modifiersData[o]=((e={})[E]=w,e.centerOffset=w-x,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&rn(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bn(t){return t.split("-")[1]}var yn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vn(t){var e,n=t.popper,o=t.popperRect,r=t.placement,a=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,p=t.isFixed,d=i.x,f=void 0===d?0:d,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=Le,k=$e,x=window;if(c){var w=pn(n),E="clientHeight",_="clientWidth";w===We(n)&&"static"!==an(w=ln(n)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(r===$e||(r===Le||r===Ne)&&a===je)&&(k=Ae,m-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[E])-o.height,m*=l?1:-1),r!==Le&&(r!==$e&&r!==Ae||a!==je)||(v=Ne,f-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[_])-o.width,f*=l?1:-1)}var O,S=Object.assign({position:s},c&&yn),T=!0===u?function(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Qe(n*r)/r||0,y:Qe(o*r)/r||0}}({x:f,y:m},We(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},S,((O={})[k]=y?"0":"",O[v]=b?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",O)):Object.assign({},S,((e={})[k]=y?m+"px":"",e[v]=b?f+"px":"",e.transform="",e))}var kn={passive:!0};const xn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,a=void 0===r||r,i=o.resize,s=void 0===i||i,l=We(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach((function(t){t.addEventListener("scroll",n.update,kn)})),s&&l.addEventListener("resize",n.update,kn),function(){a&&c.forEach((function(t){t.removeEventListener("scroll",n.update,kn)})),s&&l.removeEventListener("resize",n.update,kn)}},data:{}};var wn={left:"right",right:"left",bottom:"top",top:"bottom"};function En(t){return t.replace(/left|right|bottom|top/g,(function(t){return wn[t]}))}var _n={start:"end",end:"start"};function On(t){return t.replace(/start|end/g,(function(t){return _n[t]}))}function Sn(t){var e=We(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Tn(t){return nn(ln(t)).left+Sn(t).scrollLeft}function Cn(t){var e=an(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function $n(t){return["html","body","#document"].indexOf(Ue(t))>=0?t.ownerDocument.body:Ze(t)&&Cn(t)?t:$n(cn(t))}function An(t,e){var n;void 0===e&&(e=[]);var o=$n(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),a=We(o),i=r?[a].concat(a.visualViewport||[],Cn(o)?o:[]):o,s=e.concat(i);return r?s:s.concat(An(cn(i)))}function Nn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ln(t,e,n){return e===Pe?Nn(function(t,e){var n=We(t),o=ln(t),r=n.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;var c=en();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:a,height:i,x:s+Tn(t),y:l}}(t,n)):Be(e)?function(t,e){var n=nn(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Nn(function(t){var e,n=ln(t),o=Sn(t),r=null==(e=t.ownerDocument)?void 0:e.body,a=Ge(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Ge(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Tn(t),l=-o.scrollTop;return"rtl"===an(r||n).direction&&(s+=Ge(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(ln(t)))}function Dn(t){var e,n=t.reference,o=t.element,r=t.placement,a=r?Ye(r):null,i=r?bn(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case $e:e={x:s,y:n.y-o.height};break;case Ae:e={x:s,y:n.y+n.height};break;case Ne:e={x:n.x+n.width,y:l};break;case Le:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=a?dn(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Me:e[c]=e[c]-(n[u]/2-o[u]/2);break;case je:e[c]=e[c]+(n[u]/2-o[u]/2)}}return e}function In(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=void 0===o?t.placement:o,a=n.strategy,i=void 0===a?t.strategy:a,s=n.boundary,l=void 0===s?Re:s,c=n.rootBoundary,u=void 0===c?Pe:c,p=n.elementContext,d=void 0===p?He:p,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=hn("number"!=typeof g?g:mn(g,Ie)),y=d===He?Fe:He,v=t.rects.popper,k=t.elements[h?y:d],x=function(t,e,n,o){var r="clippingParents"===e?function(t){var e=An(cn(t)),n=["absolute","fixed"].indexOf(an(t).position)>=0&&Ze(t)?pn(t):t;return Be(n)?e.filter((function(t){return Be(t)&&rn(t,n)&&"body"!==Ue(t)})):[]}(t):[].concat(e),a=[].concat(r,[n]),i=a[0],s=a.reduce((function(e,n){var r=Ln(t,n,o);return e.top=Ge(r.top,e.top),e.right=Ke(r.right,e.right),e.bottom=Ke(r.bottom,e.bottom),e.left=Ge(r.left,e.left),e}),Ln(t,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Be(k)?k:k.contextElement||ln(t.elements.popper),l,u,i),w=nn(t.elements.reference),E=Dn({reference:w,element:v,strategy:"absolute",placement:r}),_=Nn(Object.assign({},v,E)),O=d===He?_:w,S={top:x.top-O.top+b.top,bottom:O.bottom-x.bottom+b.bottom,left:x.left-O.left+b.left,right:O.right-x.right+b.right},T=t.modifiersData.offset;if(d===He&&T){var C=T[r];Object.keys(S).forEach((function(t){var e=[Ne,Ae].indexOf(t)>=0?1:-1,n=[$e,Ae].indexOf(t)>=0?"y":"x";S[t]+=C[n]*e}))}return S}function Mn(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qe:l,u=bn(o),p=u?s?Ve:Ve.filter((function(t){return bn(t)===u})):Ie,d=p.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=p);var f=d.reduce((function(e,n){return e[n]=In(t,{placement:n,boundary:r,rootBoundary:a,padding:i})[Ye(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}const jn={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=e.options.placement,b=Ye(g),y=l||(b!==g&&h?function(t){if(Ye(t)===De)return[];var e=En(t);return[On(t),e,On(e)]}(g):[En(g)]),v=[g].concat(y).reduce((function(t,n){return t.concat(Ye(n)===De?Mn(e,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),k=e.rects.reference,x=e.rects.popper,w=new Map,E=!0,_=v[0],O=0;O=0,A=$?"width":"height",N=In(e,{placement:S,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),L=$?C?Ne:Le:C?Ae:$e;k[A]>x[A]&&(L=En(L));var D=En(L),I=[];if(a&&I.push(N[T]<=0),s&&I.push(N[L]<=0,N[D]<=0),I.every((function(t){return t}))){_=S,E=!1;break}w.set(S,I)}if(E)for(var M=function(t){var e=v.find((function(e){var n=w.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},j=h?3:1;j>0&&"break"!==M(j);j--);e.placement!==_&&(e.modifiersData[o]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Rn(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Pn(t){return[$e,Ne,Ae,Le].some((function(e){return t[e]>=0}))}const Hn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=In(e,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=Ye(e.placement),y=bn(e.placement),v=!y,k=dn(b),x="x"===k?"y":"x",w=e.modifiersData.popperOffsets,E=e.rects.reference,_=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(w){if(a){var $,A="y"===k?$e:Le,N="y"===k?Ae:Ne,L="y"===k?"height":"width",D=w[k],I=D+g[A],M=D-g[N],j=f?-_[L]/2:0,R=y===Me?E[L]:_[L],P=y===Me?-_[L]:-E[L],H=e.elements.arrow,F=f&&H?on(H):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=V[A],z=V[N],U=fn(0,E[L],F[L]),W=v?E[L]/2-j-U-q-S.mainAxis:R-U-q-S.mainAxis,B=v?-E[L]/2+j+U+z+S.mainAxis:P+U+z+S.mainAxis,Z=e.elements.arrow&&pn(e.elements.arrow),J=Z?"y"===k?Z.clientTop||0:Z.clientLeft||0:0,X=null!=($=null==T?void 0:T[k])?$:0,Y=D+B-X,G=fn(f?Ke(I,D+W-X-J):I,D,f?Ge(M,Y):M);w[k]=G,C[k]=G-D}if(s){var K,Q="x"===k?$e:Le,tt="x"===k?Ae:Ne,et=w[x],nt="y"===x?"height":"width",ot=et+g[Q],rt=et-g[tt],at=-1!==[$e,Le].indexOf(b),it=null!=(K=null==T?void 0:T[x])?K:0,st=at?ot:et-E[nt]-_[nt]-it+S.altAxis,lt=at?et+E[nt]+_[nt]-it-S.altAxis:rt,ct=f&&at?function(t,e,n){var o=fn(t,e,n);return o>n?n:o}(st,et,lt):fn(f?st:ot,et,f?lt:rt);w[x]=ct,C[x]=ct-et}e.modifiersData[o]=C}},requiresIfExists:["offset"]};function Fn(t,e,n){void 0===n&&(n=!1);var o,r,a=Ze(e),i=Ze(e)&&function(t){var e=t.getBoundingClientRect(),n=Qe(e.width)/t.offsetWidth||1,o=Qe(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),s=ln(e),l=nn(t,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Ue(e)||Cn(s))&&(c=(o=e)!==We(o)&&Ze(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Sn(o)),Ze(e)?((u=nn(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Tn(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Vn(t){var e=new Map,n=new Set,o=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&r(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),o}function qn(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var zn={placement:"bottom",modifiers:[],strategy:"absolute"};function Un(){for(var t=arguments.length,e=new Array(t),n=0;n=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[Le,Ne].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,e.rects,a),t}),{}),s=i[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=i}},jn,Hn,gn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=In(e,{elementContext:"reference"}),s=In(e,{altBoundary:!0}),l=Rn(i,o),c=Rn(s,r,a),u=Pn(l),p=Pn(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Zn="tippy-content",Jn="tippy-backdrop",Xn="tippy-arrow",Yn="tippy-svg-arrow",Gn={passive:!0,capture:!0},Kn=function(){return document.body};function Qn(t,e,n){if(Array.isArray(t)){var o=t[e];return null==o?Array.isArray(n)?n[e]:n:o}return t}function to(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function eo(t,e){return"function"==typeof t?t.apply(void 0,e):t}function no(t,e){return 0===e?t:function(o){clearTimeout(n),n=setTimeout((function(){t(o)}),e)};var n}function oo(t){return[].concat(t)}function ro(t,e){-1===t.indexOf(e)&&t.push(e)}function ao(t){return[].slice.call(t)}function io(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function so(){return document.createElement("div")}function lo(t){return["Element","Fragment"].some((function(e){return to(t,e)}))}function co(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function uo(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function po(t,e,n){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[o](e,n)}))}function fo(t,e){for(var n=e;n;){var o;if(t.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var ho={isTouch:!1},mo=0;function go(){ho.isTouch||(ho.isTouch=!0,window.performance&&document.addEventListener("mousemove",bo))}function bo(){var t=performance.now();t-mo<20&&(ho.isTouch=!1,document.removeEventListener("mousemove",bo)),mo=t}function yo(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var vo=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),ko=Object.assign({appendTo:Kn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),xo=Object.keys(ko);function wo(t){var e=(t.plugins||[]).reduce((function(e,n){var o,r=n.name,a=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:null!=(o=ko[r])?o:a),e}),{});return Object.assign({},t,e)}function Eo(t,e){var n=Object.assign({},e,{content:eo(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(wo(Object.assign({},ko,{plugins:e}))):xo).reduce((function(e,n){var o=(t.getAttribute("data-tippy-"+n)||"").trim();if(!o)return e;if("content"===n)e[n]=o;else try{e[n]=JSON.parse(o)}catch(t){e[n]=o}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},ko.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var _o=function(){return"innerHTML"};function Oo(t,e){t[_o()]=e}function So(t){var e=so();return!0===t?e.className=Xn:(e.className=Yn,lo(t)?e.appendChild(t):Oo(e,t)),e}function To(t,e){lo(e.content)?(Oo(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Oo(t,e.content):t.textContent=e.content)}function Co(t){var e=t.firstElementChild,n=ao(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(Zn)})),arrow:n.find((function(t){return t.classList.contains(Xn)||t.classList.contains(Yn)})),backdrop:n.find((function(t){return t.classList.contains(Jn)}))}}function $o(t){var e=so(),n=so();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=so();function r(n,o){var r=Co(e),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||To(i,t.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(So(o.arrow))):a.appendChild(So(o.arrow)):s&&a.removeChild(s)}return o.className=Zn,o.setAttribute("data-state","hidden"),To(o,t.props),e.appendChild(n),n.appendChild(o),r(t.props,t.props),{popper:e,onUpdate:r}}$o.$$tippy=!0;var Ao=1,No=[],Lo=[];function Do(t,e){var n,o,r,a,i,s,l,c,u=Eo(t,Object.assign({},ko,wo(io(e)))),p=!1,d=!1,f=!1,h=!1,m=[],g=no(Z,u.interactiveDebounce),b=Ao++,y=(c=u.plugins).filter((function(t,e){return c.indexOf(t)===e})),v={id:b,reference:t,popper:so(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(!v.state.isDestroyed){D("onBeforeUpdate",[v,e]),W();var n=v.props,o=Eo(t,Object.assign({},n,io(e),{ignoreAttributes:!0}));v.props=o,U(),n.interactiveDebounce!==o.interactiveDebounce&&(j(),g=no(Z,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?oo(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):o.triggerTarget&&t.removeAttribute("aria-expanded"),M(),L(),w&&w(n,o),v.popperInstance&&(G(),Q().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[v,e])}},setContent:function(t){v.setProps({content:t})},show:function(){var t=v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=ho.isTouch&&!v.props.touch,r=Qn(v.props.duration,0,ko.duration);if(!(t||e||n||o||C().hasAttribute("disabled")||(D("onShow",[v],!1),!1===v.props.onShow(v)))){if(v.state.isVisible=!0,T()&&(x.style.visibility="visible"),L(),F(),v.state.isMounted||(x.style.transition="none"),T()){var a=A();co([a.box,a.content],0)}var i,l,c;s=function(){var t;if(v.state.isVisible&&!h){if(h=!0,x.style.transition=v.props.moveTransition,T()&&v.props.animation){var e=A(),n=e.box,o=e.content;co([n,o],r),uo([n,o],"visible")}I(),M(),ro(Lo,v),null==(t=v.popperInstance)||t.forceUpdate(),D("onMount",[v]),v.props.animation&&T()&&function(t){q(t,(function(){v.state.isShown=!0,D("onShown",[v])}))}(r)}},l=v.props.appendTo,c=C(),(i=v.props.interactive&&l===Kn||"parent"===l?c.parentNode:eo(l,[c])).contains(x)||i.appendChild(x),v.state.isMounted=!0,G()}},hide:function(){var t=!v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=Qn(v.props.duration,1,ko.duration);if(!(t||e||n)&&(D("onHide",[v],!1),!1!==v.props.onHide(v))){if(v.state.isVisible=!1,v.state.isShown=!1,h=!1,p=!1,T()&&(x.style.visibility="hidden"),j(),V(),L(!0),T()){var r=A(),a=r.box,i=r.content;v.props.animation&&(co([a,i],o),uo([a,i],"hidden"))}I(),M(),v.props.animation?T()&&function(t,e){q(t,(function(){!v.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}(o,v.unmount):v.unmount()}},hideWithInteractivity:function(t){$().addEventListener("mousemove",g),ro(No,g),g(t)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){v.state.isVisible&&v.hide(),v.state.isMounted&&(K(),Q().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Lo=Lo.filter((function(t){return t!==v})),v.state.isMounted=!1,D("onHidden",[v]))},destroy:function(){v.state.isDestroyed||(v.clearDelayTimeouts(),v.unmount(),W(),delete t._tippy,v.state.isDestroyed=!0,D("onDestroy",[v]))}};if(!u.render)return v;var k=u.render(v),x=k.popper,w=k.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+v.id,v.popper=x,t._tippy=v,x._tippy=v;var E=y.map((function(t){return t.fn(v)})),_=t.hasAttribute("aria-expanded");return U(),M(),L(),D("onCreate",[v]),u.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",g)})),v;function O(){var t=v.props.touch;return Array.isArray(t)?t:[t,0]}function S(){return"hold"===O()[0]}function T(){var t;return!(null==(t=v.props.render)||!t.$$tippy)}function C(){return l||t}function $(){var t,e,n=C().parentNode;return n&&null!=(e=oo(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}function A(){return Co(x)}function N(t){return v.state.isMounted&&!v.state.isVisible||ho.isTouch||a&&"focus"===a.type?0:Qn(v.props.delay,t?0:1,ko.delay)}function L(t){void 0===t&&(t=!1),x.style.pointerEvents=v.props.interactive&&!t?"":"none",x.style.zIndex=""+v.props.zIndex}function D(t,e,n){var o;void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n&&(o=v.props)[t].apply(o,e)}function I(){var e=v.props.aria;if(e.content){var n="aria-"+e.content,o=x.id;oo(v.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(v.state.isVisible)t.setAttribute(n,e?e+" "+o:o);else{var r=e&&e.replace(o,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function M(){!_&&v.props.aria.expanded&&oo(v.props.triggerTarget||t).forEach((function(t){v.props.interactive?t.setAttribute("aria-expanded",v.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function j(){$().removeEventListener("mousemove",g),No=No.filter((function(t){return t!==g}))}function R(e){if(!ho.isTouch||!f&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!v.props.interactive||!fo(x,n)){if(oo(v.props.triggerTarget||t).some((function(t){return fo(t,n)}))){if(ho.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[v,e]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),d=!0,setTimeout((function(){d=!1})),v.state.isMounted||V())}}}function P(){f=!0}function H(){f=!1}function F(){var t=$();t.addEventListener("mousedown",R,!0),t.addEventListener("touchend",R,Gn),t.addEventListener("touchstart",H,Gn),t.addEventListener("touchmove",P,Gn)}function V(){var t=$();t.removeEventListener("mousedown",R,!0),t.removeEventListener("touchend",R,Gn),t.removeEventListener("touchstart",H,Gn),t.removeEventListener("touchmove",P,Gn)}function q(t,e){var n=A().box;function o(t){t.target===n&&(po(n,"remove",o),e())}if(0===t)return e();po(n,"remove",i),po(n,"add",o),i=o}function z(e,n,o){void 0===o&&(o=!1),oo(v.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,o),m.push({node:t,eventType:e,handler:n,options:o})}))}function U(){var t;S()&&(z("touchstart",B,{passive:!0}),z("touchend",J,{passive:!0})),(t=v.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(z(t,B),t){case"mouseenter":z("mouseleave",J);break;case"focus":z(vo?"focusout":"blur",X);break;case"focusin":z("focusout",X)}}))}function W(){m.forEach((function(t){var e=t.node,n=t.eventType,o=t.handler,r=t.options;e.removeEventListener(n,o,r)})),m=[]}function B(t){var e,n=!1;if(v.state.isEnabled&&!Y(t)&&!d){var o="focus"===(null==(e=a)?void 0:e.type);a=t,l=t.currentTarget,M(),!v.state.isVisible&&to(t,"MouseEvent")&&No.forEach((function(e){return e(t)})),"click"===t.type&&(v.props.trigger.indexOf("mouseenter")<0||p)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:tt(t),"click"===t.type&&(p=!n),n&&!o&&et(t)}}function Z(t){var e=t.target,n=C().contains(e)||x.contains(e);if("mousemove"!==t.type||!n){var o=Q().concat(x).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(t,e){var n=e.clientX,o=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,a=t.props.interactiveBorder,i=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,p="left"===i?s.right.x:0,d=e.top-o+l>a,f=o-e.bottom-c>a,h=e.left-n+u>a,m=n-e.right-p>a;return d||f||h||m}))})(o,t)&&(j(),et(t))}}function J(t){Y(t)||v.props.trigger.indexOf("click")>=0&&p||(v.props.interactive?v.hideWithInteractivity(t):et(t))}function X(t){v.props.trigger.indexOf("focusin")<0&&t.target!==C()||v.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||et(t)}function Y(t){return!!ho.isTouch&&S()!==t.type.indexOf("touch")>=0}function G(){K();var e=v.props,n=e.popperOptions,o=e.placement,r=e.offset,a=e.getReferenceClientRect,i=e.moveTransition,l=T()?Co(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||C()}:t,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(T()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];T()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Bn(c,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function K(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Q(){return ao(x.querySelectorAll("[data-tippy-root]"))}function tt(t){v.clearDelayTimeouts(),t&&D("onTrigger",[v,t]),F();var e=N(!0),o=O(),r=o[0],a=o[1];ho.isTouch&&"hold"===r&&a&&(e=a),e?n=setTimeout((function(){v.show()}),e):v.show()}function et(t){if(v.clearDelayTimeouts(),D("onUntrigger",[v,t]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&p)){var e=N(!1);e?o=setTimeout((function(){v.state.isVisible&&v.hide()}),e):r=requestAnimationFrame((function(){v.hide()}))}}else V()}}function Io(t,e){void 0===e&&(e={});var n=ko.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",go,Gn),window.addEventListener("blur",yo);var o,r=Object.assign({},e,{plugins:n}),a=(o=t,lo(o)?[o]:function(t){return to(t,"NodeList")}(o)?ao(o):Array.isArray(o)?o:ao(document.querySelectorAll(o))).reduce((function(t,e){var n=e&&Do(e,r);return n&&t.push(n),t}),[]);return lo(t)?a[0]:a}Io.defaultProps=ko,Io.setDefaultProps=function(t){Object.keys(t).forEach((function(e){ko[e]=t[e]}))},Io.currentInput=ho,Object.assign({},Xe,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Io.setDefaultProps({render:$o});const Mo=jt(class extends E{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.partner=void 0,this.provider=Vt}componentWillLoad(){const t=new ke(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=t.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-external-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changePopups(this.popups)}changePopups(t){for(const t of this.tippies)t.destroy();this.tippies=[],this.akomaNtosoElement&&t&&this.createPopups()}createPopups(){this.akomaNtosoElement&&(this.tippies=Io(this.akomaNtosoElement.querySelectorAll('a.akn-ref[data-href^="/akn/"]'),{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"}))}async onTrigger(t){const e=t.reference.getAttribute("data-href")||"",n=await this.fetchContent(e);n&&t.setContent(`\n
\n
${n}
\n
`)}ensurePartner(){this.partner||(this.partner=Ft())}async fetchContent(t){if(this.ensurePartner(),t&&this.provider){const e=this.provider+"/p/"+this.partner+"/e/popup"+t;try{const t=await fetch(e);if(t.ok)return await t.text()}catch(t){}}return null}get el(){return this}static get watchers(){return{popups:["changePopups"]}}static get style(){return'.la-decorate-external-refs__popup{position:relative}.la-decorate-external-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-external-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-external-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-external-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-external-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-external-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-external-refs__popup .tippy-content{padding:0}.la-decorate-external-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-external-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-external-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}'}},[0,"la-decorate-external-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],partner:[1],provider:[1]},void 0,{popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-external-refs"].forEach((t=>{"la-decorate-external-refs"===t&&(customElements.get(t)||customElements.define(t,Mo))}));const jo=jt(class extends E{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.flag=!1,this.fetch=!1,this.partner=void 0,this.provider=Vt}componentWillLoad(){const t=new ke(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=t.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-internal-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changeFlag(this.flag),this.changePopups(this.popups)}changeFlag(t){this.akomaNtosoElement&&this.akomaNtosoElement.classList.toggle("flag-internal-refs",t)}changePopups(t){for(const t of this.tippies)t.destroy();this.tippies=[],this.akomaNtosoElement&&t&&this.createPopups()}createPopups(){this.tippies=Io('a.akn-ref[href^="#"]',{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}async onTrigger(t){if(this.akomaNtosoElement){const e=t.reference.getAttribute("href")||"";let n="";const o=this.akomaNtosoElement.querySelector(e);o?n=o.outerHTML:this.fetch&&(n=await this.fetchContent(e.slice(1))),n&&t.setContent(`\n
\n
${n}
\n
`)}}async fetchContent(t){if(this.ensurePartner(),this.provider&&this.akomaNtosoElement){const e=this.akomaNtosoElement.getAttribute("frbr-expression-uri");if(e){const n=this.provider+"/p/"+this.partner+"/e/portion"+function(t,e){const n=t.indexOf("~");return n>-1&&(t=t.slice(0,n)),t.endsWith("/")||(t+="/"),t+e}(e,"~"+t);try{const t=await fetch(n);if(t.ok)return await t.text()}catch(t){}}}return null}ensurePartner(){this.partner||(this.partner=Ft())}get el(){return this}static get watchers(){return{flag:["changeFlag"],popups:["changePopups"]}}static get style(){return'.la-decorate-internal-refs__popup{position:relative}.la-decorate-internal-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-internal-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-internal-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-internal-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-internal-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-internal-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-internal-refs__popup .tippy-content{padding:0}.la-decorate-internal-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-internal-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-internal-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.flag-internal-refs .akn-ref[href^="#"]::after{display:inline-block;content:"";vertical-align:-0.125em;background-image:url("data:image/svg+xml,");background-repeat:no-repeat;width:0.8rem;height:0.8rem}'}},[0,"la-decorate-internal-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],flag:[4],fetch:[1540],partner:[1537],provider:[1]},void 0,{flag:["changeFlag"],popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-internal-refs"].forEach((t=>{"la-decorate-internal-refs"===t&&(customElements.get(t)||customElements.define(t,jo))}));const Ro=jt(class extends E{constructor(){super(),this.__registerHost(),this.defnContainers=".akn-p, .akn-subsection, .akn-section, .akn-blockList",this.tippies=[],this.akomaNtoso=void 0,this.popupDefinitions=!1,this.linkTerms=!1}componentWillLoad(){const t=new ke(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=t.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-terms__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.akomaNtosoElement&&(this.setupDefinitions(),this.linkTerms&&this.makeTermLinks(),this.changePopupDefinitions(this.popupDefinitions))}changePopupDefinitions(t){for(const t of this.tippies)t.destroy();this.tippies=[],this.akomaNtosoElement&&t&&this.createPopups(),this.toggleCssClasses()}changeLinkTerms(){this.toggleCssClasses()}toggleCssClasses(){this.akomaNtosoElement&&(this.akomaNtosoElement.classList.toggle("show-terms",this.linkTerms||this.popupDefinitions),this.akomaNtosoElement.classList.toggle("link-terms",this.linkTerms))}setupDefinitions(){this.akomaNtosoElement&&Array.from(this.akomaNtosoElement.querySelectorAll(".akn-def[data-refersto]")).forEach((t=>{var e;const n=null===(e=t.getAttribute("data-refersto"))||void 0===e?void 0:e.replace("#",""),o=t.closest(this.defnContainers);o&&n&&(o.dataset.defines=t.dataset.refersto,o.setAttribute("id",`defn-${n}`))}))}createPopups(){this.tippies=Io(this.akomaNtosoElement.querySelectorAll(".akn-term"),{appendTo:()=>this.tippyContainer,allowHTML:!0,content:"",hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}onTrigger(t){const e=t.reference,n=this.getDefinition(e);n&&t.setContent(`\n
\n
${e.innerText}
\n
${n.outerHTML}
\n
`)}getDefinition(t){const e=t.getAttribute("data-refersto");return this.akomaNtosoElement?this.akomaNtosoElement.querySelector(`[data-defines="${e}"]`):null}makeTermLinks(){this.akomaNtosoElement&&this.akomaNtosoElement.addEventListener("click",(t=>{if(t.target&&t.target instanceof E){const e=t.target;if(e.classList.contains("akn-term")){const t=(e.dataset.refersto||"").replace("#","");t&&(window.location.hash=`#defn-${t}`)}}}))}get el(){return this}static get watchers(){return{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}}static get style(){return'.la-decorate-terms__popup{position:relative}.la-decorate-terms__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-terms__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-terms__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-terms__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-terms__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-terms__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-terms__popup .tippy-content{padding:0}.la-decorate-terms__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-terms__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-terms__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.show-terms .akn-term{-webkit-text-decoration:underline dotted 1px;text-decoration:underline dotted 1px}la-akoma-ntoso.link-terms .akn-term{cursor:pointer}'}},[0,"la-decorate-terms",{akomaNtoso:[1,"akoma-ntoso"],popupDefinitions:[4,"popup-definitions"],linkTerms:[4,"link-terms"]},void 0,{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}]);"undefined"!=typeof customElements&&["la-decorate-terms"].forEach((t=>{"la-decorate-terms"===t&&(customElements.get(t)||customElements.define(t,Ro))}));var Po=Object.freeze({});function Ho(t){return null==t}function Fo(t){return null!=t}function Vo(t){return!0===t}function qo(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function zo(t){return null!==t&&"object"==typeof t}var Uo=Object.prototype.toString;function Wo(t){return"[object Object]"===Uo.call(t)}function Bo(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function Zo(t){return Fo(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function Jo(t){return null==t?"":Array.isArray(t)||Wo(t)&&t.toString===Uo?JSON.stringify(t,null,2):String(t)}function Xo(t){var e=parseFloat(t);return isNaN(e)?t:e}function Yo(t,e){for(var n=Object.create(null),o=t.split(","),r=0;r-1)return t.splice(n,1)}}var tr=Object.prototype.hasOwnProperty;function er(t,e){return tr.call(t,e)}function nr(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var or=/-(\w)/g,rr=nr((function(t){return t.replace(or,(function(t,e){return e?e.toUpperCase():""}))})),ar=nr((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),ir=/\B([A-Z])/g,sr=nr((function(t){return t.replace(ir,"-$1").toLowerCase()})),lr=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function cr(t,e){e=e||0;for(var n=t.length-e,o=new Array(n);n--;)o[n]=t[n+e];return o}function ur(t,e){for(var n in e)t[n]=e[n];return t}function pr(t){for(var e={},n=0;n0,Ir=Nr&&Nr.indexOf("edge/")>0,Mr=(Nr&&Nr.indexOf("android"),Nr&&/iphone|ipad|ipod|ios/.test(Nr)||"ios"===Ar),jr=(Nr&&/chrome\/\d+/.test(Nr),Nr&&/phantomjs/.test(Nr),Nr&&Nr.match(/firefox\/(\d+)/)),Rr={}.watch,Pr=!1;if(Cr)try{var Hr={};Object.defineProperty(Hr,"passive",{get:function(){Pr=!0}}),window.addEventListener("test-passive",null,Hr)}catch(t){}var Fr=function(){return void 0===Or&&(Or=!Cr&&!$r&&void 0!==__webpack_require__.g&&__webpack_require__.g.process&&"server"===__webpack_require__.g.process.env.VUE_ENV),Or},Vr=Cr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function qr(t){return"function"==typeof t&&/native code/.test(t.toString())}var zr,Ur="undefined"!=typeof Symbol&&qr(Symbol)&&"undefined"!=typeof Reflect&&qr(Reflect.ownKeys);zr="undefined"!=typeof Set&&qr(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Wr=dr,Br=0,Zr=function(){this.id=Br++,this.subs=[]};Zr.prototype.addSub=function(t){this.subs.push(t)},Zr.prototype.removeSub=function(t){Qo(this.subs,t)},Zr.prototype.depend=function(){Zr.target&&Zr.target.addDep(this)},Zr.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(a&&!er(r,"default"))i=!1;else if(""===i||i===sr(t)){var l=Oa(String,r.type);(l<0||s0&&(Xa((o=Ya(o,(e||"")+"_"+n))[0])&&Xa(a)&&(i[r]=ta(a.text+o[0].text),o.shift()),i.push.apply(i,o)):qo(o)?Xa(a)?i[r]=ta(a.text+o):""!==o&&i.push(ta(o)):Xa(o)&&Xa(a)?i[r]=ta(a.text+o.text):(Vo(t._isVList)&&Fo(o.tag)&&Ho(o.key)&&Fo(e)&&(o.key="__vlist"+e+"_"+n+"__"),i.push(o)));return i}function Ga(t,e){if(t){for(var n=Object.create(null),o=Ur?Reflect.ownKeys(t):Object.keys(t),r=0;r0,a=t?!!t.$stable:!r,i=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==Po&&i===n.$key&&!r&&!n.$hasNormal)return n;for(var s in o={},t)t[s]&&"$"!==s[0]&&(o[s]=ni(e,s,t[s]))}else o={};for(var l in e)l in o||(o[l]=oi(e,l));return t&&Object.isExtensible(t)&&(t._normalized=o),_r(o,"$stable",a),_r(o,"$key",i),_r(o,"$hasNormal",r),o}function ni(t,e,n){var o=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:Ja(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!ti(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:o,enumerable:!0,configurable:!0}),o}function oi(t,e){return function(){return t[e]}}function ri(t,e){var n,o,r,a,i;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),o=0,r=t.length;odocument.createEvent("Event").timeStamp&&(Gi=function(){return Ki.now()})}function Qi(){var t,e;for(Yi=Gi(),Ji=!0,Ui.sort((function(t,e){return t.id-e.id})),Xi=0;XiXi&&Ui[n].id>t.id;)n--;Ui.splice(n+1,0,t)}else Ui.push(t);Zi||(Zi=!0,Ha(Qi))}}(this)},es.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||zo(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Ta(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},es.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},es.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},es.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||Qo(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var ns={enumerable:!0,configurable:!0,get:dr,set:dr};function os(t,e,n){ns.get=function(){return this[e][n]},ns.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ns)}var rs={lazy:!0};function as(t,e,n){var o=!Fr();"function"==typeof n?(ns.get=o?is(e):ss(n),ns.set=dr):(ns.get=n.get?o&&!1!==n.cache?is(e):ss(n.get):dr,ns.set=n.set||dr),Object.defineProperty(t,e,ns)}function is(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Zr.target&&e.depend(),e.value}}function ss(t){return function(){return t.call(this,this)}}function ls(t,e,n,o){return Wo(n)&&(o=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,o)}var cs=0;function us(t){var e=t.options;if(t.super){var n=us(t.super);if(n!==t.superOptions){t.superOptions=n;var o=function(t){var e,n=t.options,o=t.sealedOptions;for(var r in n)n[r]!==o[r]&&(e||(e={}),e[r]=n[r]);return e}(t);o&&ur(t.extendOptions,o),(e=t.options=va(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function ps(t){this._init(t)}function ds(t){return t&&(t.Ctor.options.name||t.tag)}function fs(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,!("[object RegExp]"!==Uo.call(n))&&t.test(e));var n}function hs(t,e){var n=t.cache,o=t.keys,r=t._vnode;for(var a in n){var i=n[a];if(i){var s=i.name;s&&!e(s)&&ms(n,a,o,r)}}}function ms(t,e,n,o){var r=t[e];!r||o&&r.tag===o.tag||r.componentInstance.$destroy(),t[e]=null,Qo(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=cs++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),o=e._parentVnode;n.parent=e.parent,n._parentVnode=o;var r=o.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=va(us(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ri(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=Ka(e._renderChildren,o),t.$scopedSlots=Po,t._c=function(e,n,o,r){return Ci(t,e,n,o,r,!1)},t.$createElement=function(e,n,o,r){return Ci(t,e,n,o,r,!0)};var r=n&&n.data;ca(t,"$attrs",r&&r.attrs||Po,null,!0),ca(t,"$listeners",e._parentListeners||Po,null,!0)}(e),zi(e,"beforeCreate"),function(t){var e=Ga(t.$options.inject,t);e&&(ia(!1),Object.keys(e).forEach((function(n){ca(t,n,e[n])})),ia(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},o=t._props={},r=t.$options._propKeys=[];!t.$parent||ia(!1);var a=function(a){r.push(a);var i=xa(a,e,n,t);ca(o,a,i),a in t||os(t,"_props",a)};for(var i in e)a(i);ia(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?dr:lr(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;Wo(e=t._data="function"==typeof e?function(t,e){Xr();try{return t.call(e,e)}catch(t){return Sa(t,e,"data()"),{}}finally{Yr()}}(e,t):e||{})||(e={});for(var n=Object.keys(e),o=t.$options.props,r=(t.$options.methods,n.length);r--;){var a=n[r];o&&er(o,a)||Er(a)||os(t,"_data",a)}la(e,!0)}(t):la(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),o=Fr();for(var r in e){var a=e[r],i="function"==typeof a?a:a.get;o||(n[r]=new es(t,i||dr,dr,rs)),r in t||as(t,r,a)}}(t,e.computed),e.watch&&e.watch!==Rr&&function(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var r=0;r1?cr(n):n;for(var o=cr(arguments,1),r='event handler for "'+t+'"',a=0,i=n.length;aparseInt(this.max)&&ms(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)ms(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){hs(t,(function(t){return fs(e,t)}))})),this.$watch("exclude",(function(e){hs(t,(function(t){return!fs(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Di(t),n=e&&e.componentOptions;if(n){var o=ds(n),r=this.include,a=this.exclude;if(r&&(!o||!fs(r,o))||a&&o&&fs(a,o))return e;var i=this.cache,s=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;i[l]?(e.componentInstance=i[l].componentInstance,Qo(s,l),s.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}},ys={KeepAlive:bs};!function(t){var e={get:function(){return xr}};Object.defineProperty(t,"config",e),t.util={warn:Wr,extend:ur,mergeOptions:va,defineReactive:ca},t.set=ua,t.delete=pa,t.nextTick=Ha,t.observable=function(t){return la(t),t},t.options=Object.create(null),vr.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,ur(t.options.components,ys),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=cr(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=va(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,r=t._Ctor||(t._Ctor={});if(r[o])return r[o];var a=t.name||n.options.name,i=function(t){this._init(t)};return(i.prototype=Object.create(n.prototype)).constructor=i,i.cid=e++,i.options=va(n.options,t),i.super=n,i.options.props&&function(t){var e=t.options.props;for(var n in e)os(t.prototype,"_props",n)}(i),i.options.computed&&function(t){var e=t.options.computed;for(var n in e)as(t.prototype,n,e[n])}(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,vr.forEach((function(t){i[t]=n[t]})),a&&(i.options.components[a]=i),i.superOptions=n.options,i.extendOptions=t,i.sealedOptions=ur({},i.options),r[o]=i,i}}(t),function(t){vr.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&Wo(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(ps),Object.defineProperty(ps.prototype,"$isServer",{get:Fr}),Object.defineProperty(ps.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ps,"FunctionalRenderContext",{value:vi}),ps.version="2.6.14";var vs=Yo("style,class"),ks=Yo("input,textarea,option,select,progress"),xs=function(t,e,n){return"value"===n&&ks(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ws=Yo("contenteditable,draggable,spellcheck"),Es=Yo("events,caret,typing,plaintext-only"),_s=function(t,e){return $s(e)||"false"===e?"false":"contenteditable"===t&&Es(e)?e:"true"},Os=Yo("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ss="http://www.w3.org/1999/xlink",Ts=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Cs=function(t){return Ts(t)?t.slice(6,t.length):""},$s=function(t){return null==t||!1===t};function As(t,e){return{staticClass:Ns(t.staticClass,e.staticClass),class:Fo(t.class)?[t.class,e.class]:e.class}}function Ns(t,e){return t?e?t+" "+e:t:e||""}function Ls(t){return Array.isArray(t)?function(t){for(var e,n="",o=0,r=t.length;o-1?ol(t,e,n):Os(e)?$s(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ws(e)?t.setAttribute(e,_s(e,n)):Ts(e)?$s(n)?t.removeAttributeNS(Ss,Cs(e)):t.setAttributeNS(Ss,e,n):ol(t,e,n)}function ol(t,e,n){if($s(n))t.removeAttribute(e);else{if(Lr&&!Dr&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var o=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",o)};t.addEventListener("input",o),t.__ieph=!0}t.setAttribute(e,n)}}var rl={create:el,update:el};function al(t,e){var n=e.elm,o=e.data,r=t.data;if(!(Ho(o.staticClass)&&Ho(o.class)&&(Ho(r)||Ho(r.staticClass)&&Ho(r.class)))){var a=function(t){for(var e=t.data,n=t,o=t;Fo(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=As(o.data,e));for(;Fo(n=n.parent);)n&&n.data&&(e=As(e,n.data));return r=e.staticClass,a=e.class,Fo(r)||Fo(a)?Ns(r,Ls(a)):"";var r,a}(e),i=n._transitionClasses;Fo(i)&&(a=Ns(a,Ls(i))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var il,sl,ll,cl,ul,pl,dl={create:al,update:al},fl=/[\w).+\-_$\]]/;function hl(t){var e,n,o,r,a,i=!1,s=!1,l=!1,c=!1,u=0,p=0,d=0,f=0;for(o=0;o=0&&" "===(m=t.charAt(h));h--);m&&fl.test(m)||(c=!0)}}else void 0===r?(f=o+1,r=t.slice(0,o).trim()):g();function g(){(a||(a=[])).push(t.slice(f,o).trim()),f=o+1}if(void 0===r?r=t.slice(0,o).trim():0!==f&&g(),a)for(o=0;o-1?{exp:t.slice(0,cl),key:'"'+t.slice(cl+1)+'"'}:{exp:t,key:null};for(sl=t,cl=ul=pl=0;!Nl();)Ll(ll=Al())?Il(ll):91===ll&&Dl(ll);return{exp:t.slice(0,ul),key:t.slice(ul+1,pl)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Al(){return sl.charCodeAt(++cl)}function Nl(){return cl>=il}function Ll(t){return 34===t||39===t}function Dl(t){var e=1;for(ul=cl;!Nl();)if(Ll(t=Al()))Il(t);else if(91===t&&e++,93===t&&e--,0===e){pl=cl;break}}function Il(t){for(var e=t;!Nl()&&(t=Al())!==e;);}var Ml,jl="__r",Rl="__c";function Pl(t,e,n){var o=Ml;return function r(){null!==e.apply(null,arguments)&&Vl(t,r,n,o)}}var Hl=Na&&!(jr&&Number(jr[1])<=53);function Fl(t,e,n,o){if(Hl){var r=Yi,a=e;e=a._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return a.apply(this,arguments)}}Ml.addEventListener(t,e,Pr?{capture:n,passive:o}:n)}function Vl(t,e,n,o){(o||Ml).removeEventListener(t,e._wrapper||e,n)}function ql(t,e){if(!Ho(t.data.on)||!Ho(e.data.on)){var n=e.data.on||{},o=t.data.on||{};Ml=e.elm,function(t){if(Fo(t[jl])){var e=Lr?"change":"input";t[e]=[].concat(t[jl],t[e]||[]),delete t[jl]}Fo(t[Rl])&&(t.change=[].concat(t[Rl],t.change||[]),delete t[Rl])}(n),Wa(n,o,Fl,Vl,Pl,e.context),Ml=void 0}}var zl,Ul={create:ql,update:ql};function Wl(t,e){if(!Ho(t.data.domProps)||!Ho(e.data.domProps)){var n,o,r=e.elm,a=t.data.domProps||{},i=e.data.domProps||{};for(n in Fo(i.__ob__)&&(i=e.data.domProps=ur({},i)),a)n in i||(r[n]="");for(n in i){if(o=i[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===a[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=o;var s=Ho(o)?"":String(o);Bl(r,s)&&(r.value=s)}else if("innerHTML"===n&&Ms(r.tagName)&&Ho(r.innerHTML)){(zl=zl||document.createElement("div")).innerHTML=""+o+"";for(var l=zl.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;l.firstChild;)r.appendChild(l.firstChild)}else if(o!==a[n])try{r[n]=o}catch(t){}}}}function Bl(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,o=t._vModifiers;if(Fo(o)){if(o.number)return Xo(n)!==Xo(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Zl={create:Wl,update:Wl},Jl=nr((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var o=t.split(n);o.length>1&&(e[o[0].trim()]=o[1].trim())}})),e}));function Xl(t){var e=Yl(t.style);return t.staticStyle?ur(t.staticStyle,e):e}function Yl(t){return Array.isArray(t)?pr(t):"string"==typeof t?Jl(t):t}var Gl,Kl=/^--/,Ql=/\s*!important$/,tc=function(t,e,n){if(Kl.test(e))t.style.setProperty(e,n);else if(Ql.test(n))t.style.setProperty(sr(e),n.replace(Ql,""),"important");else{var o=nc(e);if(Array.isArray(n))for(var r=0,a=n.length;r-1?e.split(ac).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function sc(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ac).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";n.indexOf(o)>=0;)n=n.replace(o," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function lc(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&ur(e,cc(t.name||"v")),ur(e,t),e}return"string"==typeof t?cc(t):void 0}}var cc=nr((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),uc=Cr&&!Dr,pc="transition",dc="animation",fc="transition",hc="transitionend",mc="animation",gc="animationend";uc&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fc="WebkitTransition",hc="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(mc="WebkitAnimation",gc="webkitAnimationEnd"));var bc=Cr?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function yc(t){bc((function(){bc(t)}))}function vc(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),ic(t,e))}function kc(t,e){t._transitionClasses&&Qo(t._transitionClasses,e),sc(t,e)}function xc(t,e,n){var o=Ec(t,e),r=o.type,a=o.timeout,i=o.propCount;if(!r)return n();var s=r===pc?hc:gc,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=i&&c()};setTimeout((function(){l0&&(n=pc,u=i,p=a.length):e===dc?c>0&&(n=dc,u=c,p=l.length):p=(n=(u=Math.max(i,c))>0?i>c?pc:dc:null)?n===pc?a.length:l.length:0,{type:n,timeout:u,propCount:p,hasTransform:n===pc&&wc.test(o[fc+"Property"])}}function _c(t,e){for(;t.length1}function Ac(t,e){!0!==e.data.show&&Sc(e)}var Nc=function(t){var e,n,o={},r=t.modules,a=t.nodeOps;for(e=0;ed?h(t,Ho(n[b+1])?null:n[b+1].elm,n,p,b,o):p>b&&g(e,u,d)}(c,f,m,n,l):Fo(m)?(Fo(t.text)&&a.setTextContent(c,""),h(c,null,m,0,m.length-1,n)):Fo(f)?g(f,0,f.length-1):Fo(t.text)&&a.setTextContent(c,""):t.text!==e.text&&a.setTextContent(c,e.text),Fo(d)&&Fo(u=d.hook)&&Fo(u=u.postpatch)&&u(t,e)}}}function k(t,e,n){if(Vo(n)&&Fo(t.parent))t.parent.data.pendingInsert=e;else for(var o=0;o-1,i.selected!==a&&(i.selected=a);else if(mr(jc(i),o))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function Mc(t,e){return e.every((function(e){return!mr(e,t)}))}function jc(t){return"_value"in t?t._value:t.value}function Rc(t){t.target.composing=!0}function Pc(t){t.target.composing&&(t.target.composing=!1,Hc(t.target,"input"))}function Hc(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Fc(t){return!t.componentInstance||t.data&&t.data.transition?t:Fc(t.componentInstance._vnode)}var Vc={bind:function(t,e,n){var o=e.value,r=(n=Fc(n)).data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;o&&r?(n.data.show=!0,Sc(n,(function(){t.style.display=a}))):t.style.display=o?a:"none"},update:function(t,e,n){var o=e.value;!o!=!e.oldValue&&((n=Fc(n)).data&&n.data.transition?(n.data.show=!0,o?Sc(n,(function(){t.style.display=t.__vOriginalDisplay})):Tc(n,(function(){t.style.display="none"}))):t.style.display=o?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,o,r){r||(t.style.display=t.__vOriginalDisplay)}},qc={model:Lc,show:Vc},zc={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Uc(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Uc(Di(e.children)):t}function Wc(t){var e={},n=t.$options;for(var o in n.propsData)e[o]=t[o];var r=n._parentListeners;for(var a in r)e[rr(a)]=r[a];return e}function Bc(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Zc=function(t){return t.tag||ti(t)},Jc=function(t){return"show"===t.name},Xc={name:"transition",props:zc,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Zc)).length){var o=this.mode,r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var a=Uc(r);if(!a)return r;if(this._leaving)return Bc(t,r);var i="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?i+"comment":i+a.tag:qo(a.key)?0===String(a.key).indexOf(i)?a.key:i+a.key:a.key;var s=(a.data||(a.data={})).transition=Wc(this),l=this._vnode,c=Uc(l);if(a.data.directives&&a.data.directives.some(Jc)&&(a.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(a,c)&&!ti(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=ur({},s);if("out-in"===o)return this._leaving=!0,Ba(u,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Bc(t,r);if("in-out"===o){if(ti(a))return l;var p,d=function(){p()};Ba(s,"afterEnter",d),Ba(s,"enterCancelled",d),Ba(u,"delayLeave",(function(t){p=t}))}}return r}}},Yc=ur({tag:String,moveClass:String},zc);delete Yc.mode;var Gc={props:Yc,beforeMount:function(){var t=this,e=this._update;this._update=function(n,o){var r=Hi(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,o)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],i=Wc(this),s=0;s-1?Ps[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ps[t]=/HTMLUnknownElement/.test(e.toString())},ur(ps.options.directives,qc),ur(ps.options.components,eu),ps.prototype.__patch__=Cr?Nc:dr,ps.prototype.$mount=function(t,e){return function(t,e,n){var o;return t.$el=e,t.$options.render||(t.$options.render=Qr),zi(t,"beforeMount"),o=function(){t._update(t._render(),n)},new es(t,o,dr,{before:function(){t._isMounted&&!t._isDestroyed&&zi(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,zi(t,"mounted")),t}(this,t=t&&Cr?Fs(t):void 0,e)},Cr&&setTimeout((function(){xr.devtools&&Vr&&Vr.emit("init",ps)}),0);var nu,ou=/\{\{((?:.|\r?\n)+?)\}\}/g,ru=/[-.*+?^${}()|[\]\/\\]/g,au=nr((function(t){var e=t[0].replace(ru,"\\$&"),n=t[1].replace(ru,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),iu={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=Ol(t,"class");n&&(t.staticClass=JSON.stringify(n));var o=_l(t,"class",!1);o&&(t.classBinding=o)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},su={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=Ol(t,"style");n&&(t.staticStyle=JSON.stringify(Jl(n)));var o=_l(t,"style",!1);o&&(t.styleBinding=o)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},lu=Yo("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),cu=Yo("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),uu=Yo("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),pu=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,du=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,fu="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+wr.source+"]*",hu="((?:"+fu+"\\:)?"+fu+")",mu=new RegExp("^<"+hu),gu=/^\s*(\/?)>/,bu=new RegExp("^<\\/"+hu+"[^>]*>"),yu=/^]+>/i,vu=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},_u=/&(?:lt|gt|quot|amp|#39);/g,Ou=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Su=Yo("pre,textarea",!0),Tu=function(t,e){return t&&Su(t)&&"\n"===e[0]};function Cu(t,e){var n=e?Ou:_u;return t.replace(n,(function(t){return Eu[t]}))}var $u,Au,Nu,Lu,Du,Iu,Mu,ju,Ru=/^@|^v-on:/,Pu=/^v-|^@|^:|^#/,Hu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Fu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vu=/^\(|\)$/g,qu=/^\[.*\]$/,zu=/:(.*)$/,Uu=/^:|^\.|^v-bind:/,Wu=/\.[^.\]]+(?=[^\]]*$)/g,Bu=/^v-slot(:|$)|^#/,Zu=/[\r\n]/,Ju=/[ \f\t\r\n]+/g,Xu=nr((function(t){return(nu=nu||document.createElement("div")).innerHTML=t,nu.textContent})),Yu="_empty_";function Gu(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:op(e),rawAttrsMap:{},parent:n,children:[]}}function Ku(t,e){var n;!function(t){var e=_l(t,"key");e&&(t.key=e)}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=_l(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Ol(t,"scope"),t.slotScope=e||Ol(t,"slot-scope")):(e=Ol(t,"slot-scope"))&&(t.slotScope=e);var n=_l(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||vl(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var o=Sl(t,Bu);if(o){var r=ep(o),a=r.name,i=r.dynamic;t.slotTarget=a,t.slotTargetDynamic=i,t.slotScope=o.value||Yu}}else{var s=Sl(t,Bu);if(s){var l=t.scopedSlots||(t.scopedSlots={}),c=ep(s),u=c.name,p=c.dynamic,d=l[u]=Gu("template",[],t);d.slotTarget=u,d.slotTargetDynamic=p,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=s.value||Yu,t.children=[],t.plain=!1}}}(t),"slot"===(n=t).tag&&(n.slotName=_l(n,"name")),function(t){var e;(e=_l(t,"is"))&&(t.component=e),null!=Ol(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),El(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+i+");if(Array.isArray($$a)){var $$v="+(o?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+$l(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+$l(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+$l(e,"$$c")+"}",null,!0)}(t,o,r);else if("input"===a&&"radio"===i)!function(t,e,n){var o=n&&n.number,r=_l(t,"value")||"null";yl(t,"checked","_q("+e+","+(r=o?"_n("+r+")":r)+")"),El(t,"change",$l(e,r),null,!0)}(t,o,r);else if("input"===a||"textarea"===a)!function(t,e,n){var o=t.attrsMap.type,r=n||{},a=r.lazy,i=r.number,s=r.trim,l=!a&&"range"!==o,c=a?"change":"range"===o?jl:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),i&&(u="_n("+u+")");var p=$l(e,u);l&&(p="if($event.target.composing)return;"+p),yl(t,"value","("+e+")"),El(t,c,p,null,!0),(s||i)&&El(t,"blur","$forceUpdate()")}(t,o,r);else if(!xr.isReservedTag(a))return Cl(t,o,r),!1;return!0},text:function(t,e){e.value&&yl(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&yl(t,"innerHTML","_s("+e.value+")",e)}},fp={expectHTML:!0,modules:pp,directives:dp,isPreTag:function(t){return"pre"===t},isUnaryTag:lu,mustUseProp:xs,canBeLeftOpenTag:cu,isReservedTag:js,getTagNamespace:Rs,staticKeys:(cp=pp,cp.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(","))},hp=nr((function(t){return Yo("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function mp(t,e){t&&(sp=hp(e.staticKeys||""),lp=e.isReservedTag||fr,gp(t),bp(t,!1))}function gp(t){if(t.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Go(t.tag)||!lp(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(sp))))}(t),1===t.type){if(!lp(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e|^function(?:\s+[\w$]+)?\s*\(/,vp=/\([^)]*?\);*$/,kp=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,xp={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},wp={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ep=function(t){return"if("+t+")return null;"},_p={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ep("$event.target !== $event.currentTarget"),ctrl:Ep("!$event.ctrlKey"),shift:Ep("!$event.shiftKey"),alt:Ep("!$event.altKey"),meta:Ep("!$event.metaKey"),left:Ep("'button' in $event && $event.button !== 0"),middle:Ep("'button' in $event && $event.button !== 1"),right:Ep("'button' in $event && $event.button !== 2")};function Op(t,e){var n=e?"nativeOn:":"on:",o="",r="";for(var a in t){var i=Sp(t[a]);t[a]&&t[a].dynamic?r+=a+","+i+",":o+='"'+a+'":'+i+","}return o="{"+o.slice(0,-1)+"}",r?n+"_d("+o+",["+r.slice(0,-1)+"])":n+o}function Sp(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Sp(t)})).join(",")+"]";var e=kp.test(t.value),n=yp.test(t.value),o=kp.test(t.value.replace(vp,""));if(t.modifiers){var r="",a="",i=[];for(var s in t.modifiers)if(_p[s])a+=_p[s],xp[s]&&i.push(s);else if("exact"===s){var l=t.modifiers;a+=Ep(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else i.push(s);return i.length&&(r+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Tp).join("&&")+")return null;"}(i)),a&&(r+=a),"function($event){"+r+(e?"return "+t.value+".apply(null, arguments)":n?"return ("+t.value+").apply(null, arguments)":o?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(o?"return "+t.value:t.value)+"}"}function Tp(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=xp[t],o=wp[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(o)+")"}var Cp={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:dr},$p=function(t){this.options=t,this.warn=t.warn||gl,this.transforms=bl(t.modules,"transformCode"),this.dataGenFns=bl(t.modules,"genData"),this.directives=ur(ur({},Cp),t.directives);var e=t.isReservedTag||fr;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ap(t,e){var n=new $p(e);return{render:"with(this){return "+(t?"script"===t.tag?"null":Np(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Np(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Lp(t,e);if(t.once&&!t.onceProcessed)return Dp(t,e);if(t.for&&!t.forProcessed)return jp(t,e);if(t.if&&!t.ifProcessed)return Ip(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',o=Fp(t,e),r="_t("+n+(o?",function(){return "+o+"}":""),a=t.attrs||t.dynamicAttrs?zp((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:rr(t.name),value:t.value,dynamic:t.dynamic}}))):null,i=t.attrsMap["v-bind"];return!a&&!i||o||(r+=",null"),a&&(r+=","+a),i&&(r+=(a?"":",null")+","+i),r+")"}(t,e);var n;if(t.component)n=function(t,e,n){var o=e.inlineTemplate?null:Fp(e,n,!0);return"_c("+t+","+Rp(e,n)+(o?","+o:"")+")"}(t.component,t,e);else{var o;(!t.plain||t.pre&&e.maybeComponent(t))&&(o=Rp(t,e));var r=t.inlineTemplate?null:Fp(t,e,!0);n="_c('"+t.tag+"'"+(o?","+o:"")+(r?","+r:"")+")"}for(var a=0;a>>0}(i):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var a=function(t,e){var n=t.children[0];if(n&&1===n.type){var o=Ap(n,e.options);return"inlineTemplate:{render:function(){"+o.render+"},staticRenderFns:["+o.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+zp(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Pp(t){return 1===t.type&&("slot"===t.tag||t.children.some(Pp))}function Hp(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Ip(t,e,Hp,"null");if(t.for&&!t.forProcessed)return jp(t,e,Hp);var o=t.slotScope===Yu?"":String(t.slotScope),r="function("+o+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Fp(t,e)||"undefined")+":undefined":Fp(t,e)||"undefined":Np(t,e))+"}",a=o?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+a+"}"}function Fp(t,e,n,o,r){var a=t.children;if(a.length){var i=a[0];if(1===a.length&&i.for&&"template"!==i.tag&&"slot"!==i.tag){var s=n?e.maybeComponent(i)?",1":",0":"";return""+(o||Np)(i,e)+s}var l=n?function(t,e){for(var n=0,o=0;o]*>)","i")),d=t.replace(p,(function(t,n,o){return c=o.length,xu(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),Tu(u,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-d.length,t=d,S(u,l-c,l)}else{var f=t.indexOf("<");if(0===f){if(vu.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),l,l+h+3),E(h+3);continue}}if(ku.test(t)){var m=t.indexOf("]>");if(m>=0){E(m+2);continue}}var g=t.match(yu);if(g){E(g[0].length);continue}var b=t.match(bu);if(b){var y=l;E(b[0].length),S(b[1],y,l);continue}var v=_();if(v){O(v),Tu(v.tagName,t)&&E(1);continue}}var k=void 0,x=void 0,w=void 0;if(f>=0){for(x=t.slice(f);!(bu.test(x)||mu.test(x)||vu.test(x)||ku.test(x)||(w=x.indexOf("<",1))<0);)f+=w,x=t.slice(f);k=t.substring(0,f)}f<0&&(k=t),k&&E(k.length),e.chars&&k&&e.chars(k,l-k.length,l)}if(t===n){e.chars&&e.chars(t);break}}function E(e){l+=e,t=t.substring(e)}function _(){var e=t.match(mu);if(e){var n,o,r={tagName:e[1],attrs:[],start:l};for(E(e[0].length);!(n=t.match(gu))&&(o=t.match(du)||t.match(pu));)o.start=l,E(o[0].length),o.end=l,r.attrs.push(o);if(n)return r.unarySlash=n[1],E(n[0].length),r.end=l,r}}function O(t){var n=t.tagName,l=t.unarySlash;a&&("p"===o&&uu(n)&&S(o),s(n)&&o===n&&S(n));for(var c=i(n)||!!l,u=t.attrs.length,p=new Array(u),d=0;d=0&&r[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=r.length-1;c>=i;c--)e.end&&e.end(r[c].tag,n,a);r.length=i,o=i&&r[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,a):"p"===s&&(e.start&&e.start(t,[],!1,n,a),e.end&&e.end(t,n,a))}S()}(t,{warn:$u,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,a,i,u,p){var d=o&&o.ns||ju(t);Lr&&"svg"===d&&(a=function(t){for(var e=[],n=0;nl&&(s.push(a=t.slice(l,r)),i.push(JSON.stringify(a)));var c=hl(o[1].trim());i.push("_s("+c+")"),s.push({"@binding":c}),l=r+o[0].length}return l':'
',Jp.innerHTML.indexOf(" ")>0}var Qp=!!Cr&&Kp(!1),td=!!Cr&&Kp(!0),ed=nr((function(t){var e=Fs(t);return e&&e.innerHTML})),nd=ps.prototype.$mount;ps.prototype.$mount=function(t,e){if((t=t&&Fs(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var o=n.template;if(o)if("string"==typeof o)"#"===o.charAt(0)&&(o=ed(o));else{if(!o.nodeType)return this;o=o.innerHTML}else t&&(o=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(o){var r=Gp(o,{outputSourceRange:!1,shouldDecodeNewlines:Qp,shouldDecodeNewlinesForHref:td,delimiters:n.delimiters,comments:n.comments},this),a=r.render,i=r.staticRenderFns;n.render=a,n.staticRenderFns=i}}return nd.call(this,t,e)},ps.compile=Gp;const od=ps;function rd(t,e){return new(od.extend(od.options.components[t]))(e)}class ad{constructor(t,e){this.issue=t,this.target=e}}class id{constructor(t){this.issues=t,this.vue=rd("LinterPopup",{propsData:{issue:null}}),this.vue.$on("fix",(t=>t.fix())),this.vue.$mount()}getEnrichments(){return this.issues.filter((t=>t.get("target"))).map((t=>new ad(t,t.get("target"))))}getPopupContent(t,e){return this.vue.issue=t.issue.attributes,this.vue.$el}markCreated(t,e){const n=t.issue;e.classList.add(`enrichment--${n.attributes.severity}`)}popupCreated(t,e){}}window.enrichments=t;class sd extends Error{}class ld extends sd{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class cd extends sd{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class ud extends sd{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class pd extends sd{}class dd extends sd{constructor(t){super(`Invalid unit ${t}`)}}class fd extends sd{}class hd extends sd{constructor(){super("Zone is an abstract class")}}const md="numeric",gd="short",bd="long",yd={year:md,month:md,day:md},vd={year:md,month:gd,day:md},kd={year:md,month:gd,day:md,weekday:gd},xd={year:md,month:bd,day:md},wd={year:md,month:bd,day:md,weekday:bd},Ed={hour:md,minute:md},_d={hour:md,minute:md,second:md},Od={hour:md,minute:md,second:md,timeZoneName:gd},Sd={hour:md,minute:md,second:md,timeZoneName:bd},Td={hour:md,minute:md,hourCycle:"h23"},Cd={hour:md,minute:md,second:md,hourCycle:"h23"},$d={hour:md,minute:md,second:md,hourCycle:"h23",timeZoneName:gd},Ad={hour:md,minute:md,second:md,hourCycle:"h23",timeZoneName:bd},Nd={year:md,month:md,day:md,hour:md,minute:md},Ld={year:md,month:md,day:md,hour:md,minute:md,second:md},Dd={year:md,month:gd,day:md,hour:md,minute:md},Id={year:md,month:gd,day:md,hour:md,minute:md,second:md},Md={year:md,month:gd,day:md,weekday:gd,hour:md,minute:md},jd={year:md,month:bd,day:md,hour:md,minute:md,timeZoneName:gd},Rd={year:md,month:bd,day:md,hour:md,minute:md,second:md,timeZoneName:gd},Pd={year:md,month:bd,day:md,weekday:bd,hour:md,minute:md,timeZoneName:bd},Hd={year:md,month:bd,day:md,weekday:bd,hour:md,minute:md,second:md,timeZoneName:bd};class Fd{get type(){throw new hd}get name(){throw new hd}get ianaName(){return this.name}get isUniversal(){throw new hd}offsetName(t,e){throw new hd}formatOffset(t,e){throw new hd}offset(t){throw new hd}equals(t){throw new hd}get isValid(){throw new hd}}let Vd=null;class qd extends Fd{static get instance(){return null===Vd&&(Vd=new qd),Vd}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return nh(t,e,n)}formatOffset(t,e){return ih(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let zd={};const Ud={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Wd={};class Bd extends Fd{static create(t){return Wd[t]||(Wd[t]=new Bd(t)),Wd[t]}static resetCache(){Wd={},zd={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Bd.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return nh(t,e,n,this.name)}formatOffset(t,e){return ih(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(o=this.name,zd[o]||(zd[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),zd[o]);var o;let[r,a,i,s,l,c,u]=n.formatToParts?function(t,e){const n=t.formatToParts(e),o=[];for(let t=0;t=0?d:1e3+d,(Kf({year:r,month:a,day:i,hour:24===l?0:l,minute:c,second:u,millisecond:0})-p)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Zd={},Jd={};function Xd(t,e={}){const n=JSON.stringify([t,e]);let o=Jd[n];return o||(o=new Intl.DateTimeFormat(t,e),Jd[n]=o),o}let Yd={},Gd={},Kd=null,Qd={};function tf(t,e,n,o){const r=t.listingMode();return"error"===r?null:"en"===r?n(e):o(e)}class ef{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:o,floor:r,...a}=n;if(!e||Object.keys(a).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let o=Yd[n];return o||(o=new Intl.NumberFormat(t,e),Yd[n]=o),o}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Uf(this.floor?Math.floor(t):Jf(t,3),this.padTo)}}class nf{constructor(t,e,n){let o;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&Bd.create(n).valid?(o=n,this.dt=t):(o="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||o,this.dtf=Xd(e,r)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class of{constructor(t,e,n){this.opts={style:"long",...n},!e&&Pf()&&(this.rtf=function(t,e={}){const{base:n,...o}=e,r=JSON.stringify([t,o]);let a=Gd[r];return a||(a=new Intl.RelativeTimeFormat(t,e),Gd[r]=a),a}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",o=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&a){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${r[t][0]}`;case-1:return n?"yesterday":`last ${r[t][0]}`;case 0:return n?"today":`this ${r[t][0]}`}}const i=Object.is(e,-0)||e<0,s=Math.abs(e),l=1===s,c=r[t],u=o?l?c[1]:c[2]||c[1]:l?r[t][0]:t;return i?`${s} ${u} ago`:`in ${s} ${u}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const rf={firstDay:1,minimalDays:4,weekend:[6,7]};class af{static fromOpts(t){return af.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,o,r=!1){const a=t||vf.defaultLocale,i=a||(r?"en-US":Kd||(Kd=(new Intl.DateTimeFormat).resolvedOptions().locale,Kd)),s=e||vf.defaultNumberingSystem,l=n||vf.defaultOutputCalendar,c=qf(o)||vf.defaultWeekSettings;return new af(i,s,l,c,a)}static resetCache(){Kd=null,Jd={},Yd={},Gd={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:o}={}){return af.create(t,e,n,o)}constructor(t,e,n,o,r){const[a,i,s]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,o;try{e=Xd(t).resolvedOptions(),o=t}catch(r){const a=t.substring(0,n);e=Xd(a).resolvedOptions(),o=a}const{numberingSystem:r,calendar:a}=e;return[o,r,a]}}(t);this.locale=a,this.numberingSystem=e||i||null,this.outputCalendar=n||s||null,this.weekSettings=o,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?af.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,qf(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return tf(this,t,ph,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},o=e?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=function(t){const e=[];for(let n=1;n<=12;n++){const o=dg.utc(2009,n,1);e.push(t(o))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[o][t]}))}weekdays(t,e=!1){return tf(this,t,mh,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=e?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=function(t){const e=[];for(let n=1;n<=7;n++){const o=dg.utc(2016,11,13+n);e.push(t(o))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[o][t]}))}meridiems(){return tf(this,void 0,(()=>gh),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dg.utc(2016,11,13,9),dg.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return tf(this,t,kh,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[dg.utc(-40,1,1),dg.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const o=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return o?o.value:null}numberFormatter(t={}){return new ef(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new nf(t,this.intl,e)}relFormatter(t={}){return new of(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let o=Zd[n];return o||(o=new Intl.ListFormat(t,e),Zd[n]=o),o}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Hf()?function(t){let e=Qd[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Qd[t]=e}return e}(this.locale):rf}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let sf=null;class lf extends Fd{static get utcInstance(){return null===sf&&(sf=new lf(0)),sf}static instance(t){return 0===t?lf.utcInstance:new lf(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new lf(oh(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ih(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ih(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ih(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class cf extends Fd{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function uf(t,e){if(Mf(t)||null===t)return e;if(t instanceof Fd)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?qd.instance:"utc"===n||"gmt"===n?lf.utcInstance:lf.parseSpecifier(n)||Bd.create(t)}return jf(t)?lf.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new cf(t)}let pf,df=()=>Date.now(),ff="system",hf=null,mf=null,gf=null,bf=60,yf=null;class vf{static get now(){return df}static set now(t){df=t}static set defaultZone(t){ff=t}static get defaultZone(){return uf(ff,qd.instance)}static get defaultLocale(){return hf}static set defaultLocale(t){hf=t}static get defaultNumberingSystem(){return mf}static set defaultNumberingSystem(t){mf=t}static get defaultOutputCalendar(){return gf}static set defaultOutputCalendar(t){gf=t}static get defaultWeekSettings(){return yf}static set defaultWeekSettings(t){yf=qf(t)}static get twoDigitCutoffYear(){return bf}static set twoDigitCutoffYear(t){bf=t%100}static get throwOnInvalid(){return pf}static set throwOnInvalid(t){pf=t}static resetCaches(){af.resetCache(),Bd.resetCache()}}class kf{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const xf=[0,31,59,90,120,151,181,212,243,273,304,334],wf=[0,31,60,91,121,152,182,213,244,274,305,335];function Ef(t,e){return new kf("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function _f(t,e,n){const o=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const r=o.getUTCDay();return 0===r?7:r}function Of(t,e,n){return n+(Xf(t)?wf:xf)[e-1]}function Sf(t,e){const n=Xf(t)?wf:xf,o=n.findIndex((t=>tth(o,e,n)?(l=o+1,c=1):l=o,{weekYear:l,weekNumber:c,weekday:s,...sh(t)}}function $f(t,e=4,n=1){const{weekYear:o,weekNumber:r,weekday:a}=t,i=Tf(_f(o,1,e),n),s=Yf(o);let l,c=7*r+a-i-7+e;c<1?(l=o-1,c+=Yf(l)):c>s?(l=o+1,c-=Yf(o)):l=o;const{month:u,day:p}=Sf(l,c);return{year:l,month:u,day:p,...sh(t)}}function Af(t){const{year:e,month:n,day:o}=t;return{year:e,ordinal:Of(e,n,o),...sh(t)}}function Nf(t){const{year:e,ordinal:n}=t,{month:o,day:r}=Sf(e,n);return{year:e,month:o,day:r,...sh(t)}}function Lf(t,e){if(!Mf(t.localWeekday)||!Mf(t.localWeekNumber)||!Mf(t.localWeekYear)){if(!Mf(t.weekday)||!Mf(t.weekNumber)||!Mf(t.weekYear))throw new pd("Cannot mix locale-based week fields with ISO-based week fields");return Mf(t.localWeekday)||(t.weekday=t.localWeekday),Mf(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Mf(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Df(t){const e=Rf(t.year),n=zf(t.month,1,12),o=zf(t.day,1,Gf(t.year,t.month));return e?n?!o&&Ef("day",t.day):Ef("month",t.month):Ef("year",t.year)}function If(t){const{hour:e,minute:n,second:o,millisecond:r}=t,a=zf(e,0,23)||24===e&&0===n&&0===o&&0===r,i=zf(n,0,59),s=zf(o,0,59),l=zf(r,0,999);return a?i?s?!l&&Ef("millisecond",r):Ef("second",o):Ef("minute",n):Ef("hour",e)}function Mf(t){return void 0===t}function jf(t){return"number"==typeof t}function Rf(t){return"number"==typeof t&&t%1==0}function Pf(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Hf(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Ff(t,e,n){if(0!==t.length)return t.reduce(((t,o)=>{const r=[e(o),o];return t&&n(t[0],r[0])===t[0]?t:r}),null)[1]}function Vf(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function qf(t){if(null==t)return null;if("object"!=typeof t)throw new fd("Week settings must be an object");if(!zf(t.firstDay,1,7)||!zf(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!zf(t,1,7))))throw new fd("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function zf(t,e,n){return Rf(t)&&t>=e&&t<=n}function Uf(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Wf(t){return Mf(t)||null===t||""===t?void 0:parseInt(t,10)}function Bf(t){return Mf(t)||null===t||""===t?void 0:parseFloat(t)}function Zf(t){if(!Mf(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Jf(t,e,n=!1){const o=10**e;return(n?Math.trunc:Math.round)(t*o)/o}function Xf(t){return t%4==0&&(t%100!=0||t%400==0)}function Yf(t){return Xf(t)?366:365}function Gf(t,e){const n=(o=e-1)-12*Math.floor(o/12)+1;var o;return 2===n?Xf(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Kf(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Qf(t,e,n){return-Tf(_f(t,1,e),n)+e-1}function th(t,e=4,n=1){const o=Qf(t,e,n),r=Qf(t+1,e,n);return(Yf(t)-o+r)/7}function eh(t){return t>99?t:t>vf.twoDigitCutoffYear?1900+t:2e3+t}function nh(t,e,n,o=null){const r=new Date(t),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(a.timeZone=o);const i={timeZoneName:e,...a},s=new Intl.DateTimeFormat(n,i).formatToParts(r).find((t=>"timezonename"===t.type.toLowerCase()));return s?s.value:null}function oh(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const o=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-o:o)}function rh(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new fd(`Invalid unit value ${t}`);return e}function ah(t,e){const n={};for(const o in t)if(Vf(t,o)){const r=t[o];if(null==r)continue;n[e(o)]=rh(r)}return n}function ih(t,e){const n=Math.trunc(Math.abs(t/60)),o=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${Uf(n,2)}:${Uf(o,2)}`;case"narrow":return`${r}${n}${o>0?`:${o}`:""}`;case"techie":return`${r}${Uf(n,2)}${Uf(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function sh(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const lh=["January","February","March","April","May","June","July","August","September","October","November","December"],ch=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],uh=["J","F","M","A","M","J","J","A","S","O","N","D"];function ph(t){switch(t){case"narrow":return[...uh];case"short":return[...ch];case"long":return[...lh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const dh=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fh=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],hh=["M","T","W","T","F","S","S"];function mh(t){switch(t){case"narrow":return[...hh];case"short":return[...fh];case"long":return[...dh];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const gh=["AM","PM"],bh=["Before Christ","Anno Domini"],yh=["BC","AD"],vh=["B","A"];function kh(t){switch(t){case"narrow":return[...vh];case"short":return[...yh];case"long":return[...bh];default:return null}}function xh(t,e){let n="";for(const o of t)o.literal?n+=o.val:n+=e(o.val);return n}const wh={D:yd,DD:vd,DDD:xd,DDDD:wd,t:Ed,tt:_d,ttt:Od,tttt:Sd,T:Td,TT:Cd,TTT:$d,TTTT:Ad,f:Nd,ff:Dd,fff:jd,ffff:Pd,F:Ld,FF:Id,FFF:Rd,FFFF:Hd};class Eh{static create(t,e={}){return new Eh(t,e)}static parseFormat(t){let e=null,n="",o=!1;const r=[];for(let a=0;a0&&r.push({literal:o||/^\s+$/.test(n),val:n}),e=null,n="",o=!o):o||i===e?n+=i:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=i,e=i)}return n.length>0&&r.push({literal:o||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(t){return wh[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return Uf(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(e,n)=>this.loc.extract(t,e,n),a=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",i=(e,o)=>n?function(t,e){return ph(e)[t.month-1]}(t,e):r(o?{month:e}:{month:e,day:"numeric"},"month"),s=(e,o)=>n?function(t,e){return mh(e)[t.weekday-1]}(t,e):r(o?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),l=e=>{const n=Eh.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return kh(e)[t.year<0?0:1]}(t,e):r({era:e},"era");return xh(Eh.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return gh[t.hour<12?0:1]}(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return o?r({day:"numeric"},"day"):this.num(t.day);case"dd":return o?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return o?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return i("short",!0);case"LLLL":return i("long",!0);case"LLLLL":return i("narrow",!0);case"M":return o?r({month:"numeric"},"month"):this.num(t.month);case"MM":return o?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return i("short",!1);case"MMMM":return i("long",!1);case"MMMMM":return i("narrow",!1);case"y":return o?r({year:"numeric"},"year"):this.num(t.year);case"yy":return o?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return l(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=Eh.parseFormat(e),r=o.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]);return xh(o,(t=>e=>{const o=n(e);return o?this.num(t.get(o),e.length):e})(t.shiftTo(...r.map(n).filter((t=>t)))))}}const _h=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Oh(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function Sh(...t){return e=>t.reduce((([t,n,o],r)=>{const[a,i,s]=r(e,o);return[{...t,...a},i||n,s]}),[{},null,1]).slice(0,2)}function Th(t,...e){if(null==t)return[null,null];for(const[n,o]of e){const e=n.exec(t);if(e)return o(e)}return[null,null]}function Ch(...t){return(e,n)=>{const o={};let r;for(r=0;rvoid 0!==t&&(e||t&&u)?-t:t;return[{years:d(Bf(n)),months:d(Bf(o)),weeks:d(Bf(r)),days:d(Bf(a)),hours:d(Bf(i)),minutes:d(Bf(s)),seconds:d(Bf(l),"-0"===l),milliseconds:d(Zf(c),p)}]}const Uh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Wh(t,e,n,o,r,a,i){const s={year:2===e.length?eh(Wf(e)):Wf(e),month:ch.indexOf(n)+1,day:Wf(o),hour:Wf(r),minute:Wf(a)};return i&&(s.second=Wf(i)),t&&(s.weekday=t.length>3?dh.indexOf(t)+1:fh.indexOf(t)+1),s}const Bh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Zh(t){const[,e,n,o,r,a,i,s,l,c,u,p]=t,d=Wh(e,r,o,n,a,i,s);let f;return f=l?Uh[l]:c?0:oh(u,p),[d,new lf(f)]}const Jh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Xh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Yh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Gh(t){const[,e,n,o,r,a,i,s]=t;return[Wh(e,r,o,n,a,i,s),lf.utcInstance]}function Kh(t){const[,e,n,o,r,a,i,s]=t;return[Wh(e,s,n,o,r,a,i),lf.utcInstance]}const Qh=Oh(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Lh),tm=Oh(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Lh),em=Oh(/(\d{4})-?(\d{3})/,Lh),nm=Oh(Nh),om=Sh((function(t,e){return[{year:Rh(t,e),month:Rh(t,e+1,1),day:Rh(t,e+2,1)},null,e+3]}),Ph,Hh,Fh),rm=Sh(Dh,Ph,Hh,Fh),am=Sh(Ih,Ph,Hh,Fh),im=Sh(Ph,Hh,Fh),sm=Sh(Ph),lm=Oh(/(\d{4})-(\d\d)-(\d\d)/,jh),cm=Oh(Mh),um=Sh(Ph,Hh,Fh),pm="Invalid Duration",dm={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},fm={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...dm},hm={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...dm},mm=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],gm=mm.slice(0).reverse();function bm(t,e,n=!1){const o={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new km(o)}function ym(t,e){let n=e.milliseconds??0;for(const o of gm.slice(1))e[o]&&(n+=e[o]*t[o].milliseconds);return n}function vm(t,e){const n=ym(t,e)<0?-1:1;mm.reduceRight(((o,r)=>{if(Mf(e[r]))return o;if(o){const a=e[o]*n,i=t[r][o],s=Math.floor(a/i);e[r]+=s*n,e[o]-=s*i*n}return r}),null),mm.reduce(((n,o)=>{if(Mf(e[o]))return n;if(n){const r=e[n]%1;e[n]-=r,e[o]+=r*t[n][o]}return o}),null)}class km{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?hm:fm;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||af.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return km.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new fd("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new km({values:ah(t,km.normalizeUnit),loc:af.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(jf(t))return km.fromMillis(t);if(km.isDuration(t))return t;if("object"==typeof t)return km.fromObject(t);throw new fd(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return Th(t,[qh,zh])}(t);return n?km.fromObject(n,e):km.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return Th(t,[Vh,sm])}(t);return n?km.fromObject(n,e):km.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new fd("need to specify a reason the Duration is invalid");const n=t instanceof kf?t:new kf(t,e);if(vf.throwOnInvalid)throw new ud(n);return new km({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new dd(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Eh.create(this.loc,n).formatDurationFromString(this,t):pm}toHuman(t={}){if(!this.isValid)return pm;const e=mm.map((e=>{const n=this.values[e];return Mf(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Jf(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},dg.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ym(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=km.fromDurationLike(t),n={};for(const t of mm)(Vf(e.values,t)||Vf(this.values,t))&&(n[t]=e.get(t)+this.get(t));return bm(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=km.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=rh(t(this.values[n],n));return bm(this,{values:e},!0)}get(t){return this[km.normalizeUnit(t)]}set(t){return this.isValid?bm(this,{values:{...this.values,...ah(t,km.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:o}={}){return bm(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:o,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return vm(this.matrix,t),bm(this,{values:t},!0)}rescale(){return this.isValid?bm(this,{values:function(t){const e={};for(const[n,o]of Object.entries(t))0!==o&&(e[n]=o);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>km.normalizeUnit(t)));const e={},n={},o=this.toObject();let r;for(const a of mm)if(t.indexOf(a)>=0){r=a;let t=0;for(const e in n)t+=this.matrix[e][a]*n[e],n[e]=0;jf(o[a])&&(t+=o[a]);const i=Math.trunc(t);e[a]=i,n[a]=(1e3*t-1e3*i)/1e3}else jf(o[a])&&(n[a]=o[a]);for(const t in n)0!==n[t]&&(e[r]+=t===r?n[t]:n[t]/this.matrix[r][t]);return vm(this.matrix,e),bm(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return bm(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const o of mm)if(e=this.values[o],n=t.values[o],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const xm="Invalid Interval";class wm{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new fd("need to specify a reason the Interval is invalid");const n=t instanceof kf?t:new kf(t,e);if(vf.throwOnInvalid)throw new cd(n);return new wm({invalid:n})}static fromDateTimes(t,e){const n=fg(t),o=fg(e),r=function(t,e){return t&&t.isValid?e&&e.isValid?et}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?wm.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(fg).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:o}=this,r=0;for(;o+this.e?this.e:t;n.push(wm.fromDateTimes(o,a)),o=a,r+=1}return n}splitBy(t){const e=km.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:o}=this,r=1;const a=[];for(;ot*r)));n=+t>+this.e?this.e:t,a.push(wm.fromDateTimes(o,n)),o=n,r+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e=n?null:wm.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.st.e?this.e:t.e;return wm.fromDateTimes(e,n)}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const o=[],r=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),a=Array.prototype.concat(...r).sort(((t,e)=>t.time-e.time));for(const t of a)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&o.push(wm.fromDateTimes(e,t.time)),e=null);return wm.merge(o)}difference(...t){return wm.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:xm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=yd,e={}){return this.isValid?Eh.create(this.s.loc.clone(e),t).formatInterval(this):xm}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:xm}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:xm}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:xm}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:xm}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):km.invalid(this.invalidReason)}mapEndpoints(t){return wm.fromDateTimes(t(this.s),t(this.e))}}class Em{static hasDST(t=vf.defaultZone){const e=dg.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Bd.isValidZone(t)}static normalizeZone(t){return uf(t,vf.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||af.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||af.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||af.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||af.create(e,n,r)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null,outputCalendar:r="gregory"}={}){return(o||af.create(e,n,r)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null}={}){return(o||af.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:o=null}={}){return(o||af.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return af.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return af.create(e,null,"gregory").eras(t)}static features(){return{relative:Pf(),localeWeek:Hf()}}}function _m(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(e)-n(t);return Math.floor(km.fromMillis(o).as("days"))}const Om={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Sm={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Tm=Om.hanidec.replace(/[\[|\]]/g,"").split("");function Cm({numberingSystem:t},e=""){return new RegExp(`${Om[t||"latn"]}${e}`)}function $m(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n=n&&o<=r&&(e+=o-n)}}return parseInt(e,10)}return e}(t))}}const Am=`[ ${String.fromCharCode(160)}]`,Nm=new RegExp(Am,"g");function Lm(t){return t.replace(/\./g,"\\.?").replace(Nm,Am)}function Dm(t){return t.replace(/\./g,"").replace(Nm," ").toLowerCase()}function Im(t,e){return null===t?null:{regex:RegExp(t.map(Lm).join("|")),deser:([n])=>t.findIndex((t=>Dm(n)===Dm(t)))+e}}function Mm(t,e){return{regex:t,deser:([,t,e])=>oh(t,e),groups:e}}function jm(t){return{regex:t,deser:([t])=>t}}const Rm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Pm=null;function Hm(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Vm(Eh.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function Fm(t,e,n){const o=Hm(Eh.parseFormat(n),t),r=o.map((e=>function(t,e){const n=Cm(e),o=Cm(e,"{2}"),r=Cm(e,"{3}"),a=Cm(e,"{4}"),i=Cm(e,"{6}"),s=Cm(e,"{1,2}"),l=Cm(e,"{1,3}"),c=Cm(e,"{1,6}"),u=Cm(e,"{1,9}"),p=Cm(e,"{2,4}"),d=Cm(e,"{4,6}"),f=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},h=(h=>{if(t.literal)return f(h);switch(h.val){case"G":return Im(e.eras("short"),0);case"GG":return Im(e.eras("long"),0);case"y":return $m(c);case"yy":case"kk":return $m(p,eh);case"yyyy":case"kkkk":return $m(a);case"yyyyy":return $m(d);case"yyyyyy":return $m(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return $m(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return $m(o);case"MMM":return Im(e.months("short",!0),1);case"MMMM":return Im(e.months("long",!0),1);case"LLL":return Im(e.months("short",!1),1);case"LLLL":return Im(e.months("long",!1),1);case"o":case"S":return $m(l);case"ooo":case"SSS":return $m(r);case"u":return jm(u);case"uu":return jm(s);case"uuu":case"E":case"c":return $m(n);case"a":return Im(e.meridiems(),0);case"EEE":return Im(e.weekdays("short",!1),1);case"EEEE":return Im(e.weekdays("long",!1),1);case"ccc":return Im(e.weekdays("short",!0),1);case"cccc":return Im(e.weekdays("long",!0),1);case"Z":case"ZZ":return Mm(new RegExp(`([+-]${s.source})(?::(${o.source}))?`),2);case"ZZZ":return Mm(new RegExp(`([+-]${s.source})(${o.source})?`),2);case"z":return jm(/[a-z_+-/]{1,256}?/i);case" ":return jm(/[^\S\n\r]/);default:return f(h)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return h.token=t,h}(e,t))),a=r.find((t=>t.invalidReason));if(a)return{input:e,tokens:o,invalidReason:a.invalidReason};{const[t,n]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,t]}(r),a=RegExp(t,"i"),[i,s]=function(t,e,n){const o=t.match(e);if(o){const t={};let e=1;for(const r in n)if(Vf(n,r)){const a=n[r],i=a.groups?a.groups+1:1;!a.literal&&a.token&&(t[a.token.val[0]]=a.deser(o.slice(e,e+i))),e+=i}return[o,t]}return[o,{}]}(e,a,n),[l,c,u]=s?function(t){let e,n=null;return Mf(t.z)||(n=Bd.create(t.z)),Mf(t.Z)||(n||(n=new lf(t.Z)),e=t.Z),Mf(t.q)||(t.M=3*(t.q-1)+1),Mf(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Mf(t.u)||(t.S=Zf(t.u)),[Object.keys(t).reduce(((e,n)=>{const o=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return o&&(e[o]=t[n]),e}),{}),n,e]}(s):[null,null,void 0];if(Vf(s,"a")&&Vf(s,"H"))throw new pd("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:a,rawMatches:i,matches:s,result:l,zone:c,specificOffset:u}}}function Vm(t,e){if(!t)return null;const n=Eh.create(e,t).dtFormatter((Pm||(Pm=dg.fromMillis(1555555555555)),Pm)),o=n.formatToParts(),r=n.resolvedOptions();return o.map((e=>function(t,e,n){const{type:o,value:r}=t;if("literal"===o){const t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}const a=e[o];let i=o;"hour"===o&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let s=Rm[i];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(e,t,r)))}const qm="Invalid DateTime",zm=864e13;function Um(t){return new kf("unsupported zone",`the zone "${t.name}" is not supported`)}function Wm(t){return null===t.weekData&&(t.weekData=Cf(t.c)),t.weekData}function Bm(t){return null===t.localWeekData&&(t.localWeekData=Cf(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Zm(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new dg({...n,...e,old:n})}function Jm(t,e,n){let o=t-60*e*1e3;const r=n.offset(o);if(e===r)return[o,e];o-=60*(r-e)*1e3;const a=n.offset(o);return r===a?[o,r]:[t-60*Math.min(r,a)*1e3,Math.max(r,a)]}function Xm(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ym(t,e,n){return Jm(Kf(t),e,n)}function Gm(t,e){const n=t.o,o=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),a={...t.c,year:o,month:r,day:Math.min(t.c.day,Gf(o,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},i=km.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Kf(a);let[l,c]=Jm(s,n,t.zone);return 0!==i&&(l+=i,c=t.zone.offset(l)),{ts:l,o:c}}function Km(t,e,n,o,r,a){const{setZone:i,zone:s}=n;if(t&&0!==Object.keys(t).length||e){const o=e||s,r=dg.fromObject(t,{...n,zone:o,specificOffset:a});return i?r:r.setZone(s)}return dg.invalid(new kf("unparsable",`the input "${r}" can't be parsed as ${o}`))}function Qm(t,e,n=!0){return t.isValid?Eh.create(af.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function tg(t,e){const n=t.c.year>9999||t.c.year<0;let o="";return n&&t.c.year>=0&&(o+="+"),o+=Uf(t.c.year,n?6:4),e?(o+="-",o+=Uf(t.c.month),o+="-",o+=Uf(t.c.day)):(o+=Uf(t.c.month),o+=Uf(t.c.day)),o}function eg(t,e,n,o,r,a){let i=Uf(t.c.hour);return e?(i+=":",i+=Uf(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(i+=":")):i+=Uf(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(i+=Uf(t.c.second),0===t.c.millisecond&&o||(i+=".",i+=Uf(t.c.millisecond,3))),r&&(t.isOffsetFixed&&0===t.offset&&!a?i+="Z":t.o<0?(i+="-",i+=Uf(Math.trunc(-t.o/60)),i+=":",i+=Uf(Math.trunc(-t.o%60))):(i+="+",i+=Uf(Math.trunc(t.o/60)),i+=":",i+=Uf(Math.trunc(t.o%60)))),a&&(i+="["+t.zone.ianaName+"]"),i}const ng={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},og={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rg={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ag=["year","month","day","hour","minute","second","millisecond"],ig=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sg=["year","ordinal","hour","minute","second","millisecond"];function lg(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new dd(t);return e}(t)}}function cg(t,e){const n=uf(e.zone,vf.defaultZone),o=af.fromObject(e),r=vf.now();let a,i;if(Mf(t.year))a=r;else{for(const e of ag)Mf(t[e])&&(t[e]=ng[e]);const e=Df(t)||If(t);if(e)return dg.invalid(e);const o=n.offset(r);[a,i]=Ym(t,o,n)}return new dg({ts:a,zone:n,loc:o,o:i})}function ug(t,e,n){const o=!!Mf(n.round)||n.round,r=(t,r)=>(t=Jf(t,o||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,r)),a=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return r(a(n.unit),n.unit);for(const t of n.units){const e=a(t);if(Math.abs(e)>=1)return r(e,t)}return r(t>e?-0:0,n.units[n.units.length-1])}function pg(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class dg{constructor(t){const e=t.zone||vf.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new kf("invalid input"):null)||(e.isValid?null:Um(e));this.ts=Mf(t.ts)?vf.now():t.ts;let o=null,r=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[o,r]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);o=Xm(this.ts,t),n=Number.isNaN(o.year)?new kf("invalid input"):null,o=n?null:o,r=n?null:t}this._zone=e,this.loc=t.loc||af.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=r,this.isLuxonDateTime=!0}static now(){return new dg({})}static local(){const[t,e]=pg(arguments),[n,o,r,a,i,s,l]=e;return cg({year:n,month:o,day:r,hour:a,minute:i,second:s,millisecond:l},t)}static utc(){const[t,e]=pg(arguments),[n,o,r,a,i,s,l]=e;return t.zone=lf.utcInstance,cg({year:n,month:o,day:r,hour:a,minute:i,second:s,millisecond:l},t)}static fromJSDate(t,e={}){const n=(o=t,"[object Date]"===Object.prototype.toString.call(o)?t.valueOf():NaN);var o;if(Number.isNaN(n))return dg.invalid("invalid input");const r=uf(e.zone,vf.defaultZone);return r.isValid?new dg({ts:n,zone:r,loc:af.fromObject(e)}):dg.invalid(Um(r))}static fromMillis(t,e={}){if(jf(t))return t<-zm||t>zm?dg.invalid("Timestamp out of range"):new dg({ts:t,zone:uf(e.zone,vf.defaultZone),loc:af.fromObject(e)});throw new fd(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(jf(t))return new dg({ts:1e3*t,zone:uf(e.zone,vf.defaultZone),loc:af.fromObject(e)});throw new fd("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=uf(e.zone,vf.defaultZone);if(!n.isValid)return dg.invalid(Um(n));const o=af.fromObject(e),r=ah(t,lg),{minDaysInFirstWeek:a,startOfWeek:i}=Lf(r,o),s=vf.now(),l=Mf(e.specificOffset)?n.offset(s):e.specificOffset,c=!Mf(r.ordinal),u=!Mf(r.year),p=!Mf(r.month)||!Mf(r.day),d=u||p,f=r.weekYear||r.weekNumber;if((d||c)&&f)throw new pd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&c)throw new pd("Can't mix ordinal dates with month/day");const h=f||r.weekday&&!d;let m,g,b=Xm(s,l);h?(m=ig,g=og,b=Cf(b,a,i)):c?(m=sg,g=rg,b=Af(b)):(m=ag,g=ng);let y=!1;for(const t of m)Mf(r[t])?r[t]=y?g[t]:b[t]:y=!0;const v=h?function(t,e=4,n=1){const o=Rf(t.weekYear),r=zf(t.weekNumber,1,th(t.weekYear,e,n)),a=zf(t.weekday,1,7);return o?r?!a&&Ef("weekday",t.weekday):Ef("week",t.weekNumber):Ef("weekYear",t.weekYear)}(r,a,i):c?function(t){const e=Rf(t.year),n=zf(t.ordinal,1,Yf(t.year));return e?!n&&Ef("ordinal",t.ordinal):Ef("year",t.year)}(r):Df(r),k=v||If(r);if(k)return dg.invalid(k);const x=h?$f(r,a,i):c?Nf(r):r,[w,E]=Ym(x,l,n),_=new dg({ts:w,zone:n,o:E,loc:o});return r.weekday&&d&&t.weekday!==_.weekday?dg.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${_.toISO()}`):_}static fromISO(t,e={}){const[n,o]=function(t){return Th(t,[Qh,om],[tm,rm],[em,am],[nm,im])}(t);return Km(n,o,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,o]=function(t){return Th(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Bh,Zh])}(t);return Km(n,o,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,o]=function(t){return Th(t,[Jh,Gh],[Xh,Gh],[Yh,Kh])}(t);return Km(n,o,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Mf(t)||Mf(e))throw new fd("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:r=null}=n,a=af.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),[i,s,l,c]=function(t,e,n){const{result:o,zone:r,specificOffset:a,invalidReason:i}=Fm(t,e,n);return[o,r,a,i]}(a,t,e);return c?dg.invalid(c):Km(i,s,n,`format ${e}`,t,l)}static fromString(t,e,n={}){return dg.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,o]=function(t){return Th(t,[lm,om],[cm,um])}(t);return Km(n,o,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new fd("need to specify a reason the DateTime is invalid");const n=t instanceof kf?t:new kf(t,e);if(vf.throwOnInvalid)throw new ld(n);return new dg({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=Vm(t,af.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return Hm(Eh.parseFormat(t),af.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Wm(this).weekYear:NaN}get weekNumber(){return this.isValid?Wm(this).weekNumber:NaN}get weekday(){return this.isValid?Wm(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Bm(this).weekday:NaN}get localWeekNumber(){return this.isValid?Bm(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Bm(this).weekYear:NaN}get ordinal(){return this.isValid?Af(this.c).ordinal:NaN}get monthShort(){return this.isValid?Em.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Em.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Em.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Em.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Kf(this.c),o=this.zone.offset(n-t),r=this.zone.offset(n+t),a=this.zone.offset(n-o*e),i=this.zone.offset(n-r*e);if(a===i)return[this];const s=n-a*e,l=n-i*e,c=Xm(s,a),u=Xm(l,i);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[Zm(this,{ts:s}),Zm(this,{ts:l})]:[this]}get isInLeapYear(){return Xf(this.year)}get daysInMonth(){return Gf(this.year,this.month)}get daysInYear(){return this.isValid?Yf(this.year):NaN}get weeksInWeekYear(){return this.isValid?th(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?th(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:o}=Eh.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:o}}toUTC(t=0,e={}){return this.setZone(lf.instance(t),e)}toLocal(){return this.setZone(vf.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=uf(t,vf.defaultZone)).equals(this.zone))return this;if(t.isValid){let o=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[o]=Ym(n,e,t)}return Zm(this,{ts:o,zone:t})}return dg.invalid(Um(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Zm(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=ah(t,lg),{minDaysInFirstWeek:n,startOfWeek:o}=Lf(e,this.loc),r=!Mf(e.weekYear)||!Mf(e.weekNumber)||!Mf(e.weekday),a=!Mf(e.ordinal),i=!Mf(e.year),s=!Mf(e.month)||!Mf(e.day),l=i||s,c=e.weekYear||e.weekNumber;if((l||a)&&c)throw new pd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new pd("Can't mix ordinal dates with month/day");let u;r?u=$f({...Cf(this.c,n,o),...e},n,o):Mf(e.ordinal)?(u={...this.toObject(),...e},Mf(e.day)&&(u.day=Math.min(Gf(u.year,u.month),u.day))):u=Nf({...Af(this.c),...e});const[p,d]=Ym(u,this.o,this.zone);return Zm(this,{ts:p,o:d})}plus(t){return this.isValid?Zm(this,Gm(this,km.fromDurationLike(t))):this}minus(t){return this.isValid?Zm(this,Gm(this,km.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},o=km.normalizeUnit(t);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===o)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;ethis.valueOf(),i=function(t,e,n,o){let[r,a,i,s]=function(t,e,n){const o=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=_m(t,e);return(n-n%7)/7}],["days",_m]],r={},a=t;let i,s;for(const[l,c]of o)n.indexOf(l)>=0&&(i=l,r[l]=c(t,e),s=a.plus(r),s>e?(r[l]--,(t=a.plus(r))>e&&(s=t,r[l]--,t=a.plus(r))):t=s);return[t,r,s,i]}(t,e,n);const l=e-r,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(i0?km.fromMillis(l,o).shiftTo(...c).plus(u):u}(a?this:t,a?t:this,r,o);var s;return a?i.negate():i}diffNow(t="milliseconds",e={}){return this.diff(dg.now(),t,e)}until(t){return this.isValid?wm.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const o=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e,n)<=o&&o<=r.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||dg.fromObject({},{zone:this.zone}),n=t.padding?thist.valueOf()),Math.min)}static max(...t){if(!t.every(dg.isDateTime))throw new fd("max requires all arguments be DateTimes");return Ff(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:o=null,numberingSystem:r=null}=n;return Fm(af.fromOpts({locale:o,numberingSystem:r,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return dg.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return yd}static get DATE_MED(){return vd}static get DATE_MED_WITH_WEEKDAY(){return kd}static get DATE_FULL(){return xd}static get DATE_HUGE(){return wd}static get TIME_SIMPLE(){return Ed}static get TIME_WITH_SECONDS(){return _d}static get TIME_WITH_SHORT_OFFSET(){return Od}static get TIME_WITH_LONG_OFFSET(){return Sd}static get TIME_24_SIMPLE(){return Td}static get TIME_24_WITH_SECONDS(){return Cd}static get TIME_24_WITH_SHORT_OFFSET(){return $d}static get TIME_24_WITH_LONG_OFFSET(){return Ad}static get DATETIME_SHORT(){return Nd}static get DATETIME_SHORT_WITH_SECONDS(){return Ld}static get DATETIME_MED(){return Dd}static get DATETIME_MED_WITH_SECONDS(){return Id}static get DATETIME_MED_WITH_WEEKDAY(){return Md}static get DATETIME_FULL(){return jd}static get DATETIME_FULL_WITH_SECONDS(){return Rd}static get DATETIME_HUGE(){return Pd}static get DATETIME_HUGE_WITH_SECONDS(){return Hd}}function fg(t){if(dg.isDateTime(t))return t;if(t&&t.valueOf&&jf(t.valueOf()))return dg.fromJSDate(t);if(t&&"object"==typeof t)return dg.fromObject(t);throw new fd(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function hg(t){(t||document).querySelectorAll(".time-ago[data-timestamp]").forEach((t=>{const e=dg.fromISO(t.getAttribute("data-timestamp"));t.innerText=e.toRelative(),t.getAttribute("title")||(t.dataset.bsToggle="tooltip",t.dataset.bsPlacement="top",t.dataset.bsTitle=e.toLocaleString(dg.DATETIME_FULL))}))}!function t(){hg(),window.setTimeout(t,6e4)}();var mg=__webpack_require__(37);const gg={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class bg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||gg,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o{let[e,o]=t;for(let t=0;t{let[o,r]=e;for(let e=0;e{t=n,e=o}));return n.resolve=t,n.reject=e,n}function xg(t){return null==t?"":""+t}const wg=/###/g;function Eg(t,e,n){function o(t){return t&&t.indexOf("###")>-1?t.replace(wg,"."):t}function r(){return!t||"string"==typeof t}const a="string"!=typeof e?e:e.split(".");let i=0;for(;i":">",'"':""","'":"'","/":"/"};function $g(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(t=>Cg[t])):t}const Ag=[" ",",","?","!",";"],Ng=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20);function Lg(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let t=0;t-1&&i0?t.replace("_","-"):t}class Ig extends vg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,e],n&&(Array.isArray(n)?i.push(...n):"string"==typeof n&&r?i.push(...n.split(r)):i.push(n)));const s=Og(this.data,i);return!s&&!e&&!n&&t.indexOf(".")>-1&&(t=i[0],e=i[1],n=i.slice(2).join(".")),s||!a||"string"!=typeof n?s:Lg(this.data&&this.data[t]&&this.data[t][e],n,r)}addResource(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let i=[t,e];n&&(i=i.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(i=t.split("."),o=e,e=i[1]),this.addNamespaces(e),_g(this.data,i,o),r.silent||this.emit("added",t,e,n,o)}addResources(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(t,e,o,n[o],{silent:!0});o.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,o,r){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[t,e];t.indexOf(".")>-1&&(i=t.split("."),o=n,n=e,e=i[1]),this.addNamespaces(e);let s=Og(this.data,i)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Sg(s,n,r):s={...s,...n},_g(this.data,i,s),a.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var Mg={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,o,r))})),e}};const jg={};class Rg extends vg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(t,e,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{e[t]&&(n[t]=e[t])}))}(0,t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=yg.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,n){e=e||"",n=n||"";const o=Ag.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===o.length)return!0;const r=Ng.getRegExp(`(${o.map((t=>"?"===t?"\\?":t)).join("|")})`);let a=!r.test(t);if(!a){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(a=!0)}return a}(t,n,o));if(a&&!i){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const a=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift()),t=a.join(o)}return"string"==typeof r&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:a,namespaces:i}=this.extractFromKey(t[t.length-1],e),s=i[i.length-1],l=e.lng||this.language,c=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const t=e.nsSeparator||this.options.nsSeparator;return o?{res:`${s}${t}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(e)}:`${s}${t}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(e)}:a}const u=this.resolve(t,e);let p=u&&u.res;const d=u&&u.usedKey||a,f=u&&u.exactUsedKey||a,h=Object.prototype.toString.apply(p),m=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&p&&"string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof m||"[object Array]"!==h)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,p,{...e,ns:i}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(u.res=t,u.usedParams=this.getUsedParamsDetails(e),u):t}if(r){const t="[object Array]"===h,n=t?[]:{},o=t?f:d;for(const t in p)if(Object.prototype.hasOwnProperty.call(p,t)){const a=`${o}${r}${t}`;n[t]=this.translate(a,{...e,joinArrays:!1,ns:i}),n[t]===a&&(n[t]=p[t])}p=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)p=p.join(m),p&&(p=this.extendTranslation(p,t,e,n));else{let o=!1,i=!1;const c=void 0!==e.count&&"string"!=typeof e.count,d=Rg.hasDefaultValue(e),f=c?this.pluralResolver.getSuffix(l,e.count,e):"",h=e.ordinal&&c?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",m=c&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${f}`]||e[`defaultValue${h}`]||e.defaultValue;!this.isValidLookup(p)&&d&&(o=!0,p=g),this.isValidLookup(p)||(i=!0,p=a);const b=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:p,y=d&&g!==p&&this.options.updateMissing;if(i||o||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,a,y?g:p),r){const t=this.resolve(a,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e{const r=d&&o!==p?o:b;this.options.missingKeyHandler?this.options.missingKeyHandler(t,s,n,r,y,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,s,n,r,y,e),this.emit("missingKey",t,s,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);m&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{o([t],a+n,e[`defaultValue${n}`]||g)}))})):o(t,a,g))}p=this.extendTranslation(p,t,e,u,n),i&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${a}`),(i||o)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,o?p:void 0):this.options.parseMissingKeyHandler(p))}return o?(u.res=p,u.usedParams=this.getUsedParamsDetails(e),u):p}extendTranslation(t,e,n,o,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(i){const e=t.match(this.interpolator.nestingRegexp);s=e&&e.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,n.lng||this.language,n),i){const e=t.match(this.interpolator.nestingRegexp);s<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&o&&o.res&&(n.lng=o.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,o=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const s=this.extractFromKey(t,i),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==i.count&&"string"!=typeof i.count,p=u&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==i.context&&("string"==typeof i.context||"number"==typeof i.context)&&""!==i.context,f=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);c.forEach((t=>{this.isValidLookup(e)||(a=t,!jg[`${f[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(jg[`${f[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((n=>{if(this.isValidLookup(e))return;r=n;const a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,n,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(n,i.count,i));const e=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(a.push(l+t),i.ordinal&&0===t.indexOf(o)&&a.push(l+t.replace(o,this.options.pluralSeparator)),p&&a.push(l+e)),d){const n=`${l}${this.options.contextSeparator}${i.context}`;a.push(n),u&&(a.push(n+t),i.ordinal&&0===t.indexOf(o)&&a.push(n+t.replace(o,this.options.pluralSeparator)),p&&a.push(n+e))}}let s;for(;s=a.pop();)this.isValidLookup(e)||(o=s,e=this.getResource(n,t,s,i))})))}))})),{res:e,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,o):this.resourceStore.getResource(t,e,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&"string"!=typeof t.replace;let o=n?t.replace:t;if(n&&void 0!==t.count&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const t of e)delete o[t]}return o}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}function Pg(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Hg{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yg.create("languageUtils")}getScriptPartFromCode(t){if(!(t=Dg(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=Dg(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if("string"==typeof t&&t.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pg(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=Pg(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=Pg(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),o=[],r=t=>{t&&(this.isSupportedCode(t)?o.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return"string"==typeof t&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):"string"==typeof t&&r(this.formatLanguageCode(t)),n.forEach((t=>{o.indexOf(t)<0&&r(this.formatLanguageCode(t))})),o}}let Fg=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vg={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};const qg=["v1","v2","v3"],zg=["v4"],Ug={zero:0,one:1,two:2,few:3,many:4,other:5};class Wg{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=yg.create("pluralResolver"),this.options.compatibilityJSON&&!zg.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const t={};return Fg.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:Vg[e.fc]}}))})),t}()}addRule(t,e){this.rules[t]=e}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dg("dev"===t?"en":t),{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>Ug[t]-Ug[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(e)}`:this.getSuffixRetroCompatible(o,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let o=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===o?o="plural":1===o&&(o=""));const r=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?`_plural_${o.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!qg.includes(this.options.compatibilityJSON)}}function Bg(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=function(t,e,n){const o=Og(t,n);return void 0!==o?o:Og(e,n)}(t,e,n);return!a&&r&&"string"==typeof n&&(a=Lg(t,n,o),void 0===a&&(a=Lg(e,n,o))),a}class Zg{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yg.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const e=t.interpolation;this.escape=void 0!==e.escape?e.escape:$g,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?Tg(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?Tg(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?Tg(e.nestingPrefix):e.nestingPrefixEscaped||Tg("$t("),this.nestingSuffix=e.nestingSuffix?Tg(e.nestingSuffix):e.nestingSuffixEscaped||Tg(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,o){let r,a,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(t){return t.replace(/\$/g,"$$$$")}const c=t=>{if(t.indexOf(this.formatSeparator)<0){const r=Bg(e,s,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),a=r.shift().trim(),i=r.join(this.formatSeparator).trim();return this.format(Bg(e,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...o,...e,interpolationkey:a})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>l(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?l(this.escape(t)):l(t)}].forEach((e=>{for(i=0;r=e.regex.exec(t);){const n=r[1].trim();if(a=c(n),void 0===a)if("function"==typeof u){const e=u(t,r,o);a="string"==typeof e?e:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))a="";else{if(p){a=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),a=""}else"string"==typeof a||this.useRawValueToEscape||(a=xg(a));const s=e.safeValue(a);if(t=t.replace(r[0],s),p?(e.regex.lastIndex+=a.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),t}nest(t,e){let n,o,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(t,e){const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const o=t.split(new RegExp(`${n}[ ]*{`));let a=`{${o[1]}`;t=o[0],a=this.interpolate(a,r);const i=a.match(/'/g),s=a.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{r=JSON.parse(a),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${a}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t}for(;n=this.nestingRegexp.exec(t);){let s=[];r={...a},r=r.replace&&"string"!=typeof r.replace?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),s=t,l=!0}if(o=e(i.call(this,n[1].trim(),r),r),o&&n[0]===t&&"string"!=typeof o)return o;"string"!=typeof o&&(o=xg(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),o=""),l&&(o=s.reduce(((t,e)=>this.format(t,e,a.lng,{...a,interpolationkey:n[1].trim()})),o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}function Jg(t){const e={};return function(n,o,r){const a=o+JSON.stringify(r);let i=e[a];return i||(i=t(Dg(o),r),e[a]=i),i(n)}}class Xg{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yg.create("formatter"),this.options=t,this.formats={number:Jg(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:Jg(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:Jg(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:Jg(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:Jg(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=Jg(e)}format(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator).reduce(((t,e)=>{const{formatName:r,formatOptions:a}=function(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(!t)return;const[e,...o]=t.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,"");n[e.trim()]||(n[e.trim()]=r),"false"===r&&(n[e.trim()]=!1),"true"===r&&(n[e.trim()]=!0),isNaN(r)||(n[e.trim()]=parseInt(r,10))}))}return{formatName:e,formatOptions:n}}(e);if(this.formats[r]){let e=t;try{const i=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},s=i.locale||i.lng||o.locale||o.lng||n;e=this.formats[r](t,s,{...a,...o,...i})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t);return r}}class Yg extends vg{constructor(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=yg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,e,n,o){const r={},a={},i={},s={};return t.forEach((t=>{let o=!0;e.forEach((e=>{const i=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===a[i]&&(a[i]=!0):(this.state[i]=1,o=!1,void 0===a[i]&&(a[i]=!0),void 0===r[i]&&(r[i]=!0),void 0===s[e]&&(s[e]=!0)))})),o||(i[t]=!0)})),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(t,e,n){const o=t.split("|"),r=o[0],a=o[1];e&&this.emit("failedLoading",r,a,e),n&&this.store.addResourceBundle(r,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2;const i={};this.queue.forEach((n=>{!function(t,e,n){const{obj:o,k:r}=Eg(t,e,Object);o[r]=o[r]||[],o[r].push(n)}(n.loaded,[r],a),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{i[t]||(i[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===i[t][e]&&(i[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:o,wait:r,callback:a});this.readingCalls++;const i=(i,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}i&&s&&o{this.read.call(this,t,e,n,o+1,2*r,a)}),r):a(i,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(t,e,i);try{const n=s(t,e);n&&"function"==typeof n.then?n.then((t=>i(null,t))).catch(i):i(null,n)}catch(t){i(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);const r=this.queueLoad(t,e,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,((n,a)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${o} failed`,n),!n&&a&&this.logger.log(`${e}loaded namespace ${r} for language ${o}`,a),this.loaded(t,n,a)}))}saveMissing(t,e,n,o,r){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...a,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,o,s):l(t,e,n,o),r&&"function"==typeof r.then?r.then((t=>i(null,t))).catch(i):i(null,r)}catch(t){i(t)}else l(t,e,n,o,i,s)}t&&t[0]&&this.store.addResource(t[0],e,n,o)}}}function Gg(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if("object"==typeof t[1]&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kg(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Qg(){}class tb extends vg{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Kg(t),this.services={},this.logger=yg,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const o=Gg();function r(t){return t?"function"==typeof t?new t:t:null}if(this.options={...o,...this.options,...Kg(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?yg.init(r(this.modules.logger),this.options):yg.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Xg);const n=new Hg(this.options);this.store=new Ig(this.options.resources,this.options);const a=this.services;a.logger=yg,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Wg(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(a.formatter=r(e),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Zg(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Yg(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=Qg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const a=kg(),i=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),a}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qg;const n="string"==typeof t?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],o=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>o(t))),this.options.preload&&this.options.preload.forEach((t=>o(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const o=kg();return t||(t=this.languages),e||(e=this.options.ns),n||(n=Qg),this.services.backendConnector.reload(t,e,(t=>{o.resolve(),n(t)})),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&Mg.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const o=kg();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},a=(t,a)=>{a?(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,o.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},i=e=>{t||e||!this.services.languageDetector||(e=[]);const n="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{a(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect()),o}getFixedT(t,e,n){var o=this;const r=function(t,e){let a;if("object"!=typeof e){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l`${a.keyPrefix}${c}${t}`)):a.keyPrefix?`${a.keyPrefix}${c}${t}`:t,o.t(u,a)};return"string"==typeof t?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=e.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||2===n};if(e.precheck){const t=e.precheck(this,a);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,t)||o&&!a(r,t)))}loadNamespaces(t,e){const n=kg();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=kg();"string"==typeof t&&(t=[t]);const o=this.options.preload||[],r=t.filter((t=>o.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=o.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new Hg(Gg());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new tb(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qg;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},r=new tb(o);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new Ig(this.store.data,o),r.services.resourceStore=r.store),r.translator=new Rg(r.services,o),r.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o=1?t.alternateFetch:void 0;try{fb(e,i,o,s)}catch(t){if(!a||0===Object.keys(a).length||!t.message||t.message.indexOf("not implemented")<0)return o(t);try{Object.keys(a).forEach((function(t){delete i[t]})),fb(e,i,o,s),hb=!0}catch(t){o(t)}}}(t,e,n,o):ob()||"function"==typeof ActiveXObject?function(t,e,n,o){n&&"object"===pb(n)&&(n=db("",n).slice(1)),t.queryStringParams&&(e=db(e,t.queryStringParams));try{var r;(r=ab?new ab:new ib("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",e,1),t.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!t.withCredentials,n&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var a=t.customHeaders;if(a="function"==typeof a?a():a)for(var i in a)r.setRequestHeader(i,a[i]);r.onreadystatechange=function(){r.readyState>3&&o(r.status>=400?r.statusText:null,{status:r.status,data:r.responseText})},r.send(n)}catch(t){console&&console.log(t)}}(t,e,n,o):void o(new Error("No fetch and no xhr implementation found!"))};function gb(t){return gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gb(t)}function bb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yb(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.services=e,this.options=n,this.allOptions=o,this.type="backend",this.init(e,n,o)}var e,n;return e=t,n=[{key:"init",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=yb(yb(yb({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,e,n){return kb({},e,n||"")},parseLoadPayload:function(t,e){},request:mb,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval((function(){return e.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(t,e,n){this._readAny(t,t,e,e,n)}},{key:"read",value:function(t,e,n){this._readAny([t],t,[e],e,n)}},{key:"_readAny",value:function(t,e,n,o,r){var a,i=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(t,n)),(s=function(t){return!!t&&"function"==typeof t.then}(a=s)?a:Promise.resolve(a)).then((function(a){if(!a)return r(null,{});var s=i.services.interpolator.interpolate(a,{lng:t.join("+"),ns:n.join("+")});i.loadUrl(s,r,e,o)}))}},{key:"loadUrl",value:function(t,e,n,o){var r=this,a="string"==typeof n?[n]:n,i="string"==typeof o?[o]:o,s=this.options.parseLoadPayload(a,i);this.options.request(this.options,t,s,(function(a,i){if(i&&(i.status>=500&&i.status<600||!i.status))return e("failed loading "+t+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return e("failed loading "+t+"; status code: "+i.status,!1);if(!i&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return e("failed loading "+t+": "+a.message,!0);if(a)return e(a,!1);var s,l;try{s="string"==typeof i.data?r.options.parse(i.data,n,o):i.data}catch(e){l="failed parsing "+t+" to json"}if(l)return e(l,!1);e(null,s)}))}},{key:"create",value:function(t,e,n,o,r){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var i=this.options.parsePayload(e,n,o),s=0,l=[],c=[];t.forEach((function(n){var o=a.options.addPath;"function"==typeof a.options.addPath&&(o=a.options.addPath(n,e));var u=a.services.interpolator.interpolate(o,{lng:n,ns:e});a.options.request(a.options,u,i,(function(e,n){s+=1,l.push(e),c.push(n),s===t.length&&"function"==typeof r&&r(l,c)}))}))}}},{key:"reload",value:function(){var t=this,e=this.services,n=e.backendConnector,o=e.languageUtils,r=e.logger,a=n.language;if(!a||"cimode"!==a.toLowerCase()){var i=[],s=function(t){o.toResolveHierarchy(t).forEach((function(t){i.indexOf(t)<0&&i.push(t)}))};s(a),this.allOptions.preload&&this.allOptions.preload.forEach((function(t){return s(t)})),i.forEach((function(e){t.allOptions.ns.forEach((function(t){n.read(e,t,"read",null,null,(function(o,a){o&&r.warn("loading namespace ".concat(t," for language ").concat(e," failed"),o),!o&&a&&r.log("loaded namespace ".concat(t," for language ").concat(e),a),n.loaded("".concat(e,"|").concat(t),o,a)}))}))}))}}}],n&&vb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();wb.type="backend";const Eb=wb;function _b(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ob(t){return t instanceof _b(t).Element||t instanceof Element}function Sb(t){return t instanceof _b(t).HTMLElement||t instanceof HTMLElement}function Tb(t){return"undefined"!=typeof ShadowRoot&&(t instanceof _b(t).ShadowRoot||t instanceof ShadowRoot)}var Cb=Math.max,$b=Math.min,Ab=Math.round;function Nb(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Lb(){return!/^((?!chrome|android).)*safari/i.test(Nb())}function Db(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),r=1,a=1;e&&Sb(t)&&(r=t.offsetWidth>0&&Ab(o.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ab(o.height)/t.offsetHeight||1);var i=(Ob(t)?_b(t):window).visualViewport,s=!Lb()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/r,c=(o.top+(s&&i?i.offsetTop:0))/a,u=o.width/r,p=o.height/a;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function Ib(t){var e=_b(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Mb(t){return t?(t.nodeName||"").toLowerCase():null}function jb(t){return((Ob(t)?t.ownerDocument:t.document)||window.document).documentElement}function Rb(t){return Db(jb(t)).left+Ib(t).scrollLeft}function Pb(t){return _b(t).getComputedStyle(t)}function Hb(t){var e=Pb(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Fb(t,e,n){void 0===n&&(n=!1);var o,r,a=Sb(e),i=Sb(e)&&function(t){var e=t.getBoundingClientRect(),n=Ab(e.width)/t.offsetWidth||1,o=Ab(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),s=jb(e),l=Db(t,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Mb(e)||Hb(s))&&(c=(o=e)!==_b(o)&&Sb(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Ib(o)),Sb(e)?((u=Db(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=Rb(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Vb(t){var e=Db(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function qb(t){return"html"===Mb(t)?t:t.assignedSlot||t.parentNode||(Tb(t)?t.host:null)||jb(t)}function zb(t){return["html","body","#document"].indexOf(Mb(t))>=0?t.ownerDocument.body:Sb(t)&&Hb(t)?t:zb(qb(t))}function Ub(t,e){var n;void 0===e&&(e=[]);var o=zb(t),r=o===(null==(n=t.ownerDocument)?void 0:n.body),a=_b(o),i=r?[a].concat(a.visualViewport||[],Hb(o)?o:[]):o,s=e.concat(i);return r?s:s.concat(Ub(qb(i)))}function Wb(t){return["table","td","th"].indexOf(Mb(t))>=0}function Bb(t){return Sb(t)&&"fixed"!==Pb(t).position?t.offsetParent:null}function Zb(t){for(var e=_b(t),n=Bb(t);n&&Wb(n)&&"static"===Pb(n).position;)n=Bb(n);return n&&("html"===Mb(n)||"body"===Mb(n)&&"static"===Pb(n).position)?e:n||function(t){var e=/firefox/i.test(Nb());if(/Trident/i.test(Nb())&&Sb(t)&&"fixed"===Pb(t).position)return null;var n=qb(t);for(Tb(n)&&(n=n.host);Sb(n)&&["html","body"].indexOf(Mb(n))<0;){var o=Pb(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}var Jb="top",Xb="bottom",Yb="right",Gb="left",Kb="auto",Qb=[Jb,Xb,Yb,Gb],ty="start",ey="end",ny="viewport",oy="popper",ry=Qb.reduce((function(t,e){return t.concat([e+"-"+ty,e+"-"+ey])}),[]),ay=[].concat(Qb,[Kb]).reduce((function(t,e){return t.concat([e,e+"-"+ty,e+"-"+ey])}),[]),iy=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function sy(t){var e=new Map,n=new Set,o=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&r(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),o}function ly(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}var cy={placement:"bottom",modifiers:[],strategy:"absolute"};function uy(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function by(t){var e,n=t.reference,o=t.element,r=t.placement,a=r?hy(r):null,i=r?my(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case Jb:e={x:s,y:n.y-o.height};break;case Xb:e={x:s,y:n.y+n.height};break;case Yb:e={x:n.x+n.width,y:l};break;case Gb:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=a?gy(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ty:e[c]=e[c]-(n[u]/2-o[u]/2);break;case ey:e[c]=e[c]+(n[u]/2-o[u]/2)}}return e}var yy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vy(t){var e,n=t.popper,o=t.popperRect,r=t.placement,a=t.variation,i=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,p=t.isFixed,d=i.x,f=void 0===d?0:d,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=Gb,k=Jb,x=window;if(c){var w=Zb(n),E="clientHeight",_="clientWidth";w===_b(n)&&"static"!==Pb(w=jb(n)).position&&"absolute"===s&&(E="scrollHeight",_="scrollWidth"),(r===Jb||(r===Gb||r===Yb)&&a===ey)&&(k=Xb,m-=(p&&w===x&&x.visualViewport?x.visualViewport.height:w[E])-o.height,m*=l?1:-1),r!==Gb&&(r!==Jb&&r!==Xb||a!==ey)||(v=Yb,f-=(p&&w===x&&x.visualViewport?x.visualViewport.width:w[_])-o.width,f*=l?1:-1)}var O,S=Object.assign({position:s},c&&yy),T=!0===u?function(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:Ab(n*r)/r||0,y:Ab(o*r)/r||0}}({x:f,y:m},_b(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},S,((O={})[k]=y?"0":"",O[v]=b?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",O)):Object.assign({},S,((e={})[k]=y?m+"px":"",e[v]=b?f+"px":"",e.transform="",e))}const ky={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];Sb(r)&&Mb(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],r=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Sb(o)&&Mb(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]};var xy={left:"right",right:"left",bottom:"top",top:"bottom"};function wy(t){return t.replace(/left|right|bottom|top/g,(function(t){return xy[t]}))}var Ey={start:"end",end:"start"};function _y(t){return t.replace(/start|end/g,(function(t){return Ey[t]}))}function Oy(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Tb(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Sy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ty(t,e,n){return e===ny?Sy(function(t,e){var n=_b(t),o=jb(t),r=n.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;var c=Lb();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:a,height:i,x:s+Rb(t),y:l}}(t,n)):Ob(e)?function(t,e){var n=Db(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Sy(function(t){var e,n=jb(t),o=Ib(t),r=null==(e=t.ownerDocument)?void 0:e.body,a=Cb(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Cb(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Rb(t),l=-o.scrollTop;return"rtl"===Pb(r||n).direction&&(s+=Cb(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(jb(t)))}function Cy(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $y(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Ay(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=void 0===o?t.placement:o,a=n.strategy,i=void 0===a?t.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?ny:c,p=n.elementContext,d=void 0===p?oy:p,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Cy("number"!=typeof g?g:$y(g,Qb)),y=d===oy?"reference":oy,v=t.rects.popper,k=t.elements[h?y:d],x=function(t,e,n,o){var r="clippingParents"===e?function(t){var e=Ub(qb(t)),n=["absolute","fixed"].indexOf(Pb(t).position)>=0&&Sb(t)?Zb(t):t;return Ob(n)?e.filter((function(t){return Ob(t)&&Oy(t,n)&&"body"!==Mb(t)})):[]}(t):[].concat(e),a=[].concat(r,[n]),i=a[0],s=a.reduce((function(e,n){var r=Ty(t,n,o);return e.top=Cb(r.top,e.top),e.right=$b(r.right,e.right),e.bottom=$b(r.bottom,e.bottom),e.left=Cb(r.left,e.left),e}),Ty(t,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Ob(k)?k:k.contextElement||jb(t.elements.popper),l,u,i),w=Db(t.elements.reference),E=by({reference:w,element:v,strategy:"absolute",placement:r}),_=Sy(Object.assign({},v,E)),O=d===oy?_:w,S={top:x.top-O.top+b.top,bottom:O.bottom-x.bottom+b.bottom,left:x.left-O.left+b.left,right:O.right-x.right+b.right},T=t.modifiersData.offset;if(d===oy&&T){var C=T[r];Object.keys(S).forEach((function(t){var e=[Yb,Xb].indexOf(t)>=0?1:-1,n=[Jb,Xb].indexOf(t)>=0?"y":"x";S[t]+=C[n]*e}))}return S}const Ny={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=e.options.placement,b=hy(g),y=l||(b!==g&&h?function(t){if(hy(t)===Kb)return[];var e=wy(t);return[_y(t),e,_y(e)]}(g):[wy(g)]),v=[g].concat(y).reduce((function(t,n){return t.concat(hy(n)===Kb?function(t,e){void 0===e&&(e={});var n=e,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ay:l,u=my(o),p=u?s?ry:ry.filter((function(t){return my(t)===u})):Qb,d=p.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=p);var f=d.reduce((function(e,n){return e[n]=Ay(t,{placement:n,boundary:r,rootBoundary:a,padding:i})[hy(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),k=e.rects.reference,x=e.rects.popper,w=new Map,E=!0,_=v[0],O=0;O=0,A=$?"width":"height",N=Ay(e,{placement:S,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),L=$?C?Yb:Gb:C?Xb:Jb;k[A]>x[A]&&(L=wy(L));var D=wy(L),I=[];if(a&&I.push(N[T]<=0),s&&I.push(N[L]<=0,N[D]<=0),I.every((function(t){return t}))){_=S,E=!1;break}w.set(S,I)}if(E)for(var M=function(t){var e=v.find((function(e){var n=w.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},j=h?3:1;j>0&&"break"!==M(j);j--);e.placement!==_&&(e.modifiersData[o]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ly(t,e,n){return Cb(t,$b(e,n))}const Dy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=Ay(e,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=hy(e.placement),y=my(e.placement),v=!y,k=gy(b),x="x"===k?"y":"x",w=e.modifiersData.popperOffsets,E=e.rects.reference,_=e.rects.popper,O="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(w){if(a){var $,A="y"===k?Jb:Gb,N="y"===k?Xb:Yb,L="y"===k?"height":"width",D=w[k],I=D+g[A],M=D-g[N],j=f?-_[L]/2:0,R=y===ty?E[L]:_[L],P=y===ty?-_[L]:-E[L],H=e.elements.arrow,F=f&&H?Vb(H):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=V[A],z=V[N],U=Ly(0,E[L],F[L]),W=v?E[L]/2-j-U-q-S.mainAxis:R-U-q-S.mainAxis,B=v?-E[L]/2+j+U+z+S.mainAxis:P+U+z+S.mainAxis,Z=e.elements.arrow&&Zb(e.elements.arrow),J=Z?"y"===k?Z.clientTop||0:Z.clientLeft||0:0,X=null!=($=null==T?void 0:T[k])?$:0,Y=D+B-X,G=Ly(f?$b(I,D+W-X-J):I,D,f?Cb(M,Y):M);w[k]=G,C[k]=G-D}if(s){var K,Q="x"===k?Jb:Gb,tt="x"===k?Xb:Yb,et=w[x],nt="y"===x?"height":"width",ot=et+g[Q],rt=et-g[tt],at=-1!==[Jb,Gb].indexOf(b),it=null!=(K=null==T?void 0:T[x])?K:0,st=at?ot:et-E[nt]-_[nt]-it+S.altAxis,lt=at?et+E[nt]+_[nt]-it-S.altAxis:rt,ct=f&&at?function(t,e,n){var o=Ly(t,e,n);return o>n?n:o}(st,et,lt):Ly(f?st:ot,et,f?lt:rt);w[x]=ct,C[x]=ct-et}e.modifiersData[o]=C}},requiresIfExists:["offset"]},Iy={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,r=t.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=hy(n.placement),l=gy(s),c=[Gb,Yb].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(t,e){return Cy("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:$y(t,Qb))}(r.padding,n),p=Vb(a),d="y"===l?Jb:Gb,f="y"===l?Xb:Yb,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=Zb(a),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[d],k=b-p[c]-u[f],x=b/2-p[c]/2+y,w=Ly(v,x,k),E=l;n.modifiersData[o]=((e={})[E]=w,e.centerOffset=w-x,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Oy(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function My(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jy(t){return[Jb,Yb,Xb,Gb].some((function(e){return t[e]>=0}))}var Ry=py({defaultModifiers:[fy,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=by({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:hy(e.placement),variation:my(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,vy(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,vy(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ky,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,o=t.name,r=n.offset,a=void 0===r?[0,0]:r,i=ay.reduce((function(t,n){return t[n]=function(t,e,n){var o=hy(t),r=[Gb,Jb].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[Gb,Yb].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,e.rects,a),t}),{}),s=i[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=i}},Ny,Dy,Iy,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=Ay(e,{elementContext:"reference"}),s=Ay(e,{altBoundary:!0}),l=My(i,o),c=My(s,r,a),u=jy(l),p=jy(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Py="tippy-content",Hy="tippy-backdrop",Fy="tippy-arrow",Vy="tippy-svg-arrow",qy={passive:!0,capture:!0},zy=function(){return document.body};function Uy(t,e,n){if(Array.isArray(t)){var o=t[e];return null==o?Array.isArray(n)?n[e]:n:o}return t}function Wy(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function By(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Zy(t,e){return 0===e?t:function(o){clearTimeout(n),n=setTimeout((function(){t(o)}),e)};var n}function Jy(t){return[].concat(t)}function Xy(t,e){-1===t.indexOf(e)&&t.push(e)}function Yy(t){return[].slice.call(t)}function Gy(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Ky(){return document.createElement("div")}function Qy(t){return["Element","Fragment"].some((function(e){return Wy(t,e)}))}function tv(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function ev(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function nv(t,e,n){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[o](e,n)}))}function ov(t,e){for(var n=e;n;){var o;if(t.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var rv={isTouch:!1},av=0;function iv(){rv.isTouch||(rv.isTouch=!0,window.performance&&document.addEventListener("mousemove",sv))}function sv(){var t=performance.now();t-av<20&&(rv.isTouch=!1,document.removeEventListener("mousemove",sv)),av=t}function lv(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var cv=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),uv=Object.assign({appendTo:zy,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),pv=Object.keys(uv);function dv(t){var e=(t.plugins||[]).reduce((function(e,n){var o,r=n.name,a=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:null!=(o=uv[r])?o:a),e}),{});return Object.assign({},t,e)}function fv(t,e){var n=Object.assign({},e,{content:By(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(dv(Object.assign({},uv,{plugins:e}))):pv).reduce((function(e,n){var o=(t.getAttribute("data-tippy-"+n)||"").trim();if(!o)return e;if("content"===n)e[n]=o;else try{e[n]=JSON.parse(o)}catch(t){e[n]=o}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},uv.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var hv=function(){return"innerHTML"};function mv(t,e){t[hv()]=e}function gv(t){var e=Ky();return!0===t?e.className=Fy:(e.className=Vy,Qy(t)?e.appendChild(t):mv(e,t)),e}function bv(t,e){Qy(e.content)?(mv(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?mv(t,e.content):t.textContent=e.content)}function yv(t){var e=t.firstElementChild,n=Yy(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(Py)})),arrow:n.find((function(t){return t.classList.contains(Fy)||t.classList.contains(Vy)})),backdrop:n.find((function(t){return t.classList.contains(Hy)}))}}function vv(t){var e=Ky(),n=Ky();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Ky();function r(n,o){var r=yv(e),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||bv(i,t.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(gv(o.arrow))):a.appendChild(gv(o.arrow)):s&&a.removeChild(s)}return o.className=Py,o.setAttribute("data-state","hidden"),bv(o,t.props),e.appendChild(n),n.appendChild(o),r(t.props,t.props),{popper:e,onUpdate:r}}vv.$$tippy=!0;var kv=1,xv=[],wv=[];function Ev(t,e){var n,o,r,a,i,s,l,c,u=fv(t,Object.assign({},uv,dv(Gy(e)))),p=!1,d=!1,f=!1,h=!1,m=[],g=Zy(Z,u.interactiveDebounce),b=kv++,y=(c=u.plugins).filter((function(t,e){return c.indexOf(t)===e})),v={id:b,reference:t,popper:Ky(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){if(!v.state.isDestroyed){D("onBeforeUpdate",[v,e]),W();var n=v.props,o=fv(t,Object.assign({},n,Gy(e),{ignoreAttributes:!0}));v.props=o,U(),n.interactiveDebounce!==o.interactiveDebounce&&(j(),g=Zy(Z,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?Jy(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):o.triggerTarget&&t.removeAttribute("aria-expanded"),M(),L(),w&&w(n,o),v.popperInstance&&(G(),Q().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[v,e])}},setContent:function(t){v.setProps({content:t})},show:function(){var t=v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=rv.isTouch&&!v.props.touch,r=Uy(v.props.duration,0,uv.duration);if(!(t||e||n||o||C().hasAttribute("disabled")||(D("onShow",[v],!1),!1===v.props.onShow(v)))){if(v.state.isVisible=!0,T()&&(x.style.visibility="visible"),L(),F(),v.state.isMounted||(x.style.transition="none"),T()){var a=A();tv([a.box,a.content],0)}var i,l,c;s=function(){var t;if(v.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=v.props.moveTransition,T()&&v.props.animation){var e=A(),n=e.box,o=e.content;tv([n,o],r),ev([n,o],"visible")}I(),M(),Xy(wv,v),null==(t=v.popperInstance)||t.forceUpdate(),D("onMount",[v]),v.props.animation&&T()&&function(t){q(t,(function(){v.state.isShown=!0,D("onShown",[v])}))}(r)}},l=v.props.appendTo,c=C(),(i=v.props.interactive&&l===zy||"parent"===l?c.parentNode:By(l,[c])).contains(x)||i.appendChild(x),v.state.isMounted=!0,G()}},hide:function(){var t=!v.state.isVisible,e=v.state.isDestroyed,n=!v.state.isEnabled,o=Uy(v.props.duration,1,uv.duration);if(!(t||e||n)&&(D("onHide",[v],!1),!1!==v.props.onHide(v))){if(v.state.isVisible=!1,v.state.isShown=!1,h=!1,p=!1,T()&&(x.style.visibility="hidden"),j(),V(),L(!0),T()){var r=A(),a=r.box,i=r.content;v.props.animation&&(tv([a,i],o),ev([a,i],"hidden"))}I(),M(),v.props.animation?T()&&function(t,e){q(t,(function(){!v.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}(o,v.unmount):v.unmount()}},hideWithInteractivity:function(t){$().addEventListener("mousemove",g),Xy(xv,g),g(t)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){v.state.isVisible&&v.hide(),v.state.isMounted&&(K(),Q().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),wv=wv.filter((function(t){return t!==v})),v.state.isMounted=!1,D("onHidden",[v]))},destroy:function(){v.state.isDestroyed||(v.clearDelayTimeouts(),v.unmount(),W(),delete t._tippy,v.state.isDestroyed=!0,D("onDestroy",[v]))}};if(!u.render)return v;var k=u.render(v),x=k.popper,w=k.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+v.id,v.popper=x,t._tippy=v,x._tippy=v;var E=y.map((function(t){return t.fn(v)})),_=t.hasAttribute("aria-expanded");return U(),M(),L(),D("onCreate",[v]),u.showOnCreate&&tt(),x.addEventListener("mouseenter",(function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",g)})),v;function O(){var t=v.props.touch;return Array.isArray(t)?t:[t,0]}function S(){return"hold"===O()[0]}function T(){var t;return!(null==(t=v.props.render)||!t.$$tippy)}function C(){return l||t}function $(){var t,e,n=C().parentNode;return n?null!=(e=Jy(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document:document}function A(){return yv(x)}function N(t){return v.state.isMounted&&!v.state.isVisible||rv.isTouch||a&&"focus"===a.type?0:Uy(v.props.delay,t?0:1,uv.delay)}function L(t){void 0===t&&(t=!1),x.style.pointerEvents=v.props.interactive&&!t?"":"none",x.style.zIndex=""+v.props.zIndex}function D(t,e,n){var o;void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n&&(o=v.props)[t].apply(o,e)}function I(){var e=v.props.aria;if(e.content){var n="aria-"+e.content,o=x.id;Jy(v.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(v.state.isVisible)t.setAttribute(n,e?e+" "+o:o);else{var r=e&&e.replace(o,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function M(){!_&&v.props.aria.expanded&&Jy(v.props.triggerTarget||t).forEach((function(t){v.props.interactive?t.setAttribute("aria-expanded",v.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function j(){$().removeEventListener("mousemove",g),xv=xv.filter((function(t){return t!==g}))}function R(e){if(!rv.isTouch||!f&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!v.props.interactive||!ov(x,n)){if(Jy(v.props.triggerTarget||t).some((function(t){return ov(t,n)}))){if(rv.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[v,e]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),d=!0,setTimeout((function(){d=!1})),v.state.isMounted||V())}}}function P(){f=!0}function H(){f=!1}function F(){var t=$();t.addEventListener("mousedown",R,!0),t.addEventListener("touchend",R,qy),t.addEventListener("touchstart",H,qy),t.addEventListener("touchmove",P,qy)}function V(){var t=$();t.removeEventListener("mousedown",R,!0),t.removeEventListener("touchend",R,qy),t.removeEventListener("touchstart",H,qy),t.removeEventListener("touchmove",P,qy)}function q(t,e){var n=A().box;function o(t){t.target===n&&(nv(n,"remove",o),e())}if(0===t)return e();nv(n,"remove",i),nv(n,"add",o),i=o}function z(e,n,o){void 0===o&&(o=!1),Jy(v.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,o),m.push({node:t,eventType:e,handler:n,options:o})}))}function U(){var t;S()&&(z("touchstart",B,{passive:!0}),z("touchend",J,{passive:!0})),(t=v.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(z(t,B),t){case"mouseenter":z("mouseleave",J);break;case"focus":z(cv?"focusout":"blur",X);break;case"focusin":z("focusout",X)}}))}function W(){m.forEach((function(t){var e=t.node,n=t.eventType,o=t.handler,r=t.options;e.removeEventListener(n,o,r)})),m=[]}function B(t){var e,n=!1;if(v.state.isEnabled&&!Y(t)&&!d){var o="focus"===(null==(e=a)?void 0:e.type);a=t,l=t.currentTarget,M(),!v.state.isVisible&&Wy(t,"MouseEvent")&&xv.forEach((function(e){return e(t)})),"click"===t.type&&(v.props.trigger.indexOf("mouseenter")<0||p)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:tt(t),"click"===t.type&&(p=!n),n&&!o&&et(t)}}function Z(t){var e=t.target,n=C().contains(e)||x.contains(e);if("mousemove"!==t.type||!n){var o=Q().concat(x).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(t,e){var n=e.clientX,o=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,a=t.props.interactiveBorder,i=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,p="left"===i?s.right.x:0,d=e.top-o+l>a,f=o-e.bottom-c>a,h=e.left-n+u>a,m=n-e.right-p>a;return d||f||h||m}))})(o,t)&&(j(),et(t))}}function J(t){Y(t)||v.props.trigger.indexOf("click")>=0&&p||(v.props.interactive?v.hideWithInteractivity(t):et(t))}function X(t){v.props.trigger.indexOf("focusin")<0&&t.target!==C()||v.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||et(t)}function Y(t){return!!rv.isTouch&&S()!==t.type.indexOf("touch")>=0}function G(){K();var e=v.props,n=e.popperOptions,o=e.placement,r=e.offset,a=e.getReferenceClientRect,i=e.moveTransition,l=T()?yv(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||C()}:t,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(T()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];T()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Ry(c,x,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function K(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Q(){return Yy(x.querySelectorAll("[data-tippy-root]"))}function tt(t){v.clearDelayTimeouts(),t&&D("onTrigger",[v,t]),F();var e=N(!0),o=O(),r=o[0],a=o[1];rv.isTouch&&"hold"===r&&a&&(e=a),e?n=setTimeout((function(){v.show()}),e):v.show()}function et(t){if(v.clearDelayTimeouts(),D("onUntrigger",[v,t]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&p)){var e=N(!1);e?o=setTimeout((function(){v.state.isVisible&&v.hide()}),e):r=requestAnimationFrame((function(){v.hide()}))}}else V()}}function _v(t,e){void 0===e&&(e={});var n=uv.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",iv,qy),window.addEventListener("blur",lv);var o,r=Object.assign({},e,{plugins:n}),a=(o=t,Qy(o)?[o]:function(t){return Wy(t,"NodeList")}(o)?Yy(o):Array.isArray(o)?o:Yy(document.querySelectorAll(o))).reduce((function(t,e){var n=e&&Ev(e,r);return n&&t.push(n),t}),[]);return Qy(t)?a[0]:a}_v.defaultProps=uv,_v.setDefaultProps=function(t){Object.keys(t).forEach((function(e){uv[e]=t[e]}))},_v.currentInput=rv,Object.assign({},ky,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});var Ov={mouseover:"mouseenter",focusin:"focus",click:"click"};function Sv(t,e){var n=[],o=[],r=!1,a=e.target,i=function(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}(e,["target"]),s=Object.assign({},i,{trigger:"manual",touch:!1}),l=Object.assign({touch:uv.touch},i,{showOnCreate:!0}),c=_v(t,s);function u(t){if(t.target&&!r){var n=t.target.closest(a);if(n){var i=n.getAttribute("data-tippy-trigger")||e.trigger||uv.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof l.touch||"touchstart"!==t.type&&i.indexOf(Ov[t.type])<0)){var s=_v(n,l);s&&(o=o.concat(s))}}}}function p(t,e,o,r){void 0===r&&(r=!1),t.addEventListener(e,o,r),n.push({node:t,eventType:e,handler:o,options:r})}return Jy(c).forEach((function(t){var e=t.destroy,a=t.enable,i=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&o.forEach((function(t){t.destroy()})),o=[],n.forEach((function(t){var e=t.node,n=t.eventType,o=t.handler,r=t.options;e.removeEventListener(n,o,r)})),n=[],e()},t.enable=function(){a(),o.forEach((function(t){return t.enable()})),r=!1},t.disable=function(){i(),o.forEach((function(t){return t.disable()})),r=!0},function(t){var e=t.reference;p(e,"touchstart",u,qy),p(e,"mouseover",u),p(e,"focusin",u),p(e,"click",u)}(t)})),c}_v.setDefaultProps({render:vv});const Tv=_v;__webpack_require__(215),window.tippy=Tv;const Cv=new class{setup(){this.components=[],this.componentLibrary={},this.Vue=od,this.setupI18n(),this.setupHtmx(),this.setupPopups();for(const[t,e]of Object.entries(f))this.componentLibrary[t]=e;!function(t){for(const e of Object.values(t))od.component(e.name,e)}(d),window.dispatchEvent(new Event("indigo.vue-components-registered")),this.createComponents(document.body),this.createVueComponents(document.body),this.disableWith(),window.dispatchEvent(new Event("indigo.components-created"))}setupI18n(){const t=window.Indigo.i18n;t.backend={},t.backend.loadPath=function(e,n){return t.loadPaths[n[0]+"-"+e[0]]},eb.use(Eb).init(t),window.$t=eb.t.bind(eb)}setupHtmx(){window.htmx=mg.A,document.body.addEventListener("htmx:configRequest",(t=>{t.detail.headers["X-CSRFToken"]=window.Indigo.csrfToken})),document.body.addEventListener("htmx:beforeRequest",(t=>{window.Indigo.progressView.push()})),document.body.addEventListener("htmx:afterRequest",(t=>{window.Indigo.progressView.pop()}));const t={firstLoad:!0};document.body.addEventListener("htmx:load",(e=>{t.firstLoad?t.firstLoad=!1:(this.createComponents(e.target),this.createVueComponents(e.target),hg(e.target),$(".selectpicker").selectpicker())})),document.body.addEventListener("hx-messages",(t=>{t.detail.value.forEach(this.createToast)}))}createToast(t){const e=mg.A.find("[data-toast-template]").cloneNode(!0);delete e.dataset.toastTemplate,e.className+=" "+t.tags,mg.A.find(e,"[data-toast-body]").innerText=t.message,mg.A.find("[data-toast-container]").appendChild(e),new window.bootstrap.Toast(e,{delay:5e3}).show()}createComponents(t){t.getAttribute("data-component")&&this.createComponent(t);for(const e of t.querySelectorAll("[data-component]"))this.createComponent(e)}createComponent(t){const e=t.getAttribute("data-component");this.componentLibrary[e]&&!t.component&&this.components.push(t.component=new this.componentLibrary[e](t))}createVueComponents(t){for(const e of t.querySelectorAll("[data-vue-component]"))this.createVueComponent(e)}createVueComponent(t){const e=t.getAttribute("data-vue-component");if(this.Vue.options.components[e]&&!t.component){const n=rd(e,{el:t,propsData:t.dataset});n.$el.component=n,this.components.push(n)}}disableWith(){document.addEventListener("submit",(t=>{for(const e of t.target.elements)e.hasAttribute("data-disable-with")&&(e.textContent=e.getAttribute("data-disable-with"),e.removeAttribute("data-disable-with"),setTimeout((()=>{e.disabled=!0}),10))}))}setupPopups(){Sv("body",{target:"a[data-popup-url]",content:"...",allowHTML:!0,interactive:!0,theme:"light",placement:"bottom-start",appendTo:document.body,onTrigger:async(t,e)=>{const n=e.currentTarget.getAttribute("data-popup-url");if(n)try{const e=await fetch(n);e.ok?t.setContent(await e.text()):t.setContent(":(")}catch(t){console.log(t)}}})}};window.addEventListener("indigo.beforecreateviews",(()=>{window.indigoApp=Cv,Cv.setup()}))})()})(); \ No newline at end of file