/*! For license information please see 967-ca0c760411521c076ed8.js.LICENSE.txt */ "use strict";(globalThis.webpackChunkhelphub=globalThis.webpackChunkhelphub||[]).push([[967],{18987:(t,e,i)=>{function assign(t){for(var e=1;en});var n=function init(t,e){function set(i,n,s){if("undefined"!=typeof document){"number"==typeof(s=assign({},e,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var o in s)s[o]&&(r+="; "+o,!0!==s[o]&&(r+="="+s[o].split(";")[0]));return document.cookie=i+"="+t.write(n,i)+r}}return Object.create({set,get:function get(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},s=0;s{i.d(e,{q:()=>parse});var n="";function parse(t){return t.split("\n").reduce((function(t,e){var i=function parseChrome(t){var e=s.exec(t);if(!e)return null;var i=e[2]&&0===e[2].indexOf("native"),o=e[2]&&0===e[2].indexOf("eval"),a=r.exec(e[2]);o&&null!=a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3]);return{file:i?null:e[2],methodName:e[1]||n,arguments:i?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}(e)||function parseWinjs(t){var e=o.exec(t);if(!e)return null;return{file:e[2],methodName:e[1]||n,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}}(e)||function parseGecko(t){var e=a.exec(t);if(!e)return null;var i=e[3]&&e[3].indexOf(" > eval")>-1,s=l.exec(e[3]);i&&null!=s&&(e[3]=s[1],e[4]=s[2],e[5]=null);return{file:e[3],methodName:e[1]||n,arguments:e[2]?e[2].split(","):[],lineNumber:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}(e)||function parseNode(t){var e=u.exec(t);if(!e)return null;return{file:e[2],methodName:e[1]||n,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}}(e)||function parseJSC(t){var e=h.exec(t);if(!e)return null;return{file:e[3],methodName:e[1]||n,arguments:[],lineNumber:+e[4],column:e[5]?+e[5]:null}}(e);return i&&t.push(i),t}),[])}var s=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/\((\S*)(?::(\d+))(?::(\d+))\)/;var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;var h=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;var u=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i},46493:(t,e,i)=>{i.d(e,{Cj:()=>announceFromElement,iP:()=>announce});const n="less",s="equal",r="greater";var o,a,l,h,u,__typeError$2=t=>{throw TypeError(t)},__accessCheck$2=(t,e,i)=>e.has(t)||__typeError$2("Cannot "+i),__privateGet$2=(t,e,i)=>(__accessCheck$2(t,e,"read from private field"),i?i.call(t):e.get(t)),__privateAdd$2=(t,e,i)=>e.has(t)?__typeError$2("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),__privateSet$2=(t,e,i,n)=>(__accessCheck$2(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i),__privateMethod$1=(t,e,i)=>(__accessCheck$2(t,e,"access private method"),i);class MinHeap{constructor({compareFn:t}){__privateAdd$2(this,l),__privateAdd$2(this,o),__privateAdd$2(this,a),__privateSet$2(this,o,t),__privateSet$2(this,a,[])}insert(t){__privateGet$2(this,a).push(t),__privateMethod$1(this,l,u).call(this)}pop(){const t=__privateGet$2(this,a)[0];return __privateGet$2(this,a)[__privateGet$2(this,a).length-1]&&(__privateGet$2(this,a)[0]=__privateGet$2(this,a)[__privateGet$2(this,a).length-1],__privateGet$2(this,a).pop()),__privateMethod$1(this,l,h).call(this),t}peek(){return __privateGet$2(this,a)[0]}delete(t){const e=__privateGet$2(this,a).indexOf(t);-1!==e&&(swap(__privateGet$2(this,a),e,__privateGet$2(this,a).length-1),__privateGet$2(this,a).pop(),__privateMethod$1(this,l,h).call(this))}clear(){__privateSet$2(this,a,[])}get size(){return __privateGet$2(this,a).length}}function getLeftChildIndex(t){return 2*t+1}function getRightChildIndex(t){return 2*t+2}function getParentIndex(t){return Math.floor((t-1)/2)}function hasLeftChild(t,e){return getLeftChildIndex(t)0}function leftChild(t,e){return t[getLeftChildIndex(e)]}function rightChild(t,e){return t[getRightChildIndex(e)]}function parent(t,e){return t[getParentIndex(e)]}function swap(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}o=new WeakMap,a=new WeakMap,l=new WeakSet,h=function(){let t=0;for(;hasLeftChild(t,__privateGet$2(this,a).length);){let e=getLeftChildIndex(t);if(hasRightChild(t,__privateGet$2(this,a).length)&&__privateGet$2(this,o).call(this,rightChild(__privateGet$2(this,a),t),leftChild(__privateGet$2(this,a),t))===n&&(e=getRightChildIndex(t)),__privateGet$2(this,o).call(this,__privateGet$2(this,a)[t],__privateGet$2(this,a)[e])===n)break;swap(__privateGet$2(this,a),t,e),t=e}},u=function(){let t=__privateGet$2(this,a).length-1;for(;hasParent(t)&&__privateGet$2(this,o).call(this,__privateGet$2(this,a)[t],parent(__privateGet$2(this,a),t))===n;)swap(__privateGet$2(this,a),t,getParentIndex(t)),t=getParentIndex(t)};var c,d,m,f,g=Object.defineProperty,__typeError$1=t=>{throw TypeError(t)},__publicField=(t,e,i)=>((t,e,i)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i)(t,"symbol"!=typeof e?e+"":e,i),__accessCheck$1=(t,e,i)=>e.has(t)||__typeError$1("Cannot "+i),__privateGet$1=(t,e,i)=>(__accessCheck$1(t,e,"read from private field"),i?i.call(t):e.get(t)),__privateAdd$1=(t,e,i)=>e.has(t)?__typeError$1("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),__privateSet$1=(t,e,i,n)=>(__accessCheck$1(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i);c=Symbol.toStringTag;class Deferred{constructor(){__publicField(this,c,"Deferred"),__privateAdd$1(this,d),__privateAdd$1(this,m),__privateAdd$1(this,f),__privateSet$1(this,d,new Promise(((t,e)=>{__privateSet$1(this,m,t),__privateSet$1(this,f,e)})))}then(t,e){return Promise.prototype.then.apply(__privateGet$1(this,d),[t,e])}catch(t){return Promise.prototype.catch.apply(__privateGet$1(this,d),[t])}finally(t){return Promise.prototype.finally.apply(__privateGet$1(this,d),[t])}resolve(t){__privateGet$1(this,m).call(this,t)}reject(t){__privateGet$1(this,f).call(this,t)}getPromise(){return __privateGet$1(this,d)}}d=new WeakMap,m=new WeakMap,f=new WeakMap;var p,v,w,y,b,T,__typeError=t=>{throw TypeError(t)},__accessCheck=(t,e,i)=>e.has(t)||__typeError("Cannot "+i),__privateGet=(t,e,i)=>(__accessCheck(t,e,"read from private field"),i?i.call(t):e.get(t)),__privateAdd=(t,e,i)=>e.has(t)?__typeError("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),__privateSet=(t,e,i,n)=>(__accessCheck(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i),__privateMethod=(t,e,i)=>(__accessCheck(t,e,"access private method"),i);class LiveRegionElement extends HTMLElement{constructor(){if(super(),__privateAdd(this,y),__privateAdd(this,p),__privateAdd(this,v),__privateAdd(this,w),!this.shadowRoot){const t=function getTemplate(){if(C)return C;return C=document.createElement("template"),C.innerHTML=D,C}();this.attachShadow({mode:"open"}).appendChild(t.content.cloneNode(!0))}__privateSet(this,p,!1),__privateSet(this,w,null),__privateSet(this,v,new MinHeap({compareFn:compareMessages}))}get delay(){const t=this.getAttribute("delay");return t?parseInt(t,10):150}set delay(t){this.setAttribute("delay",`${t}`)}announce(t,e={}){const{delayMs:i,politeness:n="polite"}=e,s=Date.now(),r=new Deferred,o={deferred:r,politeness:n,contents:t,scheduled:void 0!==i?s+i:s};return __privateGet(this,v).insert(o),__privateMethod(this,y,b).call(this),{...r.getPromise(),cancel:()=>{__privateGet(this,v).delete(o),r.resolve()}}}announceFromElement(t,e){const i=function getTextContent(t){let e="";t.hasAttribute("aria-label")?e=t.getAttribute("aria-label"):t.innerText?e=t.innerText:t.textContent&&(e=t.textContent);return e?e.trim():""}(t);if(""!==i)return this.announce(i,e);return{...Promise.resolve(),cancel:noop}}getMessage(t="polite"){const e=this.shadowRoot?.getElementById(t);if(!e)throw new Error("Unable to find container for message");return e.textContent}clear(){null!==__privateGet(this,w)&&(clearTimeout(__privateGet(this,w)),__privateSet(this,w,null)),__privateSet(this,p,!1),__privateGet(this,v).clear()}}p=new WeakMap,v=new WeakMap,w=new WeakMap,y=new WeakSet,b=function(){if(__privateGet(this,p))return;let t=__privateGet(this,v).peek();if(!t)return;null!==__privateGet(this,w)&&(clearTimeout(__privateGet(this,w)),__privateSet(this,w,null));const e=Date.now();if(t.scheduled<=e)return t=__privateGet(this,v).pop(),t&&__privateMethod(this,y,T).call(this,t),void __privateMethod(this,y,b).call(this);const i=t.scheduled-e;__privateSet(this,w,window.setTimeout((()=>{__privateSet(this,w,null),__privateMethod(this,y,b).call(this)}),i))},T=function(t){__privateSet(this,p,!0);const{contents:e,deferred:i,politeness:n}=t,s=this.shadowRoot?.getElementById(n);if(!s)throw __privateSet(this,p,!1),new Error(`Unable to find container for message. Expected a container with id="${n}"`);s.textContent===e?s.textContent=`${e} `:s.textContent=e,null!==__privateGet(this,w)&&clearTimeout(__privateGet(this,w)),i.resolve(),this.delay>0?__privateSet(this,w,window.setTimeout((()=>{__privateSet(this,w,null),__privateSet(this,p,!1),__privateMethod(this,y,b).call(this)}),this.delay)):(__privateSet(this,w,null),__privateSet(this,p,!1),__privateMethod(this,y,b).call(this))};let C=null;const D='\n\n
\n
\n';function compareMessages(t,e){return t.politeness===e.politeness?t.scheduled===e.scheduled?s:t.scheduled{n=!0};return{...wait(M).then((()=>{if(!n){const n=i.announce(t,e);return cancel=n.cancel,n}})),cancel:()=>{cancel()}}}return i.announce(t,e)}function announceFromElement(t,e={}){let i=findLiveRegion(e.from);if(!i){if(i=document.createElement("live-region"),e.appendTo)e.appendTo.appendChild(i);else{getLiveRegionContainer(e.from).appendChild(i)}0;let n=!1,cancel=()=>{n=!0};return{...wait(M).then((()=>{if(!n){const n=i.announceFromElement(t,e);return cancel=n.cancel,n}})),cancel:()=>{cancel()}}}return i.announceFromElement(t,e)}function findLiveRegion(t){let e=null;if(e=t?function getClosestLiveRegion(t){const e=t.closest("dialog");let i=t;for(;(i=i.parentElement)&&(!e||e.contains(i));)for(const t of i.childNodes)if(t instanceof LiveRegionElement)return t;return null}(t):null,null!==e)return e;return e=getLiveRegionContainer(t).querySelector("live-region"),null!==e?e:null}function getLiveRegionContainer(t){let e=document.body;if(t){const i=t.closest("dialog");i&&(e=i)}return e}customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);const M=150;function wait(t){return new Promise((e=>{setTimeout(e,t)}))}},57975:t=>{function assertPath(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function normalizeStringPosix(t,e){for(var i,n="",s=0,r=-1,o=0,a=0;a<=t.length;++a){if(a2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",s=0):s=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),r=a,o=0;continue}}else if(2===n.length||1===n.length){n="",s=0,r=a,o=0;continue}e&&(n.length>0?n+="/..":n="..",s=2)}else n.length>0?n+="/"+t.slice(r+1,a):n=t.slice(r+1,a),s=a-r-1;r=a,o=0}else 46===i&&-1!==o?++o:o=-1}return n}var e={resolve:function resolve(){for(var t,e="",i=!1,n=arguments.length-1;n>=-1&&!i;n--){var s;n>=0?s=arguments[n]:(void 0===t&&(t=process.cwd()),s=t),assertPath(s),0!==s.length&&(e=s+"/"+e,i=47===s.charCodeAt(0))}return e=normalizeStringPosix(e,!i),i?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function normalize(t){if(assertPath(t),0===t.length)return".";var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=normalizeStringPosix(t,!e)).length||e||(t="."),t.length>0&&i&&(t+="/"),e?"/"+t:t},isAbsolute:function isAbsolute(t){return assertPath(t),t.length>0&&47===t.charCodeAt(0)},join:function join(){if(0===arguments.length)return".";for(var t,i=0;i0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":e.normalize(t)},relative:function relative(t,i){if(assertPath(t),assertPath(i),t===i)return"";if((t=e.resolve(t))===(i=e.resolve(i)))return"";for(var n=1;nl){if(47===i.charCodeAt(o+u))return i.slice(o+u+1);if(0===u)return i.slice(o+u)}else r>l&&(47===t.charCodeAt(n+u)?h=u:0===u&&(h=0));break}var c=t.charCodeAt(n+u);if(c!==i.charCodeAt(o+u))break;47===c&&(h=u)}var d="";for(u=n+h+1;u<=s;++u)u!==s&&47!==t.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+i.slice(o+h):(o+=h,47===i.charCodeAt(o)&&++o,i.slice(o))},_makeLong:function _makeLong(t){return t},dirname:function dirname(t){if(assertPath(t),0===t.length)return".";for(var e=t.charCodeAt(0),i=47===e,n=-1,s=!0,r=t.length-1;r>=1;--r)if(47===(e=t.charCodeAt(r))){if(!s){n=r;break}}else s=!1;return-1===n?i?"/":".":i&&1===n?"//":t.slice(0,n)},basename:function basename(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');assertPath(t);var i,n=0,s=-1,r=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var o=e.length-1,a=-1;for(i=t.length-1;i>=0;--i){var l=t.charCodeAt(i);if(47===l){if(!r){n=i+1;break}}else-1===a&&(r=!1,a=i+1),o>=0&&(l===e.charCodeAt(o)?-1==--o&&(s=i):(o=-1,s=a))}return n===s?s=a:-1===s&&(s=t.length),t.slice(n,s)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!r){n=i+1;break}}else-1===s&&(r=!1,s=i+1);return-1===s?"":t.slice(n,s)},extname:function extname(t){assertPath(t);for(var e=-1,i=0,n=-1,s=!0,r=0,o=t.length-1;o>=0;--o){var a=t.charCodeAt(o);if(47!==a)-1===n&&(s=!1,n=o+1),46===a?-1===e?e=o:1!==r&&(r=1):-1!==e&&(r=-1);else if(!s){i=o+1;break}}return-1===e||-1===n||0===r||1===r&&e===n-1&&e===i+1?"":t.slice(e,n)},format:function format(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function _format(t,e){var i=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return i?i===e.root?i+n:i+t+n:n}("/",t)},parse:function parse(t){assertPath(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var i,n=t.charCodeAt(0),s=47===n;s?(e.root="/",i=1):i=0;for(var r=-1,o=0,a=-1,l=!0,h=t.length-1,u=0;h>=i;--h)if(47!==(n=t.charCodeAt(h)))-1===a&&(l=!1,a=h+1),46===n?-1===r?r=h:1!==u&&(u=1):-1!==r&&(u=-1);else if(!l){o=h+1;break}return-1===r||-1===a||0===u||1===u&&r===a-1&&r===o+1?-1!==a&&(e.base=e.name=0===o&&s?t.slice(1,a):t.slice(o,a)):(0===o&&s?(e.name=t.slice(1,r),e.base=t.slice(1,a)):(e.name=t.slice(o,r),e.base=t.slice(o,a)),e.ext=t.slice(r,a)),o>0?e.dir=t.slice(0,o-1):s&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};e.posix=e,t.exports=e},70170:(t,e,i)=>{function debounce(t,e=0,{start:i=!1,middle:n=!1,once:s=!1}={}){return function throttle(t,e=0,{start:i=!0,middle:n=!0,once:s=!1}={}){let r,o=i,a=0,l=!1;function fn(...h){if(l)return;const u=Date.now()-a;a=Date.now(),i&&n&&u>=e&&(o=!0),o?(o=!1,t.apply(this,h),s&&fn.cancel()):(n&&u{a=Date.now(),t.apply(this,h),s&&fn.cancel()}),n?e-u:e))}return fn.cancel=()=>{clearTimeout(r),l=!0},fn}(t,e,{start:i,middle:n,once:s})}i.d(e,{s:()=>debounce})},94973:(t,e,i)=>{i.r(e),i.d(e,{RelativeTimeElement:()=>E,RelativeTimeUpdatedEvent:()=>RelativeTimeUpdatedEvent,default:()=>R});var n,__classPrivateFieldSet=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i},__classPrivateFieldGet=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};const s="undefined"!=typeof Intl&&Intl.ListFormat||class ListFormatPonyFill{formatToParts(t){const e=[];for(const i of t)e.push({type:"element",value:i}),e.push({type:"literal",value:", "});return e.slice(0,-1)}},r=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],o={minimumIntegerDigits:2};class DurationFormat{constructor(t,e={}){n.set(this,void 0);let i=String(e.style||"short");"long"!==i&&"short"!==i&&"narrow"!==i&&"digital"!==i&&(i="short");let s="digital"===i?"numeric":i;const r=e.hours||s;s="2-digit"===r?"numeric":r;const o=e.minutes||s;s="2-digit"===o?"numeric":o;const a=e.seconds||s;s="2-digit"===a?"numeric":a;const l=e.milliseconds||s;__classPrivateFieldSet(this,n,{locale:t,style:i,years:e.years||"digital"===i?"short":i,yearsDisplay:"always"===e.yearsDisplay?"always":"auto",months:e.months||"digital"===i?"short":i,monthsDisplay:"always"===e.monthsDisplay?"always":"auto",weeks:e.weeks||"digital"===i?"short":i,weeksDisplay:"always"===e.weeksDisplay?"always":"auto",days:e.days||"digital"===i?"short":i,daysDisplay:"always"===e.daysDisplay?"always":"auto",hours:r,hoursDisplay:"always"===e.hoursDisplay||"digital"===i?"always":"auto",minutes:o,minutesDisplay:"always"===e.minutesDisplay||"digital"===i?"always":"auto",seconds:a,secondsDisplay:"always"===e.secondsDisplay||"digital"===i?"always":"auto",milliseconds:l,millisecondsDisplay:"always"===e.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return __classPrivateFieldGet(this,n,"f")}formatToParts(t){const e=[],i=__classPrivateFieldGet(this,n,"f"),a=i.style,l=i.locale;for(const[n,s]of r){const r=t[n];if("auto"===i[`${n}Display`]&&!r)continue;const h=i[n],u="2-digit"===h?o:"numeric"===h?{}:{style:"unit",unit:s,unitDisplay:h};let c=new Intl.NumberFormat(l,u).format(r);"months"===n&&("narrow"===h||"narrow"===a&&c.endsWith("m"))&&(c=c.replace(/(\d+)m$/,"$1mo")),e.push(c)}return new s(l,{type:"unit",style:"digital"===a?"short":a}).formatToParts(e)}format(t){return this.formatToParts(t).map((t=>t.value)).join("")}}n=new WeakMap;const a=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,l=["year","month","week","day","hour","minute","second","millisecond"];class Duration{constructor(t=0,e=0,i=0,n=0,s=0,r=0,o=0,a=0){this.years=t,this.months=e,this.weeks=i,this.days=n,this.hours=s,this.minutes=r,this.seconds=o,this.milliseconds=a,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new Duration(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var e;if("string"==typeof t){const i=String(t).trim(),n=i.startsWith("-")?-1:1,s=null===(e=i.match(a))||void 0===e?void 0:e.slice(1).map((t=>(Number(t)||0)*n));return s?new Duration(...s):new Duration}if("object"==typeof t){const{years:e,months:i,weeks:n,days:s,hours:r,minutes:o,seconds:a,milliseconds:l}=t;return new Duration(e,i,n,s,r,o,a,l)}throw new RangeError("invalid duration")}static compare(t,e){const i=Date.now(),n=Math.abs(applyDuration(i,Duration.from(t)).getTime()-i),s=Math.abs(applyDuration(i,Duration.from(e)).getTime()-i);return n>s?-1:n=900&&(h+=Math.round(u/1e3)),(h||l||a||o||r||s||n)&&(u=0),h>=55&&(l+=Math.round(h/60)),(l||a||o||r||s||n)&&(h=0),l>=55&&(a+=Math.round(l/60)),(a||o||r||s||n)&&(l=0),o&&a>=12&&(o+=Math.round(a/24)),!o&&a>=21&&(o+=Math.round(a/24)),(o||r||s||n)&&(a=0);const c=e.getFullYear(),d=e.getMonth(),m=e.getDate();if(o>=27||n+s+o){const t=new Date(e);t.setDate(1),t.setMonth(d+s*i+1),t.setDate(0);const a=Math.max(0,m-t.getDate()),l=new Date(e);l.setFullYear(c+n*i),l.setDate(m-a),l.setMonth(d+s*i),l.setDate(m-a+o*i);const h=l.getFullYear()-e.getFullYear(),u=l.getMonth()-e.getMonth(),f=Math.abs(Math.round((Number(l)-Number(e))/864e5))+a,g=Math.abs(12*h+u);f<27?(o>=6?(r+=Math.round(o/7),o=0):o=f,s=n=0):g<=11?(s=g,n=0):(s=0,n=h*i),(s||n)&&(o=0)}return n&&(s=0),r>=4&&(s+=Math.round(r/4)),(s||n)&&(r=0),o&&r&&!s&&!n&&(r+=Math.round(o/7),o=0),new Duration(n*i,s*i,r*i,o*i,a*i,l*i,h*i,u*i)}var h,u,c,d,m,f,g,p,v,w,y,b,T,C,relative_time_element_classPrivateFieldGet=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)},relative_time_element_classPrivateFieldSet=function(t,e,i,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(t,i):s?s.value=i:e.set(t,i),i};const D=globalThis.HTMLElement||null,M=new Duration,x=new Duration(0,0,0,0,0,1);class RelativeTimeUpdatedEvent extends Event{constructor(t,e,i,n){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=t,this.newText=e,this.oldTitle=i,this.newTitle=n}}function getUnitFactor(t){if(!t.date)return 1/0;if("duration"===t.format||"elapsed"===t.format){const e=t.precision;if("second"===e)return 1e3;if("minute"===e)return 6e4}const e=Math.abs(Date.now()-t.date.getTime());return e<6e4?1e3:e<36e5?6e4:36e5}const A=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(t){if(this.elements.has(t))return;this.elements.add(t);const e=t.date;if(e&&e.getTime()){const e=getUnitFactor(t),i=Date.now()+e;ithis.update()),e),this.time=i)}}unobserve(t){this.elements.has(t)&&this.elements.delete(t)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let t=1/0;for(const e of this.elements)t=Math.min(t,getUnitFactor(e)),e.update();this.time=Math.min(36e5,t),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class RelativeTimeElement extends D{constructor(){super(...arguments),h.add(this),u.set(this,!1),c.set(this,!1),m.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),C.set(this,null)}static define(t="relative-time",e=customElements){return e.define(t,this),this}get timeZone(){var t;return(null===(t=this.closest("[time-zone]"))||void 0===t?void 0:t.getAttribute("time-zone"))||this.ownerDocument.documentElement.getAttribute("time-zone")||void 0}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title","aria-hidden","time-zone"]}get onRelativeTimeUpdated(){return relative_time_element_classPrivateFieldGet(this,C,"f")}set onRelativeTimeUpdated(t){relative_time_element_classPrivateFieldGet(this,C,"f")&&this.removeEventListener("relative-time-updated",relative_time_element_classPrivateFieldGet(this,C,"f")),relative_time_element_classPrivateFieldSet(this,C,"object"==typeof t||"function"==typeof t?t:null,"f"),"function"==typeof t&&this.addEventListener("relative-time-updated",t)}get second(){const t=this.getAttribute("second");if("numeric"===t||"2-digit"===t)return t}set second(t){this.setAttribute("second",t||"")}get minute(){const t=this.getAttribute("minute");if("numeric"===t||"2-digit"===t)return t}set minute(t){this.setAttribute("minute",t||"")}get hour(){const t=this.getAttribute("hour");if("numeric"===t||"2-digit"===t)return t}set hour(t){this.setAttribute("hour",t||"")}get weekday(){const t=this.getAttribute("weekday");return"long"===t||"short"===t||"narrow"===t?t:"datetime"===this.format&&""!==t?this.formatStyle:void 0}set weekday(t){this.setAttribute("weekday",t||"")}get day(){var t;const e=null!==(t=this.getAttribute("day"))&&void 0!==t?t:"numeric";if("numeric"===e||"2-digit"===e)return e}set day(t){this.setAttribute("day",t||"")}get month(){const t=this.format;let e=this.getAttribute("month");if(""!==e)return null!=e||(e="datetime"===t?this.formatStyle:"short"),"numeric"===e||"2-digit"===e||"short"===e||"long"===e||"narrow"===e?e:void 0}set month(t){this.setAttribute("month",t||"")}get year(){var t;const e=this.getAttribute("year");return"numeric"===e||"2-digit"===e?e:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(t=this.date)||void 0===t?void 0:t.getUTCFullYear())?void 0:"numeric"}set year(t){this.setAttribute("year",t||"")}get timeZoneName(){const t=this.getAttribute("time-zone-name");if("long"===t||"short"===t||"shortOffset"===t||"longOffset"===t||"shortGeneric"===t||"longGeneric"===t)return t}set timeZoneName(t){this.setAttribute("time-zone-name",t||"")}get prefix(){var t;return null!==(t=this.getAttribute("prefix"))&&void 0!==t?t:"datetime"===this.format?"":"on"}set prefix(t){this.setAttribute("prefix",t)}get threshold(){const t=this.getAttribute("threshold");return t&&(e=t,a.test(e))?t:"P30D";var e}set threshold(t){this.setAttribute("threshold",t)}get tense(){const t=this.getAttribute("tense");return"past"===t?"past":"future"===t?"future":"auto"}set tense(t){this.setAttribute("tense",t)}get precision(){const t=this.getAttribute("precision");return l.includes(t)?t:"micro"===this.format?"minute":"second"}set precision(t){this.setAttribute("precision",t)}get format(){const t=this.getAttribute("format");return"datetime"===t?"datetime":"relative"===t?"relative":"duration"===t?"duration":"micro"===t?"micro":"elapsed"===t?"elapsed":"auto"}set format(t){this.setAttribute("format",t)}get formatStyle(){const t=this.getAttribute("format-style");if("long"===t)return"long";if("short"===t)return"short";if("narrow"===t)return"narrow";const e=this.format;return"elapsed"===e||"micro"===e?"narrow":"datetime"===e?"short":"long"}set formatStyle(t){this.setAttribute("format-style",t)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(t){this.toggleAttribute("no-title",t)}get datetime(){return this.getAttribute("datetime")||""}set datetime(t){this.setAttribute("datetime",t)}get date(){const t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(null==t?void 0:t.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){A.unobserve(this)}attributeChangedCallback(t,e,i){e!==i&&("title"===t&&relative_time_element_classPrivateFieldSet(this,u,null!==i&&(this.date&&relative_time_element_classPrivateFieldGet(this,h,"m",f).call(this,this.date))!==i,"f"),relative_time_element_classPrivateFieldGet(this,c,"f")||"title"===t&&relative_time_element_classPrivateFieldGet(this,u,"f")||relative_time_element_classPrivateFieldSet(this,c,(async()=>{await Promise.resolve(),this.update(),relative_time_element_classPrivateFieldSet(this,c,!1,"f")})(),"f"))}update(){const t=relative_time_element_classPrivateFieldGet(this,m,"f").textContent||this.textContent||"",e=this.getAttribute("title")||"";let i=e;const n=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!n)return void(relative_time_element_classPrivateFieldGet(this,m,"f").textContent=t);const s=Date.now();relative_time_element_classPrivateFieldGet(this,u,"f")||(i=relative_time_element_classPrivateFieldGet(this,h,"m",f).call(this,n)||"",i&&!this.noTitle&&this.setAttribute("title",i));const r=function elapsedTime(t,e="second",i=Date.now()){const n=t.getTime()-i;if(0===n)return new Duration;const s=Math.sign(n),r=Math.abs(n),o=Math.floor(r/1e3),a=Math.floor(o/60),h=Math.floor(a/60),u=Math.floor(h/24),c=Math.floor(u/30),d=Math.floor(c/12),m=l.indexOf(e)||l.length;return new Duration(m>=0?d*s:0,m>=1?(c-12*d)*s:0,0,m>=3?(u-30*c)*s:0,m>=4?(h-24*u)*s:0,m>=5?(a-60*h)*s:0,m>=6?(o-60*a)*s:0,m>=7?(r-1e3*o)*s:0)}(n,this.precision,s),o=relative_time_element_classPrivateFieldGet(this,h,"m",g).call(this,r);let a=t;const c=relative_time_element_classPrivateFieldGet(this,h,"m",T).call(this,o);a=c?relative_time_element_classPrivateFieldGet(this,h,"m",y).call(this,n):"duration"===o?relative_time_element_classPrivateFieldGet(this,h,"m",p).call(this,r):"relative"===o?relative_time_element_classPrivateFieldGet(this,h,"m",v).call(this,r):relative_time_element_classPrivateFieldGet(this,h,"m",w).call(this,n),a?relative_time_element_classPrivateFieldGet(this,h,"m",b).call(this,a):this.shadowRoot===relative_time_element_classPrivateFieldGet(this,m,"f")&&this.textContent&&relative_time_element_classPrivateFieldGet(this,h,"m",b).call(this,this.textContent),a===t&&i===e||this.dispatchEvent(new RelativeTimeUpdatedEvent(t,a,e,i)),"relative"!==o&&"duration"!==o||c?A.unobserve(this):A.observe(this)}}u=new WeakMap,c=new WeakMap,m=new WeakMap,C=new WeakMap,h=new WeakSet,d=function _RelativeTimeElement_lang_get(){var t;const e=(null===(t=this.closest("[lang]"))||void 0===t?void 0:t.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang");try{return new Intl.Locale(null!=e?e:"").toString()}catch(i){return"default"}},f=function _RelativeTimeElement_getFormattedTitle(t){return new Intl.DateTimeFormat(relative_time_element_classPrivateFieldGet(this,h,"a",d),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone}).format(t)},g=function _RelativeTimeElement_resolveFormat(t){const e=this.format;if("datetime"===e)return"datetime";if("duration"===e)return"duration";if("elapsed"===e)return"duration";if("micro"===e)return"duration";if(("auto"===e||"relative"===e)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const e=this.tense;if("past"===e||"future"===e)return"relative";if(1===Duration.compare(t,this.threshold))return"relative"}return"datetime"},p=function _RelativeTimeElement_getDurationFormat(t){const e=relative_time_element_classPrivateFieldGet(this,h,"a",d),i=this.format,n=this.formatStyle,s=this.tense;let r=M;"micro"===i?(t=roundToSingleUnit(t),r=x,0===t.months&&("past"===this.tense&&-1!==t.sign||"future"===this.tense&&1!==t.sign)&&(t=x)):("past"===s&&-1!==t.sign||"future"===s&&1!==t.sign)&&(t=r);const o=`${this.precision}sDisplay`;return t.blank?r.toLocaleString(e,{style:n,[o]:"always"}):t.abs().toLocaleString(e,{style:n})},v=function _RelativeTimeElement_getRelativeFormat(t){const e=new Intl.RelativeTimeFormat(relative_time_element_classPrivateFieldGet(this,h,"a",d),{numeric:"auto",style:this.formatStyle}),i=this.tense;"future"===i&&1!==t.sign&&(t=M),"past"===i&&-1!==t.sign&&(t=M);const[n,s]=function getRelativeTimeUnit(t,e){const i=roundToSingleUnit(t,e);if(i.blank)return[0,"second"];for(const n of l){if("millisecond"===n)continue;const t=i[`${n}s`];if(t)return[t,n]}return[0,"second"]}(t);return"second"===s&&n<10?e.format(0,"millisecond"===this.precision?"second":this.precision):e.format(n,s)},w=function _RelativeTimeElement_getDateTimeFormat(t){const e=new Intl.DateTimeFormat(relative_time_element_classPrivateFieldGet(this,h,"a",d),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName,timeZone:this.timeZone});return`${this.prefix} ${e.format(t)}`.trim()},y=function _RelativeTimeElement_getUserPreferredAbsoluteTimeFormat(t){return new Intl.DateTimeFormat(relative_time_element_classPrivateFieldGet(this,h,"a",d),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone}).format(t)},b=function _RelativeTimeElement_updateRenderRootContent(t){if(this.hasAttribute("aria-hidden")&&"true"===this.getAttribute("aria-hidden")){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.textContent=t,relative_time_element_classPrivateFieldGet(this,m,"f").replaceChildren(e)}else relative_time_element_classPrivateFieldGet(this,m,"f").textContent=t},T=function _RelativeTimeElement_shouldDisplayUserPreferredAbsoluteTime(t){var e;return"duration"!==t&&("true"===this.ownerDocument.documentElement.getAttribute("data-prefers-absolute-time")||"true"===(null===(e=this.ownerDocument.body)||void 0===e?void 0:e.getAttribute("data-prefers-absolute-time")))};const k="undefined"!=typeof globalThis?globalThis:window;try{k.RelativeTimeElement=RelativeTimeElement.define()}catch(U){if(!(k.DOMException&&U instanceof DOMException&&"NotSupportedError"===U.name||U instanceof ReferenceError))throw U}const E=RelativeTimeElement,R=RelativeTimeElement}}]);