@bbn/bbn 2.0.220 → 2.0.222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bbn.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bbn={})}(this,function(e){"use strict";function t(e,t,r,o,i){return n(t,((e,t)=>{const n=e[t];if(void 0===n)throw new TypeError(To(t));return n})(e,t),r,o,i)}function n(e,t,n,r,o,i){const a=E(t,n,r);if(o&&t!==a)throw new RangeError(vo(e,t,n,r,i));return a}function r(e){return null!==e&&/object|function/.test(typeof e)}function o(e,t=Map){const n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);const o=e(t,...r);return n.set(t,o),o}}function i(e){return a({name:e},1)}function a(e,t){return u(e=>({value:e,configurable:1,writable:!t}),e)}function s(e){return u(e=>({get:e,configurable:1}),e)}function m(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function l(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function u(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function c(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function d(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function h(e,t){const n=Object.create(null);for(const r of e)n[r]=t[r];return n}function f(e,t){for(const n of t)if(n in e)return 1;return 0}function M(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function y(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function g(e,...t){return(...n)=>e(...t,...n)}function p(e){return e[0].toUpperCase()+e.substring(1)}function b(e){return e.slice().sort()}function w(e,t){return String(t).padStart(e,"0")}function v(e,t){return Math.sign(e-t)}function E(e,t,n){return Math.min(Math.max(e,t),n)}function T(e,t){return[Math.floor(e/t),S(e,t)]}function S(e,t){return(e%t+t)%t}function D(e,t){return[z(e,t),A(e,t)]}function z(e,t){return Math.trunc(e/t)||0}function A(e,t){return e%t||0}function H(e){return.5===Math.abs(e%1)}function k(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=pi[i],s=gi/a,[m,l]=D(t,s);r+=l*a,o+=m}const[i,a]=D(r,gi);return[o+i,a]}function I(e,t,n){const r={};for(let o=t;o>=0;o--){const t=pi[o];r[n[o]]=z(e,t),e=A(e,t)}return r}function _(e){if(void 0!==e)return G(e)}function C(e){return x(G(e))}function G(e){return N(Wi(e))}function P(e,t){if(null==t)throw new RangeError(To(e));return t}function O(e){if(!r(e))throw new TypeError(wo);return e}function B(e,t,n=e){if(typeof t!==e)throw new TypeError(Eo(n,t));return t}function N(e,t="number"){if(!Number.isInteger(e))throw new RangeError(fo(t,e));return e||0}function x(e,t="number"){if(e<=0)throw new RangeError(Mo(t,e));return e}function L(e){if("symbol"==typeof e)throw new TypeError(bo);return String(e)}function j(e,t){return r(e)?String(e):Yi(e,t)}function R(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(po(e));return e}function F(e,t="number"){if("bigint"==typeof e)throw new TypeError(go(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(yo(t,e));return e}function Y(e,t){return Math.trunc(F(e,t))||0}function Z(e,t){return N(F(e,t),t)}function W(e,t){return x(Y(e,t),t)}function U(e,t){let[n,r]=D(t,gi),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*gi),[o,r]}function q(e,t,n=1){return U(e[0]+t[0]*n,e[1]+t[1]*n)}function $(e,t){return U(e[0],e[1]+t)}function V(e,t){return q(t,e,-1)}function K(e,t){return v(e[0],t[0])||v(e[1],t[1])}function J(e,t,n){return-1===K(e,t)||1===K(e,n)}function X(e,t=1){const n=BigInt(gi/t);return[Number(e/n),Number(e%n)*t]}function Q(e,t=1){const n=gi/t,[r,o]=D(e,n);return[r,o*t]}function ee(e,t=1,n){const[r,o]=e,[i,a]=D(o,t);return r*(gi/t)+(i+(n?a/t:0))}function te(e,t,n=T){const[r,o]=e,[i,a]=n(o,t);return[r*(gi/t)+i,a]}function ne(e){return t(e,"isoYear",fa,ha,1),e.isoYear===fa?t(e,"isoMonth",4,12,1):e.isoYear===ha&&t(e,"isoMonth",1,9,1),e}function re(e){return oe({...e,...sa,isoHour:12}),e}function oe(e){const n=t(e,"isoYear",fa,ha,1),r=n===fa?1:n===ha?-1:0;return r&&ie(ue({...e,isoDay:e.isoDay+r,isoNanosecond:e.isoNanosecond-r})),e}function ie(e){if(!e||J(e,da,ca))throw new RangeError($o);return e}function ae(e){return k(e,5,ta)[1]}function se(e){const[t,n]=T(e,gi);return[I(n,5,ta),t]}function me(e){return te(e,fi)}function le(e){return he(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function ue(e){const t=le(e);if(void 0!==t){const[n,r]=D(t,ui);return[n,r*hi+(e.isoMicrosecond||0)*di+(e.isoNanosecond||0)]}}function ce(e,t){const[n,r]=se(ae(e)-t);return ie(ue({...e,isoDay:e.isoDay+r,...n}))}function de(...e){return he(...e)/ci}function he(...e){const[t,n]=fe(...e),r=t.valueOf();if(!isNaN(r))return r-n*ui}function fe(e,t=1,n=1,r=0,o=0,i=0,a=0){const s=e===fa?1:e===ha?-1:0,m=new Date;return m.setUTCHours(r,o,i,a),m.setUTCFullYear(e,t-1,n+s),[m,s]}function Me(e,t){let[n,r]=$(e,t);r<0&&(r+=gi,n-=1);const[o,i]=T(r,hi),[a,s]=T(i,di);return ye(n*ui+o,a,s)}function ye(e,t=0,n=0){const r=Math.ceil(Math.max(0,Math.abs(e)-ua)/ui)*Math.sign(e),o=new Date(e-r*ui);return l(ra,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ge(e,t){if(t<-ua)throw new RangeError($o);const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function pe(e){return[e.isoYear,e.isoMonth,e.isoDay]}function be(e,t){return[t,0]}function we(){return ba}function ve(e,t){switch(t){case 2:return Te(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Ee(e){return Te(e)?366:365}function Te(e){return e%4==0&&(e%100!=0||e%400==0)}function Se(e){const[t,n]=fe(e.isoYear,e.isoMonth,e.isoDay);return S(t.getUTCDay()-n,7)||7}function De(e){return this.id===xi?(({isoYear:e})=>e<1?["gregory-inverse",1-e]:["gregory",e])(e):this.id===Li?va(e):[]}function ze(e){const t=le(e);if(t<wa){const{isoYear:t}=e;return t<1?["japanese-inverse",1-t]:["japanese",t]}const n=ge(Cs(Li),t),{era:r,eraYear:o}=_r(n,Li);return[r,o]}function Ae(e){return He(e),_e(e,1),e}function He(e){return Ie(e,1),e}function ke(e){return M(na,e,Ie(e))}function Ie(e,n){const{isoYear:r}=e,o=t(e,"isoMonth",1,we(),n);return{isoYear:r,isoMonth:o,isoDay:t(e,"isoDay",1,ve(r,o),n)}}function _e(e,n){return l(ta,[t(e,"isoHour",0,23,n),t(e,"isoMinute",0,59,n),t(e,"isoSecond",0,59,n),t(e,"isoMillisecond",0,999,n),t(e,"isoMicrosecond",0,999,n),t(e,"isoNanosecond",0,999,n)])}function Ce(e){return void 0===e?0:ja(O(e))}function Ge(e,t=0){e=Ye(e);const n=Ra(e),r=Fa(e,t);return[ja(e),r,n]}function Pe(e,t,n,r=9,o=0,i=4){t=Ye(t);let a=xa(t,r,o),s=je(t),m=Ua(t,i);const l=Na(t,r,o,1);return null==a?a=Math.max(n,l):$e(a,l),s=Re(s,l,1),e&&(m=(e=>e<4?(e+2)%4:e)(m)),[a,l,s,m]}function Oe(e,t=6,n){let r=je(e=Ze(e,Ea));const o=Ua(e,7);let i=Na(e,t);return i=P(Ea,i),r=Re(r,i,void 0,n),[i,r,o]}function Be(e){return Ya(Ye(e))}function Ne(e,t){return xe(Ye(e),t)}function xe(e,t=4){const n=Fe(e);return[Ua(e,4),...Le(Na(e,t),n)]}function Le(e,t){return null!=e?[pi[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function je(e){const t=e[Sa];return void 0===t?1:Y(t,Sa)}function Re(e,t,r,o){const i=o?gi:pi[t+1];if(i){const r=pi[t];if(i%((e=n(Sa,e,1,i/r-(o?0:1),1))*r))throw new RangeError(Eo(Sa,e))}else e=n(Sa,e,1,r?10**9:1,1);return e}function Fe(e){let t=e[Da];if(void 0!==t){if("number"!=typeof t){if("auto"===L(t))return;throw new RangeError(Eo(Da,t))}t=n(Da,Math.floor(t),0,9,1)}return t}function Ye(e){return void 0===e?{}:O(e)}function Ze(e,t){return"string"==typeof e?{[t]:e}:O(e)}function We(e){return{overflow:ka[e]}}function Ue(e,t,r=9,o=0,i){let a=t[e];if(void 0===a)return i?o:void 0;if(a=L(a),"auto"===a)return i?o:null;let s=mi[a];if(void 0===s&&(s=Ji[a]),void 0===s)throw new RangeError(Ao(e,a,mi));return n(e,s,o,r,1,li),s}function qe(e,t,n,r=0){const o=n[e];if(void 0===o)return r;const i=L(o),a=t[i];if(void 0===a)throw new RangeError(Ao(e,i,t));return a}function $e(e,t){if(t>e)throw new RangeError(ei)}function Ve(e){return{branding:Qa,epochNanoseconds:e}}function Ke(e,t,n){return{branding:Xa,calendar:n,timeZone:t,epochNanoseconds:e}}function Je(e,t=e.calendar){return{branding:Ka,calendar:t,...h(aa,e)}}function Xe(e,t=e.calendar){return{branding:Va,calendar:t,...h(oa,e)}}function Qe(e,t=e.calendar){return{branding:qa,calendar:t,...h(oa,e)}}function et(e,t=e.calendar){return{branding:$a,calendar:t,...h(oa,e)}}function tt(e){return{branding:Ja,...h(ia,e)}}function nt(e){return{branding:es,sign:gn(e),...h(qi,e)}}function rt(e){return te(e.epochNanoseconds,hi)[0]}function ot(e){return e.epochNanoseconds}function it(e,t){return ee(wn(e),pi[t],1)}function at(e,t,n,r,o,i,a){const s=Ui[n],m={...t,[s]:t[s]+r},l=a(e,o,t),u=a(e,o,m);return[i(l),i(u)]}function st(e,t,n){const r=ee(V(t,n));if(!r)throw new RangeError(xo);return ee(V(t,e))/r}function mt(e,t,n,r){return lt(e,dt(t,n),r)}function lt(e,t,n){const[r,o]=ut(e,t,n);return oe({...sn(e,o),...r})}function ut(e,t,n){return se(bt(ae(e),t,n))}function ct(e){return bt(e,Mi,7)}function dt(e,t){return pi[e]*t}function ht(e){const t=ft(e);return[t,sn(t,1)]}function ft(e){return ma(6,e)}function Mt(e,t,n){const r=Math.min(Sn(e),6);return vn(pt(wn(e,r),t,n),r)}function yt(e,t,n,r,o,i,a,s,m,l){if(0===r&&1===o)return e;const u=hn(r,s)?dn(s)&&r<6&&n>=6?Et:vt:Tt;let[c,d,h]=u(e,t,n,r,o,i,a,s,m,l);return h&&7!==r&&(c=((e,t,n,r,o,i,a,s)=>{const m=gn(e);for(let l=r+1;l<=n;l++){if(7===l&&7!==n)continue;const r=ea(l,e);r[Ui[l]]+=m;const u=ee(V(a(s(o,i,r)),t));if(u&&Math.sign(u)!==m)break;e=r}return e})(c,d,n,Math.max(6,r),a,s,m,l)),c}function gt(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/gi)(e);return[bt(t,n,r),0]}return pt(e,dt(t,n),r,o)}function pt(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=gi,o-=1);const[a,s]=T(bt(i,t,n),gi);return U(o+a,s)}function bt(e,t,n){return wt(e/t,n)*t}function wt(e,t){return ts[t](e)}function vt(e,t,n,r,o,i){const a=gn(e),s=wn(e),m=gt(s,r,o,i),l=V(s,m),u=Math.sign(m[0]-s[0])===a,c=vn(m,Math.min(n,6));return[{...e,...c},q(t,l),u]}function Et(e,t,n,r,o,i,a,s,m,l){const u=gn(e)||1,c=ee(wn(e,5)),d=dt(r,o);let h=bt(c,d,i);const[f,M]=at(a,{...e,...Qi},6,u,s,m,l),y=h-ee(V(f,M));let g=0;y&&Math.sign(y)!==u?t=$(f,h):(g+=u,h=bt(y,d,i),t=$(M,h));const p=En(h);return[{...e,...p,days:e.days+g},t,Boolean(g)]}function Tt(e,t,n,r,o,i,a,s,m,l){const u=gn(e),c=Ui[r],d=ea(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const h=z(e[c],o)*o;d[c]=h;const[f,M]=at(a,d,r,o*u,s,m,l),y=h+st(t,f,M)*u*o,g=bt(y,o,i),p=Math.sign(g-y)===u;return d[c]=g,[d,p?M:f,p]}function St(e,t,n,r){const[o,i,a,s]=(e=>{const t=xe(e=Ye(e));return[e.timeZone,...t]})(r),m=void 0!==o;return((e,t,n,r,o,i)=>{n=pt(n,o,r,1);const a=t.R(n);return Pt(Me(n,a),i)+(e?Lt(ct(a)):"Z")})(m,t(m?e(o):ns),n.epochNanoseconds,i,a,s)}function Dt(e,t,n){const[r,o,i,a,s,m]=(e=>{e=Ye(e);const t=Ya(e),n=Fe(e),r=Wa(e),o=Ua(e,4),i=Na(e,4);return[t,Za(e),r,o,...Le(i,n)]})(n);return((e,t,n,r,o,i,a,s,m,l)=>{r=pt(r,m,s,1);const u=e(n).R(r);return Pt(Me(r,u),l)+Lt(ct(u),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+e+"]":"")(n,i)+jt(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,m)}function zt(e,t){const[n,r,o,i]=(e=>(e=Ye(e),[Ya(e),...xe(e)]))(t);return a=e.calendar,s=n,m=i,Pt(lt(e,o,r),m)+jt(a,s);var a,s,m}function At(e,t){return n=e.calendar,r=e,o=Be(t),Ot(r)+jt(n,o);var n,r,o}function Ht(e,t){return Ct(e.calendar,Bt,e,Be(t))}function kt(e,t){return Ct(e.calendar,Nt,e,Be(t))}function It(e,t){const[n,r,o]=Ne(t);return i=o,xt(ut(e,r,n)[0],i);var i}function _t(e,t){const[n,r,o]=Ne(t,3);return r>1&&pn(e={...e,...Mt(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?yn(e):e,{hours:o,minutes:i}=r,[a,s]=te(wn(r,3),fi,D);bn(a);const m=Ft(s,t),l=t>=0||!n||m;return(n<0?"-":"")+"P"+Gt({Y:Zt(r.years),M:Zt(r.months),W:Zt(r.weeks),D:Zt(r.days)})+(o||i||a||l?"T"+Gt({H:Zt(o),M:Zt(i),S:Zt(a,l)+m}):"")})(e,o)}function Ct(e,t,n,r){const o=r>1||0===r&&e!==Ni;return 1===r?e===Ni?t(n):Ot(n):o?Ot(n)+Rt(e,2===r):t(n)}function Gt(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Pt(e,t){return Ot(e)+"T"+xt(e,t)}function Ot(e){return Bt(e)+"-"+si(e.isoDay)}function Bt(e){const{isoYear:t}=e;return(t<0||t>9999?Yt(t)+w(6,Math.abs(t)):w(4,t))+"-"+si(e.isoMonth)}function Nt(e){return si(e.isoMonth)+"-"+si(e.isoDay)}function xt(e,t){const n=[si(e.isoHour),si(e.isoMinute)];return-1!==t&&n.push(si(e.isoSecond)+((e,t,n,r)=>Ft(e*hi+t*di+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Lt(e,t=0){if(1===t)return"";const[n,r]=T(Math.abs(e),yi),[o,i]=T(r,Mi),[a,s]=T(i,fi);return Yt(e)+si(n)+":"+si(o)+(a||s?":"+si(a)+Ft(s):"")}function jt(e,t){return 1!==t&&(t>1||0===t&&e!==Ni)?Rt(e,2===t):""}function Rt(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function Ft(e,t){let n=w(9,e);return n=void 0===t?n.replace(as,""):n.slice(0,t),n?"."+n:""}function Yt(e){return e<0?"-":"+"}function Zt(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Wt(e,t){const{epochNanoseconds:n}=e,r=(t.R?t:t(e.timeZone)).R(n),o=Me(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Ut(e,t,n,r=0,o=0,i,a){if(void 0!==n&&1===r&&(1===r||a))return ce(t,n);const s=e.I(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=ue(t);r&&(n=ct(n));for(const t of e){let e=ee(V(t,o));if(r&&(e=ct(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(Uo)}return a?ue(t):qt(e,t,o,s)}function qt(e,t,n=0,r=e.I(t)){if(1===r.length)return r[0];if(1===n)throw new RangeError(qo);if(r.length)return r[3===n?1:0];const o=ue(t),i=((e,t)=>{const n=e.R($(t,-gi));return(e=>{if(e>gi)throw new RangeError(Wo);return e})(e.R($(t,gi))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.I(Me(o,a)))[2===n?0:r.length-1]}function $t(e,t){const n=e.I(t);if(n.length)return n[0];const r=$(ue(t),-gi);return e.O(r,1)}function Vt(e,t,n){return Ve(ie(q(t.epochNanoseconds,(e=>{if(Tn(e))throw new RangeError(Xo);return wn(e,5)})(e?yn(n):n))))}function Kt(e,t,n,r,o,i=Object.create(null)){const a=t(r.timeZone),s=e(r.calendar);return{...r,...tn(a,s,r,n?yn(o):o,i)}}function Jt(e,t,n,r,o=Object.create(null)){const{calendar:i}=n;return Je(nn(e(i),n,t?yn(r):r,o),i)}function Xt(e,t,n,r,o){const{calendar:i}=n;return Xe(rn(e(i),n,t?yn(r):r,o),i)}function Qt(e,t,n,r,o){const i=n.calendar,a=e(i);let s=re(on(a,n));t&&(r=Mn(r)),r.sign<0&&(s=a.P(s,{...Xi,months:1}),s=sn(s,-1));const m=a.P(s,r,o);return Qe(on(a,m),i)}function en(e,t,n){return tt(an(t,e?yn(n):n)[0])}function tn(e,t,n,r,o){const i=wn(r,5);let a=n.epochNanoseconds;if(Tn(r)){const s=ss(n,e);a=q(qt(e,{...rn(t,s,{...r,...Qi},o),...h(ta,s)}),i)}else a=q(a,i),Ce(o);return{epochNanoseconds:ie(a)}}function nn(e,t,n,r){const[o,i]=an(t,n);return oe({...rn(e,t,{...n,...Qi,days:n.days+i},r),...o})}function rn(e,t,n,r){if(n.years||n.months||n.weeks)return e.P(t,n,r);Ce(r);const o=n.days+wn(n,5)[0];return o?re(sn(t,o)):t}function on(e,t,n=1){return sn(t,n-e.day(t))}function an(e,t){const[n,r]=wn(t,5),[o,i]=se(ae(e)+r);return[o,n+i]}function sn(e,t){return t?{...e,...ye(le(e)+t*ui)}:e}function mn(e,t,n){const r=e(n.calendar);return dn(n)?[n,r,t(n.timeZone)]:[{...n,...sa},r]}function ln(e){return e?ot:ue}function un(e){return e?g(tn,e):nn}function cn(e){return e?g(sr,e):mr}function dn(e){return e&&e.epochNanoseconds}function hn(e,t){return e<=6-(dn(t)?1:0)}function fn(e,t,n,r,o,i,a){const s=e(Ye(a).relativeTo),m=Math.max(Sn(o),Sn(i));if(hn(m,s))return nt(pn(((e,t,n,r)=>{const o=q(wn(e),wn(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError($o);return{...Xi,...vn(o,n)}})(o,i,m,r)));if(!s)throw new RangeError(Jo);r&&(i=yn(i));const[l,u,c]=mn(t,n,s),d=un(c),h=cn(c),f=d(u,l,o);return nt(h(u,l,d(u,f,i),m))}function Mn(e){return nt(yn(e))}function yn(e){const t={};for(const n of Ui)t[n]=-1*e[n]||0;return t}function gn(e,t=Ui){let n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Ko);n=t}}return n}function pn(e){for(const t of Ki)n(t,e[t],-ms,ms,1);return bn(ee(wn(e),fi)),e}function bn(e){if(!Number.isSafeInteger(e))throw new RangeError(Vo)}function wn(e,t=6){return k(e,t,Ui)}function vn(e,t=6){const[n,r]=e,o=I(r,t,Ui);if(o[Ui[t]]+=n*(gi/pi[t]),!Number.isFinite(o[Ui[t]]))throw new RangeError($o);return o}function En(e,t=5){return I(e,t,Ui)}function Tn(e){return Boolean(gn(e,Vi))}function Sn(e){let t=9;for(;t>0&&!e[Ui[t]];t--);return t}function Dn(e,t){return[e,t]}function zn(e){const t=Math.floor(e/rs)*rs;return[t,t+rs]}function An(e){const t=Nn(e);if(void 0===t)throw new RangeError(ti(e));return t}function Hn(e,t,n){let r=Pn(Yi(e));if(!r||r.j)throw new RangeError(ti(e));return t?r.calendar===Ni&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...sa}:{...r,isoDay:1,...sa}):n&&r.calendar===Ni&&(r={...r,isoYear:pa}),Xe(r.C?_n(r):Cn(r))}function kn(e){if(e.calendar!==Ni)throw new RangeError(ni(e.calendar))}function In(e,t,n=0,r=0){const o=Wn(e.timeZone),i=ls(o);let a;return Ae(e),a=e.C?Ut(i,e,t,n,r,!i.$,e.j):$t(i,e),Ke(a,o,Yr(e.calendar))}function _n(e){return Gn(oe(Ae(e)))}function Cn(e){return Gn(re(He(e)))}function Gn(e){return{...e,calendar:Yr(e.calendar)}}function Pn(e){const t=Es.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:xn(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Ln(e.slice(5)),...jn(e[16]),C:Boolean(e[6]),j:n,offset:n?void 0:t}})(t):void 0}function On(e){const t=ws.exec(e);return t?(e=>({isoYear:xn(e),isoMonth:parseInt(e[4]),isoDay:1,...jn(e[5])}))(t):void 0}function Bn(e){const t=vs.exec(e);return t?(e=>({isoYear:pa,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...jn(e[3])}))(t):void 0}function Nn(e,t){const n=Ss.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(ni(n));return(e=>{if(Math.abs(e)>=gi)throw new RangeError(Zo);return e})((Zn(e[2])*yi+Zn(e[3])*Mi+Zn(e[4])*fi+Rn(e[5]||""))*Yn(e[1]))})(n,t):void 0}function xn(e){const t=Yn(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(ni(-0));return t*n}function Ln(e){const t=Zn(e[3]);return{...se(Rn(e[4]||""))[0],isoHour:Zn(e[1]),isoMinute:Zn(e[2]),isoSecond:60===t?59:t}}function jn(e){let t,n;const r=[];if(e.replace(Ds,(e,o,i)=>{const a=Boolean(o),[s,m]=i.split("=").reverse();if(m){if("u-ca"===m)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(m))throw new RangeError(ni(e))}else{if(n)throw new RangeError(ni(e));n=s}return""}),r.length>1&&t)throw new RangeError(ni(e));return{timeZone:n,calendar:r[0]||Ni}}function Rn(e){return parseInt(e.padEnd(9,"0"))}function Fn(e){return new RegExp(`^${e}$`,"i")}function Yn(e){return e&&"+"!==e?-1:1}function Zn(e){return void 0===e?0:parseInt(e)}function Wn(e){const t=qn(e);return"number"==typeof t?Lt(t):t?(e=>{if(ks.test(e))throw new RangeError(Ro(e));if(Hs.test(e))throw new RangeError(Yo);return e.toLowerCase().split("/").map((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?p(e).replace(/island|noronha|murdo|rivadavia|urville/,p):e)).join("/")})(e):ns}function Un(e){const t=qn(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:ns}function qn(e){const t=Nn(e=e.toUpperCase(),1);return void 0!==t?t:e!==ns?As(e):void 0}function $n(e,t){return K(e.epochNanoseconds,t.epochNanoseconds)}function Vn(e,t){return K(e.epochNanoseconds,t.epochNanoseconds)}function Kn(e,t){return Jn(e,t)||Xn(e,t)}function Jn(e,t){return v(le(e),le(t))}function Xn(e,t){return v(ae(e),ae(t))}function Qn(e,t){if(e===t)return 1;try{return Un(e)===Un(t)}catch(e){}}function er(e,t,n,r){const o=Pe(e,r,3,5),i=cr(t.epochNanoseconds,n.epochNanoseconds,...o);return nt(e?yn(i):i)}function tr(e,t,n,r,o,i){const a=yr(r.calendar,o.calendar),[s,m,l,u]=Pe(n,i,5),c=r.epochNanoseconds,d=o.epochNanoseconds,h=K(d,c);let f;if(h)if(s<6)f=cr(c,d,s,m,l,u);else{const n=t(((e,t)=>{if(!Qn(e,t))throw new RangeError(Fo);return e})(r.timeZone,o.timeZone)),c=e(a);f=lr(c,n,r,o,h,s,i),f=yt(f,d,s,m,l,u,c,r,ot,g(tn,n))}else f=Xi;return nt(n?yn(f):f)}function nr(e,t,n,r,o){const i=yr(n.calendar,r.calendar),[a,s,m,l]=Pe(t,o,6),u=ue(n),c=ue(r),d=K(c,u);let h;if(d)if(a<=6)h=cr(u,c,a,s,m,l);else{const t=e(i);h=ur(t,n,r,d,a,o),h=yt(h,c,a,s,m,l,t,n,ue,nn)}else h=Xi;return nt(t?yn(h):h)}function rr(e,t,n,r,o){const i=yr(n.calendar,r.calendar);return ir(t,()=>e(i),n,r,...Pe(t,o,6,9,6))}function or(e,t,n,r,o){const i=yr(n.calendar,r.calendar),a=Pe(t,o,9,9,8),s=e(i),m=on(s,n),l=on(s,r);return m.isoYear===l.isoYear&&m.isoMonth===l.isoMonth&&m.isoDay===l.isoDay?nt(Xi):ir(t,()=>s,re(m),re(l),...a,8)}function ir(e,t,n,r,o,i,a,s,m=6){const l=ue(n),u=ue(r);if(void 0===l||void 0===u)throw new RangeError($o);let c;if(K(u,l))if(6===o)c=cr(l,u,o,i,a,s);else{const e=t();c=e.N(n,r,o),i===m&&1===a||(c=yt(c,u,o,i,a,s,e,n,ue,rn))}else c=Xi;return nt(e?yn(c):c)}function ar(e,t,n,r){const[o,i,a,s]=Pe(e,r,5,5),m=bt(Mr(t,n),dt(i,a),s),l={...Xi,...En(m,o)};return nt(e?yn(l):l)}function sr(e,t,n,r,o,i){const a=K(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?dr(n.epochNanoseconds,r.epochNanoseconds,o):lr(t,e,n,r,a,o,i):Xi}function mr(e,t,n,r,o){const i=ue(t),a=ue(n),s=K(a,i);return s?r<=6?dr(i,a,r):ur(e,t,n,s,r,o):Xi}function lr(e,t,n,r,o,i,a){const[s,m,l]=((e,t,n,r)=>{function o(){return c={...sn(s,l++*-r),...a},d=qt(e,c),K(m,d)===-r}const i=ss(t,e),a=h(ta,i),s=ss(n,e),m=n.epochNanoseconds;let l=0;const u=Mr(i,s);let c,d;if(Math.sign(u)===-r&&l++,o()&&(-1===r||o()))throw new RangeError(xo);const f=ee(V(d,m));return[i,c,f]})(t,n,r,o);var u,c;return{...6===i?(u=s,c=m,{...Xi,days:hr(u,c)}):e.N(s,m,i,a),...En(l)}}function ur(e,t,n,r,o,i){const[a,s,m]=((e,t,n)=>{let r=t,o=Mr(e,t);return Math.sign(o)===-n&&(r=sn(t,-n),o+=gi*n),[e,r,o]})(t,n,r);return{...e.N(a,s,o,i),...En(m)}}function cr(e,t,n,r,o,i){return{...Xi,...vn(gt(V(e,t),r,o,i),n)}}function dr(e,t,n){return{...Xi,...vn(V(e,t),n)}}function hr(e,t){return fr(le(e),le(t))}function fr(e,t){return Math.trunc((t-e)/ui)}function Mr(e,t){return ae(t)-ae(e)}function yr(e,t){if(e!==t)throw new RangeError(jo);return e}function gr(e){return this.m(e)[0]}function pr(e){return this.m(e)[1]}function br(e){const[t]=this.v(e);return fr(this.p(t),le(e))+1}function wr(e){const t=Is.exec(e);if(!t)throw new RangeError(Po(e));return[parseInt(t[1]),Boolean(t[2])]}function vr(e,t){return"M"+si(e)+(t?"L":"")}function Er(e,t,n){return e+(t||n&&e>=n?1:0)}function Tr(e,t){return e-(t&&e>=t?1:0)}function Sr(e,t){return(t+e)*(Math.sign(t)||1)||0}function Dr(e){return ji[Ar(e)]}function zr(e){return Fi[Ar(e)]}function Ar(e){return Zr(e.id||Ni)}function Hr(e){function t(e){return((e,t)=>({..._r(e,t),o:e.month,day:parseInt(e.day)}))(ge(n,e),r)}const n=Cs(e),r=Zr(e);return{id:e,h:kr(t),l:Ir(t)}}function kr(e){return o(t=>{const n=le(t);return e(n)},WeakMap)}function Ir(e){const t=e(0).year-ga;return o(n=>{let r,o=he(n-t),i=0;const a=[],s=[];do{o+=400*ui}while((r=e(o)).year<=n);do{if(o+=(1-r.day)*ui,r.year===n&&(a.push(o),s.push(r.o)),o-=ui,++i>100||o<-ua)throw new RangeError(xo)}while((r=e(o)).year>=n);return{i:a.reverse(),u:ii(s.reverse())}})}function _r(e,t){let n,r,o=Cr(e);if(e.era){const i=ji[t],a=Ri[t]||{};void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"===n||"a"===n?n="ce":"beforeroc"===n&&(n="broc"),n=a[n]||n,r=o,o=Sr(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function Cr(e){return parseInt(e.relatedYear||e.year)}function Gr(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Pr(e,t=1,n=1){return this.l(e).i[t-1]+(n-1)*ui}function Or(e,t){const n=Br.call(this,e);return[Tr(t,n),n===t]}function Br(e){const t=Rr(this,e),n=Rr(this,e-1),r=t.length;if(r>n.length){const e=zr(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Nr(e){return fr(Pr.call(this,e),Pr.call(this,e+1))}function xr(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),fr(n[t-1],o[r-1])}function Lr(e){return this.l(e).i.length}function jr(e){const t=this.h(e);return[t.era,t.eraYear]}function Rr(e,t){return Object.keys(e.l(t).u)}function Fr(e){return Yr(Yi(e))}function Yr(e){if((e=e.toLowerCase())!==Ni&&e!==xi){const t=Cs(e).resolvedOptions().calendar;if(Zr(e)!==Zr(t))throw new RangeError(Lo(e));return t}return e}function Zr(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function Wr(e,t){return n=>n===Ni?e:n===xi||n===Li?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),_s(n))}function Ur(e,t,n,r){const o=qr(n,r,Gi,[],Si);if(void 0!==o.timeZone){const r=n.F(o),i=Vr(o),a=e(o.timeZone);return{epochNanoseconds:Ut(t(a),{...r,...i},void 0!==o.offset?An(o.offset):void 0),timeZone:a}}return{...n.F(o),...sa}}function qr(e,t,n,r=[],o=[]){return $r(t,[...e.fields(n),...o].sort(),r)}function $r(e,t,n,r=!n){const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(Do(r));if("constructor"===r||"__proto__"===r)throw new RangeError(So(r));let t=e[r];if(void 0!==t)a=1,Ys[r]&&(t=Ys[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(To(r));o[r]=Bi[r]}i=r}if(r&&!a)throw new TypeError(zo(t));return o}function Vr(e,t){return _e(Zs({...Bi,...e}),t)}function Kr(e,t,n,r,o){t=h(n=e.fields(n),t),r=$r(r,o=e.fields(o),[]);let i=e.k(t,r);return i=$r(i,[...n,...o].sort(),[]),e.F(i)}function Jr(e,t){const n=Dr(e),r=Ri[e.id||""]||{};let{era:o,eraYear:i,year:a}=t;if(void 0!==o||void 0!==i){if(void 0===o||void 0===i)throw new TypeError(Io);if(!n)throw new RangeError(ko);const e=n[r[o]||o];if(void 0===e)throw new RangeError(Co(o));const t=Sr(i,e);if(void 0!==a&&a!==t)throw new RangeError(_o);a=t}else if(void 0===a)throw new TypeError(Go(n));return a}function Xr(e,t,r,o){let{month:i,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.L(n),[i,a]=wr(t);let s=Er(i,a,o);if(a){const t=zr(e);if(void 0===t)throw new RangeError(No);if(t>0){if(s>t)throw new RangeError(No);if(void 0===o){if(1===r)throw new RangeError(No);s--}}else{if(s!==-t)throw new RangeError(No);if(void 0===o&&1===r)throw new RangeError(No)}}return s})(e,a,r,o);if(void 0!==i&&i!==t)throw new RangeError(Oo);i=t,o=1}else if(void 0===i)throw new TypeError(Bo);return n("month",i,1,e.B(r),o)}function Qr(e,n,r,o,i){return t(n,"day",1,e.U(o,r),i)}function eo(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function to(e){const t=Rs(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{year:n,monthCode:vr(i,a),day:o}}function no(e,t){return Je(ss(t,e))}function ro(e,t){return Xe(ss(t,e))}function oo(e,t){return tt(ss(t,e))}function io(e,t,n){const r=new Set(n);return(o,i)=>{const a=n&&f(o,n);if(!f(o=((e,t)=>{const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n})(r,o),e)){if(i&&a)throw new TypeError("Invalid formatting options");o={...t,...o}}return n&&(o.timeZone=ns,["full","long"].includes(o.J)&&(o.J="medium")),o}}function ao(e,t=so,n=0){const[r,,,o]=e;return(i,a=vm,...s)=>{const m=t(o&&o(...s),i,a,r,n),l=m.resolvedOptions();return[m,...mo(e,l,s)]}}function so(e,t,n,r,o){if(n=r(n,o),e){if(void 0!==n.timeZone)throw new TypeError(oi);n.timeZone=e}return new Ma(t,n)}function mo(e,t,n){const[,r,o]=e;return n.map(e=>(e.calendar&&((e,t,n)=>{if((n||e!==Ni)&&e!==t)throw new RangeError(jo)})(e.calendar,t.calendar,o),r(e,t)))}function lo(e,t){return{...e,calendar:t}}function uo(e){const t=co();return Me(t,e.R(t))}function co(){return Q(Date.now(),hi)}function ho(){return Im||(Im=(new Ma).resolvedOptions().timeZone)}const fo=(e,t)=>`Non-integer ${e}: ${t}`,Mo=(e,t)=>`Non-positive ${e}: ${t}`,yo=(e,t)=>`Non-finite ${e}: ${t}`,go=e=>`Cannot convert bigint to ${e}`,po=e=>`Invalid bigint: ${e}`,bo="Cannot convert Symbol to string",wo="Invalid object",vo=(e,t,n,r,o)=>o?vo(e,o[t],o[n],o[r]):Eo(e,t)+`; must be between ${n}-${r}`,Eo=(e,t)=>`Invalid ${e}: ${t}`,To=e=>`Missing ${e}`,So=e=>`Invalid field ${e}`,Do=e=>`Duplicate field ${e}`,zo=e=>"No valid fields: "+e.join(),Ao=(e,t,n)=>Eo(e,t)+"; must be "+Object.keys(n).join(),Ho="Invalid calling context",ko="Forbidden era/eraYear",Io="Mismatching era/eraYear",_o="Mismatching year/eraYear",Co=e=>`Invalid era: ${e}`,Go=e=>"Missing year"+(e?"/era/eraYear":""),Po=e=>`Invalid monthCode: ${e}`,Oo="Mismatching month/monthCode",Bo="Missing month/monthCode",No="Invalid leap month",xo="Invalid protocol results",Lo=e=>Eo("Calendar",e),jo="Mismatching Calendars",Ro=e=>Eo("TimeZone",e),Fo="Mismatching TimeZones",Yo="Forbidden ICU TimeZone",Zo="Out-of-bounds offset",Wo="Out-of-bounds TimeZone gap",Uo="Invalid TimeZone offset",qo="Ambiguous offset",$o="Out-of-bounds date",Vo="Out-of-bounds duration",Ko="Cannot mix duration signs",Jo="Missing relativeTo",Xo="Cannot use large units",Qo="Required smallestUnit or largestUnit",ei="smallestUnit > largestUnit",ti=e=>`Cannot parse: ${e}`,ni=e=>`Invalid substring: ${e}`,ri="Mismatching types for formatting",oi="Cannot specify TimeZone",ii=g(c,(e,t)=>t),ai=g(c,(e,t,n)=>n),si=g(w,2),mi={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},li=Object.keys(mi),ui=864e5,ci=1e3,di=1e3,hi=1e6,fi=1e9,Mi=6e10,yi=36e11,gi=864e11,pi=[1,di,hi,fi,Mi,yi,gi],bi=li.slice(0,6),wi=b(bi),vi=["offset"],Ei=["timeZone"],Ti=bi.concat(vi),Si=Ti.concat(Ei),Di=["era","eraYear"],zi=Di.concat(["year"]),Ai=["year"],Hi=["monthCode"],ki=["month"].concat(Hi),Ii=["day"],_i=ki.concat(Ai),Ci=Hi.concat(Ai),Gi=Ii.concat(_i),Pi=Ii.concat(ki),Oi=Ii.concat(Hi),Bi=ai(bi,0),Ni="iso8601",xi="gregory",Li="japanese",ji={[xi]:{"gregory-inverse":-1,gregory:0},[Li]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Ri={[xi]:{bce:"gregory-inverse",ce:"gregory"},[Li]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Fi={chinese:13,dangi:13,hebrew:-6},Yi=g(B,"string"),Zi=g(B,"boolean"),Wi=g(B,"number"),Ui=li.map(e=>e+"s"),qi=b(Ui),$i=Ui.slice(0,6),Vi=Ui.slice(6),Ki=Vi.slice(1),Ji=ii(Ui),Xi=ai(Ui,0),Qi=ai($i,0),ea=g(y,Ui),ta=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],na=["isoDay","isoMonth","isoYear"],ra=ta.concat(na),oa=b(na),ia=b(ta),aa=b(ra),sa=ai(ia,0),ma=g(y,ra),la=1e8,ua=la*ui,ca=[la,0],da=[-la,0],ha=275760,fa=-271821,Ma=Intl.DateTimeFormat,ya="en-GB",ga=1970,pa=1972,ba=12,wa=he(1868,9,8),va=o(ze,WeakMap),Ea="smallestUnit",Ta="unit",Sa="roundingIncrement",Da="fractionalSecondDigits",za="relativeTo",Aa="direction",Ha={constrain:0,reject:1},ka=Object.keys(Ha),Ia={compatible:0,reject:1,earlier:2,later:3},_a={reject:0,use:1,prefer:2,ignore:3},Ca={auto:0,never:1,critical:2,always:3},Ga={auto:0,never:1,critical:2},Pa={auto:0,never:1},Oa={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Ba={previous:-1,next:1},Na=g(Ue,Ea),xa=g(Ue,"largestUnit"),La=g(Ue,Ta),ja=g(qe,"overflow",Ha),Ra=g(qe,"disambiguation",Ia),Fa=g(qe,"offset",_a),Ya=g(qe,"calendarName",Ca),Za=g(qe,"timeZoneName",Ga),Wa=g(qe,"offset",Pa),Ua=g(qe,"roundingMode",Oa),qa="PlainYearMonth",$a="PlainMonthDay",Va="PlainDate",Ka="PlainDateTime",Ja="PlainTime",Xa="ZonedDateTime",Qa="Instant",es="Duration",ts=[Math.floor,e=>H(e)?Math.floor(e):Math.round(e),Math.ceil,e=>H(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>H(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>H(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ns="UTC",rs=5184e3,os=de(1847),is=de((new Date).getUTCFullYear()+10),as=/0+$/,ss=o(Wt,WeakMap),ms=2**32-1,ls=o(e=>{const t=qn(e);return"object"==typeof t?new cs(t):new us(t||0)});class us{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const t=ue({...e,...sa});if(!t||Math.abs(t[0])>1e8)throw new RangeError($o)})(e),[ce(e,this.$)]}O(){}}class cs{constructor(e){this.nn=(e=>{function t(e){const t=E(e,a,s),[o,m]=zn(t),l=r(o),u=r(m);return l===u?l:n(i(o,m),l,u,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=o(e),i=o(Dn);let a=os,s=is;return{tn(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},rn:t,O(e,t){const o=E(e,a,s);let[m,l]=zn(o);const u=rs*t,c=t<0?()=>l>a||(a=o,0):()=>m<s||(s=o,0);for(;c();){const o=r(m),a=r(l);if(o!==a){const r=i(m,l);n(r,o,a);const s=r[0];if((v(s,e)||1)===t)return s}m+=u,l+=u}}}})((e=>t=>{const n=ge(e,t*ci);return de(Cr(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}R(e){return this.nn.rn((e=>me(e)[0])(e))*fi}I(e){const[t,n]=[de((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*hi+r.isoMicrosecond*di+r.isoNanosecond];var r;return this.nn.tn(t).map(e=>ie($(Q(e,fi),n)))}O(e,t){const[n,r]=me(e),o=this.nn.O(n+(t>0||r?1:0),t);if(void 0!==o)return Q(o,fi)}}const ds="([+-])",hs="(?:[.,](\\d{1,9}))?",fs=`(?:(?:${ds}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Ms="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+hs+")?)?",ys=ds+Ms,gs=fs+"-?(\\d{2})(?:[T ]"+Ms+"(Z|"+ys+")?)?",ps="\\[(!?)([^\\]]*)\\]",bs=`((?:${ps}){0,9})`,ws=Fn(fs+bs),vs=Fn("(?:--)?(\\d{2})-?(\\d{2})"+bs),Es=Fn(gs+bs),Ts=Fn("T?"+Ms+"(?:"+ys+")?"+bs),Ss=Fn(ys),Ds=new RegExp(ps,"g"),zs=Fn(`${ds}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${hs}H)?(?:(\\d+)${hs}M)?(?:(\\d+)${hs}S)?)?`),As=o(e=>new Ma(ya,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),Hs=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,ks=/[^\w\/:+-]+/,Is=/^M(\d{2})(L?)$/,_s=o(Hr),Cs=o(e=>new Ma(ya,{calendar:e,timeZone:ns,era:"short",year:"numeric",month:"short",day:"numeric"})),Gs={P(e,t,r){const o=Ce(r);let i,{years:a,months:s,weeks:m,days:l}=t;if(l+=wn(t,5)[0],a||s)i=((e,t,r,o,i)=>{let[a,s,m]=e.v(t);if(r){const[t,o]=e.q(a,s);a+=r,s=Er(t,o,e.L(a)),s=n("month",s,1,e.B(a),i)}return o&&([a,s]=e.un(a,s,o)),m=n("day",m,1,e.U(a,s),i),e.p(a,s,m)})(this,e,a,s,o);else{if(!m&&!l)return e;i=le(e)}if(void 0===i)throw new RangeError($o);return i+=(7*m+l)*ui,re(ye(i))},N(e,t,n){if(n<=7){let r=0,o=hr({...e,...sa},{...t,...sa});return 7===n&&([r,o]=D(o,7)),{...Xi,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,m=i-n,l=a-r;if(s||m){const u=Math.sign(s||m);let c=e.U(o,i),d=0;if(Math.sign(l)===-u){const r=c;[o,i]=e.un(o,i,-u),s=o-t,m=i-n,c=e.U(o,i),d=u<0?-r:c}if(l=a-Math.min(r,c)+d,s){const[r,a]=e.q(t,n),[l,c]=e.q(o,i);if(m=l-r||Number(c)-Number(a),Math.sign(m)===-u){const n=u<0&&-e.B(o);s=(o-=u)-t,m=i-Er(r,a,e.L(o))+(n||e.B(o))}}}return[s,m,l]})(this,...r,...o);return 8===n&&(a+=this.cn(i,r[0]),i=0),{...Xi,years:i,months:a,days:s}},F(e,t){const n=Ce(t),r=Jr(this,e),o=Xr(this,e,r,n),i=Qr(this,e,o,r,n);return Xe(re(this.V(r,o,i)),this.id||Ni)},K(e,t){const n=Ce(t),r=Jr(this,e),o=Xr(this,e,r,n);return Qe(ne(this.V(r,o,1)),this.id||Ni)},_(e,t){const n=Ce(t);let r,o,i,a=void 0!==e.eraYear||void 0!==e.year?Jr(this,e):void 0;const s=!this.id;if(void 0===a&&s&&(a=pa),void 0!==a){const t=Xr(this,e,a,n);r=Qr(this,e,t,a,n);const s=this.L(a);o=Tr(t,s),i=t===s}else{if(void 0===e.monthCode)throw new TypeError(Bo);if([o,i]=wr(e.monthCode),this.id&&this.id!==xi&&this.id!==Li)if(this.id&&"coptic"===Zr(this.id)&&0===n){const t=i||13!==o?30:6;r=e.day,r=E(r,1,t)}else if(this.id&&"chinese"===Zr(this.id)&&0===n){const t=!i||1!==o&&9!==o&&10!==o&&11!==o&&12!==o?30:29;r=e.day,r=E(r,1,t)}else r=e.day;else r=Qr(this,e,Xr(this,e,pa,n),pa,n)}const m=this.G(o,i,r);if(!m)throw new RangeError("Cannot guess year");const[l,u]=m;return et(re(this.V(l,u,r)),this.id||Ni)},fields(e){return Dr(this)&&e.includes("year")?[...e,...Di]:e},k(e,t){const n=Object.assign(Object.create(null),e);return eo(n,t,ki),Dr(this)&&(eo(n,t,zi),this.id===Li&&eo(n,t,Pi,Di)),n},inLeapYear(e){const[t]=this.v(e);return this.sn(t)},monthsInYear(e){const[t]=this.v(e);return this.B(t)},daysInMonth(e){const[t,n]=this.v(e);return this.U(t,n)},daysInYear(e){const[t]=this.v(e);return this.fn(t)},dayOfYear:br,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.q(t,n);return vr(r,o)},dayOfWeek:Se,daysInWeek:()=>7},Ps={v:pe,hn:De,q:be},Os={dayOfYear:br,v:pe,p:he},Bs=Object.assign({},Os,{weekOfYear:gr,yearOfWeek:pr,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Ee(d+e),r=e||1,o=t(S(m+n*r,7));return u=(n+(o-l)*r)/7}const r=this.id?1:4,o=Se(e),i=this.dayOfYear(e),a=S(o-1,7),s=i-1,m=S(a-s,7),l=t(m);let u,c=Math.floor((s-l)/7)+1,d=e.isoYear;return c?c>n(0)&&(c=1,d++):(c=n(-1),d--),[c,d,u]}}),Ns=Object.assign({},Gs,Bs,{v:pe,hn:De,q:be,G(e,t){if(!t)return[pa,e]},sn:Te,L(){},B:we,cn:e=>e*ba,U:ve,fn:Ee,V:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:he,un:(e,t,n)=>(e+=z(n,ba),(t+=A(n,ba))<1?(e--,t+=ba):t>ba&&(e++,t-=ba),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),xs={v:Gr,hn:jr,q:Or},Ls={dayOfYear:br,v:Gr,p:Pr,weekOfYear:gr,yearOfWeek:pr,m:()=>[]},js=Object.assign({},Gs,Ls,{v:Gr,hn:jr,q:Or,G(e,t,n){const r=this.id&&"chinese"===Zr(this.id)?((e,t,n)=>{if(t)switch(e){case 1:return 1651;case 2:return n<30?1947:1765;case 3:return n<30?1966:1955;case 4:return n<30?1963:1944;case 5:return n<30?1971:1952;case 6:return n<30?1960:1941;case 7:return n<30?1968:1938;case 8:return n<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,t,n):pa;let[o,i,a]=Gr.call(this,{isoYear:r,isoMonth:ba,isoDay:31});const s=Br.call(this,o),m=i===s;1===(v(e,Tr(i,s))||v(Number(t),Number(m))||v(n,a))&&o--;for(let r=0;r<100;r++){const i=o-r,a=Br.call(this,i),s=Er(e,t,a);if(t===(s===a)&&n<=xr.call(this,i,s))return[i,s]}},sn(e){const t=Nr.call(this,e);return t>Nr.call(this,e-1)&&t>Nr.call(this,e+1)},L:Br,B:Lr,cn(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=Lr.call(this,e+o);return i},U:xr,fn:Nr,V(e,t,n){return ye(Pr.call(this,e,t,n))},p:Pr,un(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError($o);if(n<0)for(;t<1;)t+=Lr.call(this,--e);else{let n;for(;t>(n=Lr.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}}),Rs=Wr(Ps,xs),Fs=Wr(Ns,js),Ys={...{era:j,eraYear:Y,year:Y,month:W,monthCode(e){const t=j(e);return wr(t),t},day:W},...ai(bi,Y),...ai(Ui,Z),offset(e){const t=j(e);return An(t),t}},Zs=g(d,bi,ta),Ws=g(d,ta,bi),Us="numeric",qs=["timeZoneName"],$s={month:Us,day:Us},Vs={year:Us,month:Us},Ks=Object.assign({},Vs,{day:Us}),Js={hour:Us,minute:Us,second:Us},Xs=Object.assign({},Ks,Js),Qs=Object.assign({},Xs,{timeZoneName:"short"}),em=Object.keys(Vs),tm=Object.keys($s),nm=Object.keys(Ks),rm=Object.keys(Js),om=["dateStyle"],im=em.concat(om),am=tm.concat(om),sm=nm.concat(om,["weekday"]),mm=rm.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),lm=sm.concat(mm),um=qs.concat(mm),cm=qs.concat(sm),dm=qs.concat(["day","weekday"],mm),hm=qs.concat(["year","weekday"],mm),fm=io(lm,Xs),Mm=io(lm,Qs),ym=io(lm,Xs,qs),gm=io(sm,Ks,um),pm=io(mm,Js,cm),bm=io(im,Vs,dm),wm=io(am,$s,hm),vm={},Em=new Ma(void 0,{calendar:Ni}).resolvedOptions().calendar===Ni,Tm=[fm,rt],Sm=[Mm,rt,0,(e,t)=>{const n=e.timeZone;if(t&&t.timeZone!==n)throw new RangeError(Fo);return n}],Dm=[ym,le],zm=[gm,le],Am=[pm,e=>ae(e)/hi],Hm=[bm,le,Em],km=[wm,le,Em];let Im;function _m(e,t,n,r,o){function l(...e){if(!(this instanceof l))throw new TypeError(Ho);rl(this,t(...e))}function c(e,t){return Object.defineProperties(function(...t){return e.call(this,d(this),...t)},i(t))}function d(t){const n=nl(t);if(!n||n.branding!==e)throw new TypeError(Ho);return n}return Object.defineProperties(l.prototype,{...s(u(c,n)),...a(u(c,r)),...m("Temporal."+e)}),Object.defineProperties(l,{...a(o),...i(e)}),[l,e=>{const t=Object.create(l.prototype);return rl(t,e),t},d]}function Cm(e){if(nl(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Gm(e){return Pm(e)||Ni}function Pm(e){const{calendar:t}=e;if(void 0!==t)return Om(t)}function Om(e){if(r(e)){const{calendar:t}=nl(e)||{};if(!t)throw new TypeError(Lo(e));return t}return(e=>Yr(function(e){const t=Pn(e)||On(e)||Bn(e);return t?t.calendar:e}(Yi(e))))(e)}function Bm(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return Fs(t)[n](e)};return t}function Nm(){throw new TypeError("Cannot use valueOf")}function xm(e){if(r(e)){const{timeZone:t}=nl(e)||{};if(!t)throw new TypeError(Ro(e));return t}return(e=>Wn(function(e){const t=Pn(e);return t&&(t.timeZone||t.j&&ns||t.offset)||e}(Yi(e))))(e)}function Lm(e){if(r(e)){const t=nl(e);return t&&t.branding===es?t:function(e){const t=$r(e,qi);return nt(pn({...Xi,...t}))}(e)}return function(e){const t=(e=>{const t=zs.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=T(o,pi[i])),void 0!==e){if(r)throw new RangeError(ni(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(ni(e));return t})(e),n=1,t&&(o=Rn(t)*(pi[i]/fi),r=1)}return a+s}let n=0,r=0,o=0,i={...l(Ui,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...I(o,2,Ui)};if(!n)throw new RangeError(zo(Ui));return Yn(e[1])<0&&(i=yn(i)),i})(t):void 0})(Yi(e));if(!t)throw new RangeError(ti(e));return nt(pn(t))}(e)}function jm(e){if(void 0!==e){if(r(e)){const t=nl(e)||{};switch(t.branding){case Xa:case Va:return t;case Ka:return Xe(t)}const n=Gm(e);return{...Ur(xm,ls,Fs(n),e),calendar:n}}return function(e){const t=Pn(Yi(e));if(!t)throw new RangeError(ti(e));if(t.timeZone)return In(t,t.offset?An(t.offset):void 0);if(t.j)throw new RangeError(ti(e));return Cn(t)}(e)}}function Rm(e,t){if(r(e)){const n=nl(e)||{};switch(n.branding){case Ja:return Ce(t),n;case Ka:return Ce(t),tt(n);case Xa:return Ce(t),oo(ls,n)}return function(e,t){return tt(Vr($r(e,wi,[],1),Ce(t)))}(e,t)}const n=function(e){let t,n=(e=>{const t=Ts.exec(e);return t?(jn(t[10]),Ln(t)):void 0})(Yi(e));if(!n){if(n=Pn(e),!n)throw new RangeError(ti(e));if(!n.C)throw new RangeError(ti(e));if(n.j)throw new RangeError(ni("Z"));kn(n)}if((t=On(e))&&ke(t))throw new RangeError(ti(e));if((t=Bn(e))&&ke(t))throw new RangeError(ti(e));return tt(_e(n,1))}(e);return Ce(t),n}function Fm(e){return void 0===e?void 0:Rm(e)}function Ym(e,t){if(r(e)){const n=nl(e)||{};switch(n.branding){case Ka:return Ce(t),n;case Va:return Ce(t),Je({...n,...sa});case Xa:return Ce(t),no(ls,n)}return function(e,t,n){const r=qr(e,t,Gi,[],bi),o=Ce(n);return Je(oe({...e.F(r,We(o)),...Vr(r,o)}))}(Fs(Gm(e)),e,t)}const n=function(e){const t=Pn(Yi(e));if(!t||t.j)throw new RangeError(ti(e));return Je(_n(t))}(e);return Ce(t),n}function Zm(e,t){if(r(e)){const n=nl(e);if(n&&n.branding===$a)return Ce(t),n;const r=Pm(e);return function(e,t,n,r){const o=qr(e,n,Gi,Ii);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=pa),e._(o,r)}(Fs(r||Ni),!r,e,t)}const n=function(e,t){const n=Bn(Yi(t));if(n)return kn(n),et(He(n));const r=Hn(t,0,1),{calendar:o}=r,i=e(o),[a,s,m]=i.v(r),[l,u]=i.q(a,s),[c,d]=i.G(l,u,m);return et(re(i.V(c,d,m)),o)}(Fs,e);return Ce(t),n}function Wm(e,t){if(r(e)){const n=nl(e);return n&&n.branding===qa?(Ce(t),n):function(e,t,n,r){const o=qr(e,t,_i,r);return e.K(o,n)}(Fs(Gm(e)),e,t)}const n=function(e,t){const n=On(Yi(t));if(n)return kn(n),Qe(ne(He(n)));const r=Hn(t,1);return Qe(on(e(r.calendar),r))}(Fs,e);return Ce(t),n}function Um(e,t){if(r(e)){const n=nl(e)||{};switch(n.branding){case Va:return Ce(t),n;case Ka:return Ce(t),Xe(n);case Xa:return Ce(t),ro(ls,n)}return function(e,t,n,r=[]){const o=qr(e,t,Gi,r);return e.F(o,n)}(Fs(Gm(e)),e,t)}const n=Hn(e);return Ce(t),n}function qm(e,t){if(r(e)){const n=nl(e);if(n&&n.branding===Xa)return Ge(t),n;const r=Gm(e);return function(e,t,n,r,o,i){const a=qr(n,o,Gi,Ei,Si),s=e(a.timeZone),[m,l,u]=Ge(i),c=n.F(a,We(m)),d=Vr(a,m);return Ke(Ut(t(s),{...c,...d},void 0!==a.offset?An(a.offset):void 0,l,u),s,r)}(xm,ls,Fs(r),r,e,t)}return function(e,t){const n=Pn(Yi(e));if(!n||!n.timeZone)throw new RangeError(ti(e));const{offset:r}=n,o=r?An(r):void 0,[,i,a]=Ge(t);return In(n,o,i,a)}(e,t)}function $m(e){return u(e=>t=>e(Vm(t)),e)}function Vm(e){return ss(e,ls)}function Km(e){if(r(e)){const t=nl(e);if(t)switch(t.branding){case Qa:return t;case Xa:return Ve(t.epochNanoseconds)}}return function(e){const t=Pn(e=j(e));if(!t)throw new RangeError(ti(e));let n;if(t.j)n=0;else{if(!t.offset)throw new RangeError(ti(e));n=An(t.offset)}return t.timeZone&&Nn(t.timeZone,1),Ve(ce(Ae(t),n))}(e)}function Jm(){function e(e,n){return new t(e,n)}function t(e,t=Object.create(null)){Fl.set(this,((e,t)=>{const n=new Ma(e,t),r=n.resolvedOptions(),i=r.locale,a=h(Object.keys(t),r),s=o(el),m=(e,...t)=>{if(e){if(2!==t.length)throw new TypeError(ri);for(const e of t)if(void 0===e)throw new TypeError(ri)}e||void 0!==t[0]||(t=[]);const r=t.map(e=>nl(e)||Number(e));let o,m=0;for(const e of r){const t="object"==typeof e?e.branding:void 0;if(m++&&t!==o)throw new TypeError(ri);o=t}return o?s(o)(i,a,...r):[n,...r]};return m.X=n,m})(e,t))}const n=Ma.prototype,r=Object.getOwnPropertyDescriptors(n),a=Object.getOwnPropertyDescriptors(Ma);for(const t in r){const n=r[t],o=t.startsWith("format")&&Xm(t);"function"==typeof n.value?n.value="constructor"===t?e:o||Qm(t):o&&(n.get=function(){if(!Fl.has(this))throw new TypeError(Ho);return(...e)=>o.apply(this,e)},Object.defineProperties(n.get,i(`get ${t}`)))}return a.prototype.value=t.prototype=Object.create({},r),Object.defineProperties(e,a),e}function Xm(e){return Object.defineProperties(function(...t){const n=Fl.get(this),[r,...o]=n(e.includes("Range"),...t);return r[e](...o)},i(e))}function Qm(e){return Object.defineProperties(function(...t){return Fl.get(this).X[e](...t)},i(e))}function el(e){const t=gl[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return ao(t,o(so),1)}const tl=new WeakMap,nl=tl.get.bind(tl),rl=tl.set.bind(tl),ol={era:function(e){if(void 0!==e)return Yi(e)},eraYear:_,year:G,month:C,daysInMonth:C,daysInYear:C,inLeapYear:Zi,monthsInYear:C},il={monthCode:Yi},al={day:C},sl={dayOfWeek:C,dayOfYear:C,weekOfYear:function(e){if(void 0!==e)return C(e)},yearOfWeek:_,daysInWeek:C},ml=Bm(Object.assign({},ol,il,al,sl)),ll=Bm({...ol,...il}),ul=Bm({...il,...al}),cl={calendarId:e=>e.calendar},dl=c(e=>t=>t[e],Ui.concat("sign")),hl=c((e,t)=>e=>e[ta[t]],bi),fl={epochMilliseconds:rt,epochNanoseconds:function(e){return((e,t=1)=>{const[n,r]=e,o=Math.floor(r/t),i=gi/t;return BigInt(n)*BigInt(i)+BigInt(o)})(e.epochNanoseconds)}},[Ml,yl]=_m(es,function(e=0,t=0,n=0,r=0,o=0,i=0,a=0,s=0,m=0,c=0){return nt(pn(u(Z,l(Ui,[e,t,n,r,o,i,a,s,m,c]))))},{...dl,blank:function(e){return!e.sign}},{with:(e,t)=>yl(function(e,t){return nt((n=e,r=t,pn({...n,...$r(r,qi)})));var n,r}(e,t)),negated:e=>yl(Mn(e)),abs:e=>yl(function(e){return-1===e.sign?Mn(e):e}(e)),add:(e,t,n)=>yl(fn(jm,Fs,ls,0,e,Lm(t),n)),subtract:(e,t,n)=>yl(fn(jm,Fs,ls,1,e,Lm(t),n)),round:(e,t)=>yl(function(e,t,n,r,o){const i=Sn(r),[a,s,m,l,u]=((e,t,n)=>{e=Ze(e,Ea);let r=xa(e);const o=n(e[za]);let i=je(e);const a=Ua(e,7);let s=Na(e);if(void 0===r&&void 0===s)throw new RangeError(Qo);if(null==s&&(s=0),null==r&&(r=Math.max(s,t)),$e(r,s),i=Re(i,s,1),i>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,i,a,o]})(o,i,e),c=Math.max(i,a);if(!u&&c<=6)return nt(pn(((e,t,n,r,o)=>{const i=gt(wn(e),n,r,o);return{...Xi,...vn(i,t)}})(r,a,s,m,l)));if(!dn(u)&&!r.sign)return r;if(!u)throw new RangeError(Jo);const[d,h,f]=mn(t,n,u),M=ln(f),y=un(f),g=cn(f),p=y(h,d,r);dn(u)||(oe(d),oe(p));let b=g(h,d,p,a);const w=r.sign,v=gn(b);if(w&&v&&w!==v)throw new RangeError(xo);return b=yt(b,M(p),a,s,m,l,h,d,M,y),nt(b)}(jm,Fs,ls,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=Sn(r),[a,s]=((e,t)=>{const n=t((e=Ze(e,Ta))[za]);let r=La(e);return r=P(Ta,r),[r,n]})(o,e),m=Math.max(a,i);if(!s&&hn(m,s))return it(r,a);if(!s)throw new RangeError(Jo);if(!r.sign)return 0;const[l,u,c]=mn(t,n,s),d=ln(c),h=un(c),f=cn(c),M=h(u,l,r);dn(s)||(oe(l),oe(M));const y=f(u,l,M,a);return hn(a,s)?it(y,a):((e,t,n,r,o,i,a)=>{const s=gn(e),[m,l]=at(r,ea(n,e),n,s,o,i,a),u=st(t,m,l);return e[Ui[n]]+u*s})(y,d(M),a,u,l,d,h)}(jm,Fs,ls,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):_t(e)},toString:_t,toJSON:e=>_t(e),valueOf:Nm},{from:e=>yl(Lm(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(Ye(i).relativeTo),s=Math.max(Sn(r),Sn(o));if(M(Ui,r,o))return 0;if(hn(s,a))return K(wn(r),wn(o));if(!a)throw new RangeError(Jo);const[m,l,u]=mn(t,n,a),c=ln(u),d=un(u);return K(c(d(l,m,r)),c(d(l,m,o)))}(jm,Fs,ls,Lm(e),Lm(t),n)}),gl={Instant:Tm,PlainDateTime:Dm,PlainDate:zm,PlainTime:Am,PlainYearMonth:Hm,PlainMonthDay:km},pl=ao(Tm),bl=ao(Sm),wl=ao(Dm),vl=ao(zm),El=ao(Am),Tl=ao(Hm),Sl=ao(km),[Dl,zl]=_m(Ja,function(e=0,t=0,n=0,r=0,o=0,i=0){return tt(_e(u(Y,l(ta,[e,t,n,r,o,i])),1))},hl,{with(e,t,n){return zl(function(e,t,n){return tt(((e,t,n)=>Vr({...h(wi,e),...$r(t,wi)},Ce(n)))(e,t,n))}(this,Cm(t),n))},add:(e,t)=>zl(en(0,e,Lm(t))),subtract:(e,t)=>zl(en(1,e,Lm(t))),until:(e,t,n)=>yl(ar(0,e,Rm(t),n)),since:(e,t,n)=>yl(ar(1,e,Rm(t),n)),round:(e,t)=>zl(function(e,t){const[n,r,o]=Oe(t,5);var i;return tt((i=o,ut(e,dt(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Xn(e,t)}(e,Rm(t)),toLocaleString(e,t,n){const[r,o]=El(t,n,e);return r.format(o)},toString:It,toJSON:e=>It(e),valueOf:Nm},{from:(e,t)=>zl(Rm(e,t)),compare:(e,t)=>Xn(Rm(e),Rm(t))}),[Al,Hl]=_m(Ka,g(function(e,t,n,r,o=0,i=0,a=0,s=0,m=0,c=0,d=Ni){return Je(oe(Ae(u(Y,l(ra,[t,n,r,o,i,a,s,m,c])))),e(d))},Fr),{...cl,...ml,...hl},{with:(e,t,n)=>Hl(function(e,t,n,r){const o=e(t.calendar),i=[...o.fields(Gi),...bi].sort(),a={...to(s=t),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const m=$r(n,i),l=Ce(r),u=o.k(a,m),c={...a,...m};return Je(oe({...o.F(u,We(l)),..._e(Zs(c),l)}))}(Fs,e,Cm(t),n)),withCalendar:(e,t)=>Hl(lo(e,Om(t))),withPlainTime:(e,t)=>Hl(function(e,t=sa){return Je(oe({...e,...t}))}(e,Fm(t))),add:(e,t,n)=>Hl(Jt(Fs,0,e,Lm(t),n)),subtract:(e,t,n)=>Hl(Jt(Fs,1,e,Lm(t),n)),until:(e,t,n)=>yl(nr(Fs,0,e,Ym(t),n)),since:(e,t,n)=>yl(nr(Fs,1,e,Ym(t),n)),round:(e,t)=>Hl(function(e,t){return Je(mt(e,...Oe(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Kn(e,t)&&e.calendar===t.calendar}(e,Ym(t)),toZonedDateTime:(e,t,n)=>Bl(function(e,t,n,r){const o=((e,t,n,r)=>{const o=(e=>Ra(Ye(e)))(r);return qt(e(t),n,o)})(e,n,t,r);return Ke(ie(o),n,t.calendar)}(ls,e,xm(t),n)),toPlainDate:e=>Pl(Xe(e)),toPlainTime:e=>zl(tt(e)),toLocaleString(e,t,n){const[r,o]=wl(t,n,e);return r.format(o)},toString:zt,toJSON:e=>zt(e),valueOf:Nm},{from:(e,t)=>Hl(Ym(e,t)),compare:(e,t)=>Kn(Ym(e),Ym(t))}),[kl,Il]=_m($a,g(function(e,t,n,r=Ni,o=pa){const i=Y(t),a=Y(n),s=e(r);return et(re(He({isoYear:Y(o),isoMonth:i,isoDay:a})),s)},Fr),{...cl,...ul},{with:(e,t,n)=>Il(function(e,t,n,r){const o=e(t.calendar),i=o.fields(Gi).sort(),a=(e=>{const t=Rs(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{monthCode:vr(i,a),day:o}})(t),s=$r(n,i),m=o.k(a,s);return o._(m,r)}(Fs,e,Cm(t),n)),equals:(e,t)=>function(e,t){return!Jn(e,t)&&e.calendar===t.calendar}(e,Zm(t)),toPlainDate(e,t){return Pl(function(e,t,n,r){return((e,t,n)=>Kr(e,t,Oi,O(n),Ai))(e(t.calendar),n,r)}(Fs,e,this,t))},toLocaleString(e,t,n){const[r,o]=Sl(t,n,e);return r.format(o)},toString:kt,toJSON:e=>kt(e),valueOf:Nm},{from:(e,t)=>Il(Zm(e,t))}),[_l,Cl]=_m(qa,g(function(e,t,n,r=Ni,o=1){const i=Y(t),a=Y(n),s=e(r);return Qe(ne(He({isoYear:i,isoMonth:a,isoDay:Y(o)})),s)},Fr),{...cl,...ll},{with:(e,t,n)=>Cl(function(e,t,n,r){const o=e(t.calendar),i=o.fields(_i).sort(),a=(e=>{const t=Rs(e.calendar),[n,r]=t.v(e),[o,i]=t.q(n,r);return{year:n,monthCode:vr(o,i)}})(t),s=$r(n,i),m=o.k(a,s);return o.K(m,r)}(Fs,e,Cm(t),n)),add:(e,t,n)=>Cl(Qt(Fs,0,e,Lm(t),n)),subtract:(e,t,n)=>Cl(Qt(Fs,1,e,Lm(t),n)),until:(e,t,n)=>yl(or(Fs,0,e,Wm(t),n)),since:(e,t,n)=>yl(or(Fs,1,e,Wm(t),n)),equals:(e,t)=>function(e,t){return!Jn(e,t)&&e.calendar===t.calendar}(e,Wm(t)),toPlainDate(e,t){return Pl(function(e,t,n,r){return((e,t,n)=>Kr(e,t,Ci,O(n),Ii))(e(t.calendar),n,r)}(Fs,e,this,t))},toLocaleString(e,t,n){const[r,o]=Tl(t,n,e);return r.format(o)},toString:Ht,toJSON:e=>Ht(e),valueOf:Nm},{from:(e,t)=>Cl(Wm(e,t)),compare:(e,t)=>Jn(Wm(e),Wm(t))}),[Gl,Pl]=_m(Va,g(function(e,t,n,r,o=Ni){return Xe(re(He(u(Y,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))},Fr),{...cl,...ml},{with:(e,t,n)=>Pl(function(e,t,n,r){const o=e(t.calendar),i=o.fields(Gi).sort(),a=to(t),s=$r(n,i),m=o.k(a,s);return o.F(m,r)}(Fs,e,Cm(t),n)),withCalendar:(e,t)=>Pl(lo(e,Om(t))),add:(e,t,n)=>Pl(Xt(Fs,0,e,Lm(t),n)),subtract:(e,t,n)=>Pl(Xt(Fs,1,e,Lm(t),n)),until:(e,t,n)=>yl(rr(Fs,0,e,Um(t),n)),since:(e,t,n)=>yl(rr(Fs,1,e,Um(t),n)),equals:(e,t)=>function(e,t){return!Jn(e,t)&&e.calendar===t.calendar}(e,Um(t)),toZonedDateTime(e,t){const n=r(t)?t:{timeZone:t};return Bl(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):void 0,m=n(i);let l;return l=s?qt(m,{...r,...s}):$t(m,{...r,...sa}),Ke(l,i,r.calendar)}(xm,Rm,ls,e,n))},toPlainDateTime:(e,t)=>Hl(function(e,t=sa){return Je(oe({...e,...t}))}(e,Fm(t))),toPlainYearMonth(e){return Cl(function(e,t,n){return((e,t)=>{const n=qr(e,t,Ci);return e.K(n,void 0)})(e(t.calendar),n)}(Fs,e,this))},toPlainMonthDay(e){return Il(function(e,t,n){return((e,t)=>{const n=qr(e,t,Oi);return e._(n)})(e(t.calendar),n)}(Fs,e,this))},toLocaleString(e,t,n){const[r,o]=vl(t,n,e);return r.format(o)},toString:At,toJSON:e=>At(e),valueOf:Nm},{from:(e,t)=>Pl(Um(e,t)),compare:(e,t)=>Jn(Um(e),Um(t))}),[Ol,Bl]=_m(Xa,g(function(e,t,n,r,o=Ni){return Ke(ie(X(R(n))),t(r),e(o))},Fr,function(e){return Wn(Yi(e))}),{...fl,...cl,...$m(ml),...$m(hl),offset:e=>Lt(Vm(e).offsetNanoseconds),offsetNanoseconds:e=>Vm(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=ss(t,n),[o,i]=ht(r),a=ee(V($t(n,o),$t(n,i)),yi,1);if(a<=0)throw new RangeError(xo);return a}(ls,e)},{with:(e,t,n)=>Bl(function(e,t,n,r,o){const{calendar:i,timeZone:a}=n,s=e(i),m=t(a),l=[...s.fields(Gi),...Ti].sort(),u=(e=>{const t=ss(e,ls),n=Lt(t.offsetNanoseconds),r=Rs(e.calendar),[o,i,a]=r.v(t),[s,m]=r.q(o,i),l=vr(s,m);return{...Ws(t),year:o,monthCode:l,day:a,offset:n}})(n),c=$r(r,l),d=s.k(u,c),h={...u,...c},[f,M,y]=Ge(o,2);return Ke(Ut(m,{...s.F(d,We(f)),..._e(Zs(h),f)},An(h.offset),M,y),a,i)}(Fs,ls,e,Cm(t),n)),withCalendar:(e,t)=>Bl(lo(e,Om(t))),withTimeZone:(e,t)=>Bl(function(e,t){return{...e,timeZone:t}}(e,xm(t))),withPlainTime:(e,t)=>Bl(function(e,t,n){const r=t.timeZone,o=e(r),i={...ss(t,o),...n||sa};let a;return a=n?Ut(o,i,i.offsetNanoseconds,2):$t(o,i),Ke(a,r,t.calendar)}(ls,e,Fm(t))),add:(e,t,n)=>Bl(Kt(Fs,ls,0,e,Lm(t),n)),subtract:(e,t,n)=>Bl(Kt(Fs,ls,1,e,Lm(t),n)),until:(e,t,n)=>yl(nt(tr(Fs,ls,0,e,qm(t),n))),since:(e,t,n)=>yl(nt(tr(Fs,ls,1,e,qm(t),n))),round:(e,t)=>Bl(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,m]=Oe(n);if(0===a&&1===s)return t;const l=e(o);if(6===a)r=((e,t,n,r)=>{const o=ss(n,t),[i,a]=e(o),s=n.epochNanoseconds,m=$t(t,i),l=$t(t,a);if(J(s,m,l))throw new RangeError(xo);return wt(st(s,m,l),r)?l:m})(ht,l,t,m);else{const e=l.R(r);r=Ut(l,mt(Me(r,e),a,s,m),e,2,0,1)}return Ke(r,o,i)}(ls,e,t)),startOfDay:e=>Bl(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>$t(t,e(ss(n,t))))(ft,e(n),t);return Ke(o,n,r)}(ls,e)),equals:(e,t)=>function(e,t){return!Vn(e,t)&&!!Qn(e.timeZone,t.timeZone)&&e.calendar===t.calendar}(e,qm(t)),toInstant:e=>xl(function(e){return Ve(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Hl(no(ls,e)),toPlainDate:e=>Pl(ro(ls,e)),toPlainTime:e=>zl(oo(ls,e)),toLocaleString(e,t,n={}){const[r,o]=bl(t,n,e);return r.format(o)},toString:(e,t)=>Dt(ls,e,t),toJSON:e=>Dt(ls,e),valueOf:Nm,getTimeZoneTransition(e,t){const{timeZone:n,epochNanoseconds:r}=e,o=function(e){const t=Ze(e,Aa),n=qe(Aa,Ba,t,0);if(!n)throw new RangeError(Eo(Aa,n));return n}(t),i=ls(n).O(r,o);return i?Bl({...e,epochNanoseconds:i}):null}},{from:(e,t)=>Bl(qm(e,t)),compare:(e,t)=>Vn(qm(e),qm(t))}),[Nl,xl]=_m(Qa,function(e){return Ve(ie(X(R(e))))},fl,{add:(e,t)=>xl(Vt(0,e,Lm(t))),subtract:(e,t)=>xl(Vt(1,e,Lm(t))),until:(e,t,n)=>yl(er(0,e,Km(t),n)),since:(e,t,n)=>yl(er(1,e,Km(t),n)),round:(e,t)=>xl(function(e,t){const[n,r,o]=Oe(t,5,1);return Ve(gt(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!$n(e,t)}(e,Km(t)),toZonedDateTimeISO:(e,t)=>Bl(function(e,t,n=Ni){return Ke(e.epochNanoseconds,t,n)}(e,xm(t))),toLocaleString(e,t,n){const[r,o]=pl(t,n,e);return r.format(o)},toString:(e,t)=>St(xm,ls,e,t),toJSON:e=>St(xm,ls,e),valueOf:Nm},{from:e=>xl(Km(e)),fromEpochMilliseconds:e=>xl(function(e){return Ve(ie(Q(Z(e),hi)))}(e)),fromEpochNanoseconds:e=>xl(function(e){return Ve(ie(X(R(e))))}(e)),compare:(e,t)=>$n(Km(e),Km(t))}),Ll=Object.defineProperties({},{...m("Temporal.Now"),...a({timeZoneId:()=>ho(),instant:()=>xl(Ve(co())),zonedDateTimeISO:(e=ho())=>Bl(Ke(co(),xm(e),Ni)),plainDateTimeISO:(e=ho())=>Hl(Je(uo(ls(xm(e))),Ni)),plainDateISO:(e=ho())=>Pl(Xe(uo(ls(xm(e))),Ni)),plainTimeISO:(e=ho())=>zl(tt(uo(ls(xm(e)))))})}),jl=Object.defineProperties({},{...m("Temporal"),...a({PlainYearMonth:_l,PlainMonthDay:kl,PlainDate:Gl,PlainTime:Dl,PlainDateTime:Al,ZonedDateTime:Ol,Instant:Nl,Duration:Ml,Now:Ll})}),Rl=Jm(),Fl=new WeakMap;function Yl(e,...t){let n=bbn.lng[e]||e;if(t.length){let e=0;return n.replace(/\%([d|s])/g,(n,r)=>{let o=t[e++];o||(o="d"===r?0:"");const i=typeof o;return"d"===r&&"number"!==i?(o=parseFloat(o),isNaN(o)&&(o=0)):"s"===r&&"string"!==i&&(o=""+o),o})}return n}Object.create(Intl),a({DateTimeFormat:Rl});var Zl,Wl,Ul,ql,$l,Vl,Kl={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:["PageUp","PageDown","End","Home","ArrowUp","ArrowDown"],leftRight:["Home","End","ArrowLeft","ArrowRight"],dels:["Backspace","Delete","Insert"],confirm:["Enter","Tab"],alt:["CapsLock","Shift","Control","Alt","NumLock"],numbers:["0","1","2","3","4","5","6","7","8","9","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9"],numsigns:["NumpadSubtract","NumpadDecimal","-","."]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},Jl={siteTitle:null===(Zl=globalThis.document)||void 0===Zl?void 0:Zl.title,logging:!1,cdn:"",lang:"en",host:(null===(Wl=globalThis.location)||void 0===Wl?void 0:Wl.protocol)+"//"+(null===(Ul=globalThis.location)||void 0===Ul?void 0:Ul.hostname),url:null===(ql=globalThis.location)||void 0===ql?void 0:ql.href,old_path:null,loading:!1,_enumerated:[],get isEnumerating(){return this._enumerated.length>0},width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:50,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,isVisible:!(null===($l=globalThis.document)||void 0===$l?void 0:$l.hidden),timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax",online:null===(Vl=globalThis.navigator)||void 0===Vl?void 0:Vl.onLine},Xl=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};class Ql extends Error{constructor(e){super(e||"Request canceled"),this.name="Cancel",this.__BBN_CANCEL__=!0}}const eu=["POST","PUT","PATCH","DELETE"],tu=(e,t,n={},r)=>{const o=new XMLHttpRequest,i=eu.includes(e.toUpperCase()),a=new Promise((r,a)=>{o.open(e.toUpperCase(),t,!0);const{body:s,headers:m}=((e,t)=>{const n=new Headers(t||{});let r=e;return null==e||e instanceof FormData||"object"!=typeof e||(n.set("Content-Type","application/json"),r=JSON.stringify(e)),{body:r,headers:n}})(n.data,n.headers);m.forEach((e,t)=>{o.setRequestHeader(t,e)}),"function"==typeof n.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",e=>{const t=e.lengthComputable?e.total:void 0;n.onUploadProgress({loaded:e.loaded,total:t,progress:t?e.loaded/t:void 0})}),o.onreadystatechange=()=>{if(4!==o.readyState)return;const e=(e=>{const t={};return e?(e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.split(": "),r=n.shift(),o=n.join(": ");r&&(t[r.toLowerCase()]=o)}),t):t})(o.getAllResponseHeaders()),t=1223===o.status?204:o.status,i=o.statusText||"";let s=o.responseText;if((e["content-type"]||"").includes("application/json"))try{s=JSON.parse(o.responseText)}catch(e){}const m={data:s,status:t,statusText:i,headers:e,config:n,request:o};if(t>=200&&t<300)r(m);else{const e=new Error("Request failed with status code "+t);e.response=m,e.config=n,e.request=o,a(e)}},o.onerror=()=>{const e=new Error("Network Error");e.config=n,e.request=o,a(e)},o.onabort=()=>{a(new Ql("Request canceled"))},i?o.send(s):o.send()});return a.cancel=()=>o.abort(),a};var nu={isCancel:e=>!(!e||!0!==e.__BBN_CANCEL__),run:(e,t,n={},r)=>{n.baseURL&&!/^https?:\/\//i.test(t)&&(t=n.baseURL.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")),t=((e,t)=>{if(!t)return e;const n=new URLSearchParams(t).toString();return n?e+(e.includes("?")?"&":"?")+n:e})(t,n.params);return"function"==typeof n.onUploadProgress&&eu.includes(e.toUpperCase())?tu(e,t,n):((e,t,n={},r)=>{const o={method:e,headers:new Headers(n.headers||{}),signal:null==r?void 0:r.signal},i=eu.includes(e.toUpperCase());if(null!=n.data&&i&&(bbn.fn.log("DATA",n.data),"object"!=typeof n.data||n.data instanceof FormData?o.body=n.data:(o.headers.set("Content-Type","application/json"),o.body=JSON.stringify(n.data))),n.params){const e=new URLSearchParams(n.params).toString();t+=(t.includes("?")?"&":"?")+e}const a=fetch(t,o).then(e=>Xl(void 0,void 0,void 0,function*(){let t;const r=e.headers.get("content-type")||"";try{t=r.includes("application/json")?yield e.json():r.startsWith("text/")?yield e.text():r.includes("multipart/")?yield e.arrayBuffer():yield e.blob()}catch(n){t=yield e.text()}const o={data:t,status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries()),config:n,request:e};if(!e.ok){const t=new Error("Request failed with status code "+e.status);throw t.response=o,t.config=n,t.request=e,t}return o})).catch(e=>{if("AbortError"===e.name)throw new Ql("Request canceled");throw e});return a.cancel=()=>r.abort(),a})(e,t,n,r)}};function ru(...e){if(!e.length)return!1;for(let t of e)if("[object String]"!=={}.toString.apply(t))return!1;return!0}function ou(...e){if(!e.length)return!1;for(let t of e)if(!Number.isInteger(t))return!1;return!0}function iu(...e){if(!e.length)return!1;for(let t of e)if(!(t&&t.constructor&&t.call&&t.apply))return!1;return!0}function au(...e){var t,n,r,o;if((null===(n=null===(t=globalThis.bbn)||void 0===t?void 0:t.env)||void 0===n?void 0:n.logging)&&void 0!==globalThis.console){let t,n=5,i="log";e[0]&&"object"==typeof e[0]&&e[0]._bbn_console_style&&(e[0]._bbn_console_mode&&iu(globalThis.console[e[0]._bbn_console_mode])?i=e[0]._bbn_console_mode:(t=e[0]._bbn_console_style,n=e[0]._bbn_console_level),e.shift());const a=globalThis.console[i];if((null===(o=null===(r=globalThis.bbn)||void 0===r?void 0:r.env)||void 0===o?void 0:o.loggingLevel)>=n){let n=0;for(;n<e.length;){let r=typeof e[n],o=[e[n]];"string"!==r&&"number"!==r||o.unshift("%c %s ",t),a.apply(globalThis.console,o),n++}}}}function su(e,t,n){if(!ru(e)||!ou(t))throw au(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),ou(n)?e.substring(t,(n<0?e.length:t)+n):e.substring(t)}function mu(e,t=!1){let n=null;if("object"==typeof e)for(var r in n={},e)su(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(t&&"object"==typeof e[r]?n[r]=mu(e[r],!0):n[r]=e[r]);return n||!1}function lu(e,t,n=!1,r=!1){if(null!==e&&"object"==typeof e){let o=Object.keys(n?mu(e):e);r&&o.reverse();for(let n of o)if(!1===t(e[n],n))break}return e}function uu(...e){if(!e.length)return!1;for(let t of e)if("[object Object]"!=={}.toString.apply(t))return!1;return!0}function cu(...e){if(!e.length)return!1;for(let t of e)if(!Array.isArray(t))return!1;return!0}function du(...e){if(!e.length)return!1;for(let t of e)if(["boolean","object","symbol"].includes(typeof t)||""===t||isNaN(t))return!1;return!0}function hu(...e){if(!e.length)return!1;for(let t of e)if(!t||"object"!=typeof t||!(Symbol.iterator in Object(t)))return!1;return!0}function fu(e,t){if(!(du(e)&&e>0)){if(hu(e)){for(let n=0;n<e.length;n++)if(!1===t(e[n],n))return;return e}return lu(e,t)}for(let n=0;n<e;n++)if(!1===t(n,n))return}function Mu(...e){let t=!1,n=[];for(let r=0;r<e.length;r++)if(!0===e[r])t=!0;else{if(!e[r])continue;if("object"!=typeof e[r])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[r]);n.push(e[r])}if(!n.length)throw new Error("No argument given");let r,o=n[0];for(let e=1;e<n.length;e++)lu(n[e],(e,n)=>{t?cu(e)?(o[n]=cu(o[n])?o[n]:[],fu(e,(e,t)=>{if(e&&"object"==typeof e){let r=o[n][t];cu(e)?cu(r)||(r=[]):uu(r)||(r={}),o[n][t]=Mu(!0,r,e)}else o[n][t]=e})):uu(e)?o[n]=Mu(!0,o[n]&&"object"==typeof o[n]?o[n]:Object.create(Object.getPrototypeOf(e)),e):o[n]=e:(o[n]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(o,[n]))&&(o[n]=e)}),r||(r=!!n[e].__bbnNoData);return r&&"bbnData"in window&&(o.__bbnData&&o.__bbnData.unset(),Object.defineProperty(o,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1})),o}var yu=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};const gu=globalThis.indexedDB||globalThis.webkitIndexedDB||globalThis.mozIndexedDB||globalThis.OIndexedDB||globalThis.msIndexedDB,pu=(e,t)=>{if(e){if(null==t?void 0:t.length){const n={};return lu(e,(e,r)=>{t.includes(r)&&(n[r]=e)}),n}return e}},bu=(e,t=[])=>{var n;return(null===(n=null==e?void 0:e.conditions)||void 0===n?void 0:n.length)?e.conditions.forEach(e=>{e.field&&!t.includes(e.field)?t.push(e.field):e.conditions&&bu(e,t)}):uu(e)?lu(e,(e,n)=>{t.includes(n)||t.push(n)}):cu(e)&&e.forEach(e=>{e.field&&!t.includes(e.field)?t.push(e.field):e.conditions&&bu(e,t)}),t},wu=e=>{const t=e.keys.PRIMARY.columns;return t.length>1?t:t[0]},vu=e=>new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)}),Eu=e=>new Promise((t,n)=>{e.oncomplete=()=>t(),e.onabort=()=>n(e.error),e.onerror=()=>n(e.error)});class Tu{constructor(e){this.lastErr=null,this.dbName=e}get connection(){const e=Su._connections[this.dbName];if(!e)throw new Error(Yl("The database %s is not open",this.dbName));return e}get structure(){const e=Su._structures[this.dbName];if(!e)throw new Error(Yl("No structure defined for database %s",this.dbName));return e}getStore(e,t){const n=this.connection.transaction([e],t);return n.onabort=()=>{this.lastErr=n.error,au(n.error)},n.onerror=()=>{this.lastErr=n.error,au(n.error)},[n,n.objectStore(e)]}lastError(){return this.lastErr}insert(e,t){return yu(this,void 0,void 0,function*(){const n=Array.isArray(t)?t:[t];if(!n.length)return 0;const[r,o]=this.getStore(e,"readwrite");let i=0;for(const e of n){const t=o.put(e);t.onsuccess=()=>{i++},t.onerror=()=>{this.lastErr=t.error,au(t.error)}}return yield Eu(r),i})}update(e,t,n){return yu(this,arguments,void 0,function*(e,t,n,r=!1){const o=yield this.selectAll(e,[],n);if(!o.length)return 0;const i=this.structure[e],a=wu(i);if(Array.isArray(a))throw new Error(Yl("Composite primary keys are not supported by this update implementation"));const[s,m]=this.getStore(e,"readwrite");let l=0;for(const e of o){const n=Mu({},r?{[a]:e[a]}:e,t);if(!(a in n))throw new Error(Yl("No primary key in the data"));const o=m.put(n);o.onsuccess=()=>{l++},o.onerror=()=>{this.lastErr=o.error,au(o.error)}}return yield Eu(s),l})}delete(e,t){return yu(this,void 0,void 0,function*(){const n=this.structure[e],r=wu(n);if(Array.isArray(r))throw new Error(Yl("Composite primary keys are not supported by this delete implementation"));if(!(r in t))throw new Error(Yl("No primary key in the filter"));const[o,i]=this.getStore(e,"readwrite");return i.delete(t[r]),yield Eu(o),1})}selectOne(e,t){return yu(this,arguments,void 0,function*(e,t,n=null,r=null,o=0,i=1){var a;const s=yield this.selectAll(e,[t],n,r,o,i);return null===(a=null==s?void 0:s[0])||void 0===a?void 0:a[t]})}select(e){return yu(this,arguments,void 0,function*(e,t=[],n=null,r=null,o=0){const i=yield this.selectAll(e,t,n,r,o,1);return i.length?i[0]:null})}selectAll(e){return yu(this,arguments,void 0,function*(e,t=[],n=null,r=null,o=0,i=null){const[a,s]=this.getStore(e,"readonly"),m=this.structure[e],l=wu(m),u=[],c=uu(n)?Object.keys(n)[0]:!n||cu(n)?null:l;if(!Array.isArray(l)&&c===l){if(Array.isArray(null==n?void 0:n[l])){const e=n[l],r=Math.min(e.length-o,null!=i?i:e.length),m=e.slice(o,o+r);for(const e of m){const n=yield vu(s.get(e)),r=pu(n,t);r&&u.push(r)}return yield Eu(a),u}const e=uu(n)?n[l]:n,r=yield vu(s.get(e)),m=pu(r,t);return m&&u.push(m),yield Eu(a),u}return yield new Promise((e,r)=>{const a=s.openCursor();let m=0;a.onsuccess=r=>{var a,s;const l=r.target.result;if(!l)return void e();if(!n||!(null===(s=null===(a=globalThis.bbn)||void 0===a?void 0:a.fn)||void 0===s?void 0:s.search)||!globalThis.bbn.fn.search([l.value],n)){if(m>=o){const n=pu(l.value,t);if(n&&u.push(n),null!==i&&u.length>=i)return void e()}m++}l.continue()},a.onerror=()=>{this.lastErr=a.error,au(a.error),r(a.error)}}),yield Eu(a),u})}getColumnValues(e,t){return yu(this,arguments,void 0,function*(e,t,n=null,r=null,o=0,i=null){return(yield this.selectAll(e,bu(n,[t]),n,r,o,i)).map(e=>e[t]).filter(e=>void 0!==e)})}copyTable(e,t){return yu(this,arguments,void 0,function*(e,t,n=[],r=null,o=null,i=0,a=null){if(this.connection.objectStoreNames.contains(e)||(yield Su.add(this.dbName,e,this.structure[t]),yield Su.open(this.dbName)),!this.connection.objectStoreNames.contains(e))throw new Error(Yl("The target table %s does not exist",e));const s=yield this.selectAll(t,n,r,o,i,a);return s.length?this.insert(e,s):0})}deleteTable(e){return yu(this,void 0,void 0,function*(){return yield Su.remove(this.dbName,e),!0})}}const Su={_structures:{},_connections:{},_stores:{},ok:void 0!==gu,updateStructure(e,t,n){const r=wu(t);if(!n.objectStoreNames.contains(e)){const o=n.createObjectStore(e,{keyPath:r});lu(t.keys,(e,t)=>{"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})})}},getExistingVersion(e){return yu(this,void 0,void 0,function*(){const t=this._connections[e];return t?t.version:new Promise((t,n)=>{if(!gu)return void n(new Error(Yl("IndexedDB is not available")));const r=gu.open(e);r.onsuccess=()=>{const e=r.result,n=e.version;e.close(),t(n)},r.onupgradeneeded=()=>{const e=r.result,n=e.version;e.close(),t(n)},r.onerror=()=>n(r.error)})})},reopenWithUpgrade(e){return yu(this,void 0,void 0,function*(){const t=(yield this.getExistingVersion(e))+1;return this._connections[e]&&(this._connections[e].close(),delete this._connections[e]),new Promise((n,r)=>{if(!gu)return void r(new Error(Yl("IndexedDB is not available")));const o=gu.open(e,t);o.onupgradeneeded=()=>{const t=o.result;lu(this._structures[e]||{},(e,n)=>{t.objectStoreNames.contains(n)||this.updateStructure(n,e,t)})},o.onsuccess=()=>{this._connections[e]=o.result,n(o.result)},o.onerror=()=>r(o.error),o.onblocked=()=>r(o.error||new Error(Yl("IndexedDB upgrade blocked")))})})},open(e){return yu(this,void 0,void 0,function*(){if(!gu)throw new Error(Yl("IndexedDB is not available"));if(!this._structures[e])throw new Error(Yl("Impossible to find a structure for the database %s",e));return this._connections[e]||(yield new Promise((t,n)=>{const r=gu.open(e);r.onupgradeneeded=()=>{const t=r.result;lu(this._structures[e]||{},(e,n)=>{t.objectStoreNames.contains(n)||this.updateStructure(n,e,t)})},r.onsuccess=()=>{this._connections[e]=r.result,t(r.result)},r.onerror=()=>n(r.error)})),new Tu(e)})},add(e,t,n){return yu(this,void 0,void 0,function*(){var r;if(!(null===(r=null==n?void 0:n.keys)||void 0===r?void 0:r.PRIMARY)||!(null==n?void 0:n.fields))throw new Error(Yl("The database structure for %s is not valid (missing keys, fields, or primary key)",t));this._structures[e]||(this._structures[e]={}),this._structures[e][t]=n;const o=this._connections[e];o&&!o.objectStoreNames.contains(t)&&(yield this.reopenWithUpgrade(e))})},remove(e,t){return yu(this,void 0,void 0,function*(){var n;null===(n=this._structures[e])||void 0===n||delete n[t];const r=this._connections[e];if(!r)return;const o=r.version+1;r.close(),delete this._connections[e],yield new Promise((n,r)=>{if(!gu)return void r(new Error(Yl("IndexedDB is not available")));const i=gu.open(e,o);i.onupgradeneeded=()=>{const e=i.result;e.objectStoreNames.contains(t)&&e.deleteObjectStore(t)},i.onsuccess=()=>{this._connections[e]=i.result,n()},i.onerror=()=>r(i.error)})})}};function Du(e,t,n){let r=(new Date).getTime(),o={key:e,url:su(e,0,e.length-33),loader:t,aborter:n,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);let i=bbn.env.loadersHistory.length;for(;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return r}function zu(e,...t){if("object"==typeof e){const n=[];return 1===t.length&&"string"==typeof t[0]?n.push(...t[0].split(".")):n.push(...t),n.reduce((e,t)=>{if(e)return e[e instanceof Array?parseInt(t):t]},e)}}function Au(e){if(!ru(e)){if(!e.toString)throw au(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Hu(...e){if(!e.length)return!1;for(let t of e)if("[object Date]"!=={}.toString.apply(t))return!1;return!0}function ku(e,t,n,r="asc"){let o=zu(e,n),i=zu(t,n),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==r&&ru(r)&&"desc"===r.toLowerCase()&&(r="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=Au(o).toLowerCase(),i=Au(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":Hu(o)&&(o=o.getTime(),i=Hu(i)?i.getTime():0)}return o<i?"desc"===r?1:-1:o>i?"desc"===r?-1:1:0}function Iu(e){return e&&"object"==typeof e?Object.keys(e).length:0}function _u(e){return!e||(cu(e)?!e.length:"object"==typeof e&&!Iu(e))}function Cu(...e){if(!e.length)return!1;for(let t of e)if("[object Null]"!=={}.toString.apply(t))return!1;return!0}function Gu(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return Math.abs(t).toString(16)}function Pu(e){let t=0;for(let n=0;n<e.length;n++){t=e.charCodeAt(n)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function Ou(e){return Gu(e).padStart(8,"0")+Pu(e).padStart(8,"0")}function Bu(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof HTMLElement))return!1;return!0}function Nu(e){let t="",n=e;if(e.id)return"#"+e.id;for(;n&&n!==document.body;){let e=n,r=e.localName,o=0;if(!r)break;if(e===document.body)break;e.id&&(t="#"+e.id+">"+t,o=1);let i=n.parentNode,a=Array.from(i.children).filter(t=>t.tagName===e.tagName);if(!o&&a.length>1){let t=Array.from(i.children).indexOf(e)+1;t>1&&(r+=":nth-child("+t+")")}t=r+(t?">"+t:""),n=i}return t}function xu(...e){var t;if(!e.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(let n of e){if(!bbn.cp.isComponent(n)||Bu(n)||!(null===(t=n.$el)||void 0===t?void 0:t.bbnCid))return!1}return!0}function Lu(e,t=null,n=0,r=null,o=null){if(n||r||(r=new WeakSet),void 0===e)e="__BBN_UNDEFINED__";else if(null===e)e="__BBN_NULL__";else if(null===e)e="__BBN_NULL__";else if("function"==typeof e)e="__BBN_FUNCTION__"+e.toString();else if("symbol"==typeof e)e="__BBN_SYMBOL__"+e.toString();else if("string"==typeof e)e="__BBN_STRING__"+e;else if("number"==typeof e)e="__BBN_NUMBER__"+e.toString();else if("boolean"==typeof e)e="__BBN_BOOLEAN__"+e.toString();else if([void 0,Object,Array,null].includes(null==e?void 0:e.constructor)){if(bbn.fn.isArray(e))if(r.has(e)||t&&t<n)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);let i="";for(let a=0;a<e.length;a++)i+="__BBN_ITEM"+a.toString()+"__"+o(e[a],t,n+1,r,o);e="__BBN_ARRAY__"+i}else if("object"==typeof e)if(r.has(e)||t&&t<n)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);let i="";for(let a in e){let s=a;"string"!=typeof s&&(s=o(s,o,1,1)),i+="__BBN_PROP_"+s+"__"+o(e[a],t,n+1,r,o)}e="__BBN_OBJECT__"+i}}else e=Bu(e)?xu(e)?"__BBN_CP__"+e.$cid:e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+Nu(e):"__BBN_UNKNOWN_OBJECT__"+e.constructor.toString();return e}function ju(...e){let t="",n=null;2===e.length&&"number"==typeof e[1]&&(n=e[1],e=[e[0]]);for(let r in e)t+=Lu(e[r],n,0,null,Lu);return Ou(t)}function Ru(e){var t="0123456789abcdef";function n(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(o,a)),i),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function m(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}var l,u,c,d,h,f=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<t%4*8;return r[t>>2]|=128<<t%4*8,r[16*n-2]=8*e.length,r}(e),M=1732584193,y=-271733879,g=-1732584194,p=271733878;for(l=0;l<f.length;l+=16)u=M,c=y,d=g,h=p,M=i(M,y,g,p,f[l+0],7,-680876936),p=i(p,M,y,g,f[l+1],12,-389564586),g=i(g,p,M,y,f[l+2],17,606105819),y=i(y,g,p,M,f[l+3],22,-1044525330),M=i(M,y,g,p,f[l+4],7,-176418897),p=i(p,M,y,g,f[l+5],12,1200080426),g=i(g,p,M,y,f[l+6],17,-1473231341),y=i(y,g,p,M,f[l+7],22,-45705983),M=i(M,y,g,p,f[l+8],7,1770035416),p=i(p,M,y,g,f[l+9],12,-1958414417),g=i(g,p,M,y,f[l+10],17,-42063),y=i(y,g,p,M,f[l+11],22,-1990404162),M=i(M,y,g,p,f[l+12],7,1804603682),p=i(p,M,y,g,f[l+13],12,-40341101),g=i(g,p,M,y,f[l+14],17,-1502002290),M=a(M,y=i(y,g,p,M,f[l+15],22,1236535329),g,p,f[l+1],5,-165796510),p=a(p,M,y,g,f[l+6],9,-1069501632),g=a(g,p,M,y,f[l+11],14,643717713),y=a(y,g,p,M,f[l+0],20,-373897302),M=a(M,y,g,p,f[l+5],5,-701558691),p=a(p,M,y,g,f[l+10],9,38016083),g=a(g,p,M,y,f[l+15],14,-660478335),y=a(y,g,p,M,f[l+4],20,-405537848),M=a(M,y,g,p,f[l+9],5,568446438),p=a(p,M,y,g,f[l+14],9,-1019803690),g=a(g,p,M,y,f[l+3],14,-187363961),y=a(y,g,p,M,f[l+8],20,1163531501),M=a(M,y,g,p,f[l+13],5,-1444681467),p=a(p,M,y,g,f[l+2],9,-51403784),g=a(g,p,M,y,f[l+7],14,1735328473),M=s(M,y=a(y,g,p,M,f[l+12],20,-1926607734),g,p,f[l+5],4,-378558),p=s(p,M,y,g,f[l+8],11,-2022574463),g=s(g,p,M,y,f[l+11],16,1839030562),y=s(y,g,p,M,f[l+14],23,-35309556),M=s(M,y,g,p,f[l+1],4,-1530992060),p=s(p,M,y,g,f[l+4],11,1272893353),g=s(g,p,M,y,f[l+7],16,-155497632),y=s(y,g,p,M,f[l+10],23,-1094730640),M=s(M,y,g,p,f[l+13],4,681279174),p=s(p,M,y,g,f[l+0],11,-358537222),g=s(g,p,M,y,f[l+3],16,-722521979),y=s(y,g,p,M,f[l+6],23,76029189),M=s(M,y,g,p,f[l+9],4,-640364487),p=s(p,M,y,g,f[l+12],11,-421815835),g=s(g,p,M,y,f[l+15],16,530742520),M=m(M,y=s(y,g,p,M,f[l+2],23,-995338651),g,p,f[l+0],6,-198630844),p=m(p,M,y,g,f[l+7],10,1126891415),g=m(g,p,M,y,f[l+14],15,-1416354905),y=m(y,g,p,M,f[l+5],21,-57434055),M=m(M,y,g,p,f[l+12],6,1700485571),p=m(p,M,y,g,f[l+3],10,-1894986606),g=m(g,p,M,y,f[l+10],15,-1051523),y=m(y,g,p,M,f[l+1],21,-2054922799),M=m(M,y,g,p,f[l+8],6,1873313359),p=m(p,M,y,g,f[l+15],10,-30611744),g=m(g,p,M,y,f[l+6],15,-1560198380),y=m(y,g,p,M,f[l+13],21,1309151649),M=m(M,y,g,p,f[l+4],6,-145523070),p=m(p,M,y,g,f[l+11],10,-1120210379),g=m(g,p,M,y,f[l+2],15,718787259),y=m(y,g,p,M,f[l+9],21,-343485551),M=r(M,u),y=r(y,c),g=r(g,d),p=r(p,h);return n(M)+n(y)+n(g)+n(p)}function Fu(e){const t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");let n,r="",o=!1,i=!1,a=!1,s="",m=0,l=0,u=[],c={},d="",h=['"',"'","`"],f=!1,M=!1,y=!1,g=!1,p=!1,b=!1,w="";for(let e=0;e<t.length;e++)if(y||"/"!==t[e]||"*"!==t[e+1])if("/"===t[e]&&"*"===t[e-1])y=!1;else if(g||"/"!==t[e]||"/"!==t[e+1])if("\n"===t[e])g=!1;else{if(y||g)continue;if(t[e]===d&&!f&&d)d="",r+=t[e];else if(d)f="\\"===t[e]&&!f,r+=t[e];else if(h.includes(t[e])&&!f)d=t[e],r+=t[e];else if("("===t[e]){if(m++,""!==r.trim()){if("function"===r.trim())a=!0;else if("async"!==r.trim()){s=r.trim();let e=s.match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);e&&(s=e[1])}r=""}}else if(")"===t[e])m===l+1&&(M?(c.default=r.trim(),M=!1):r&&(c.name=r.trim()),(c.name||c.default)&&(u.push(c),c={}),r=""),l++;else if(p&&"}"!==t[e])r+=t[e];else{if(m&&m===l&&":"===t[e]){const r=t.substring(e+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!r)throw Error("Unexpected ':' while parsing function");w=r[1],n=t.substring(e+r[0].length).trim();break}if(!(r||"="!==t[e]||">"!==t[e+1]||m!==l||l||o)){c.name=t.slice(0,e).trim(),u.push(c),c={},o=!0,n=bbn.fn.substr(t,e+2).trim();break}if(m===l&&"="===t[e]&&">"===t[e+1]){""!==r.trim()&&(c.name=r.trim(),u.push(c),c={},r=""),o=!0,e++;continue}if("="===t[e]&&m>l&&!M)c.name=r.trim(),r="",M=!0;else if(","===t[e])if(p)r+=t[e];else{if(!(m>l))throw Error("Unexpected ',' while parsing function");M?(c.default=r.trim(),M=!1):r&&(c.name=r.trim()),(c.name||c.default)&&(u.push(c),c={}),r=""}else if("{"===t[e]||"}"===t[e]){if(m===l){n=t.substring(e).trim();break}m>l?"{"!==t[e]||p?"}"===t[e]&&p&&(p=!1,r+=t[e]):(p=!0,r=t[e]):r=""}else{if(o){n=t.substring(t.indexOf("=>")+2).trim();break}" "===t[e]?""!==r.trim()&&("async"===r.trim()&&(i=!0),m>l?r+=t[e]:r=""):r+=t[e]}}}else g=!0,r="";else y=!0,r="";if(!n){if(!o)throw Error("Unexpected end of function while parsing function");n=r}n.substr(0,25).indexOf("[native code]")>-1&&(b=!0);const v=u.map(e=>e.name+(e.default?" = "+e.default:"")).join(", ");return{body:n,args:u,argString:v,isArrow:o,hasFunction:a,name:s,isAsync:i,isBinary:b,hash:Ru(n+(s?"-"+s:"")+(v?"-"+v:"")),returnType:w}}function Yu(e,t,n){if(n||(n=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(![void 0,Object,Array,null].includes(null==e?void 0:e.constructor)||![void 0,Object,Array,null].includes(null==t?void 0:t.constructor))return!1;let r=Object.keys(e).sort(),o=Object.keys(t).sort();if(ju(r)!==ju(o))return!1;let i=!0;if(e&&"object"==typeof e){if(n.includes(e))return i;n.push(e)}return fu(r,n=>{if(!Yu(e[n],t[n]))return i=!1,!1}),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){let n=Fu(e),r=Fu(t),o=n.hash===r.hash;return o&&n.isBinary&&(o=!1),o}return!1}function Zu(e,t,n){switch(n){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!_u(e)&&!_u(t)&&-1!==Au(e).toLowerCase().indexOf(Au(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!Cu(e)&&!Cu(t))||-1===Au(e.toLowerCase()).indexOf(Au(t.toLowerCase()));case"starts":case"start":return!Cu(e)&&!Cu(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!Cu(e)&&!Cu(t)&&0===Au(e).toLowerCase().indexOf(Au(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!Cu(e)&&!Cu(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!Cu(e)&&!Cu(t)&&Au(e).toLowerCase()===Au(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(uu(e,t))return Yu(e,t);default:return e==t}}function Wu(e,t){if(!t.conditions||!t.logic||!cu(t.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");let n="AND"===t.logic;return fu(t.conditions,r=>{let o;if(r.conditions&&cu(r.conditions))o=Wu(e,r);else if(o=Zu(zu(e,r.field),r.value,r.operator),o){let t=r.field.split("."),n=t.pop();t.length&&fu(t,t=>e=e[t]),void 0===zu(e,n)&&void 0!==r.value&&(o=!1)}if(o){if("OR"===t.logic)return n=!0,!1}else if("AND"===t.logic)return n=!1,!1}),n}function Uu(e,t="="){if(!uu(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!cu(e.conditions)){let n=[];lu(e,(e,r)=>{uu(e)&&"object"==typeof e.conditions?n.push(Uu(e)):n.push({field:r,operator:t,value:e})}),e={conditions:n}}return e.logic||(e.logic="AND"),e}function qu(e,t,n=null,r="=",o=0,i=!1){if(!hu(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;let a,s,m=!1;if(t)if("string"==typeof t)a={conditions:[{field:t,value:n,operator:r||"="}]};else if(i=!0===r,o="number"==typeof n?n:i?e.length-1:0,"function"==typeof t)m=!0,s=t;else if(uu(t))if("field"in t&&"value"in t)a={conditions:[t],logic:"AND"};else if("conditions"in t)a=t;else{const e=[];for(let n in t)e.push({field:n,value:t[n],operator:"="});a={conditions:e,logic:"AND"}}else cu(t)&&(a={conditions:t,logic:"AND"});else m=!0,s=e=>Wu({value:e},Uu({logic:"AND",conditions:[{field:"value",operator:r||"=",value:n}]}));if(m||a){if("number"!=typeof o&&(o=i?e.length-1:0),!s){const e=Uu(a);s=t=>Wu(t,e)}if(i)for(let t=o;t>=0;t--){if(bbn.env._enumerated.push(!0),s(e[t]))return bbn.env._enumerated.pop(),e[t],t;bbn.env._enumerated.pop()}else for(let t=o;t<e.length;t++){if(bbn.env._enumerated.push(!0),s(e[t]))return bbn.env._enumerated.pop(),e[t],t;bbn.env._enumerated.pop()}}return-1}function $u(e,t,n=null,r="=",o=0,i=!1,a=!1){let s=qu(e,t,n,r,o,i);return s>-1?e[s]:t&&["object","function"].includes(typeof t)&&5 in arguments?i:a}function Vu(e,t=null,n=!1){let r=qu(bbn.env.loaders,{key:e});if(r>-1){let o=bbn.env.loaders.splice(r,1)[0],i=$u(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!n,i.abort=n):uu(t)&&(i.success=!0)),!0}return!1}function Ku(e){let t=qu(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function Ju(e,t,n=null,r="=",o=0){if(!cu(e))try{e=Array.from(e)}catch(t){throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array")}let i={};const a=[],s="function"==typeof t;if(!t||!e.length)return e;if("object"==typeof t)i=t;else if("string"==typeof t)i[t]=n;else if(!s)throw new Error("Search function error: The prop argument should be a string or an object");let m;m="function"==typeof t?t:(e,t)=>Wu(e,i);for(let t=0;t<e.length&&(bbn.env._enumerated.push(!0),!(m(e[t],t)&&(bbn.env._enumerated.pop(),a.push(e[t]),bbn.env._enumerated.push(!0),o&&a.length>=o)));t++)bbn.env._enumerated.pop();return a}function Xu(e){if(Iu(e)){bbn.var.colors||(bbn.var.colors={});let t=document.createElement("style");document.head.appendChild(t);let n=t.sheet,r=0;lu(e,(e,t)=>{bbn.var.colors[t]=e,n.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",r),n.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",r),n.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",r),n.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",r),n.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",r)})}}function Qu(e,t=null,n=""){if(e&&"FORM"===e.tagName){let r=(t,n)=>{let r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)};t=JSON.parse(JSON.stringify(t||{})),n=n||"",t&&lu(t,(t,o)=>{let i=n?`${n}[${o}]`:o;t instanceof Date?r(i,t.toISOString()):t instanceof Array?t.forEach((t,n)=>{const o=`${i}[${n}]`;"object"==typeof t?Qu(e,t,o):r(o,t.toString())}):"object"!=typeof t||t instanceof File?r(i,t.toString()):Qu(e,t,i)})}}function ec(e,t){let n=0;fu(t,t=>{t.style[e]="auto"}),fu(t,(t,r)=>{let o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>n&&(n=i)}),fu(t,(t,r)=>{n&&(t.style[e]=n+"px")})}function tc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function nc(e,t,n,r=""){return n.toString().replace(uu(e)?e:new RegExp(tc(e),"g"+r),t)}function rc(e,t,n){let r={};return t&&lu(t,(e,t)=>{-1===t.indexOf("_bbn")&&(r[t]=e)}),e+":"+Ru((n||"json")+JSON.stringify(r))}function oc(e,t=null,n=null,r=null,o=null,i=null){if(null===t&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(r=e.success),e.data&&(n=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=nc("//","/",e)),t||(t="json");let a=rc(e,n,t),s=Ku(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&Mu(n||{},{_bbn_token:bbn.env.token});const m=new AbortController;let l={responseType:t,signal:m.signal};"text"===t?l.headers={accept:"text/javascript","Content-Type":"text/javascript"}:"json"===t?l.headers={accept:"application/json","Content-Type":"application/json"}:"html"===t&&(l.headers={accept:"text/html","Content-Type":"text/html"});let u="get";uu(n)&&Iu(n)>0&&(l.data=n,u="post");let c=nu.run(u,e,l).then(t=>{if(Vu(a,t),bbn.fn.defaultEndLoadingFunction(e,d,n,t),200===t.status)iu(r)&&r(t.data,t.headers);else{let e=1;iu(o)&&(e=o(c,t.message,t)),e&&bbn.fn.defaultAjaxErrorFunction(c,t.message,t)}return t}).catch(t=>{let r=nu.isCancel(t);if(Vu(a,t.message||t.response.data,r),bbn.fn.defaultEndLoadingFunction(e,d,n,t),r){let n=1;iu(i)&&(n=i(t.message,e)),n&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{let e=1;iu(o)&&(e=o(c,t.message,t)),e&&bbn.fn.defaultAjaxErrorFunction(c,t.message,t.response)}return t.response}),d=Du(a,c,m);return bbn.fn.defaultStartLoadingFunction(e,d,n,a),c}}const ic=new TextDecoder;function ac(e){return ic.decode(e)}function sc(e,t){if(e&&ru(e)){let n=e.split("/").pop();if(!t)return n;let r=t.length;if(n&&su(n,-r)===t)return su(n,0,n.length-r)}return""}const mc=[["y","year",31536e6],["m","month",2592e6],["w","week",6048e5],["d","day",864e5],["h","hour",36e5],["i","minute",6e4],["s","second",1e3],["x","millisecond",1]],lc={years:"y",year:"y",YEARS:"y",YEAR:"y",Years:"y",Year:"y",YYYY:"y",YY:"y",yyyy:"y",yy:"y",months:"m",month:"m",Months:"m",Month:"m",MONTHS:"m",MONTH:"m",MMMM:"m",MMM:"m",MM:"m",weekday:"e",WEEKDAY:"e",ee:"e",EE:"e",ddd:"e",days:"d",day:"d",Days:"d",Day:"d",DAYS:"d",DAY:"d",DD:"d",dd:"d",hours:"h",hour:"h",Hours:"h",Hour:"h",HOURS:"h",HOUR:"h",HH:"h",hr:"h",hh:"h",milliseconds:"x",millisecond:"x",Milliseconds:"x",Millisecond:"x",MILLISECONDS:"x",MILLISECOND:"x",minutes:"i",minute:"i",Minutes:"i",Minute:"i",MINUTES:"i",MINUTE:"i",II:"i",ii:"i",mn:"i",mm:"i",min:"i",ms:"x",SSS:"x",sss:"x",SS:"s",ss:"s",seconds:"s",second:"s",Seconds:"s",Second:"s",SECONDS:"s",SECOND:"s",sec:"s",WW:"w",Y:"y",y:"y",M:"m",m:"m",e:"e",E:"e",D:"d",d:"d",H:"h",h:"h",n:"i",i:"i",s:"s",S:"s",W:"w",w:"w",ZZ:"z",Z:"z"},uc={y:"YYYY",m:"MM",d:"DD",e:"EE",w:"WW",h:"HH",i:"II",s:"SS",x:"SSS",z:"Z"};function cc(...e){if(!e.length)return!1;for(let t of e)if(null!==t&&("object"==typeof t||"function"==typeof t))return!1;return!0}var dc,hc,fc,Mc,yc=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},gc=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const pc=jl.ZonedDateTime.from("1970-01-01T00:00Z[UTC]");class bc{static fromUnit(e,t){const n=lc[t]||"ms",r=["y"===n?e:0,"m"===n?e:0,"w"===n?e:0,"d"===n?e:0,"h"===n?e:0,"i"===n?e:0,"s"===n?e:0,["y","m","w","d","h","i","s"].includes(n)?0:e],o=new jl.Duration(...r);return new bc(o)}constructor(e,t,n,r,o,i,a,s,m){dc.add(this),hc.set(this,void 0),fc.set(this,void 0),e instanceof jl.Duration?yc(this,hc,e,"f"):yc(this,hc,"object"==typeof e?new jl.Duration(e.years||0,e.months||0,e.weeks||0,e.days||0,e.hours||0,e.minutes||0,e.seconds||0,e.milliseconds||0,0,0):new jl.Duration(e||0,t||0,n||0,r||0,o||0,i||0,a||0,s||0,0,0),"f");const l=lc[m||""]||m;yc(this,fc,l||"ms","f"),$u(mc,e=>e[0]===l),Object.defineProperty(this,"isValid",{value:!1,writable:!1,configurable:!0})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return gc(this,hc,"f")}years(e=!1){return gc(this,dc,"m",Mc).call(this,"year",e)}months(e=!1){return gc(this,dc,"m",Mc).call(this,"month",e)}weeks(e=!1){return gc(this,dc,"m",Mc).call(this,"week",e)}days(e=!1){return gc(this,dc,"m",Mc).call(this,"day",e)}hours(e=!1){return gc(this,dc,"m",Mc).call(this,"hour",e)}minutes(e=!1){return gc(this,dc,"m",Mc).call(this,"minute",e)}seconds(e=!1){return gc(this,dc,"m",Mc).call(this,"second",e)}toJSON(){return this.value.toJSON()}asYears(){return gc(this,hc,"f").total({unit:"year",relativeTo:pc})}asMonths(){return gc(this,hc,"f").total({unit:"month",relativeTo:pc})}asWeeks(){return gc(this,hc,"f").total({unit:"week",relativeTo:pc})}asDays(){return gc(this,hc,"f").total({unit:"day",relativeTo:pc})}asHours(){return gc(this,hc,"f").total({unit:"hour",relativeTo:pc})}asMinutes(){return gc(this,hc,"f").total({unit:"minute",relativeTo:pc})}asSeconds(){return gc(this,hc,"f").total({unit:"second",relativeTo:pc})}add(e,t){let n=gc(this,fc,"f");if(t)if(lc[t]){const e=$u(mc,e=>e[0]===lc[t]);e&&(n=e[1])}else n=t;const r=n+"s";if(!["years","months","weeks","days","hours","minutes","seconds","milliseconds"].includes(r))throw new Error("Invalid unit for duration: "+(null!=t?t:n));const o={[r]:e},i=gc(this,hc,"f").add(o);return new bc(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gc(this,fc,"f"))}subtract(e,t){return this.add(-e,t)}toMilliseconds(){const e=gc(this,hc,"f");return e.years||e.months||e.weeks||e.days?e.total({unit:"millisecond",relativeTo:pc}):e.total({unit:"millisecond"})}}hc=new WeakMap,fc=new WeakMap,dc=new WeakSet,Mc=function(e,t){const n=gc(this,hc,"f");if(t)switch(e){case"year":return n.years;case"month":return n.months;case"week":return n.weeks;case"day":return n.days;case"hour":return n.hours;case"minute":return n.minutes;case"second":return n.seconds}const r=n.total({unit:e,relativeTo:pc});return Math.floor(r)};var wc,vc=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Ec=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Tc{constructor(e){this.__bbnNoData=!0,this.__isBbnDt=!0,wc.set(this,void 0),this.getWeekdayIndex=(e,t)=>{const n=t||bbn.env.lang,r=e.trim().toLowerCase(),o=[n,...navigator.languages];for(let e=0;e<o.length;e++){if(!o[e])continue;const t=new Intl.DateTimeFormat(o[e],{weekday:"long"});for(let e=0;e<7;e++){const n=new Date(2023,0,1+e);if(t.format(n).toLowerCase()===r)return e}}throw new Error(`Unknown weekday name '${e}' for locale '${n}'`)},Object.defineProperty(this,"isValid",{value:!0,writable:!1,configurable:!0}),vc(this,wc,e,"f");const t=new Date;Object.defineProperty(this,"defaultValue",{value:{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()},writable:!1,configurable:!1})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return Ec(this,wc,"f")}get hasFullDate(){return"year"in this.value&&"month"in this.value&&"day"in this.value}toEpochMs(){if("zoned"===this.kind){return this.value.toInstant().epochMilliseconds}const e=Tc.systemTimeZoneId;let t;switch(this.kind){case"dateTime":return this.value.toZonedDateTime(e).toInstant().epochMilliseconds;case"date":return this.value.toZonedDateTime({timeZone:e,plainTime:{hour:this.defaultValue.hour,minute:this.defaultValue.minute,second:this.defaultValue.second,millisecond:this.defaultValue.millisecond}}).toInstant().epochMilliseconds;case"time":{const n=this.value;t=`${jl.Now.plainDateISO().toString()}T${n.toString()}[${e}]`}case"yearMonth":t=`${this.value.toPlainDate({day:1}).toString()}T00:00[${e}]`;case"monthDay":{const n=this.value,r=jl.Now.plainDateISO();t=`${n.toPlainDate({year:r.year}).toString()}T00:00[${e}]`}}if(t){return jl.ZonedDateTime.from(t).toInstant().epochMilliseconds}throw new Error(`Unsupported kind '${this.kind}' in toEpochMs`)}static nowForKind(e){switch(e){case"zoned":return jl.Now.zonedDateTimeISO();case"dateTime":return jl.Now.plainDateTimeISO();case"date":return jl.Now.plainDateISO();case"time":return jl.Now.plainTimeISO();case"yearMonth":{const e=jl.Now.plainDateISO();return new jl.PlainYearMonth(e.year,e.month)}case"monthDay":{const e=jl.Now.plainDateISO();return new jl.PlainMonthDay(e.month,e.day,void 0,e.year)}default:throw new Error(`Unsupported kind '${e}' in nowForKind`)}}withValue(e){return new(0,this.constructor)(e)}static compare(e,t,n){if(!e||!t)throw new TypeError("Both arguments must be Temporal values");const r=jl.Now.timeZoneId();let o=lc[n]?$u(mc,e=>e[0]===lc[n])[1]:void 0;o=o?o+"s":void 0;const i=e=>e instanceof Tc,a=e=>i(e)?e.value:e,s=e=>{if(i(e))switch(e.kind){case"zoned":return e.value;case"dateTime":{const t=`${e.value.toString()}[${r}]`;return jl.ZonedDateTime.from(t)}case"date":{const t=`${e.value.toString()}T00:00[${r}]`;return jl.ZonedDateTime.from(t)}case"yearMonth":{const t=`${e.value.toPlainDate({day:1}).toString()}T00:00[${r}]`;return jl.ZonedDateTime.from(t)}default:throw new TypeError(`Cannot convert kind '${e.kind}' to ZonedDateTime for comparison`)}if(e instanceof jl.ZonedDateTime)return e;throw new TypeError("toZdt expects a bbnDt wrapper or ZonedDateTime")},m=a(e),l=a(t);if(m.constructor===l.constructor){const e=m.constructor,t=e.compare(m,l);if(void 0===o){if("function"!=typeof e.compare)throw new TypeError("This Temporal type has no static compare");return t}if("function"!=typeof m.until||"function"!=typeof m.since)throw new TypeError("This Temporal type does not support until/since");return m[1===t?"since":"until"](l,{smallestUnit:o,largestUnit:o,roundingMode:"floor"}).sign}const u=new Set(["zoned","dateTime","date","yearMonth"]);if(i(e)&&i(t)&&u.has(e.kind)&&u.has(t.kind)){const n=s(e),r=s(t),i=jl.ZonedDateTime.compare(n,r);if(void 0===o)return i;if("function"!=typeof n.until||"function"!=typeof n.since)throw new TypeError("ZonedDateTime does not support until/since");return n[1===i?"since":"until"](r,{smallestUnit:o,largestUnit:o,roundingMode:"floor"}).sign}throw new TypeError("Cannot compare different Temporal or bbnDt types")}static parse(e,t,n="auto",r){return bbn.dt(e,t,n,r)}parse(e,t,n){return Tc.parse(e,t,n||this.kind)}compare(e,t){return e instanceof Tc||(e=bbn.dt(e,null,this.kind)),Tc.compare(this,e,t)}add(e,t){if(this.value){if(this.value instanceof jl.PlainMonthDay||"function"!=typeof this.value.add)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof bc){const t=this.value.add(e.value);return new this.constructor(t)}if("object"==typeof e){const t=new bc(e),n=this.value.add(t.value);return new this.constructor(n)}{if(!t)throw new Error("Unit must be specified when adding a number");const n=bc.fromUnit(e,t),r=this.value.add(n.value);return new this.constructor(r)}}}subtract(e,t){if(this.value){if(this.value instanceof jl.PlainMonthDay||"function"!=typeof this.value.subtract)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof bc){const t=this.value.subtract(e.value);return new this.constructor(t)}if("object"==typeof e){const t=new bc(e),n=this.value.subtract(t.value);return new this.constructor(n)}{if(!t)throw new Error("Unit must be specified when adding a number");const n=bc.fromUnit(e,t),r=this.value.subtract(n.value);return new this.constructor(r)}}}duration(e,t){return bc.fromUnit(e,t)}isBefore(e,t){return this.compare(e,t)<0}isBeforeOrSame(e,t){return this.compare(e,t)<=0}isAfter(e,t){return this.compare(e,t)>0}isAfterOrSame(e,t){return this.compare(e,t)>=0}isSame(e,t){return 0===this.compare(e,t)}equals(e){return this.isSame(e)}toJSON(){if("toZonedDateTime"in Ec(this,wc,"f")){const e=Ec(this,wc,"f").toZonedDateTime(Tc.systemTimeZoneId).withTimeZone("UTC");return bbn.dt(e).format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}if("zoned"===this.kind)return this.timezone("America/New_York").format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}timezone(e){switch(this.kind){case"zoned":if(void 0===e){return this.value.timeZoneId}{const t=this.value.withTimeZone(e);return bbn.dt(t)}case"dateTime":if(void 0===e){const e=`${this.value.toString()}[${Tc.systemTimeZoneId}]`;return jl.ZonedDateTime.from(e).timeZoneId}{const t=`${this.value.toString()}[${e}]`,n=jl.ZonedDateTime.from(t);return bbn.dt(n)}default:throw new Error(`timezone() is not supported for kind '${this.kind}'`)}}toString(){return new Date(this.valueOf()).toString()}year(e){if(this.value){if(!("year"in this.value))throw new Error("year() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({year:e});return new this.constructor(t)}return this.value.year}}month(e){if(this.value){if(!("month"in this.value))throw new Error("month() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({month:e});return new this.constructor(t)}return this.value.month}}day(e){if(this.value){if(!("day"in this.value))throw new Error("day() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({day:e});return new this.constructor(t)}return this.value.day}}hour(e){if(this.value){if(!("hour"in this.value)){if(this.hasFullDate)return 0;throw new Error("hour() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({hour:e});return new this.constructor(t)}return this.value.hour}}minute(e){if(this.value){if(!("minute"in this.value)){if(this.hasFullDate)return 0;throw new Error("minute() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({minute:e});return new this.constructor(t)}return this.value.minute}}second(e){if(this.value){if(!("second"in this.value)){if(this.hasFullDate)return 0;throw new Error("second() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({second:e});return new this.constructor(t)}return this.value.second}}millisecond(e){if(this.value){if(!("millisecond"in this.value)){if(this.hasFullDate)return 0;throw new Error("millisecond() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({millisecond:e});return new this.constructor(t)}return this.value.millisecond}}weekday(e,t){if(this.value){if(!("dayOfWeek"in this.value))throw new Error("weekday() is not supported for this type");return void 0===e||e instanceof Event?this.value.dayOfWeek%7:this.setWeekday(e,t)}}date(e){if(this.value){if(!this.hasFullDate)throw new Error("date() is not supported for this type");return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD:this.parse(e,"Y-m-d")}}datetime(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD+" "+this.HH+":"+this.II+":"+this.SS:"date"===this.kind?this.parse(this.date()+" "+e,"Y-m-d 00:00:00","dateTime"):this.parse(e,"Y-m-d H:i:s")}time(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.HH+":"+this.II+":"+this.SS:"zoned"===this.kind?this.parse(this.date()+" "+e+" GMT"+this.value.timeZoneId,"Y-m-d H:i:s[ GMT]Z","dateTime"):["dateTime","date"].includes(this.kind)?this.parse(this.date()+" "+e,"Y-m-d H:i:s","dateTime"):this.parse(e,"H:i:s")}fdate(e=!1,t=!1){return this.value?bbn.dt.locales.formatters[e?"long":"numeric"].format(new Date(this.toEpochMs())):""}ftime(e=!0){return this.value?this.format("HH:II"+(e?":SS":"")):""}week(){if(!this.value)return;const e=this.year(),t=new Date(Date.UTC(e,this.month()-1,this.day())),n=new Date(Date.UTC(e,0,1)),r=Math.floor((t.getTime()-n.getTime())/864e5),o=n.getUTCDay();let i=(bbn.dt.locales.firstDayOfWeek-o+7)%7;const a=0===i?7:i;if(r<a)return 1;const s=r-a;return 2+Math.floor(s/7)}get YYYY(){if("year"in this.value)return this.year().toString()}get YY(){if("year"in this.value)return su(this.year().toString(),2,2)}get MMMM(){if("month"in this.value)return bbn.dt.locales.monthsLong[this.month()-1]}get MMM(){if("month"in this.value)return bbn.dt.locales.monthsShort[this.month()-1]}get MM(){if("month"in this.value){const e=parseInt(this.month().toString());return e<10?"0"+e.toString():e.toString()}}get M(){if("month"in this.value)return this.month().toString()}get EE(){if("dayOfWeek"in this.value)return this.value.dayOfWeek.toString()}get DD(){if("day"in this.value){const e=parseInt(this.day().toString());return e<10?"0"+e.toString():e.toString()}}get d(){if("day"in this.value)return this.day().toString()}get dddd(){if("dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"long")}get ddd(){if("dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"short")}get D(){if("day"in this.value)return this.day().toString()}get HH(){if("hour"in this.value){const e=parseInt(this.hour().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.hour.toString().padStart(2,"0")}get H(){return"hour"in this.value?this.hour().toString():this.hasFullDate?"0":void 0}get II(){if("minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get mm(){if("minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get I(){return"minute"in this.value?this.minute().toString():this.hasFullDate?"0":void 0}get SS(){if("second"in this.value){const e=parseInt(this.second().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.second.toString().padStart(2,"0")}get SSS(){if("millisecond"in this.value){const e=parseInt(this.millisecond().toString());return e<10?"00"+e.toString():e<100?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.millisecond.toString().padStart(3,"0")}get S(){return"second"in this.value?this.second().toString():this.hasFullDate?"0":void 0}get WW(){if("weekOfYear"in this.value)return this.value.weekOfYear.toString().padStart(2,"0")}get W(){if("weekOfYear"in this.value)return this.value.weekOfYear.toString()}get Z(){if("zoned"===this.kind){return this.value.offset}}get ZZ(){if("zoned"===this.kind){return this.value.offset.replace(":","")}}unix(e=!1){if("number"==typeof e){return new(0,this.constructor)(new Date(e))}return e?this.toEpochMs():Math.floor(this.toEpochMs()/1e3)}format(e="YYYY-MM-DD HH:II:SS"){let t="";if(e){const n=new RegExp("([|]|"+Object.keys(lc).join("|")+")","g");let r=0;fu(e.split(n),e=>{if("["!==e)if("]"!==e)if(r>0)t+=e;else if(e in lc)if(e in this&&cc(this[e]))t+=this[e];else{t+=this[uc[lc[e]]]||""}else t+=e;else r--;else r++})}return t}calendar(e){const t=new this.constructor,n=this.startOf("day"),r=t.startOf("day"),o=n.diff(r,"day"),i={numeric:"auto"};e&&(i.style="short");const a=new Intl.RelativeTimeFormat(bbn.env.lang,i);let s="",m=[],l="";if(o>=-1&&o<=1)m=a.formatToParts(o,"day");else if(o>=-6&&o<-1)l=this.dddd+", ",m=a.formatToParts(o,"day");else{if(!(o<=6&&o>1))return this.fdate();l=this.dddd,m=[]}return bbn.fn.each(m,e=>{s+=e.value}),`${l}${s} ${this.ftime()}`}matchFormat(e,t){try{return this.parse(e,t),!0}catch(e){return!1}}getWeekday(e,t="long",n){if(!t){const t=this.getWeekday(e,"narrow",n),r=this.getWeekday(e,"short",n),o=this.getWeekday(e,"long",n);return{letter:t,abbr:r,full:o,long:o,short:r,narrow:t}}let r;if("letter"===t)r="narrow";else if("abbr"===t)r="short";else if("full"===t)r="long";else{if(!["long","short","narrow"].includes(t))throw new Error("Invalid mode for getWeekDay: "+t+'. Allowed values are "long", "short", "narrow", "letter", "abbr", "full".');r=t}return new Date(2023,0,1+e).toLocaleDateString([n||bbn.env.lang,...navigator.languages],{weekday:r})}setWeekday(e,t=!1,n){let r;if("string"==typeof e&&(e=this.getWeekdayIndex(e,n)),"number"!=typeof e)throw new TypeError("weekday must be a number (0–6) or a string");if(e<0||e>6)throw new RangeError("weekday number must be between 0 and 6");r=e;const o=this.weekday();let i;return t?(i=(o-r+7)%7,0===i&&(i=7),i=-i):(i=(r-o+7)%7,0===i&&(i=7)),this.add(i,"d")}diff(e,t="",n=!1){let r;if(e instanceof Tc)r=e.toEpochMs();else if(e instanceof jl.ZonedDateTime||e instanceof jl.PlainDateTime||e instanceof jl.PlainDate||e instanceof jl.PlainTime||e instanceof jl.PlainYearMonth||e instanceof jl.PlainMonthDay){r={kind:this.kind,value:e}.toEpochMs()}else{if("string"!=typeof e&&"number"!=typeof e)throw bbn.fn.log("DATE??",e),new TypeError("Unsupported date argument for diff");r=this.parse(String(e),"").toEpochMs()}let o=this.toEpochMs()-r;if(n&&(o=Math.abs(o)),!t)return o;const i=lc[t]||t,a=$u(mc,e=>e[0]===i);if(!a)throw new Error("Invalid unit for diff: "+t);const[,,s]=a,m=o/s;return m<0?Math.ceil(m):Math.floor(m)}guessUnit(e){const t=Math.abs(e);for(const[e,n,r]of mc)if(t>=r||"millisecond"===n)return e;return null}fromNow(e=""){Tc.nowForKind(this.kind);const t=bbn.dt(void 0,null,this.kind),n=this.diff(t),r=lc[e]||this.guessUnit(n);if(!r)throw new Error("Cannot guess unit for fromNow");let o=this.diff(t,r);const i=new Intl.RelativeTimeFormat([bbn.env.lang,...navigator.languages],{numeric:"auto"}),a=$u(mc,e=>e[0]===r);if(!a)throw new Error("Invalid unit for fromNow: "+e);let[,s]=a;return"millisecond"===s&&(s="second",o=Math.round(o/1e3)),bbn.fn.log("FROM NOW",o,s,i),i.format(o,s)}from(e,t=""){const n=this.diff(e),r=lc[t]||this.guessUnit(n);if(!r)throw new Error("Cannot guess unit for fromDate");const o=this.diff(e,r),i=r;return o>0?Yl("%d %s before",o,i):o<0?Yl("%d %s after",-o,i):Yl("The same %s",i)}startOf(e="d"){var t,n;const r=lc[e]||e;if(!r)throw new Error("Invalid unit for startOf: "+e);let o=this.value;const i=e=>{const t={};return"hour"in e?(Object.assign(t,{hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),e.with(t)):e};switch(r){case"y":if(!("year"in o))throw new Error('startOf("y") only valid for year-based types');o=i(o.with({month:1,day:1}));break;case"m":if(!("month"in o))throw new Error('startOf("m") only valid for month-based types');o=i(o.with({day:1}));break;case"w":{const e="toPlainDate"in o?o.toPlainDate():o,r=e.dayOfWeek-1,a=e.subtract({days:r});o="toPlainDateTime"in o?i(a.toPlainDateTime(null!==(n=null===(t=o.toPlainTime)||void 0===t?void 0:t.call(o))&&void 0!==n?n:jl.PlainTime.from("00:00"))):a;break}case"d":o=i(o);break;case"h":o=o.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"i":o=o.with({second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"s":o=o.with({millisecond:0,microsecond:0,nanosecond:0});break;default:throw new Error("Invalid unit for startOf: "+e)}return this.withValue(o)}endOf(e="d"){const t=jl.Now.timeZoneId(),n=lc[e]||e;let r,o=(()=>{switch(this.kind){case"zoned":return this.value;case"dateTime":{const e=`${this.value.toString()}[${t}]`;return jl.ZonedDateTime.from(e)}case"date":{const e=`${this.value.toString()}T00:00[${t}]`;return jl.ZonedDateTime.from(e)}case"time":{const e=this.value,n=`${jl.Now.plainDateISO().toString()}T${e.toString()}[${t}]`;return jl.ZonedDateTime.from(n)}case"yearMonth":{const e=`${this.value.toPlainDate({day:1}).toString()}T00:00[${t}]`;return jl.ZonedDateTime.from(e)}case"monthDay":{const e=this.value,n=jl.Now.plainDateISO(),r=`${e.toPlainDate({year:n.year}).toString()}T00:00[${t}]`;return jl.ZonedDateTime.from(r)}default:throw new Error("Unsupported kind in endOf")}})(this.value);switch(n){case"y":r=o.with({month:1,day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({years:1});break;case"m":r=o.with({day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({months:1});break;case"w":{const e=-(o.toPlainDate().dayOfWeek-1);r=o.add({days:e}).with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({weeks:1});break}case"d":r=o.with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({days:1});break;case"h":r=o.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({hours:1});break;case"i":case"n":case"min":r=o.with({second:0,millisecond:0,microsecond:0,nanosecond:0}).add({minutes:1});break;case"s":r=o.with({millisecond:0,microsecond:0,nanosecond:0}).add({seconds:1});break;default:throw new Error("Invalid unit for endOf: "+e)}const i=r.subtract({milliseconds:1});switch(this.kind){case"zoned":return this.withValue(i);case"dateTime":return this.withValue(i.toPlainDateTime());case"date":return this.withValue(i.toPlainDate());case"time":return this.withValue(i.toPlainTime());case"yearMonth":{const e=i.toPlainDate();return this.withValue(new jl.PlainYearMonth(e.year,e.month))}case"monthDay":{const e=i.toPlainDate();return this.withValue(new jl.PlainMonthDay(e.month,e.day))}default:throw new Error("Unsupported kind in endOf")}}clone(){return this.withValue(this.value)}isLeapYear(){if(this.isValid){const e=this.year();return e%4==0&&e%100!=0||e%400==0}return!1}daysInMonth(){if(this.isValid)switch(this.month()){case 2:return this.year()%4==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}valueOf(){return this.unix(!0)}}wc=new WeakMap,Tc.systemTimeZoneId=jl.Now.timeZoneId();class Sc extends Tc{constructor(e,t,n,r,o,i,a){let s;if(e)if(void 0===t)if(e instanceof jl.PlainDateTime)s=e;else if(e instanceof Date)s=new jl.PlainDateTime(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");s=jl.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Tc.systemTimeZoneId).toPlainDateTime()}else s=new jl.PlainDateTime(e,t,n||1,r||0,o||0,i||0,a||0);else s=jl.PlainDateTime.from(jl.Now.plainDateTimeISO());super(s),this.kind="dateTime"}format(e){return[!0,"long","full"].includes(e)&&(e=$u(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long",hour:"2-digit",minute:"2-digit",second:void 0}).pattern),e||(e=$u(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:void 0}).pattern),Tc.prototype.format.call(this,e)}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),o=Object.assign(Object.assign({year:"numeric",month:e?"long":"2-digit",day:"2-digit"},n?{weekday:e?"long":"short"}:{}),t?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}ftime(e=!1){if(!this.value)return"";const t=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),n={hour:"2-digit",minute:"2-digit"};e&&(n.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],n).format(t)}}class Dc extends Tc{constructor(e,t,n){let r;if(e)if(void 0===t)if(e instanceof jl.PlainDate)r=e;else if(e instanceof Date)r=new jl.PlainDate(e.getFullYear(),e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const t=new Date(e);r=new jl.PlainDate(t.getFullYear(),t.getMonth()+1,t.getDate())}}else r=new jl.PlainDate(e,t,n||1);else r=jl.PlainDate.from(jl.Now.plainDateISO());super(r),this.kind="date"}compareSameKind(e){const t=jl.PlainDate.compare(this.value,e.value);return t<0?-1:t>0?1:0}format(e){return!0===e&&(e=$u(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long"}).pattern),e||(e=$u(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric"}).pattern),Tc.prototype.format.call(this,e)}ftime(e=!1){return"00:00"+(e?":00":"")}fdate(e=!1,t=!1){const n=new Date(this.year(),this.month()-1,this.day()),r=Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},t?{weekday:e?"long":"short"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],r).format(n)}}class zc extends Tc{constructor(e,t,n,r,o,i,a,s){let m;if(e)if(void 0===t)if(e instanceof jl.ZonedDateTime)m=e;else if(e instanceof Date)m=function(e,t=!1,n=jl.Now.timeZoneId()){const r=jl.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(n);return t?r:r.toPlainDateTime()}(e,!0);else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtZoned");m=jl.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone)}else{m=new jl.PlainDateTime(t,n,r||1,o||0,i||0,a||0,s||0).toZonedDateTime(e||jl.Now.timeZoneId())}else m=jl.Now.zonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone);super(m),this.kind="zoned"}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),o=Object.assign(Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},n?{weekday:e?"long":"short"}:{}),t?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}ftime(e=!1){if(!this.value)return"";const t=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),n={hour:"2-digit",minute:"2-digit"};e&&(n.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],n).format(t)}}class Ac extends Tc{constructor(e,t){let n;if(e)if(void 0===t)if(e instanceof jl.PlainYearMonth)n=e;else if(e instanceof Date)n=new jl.PlainYearMonth(e.getFullYear(),e.getMonth()+1);else{if("number"!=typeof t)throw new Error("Invalid value for bbnDtDateTime");{const e=new Date(t);n=new jl.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}}else n=new jl.PlainYearMonth(e,t);else{const e=new Date;n=new jl.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}super(n),this.kind="yearMonth"}format(e){return!0===e&&(e=$u(bbn.dt.locales.date,e=>"numeric"===e.year&&"long"===e.month&&!("day"in e)).pattern),e||(e=$u(bbn.dt.locales.date,e=>"numeric"===e.year&&"numeric"===e.month&&!("day"in e)).pattern),Tc.prototype.format.call(this,e)}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1),o={year:"numeric",month:e?"long":"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}}class Hc extends Tc{constructor(e,t){let n;if(e)if(void 0===t)if(e instanceof jl.PlainMonthDay)n=e;else if(e instanceof Date)n=new jl.PlainMonthDay(e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const t=new Date(e);n=new jl.PlainMonthDay(t.getMonth()+1,t.getDate())}}else n=new jl.PlainMonthDay(e,t);else{const e=new Date;n=new jl.PlainMonthDay(e.getMonth()+1,e.getDate())}super(n),this.kind="monthDay"}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(2e3,this.month()-1,this.day()),o={month:e?"long":"numeric",day:"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}}function kc(e,t,n){let r="";const o=e.some(e=>"dayPeriod"===e.type),i=o||"h12"===t||"h11"===t,a=!!n.weekday,s="short"===n.month||"long"===n.month,m="numeric"===n.year&&"numeric"===n.month&&"numeric"===n.day&&!a&&!s;for(const t of e)switch(t.type){case"year":"2-digit"===n.year?r+="YY":r+="YYYY";break;case"month":if("short"===n.month){r+="MMM";break}if("long"===n.month){r+="MMMM";break}if(m){r+="M";break}/^\d+$/.test(t.value)?r+=2===t.value.length?"MM":"M":r+=t.value.length>3?"MMMM":"MMM";break;case"day":if(m){r+="D";break}r+=2===t.value.length?"DD":"D";break;case"weekday":"short"===n.weekday||"narrow"===n.weekday?r+="ddd":"long"===n.weekday?r+="dddd":r+=t.value.length>3?"dddd":"ddd";break;case"hour":r+=i?2===t.value.length?"hh":"h":2===t.value.length?"HH":"H";break;case"minute":r+="II";break;case"second":r+="SS";break;case"dayPeriod":r+="A";break;case"timeZoneName":r+="z";break;case"literal":if(!t.value)break;if(/[A-Za-zÀ-ÖØ-öø-ÿ]/.test(t.value)){r+=`[${t.value.replace(/]/g,"\\]")}]`}else r+=t.value;break;default:r+=t.value}return r}const Ic=()=>{if(Object.keys(bbn.dt.locales).length)return;const e=[bbn.env.lang,...navigator.languages],t=new Intl.DateTimeFormat(e,{month:"long"}),n=new Intl.DateTimeFormat(e,{month:"short"}),r=new Intl.DateTimeFormat(e,{weekday:"long"}),o=new Intl.DateTimeFormat(e,{weekday:"short"}),i=new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"short"}),a=new Intl.DateTimeFormat(e,{dateStyle:"long",timeStyle:"long"}),s=new Intl.DateTimeFormat(e,{year:"numeric",month:"numeric",day:"numeric"}),m=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),l=new Intl.Locale(e[0]),u=[],c=[];for(let e=0;e<12;e++){const r=new Date(2020,e,1);u.push(t.format(r)),c.push(n.format(r))}const d=new Date(2020,1,2),h=[],f=[];for(let e=0;e<7;e++){const t=new Date(d.getTime()+864e5*e);h.push(r.format(t)),f.push(o.format(t))}const{date:M,time:y,datetime:g}=(e=>{e||(e=[bbn.env.lang,...navigator.languages]);const t=new Date(Date.UTC(2e3,0,2,13,45,30)),n=[],r=[],o=[],i=new Set,a=new Set,s=new Set,m=[{year:"numeric",month:"2-digit",day:"2-digit"},{year:"numeric",month:"numeric",day:"numeric"},{year:"numeric",month:"short",day:"numeric"},{year:"numeric",month:"long",day:"numeric"},{weekday:"short",year:"numeric",month:"short",day:"numeric"},{weekday:"long",year:"numeric",month:"long",day:"numeric"},{year:"numeric",month:"numeric"},{year:"numeric",month:"2-digit"},{year:"numeric",month:"short"},{year:"numeric",month:"long"},{month:"numeric",day:"numeric"},{month:"2-digit",day:"2-digit"},{month:"short",day:"numeric"},{month:"long",day:"numeric"}],l=[];for(const r of m){const o=new Intl.DateTimeFormat(e,r),a=kc(o.formatToParts(t),o.resolvedOptions().hourCycle,r);i.has(a)||(i.add(a),n.push({pattern:a,sample:o.format(t),options:r})),r.year&&r.month&&r.day&&l.push(r)}const u=[{hour:"numeric"},{hour:"2-digit",minute:"2-digit"},{hour:"2-digit",minute:"2-digit",second:"2-digit"},{hour:"2-digit",minute:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",timeZoneName:"long"}];for(const n of u){const o=new Intl.DateTimeFormat(e,n),i=kc(o.formatToParts(t),o.resolvedOptions().hourCycle,n);a.has(i)||(a.add(i),r.push({pattern:i,sample:o.format(t),options:n}))}for(const n of l)for(const r of u){const i=Object.assign(Object.assign({},n),r),a=new Intl.DateTimeFormat(e,i),m=kc(a.formatToParts(t),a.resolvedOptions().hourCycle,i);s.has(m)||(s.add(m),o.push({pattern:m,sample:a.format(t),options:i}))}return{date:n,time:r,datetime:o}})(e),p=l.getWeekInfo?l.getWeekInfo():{firstDay:1};Mu(bbn.dt.locales,{formatters:{short:i,long:a,numeric:s,relative:m},firstDayOfWeek:p.firstDay,monthsLong:u,monthsShort:c,weekdaysLong:h,weekdaysShort:f,locale:l,date:M,time:y,datetime:g})};class _c extends Tc{constructor(e,t,n,r){let o;if(e)if(void 0===e)if(e instanceof jl.PlainTime)o=e;else if(e instanceof Date)o=new jl.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");if(void 0!==t)o=new jl.PlainTime(e,t,n||0,r||0);else{const t=new Date(e);o=new jl.PlainTime(t.getHours(),t.getMinutes(),t.getSeconds(),1e6*t.getMilliseconds())}}else o=new jl.PlainTime(e,t||0,n||0,r||0);else{const e=new Date;o=new jl.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds())}super(o),this.kind="time"}ftime(e=!1){if(!this.value)return"";const t=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),n={hour:"2-digit",minute:"2-digit"};e&&(n.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],n).format(t)}}const Cc=function(e,t){try{return t?e.toLocaleLowerCase(t):e.toLowerCase()}catch(t){return e.toLowerCase()}};function Gc(e,t,n="auto",r,o){var i,a,s,m,l,u,c;Ic();const d=jl;if(!d)throw new Error("Temporal API is required (load @js-temporal/polyfill)");let h=!0;o||(o=(null===(i=null===bbn||void 0===bbn?void 0:bbn.dt)||void 0===i?void 0:i.locales)||{});const f={monthsLong:null!==(a=null==o?void 0:o.monthsLong)&&void 0!==a?a:bbn.dt.locales.monthsLong,monthsShort:null!==(s=null==o?void 0:o.monthsShort)&&void 0!==s?s:bbn.dt.locales.monthsShort,weekdaysLong:null!==(m=null==o?void 0:o.weekdaysLong)&&void 0!==m?m:bbn.dt.locales.weekdaysLong,weekdaysShort:null!==(l=null==o?void 0:o.weekdaysShort)&&void 0!==l?l:bbn.dt.locales.weekdaysShort},M=(null===bbn||void 0===bbn?void 0:bbn.env)&&(null===(u=bbn.env)||void 0===u?void 0:u.lang)||(null===bbn||void 0===bbn?void 0:bbn.dt)&&(null===(c=bbn.dt)||void 0===c?void 0:c.locale)||Intl.DateTimeFormat().resolvedOptions().locale,y=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function g(t,n="auto"){var o;const i=new Sc,a={year:i.year(),month:1,day:1,hour:0,minute:0,second:0,ms:0,hasYear:!1,hasMonth:!1,hasDay:!1,hasHour:!1,hasMinute:!1,hasSecond:!1,hasMs:!1},s="auto"===n,m="zoned"===n.toLowerCase(),l="datetime"===n.toLowerCase(),u="date"===n.toLowerCase(),c="time"===n.toLowerCase(),g="yearmonth"===n.toLowerCase(),p="monthday"===n.toLowerCase(),b=[{token:"YYYY",regex:"\\d{4}",apply:(e,t)=>{t.year=parseInt(e,10),t.hasYear=!0}},{token:"YY",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);t.year=n>=70?1900+n:2e3+n,t.hasYear=!0}},{token:"Y",regex:"[+-]?\\d{1,6}",apply:(e,t)=>{t.year=parseInt(e,10),t.hasYear=!0}},{token:"MMMM",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cc(e,M),r=f.monthsLong.findIndex(e=>Cc(e,M)===n);if(-1===r)throw new Error("Invalid month name: "+e);t.month=r+1,t.hasMonth=!0}},{token:"MMM",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cc(e,M),r=f.monthsShort.findIndex(e=>Cc(e,M)===n);if(-1===r)throw new Error("Invalid short month name: "+e);t.month=r+1,t.hasMonth=!0}},{token:"MM",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid month: "+n);t.month=n,t.hasMonth=!0}},{token:"mm",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"M",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid month: "+n);t.month=n,t.hasMonth=!0}},{token:"m",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid month: "+n);t.month=n,t.hasMonth=!0}},{token:"DD",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>31)throw new Error("Invalid day of month: "+n);t.day=n,t.hasDay=!0}},{token:"D",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>31)throw new Error("Invalid day of month: "+n);t.day=n,t.hasDay=!0}},{token:"d",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>31)throw new Error("Invalid day of month: "+n);t.day=n,t.hasDay=!0}},{token:"dddd",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cc(e,M),r=f.weekdaysLong.findIndex(e=>Cc(e,M)===n);if(-1===r)throw new Error("Invalid weekday name: "+e);t.weekday=r}},{token:"ddd",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cc(e,M),r=f.weekdaysShort.findIndex(e=>Cc(e,M)===n);if(-1===r)throw new Error("Invalid short weekday name: "+e);t.weekday=r}},{token:"EE",regex:"\\d{1}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>7)throw new Error("Invalid weekday number: "+n);t.weekday=n}},{token:"hh",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid 12-hour clock hour: "+n);t.hour=n,t.hasHour=!0,t.uses12Hour=!0}},{token:"HH",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>23)throw new Error("Invalid hour: "+n);t.hour=n,t.hasHour=!0}},{token:"H",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>23)throw new Error("Invalid hour: "+n);t.hour=n,t.hasHour=!0}},{token:"h",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>23)throw new Error("Invalid hour: "+n);t.hour=n,t.hasHour=!0}},{token:"II",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"I",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"i",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"SS",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"S",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"ss",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"s",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"ms",regex:"\\d{1,3}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>999)throw new Error("Invalid millisecond: "+n);t.ms=n,t.hasMs=!0}},{token:"WWWW",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"WWW",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"WW",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"W",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"ZZ",regex:"(?:Z?[+-]\\d{2}\\d{2})",apply:(e,t)=>{if("Z"===e||"z"===e)return void(t.offsetMinutes=0);const n="-"===e[0]?-1:1,r=e.slice(1),o=parseInt(r.slice(0,2),10),i=parseInt(r.slice(2),10);if(o<0||o>23||i<0||i>59)throw new Error("Invalid timezone offset: "+e);t.offsetMinutes=n*(60*o+i)}},{token:"Z",regex:"(?:Z?[+-]\\d{2}\\:{1}\\d{2})",apply:(e,t)=>{if("Z"===e||"z"===e)return void(t.offsetMinutes=0);const n="-"===e[0]?-1:1,r=e.slice(1),[o,i]=r.split(":");let a=parseInt(o,10),s=parseInt(i,10);if(a<0||a>23||s<0||s>59)throw new Error("Invalid timezone offset: "+e);t.offsetMinutes=n*(60*a+s)}},{token:"z",regex:"[A-Za-z_\\/]+",apply:(e,t)=>{t.timeZone=e}},{token:"A",regex:"(?:AM|PM|am|pm)",apply:(e,t)=>{t.isPM=/pm/i.test(e),t.hasAmPm=!0}},{token:"a",regex:"(?:AM|PM|am|pm)",apply:(e,t)=>{t.isPM=/pm/i.test(e),t.hasAmPm=!0}}],w=[...b].sort((e,t)=>t.token.length-e.token.length);let v="";const E=[];let T=0,S=0;for(;T<t.length;){if("["===t[T]){let e=T+1,n="";for(;e<t.length&&"]"!==t[e];)n+=t[e],e++;if(e<t.length&&"]"===t[e]){const t=n.replace(/\\]/g,"]");v+=y(t),T=e+1;continue}}let e=null;for(const n of w)if(t.startsWith(n.token,T)){e=n;break}e?(v+=`(${e.regex})`,S=v.length,e.apply?E.push(t=>e.apply(t,a)):E.push(()=>{}),T+=e.token.length):(v+=y(t[T]),T+=1)}const D=new RegExp("^"+bbn.fn.substr(v,0,S));let z=D.exec(e);if(!z){if(!r)throw new Error(`Date string "${e}" does not match format "${t}"`);{const n=new Sc(i.year(),1,1,0,0,0,0);e=n.format(t),h=!1,z=D.exec(e)}}for(let e=1;e<z.length;e++){const t=z[e],n=E[e-1];null!=t&&n&&n(t)}if(a.uses12Hour){if(!a.hasAmPm)throw new Error("AM/PM marker (A or a) is required with 12-hour format (hh)");let e=a.hour;a.isPM?e<12&&(e+=12):12===e&&(e=0),a.hour=e}const A=a.hasYear||a.hasMonth||a.hasDay,H=a.hasYear&&a.hasMonth&&a.hasDay,k=a.hasYear&&a.hasMonth&&!a.hasDay,I=!a.hasYear&&a.hasMonth&&a.hasDay,_=a.hasHour||a.hasMinute||a.hasSecond||a.hasMs,C=null!=a.timeZone||null!=a.offsetMinutes;let G;if(m||C&&s){let e;try{e=new d.PlainDateTime(a.year,a.month,a.day,a.hour,a.minute,a.second,1e6*a.ms)}catch(e){throw new Error("Invalid date/time components")}if(a.timeZone){const t=d.TimeZone.from(a.timeZone),n=e.toZonedDateTime(t);G=new zc(n)}else{const e=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.ms)-6e4*(null!==(o=a.offsetMinutes)&&void 0!==o?o:0);G=new zc(d.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(d.Now.timeZoneId()))}}else if(l||s&&(h||A&&_)){if(!H&&!h)throw new Error("PlainDateTime requires year, month and day");const e=new d.PlainDateTime(a.year,a.month,a.day,a.hour,a.minute,a.second,1e6*a.ms);G=new Sc(e)}else if(u||g||p||s&&A&&!_)if(u||H&&s){const e=new d.PlainDate(a.year,a.month,a.day);G=new Dc(e)}else if(g||k&&s){const e=new d.PlainYearMonth(a.year,a.month);G=new Ac(e)}else if(p||I&&s){const e=new d.PlainMonthDay(a.month,a.day,1972);G=new Hc(e)}else{if(!s||!a.hasYear)throw new Error("Not enough date components for a known Temporal type");{const e=new d.PlainDate(a.year,1,1);G=new Dc(e)}}else{if(!(c||s&&!A&&_))throw new Error("No date or time information found in input");{const e=new d.PlainTime(a.hour,a.minute,a.second,1e6*a.ms);G=new _c(e)}}return G.setValid(h),G}if(Array.isArray(t)){let e=null;for(const r of t)try{return g(r,n)}catch(t){e=t}throw null!=e?e:new Error("No format matched")}return g(t,n)}const Pc=["YYYY-MM-DD HH:II:SS.ms","YYYY-MM-DD HH:II:SS","YYYY-MM-DD HH:II:SS[ GMT]Z","YYYY-MM-DD HH:II","YYYY-MM-DDTHH:II:SS.msZ","YYYY-MM-DDTHH:II:SSZ","YYYY-MM-DDTHH:II:SS","YYYY-MM-DDTHH:II","ddd[, ]DD MMM YYYY HH:II:SS[ GMT]","ddd MMM DD YYYY HH:II:SS[ GMT]Z","ddd MMM DD YYYY HH:II:SS","D MMM","D MMMM","D/M","YYYY-MM-DD","YYYY-MM","HH:II:SS","HH:II"];function Oc(e,t,n){const r=e.trim();if(!r)return null;Ic();const o=e=>{for(const t of e)try{return Gc(r,t),t}catch(e){}return null};if(t){return o(Array.isArray(t)?t:[t])}const i=new Set,a=Pc.filter(e=>!i.has(e)&&(i.add(e),!0)),s=[...bbn.dt.locales.datetime.map(e=>e.pattern),...bbn.dt.locales.date.map(e=>e.pattern),...bbn.dt.locales.time.map(e=>e.pattern)].filter(e=>!i.has(e)&&(i.add(e),!0)),m=o([...a,...s]);return m||null}const Bc=(e,t=null,n="auto")=>{if(void 0===e)return new Sc;if(!e){const e=new Sc;return e.setValid(!1),e}if("string"==typeof e){if(t)return Gc(e,t,n,!0);{const t=Oc(e);if(t)return Gc(e,t,n);throw new Error(Yl("Could not guess the date format for value: %s",e))}}if("number"==typeof e)return new Sc(Math.floor(Math.abs(e)<99999999999?1e3*e:e));if(e.__isBbnDt)return e;if(e instanceof Date){const t=e;return new Sc(t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}if(e instanceof jl.PlainDateTime)return new Sc(e);if(e instanceof jl.PlainDate)return new Dc(e);if(e instanceof jl.PlainTime)return new zc(e);if(e instanceof jl.PlainYearMonth)return new Ac(e);if(e instanceof jl.PlainMonthDay)return new Hc(e);if(e instanceof jl.ZonedDateTime)return new zc(e);if(e instanceof jl.Duration)return new bc(e);throw bbn.fn.log("Invalid date value",e),new Error(Yl("Invalid date value"))};function Nc(e){if(arguments.length>1){const e=[];for(let t=1;t<arguments.length;t++)e.push(arguments[t]);e.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),au.apply(this,e)}throw new Error(e)}function xc(e,t=null,n=null,r=null,o=null){let i=!1;if(t){i=!0;let a,s="object"===(typeof t).toLowerCase();if(s&&t.prescript)try{new Function(t.prescript)()}catch(e){Nc(e.message||"")}if(s&&void 0===t.url&&(t.url=e),i=n&&iu(n)?n(t,o):bbn.fn.defaultLinkFunction(t,o),o&&s&&void 0!==t.content&&("value"in o?o.value=t.content:o.innerHTML=t.content),i&&s&&t.script&&(i="function"==typeof t.script?t.script(t.data?t.data:{},o||null):((e,n)=>{let r=null;try{r=new Function(t.script)(),iu(r)&&(r=r(e,n))}catch(e){au(e,t),Nc(iu(e.getMessage)?e.getMessage():null)}return r})(t.data?t.data:{},o||!1)),i&&r&&iu(r)?r(t):s&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(t,o),i&&s&&t.postscript){new Function(t.postscript)(t.postscript)}s&&t.error&&(a=t.errorTitle||bbn.lng.server_response,bbn.fn.defaultErrorFunction(t.error,a))}else bbn.fn.defaultErrorFunction(bbn.lng.errorText,bbn.lng.error);return i}function Lc(e,t,n=!1){let r={error:!1,result:!0};if("string"==typeof t&&(t=[t]),cu(t)||(r.error=bbn._("checkProps must receive a string or an array as props argument")),uu(e)||(r.error=bbn._("checkProps must receive an object as obj argument")),!r.error){let o;fu(t,t=>{let i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?r.error=t+" "+bbn._("is not defined"):i?(o="is"+su(i,0,1).toUpperCase()+su(i,1).toLowerCase(),void 0===bbn.fn[o]?r.error=i+" "+bbn._("is not a valid type"):bbn.fn[o](e[t])||(r.error=t+" "+bbn._("is not a")+" "+i)):n&&!e[t]&&(r.error=t+" "+bbn._("is empty")),r.error)return!1})}return r.error&&(r.result=!1),r}function jc(e){return e.replace(/[A-z]{1}/,e=>e.toUpperCase())}function Rc(e,t,n,...r){let o=!1;cu(t)||(t=[t]);const i=[];if(fu(t,t=>{var n;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),iu(t)){if(i.push(t.name||(null===(n=t.constructor)||void 0===n?void 0:n.name)||t.toString()),e instanceof t)return o=!0,!1}else if(ru(t)&&iu(bbn.fn["is"+jc(t)])){if(bbn.fn["is"+jc(t)](e))return o=!0,!1;i.push(t)}else Nc(`The type ${t} is not recognized`)}),!o)throw au(["Value given",e,"type",typeof e,"expected",i.join(" or ")]),r.length&&au(r),new Error((n?n+" - ":"")+bbn._("The value should be a %s",i.join(" "+bbn._("or a")+" ")))}function Fc(e){if(cu(e))return e.slice().map(e=>"object"==typeof e?Fc(e):e);if(uu(e)){return Mu(!0,Object.create(Object.getPrototypeOf(e)),e)}return e}Bc.locales=Object.create(null),Bc.parse=Gc,Bc.guessFormat=Oc,Bc.time=()=>{},Bc.date=()=>{},Bc.dateTime=()=>{},Bc.duration=(e,t)=>e instanceof jl.Duration?new bc(e):bc.fromUnit(e,t),Bc.zoned=()=>{},Bc.monthDay=()=>{},Bc.yearMonth=()=>{};const Yc=(e,t="text/plain")=>{const n=new DataTransfer;n.setData(t,e);const r=new ClipboardEvent("copy",{bubbles:!0,cancelable:!0,clipboardData:n});document.dispatchEvent(r)};function Zc(e,t,n=null,r="="){if(!cu(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");let o={};const i=[],a="function"==typeof t;if(!t||!e.length)return e;if("object"==typeof t)r=n,o=t;else if("string"==typeof t)o[t]=n;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");if("function"==typeof t)for(let n=0;n<e.length;n++)t(e[n],n)&&i.push(e[n]);else if(o=Uu(o,r),o.conditions&&o.logic)for(let t=0;t<e.length;t++)Wu(e[t],o)&&i.push(e[t]);return i}const Wc=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;Wc.push(t)}function Uc(...e){const t=Object.create(null);return e.length&&Mu(t,...e),t}function qc(e){let t=typeof e;if(void 0===e)return new Date;if("number"===t||du(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(su(e,0,4)),parseInt(su(e,5,2))-1,parseInt(su(e,8,2)),12);if(19===e.length)return new Date(parseInt(su(e,0,4)),parseInt(su(e,5,2))-1,parseInt(su(e,8,2)),parseInt(su(e,11,2)),parseInt(su(e,14,2)),parseInt(su(e,17,2)))}else if(Hu(e))return e;return!1}function $c(e,t=""){au(e)}function Vc(e,t=null,n=null){au(t,n)}function Kc(e,t,n=null,r=null){return!0}function Jc(...e){if(!e.length)return!1;for(let t of e)if("object"==typeof t&&!Cu(t))return!1;return!0}let Xc=[];function Qc(e){if(ru(e)&&e){for(;"/"===su(e,e.length-1);)e=su(e,0,e.length-1);let t=e.lastIndexOf("/");if(t>0)return su(e,0,t);if(0===t)return"/"}return""}function ed(...e){if(!e.length)return!1;for(let t of e)if("[object Blob]"!=={}.toString.apply(t))return!1;return!0}function td(e){if(e&&ru(e)){let t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function nd(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof HTMLCanvasElement))return!1;return!0}function rd(e,t,n=null){if(nd(t))return void t.toBlob(t=>{let n=document.createElement("a");n.download=e,n.href=window.URL.createObjectURL(t),n.className="bbn-no",n.click(),window.URL.revokeObjectURL(n.href)},n||"image/png");n?-1===n.indexOf("/")&&(n="text/"+n):n=uu(t)&&t.type?t.type:"octet/stream";let r=window.document.createElement("a");r.className="bbn-no";let o=null;if(ru(t))o=new Blob([t],{type:n});else try{o=t}catch(e){au(e)}r.href=window.URL.createObjectURL(o),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}var od=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};function id(){return od(this,void 0,void 0,function*(){var e;(null===(e=window.scheduler)||void 0===e?void 0:e.yield)?yield window.scheduler.yield():yield new Promise(requestAnimationFrame)})}var ad=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};function sd(e){let t;return"checkbox"===e.type?e.checked?(t=e.value,t||(t=1)):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function md(e){let t,n,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return fu(r,(e,r)=>{if(n=sd(e),void 0!==n&&!e.disabled){let r=e.name;if(-1===r.indexOf("[]")&&r.indexOf("[")>-1&&r.indexOf("]")>-1&&r.lastIndexOf("]")===r.length-1&&(r=nc("][",".",r),r=nc("[",".",r),r=nc("]","",r)),r.length>2&&r.indexOf("[]")===r.length-2)t=su(r,0,r.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(n);else if(r.indexOf(".")>-1){let e,t=r.split(".");e=o;for(let r=0;r<t.length;r++)void 0===o[t[r]]&&(r<t.length-1?e[t[r]]={}:e[t[r]]=n),e=e[t[r]]}else o[r]=n}}),o}function ld(e){return e.filter((e,t,n)=>t===n.indexOf(e))}function ud(e,t=null){let n=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)n.push(e);else for(!0===t&&n.push(e);e=e.parentElement;)n.push(e);return n}function cd(e){0!==e.indexOf("--")&&(e="--"+e);let t=getComputedStyle(document.documentElement).getPropertyValue(e);return"string"==typeof t&&(t=t.trim()),t}function dd(){const e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function hd(){let e,t=window.getSelection();if(t.rangeCount>0){e=t.getRangeAt(0),au("RANGE",e);let n=e.cloneContents();au("clonedSelection",n);let r=document.createElement("div");return r.appendChild(n),r.innerHTML}return""}function fd(e){return ru(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function Md(e){let t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function yd(e){let t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function gd(e){let t,n={};if(uu(e[0])&&1===e.length)return e[0];for(let r=0;r<e.length;r++)t=typeof e[r],t=t.toLowerCase(),iu(e[r])?(n.errorFn&&!n.abortFn&&(n.abortFn=e[r]),n.successFn&&!n.errorFn?n.errorFn=e[r]:n.successFn||(n.successFn=e[r])):1===e[r]||!0===e[r]?n.force=!0:"string"===t?n.url?n.datatype=e[r]:(n.url=e[r],0===n.url.indexOf(bbn.env.root)&&(n.url=su(n.url,bbn.env.root.length))):e[r]&&"object"===t&&(e[r]instanceof Event?n.e=e[r]:n.ele||1!==e[r].nodeType?"object"===t.toLowerCase()&&(n.obj=e[r]):n.ele=e[r]);return!n.url&&Iu(n)&&(n.url=bbn.env.path),void 0===n.obj&&(n.obj={_bbn:"public"}),n.datatype||(n.datatype="json"),n}function pd(e,t,n=null,r=!1){bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(su(e,0,7))?e:bbn.env.root+e,bbn.env.path=su(bbn.env.url,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e);let o=window.history;if(o){let e=o.state,i={url:bbn.env.path,old_path:bbn.env.old_path||null,data:n||{},reload:!1};e&&e.url===bbn.env.path&&(e.data&&Mu(i.data,e.data),e.title&&!t&&(t=e.title),r=!0),t=t?Md(t):bbn.env.siteTitle,r?(i.reload=!0,o.replaceState(i,t,bbn.env.url)):o.pushState(i,t,bbn.env.url)}}function bd(...e){let t=gd(e),n=1;if(t){if(0===t.url.indexOf("javascript:"))return!0;if(0===t.url.indexOf("data:"))return!0;if(0===t.url.indexOf("#"))return t.e&&t.e.preventDefault(),document.location.hash=t.url.substring(1),!1;if(0===t.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=t.url,setTimeout(()=>{bbn.env.ignoreUnload=!1},0),!1;if(Ku(t.url))return!1;if((0===t.url.indexOf("http://")||0===t.url.indexOf("https://"))&&0!==t.url.indexOf(bbn.env.host))return t.e&&t.e.preventDefault(),window.open(t.url),!1;if(t.url!==bbn.env.params.join("/")||1===t.force){if(t.e&&t.e.preventDefault(),t.successFn)n=t.successFn(t.url);else if(bbn.fn.defaultPreLinkFunction){let e=bbn.fn.defaultPreLinkFunction(t.url,t.force,t.ele);void 0!==e.data?(Mu(t.obj,e.data),n=1):n=e}if(n){1!==n&&"string"==typeof n&&(t.url=n);let e=bbn._("The Ajax call to")+" "+t.url+" ";return oc(t.url,t.datatype,t.obj,n=>{n||au(e+bbn._("returned no answer")),uu(n)&&(0===Object.keys(n).length&&au(e+bbn._("returned an empty object")),n.new_url?(n.old_path=t.url,t.url=n.new_url):n.url&&t.url!==n.url&&(n.old_path=t.url)),xc(t.url,n,t.successFn,null,t.ele)&&void 0===n.noNav&&0!==bbn.env.path.indexOf(t.url)&&pd(t.url,(n.title?n.title+" - ":"")+bbn.env.siteTitle)},t.errorFn||null)}}return!0}}function wd(){let e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));let n=parseInt(cd("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<n?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;fu(o,(e,t)=>{if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==r&&o.splice(t,1,r),!1}),i||o.push(r),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function vd(){return"mobile"===dd()}function Ed(){return"tablet"===dd()}function Td(){return vd()||Ed()}function Sd(e=!1){let t=(new Date).getTime();return e?Math.round(t/1e3):t}function Dd(e){const t=String(null!=e?e:"").split("-").filter(Boolean);if(!t.length)return{language:"und"};let n,r,o=t[0].toLowerCase();for(let e=1;e<t.length;e++){const o=t[e];n||4!==o.length?r||2!==o.length&&3!==o.length||(r=o.toUpperCase()):n=o[0].toUpperCase()+o.slice(1).toLowerCase()}return{language:o,script:n,region:r}}const zd=globalThis.document?Promise.resolve().then(function(){return Ud}):{};function Ad(e){var t,n,r;const o=null!==(r=null!==(t=e.baseName)&&void 0!==t?t:null===(n=e.toString)||void 0===n?void 0:n.call(e))&&void 0!==r?r:"und",{region:i}=Dd(o),a=i&&zd[i]||{firstDay:1,weekend:[6,7],minimalDays:4};return{firstDay:a.firstDay,weekend:a.weekend.slice(),minimalDays:a.minimalDays}}function Hd(){!function(){if("undefined"==typeof Intl)return;if("function"!=typeof Intl.Locale){class e{constructor(e){const t=Array.isArray(e)?e[0]:e,n=String(null!=t?t:"und"),r=Dd(n);this._tag=n,this._language=r.language,this._script=r.script,this._region=r.region}toString(){return this._tag}get baseName(){return this._tag}get language(){return this._language}get script(){return this._script}get region(){return this._region}getWeekInfo(){return Ad(this)}get weekInfo(){return Ad(this)}}Intl.Locale=e}const e=Intl.Locale.prototype;"function"!=typeof e.getWeekInfo&&(e.getWeekInfo=function(){return Ad(this)}),Object.getOwnPropertyDescriptor(e,"weekInfo")||Object.defineProperty(e,"weekInfo",{configurable:!0,enumerable:!0,get(){return"function"==typeof this.getWeekInfo?this.getWeekInfo():Ad(this)}})}()}var kd=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};function Id(){return kd(this,void 0,void 0,function*(){const e=[];"undefined"!=typeof Intl&&"function"==typeof Intl.RelativeTimeFormat||e.push((()=>kd(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return $d}),yield Promise.resolve().then(function(){return Vd})}))()),function(){if("undefined"==typeof Intl||"function"!=typeof Intl.DateTimeFormat)return!0;try{return new Intl.DateTimeFormat("en",{dateStyle:"medium"}),!1}catch(e){return!0}}()&&e.push((()=>kd(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return eh}),yield Promise.resolve().then(function(){return th})}))()),e.length>0&&(yield Promise.all(e)),Hd()})}const _d=()=>{bbn.env.last_focus=bbn.dt().unix()},Cd=e=>{if(_d(),"ajax"!==bbn.env.nav)return;let t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){let e=t;for(;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentElement;t=e&&"A"===e.tagName?e:null}t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")&&(au("Link clicked: "+t.getAttribute("href")),bd(t.getAttribute("href"),e))};function Gd(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||du(su(e,0,1)))){let t=document.createElement("div");t.style.width=e;let n=!!t.style.width.length;return t.remove(),n}return!1}function Pd(...e){if(!e.length)return!1;for(let t of e)if(!ru(t)||!bbn.var.regexp.ip.test(t))return!1;return!0}function Od(...e){if(!e.length)return!1;for(let t of e)if("[object Symbol]"!=={}.toString.apply(t))return!1;return!0}function Bd(e){const t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),au.apply(this,t)}function Nd(e,t="",n=null){let r=new FormData,o=(e,t="")=>{(!n||cu(n)&&!n.includes(t))&&(e instanceof File?r.append(t,e):cu(e)?fu(e,(e,n)=>{o(e,t+"["+n+"]")}):uu(e)&&Object.keys(e).length?lu(e,(n,r)=>{r in e&&o(n,t?t+"["+r+"]":r)}):Cu(e)||void 0===e||r.append(t,e))};return o(e,t),r}function xd(e){return"string"==typeof e?document.querySelector(e):e}function Ld(...e){let t=gd(e);if(t.url)return oc(t.url,t.datatype,t.obj,e=>{xc(t.url,e,t.successFn,t.errorFn,t.ele)},t.errorFn,t.abortFn)}function jd(e,t,n,r){if("object"==typeof e&&"string"==typeof t){let o=e;const i=t.split(".");fu(i,(e,t)=>{if(!o){if(!r)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=n:o=o[e]})}}function Rd(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Fd(e,t=" "){if(" "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=su(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=su(e,0,e.length-t.length);return e}function Yd(e,t,n){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==n&&ru(n)||(n="..."),e.length>t&&(e=su(e,0,t)+n)),e}var Zd={_addLoader:Du,_compareValues:ku,_deleteLoader:Vu,abort:function(e){let t=Ku(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")},abortURL:function(e){fu(Ju(bbn.env.loaders,{url:e}),t=>{if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")})},addColors:Xu,addInputs:Qu,addStyle:function(e,t){uu(t)&&lu(t,(t,n)=>{e.style[n]=t})},adjustHeight:function(){let e=arguments;return 1===e.length&&hu(e[0])&&(e=e[0]),ec("height",e)},adjustSize:ec,adjustWidth:function(){let e=arguments;return 1===e.length&&hu(e[0])&&(e=e[0]),ec("width",e)},ajax:oc,analyzeFunction:Fu,animateCss:function(e,t,n){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function e(r){r.target.removeEventListener(r.type,e),"function"==typeof n&&n.call(this),r.target.classList.remove(t)})},arrayBuffer2String:ac,arrayFromProp:function(e,t){let n=[];return fu(e,(e,r)=>{n.push(zu(e,t))}),n},autoExtend:function(e,t){bbn[e]||(bbn[e]={}),Mu(bbn[e],t)},baseName:sc,br2nl:function(e){return nc("<br />","\n",nc("<br/>","\n",nc("<br>","\n",e)))},calendar:function(e,t=!1){let n=Bc(e);return n.isValid?n.calendar():t&&ru(t)?t:""},callback:xc,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,function(e,t,n,r){return n?n.toUpperCase():t.toLowerCase()})},camelToCss:function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace("/^./",function(e){return e.toLowerCase()})},canvasToImage:function(e){let t=new Image;return t.src=e.toDataURL("image/png"),t},cast:function(e){var t;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(t=e.constructor)||void 0===t?void 0:t.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){let t=e.parentNode,n=t.clientWidth,r=t.clientHeight;for(;t&&(!n||!r);)t=e.parentNode,n=t.clientWidth,r=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+t.scrollLeft)+"px",e},checkProps:function(e,t,n=!1){return Lc(e,t,n).result},checkPropsDetails:Lc,checkPropsOrDie:function(e,t,n=!1){let r=Lc(e,t,n);if(r.error)throw new Error(r.error);return!0},checkType:Rc,circularReplacer:function(){const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n),[void 0,Object,Array,null].includes(n.constructor)||(n=Bu(n)?n.bbnId?"__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:"__BBN_DOM__"+n.tagName+"/"+n.className:xu(n)?"__BBN_CP__"+n.$options.name+"/"+n.$cid:n.constructor.toString())}return n}},clone:Fc,colorToHex:function(e){let t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle},compare:Zu,compareConditions:Wu,copy:function(e,t){return new Promise(n=>{if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?(navigator.clipboard.write([new ClipboardItem({[e.type.toString()]:e})]).then(()=>{n(!0)}),t||Yc(e,e.type.toString())):uu(e)&&iu(e.toBlob)?e.toBlob(r=>{const o=new ClipboardItem({[r.type.toString()]:r});navigator.clipboard.write([o]).then(()=>{t||Yc(e,r.type.toString()),n(!0)})}):(navigator.clipboard.writeText(e),t||Yc(e),n(!0)));let r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),t||Yc(e),n(!0)}n(!1)})},correctCase:jc,count:function(e,t,n=null,r="="){return Zc(e,t,n,r).length||0},crc32:function(e){let t=~0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=t>>>8^Wc[255&(t^r)]}return(-1^t)>>>0},createObject:Uc,cssExists:function(e){let t,n,r=document.styleSheets;for(let o=0;o<r.length;o++){t=1;try{n=r[o].rules||r[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(let t=0;t<n.length;t++)if(new RegExp("(^|\\s)"+tc(e)+"(\\{|\\s)","g").test(n[t].selectorText))return!0}return!1},data2Html:function e(t,n=""){const r=!cu(t);let o='<ul class="bbn-bottom-xspadding '+(n||"bbn-ul")+'">';for(let i in t)o+="<li>",r&&(o+="<em>"+i+"</em>: "),t[i]&&(cu(t[i])||uu(t[i]))?o+=e(t[i],n):o+=null===t[i]?"<em>null</em>":t[i].toString?t[i].toString():t[i],o+="</li>";return o+='</ul><div class="bbn-bottom-xspadding '+(n||"bbn-div")+'"></div>',o},date:qc,dateSQL:function(e,t){let n=Bc(e);if(n)return n.format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))},deepPath:function e(t,n,r,o=[]){let i;return(i=qu(t,n,0))>-1?(o.push(i),o):(fu(t,(t,i)=>{if(cu(t[r])){let a=o.slice();a.push(i);let s=e(t[r],n,r,a);if(!1!==s)return s}}),!1)},defaultAjaxAbortFunction:$c,defaultAjaxErrorFunction:Vc,defaultAlertFunction:function(e,t=null){alert(e)},defaultConfirmFunction:function(e,t,n=null){let r=0;confirm(e)&&iu(t)&&(t(),r=1),!r&&iu(n)&&n()},defaultEndLoadingFunction:Kc,defaultErrorFunction:function(e){au(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,t){return!0},defaultPostLinkFunction:function(e,t=null){return!0},defaultPreLinkFunction:function(e,t=!1,n=null){return au("defaultPreLinkFunction",e,t,n),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,t,n,r){return!0},deleteProp:function(e,t){Rc(e,"object",bbn._("The obj must be an object in setProp")),Rc(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]},diffObj:function e(t,n,r=!1,o=!1){o||(Xc=[]);let i="unchanged";void 0===o&&(o=!1);let a=Uc();if(!iu(t)&&!iu(n)){if(Jc(t)||Jc(n)){let e=(s=t)===(m=n)||Hu(s)&&Hu(m)&&s.getTime()===m.getTime()?i:void 0===s?"created":void 0===m?"deleted":"updated";if(r||e!==i){let r=Uc();return Object.defineProperty(r,"type",{value:e,enumerable:!1}),Object.defineProperty(r,"data",{value:void 0===t?n:t,enumerable:!1}),Object.defineProperty(r,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==t&&Object.defineProperty(r,"newData",{value:n,enumerable:!1}),r}return!1}if(Bu(t)||Bu(n))return!1;if(Xc.includes(t)||Xc.includes(n))return!1;Xc.push(t,n);for(let o in t){if(iu(t[o]))continue;let i;void 0!==n[o]&&(i=n[o]);let s=e(t[o],i,r,!0);s&&(a[o]=s)}for(let o in n){if(iu(n[o])||void 0!==t[o])continue;let i=e(void 0,n[o],r,!0);i&&(a[o]=i)}}var s,m;return!(o&&!r&&!Iu(a))&&a},dirName:Qc,download:function(e,t="",n=null){return t&&"object"==typeof t&&(n=t,t=""),oc(e,"blob",n||{_bbn_download:1},(n,r)=>{if(!t){let n="content-disposition",o="attachment; filename=";t=(null==r?void 0:r[n])&&0===r[n].indexOf(o)?su(r[n],o.length+1,r[n].length-o.length-2):sc(e)}if(ed(n)){let e=td(t),r=["php","html"];if("string"==typeof t&&("type"in n&&"text/html"!==n.type||r.includes(e)))return void rd(t,n)}},e=>{bbn.fn.defaultAjaxErrorFunction(e)})},downloadContent:rd,each:fu,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Nc,escapeDquotes:function(e){return ru(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:tc,escapeSquotes:function(e){return ru(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return ru(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,t){let n="";e.match("^(http|https)://")&&(n+="http","s"===(e=e.substring(4)).substr(0,1)&&(n+="s",e=e.substring(1)),n+="://",e=e.substring(3)),fu(Qc(e).split("/"),e=>{n+=encodeURIComponent(e)+"/"});let r=sc(e),o="?",i="";if(r.indexOf(o)){let e=r.split("?");o="&",i="?"+e[1],r=e[0]}return t&&ru(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",n+encodeURIComponent(r)+i+t},executeSlowly:function(e,t){return ad(this,void 0,void 0,function*(){for(let n=0;n<e.length;n++){yield id();let r=t(e[n],n);if(r instanceof Promise&&(r=yield r),!1===r)return!1}return!0})},extend:Mu,extendOut:function e(...t){let n=null;for(let r of t){if(!uu(r))throw new Error("Each argument for extendOut must be an object, "+typeof r+" given");if(null===n)n=r;else for(let t in r)uu(n[t],r[t])?e(n[t],r[t]):void 0===n[t]&&(n[t]=r[t])}return n},fdate:function(e,t=!1){let n=Bc(e),r=!1;return!0===t&&(r=!0),n.isValid?n.fdate(!1,r):t&&ru(t)?t:""},fdatetime:function(e,t=!1){let n=Bc(e);return n.isValid?n.fdate(!1,!0):t&&ru(t)?t:""},fieldValue:sd,fileExt:td,filter:Zc,filterToConditions:Uu,findAll:function e(t,n,r,o=[]){let i,a=0;for(;(i=qu(t,n,a))>-1;)o.push(t[i]),a=i+1;return fu(t,t=>{cu(t[r])&&e(t[r],n,r,o)}),o},firstVarElement:function(e){const t=e.indexOf("["),n=e.indexOf(".");return-1===t&&-1===n?e:-1===t?e.substring(0,n):-1===n?e.substring(0,t):e.substring(0,Math.min(t,n))},fori:function(e,t,n=e.length-1,r=0){if(cu(e)){let o=e.length-1;du(n)&&0<n&&n<=o||(n=o),(!du(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(let o=r;o<=n;o++)if(!1===t(e[o],o))return}},forir:function(e,t,n=e.length-1,r=0){if(cu(e)){let o=e.length-1;du(n)&&0<n&&n<=o||(n=o),(!du(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(let o=n;o>=r;o--)if(!1===t(e[o],o))return}},format:function(e){let t=Array.prototype.slice.call(arguments,1);if(t.length){let n=0;return e.replace(/\%([d|s])/g,(e,r)=>{let o=t[n++];return Rc(o,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),o})}return e},formatBytes:function(e,t=2){if(!e)return"0 B";const n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},formatDate:function(e,t){const n=Bc(e);return n.isValid?n.format(t):""},formatSize:function(e,t){return du(e)?e+"px":ru(e)?e:!t&&"auto"},formdata:md,fphone:function(e){var t;if(du(e)&&(e=e.toString()),ru(e)){const n=(null===(t=bbn.var)||void 0===t?void 0:t.phoneCodes)||[];let r="",o="",i="";if(n.length&&fu(n,t=>{e.startsWith(t.prefix)&&t.prefix.length>o.length&&(o=t.prefix,i=t.mask||"")}),!i.length&&e.startsWith("+")){o.length||(o=e.substr(0,3));const t=e.slice(o.length);for(let e=0;e<t.length;e++)e+1<=t.length&&e%2==0&&(i+="0"+(t[e+1]?"0":"")+" ");i=i.trim()}if(i.length){o.length&&(r=o+" ",e=e.slice(o.length));let t=0;return r+=i.replace(/[0-9]/g,()=>e[t++]||""),r}}return e},fromXml:function(e,t){let n=null;if(window.DOMParser)n=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if(n=new window.ActiveXObject("Microsoft.XMLDOM"),n.async=!1,!n.loadXML(e))throw n.parseError.reason+" "+n.parseError.srcText}function r(e,n){if("#text"==e.nodeName){let t=e.nodeValue;return void(t.trim()&&(n["#text"]=t))}let o={},i=n[e.nodeName];if(i?Array.isArray(i)?n[e.nodeName].push(o):n[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?n[e.nodeName]=[o]:n[e.nodeName]=o,e.attributes)for(let t of e.attributes)o[t.nodeName]=t.nodeValue;for(let t of e.childNodes)r(t,o)}let o={};for(let e of n.childNodes)r(e,o);return o},ftime:function(e,t){let n=Bc(e);return n.isValid?n.ftime():t&&ru(t)?t:""},getAllTags:function(){return ld(Array.prototype.map.apply(document.all,[e=>e.tagName.toLowerCase()]))},getAncestors:ud,getAttributes:function(e){e.getAttributeNames||Nc("The element is not a proper HTML Element");let t=Object.create(null);return e.getAttributeNames().forEach(n=>{t[n]=e.getAttribute(n)}),t},getBrowserName:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getChrono:function(e="default"){return bbn.fn.microtimestamp()-this.constructor.chronos[e]},getCookie:function(e){let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(t)){let e=r.substring(t.length,r.length);if(e)return JSON.parse(unescape(e)).value}}return null},getCssVar:cd,getDay:function(e){let t=qc(e);if(t){let e=t.getTime(),r=t.getYear(),o=365*(r-1970);t.getMonth()<2&&r--;for(var n=1972;n<=r;n+=4)o++;return o+Math.floor(e/864e5)}return!1},getDeviceType:dd,getEventData:function(e){let t=e.dataTransfer||e.clipboardData,n=t.getData("Text"),r={raw:n,files:[],str:[]};return new Promise((o,i)=>{let a=!(t instanceof DataTransfer);if(!n&&"copy"===e.type){let e=window.getSelection();r.raw=e.toString();let t=hd();r.str.push({type:"text/plain",data:r.raw}),t!==r.raw?r.str.push({type:"text/html",data:t}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),a=!0,o(r)}if(!a){let e=[],n=t.items.length;fu(t.items,(i,s)=>{let m=i.kind,l=i.type;if("file"===m){let m=t.files[s];if(!l&&m.name){let e=m.name.split(".");l=e[e.length-1]}let u=m?m.name:bbn._("untitled"),c=m?m.size:null,d=m?m.lastModified:null,h=i.getAsFile();h?(a=!0,n--,r.files.push({type:l,data:h,name:u,size:c,mdate:d}),e.push(u),n||(r.raw||(r.raw=e.join(", ")),o(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+u)}else a=!0,i.getAsString(t=>{n--,r.str.push({type:l,data:t}),"text/plain"===l&&e.push(name),n||(r.raw||(r.raw=e.join(", ")),o(r))})})}a||setTimeout(()=>{o(r)})})},getField:function(e,t,n="",r=null,o="=",i=0,a=!1,s=void 0){let m;return n&&["object","function"].includes(typeof n)&&6 in arguments&&(s=a),t?(m=$u(e,n,r,o,i,a,void 0),void 0===m?s:m[t]):s},getFieldValues:function(e,t,n,r,o){Rc(t,"string"),n&&(e=Ju(e,n,r,o));let i=[];return fu(e,e=>-1===i.indexOf(e[t])?i.push(e[t]):null),i},getFileContent:function(){let e,t,n="",r="text";bbn.fn.each(arguments,o=>{"string"==typeof o?["binary","text"].includes(o.toLowerCase())?r=o.toLowerCase():n||(n=o,"image"===n&&(n="image/*")):bbn.fn.isFunction(o)&&(e?t||(t=o):e=o)});let o=document.createElement("input");o.type="file",n&&o.setAttribute("accept",n),o.onchange=function(n){var i;const a=null===(i=o.files)||void 0===i?void 0:i[0];if(!a)return;const s=new FileReader;"binary"===r?s.readAsArrayBuffer(a):s.readAsText(a,"UTF-8"),s.onload=function({target:t}){e&&e(null==t?void 0:t.result)},s.onerror=function(){t&&t("error reading file")}},o.click()},getIndex:function(e,t=""){return e.parentElement?(t||Array.from(e.parentElement.children).indexOf(e),Array.from(e.parentElement.children).filter(e=>e.matches(t)).indexOf(e)):-1},getHtml:function(e,t=!1){let n=e.innerHTML();return t&&(n=fd(n)),n.trim()},getHTMLOfSelection:hd,getLoader:Ku,getPath:Nu,getProp:function(e,t){return Rc(e,"object",bbn._("The obj must be an object in setProp")),Rc(t,"string",bbn._("The prop must be a string in setProp")),e[t]},getProperty:zu,getRequestId:rc,getRow:$u,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){let e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);let t=e.offsetWidth;e.style.overflow="scroll";let n=document.createElement("div");n.style.width="100%",e.appendChild(n);let r=n.offsetWidth;e.parentNode.removeChild(e);let o=t-r;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize},getSortingMoves:function(e,t){if(e.length!==t.length)throw new Error("Lengths must match.");const n=new Set(t);if(n.size!==t.length)throw new Error("dst has duplicates.");const r=new Set(e);if(r.size!==e.length)throw new Error("src has duplicates.");if(e.length!==n.size||Array.from(r).some(e=>!n.has(e)))throw new Error("Arrays must contain the same unique values.");const o=new Map(t.map((e,t)=>[e,t])),i=e.map(e=>o.get(e)),a=(e=>{const t=e.length,n=[],r=Array(t).fill(-1);for(let o=0;o<t;o++){let t=e[o],i=0,a=n.length;for(;i<a;){const r=i+a>>1;e[n[r]]<t?i=r+1:a=r}i>0&&(r[o]=n[i-1]),n[i]=o}const o=[];for(let e=n.length?n[n.length-1]:-1;-1!==e;e=r[e])o.push(e);return o.reverse()})(i),s=new Set(a.map(t=>e[t])),m=Array(t.length).fill(-1);for(let e=t.length-2;e>=0;e--)m[e]=m[e+1],s.has(t[e+1])&&(m[e]=e+1);const l=e.slice(),u=new Map(l.map((e,t)=>[e,t])),c=[];for(let e=0;e<t.length;e++){const n=t[e];if(s.has(n))continue;const r=u.get(n);if(void 0===r)throw new Error("Inconsistent state");const o=m[e],i=-1!==o?u.get(t[o]):l.length;if(void 0===i)throw new Error("Inconsistent state");const a=r<i?i-1:i;if(r!==a){const[e]=l.splice(r,1);l.splice(a,0,e),c.push({from:r,to:a,value:n}),u.clear();for(let e=0;e<l.length;e++)u.set(l[e],e)}}return c},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(...e){return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),au.apply(this,e),this},hash:ju,hex2rgb:function(e){"#"!==e.charAt(0)&&(e="#"+e),4===e.length&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},history:function(){return window.history||!1},html2text:Md,imageToCanvas:yd,imgToBase64:function(e,t="image/png"){return yd(e).toDataURL(t)},info:function(...e){return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),au.apply(this,e),this},init:function(e,t){var n,r;let o;bbn.env.isInit||(bbn.env.root=(null===(r=null===(n=globalThis.document)||void 0===n?void 0:n.baseURI)||void 0===r?void 0:r.length)?globalThis.document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==su(bbn.env.root,-1)&&(bbn.env.root+="/"),"object"==typeof e&&Mu(!0,bbn,e),bbn.env.path=su(bbn.env.url,bbn.env.root.length),o=bbn.env.path.split("/"),fu(o,e=>{""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)}),Id(),globalThis.document&&(bbn.var.colors&&Xu(bbn.var.colors),globalThis.document.addEventListener("visibilitychange",()=>{document.hidden?bbn.env.isVisible=!1:bbn.env.isVisible=!0}),globalThis.document.addEventListener("focus",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!0,bbn.env.last_focus=Sd()}),globalThis.document.addEventListener("blur",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!1,bbn.env.last_focus=Sd()}),globalThis.document.addEventListener("click",Cd),globalThis.document.addEventListener("keydown",Cd),globalThis.document.addEventListener("focusin",_d),globalThis.document.addEventListener("focusout",_d),globalThis.addEventListener("hashchange",()=>{bbn.env.hashChanged=(new Date).getTime()},!1),globalThis.addEventListener("resize",()=>{wd()}),globalThis.addEventListener("orientationchange",()=>{wd()}),wd(),Td()&&(globalThis.document.body.classList.add("bbn-mobile"),Ed()&&globalThis.document.body.classList.add("bbn-tablet")),globalThis.history&&(globalThis.onpopstate=function(e){let t=globalThis.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){let e=t.state;e?bd(e.url,Mu({title:e.title||bbn.env.siteTitle},e.data||{})):e&&e.data&&iu(e.data.script)&&e.data.script()}}),globalThis.addEventListener("online",()=>{bbn.env.online=!0}),globalThis.addEventListener("offline",()=>{bbn.env.online=!1}),bbn.env.isInit=!0,globalThis.document.dispatchEvent(new Event("bbninit")),bbn.env.logging&&au("Logging in bbn is enabled")))},isActiveInterface:function(e=600){return!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:cu,isBlob:ed,isBoolean:function(...e){if(!e.length)return!1;for(let t of e)if(![!0,!1].includes(t))return!1;return!0},isCanvas:nd,isColor:function(...e){if(!e.length)return!1;var t=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i");for(let n of e){if(!ru(n))return!1;if(!t.test(n))return!1}return!0},isComment:function(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof Comment))return!1;return!0},isCp:xu,isDataURL:function(...e){if(!e.length)return!1;for(let t of e)if(!/^data:([a-z]+\/[a-z0-9\-\+\.]+(;[a-z\-]+\=[a-z0-9\-\.]+)?)?(;base64)?,/i.test(t))return!1;return!0},isDate:Hu,isDesktopDevice:function(){return"desktop"===dd()},isDimension:function(...e){if(!e.length)return!1;for(let t of e){if("number"!=typeof t||t<0)return!1;if(!Gd(t))return!1}return!0},isDom:Bu,isEmail:function(...e){if(!e.length)return!1;let t=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;for(let n of e){if(!ru(n))return!1;if(!t.test(n))return!1}return!0},isEmpty:_u,isEvent:function(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof Event))return!1;return!0},isFocused:function(e,t=!1){return e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)},isFunction:iu,isHex:function(e){return Boolean(e.match(/^(0x)?[0-9a-f]+$/i))},isHostname:function(...e){if(!e.length)return!1;for(let t of e){if(!ru(t))return!1;if(!Pd(t)&&!bbn.var.regexp.hostname.test(t))return!1}return!0},isInside:function(e,t){let n=ud(e);if(n.length){if(ru(t)){let e=!1;return fu(n,n=>{if(n.matches&&n.matches(t))return e=!0,!1}),e}if(t instanceof HTMLElement)return n.indexOf(t)>-1}return!1},isInt:ou,isInViewport:function(e,t=!1){const n=e.getBoundingClientRect();if(t)return n.top>=0&&n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth)&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight);const r=e.offsetHeight,o=e.offsetWidth;return n.top>=-r&&n.left>=-o&&n.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Pd,isIterable:hu,isMobile:Td,isMobileDevice:vd,isNotObject:Jc,isNull:Cu,isNumber:du,isObject:uu,isPercent:function(...e){if(!e.length)return!1;for(let t of e)if("string"!=typeof t||!t.match(/^\d+(?:\.\d+)?%$/))return!1;return!0},isPrimitive:cc,isPromise:function(...e){if(!e.length)return!1;for(let t of e)if("[object Promise]"!=={}.toString.apply(t))return!1;return!0},isPropSize:function(e){let t=!1;return fu(["width","height","gap","margin","padding","top","left","right","bottom"],n=>{if(-1!==e.indexOf(n))return t=!0,!1}),t},isSame:Yu,isSQLDate:function(...e){if(!e.length)return!1;for(let t of e)if("string"!=typeof t||!t.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1;return!0},isString:ru,isSymbol:Od,isTabletDevice:Ed,isURL:function(...e){if(!e.length)return!1;for(let t of e)if(!bbn.var.regexp.url.test(t))return!1;return!0},isUid:function(...e){if(!e.length)return!1;for(let t of e)if("string"!=typeof t||!t.match(/^[0-9a-f]{32}$/i))return!1;return!0},isValidDimension:Gd,isValidName:function(...e){if(!e.length)return!1;for(let t of e)if(!ru(t)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(t))return!1;return!0},isVue:function(...e){if(!e.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue){for(let t of e)if(!t||"function"!=typeof t.render)return!1}else for(let t of e)if(!(t instanceof window.Vue))return!1;return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||bbn.cp.isComponent(...e)},isWritable:function(e,t){let n;for(;e&&(n=Object.getOwnPropertyDescriptor(e,t),!n);)e=Object.getPrototypeOf(e);return!n||Boolean(n.writable||n.set)},iterate:lu,lightenDarkenHex:function(e,t){if(e&&t){let n="#"===e[0];e=n?e.slice(1):e;let r=parseInt(e,16),o=(r>>16)+t,i=(r>>8&255)+t,a=(255&r)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(n?"#":"")+(a|i<<8|o<<16).toString(16)}},link:bd,log:au,makeReactive:function e(t,n,r,o){const i=(null==r?void 0:r.$cid)||"",a="__bbn_"+(i?i+"_":"");if(t&&"object"==typeof t&&[void 0,Object,Array].includes(t.constructor)){if(t.__bbnIsProxy&&t.__bbnParent===r)return t;r&&r.$options&&"bbn-loadbar"===r.$options.name&&au(["MAKING bbn-loadbar",t]),t.__bbnWatchers||Reflect.defineProperty(t,"__bbnWatchers",{value:Uc(),writable:!0,configurable:!0,enumerable:!1});return new Proxy(t,{get(s,m){const l=Reflect.get(s,m),u=s.__bbnRoot||s;if(Od(m))return Reflect.get(u,m);const c=o?o+"."+m:m,d=a+(du(m)?m.toString():m);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(m)&&cu(s))return function(...e){let t=u[m](...e);return Bd("DOING ARRAY STUFF"),au(s.__bbnParent),n(s,"length",r),t};if(iu(l))return l;if("__bbnRoot"===m){let e=t;for(;e&&(null==e?void 0:e.__bbnTarget);)e=e.__bbnTarget;return e}return"__bbnIsProxy"===m||("__bbnTarget"===m?s:"__bbnParent"===m?r:"__bbnWatchers"===m?s.__bbnWatchers:0===m.indexOf("__bbn_")?Reflect.get(s,m):"length"===m&&cu(s.__bbnRoot||s)?u.length:m in s&&l&&"object"==typeof l&&[void 0,Object,Array].includes(l.constructor)?(l.__bbnIsProxy&&l.__bbnParent===r||(d in u||Reflect.defineProperty(u,d,{value:e(l,n,r,c),writable:!0,configurable:!0,enumerable:!1}),u[d].__bbnIsProxy&&!u.__bbnWatchers[i]&&(u.__bbnWatchers[i]=c)),u[d]):l)},set(t,s,m){if(Od(s))return Reflect.get(t,s,m);const l=t.__bbnRoot||t,u=o?o+"."+s:s;if(Od(s))return Reflect.get(t,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&au(["Setting proxy prop in "+r.$options.name,t,s,m]),!Yu(l[s],m)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(l,s,{value:e(m,n,r,u),writable:!0,configurable:!0,enumerable:!1});else if(m&&"object"==typeof m&&[void 0,Object,Array].includes(m.constructor)){const t=a+(du(s)?s.toString():s);Reflect.defineProperty(l,t,{value:e(m,n,r,u),writable:!0,configurable:!0,enumerable:!1}),l[t].__bbnIsProxy&&!l.__bbnWatchers[i]&&(l.__bbnWatchers[i]=u)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&au(["Setting proxy prop in "+r.$options.name+" "+(du(s)?s.toString():s),m,t]),Reflect.set(l,s,m),n(t,s,r)}return!0},defineProperty(t,i,s){const m=t,l=o?o+"."+i:i;if("__bbnWatchers"===i||Od(i)||0===i.indexOf("__bbn_"))Reflect.defineProperty(m,i,s);else{const t=a+(du(i)?i.toString():i);Reflect.defineProperty(m,t,{value:e(s.value,n,r,l),writable:!0,configurable:!0,enumerable:!1})}return n(t,i,r),!0},deleteProperty(e,t){const n=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(n,t);else{const r=a+(du(t)?t.toString():t);Reflect.deleteProperty(n,r),Reflect.deleteProperty(e,t)}return!0}})}return t},map:function e(t,n,r,o=0){return t.map((t,i)=>(t=n(t,i,o),r&&t[r]&&cu(t[r])&&(t[r]=e(t[r],n,r,o+1)),t))},md5:Ru,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,t,n,r,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),n||(n=void 0===n&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),du(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){let r=e.toFixed(a).replace(".",o);return n&&(r+=" "+(t?"K"+n:n)),r}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(n?" "+n:"");if("string"==typeof e&&(e=Number(e)),"number"!=typeof e)throw new Error("The value must be a number");t&&e&&(e/=1e3,n&&(n="K"+n));let s=e.toFixed(a),m=0,l=1e4;return s&&(l=s.indexOf("."),l<=0?l=1e4:m=s.length-l),s.replace(/./g,function(e,t,n){return"."===e?o:t&&(n.length-t-m)%3==0&&t<l?i+e:e})+(n?" "+n:"")},move:function(e,t,n){if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e},multiorder:function(e,t){if(!t)return e;let n;if(Array.isArray(t)||"object"!=typeof t)n=t;else for(var r in n=[],t)n.push({field:r,dir:t[r]});if(!Array.isArray(n))throw new Error("The orders argument must be an array");return e.slice().sort((e,t)=>{let r;for(let o of n)if(r=ku(e,t,o.field,o.dir),0!==r)return r;return 0})},mutateArray:function(e,t,n=null){if(!cu(e,t))throw new TypeError("mutateArray can only be called with arrays");n?Rc(n,"function","The hash function must be a function"):n=ju;const r=new Map(t.map(e=>[n(e),e]));let o=[];t.forEach(e=>{o.push(e)});let i=e.length;for(;i--;)r.has(n(e[i]))||e.splice(i,1);for(let t=0;t<o.length;t++)if(t>=e.length||!Yu(e[t],o[t])){const n=qu(e,o[t]);if(-1!==n){const[r]=e.splice(n,1);e.splice(t,0,r)}else e.splice(t,0,o[t])}return e.length>o.length&&e.splice(o.length,e.length-o.length),e},mutateObject:function(e,t,n){if(!uu(e,t))throw new TypeError("mutateObject can only be called with objects parameters");n?Rc(n,"function","The hash function must be a function"):n=ju;const r=Object.keys(t);for(let t in e)r.includes(t)||delete e[t];return r.forEach(n=>{Yu(e[n],t[n])||(e[n]=t[n])}),e},nl2br:function(e,t){return nc("\n","<br>"+(t?"\n":""),e)},numProperties:Iu,objectToFormData:Nd,order:function(e,t,n="asc"){return e?e.sort(function(e,r){return ku(e,r,t,n)}):e},outerHeight:function(e){if((e=xd(e))&&"offsetHeight"in e){let t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+n)}},outerWidth:function(e){e=xd(e);let t=window.getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+n)},percent:function(e,t){return t/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Ld,postOut:function(e,t,n=null,r=""){let o=document.body.querySelector("form#bbn-form_out");o||(o=document.createElement("form"),o.classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),jd(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",r||"_blank"),t||(t={}),(t=Uc(t)).bbn||(t.bbn="public"),Qu(o,t),o.submit(),n&&n())},printf:function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,n){return void 0!==t[n]?t[n]:e})},quotes2html:function(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=nc("'","&#39;",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=nc('"',"&quot;",e)),e},randomInt:Rd,randomString:function(e,t,n){let r,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};n||(n="nlu"),e||(r=Rd(8,14)),"string"==typeof t?(n="n",delete i.l,delete i.u,i.n=t,r||(r=e)):"number"==typeof t&&e<t?r=Rd(e,t):e&&(r=e);let a="";for(let e=0;e<r;e++)0===e?"n"!==n&&(o=-1===n.indexOf("u")?"l":"u"):o=n[Math.floor(Math.random()*n.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a},range:function(e,t,n){return Array.from({length:(t-e)/n+1},(t,r)=>e+r*n)},removeAccents:Au,removeEmpty:function(e){var t=[];if(cu(e))for(let n=0;n<e.length;n++){let r=!1;e[n]&&(cu(e[n])?e[n].length&&(r=!0):uu(e[n])?Iu(e[n])&&(r=!0):r=!0),r&&t.push(e[n])}return t},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:fd,removePrivateProp:mu,removeTrailingChars:function(e,t){if(t||(t=" "),t.length){for(;su(e,-t.length)===t;)e=su(e,0,e.length-t.length);for(;su(e,0,t.length)===t;)e=su(e,t.length)}return e},repeat:function(e,t){return e.repeat(t)},replaceAll:nc,replaceSelection:function(e,t){let n,r,o;if(n=window.getSelection(),n.getRangeAt&&n.rangeCount){if(r=window.getSelection().getRangeAt(0),r.deleteContents(),r.createContextualFragment)o=r.createContextualFragment(e);else{const t=document.createElement("div");let n;for(t.innerHTML=e,o=document.createDocumentFragment();n=t.firstChild;)o.appendChild(n)}const i=o.firstChild,a=o.lastChild;r.insertNode(o),n.removeAllRanges(),t?(i&&(r.setStartBefore(i),r.setEndAfter(a)),n.addRange(r)):(r.setStartAfter(a),n.addRange(r))}},resize:wd,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,t,n=!1){return lu(e,t,n,!0)},roundDecimal:function(e,t){return Number(Math.round(parseFloat(e+"e"+t+"e-"+t)))},sanitize:function(e,t="_"){let n=["[","]","{","}","(",")","-","+","*","/"],r="[";for(let e=0;e<t.length;e++)n.includes(t[e])&&(r+="\\"),r+=t[e];r+="]+";let o=new RegExp(r,"g");return Fd(Au(e).replace(/[^a-z0-9]/gi,t).replace(o,t),t)},search:qu,selectElementText:function(e,t=null){if(t=t||window,e instanceof HTMLInputElement)return void e.select();let n,r,o=t.document;t.getSelection&&o.createRange?(n=t.getSelection(),r=o.createRange(),r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&(r=o.body.createTextRange(),r.moveToElementText(e),r.select())},selector:xd,setCookie:function(e,t,n){let r="";if(n){let e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),r="; expires="+e.toUTCString()}let o=escape(JSON.stringify({value:t}));document.cookie=e+"="+o+r+"; path=/"},setCssVar:function(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)},setNavigationVars:pd,setProp:function(e,t,n,r=!0,o=!0){Object.defineProperty(e,t,{value:n,writable:r,configurable:o})},setProperty:jd,shorten:Yd,shortenObj:function e(t,n=100){let r=Fc(t);return fu(r,(t,o)=>{ru(t)&&t.length>n?r[o]=Yd(t,n):t&&"object"==typeof t&&(r[o]=e(t))}),r},shuffle:function(e){let t,n=e.length;for(;0!=n;)t=Math.floor(Math.random()*n),n--,[e[n],e[t]]=[e[t],e[n]];return e},simpleHash:Ou,simpleHash1:Gu,simpleHash2:Pu,startChrono:function(e){let t=bbn.fn.microtimestamp();return this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t,e},stopChrono:function(e,t){if(this.constructor.chronos[e||"default"]){let n=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t&&(n=Math.round(n)/1e3),n}throw Error("No chrono with name "+(e||"default"))},stream:function(e,t,n,r,o,i){const a=rc(e,n,"json"),s=Ku(a);if(null==s?void 0:s.loader)return s.loader;n||(n={}),bbn.env.token&&(n._bbn_token=bbn.env.token);const m=new AbortController;let l="";const u=e=>{if(e.length){e=e.indexOf("\n")>-1?bbn.fn.removeEmpty(e.split("\n")):[e];for(let n in e)try{const r=JSON.parse(e[n]);(null==r?void 0:r.__bbn_stream_ping__)||t(r)}catch(e){throw e}}},c=fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",signal:m.signal,body:JSON.stringify(n||{})}).then(e=>{if(e.body){const r=e.body.getReader(),o=iu(t);r.read().then(function e({done:s,value:m}){if(s)return Vu(a,n),l&&u(l),void(i&&i());if(o)if(l+=ac(m).trim(),bbn.fn.log(["STREAM RESULT",l.length,l]),l)try{u(l),l=""}catch(e){}else t();else bbn.fn.log(["STREAM SUCCESS IS FN? "+o]);return r.read().then(e)})}}).catch(t=>{let i=!(!(s=t)||!0!==s.__BBN_CANCEL__);var s;if(Vu(a,n,i),i){let n=1;iu(o)&&(n=o(t.message,e)),n&&$c(t.message,e)}else{let e=1;iu(r)&&(e=r(t.request,t)),e&&Vc(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}});return Du(a,c,m),c},string2ArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0,o=e.length;r<o;r++)n[r]=e.charCodeAt(r);return t},submit:function(e,t,n){let r,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),r=md(e),r)){e.setAttribute("action",null);const t=[o,r];!n&&e.getAttribute("data-script")&&(n=(n=new Function(e.getAttribute("data-script")))()),n&&t.push(n),Ld(...t)}},substr:su,sum:function(e,t,n,r,o){let i=0;return fu(Zc(e,n,r,o),e=>{let n="function"==typeof t?t(e):e[t];n&&(i+=parseFloat(n)||0)}),i},timestamp:Sd,toCSV:function(e,t=",",n="",r='"'){t||(t=","),r||(r='"');let o="",i=e.length;return fu(e,(e,a)=>{let s=cu(e)?e.length:Object.values(e).length,m=0;fu(e,e=>{o+="string"==typeof e?r+nc(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,m++,m<s&&(o+=t)}),a<i-1&&(o+=n+"\n")}),o},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout(function(){wd()},0)},translate:function(e,t){let n=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;lu(e,(e,t)=>{n[t]=e})},treatAjaxArguments:gd,treatForHash:Lu,trim:Fd,uniqString:function(...e){for(var t="",n=0;n<e.length;n++)if(e[n])if("object"==typeof e[n])if(cu(e[n]))t+=JSON.stringify(e[n]);else{let r={};fu(Object.keys(e[n]).sort(),t=>{r[t]=e[n][t]}),t+=JSON.stringify(r)}else"string"!=typeof e[n]?t+=e[n].toString():t+=e[n];else t+="__bbn_empty__";return Ru(t)},unique:ld,upload:function(e,t,n=null,r=null,o=null){const i=()=>nu.run("post",e||bbn.env.path,{data:Nd(t),headers:{},onUploadProgress(e){if(o){let t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}});return n||r?i().then(e=>{n&&(au("SUCCESS",e),n(e))}).catch(e=>{r&&(au("ERROR",e),r(e))}):i()},warning:Bd,yieldToBrowser:id};const Wd={version:"1.0.1",opt:{_cat:{}},app:{},_:Yl,$:function(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:Kl,dt:Bc,com:nu,env:Jl,db:Su,fn:Zd,info:[{value:"ajax",label:"Loading and streaming",description:"Functions related to Ajax requests",icon:"nf nf-fa-rocket"},{value:"browser",label:"Browser-only",description:"Functions that can only be run in the browser",icon:"nf nf-fa-desktop"},{value:"convert",label:"Conversion",description:"Functions related to data conversion",icon:"nf nf-fa-exchange"},{value:"datetime",label:"Date and time",description:"Functions related to dates and times",icon:"nf nf-fa-calendar"},{value:"form",label:"Form manipulation",description:"Functions related to form manipulation and validation",icon:"nf nf-fa-edit"},{value:"html",label:"HTML manipulation",description:"Functions related to HTML manipulation and DOM interaction",icon:"nf nf-fa-html5"},{value:"loop",label:"Looping",description:"Functions related to looping through arrays and objects",icon:"nf nf-fa-repeat"},{value:"misc",label:"Miscellaneous",description:"Miscellaneous functions that do not fit into other categories",icon:"nf nf-fa-cubes"},{value:"object",label:"Object manipulation",description:"Functions related to object manipulation and inspection",icon:"nf nf-fa-object_group"},{value:"phone",label:"Phone and contact",description:"Functions related to phone numbers and contact information",icon:"nf nf-fa-phone"},{value:"string",label:"String manipulation",description:"Functions related to string manipulation and formatting",icon:"nf nf-fa-text_height"},{value:"style",label:"Styling and layout",description:"Functions related to styling and layout management",icon:"nf nf-fa-paint_brush"},{value:"type",label:"Type checking",description:"Functions related to type checking and validation",icon:"nf nf-fa-check_square"}]};"undefined"!=typeof globalThis&&(globalThis.bbn=Wd,globalThis.Temporal||(globalThis.Temporal=jl));var Ud=Object.freeze({__proto__:null,default:{AE:{firstDay:1,weekend:[6,7],minimalDays:1},AF:{firstDay:6,weekend:[4,5],minimalDays:1},AG:{firstDay:7,weekend:[6,7],minimalDays:1},AI:{firstDay:1,weekend:[6,7],minimalDays:1},AL:{firstDay:1,weekend:[6,7],minimalDays:1},AM:{firstDay:1,weekend:[6,7],minimalDays:1},AR:{firstDay:1,weekend:[6,7],minimalDays:1},AS:{firstDay:7,weekend:[6,7],minimalDays:1},AU:{firstDay:1,weekend:[6,7],minimalDays:1},AZ:{firstDay:1,weekend:[6,7],minimalDays:1},BA:{firstDay:1,weekend:[6,7],minimalDays:1},BD:{firstDay:7,weekend:[6,7],minimalDays:1},BH:{firstDay:6,weekend:[5,6],minimalDays:1},BM:{firstDay:1,weekend:[6,7],minimalDays:1},BN:{firstDay:1,weekend:[6,7],minimalDays:1},BR:{firstDay:7,weekend:[6,7],minimalDays:1},BS:{firstDay:7,weekend:[6,7],minimalDays:1},BT:{firstDay:7,weekend:[6,7],minimalDays:1},BW:{firstDay:7,weekend:[6,7],minimalDays:1},BY:{firstDay:1,weekend:[6,7],minimalDays:1},BZ:{firstDay:7,weekend:[6,7],minimalDays:1},CA:{firstDay:7,weekend:[6,7],minimalDays:1},CL:{firstDay:1,weekend:[6,7],minimalDays:1},CM:{firstDay:1,weekend:[6,7],minimalDays:1},CN:{firstDay:1,weekend:[6,7],minimalDays:1},CO:{firstDay:7,weekend:[6,7],minimalDays:1},CR:{firstDay:1,weekend:[6,7],minimalDays:1},CY:{firstDay:1,weekend:[6,7],minimalDays:1},DJ:{firstDay:6,weekend:[6,7],minimalDays:1},DM:{firstDay:7,weekend:[6,7],minimalDays:1},DO:{firstDay:7,weekend:[6,7],minimalDays:1},DZ:{firstDay:6,weekend:[5,6],minimalDays:1},EC:{firstDay:1,weekend:[6,7],minimalDays:1},EG:{firstDay:6,weekend:[5,6],minimalDays:1},ET:{firstDay:7,weekend:[6,7],minimalDays:1},"GB-alt-variant":{firstDay:7,weekend:[6,7],minimalDays:1},GE:{firstDay:1,weekend:[6,7],minimalDays:1},GT:{firstDay:7,weekend:[6,7],minimalDays:1},GU:{firstDay:7,weekend:[6,7],minimalDays:1},HK:{firstDay:7,weekend:[6,7],minimalDays:1},HN:{firstDay:7,weekend:[6,7],minimalDays:1},HR:{firstDay:1,weekend:[6,7],minimalDays:1},ID:{firstDay:7,weekend:[6,7],minimalDays:1},IL:{firstDay:7,weekend:[5,6],minimalDays:1},IN:{firstDay:7,weekend:[7],minimalDays:1},IQ:{firstDay:6,weekend:[5,6],minimalDays:1},IR:{firstDay:6,weekend:[5],minimalDays:1},IS:{firstDay:7,weekend:[6,7],minimalDays:4},JM:{firstDay:7,weekend:[6,7],minimalDays:1},JO:{firstDay:6,weekend:[5,6],minimalDays:1},JP:{firstDay:7,weekend:[6,7],minimalDays:1},KE:{firstDay:7,weekend:[6,7],minimalDays:1},KG:{firstDay:1,weekend:[6,7],minimalDays:1},KH:{firstDay:7,weekend:[6,7],minimalDays:1},KR:{firstDay:7,weekend:[6,7],minimalDays:1},KW:{firstDay:6,weekend:[5,6],minimalDays:1},KZ:{firstDay:1,weekend:[6,7],minimalDays:1},LA:{firstDay:7,weekend:[6,7],minimalDays:1},LB:{firstDay:1,weekend:[6,7],minimalDays:1},LK:{firstDay:1,weekend:[6,7],minimalDays:1},LV:{firstDay:1,weekend:[6,7],minimalDays:1},LY:{firstDay:6,weekend:[5,6],minimalDays:1},MD:{firstDay:1,weekend:[6,7],minimalDays:1},ME:{firstDay:1,weekend:[6,7],minimalDays:1},MH:{firstDay:7,weekend:[6,7],minimalDays:1},MK:{firstDay:1,weekend:[6,7],minimalDays:1},MM:{firstDay:7,weekend:[6,7],minimalDays:1},MN:{firstDay:1,weekend:[6,7],minimalDays:1},MO:{firstDay:7,weekend:[6,7],minimalDays:1},MT:{firstDay:7,weekend:[6,7],minimalDays:1},MV:{firstDay:5,weekend:[6,7],minimalDays:1},MX:{firstDay:7,weekend:[6,7],minimalDays:1},MY:{firstDay:1,weekend:[6,7],minimalDays:1},MZ:{firstDay:7,weekend:[6,7],minimalDays:1},NI:{firstDay:7,weekend:[6,7],minimalDays:1},NP:{firstDay:7,weekend:[6,7],minimalDays:1},NZ:{firstDay:1,weekend:[6,7],minimalDays:1},OM:{firstDay:6,weekend:[5,6],minimalDays:1},PA:{firstDay:7,weekend:[6,7],minimalDays:1},PE:{firstDay:7,weekend:[6,7],minimalDays:1},PH:{firstDay:7,weekend:[6,7],minimalDays:1},PK:{firstDay:7,weekend:[6,7],minimalDays:1},PR:{firstDay:7,weekend:[6,7],minimalDays:1},PT:{firstDay:7,weekend:[6,7],minimalDays:4},PY:{firstDay:7,weekend:[6,7],minimalDays:1},QA:{firstDay:6,weekend:[5,6],minimalDays:1},RO:{firstDay:1,weekend:[6,7],minimalDays:1},RS:{firstDay:1,weekend:[6,7],minimalDays:1},SA:{firstDay:7,weekend:[5,6],minimalDays:1},SD:{firstDay:6,weekend:[5,6],minimalDays:1},SG:{firstDay:7,weekend:[6,7],minimalDays:1},SI:{firstDay:1,weekend:[6,7],minimalDays:1},SV:{firstDay:7,weekend:[6,7],minimalDays:1},SY:{firstDay:6,weekend:[5,6],minimalDays:1},TH:{firstDay:7,weekend:[6,7],minimalDays:1},TJ:{firstDay:1,weekend:[6,7],minimalDays:1},TM:{firstDay:1,weekend:[6,7],minimalDays:1},TR:{firstDay:1,weekend:[6,7],minimalDays:1},TT:{firstDay:7,weekend:[6,7],minimalDays:1},TW:{firstDay:7,weekend:[6,7],minimalDays:1},UA:{firstDay:1,weekend:[6,7],minimalDays:1},UG:{firstDay:1,weekend:[7],minimalDays:1},UM:{firstDay:7,weekend:[6,7],minimalDays:1},US:{firstDay:7,weekend:[6,7],minimalDays:1},UY:{firstDay:1,weekend:[6,7],minimalDays:1},UZ:{firstDay:1,weekend:[6,7],minimalDays:1},VE:{firstDay:7,weekend:[6,7],minimalDays:1},VI:{firstDay:7,weekend:[6,7],minimalDays:1},VN:{firstDay:1,weekend:[6,7],minimalDays:1},WS:{firstDay:7,weekend:[6,7],minimalDays:1},XK:{firstDay:1,weekend:[6,7],minimalDays:1},YE:{firstDay:7,weekend:[5,6],minimalDays:1},ZA:{firstDay:7,weekend:[6,7],minimalDays:1},ZW:{firstDay:7,weekend:[6,7],minimalDays:1}}});Object.defineProperty(e,"__esModule",{value:!0});var qd=require("tslib").__importDefault(require("./"));(0,require("./should-polyfill").shouldPolyfill)()&&Object.defineProperty(Intl,"RelativeTimeFormat",{value:qd.default,writable:!0,enumerable:!1,configurable:!0});var $d=Object.freeze({__proto__:null});Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}},"day-narrow":{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0}d",other:"in {0}d"},past:{one:"{0}d ago",other:"{0}d ago"}},"day-short":{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0}h",other:"in {0}h"},past:{one:"{0}h ago",other:"{0}h ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0}m",other:"in {0}m"},past:{one:"{0}m ago",other:"{0}m ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},month:{"-1":"last month",0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}},"month-narrow":{"-1":"last mo.",0:"this mo.",1:"next mo.",future:{one:"in {0}mo",other:"in {0}mo"},past:{one:"{0}mo ago",other:"{0}mo ago"}},"month-short":{"-1":"last mo.",0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}},nu:["latn"],quarter:{"-1":"last quarter",0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"}},"quarter-narrow":{"-1":"last qtr.",0:"this qtr.",1:"next qtr.",future:{one:"in {0}q",other:"in {0}q"},past:{one:"{0}q ago",other:"{0}q ago"}},"quarter-short":{"-1":"last qtr.",0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-narrow":{0:"now",future:{one:"in {0}s",other:"in {0}s"},past:{one:"{0}s ago",other:"{0}s ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},week:{"-1":"last week",0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}},"week-narrow":{"-1":"last wk.",0:"this wk.",1:"next wk.",future:{one:"in {0}w",other:"in {0}w"},past:{one:"{0}w ago",other:"{0}w ago"}},"week-short":{"-1":"last wk.",0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}},year:{"-1":"last year",0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}},"year-narrow":{"-1":"last yr.",0:"this yr.",1:"next yr.",future:{one:"in {0}y",other:"in {0}y"},past:{one:"{0}y ago",other:"{0}y ago"}},"year-short":{"-1":"last yr.",0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},locale:"en"});var Vd=Object.freeze({__proto__:null});Object.defineProperty(e,"__esModule",{value:!0});var Kd=require("./"),Jd=require("@formatjs/ecma402-abstract"),Xd=require("./should-polyfill"),Qd=require("./src/to_locale_string");(0,Xd.shouldPolyfill)()&&((0,Jd.defineProperty)(Intl,"DateTimeFormat",{value:Kd.DateTimeFormat}),(0,Jd.defineProperty)(Date.prototype,"toLocaleString",{value:function(e,t){void 0===t&&(t={dateStyle:"short",timeStyle:"medium"});try{return(0,Qd.toLocaleString)(this,e,t)}catch(e){return"Invalid Date"}}}),(0,Jd.defineProperty)(Date.prototype,"toLocaleDateString",{value:function(e,t){void 0===t&&(t={dateStyle:"short"});try{return(0,Qd.toLocaleDateString)(this,e,t)}catch(e){return"Invalid Date"}}}),(0,Jd.defineProperty)(Date.prototype,"toLocaleTimeString",{value:function(e,t){void 0===t&&(t={timeStyle:"medium"});try{return(0,Qd.toLocaleTimeString)(this,e,t)}catch(e){return"Invalid Date"}}}));var eh=Object.freeze({__proto__:null});Intl.DateTimeFormat&&"function"==typeof Intl.DateTimeFormat.__addLocaleData&&Intl.DateTimeFormat.__addLocaleData({data:{am:"AM",pm:"PM",weekday:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},era:{narrow:{BC:"B",AD:"A"},short:{BC:"BC",AD:"AD"},long:{BC:"Before Christ",AD:"Anno Domini"}},month:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},timeZoneName:{"America/Rio_Branco":{long:["Acre Standard Time","Acre Summer Time"]},"Asia/Kabul":{long:["Afghanistan Time","Afghanistan Time"]},"Africa/Maputo":{long:["Central Africa Time","Central Africa Time"]},"Africa/Bujumbura":{long:["Central Africa Time","Central Africa Time"]},"Africa/Gaborone":{long:["Central Africa Time","Central Africa Time"]},"Africa/Lubumbashi":{long:["Central Africa Time","Central Africa Time"]},"Africa/Blantyre":{long:["Central Africa Time","Central Africa Time"]},"Africa/Kigali":{long:["Central Africa Time","Central Africa Time"]},"Africa/Lusaka":{long:["Central Africa Time","Central Africa Time"]},"Africa/Harare":{long:["Central Africa Time","Central Africa Time"]},"Africa/Nairobi":{long:["East Africa Time","East Africa Time"]},"Africa/Djibouti":{long:["East Africa Time","East Africa Time"]},"Africa/Asmera":{long:["East Africa Time","East Africa Time"]},"Africa/Addis_Ababa":{long:["East Africa Time","East Africa Time"]},"Indian/Comoro":{long:["East Africa Time","East Africa Time"]},"Indian/Antananarivo":{long:["East Africa Time","East Africa Time"]},"Africa/Mogadishu":{long:["East Africa Time","East Africa Time"]},"Africa/Dar_es_Salaam":{long:["East Africa Time","East Africa Time"]},"Africa/Kampala":{long:["East Africa Time","East Africa Time"]},"Indian/Mayotte":{long:["East Africa Time","East Africa Time"]},"Africa/Johannesburg":{long:["South Africa Standard Time","South Africa Standard Time"]},"Africa/Maseru":{long:["South Africa Standard Time","South Africa Standard Time"]},"Africa/Mbabane":{long:["South Africa Standard Time","South Africa Standard Time"]},"Africa/Lagos":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Luanda":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Porto-Novo":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Kinshasa":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Bangui":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Brazzaville":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Douala":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Libreville":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Malabo":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Niamey":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Ndjamena":{long:["West Africa Standard Time","West Africa Summer Time"]},"Asia/Aqtobe":{long:["West Kazakhstan Time","West Kazakhstan Time"]},"America/Juneau":{long:["Alaska Standard Time","Alaska Daylight Time"],short:["AKST","AKDT"]},"Asia/Almaty":{long:["East Kazakhstan Time","East Kazakhstan Time"]},"America/Manaus":{long:["Amazon Standard Time","Amazon Summer Time"]},"America/Chicago":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Belize":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Winnipeg":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Costa_Rica":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Guatemala":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Tegucigalpa":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Mexico_City":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/El_Salvador":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/New_York":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Nassau":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Toronto":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Port-au-Prince":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Jamaica":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Cayman":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Panama":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Denver":{long:["Mountain Standard Time","Mountain Daylight Time"],short:["MST","MDT"]},"America/Edmonton":{long:["Mountain Standard Time","Mountain Daylight Time"],short:["MST","MDT"]},"America/Los_Angeles":{long:["Pacific Standard Time","Pacific Daylight Time"],short:["PST","PDT"]},"America/Vancouver":{long:["Pacific Standard Time","Pacific Daylight Time"],short:["PST","PDT"]},"America/Tijuana":{long:["Pacific Standard Time","Pacific Daylight Time"],short:["PST","PDT"]},"Asia/Anadyr":{long:["Anadyr Standard Time","Anadyr Summer Time"]},"Pacific/Apia":{long:["Apia Standard Time","Apia Daylight Time"]},"Asia/Riyadh":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Bahrain":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Baghdad":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Kuwait":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Qatar":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Aden":{long:["Arabian Standard Time","Arabian Daylight Time"]},"America/Buenos_Aires":{long:["Argentina Standard Time","Argentina Summer Time"]},"America/Argentina/San_Luis":{long:["Western Argentina Standard Time","Western Argentina Summer Time"]},"Asia/Ashgabat":{long:["Turkmenistan Standard Time","Turkmenistan Summer Time"]},"America/Halifax":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Antigua":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Anguilla":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Aruba":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Barbados":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"Atlantic/Bermuda":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Kralendijk":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Curacao":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Dominica":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Grenada":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Thule":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Guadeloupe":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Kitts":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Lucia":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Marigot":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Martinique":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Montserrat":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Puerto_Rico":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Lower_Princes":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Port_of_Spain":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Vincent":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Tortola":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Thomas":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"Australia/Adelaide":{long:["Australian Central Standard Time","Australian Central Daylight Time"]},"Australia/Eucla":{long:["Australian Central Western Standard Time","Australian Central Western Daylight Time"]},"Australia/Sydney":{long:["Australian Eastern Standard Time","Australian Eastern Daylight Time"]},"Australia/Perth":{long:["Australian Western Standard Time","Australian Western Daylight Time"]},"Atlantic/Azores":{long:["Azores Standard Time","Azores Summer Time"]},"Asia/Thimphu":{long:["Bhutan Time","Bhutan Time"]},"America/La_Paz":{long:["Bolivia Time","Bolivia Time"]},"Asia/Kuching":{long:["Malaysia Time","Malaysia Time"]},"America/Sao_Paulo":{long:["Brasilia Standard Time","Brasilia Summer Time"]},"Europe/London":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Asia/Brunei":{long:["Brunei Darussalam Time","Brunei Darussalam Time"]},"Atlantic/Cape_Verde":{long:["Cape Verde Standard Time","Cape Verde Summer Time"]},"Antarctica/Casey":{long:["Casey Time","Casey Time"]},"Pacific/Saipan":{long:["North Mariana Islands Time","North Mariana Islands Time"]},"Pacific/Guam":{long:["Guam Standard Time","Guam Standard Time"]},"Pacific/Chatham":{long:["Chatham Standard Time","Chatham Daylight Time"]},"America/Santiago":{long:["Chile Standard Time","Chile Summer Time"]},"Asia/Shanghai":{long:["China Standard Time","China Daylight Time"]},"Indian/Christmas":{long:["Christmas Island Time","Christmas Island Time"]},"Indian/Cocos":{long:["Cocos Islands Time","Cocos Islands Time"]},"America/Bogota":{long:["Colombia Standard Time","Colombia Summer Time"]},"Pacific/Rarotonga":{long:["Cook Islands Standard Time","Cook Islands Half Summer Time"]},"America/Havana":{long:["Cuba Standard Time","Cuba Daylight Time"]},"Antarctica/Davis":{long:["Davis Time","Davis Time"]},"Antarctica/DumontDUrville":{long:["Dumont-d’Urville Time","Dumont-d’Urville Time"]},"Asia/Dushanbe":{long:["Tajikistan Time","Tajikistan Time"]},"America/Paramaribo":{long:["Suriname Time","Suriname Time"]},"Asia/Dili":{long:["East Timor Time","East Timor Time"]},"Pacific/Easter":{long:["Easter Island Standard Time","Easter Island Summer Time"]},"America/Guayaquil":{long:["Ecuador Time","Ecuador Time"]},"Europe/Paris":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Andorra":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Tirane":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Vienna":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Sarajevo":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Brussels":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Zurich":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Prague":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Berlin":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Copenhagen":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Madrid":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Gibraltar":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Zagreb":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Budapest":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Rome":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Vaduz":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Luxembourg":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Monaco":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Podgorica":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Skopje":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Malta":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Amsterdam":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Oslo":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Warsaw":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Belgrade":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Stockholm":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Ljubljana":{long:["Central European Standard Time","Central European Summer Time"]},"Arctic/Longyearbyen":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Bratislava":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/San_Marino":{long:["Central European Standard Time","Central European Summer Time"]},"Africa/Tunis":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Vatican":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Bucharest":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Mariehamn":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Sofia":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Asia/Nicosia":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Africa/Cairo":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Helsinki":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Athens":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Asia/Beirut":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Minsk":{long:["Further-eastern European Time","Further-eastern European Time"]},"Europe/Kaliningrad":{long:["Further-eastern European Time","Further-eastern European Time"]},"Atlantic/Canary":{long:["Western European Standard Time","Western European Summer Time"]},"Atlantic/Faeroe":{long:["Western European Standard Time","Western European Summer Time"]},"Atlantic/Stanley":{long:["Falkland Islands Standard Time","Falkland Islands Summer Time"]},"Pacific/Fiji":{long:["Fiji Standard Time","Fiji Summer Time"]},"America/Cayenne":{long:["French Guiana Time","French Guiana Time"]},"Indian/Kerguelen":{long:["French Southern & Antarctic Time","French Southern & Antarctic Time"]},"Asia/Bishkek":{long:["Kyrgyzstan Time","Kyrgyzstan Time"]},"Pacific/Galapagos":{long:["Galapagos Time","Galapagos Time"]},"Pacific/Gambier":{long:["Gambier Time","Gambier Time"]},"Pacific/Tarawa":{long:["Gilbert Islands Time","Gilbert Islands Time"]},"Atlantic/Reykjavik":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Ouagadougou":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Abidjan":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Accra":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Banjul":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Conakry":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Bamako":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Nouakchott":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Atlantic/St_Helena":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Freetown":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Dakar":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Lome":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"America/Godthab":{long:["West Greenland Standard Time","West Greenland Summer Time"]},"America/Scoresbysund":{long:["East Greenland Standard Time","East Greenland Summer Time"]},"Asia/Dubai":{long:["Gulf Standard Time","Gulf Standard Time"]},"Asia/Muscat":{long:["Gulf Standard Time","Gulf Standard Time"]},"America/Guyana":{long:["Guyana Time","Guyana Time"]},"Pacific/Honolulu":{long:["Hawaii-Aleutian Standard Time","Hawaii-Aleutian Daylight Time"],short:["HAST","HADT"]},"Asia/Hong_Kong":{long:["Hong Kong Standard Time","Hong Kong Summer Time"]},"Asia/Hovd":{long:["Hovd Standard Time","Hovd Summer Time"]},"Asia/Calcutta":{long:["India Standard Time","India Standard Time"]},"Asia/Colombo":{long:["Lanka Time","Lanka Time"]},"Indian/Chagos":{long:["Indian Ocean Time","Indian Ocean Time"]},"Asia/Bangkok":{long:["Indochina Time","Indochina Time"]},"Asia/Phnom_Penh":{long:["Indochina Time","Indochina Time"]},"Asia/Vientiane":{long:["Indochina Time","Indochina Time"]},"Asia/Makassar":{long:["Central Indonesia Time","Central Indonesia Time"]},"Asia/Jayapura":{long:["Eastern Indonesia Time","Eastern Indonesia Time"]},"Asia/Jakarta":{long:["Western Indonesia Time","Western Indonesia Time"]},"Asia/Tehran":{long:["Iran Standard Time","Iran Daylight Time"]},"Asia/Irkutsk":{long:["Irkutsk Standard Time","Irkutsk Summer Time"]},"Asia/Jerusalem":{long:["Israel Standard Time","Israel Daylight Time"]},"Asia/Tokyo":{long:["Japan Standard Time","Japan Daylight Time"]},"Asia/Kamchatka":{long:["Petropavlovsk-Kamchatski Standard Time","Petropavlovsk-Kamchatski Summer Time"]},"Asia/Karachi":{long:["Pakistan Standard Time","Pakistan Summer Time"]},"Asia/Qyzylorda":{long:["Qyzylorda Standard Time","Qyzylorda Summer Time"]},"Asia/Seoul":{long:["Korean Standard Time","Korean Daylight Time"]},"Pacific/Kosrae":{long:["Kosrae Time","Kosrae Time"]},"Asia/Krasnoyarsk":{long:["Krasnoyarsk Standard Time","Krasnoyarsk Summer Time"]},"Europe/Samara":{long:["Samara Standard Time","Samara Summer Time"]},"Pacific/Kiritimati":{long:["Line Islands Time","Line Islands Time"]},"Australia/Lord_Howe":{long:["Lord Howe Standard Time","Lord Howe Daylight Time"]},"Asia/Macau":{long:["Macao Standard Time","Macao Summer Time"]},"Asia/Magadan":{long:["Magadan Standard Time","Magadan Summer Time"]},"Indian/Maldives":{long:["Maldives Time","Maldives Time"]},"Pacific/Marquesas":{long:["Marquesas Time","Marquesas Time"]},"Pacific/Majuro":{long:["Marshall Islands Time","Marshall Islands Time"]},"Indian/Mauritius":{long:["Mauritius Standard Time","Mauritius Summer Time"]},"Antarctica/Mawson":{long:["Mawson Time","Mawson Time"]},"America/Mazatlan":{long:["Mexican Pacific Standard Time","Mexican Pacific Daylight Time"]},"Asia/Ulaanbaatar":{long:["Ulaanbaatar Standard Time","Ulaanbaatar Summer Time"]},"Europe/Moscow":{long:["Moscow Standard Time","Moscow Summer Time"]},"Asia/Rangoon":{long:["Myanmar Time","Myanmar Time"]},"Pacific/Nauru":{long:["Nauru Time","Nauru Time"]},"Asia/Katmandu":{long:["Nepal Time","Nepal Time"]},"Pacific/Noumea":{long:["New Caledonia Standard Time","New Caledonia Summer Time"]},"Pacific/Auckland":{long:["New Zealand Standard Time","New Zealand Daylight Time"]},"Antarctica/McMurdo":{long:["New Zealand Standard Time","New Zealand Daylight Time"]},"America/St_Johns":{long:["Newfoundland Standard Time","Newfoundland Daylight Time"]},"Pacific/Niue":{long:["Niue Time","Niue Time"]},"Pacific/Norfolk":{long:["Norfolk Island Standard Time","Norfolk Island Daylight Time"]},"America/Noronha":{long:["Fernando de Noronha Standard Time","Fernando de Noronha Summer Time"]},"Asia/Novosibirsk":{long:["Novosibirsk Standard Time","Novosibirsk Summer Time"]},"Asia/Omsk":{long:["Omsk Standard Time","Omsk Summer Time"]},"Pacific/Palau":{long:["Palau Time","Palau Time"]},"Pacific/Port_Moresby":{long:["Papua New Guinea Time","Papua New Guinea Time"]},"America/Asuncion":{long:["Paraguay Standard Time","Paraguay Summer Time"]},"America/Lima":{long:["Peru Standard Time","Peru Summer Time"]},"Asia/Manila":{long:["Philippine Standard Time","Philippine Summer Time"]},"Pacific/Enderbury":{long:["Phoenix Islands Time","Phoenix Islands Time"]},"America/Miquelon":{long:["St. Pierre & Miquelon Standard Time","St. Pierre & Miquelon Daylight Time"]},"Pacific/Pitcairn":{long:["Pitcairn Time","Pitcairn Time"]},"Pacific/Ponape":{long:["Ponape Time","Ponape Time"]},"Asia/Pyongyang":{long:["Pyongyang Time","Pyongyang Time"]},"Indian/Reunion":{long:["Réunion Time","Réunion Time"]},"Antarctica/Rothera":{long:["Rothera Time","Rothera Time"]},"Asia/Sakhalin":{long:["Sakhalin Standard Time","Sakhalin Summer Time"]},"Pacific/Pago_Pago":{long:["Samoa Standard Time","Samoa Daylight Time"]},"Indian/Mahe":{long:["Seychelles Time","Seychelles Time"]},"Asia/Singapore":{long:["Singapore Standard Time","Singapore Standard Time"]},"Pacific/Guadalcanal":{long:["Solomon Islands Time","Solomon Islands Time"]},"Atlantic/South_Georgia":{long:["South Georgia Time","South Georgia Time"]},"Asia/Yekaterinburg":{long:["Yekaterinburg Standard Time","Yekaterinburg Summer Time"]},"Antarctica/Syowa":{long:["Syowa Time","Syowa Time"]},"Pacific/Tahiti":{long:["Tahiti Time","Tahiti Time"]},"Asia/Taipei":{long:["Taipei Standard Time","Taipei Daylight Time"]},"Asia/Tashkent":{long:["Uzbekistan Standard Time","Uzbekistan Summer Time"]},"Pacific/Fakaofo":{long:["Tokelau Time","Tokelau Time"]},"Pacific/Tongatapu":{long:["Tonga Standard Time","Tonga Summer Time"]},"Pacific/Truk":{long:["Chuuk Time","Chuuk Time"]},"Pacific/Funafuti":{long:["Tuvalu Time","Tuvalu Time"]},"America/Montevideo":{long:["Uruguay Standard Time","Uruguay Summer Time"]},"Pacific/Efate":{long:["Vanuatu Standard Time","Vanuatu Summer Time"]},"America/Caracas":{long:["Venezuela Time","Venezuela Time"]},"Asia/Vladivostok":{long:["Vladivostok Standard Time","Vladivostok Summer Time"]},"Europe/Volgograd":{long:["Volgograd Standard Time","Volgograd Summer Time"]},"Antarctica/Vostok":{long:["Vostok Time","Vostok Time"]},"Pacific/Wake":{long:["Wake Island Time","Wake Island Time"]},"Pacific/Wallis":{long:["Wallis & Futuna Time","Wallis & Futuna Time"]},"Asia/Yakutsk":{long:["Yakutsk Standard Time","Yakutsk Summer Time"]},"America/Whitehorse":{long:["Yukon Time","Yukon Time"]},UTC:{long:["Coordinated Universal Time","Coordinated Universal Time"],short:["UTC","UTC"]}},gmtFormat:"GMT{0}",hourFormat:"+HH:mm;-HH:mm",dateFormat:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormat:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormat:{full:"{1}, {0}",long:"{1}, {0}",medium:"{1}, {0}",short:"{1}, {0}"},formats:{gregory:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a","Ehm-alt-ascii":"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a","Ehms-alt-ascii":"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a","h-alt-ascii":"h a",H:"HH",hm:"h:mm a","hm-alt-ascii":"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a","hms-alt-ascii":"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v","hmsv-alt-ascii":"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v","hmv-alt-ascii":"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y","EEEE, MMMM d, y":"EEEE, MMMM d, y","MMMM d, y":"MMMM d, y","MMM d, y":"MMM d, y","M/d/yy":"M/d/yy","h:mm:ss a zzzz":"h:mm:ss a zzzz","h:mm:ss a zzzz":"h:mm:ss a zzzz","h:mm:ss a z":"h:mm:ss a z","h:mm:ss a z":"h:mm:ss a z","h:mm:ss a":"h:mm:ss a","h:mm:ss a":"h:mm:ss a","h:mm a":"h:mm a","h:mm a":"h:mm a","EEEE, MMMM d, y, h:mm:ss a zzzz":"EEEE, MMMM d, y, h:mm:ss a zzzz","MMMM d, y, h:mm:ss a zzzz":"MMMM d, y, h:mm:ss a zzzz","MMM d, y, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","M/d/yy, h:mm:ss a zzzz":"M/d/yy, h:mm:ss a zzzz","d, h:mm:ss a zzzz":"d, h:mm:ss a zzzz","E, h:mm:ss a zzzz":"ccc, h:mm:ss a zzzz","Ed, h:mm:ss a zzzz":"d E, h:mm:ss a zzzz","Gy, h:mm:ss a zzzz":"y G, h:mm:ss a zzzz","GyMd, h:mm:ss a zzzz":"M/d/y G, h:mm:ss a zzzz","GyMMM, h:mm:ss a zzzz":"MMM y G, h:mm:ss a zzzz","GyMMMd, h:mm:ss a zzzz":"MMM d, y G, h:mm:ss a zzzz","GyMMMEd, h:mm:ss a zzzz":"E, MMM d, y G, h:mm:ss a zzzz","M, h:mm:ss a zzzz":"L, h:mm:ss a zzzz","Md, h:mm:ss a zzzz":"M/d, h:mm:ss a zzzz","MEd, h:mm:ss a zzzz":"E, M/d, h:mm:ss a zzzz","MMM, h:mm:ss a zzzz":"LLL, h:mm:ss a zzzz","MMMd, h:mm:ss a zzzz":"MMM d, h:mm:ss a zzzz","MMMEd, h:mm:ss a zzzz":"E, MMM d, h:mm:ss a zzzz","MMMMd, h:mm:ss a zzzz":"MMMM d, h:mm:ss a zzzz","y, h:mm:ss a zzzz":"y, h:mm:ss a zzzz","yM, h:mm:ss a zzzz":"M/y, h:mm:ss a zzzz","yMd, h:mm:ss a zzzz":"M/d/y, h:mm:ss a zzzz","yMEd, h:mm:ss a zzzz":"E, M/d/y, h:mm:ss a zzzz","yMMM, h:mm:ss a zzzz":"MMM y, h:mm:ss a zzzz","yMMMd, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","yMMMEd, h:mm:ss a zzzz":"E, MMM d, y, h:mm:ss a zzzz","yMMMM, h:mm:ss a zzzz":"MMMM y, h:mm:ss a zzzz","EEEE, MMMM d, y, h:mm:ss a zzzz":"EEEE, MMMM d, y, h:mm:ss a zzzz","MMMM d, y, h:mm:ss a zzzz":"MMMM d, y, h:mm:ss a zzzz","MMM d, y, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","M/d/yy, h:mm:ss a zzzz":"M/d/yy, h:mm:ss a zzzz","d, h:mm:ss a zzzz":"d, h:mm:ss a zzzz","E, h:mm:ss a zzzz":"ccc, h:mm:ss a zzzz","Ed, h:mm:ss a zzzz":"d E, h:mm:ss a zzzz","Gy, h:mm:ss a zzzz":"y G, h:mm:ss a zzzz","GyMd, h:mm:ss a zzzz":"M/d/y G, h:mm:ss a zzzz","GyMMM, h:mm:ss a zzzz":"MMM y G, h:mm:ss a zzzz","GyMMMd, h:mm:ss a zzzz":"MMM d, y G, h:mm:ss a zzzz","GyMMMEd, h:mm:ss a zzzz":"E, MMM d, y G, h:mm:ss a zzzz","M, h:mm:ss a zzzz":"L, h:mm:ss a zzzz","Md, h:mm:ss a zzzz":"M/d, h:mm:ss a zzzz","MEd, h:mm:ss a zzzz":"E, M/d, h:mm:ss a zzzz","MMM, h:mm:ss a zzzz":"LLL, h:mm:ss a zzzz","MMMd, h:mm:ss a zzzz":"MMM d, h:mm:ss a zzzz","MMMEd, h:mm:ss a zzzz":"E, MMM d, h:mm:ss a zzzz","MMMMd, h:mm:ss a zzzz":"MMMM d, h:mm:ss a zzzz","y, h:mm:ss a zzzz":"y, h:mm:ss a zzzz","yM, h:mm:ss a zzzz":"M/y, h:mm:ss a zzzz","yMd, h:mm:ss a zzzz":"M/d/y, h:mm:ss a zzzz","yMEd, h:mm:ss a zzzz":"E, M/d/y, h:mm:ss a zzzz","yMMM, h:mm:ss a zzzz":"MMM y, h:mm:ss a zzzz","yMMMd, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","yMMMEd, h:mm:ss a zzzz":"E, MMM d, y, h:mm:ss a zzzz","yMMMM, h:mm:ss a zzzz":"MMMM y, h:mm:ss a zzzz","EEEE, MMMM d, y, h:mm:ss a z":"EEEE, MMMM d, y, h:mm:ss a z","MMMM d, y, h:mm:ss a z":"MMMM d, y, h:mm:ss a z","MMM d, y, h:mm:ss a z":"MMM d, y, h:mm:ss a z","M/d/yy, h:mm:ss a z":"M/d/yy, h:mm:ss a z","d, h:mm:ss a z":"d, h:mm:ss a z","E, h:mm:ss a z":"ccc, h:mm:ss a z","Ed, h:mm:ss a z":"d E, h:mm:ss a z","Gy, h:mm:ss a z":"y G, h:mm:ss a z","GyMd, h:mm:ss a z":"M/d/y G, h:mm:ss a z","GyMMM, h:mm:ss a z":"MMM y G, h:mm:ss a z","GyMMMd, h:mm:ss a z":"MMM d, y G, h:mm:ss a z","GyMMMEd, h:mm:ss a z":"E, MMM d, y G, h:mm:ss a z","M, h:mm:ss a z":"L, h:mm:ss a z","Md, h:mm:ss a z":"M/d, h:mm:ss a z","MEd, h:mm:ss a z":"E, M/d, h:mm:ss a z","MMM, h:mm:ss a z":"LLL, h:mm:ss a z","MMMd, h:mm:ss a z":"MMM d, h:mm:ss a z","MMMEd, h:mm:ss a z":"E, MMM d, h:mm:ss a z","MMMMd, h:mm:ss a z":"MMMM d, h:mm:ss a z","y, h:mm:ss a z":"y, h:mm:ss a z","yM, h:mm:ss a z":"M/y, h:mm:ss a z","yMd, h:mm:ss a z":"M/d/y, h:mm:ss a z","yMEd, h:mm:ss a z":"E, M/d/y, h:mm:ss a z","yMMM, h:mm:ss a z":"MMM y, h:mm:ss a z","yMMMd, h:mm:ss a z":"MMM d, y, h:mm:ss a z","yMMMEd, h:mm:ss a z":"E, MMM d, y, h:mm:ss a z","yMMMM, h:mm:ss a z":"MMMM y, h:mm:ss a z","EEEE, MMMM d, y, h:mm:ss a z":"EEEE, MMMM d, y, h:mm:ss a z","MMMM d, y, h:mm:ss a z":"MMMM d, y, h:mm:ss a z","MMM d, y, h:mm:ss a z":"MMM d, y, h:mm:ss a z","M/d/yy, h:mm:ss a z":"M/d/yy, h:mm:ss a z","d, h:mm:ss a z":"d, h:mm:ss a z","E, h:mm:ss a z":"ccc, h:mm:ss a z","Ed, h:mm:ss a z":"d E, h:mm:ss a z","Gy, h:mm:ss a z":"y G, h:mm:ss a z","GyMd, h:mm:ss a z":"M/d/y G, h:mm:ss a z","GyMMM, h:mm:ss a z":"MMM y G, h:mm:ss a z","GyMMMd, h:mm:ss a z":"MMM d, y G, h:mm:ss a z","GyMMMEd, h:mm:ss a z":"E, MMM d, y G, h:mm:ss a z","M, h:mm:ss a z":"L, h:mm:ss a z","Md, h:mm:ss a z":"M/d, h:mm:ss a z","MEd, h:mm:ss a z":"E, M/d, h:mm:ss a z","MMM, h:mm:ss a z":"LLL, h:mm:ss a z","MMMd, h:mm:ss a z":"MMM d, h:mm:ss a z","MMMEd, h:mm:ss a z":"E, MMM d, h:mm:ss a z","MMMMd, h:mm:ss a z":"MMMM d, h:mm:ss a z","y, h:mm:ss a z":"y, h:mm:ss a z","yM, h:mm:ss a z":"M/y, h:mm:ss a z","yMd, h:mm:ss a z":"M/d/y, h:mm:ss a z","yMEd, h:mm:ss a z":"E, M/d/y, h:mm:ss a z","yMMM, h:mm:ss a z":"MMM y, h:mm:ss a z","yMMMd, h:mm:ss a z":"MMM d, y, h:mm:ss a z","yMMMEd, h:mm:ss a z":"E, MMM d, y, h:mm:ss a z","yMMMM, h:mm:ss a z":"MMMM y, h:mm:ss a z","EEEE, MMMM d, y, h:mm:ss a":"EEEE, MMMM d, y, h:mm:ss a","MMMM d, y, h:mm:ss a":"MMMM d, y, h:mm:ss a","MMM d, y, h:mm:ss a":"MMM d, y, h:mm:ss a","M/d/yy, h:mm:ss a":"M/d/yy, h:mm:ss a","d, h:mm:ss a":"d, h:mm:ss a","E, h:mm:ss a":"ccc, h:mm:ss a","Ed, h:mm:ss a":"d E, h:mm:ss a","Gy, h:mm:ss a":"y G, h:mm:ss a","GyMd, h:mm:ss a":"M/d/y G, h:mm:ss a","GyMMM, h:mm:ss a":"MMM y G, h:mm:ss a","GyMMMd, h:mm:ss a":"MMM d, y G, h:mm:ss a","GyMMMEd, h:mm:ss a":"E, MMM d, y G, h:mm:ss a","M, h:mm:ss a":"L, h:mm:ss a","Md, h:mm:ss a":"M/d, h:mm:ss a","MEd, h:mm:ss a":"E, M/d, h:mm:ss a","MMM, h:mm:ss a":"LLL, h:mm:ss a","MMMd, h:mm:ss a":"MMM d, h:mm:ss a","MMMEd, h:mm:ss a":"E, MMM d, h:mm:ss a","MMMMd, h:mm:ss a":"MMMM d, h:mm:ss a","y, h:mm:ss a":"y, h:mm:ss a","yM, h:mm:ss a":"M/y, h:mm:ss a","yMd, h:mm:ss a":"M/d/y, h:mm:ss a","yMEd, h:mm:ss a":"E, M/d/y, h:mm:ss a","yMMM, h:mm:ss a":"MMM y, h:mm:ss a","yMMMd, h:mm:ss a":"MMM d, y, h:mm:ss a","yMMMEd, h:mm:ss a":"E, MMM d, y, h:mm:ss a","yMMMM, h:mm:ss a":"MMMM y, h:mm:ss a","EEEE, MMMM d, y, h:mm:ss a":"EEEE, MMMM d, y, h:mm:ss a","MMMM d, y, h:mm:ss a":"MMMM d, y, h:mm:ss a","MMM d, y, h:mm:ss a":"MMM d, y, h:mm:ss a","M/d/yy, h:mm:ss a":"M/d/yy, h:mm:ss a","d, h:mm:ss a":"d, h:mm:ss a","E, h:mm:ss a":"ccc, h:mm:ss a","Ed, h:mm:ss a":"d E, h:mm:ss a","Gy, h:mm:ss a":"y G, h:mm:ss a","GyMd, h:mm:ss a":"M/d/y G, h:mm:ss a","GyMMM, h:mm:ss a":"MMM y G, h:mm:ss a","GyMMMd, h:mm:ss a":"MMM d, y G, h:mm:ss a","GyMMMEd, h:mm:ss a":"E, MMM d, y G, h:mm:ss a","M, h:mm:ss a":"L, h:mm:ss a","Md, h:mm:ss a":"M/d, h:mm:ss a","MEd, h:mm:ss a":"E, M/d, h:mm:ss a","MMM, h:mm:ss a":"LLL, h:mm:ss a","MMMd, h:mm:ss a":"MMM d, h:mm:ss a","MMMEd, h:mm:ss a":"E, MMM d, h:mm:ss a","MMMMd, h:mm:ss a":"MMMM d, h:mm:ss a","y, h:mm:ss a":"y, h:mm:ss a","yM, h:mm:ss a":"M/y, h:mm:ss a","yMd, h:mm:ss a":"M/d/y, h:mm:ss a","yMEd, h:mm:ss a":"E, M/d/y, h:mm:ss a","yMMM, h:mm:ss a":"MMM y, h:mm:ss a","yMMMd, h:mm:ss a":"MMM d, y, h:mm:ss a","yMMMEd, h:mm:ss a":"E, MMM d, y, h:mm:ss a","yMMMM, h:mm:ss a":"MMMM y, h:mm:ss a","EEEE, MMMM d, y, h:mm a":"EEEE, MMMM d, y, h:mm a","MMMM d, y, h:mm a":"MMMM d, y, h:mm a","MMM d, y, h:mm a":"MMM d, y, h:mm a","M/d/yy, h:mm a":"M/d/yy, h:mm a","d, h:mm a":"d, h:mm a","E, h:mm a":"ccc, h:mm a","Ed, h:mm a":"d E, h:mm a","Gy, h:mm a":"y G, h:mm a","GyMd, h:mm a":"M/d/y G, h:mm a","GyMMM, h:mm a":"MMM y G, h:mm a","GyMMMd, h:mm a":"MMM d, y G, h:mm a","GyMMMEd, h:mm a":"E, MMM d, y G, h:mm a","M, h:mm a":"L, h:mm a","Md, h:mm a":"M/d, h:mm a","MEd, h:mm a":"E, M/d, h:mm a","MMM, h:mm a":"LLL, h:mm a","MMMd, h:mm a":"MMM d, h:mm a","MMMEd, h:mm a":"E, MMM d, h:mm a","MMMMd, h:mm a":"MMMM d, h:mm a","y, h:mm a":"y, h:mm a","yM, h:mm a":"M/y, h:mm a","yMd, h:mm a":"M/d/y, h:mm a","yMEd, h:mm a":"E, M/d/y, h:mm a","yMMM, h:mm a":"MMM y, h:mm a","yMMMd, h:mm a":"MMM d, y, h:mm a","yMMMEd, h:mm a":"E, MMM d, y, h:mm a","yMMMM, h:mm a":"MMMM y, h:mm a","EEEE, MMMM d, y, h:mm a":"EEEE, MMMM d, y, h:mm a","MMMM d, y, h:mm a":"MMMM d, y, h:mm a","MMM d, y, h:mm a":"MMM d, y, h:mm a","M/d/yy, h:mm a":"M/d/yy, h:mm a","d, h:mm a":"d, h:mm a","E, h:mm a":"ccc, h:mm a","Ed, h:mm a":"d E, h:mm a","Gy, h:mm a":"y G, h:mm a","GyMd, h:mm a":"M/d/y G, h:mm a","GyMMM, h:mm a":"MMM y G, h:mm a","GyMMMd, h:mm a":"MMM d, y G, h:mm a","GyMMMEd, h:mm a":"E, MMM d, y G, h:mm a","M, h:mm a":"L, h:mm a","Md, h:mm a":"M/d, h:mm a","MEd, h:mm a":"E, M/d, h:mm a","MMM, h:mm a":"LLL, h:mm a","MMMd, h:mm a":"MMM d, h:mm a","MMMEd, h:mm a":"E, MMM d, h:mm a","MMMMd, h:mm a":"MMMM d, h:mm a","y, h:mm a":"y, h:mm a","yM, h:mm a":"M/y, h:mm a","yMd, h:mm a":"M/d/y, h:mm a","yMEd, h:mm a":"E, M/d/y, h:mm a","yMMM, h:mm a":"MMM y, h:mm a","yMMMd, h:mm a":"MMM d, y, h:mm a","yMMMEd, h:mm a":"E, MMM d, y, h:mm a","yMMMM, h:mm a":"MMMM y, h:mm a","EEEE, MMMM d, y, Bh":"EEEE, MMMM d, y, h B","MMMM d, y, Bh":"MMMM d, y, h B","MMM d, y, Bh":"MMM d, y, h B","M/d/yy, Bh":"M/d/yy, h B","d, Bh":"d, h B","E, Bh":"ccc, h B","Ed, Bh":"d E, h B","Gy, Bh":"y G, h B","GyMd, Bh":"M/d/y G, h B","GyMMM, Bh":"MMM y G, h B","GyMMMd, Bh":"MMM d, y G, h B","GyMMMEd, Bh":"E, MMM d, y G, h B","M, Bh":"L, h B","Md, Bh":"M/d, h B","MEd, Bh":"E, M/d, h B","MMM, Bh":"LLL, h B","MMMd, Bh":"MMM d, h B","MMMEd, Bh":"E, MMM d, h B","MMMMd, Bh":"MMMM d, h B","y, Bh":"y, h B","yM, Bh":"M/y, h B","yMd, Bh":"M/d/y, h B","yMEd, Bh":"E, M/d/y, h B","yMMM, Bh":"MMM y, h B","yMMMd, Bh":"MMM d, y, h B","yMMMEd, Bh":"E, MMM d, y, h B","yMMMM, Bh":"MMMM y, h B","EEEE, MMMM d, y, Bhm":"EEEE, MMMM d, y, h:mm B","MMMM d, y, Bhm":"MMMM d, y, h:mm B","MMM d, y, Bhm":"MMM d, y, h:mm B","M/d/yy, Bhm":"M/d/yy, h:mm B","d, Bhm":"d, h:mm B","E, Bhm":"ccc, h:mm B","Ed, Bhm":"d E, h:mm B","Gy, Bhm":"y G, h:mm B","GyMd, Bhm":"M/d/y G, h:mm B","GyMMM, Bhm":"MMM y G, h:mm B","GyMMMd, Bhm":"MMM d, y G, h:mm B","GyMMMEd, Bhm":"E, MMM d, y G, h:mm B","M, Bhm":"L, h:mm B","Md, Bhm":"M/d, h:mm B","MEd, Bhm":"E, M/d, h:mm B","MMM, Bhm":"LLL, h:mm B","MMMd, Bhm":"MMM d, h:mm B","MMMEd, Bhm":"E, MMM d, h:mm B","MMMMd, Bhm":"MMMM d, h:mm B","y, Bhm":"y, h:mm B","yM, Bhm":"M/y, h:mm B","yMd, Bhm":"M/d/y, h:mm B","yMEd, Bhm":"E, M/d/y, h:mm B","yMMM, Bhm":"MMM y, h:mm B","yMMMd, Bhm":"MMM d, y, h:mm B","yMMMEd, Bhm":"E, MMM d, y, h:mm B","yMMMM, Bhm":"MMMM y, h:mm B","EEEE, MMMM d, y, Bhms":"EEEE, MMMM d, y, h:mm:ss B","MMMM d, y, Bhms":"MMMM d, y, h:mm:ss B","MMM d, y, Bhms":"MMM d, y, h:mm:ss B","M/d/yy, Bhms":"M/d/yy, h:mm:ss B","d, Bhms":"d, h:mm:ss B","E, Bhms":"ccc, h:mm:ss B","Ed, Bhms":"d E, h:mm:ss B","Gy, Bhms":"y G, h:mm:ss B","GyMd, Bhms":"M/d/y G, h:mm:ss B","GyMMM, Bhms":"MMM y G, h:mm:ss B","GyMMMd, Bhms":"MMM d, y G, h:mm:ss B","GyMMMEd, Bhms":"E, MMM d, y G, h:mm:ss B","M, Bhms":"L, h:mm:ss B","Md, Bhms":"M/d, h:mm:ss B","MEd, Bhms":"E, M/d, h:mm:ss B","MMM, Bhms":"LLL, h:mm:ss B","MMMd, Bhms":"MMM d, h:mm:ss B","MMMEd, Bhms":"E, MMM d, h:mm:ss B","MMMMd, Bhms":"MMMM d, h:mm:ss B","y, Bhms":"y, h:mm:ss B","yM, Bhms":"M/y, h:mm:ss B","yMd, Bhms":"M/d/y, h:mm:ss B","yMEd, Bhms":"E, M/d/y, h:mm:ss B","yMMM, Bhms":"MMM y, h:mm:ss B","yMMMd, Bhms":"MMM d, y, h:mm:ss B","yMMMEd, Bhms":"E, MMM d, y, h:mm:ss B","yMMMM, Bhms":"MMMM y, h:mm:ss B","EEEE, MMMM d, y, h":"EEEE, MMMM d, y, h a","MMMM d, y, h":"MMMM d, y, h a","MMM d, y, h":"MMM d, y, h a","M/d/yy, h":"M/d/yy, h a","d, h":"d, h a","E, h":"ccc, h a","Ed, h":"d E, h a","Gy, h":"y G, h a","GyMd, h":"M/d/y G, h a","GyMMM, h":"MMM y G, h a","GyMMMd, h":"MMM d, y G, h a","GyMMMEd, h":"E, MMM d, y G, h a","M, h":"L, h a","Md, h":"M/d, h a","MEd, h":"E, M/d, h a","MMM, h":"LLL, h a","MMMd, h":"MMM d, h a","MMMEd, h":"E, MMM d, h a","MMMMd, h":"MMMM d, h a","y, h":"y, h a","yM, h":"M/y, h a","yMd, h":"M/d/y, h a","yMEd, h":"E, M/d/y, h a","yMMM, h":"MMM y, h a","yMMMd, h":"MMM d, y, h a","yMMMEd, h":"E, MMM d, y, h a","yMMMM, h":"MMMM y, h a","EEEE, MMMM d, y, H":"EEEE, MMMM d, y, HH","MMMM d, y, H":"MMMM d, y, HH","MMM d, y, H":"MMM d, y, HH","M/d/yy, H":"M/d/yy, HH","d, H":"d, HH","E, H":"ccc, HH","Ed, H":"d E, HH","Gy, H":"y G, HH","GyMd, H":"M/d/y G, HH","GyMMM, H":"MMM y G, HH","GyMMMd, H":"MMM d, y G, HH","GyMMMEd, H":"E, MMM d, y G, HH","M, H":"L, HH","Md, H":"M/d, HH","MEd, H":"E, M/d, HH","MMM, H":"LLL, HH","MMMd, H":"MMM d, HH","MMMEd, H":"E, MMM d, HH","MMMMd, H":"MMMM d, HH","y, H":"y, HH","yM, H":"M/y, HH","yMd, H":"M/d/y, HH","yMEd, H":"E, M/d/y, HH","yMMM, H":"MMM y, HH","yMMMd, H":"MMM d, y, HH","yMMMEd, H":"E, MMM d, y, HH","yMMMM, H":"MMMM y, HH","EEEE, MMMM d, y, hm":"EEEE, MMMM d, y, h:mm a","MMMM d, y, hm":"MMMM d, y, h:mm a","MMM d, y, hm":"MMM d, y, h:mm a","M/d/yy, hm":"M/d/yy, h:mm a","d, hm":"d, h:mm a","E, hm":"ccc, h:mm a","Ed, hm":"d E, h:mm a","Gy, hm":"y G, h:mm a","GyMd, hm":"M/d/y G, h:mm a","GyMMM, hm":"MMM y G, h:mm a","GyMMMd, hm":"MMM d, y G, h:mm a","GyMMMEd, hm":"E, MMM d, y G, h:mm a","M, hm":"L, h:mm a","Md, hm":"M/d, h:mm a","MEd, hm":"E, M/d, h:mm a","MMM, hm":"LLL, h:mm a","MMMd, hm":"MMM d, h:mm a","MMMEd, hm":"E, MMM d, h:mm a","MMMMd, hm":"MMMM d, h:mm a","y, hm":"y, h:mm a","yM, hm":"M/y, h:mm a","yMd, hm":"M/d/y, h:mm a","yMEd, hm":"E, M/d/y, h:mm a","yMMM, hm":"MMM y, h:mm a","yMMMd, hm":"MMM d, y, h:mm a","yMMMEd, hm":"E, MMM d, y, h:mm a","yMMMM, hm":"MMMM y, h:mm a","EEEE, MMMM d, y, Hm":"EEEE, MMMM d, y, HH:mm","MMMM d, y, Hm":"MMMM d, y, HH:mm","MMM d, y, Hm":"MMM d, y, HH:mm","M/d/yy, Hm":"M/d/yy, HH:mm","d, Hm":"d, HH:mm","E, Hm":"ccc, HH:mm","Ed, Hm":"d E, HH:mm","Gy, Hm":"y G, HH:mm","GyMd, Hm":"M/d/y G, HH:mm","GyMMM, Hm":"MMM y G, HH:mm","GyMMMd, Hm":"MMM d, y G, HH:mm","GyMMMEd, Hm":"E, MMM d, y G, HH:mm","M, Hm":"L, HH:mm","Md, Hm":"M/d, HH:mm","MEd, Hm":"E, M/d, HH:mm","MMM, Hm":"LLL, HH:mm","MMMd, Hm":"MMM d, HH:mm","MMMEd, Hm":"E, MMM d, HH:mm","MMMMd, Hm":"MMMM d, HH:mm","y, Hm":"y, HH:mm","yM, Hm":"M/y, HH:mm","yMd, Hm":"M/d/y, HH:mm","yMEd, Hm":"E, M/d/y, HH:mm","yMMM, Hm":"MMM y, HH:mm","yMMMd, Hm":"MMM d, y, HH:mm","yMMMEd, Hm":"E, MMM d, y, HH:mm","yMMMM, Hm":"MMMM y, HH:mm","EEEE, MMMM d, y, hms":"EEEE, MMMM d, y, h:mm:ss a","MMMM d, y, hms":"MMMM d, y, h:mm:ss a","MMM d, y, hms":"MMM d, y, h:mm:ss a","M/d/yy, hms":"M/d/yy, h:mm:ss a","d, hms":"d, h:mm:ss a","E, hms":"ccc, h:mm:ss a","Ed, hms":"d E, h:mm:ss a","Gy, hms":"y G, h:mm:ss a","GyMd, hms":"M/d/y G, h:mm:ss a","GyMMM, hms":"MMM y G, h:mm:ss a","GyMMMd, hms":"MMM d, y G, h:mm:ss a","GyMMMEd, hms":"E, MMM d, y G, h:mm:ss a","M, hms":"L, h:mm:ss a","Md, hms":"M/d, h:mm:ss a","MEd, hms":"E, M/d, h:mm:ss a","MMM, hms":"LLL, h:mm:ss a","MMMd, hms":"MMM d, h:mm:ss a","MMMEd, hms":"E, MMM d, h:mm:ss a","MMMMd, hms":"MMMM d, h:mm:ss a","y, hms":"y, h:mm:ss a","yM, hms":"M/y, h:mm:ss a","yMd, hms":"M/d/y, h:mm:ss a","yMEd, hms":"E, M/d/y, h:mm:ss a","yMMM, hms":"MMM y, h:mm:ss a","yMMMd, hms":"MMM d, y, h:mm:ss a","yMMMEd, hms":"E, MMM d, y, h:mm:ss a","yMMMM, hms":"MMMM y, h:mm:ss a","EEEE, MMMM d, y, Hms":"EEEE, MMMM d, y, HH:mm:ss","MMMM d, y, Hms":"MMMM d, y, HH:mm:ss","MMM d, y, Hms":"MMM d, y, HH:mm:ss","M/d/yy, Hms":"M/d/yy, HH:mm:ss","d, Hms":"d, HH:mm:ss","E, Hms":"ccc, HH:mm:ss","Ed, Hms":"d E, HH:mm:ss","Gy, Hms":"y G, HH:mm:ss","GyMd, Hms":"M/d/y G, HH:mm:ss","GyMMM, Hms":"MMM y G, HH:mm:ss","GyMMMd, Hms":"MMM d, y G, HH:mm:ss","GyMMMEd, Hms":"E, MMM d, y G, HH:mm:ss","M, Hms":"L, HH:mm:ss","Md, Hms":"M/d, HH:mm:ss","MEd, Hms":"E, M/d, HH:mm:ss","MMM, Hms":"LLL, HH:mm:ss","MMMd, Hms":"MMM d, HH:mm:ss","MMMEd, Hms":"E, MMM d, HH:mm:ss","MMMMd, Hms":"MMMM d, HH:mm:ss","y, Hms":"y, HH:mm:ss","yM, Hms":"M/y, HH:mm:ss","yMd, Hms":"M/d/y, HH:mm:ss","yMEd, Hms":"E, M/d/y, HH:mm:ss","yMMM, Hms":"MMM y, HH:mm:ss","yMMMd, Hms":"MMM d, y, HH:mm:ss","yMMMEd, Hms":"E, MMM d, y, HH:mm:ss","yMMMM, Hms":"MMMM y, HH:mm:ss","EEEE, MMMM d, y, hmsv":"EEEE, MMMM d, y, h:mm:ss a v","MMMM d, y, hmsv":"MMMM d, y, h:mm:ss a v","MMM d, y, hmsv":"MMM d, y, h:mm:ss a v","M/d/yy, hmsv":"M/d/yy, h:mm:ss a v","d, hmsv":"d, h:mm:ss a v","E, hmsv":"ccc, h:mm:ss a v","Ed, hmsv":"d E, h:mm:ss a v","Gy, hmsv":"y G, h:mm:ss a v","GyMd, hmsv":"M/d/y G, h:mm:ss a v","GyMMM, hmsv":"MMM y G, h:mm:ss a v","GyMMMd, hmsv":"MMM d, y G, h:mm:ss a v","GyMMMEd, hmsv":"E, MMM d, y G, h:mm:ss a v","M, hmsv":"L, h:mm:ss a v","Md, hmsv":"M/d, h:mm:ss a v","MEd, hmsv":"E, M/d, h:mm:ss a v","MMM, hmsv":"LLL, h:mm:ss a v","MMMd, hmsv":"MMM d, h:mm:ss a v","MMMEd, hmsv":"E, MMM d, h:mm:ss a v","MMMMd, hmsv":"MMMM d, h:mm:ss a v","y, hmsv":"y, h:mm:ss a v","yM, hmsv":"M/y, h:mm:ss a v","yMd, hmsv":"M/d/y, h:mm:ss a v","yMEd, hmsv":"E, M/d/y, h:mm:ss a v","yMMM, hmsv":"MMM y, h:mm:ss a v","yMMMd, hmsv":"MMM d, y, h:mm:ss a v","yMMMEd, hmsv":"E, MMM d, y, h:mm:ss a v","yMMMM, hmsv":"MMMM y, h:mm:ss a v","EEEE, MMMM d, y, Hmsv":"EEEE, MMMM d, y, HH:mm:ss v","MMMM d, y, Hmsv":"MMMM d, y, HH:mm:ss v","MMM d, y, Hmsv":"MMM d, y, HH:mm:ss v","M/d/yy, Hmsv":"M/d/yy, HH:mm:ss v","d, Hmsv":"d, HH:mm:ss v","E, Hmsv":"ccc, HH:mm:ss v","Ed, Hmsv":"d E, HH:mm:ss v","Gy, Hmsv":"y G, HH:mm:ss v","GyMd, Hmsv":"M/d/y G, HH:mm:ss v","GyMMM, Hmsv":"MMM y G, HH:mm:ss v","GyMMMd, Hmsv":"MMM d, y G, HH:mm:ss v","GyMMMEd, Hmsv":"E, MMM d, y G, HH:mm:ss v","M, Hmsv":"L, HH:mm:ss v","Md, Hmsv":"M/d, HH:mm:ss v","MEd, Hmsv":"E, M/d, HH:mm:ss v","MMM, Hmsv":"LLL, HH:mm:ss v","MMMd, Hmsv":"MMM d, HH:mm:ss v","MMMEd, Hmsv":"E, MMM d, HH:mm:ss v","MMMMd, Hmsv":"MMMM d, HH:mm:ss v","y, Hmsv":"y, HH:mm:ss v","yM, Hmsv":"M/y, HH:mm:ss v","yMd, Hmsv":"M/d/y, HH:mm:ss v","yMEd, Hmsv":"E, M/d/y, HH:mm:ss v","yMMM, Hmsv":"MMM y, HH:mm:ss v","yMMMd, Hmsv":"MMM d, y, HH:mm:ss v","yMMMEd, Hmsv":"E, MMM d, y, HH:mm:ss v","yMMMM, Hmsv":"MMMM y, HH:mm:ss v","EEEE, MMMM d, y, hmv":"EEEE, MMMM d, y, h:mm a v","MMMM d, y, hmv":"MMMM d, y, h:mm a v","MMM d, y, hmv":"MMM d, y, h:mm a v","M/d/yy, hmv":"M/d/yy, h:mm a v","d, hmv":"d, h:mm a v","E, hmv":"ccc, h:mm a v","Ed, hmv":"d E, h:mm a v","Gy, hmv":"y G, h:mm a v","GyMd, hmv":"M/d/y G, h:mm a v","GyMMM, hmv":"MMM y G, h:mm a v","GyMMMd, hmv":"MMM d, y G, h:mm a v","GyMMMEd, hmv":"E, MMM d, y G, h:mm a v","M, hmv":"L, h:mm a v","Md, hmv":"M/d, h:mm a v","MEd, hmv":"E, M/d, h:mm a v","MMM, hmv":"LLL, h:mm a v","MMMd, hmv":"MMM d, h:mm a v","MMMEd, hmv":"E, MMM d, h:mm a v","MMMMd, hmv":"MMMM d, h:mm a v","y, hmv":"y, h:mm a v","yM, hmv":"M/y, h:mm a v","yMd, hmv":"M/d/y, h:mm a v","yMEd, hmv":"E, M/d/y, h:mm a v","yMMM, hmv":"MMM y, h:mm a v","yMMMd, hmv":"MMM d, y, h:mm a v","yMMMEd, hmv":"E, MMM d, y, h:mm a v","yMMMM, hmv":"MMMM y, h:mm a v","EEEE, MMMM d, y, Hmv":"EEEE, MMMM d, y, HH:mm v","MMMM d, y, Hmv":"MMMM d, y, HH:mm v","MMM d, y, Hmv":"MMM d, y, HH:mm v","M/d/yy, Hmv":"M/d/yy, HH:mm v","d, Hmv":"d, HH:mm v","E, Hmv":"ccc, HH:mm v","Ed, Hmv":"d E, HH:mm v","Gy, Hmv":"y G, HH:mm v","GyMd, Hmv":"M/d/y G, HH:mm v","GyMMM, Hmv":"MMM y G, HH:mm v","GyMMMd, Hmv":"MMM d, y G, HH:mm v","GyMMMEd, Hmv":"E, MMM d, y G, HH:mm v","M, Hmv":"L, HH:mm v","Md, Hmv":"M/d, HH:mm v","MEd, Hmv":"E, M/d, HH:mm v","MMM, Hmv":"LLL, HH:mm v","MMMd, Hmv":"MMM d, HH:mm v","MMMEd, Hmv":"E, MMM d, HH:mm v","MMMMd, Hmv":"MMMM d, HH:mm v","y, Hmv":"y, HH:mm v","yM, Hmv":"M/y, HH:mm v","yMd, Hmv":"M/d/y, HH:mm v","yMEd, Hmv":"E, M/d/y, HH:mm v","yMMM, Hmv":"MMM y, HH:mm v","yMMMd, Hmv":"MMM d, y, HH:mm v","yMMMEd, Hmv":"E, MMM d, y, HH:mm v","yMMMM, Hmv":"MMMM y, HH:mm v","EEEE, MMMM d, y, ms":"EEEE, MMMM d, y, mm:ss","MMMM d, y, ms":"MMMM d, y, mm:ss","MMM d, y, ms":"MMM d, y, mm:ss","M/d/yy, ms":"M/d/yy, mm:ss","d, ms":"d, mm:ss","E, ms":"ccc, mm:ss","Ed, ms":"d E, mm:ss","Gy, ms":"y G, mm:ss","GyMd, ms":"M/d/y G, mm:ss","GyMMM, ms":"MMM y G, mm:ss","GyMMMd, ms":"MMM d, y G, mm:ss","GyMMMEd, ms":"E, MMM d, y G, mm:ss","M, ms":"L, mm:ss","Md, ms":"M/d, mm:ss","MEd, ms":"E, M/d, mm:ss","MMM, ms":"LLL, mm:ss","MMMd, ms":"MMM d, mm:ss","MMMEd, ms":"E, MMM d, mm:ss","MMMMd, ms":"MMMM d, mm:ss","y, ms":"y, mm:ss","yM, ms":"M/y, mm:ss","yMd, ms":"M/d/y, mm:ss","yMEd, ms":"E, M/d/y, mm:ss","yMMM, ms":"MMM y, mm:ss","yMMMd, ms":"MMM d, y, mm:ss","yMMMEd, ms":"E, MMM d, y, mm:ss","yMMMM, ms":"MMMM y, mm:ss"}},intervalFormats:{intervalFormatFallback:"{0} – {1}",Bh:{B:"h B – h B",h:"h – h B"},Bhm:{B:"h:mm B – h:mm B",h:"h:mm – h:mm B",m:"h:mm – h:mm B"},d:{d:"d – d"},Gy:{G:"y G – y G",y:"y – y G"},GyM:{G:"M/y G – M/y G",M:"M/y – M/y G",y:"M/y – M/y G"},GyMd:{d:"M/d/y – M/d/y G",G:"M/d/y G – M/d/y G",M:"M/d/y – M/d/y G",y:"M/d/y – M/d/y G"},GyMEd:{d:"E, M/d/y – E, M/d/y G",G:"E, M/d/y G – E, M/d/y G",M:"E, M/d/y – E, M/d/y G",y:"E, M/d/y – E, M/d/y G"},GyMMM:{G:"MMM y G – MMM y G",M:"MMM – MMM y G",y:"MMM y – MMM y G"},GyMMMd:{d:"MMM d – d, y G",G:"MMM d, y G – MMM d, y G",M:"MMM d – MMM d, y G",y:"MMM d, y – MMM d, y G"},GyMMMEd:{d:"E, MMM d – E, MMM d, y G",G:"E, MMM d, y G – E, MMM d, y G",M:"E, MMM d – E, MMM d, y G",y:"E, MMM d, y – E, MMM d, y G"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{M:"M/y – M/y",y:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",M:"M/d/y – M/d/y",y:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y"},yMMM:{M:"MMM – MMM y",y:"MMM y – MMM y"},yMMMd:{d:"MMM d – d, y",M:"MMM d – MMM d, y",y:"MMM d, y – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",M:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y"},yMMMM:{M:"MMMM – MMMM y",y:"MMMM y – MMMM y"}},hourCycle:"h12",nu:["latn"],ca:["gregory"],hc:["h12","","h23",""]},locale:"en"});var th=Object.freeze({__proto__:null});e.Temporal=jl,e.bbn=Wd,e.default=Wd,Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bbn={})}(this,function(e){"use strict";function t(e,t,r,o,i){return n(t,((e,t)=>{const n=e[t];if(void 0===n)throw new TypeError(To(t));return n})(e,t),r,o,i)}function n(e,t,n,r,o,i){const a=E(t,n,r);if(o&&t!==a)throw new RangeError(vo(e,t,n,r,i));return a}function r(e){return null!==e&&/object|function/.test(typeof e)}function o(e,t=Map){const n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);const o=e(t,...r);return n.set(t,o),o}}function i(e){return a({name:e},1)}function a(e,t){return u(e=>({value:e,configurable:1,writable:!t}),e)}function s(e){return u(e=>({get:e,configurable:1}),e)}function m(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function l(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function u(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function d(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function c(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function h(e,t){const n=Object.create(null);for(const r of e)n[r]=t[r];return n}function f(e,t){for(const n of t)if(n in e)return 1;return 0}function M(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function y(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function g(e,...t){return(...n)=>e(...t,...n)}function p(e){return e[0].toUpperCase()+e.substring(1)}function b(e){return e.slice().sort()}function w(e,t){return String(t).padStart(e,"0")}function v(e,t){return Math.sign(e-t)}function E(e,t,n){return Math.min(Math.max(e,t),n)}function T(e,t){return[Math.floor(e/t),S(e,t)]}function S(e,t){return(e%t+t)%t}function D(e,t){return[z(e,t),A(e,t)]}function z(e,t){return Math.trunc(e/t)||0}function A(e,t){return e%t||0}function H(e){return.5===Math.abs(e%1)}function k(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=pi[i],s=gi/a,[m,l]=D(t,s);r+=l*a,o+=m}const[i,a]=D(r,gi);return[o+i,a]}function I(e,t,n){const r={};for(let o=t;o>=0;o--){const t=pi[o];r[n[o]]=z(e,t),e=A(e,t)}return r}function _(e){if(void 0!==e)return P(e)}function C(e){return x(P(e))}function P(e){return N(Wi(e))}function G(e,t){if(null==t)throw new RangeError(To(e));return t}function O(e){if(!r(e))throw new TypeError(wo);return e}function B(e,t,n=e){if(typeof t!==e)throw new TypeError(Eo(n,t));return t}function N(e,t="number"){if(!Number.isInteger(e))throw new RangeError(fo(t,e));return e||0}function x(e,t="number"){if(e<=0)throw new RangeError(Mo(t,e));return e}function L(e){if("symbol"==typeof e)throw new TypeError(bo);return String(e)}function j(e,t){return r(e)?String(e):Yi(e,t)}function R(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(po(e));return e}function F(e,t="number"){if("bigint"==typeof e)throw new TypeError(go(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(yo(t,e));return e}function Y(e,t){return Math.trunc(F(e,t))||0}function Z(e,t){return N(F(e,t),t)}function W(e,t){return x(Y(e,t),t)}function U(e,t){let[n,r]=D(t,gi),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*gi),[o,r]}function q(e,t,n=1){return U(e[0]+t[0]*n,e[1]+t[1]*n)}function $(e,t){return U(e[0],e[1]+t)}function V(e,t){return q(t,e,-1)}function K(e,t){return v(e[0],t[0])||v(e[1],t[1])}function J(e,t,n){return-1===K(e,t)||1===K(e,n)}function X(e,t=1){const n=BigInt(gi/t);return[Number(e/n),Number(e%n)*t]}function Q(e,t=1){const n=gi/t,[r,o]=D(e,n);return[r,o*t]}function ee(e,t=1,n){const[r,o]=e,[i,a]=D(o,t);return r*(gi/t)+(i+(n?a/t:0))}function te(e,t,n=T){const[r,o]=e,[i,a]=n(o,t);return[r*(gi/t)+i,a]}function ne(e){return t(e,"isoYear",fa,ha,1),e.isoYear===fa?t(e,"isoMonth",4,12,1):e.isoYear===ha&&t(e,"isoMonth",1,9,1),e}function re(e){return oe({...e,...sa,isoHour:12}),e}function oe(e){const n=t(e,"isoYear",fa,ha,1),r=n===fa?1:n===ha?-1:0;return r&&ie(ue({...e,isoDay:e.isoDay+r,isoNanosecond:e.isoNanosecond-r})),e}function ie(e){if(!e||J(e,ca,da))throw new RangeError($o);return e}function ae(e){return k(e,5,ta)[1]}function se(e){const[t,n]=T(e,gi);return[I(n,5,ta),t]}function me(e){return te(e,fi)}function le(e){return he(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function ue(e){const t=le(e);if(void 0!==t){const[n,r]=D(t,ui);return[n,r*hi+(e.isoMicrosecond||0)*ci+(e.isoNanosecond||0)]}}function de(e,t){const[n,r]=se(ae(e)-t);return ie(ue({...e,isoDay:e.isoDay+r,...n}))}function ce(...e){return he(...e)/di}function he(...e){const[t,n]=fe(...e),r=t.valueOf();if(!isNaN(r))return r-n*ui}function fe(e,t=1,n=1,r=0,o=0,i=0,a=0){const s=e===fa?1:e===ha?-1:0,m=new Date;return m.setUTCHours(r,o,i,a),m.setUTCFullYear(e,t-1,n+s),[m,s]}function Me(e,t){let[n,r]=$(e,t);r<0&&(r+=gi,n-=1);const[o,i]=T(r,hi),[a,s]=T(i,ci);return ye(n*ui+o,a,s)}function ye(e,t=0,n=0){const r=Math.ceil(Math.max(0,Math.abs(e)-ua)/ui)*Math.sign(e),o=new Date(e-r*ui);return l(ra,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ge(e,t){if(t<-ua)throw new RangeError($o);const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function pe(e){return[e.isoYear,e.isoMonth,e.isoDay]}function be(e,t){return[t,0]}function we(){return ba}function ve(e,t){switch(t){case 2:return Te(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Ee(e){return Te(e)?366:365}function Te(e){return e%4==0&&(e%100!=0||e%400==0)}function Se(e){const[t,n]=fe(e.isoYear,e.isoMonth,e.isoDay);return S(t.getUTCDay()-n,7)||7}function De(e){return this.id===xi?(({isoYear:e})=>e<1?["gregory-inverse",1-e]:["gregory",e])(e):this.id===Li?va(e):[]}function ze(e){const t=le(e);if(t<wa){const{isoYear:t}=e;return t<1?["japanese-inverse",1-t]:["japanese",t]}const n=ge(Cs(Li),t),{era:r,eraYear:o}=_r(n,Li);return[r,o]}function Ae(e){return He(e),_e(e,1),e}function He(e){return Ie(e,1),e}function ke(e){return M(na,e,Ie(e))}function Ie(e,n){const{isoYear:r}=e,o=t(e,"isoMonth",1,we(),n);return{isoYear:r,isoMonth:o,isoDay:t(e,"isoDay",1,ve(r,o),n)}}function _e(e,n){return l(ta,[t(e,"isoHour",0,23,n),t(e,"isoMinute",0,59,n),t(e,"isoSecond",0,59,n),t(e,"isoMillisecond",0,999,n),t(e,"isoMicrosecond",0,999,n),t(e,"isoNanosecond",0,999,n)])}function Ce(e){return void 0===e?0:ja(O(e))}function Pe(e,t=0){e=Ye(e);const n=Ra(e),r=Fa(e,t);return[ja(e),r,n]}function Ge(e,t,n,r=9,o=0,i=4){t=Ye(t);let a=xa(t,r,o),s=je(t),m=Ua(t,i);const l=Na(t,r,o,1);return null==a?a=Math.max(n,l):$e(a,l),s=Re(s,l,1),e&&(m=(e=>e<4?(e+2)%4:e)(m)),[a,l,s,m]}function Oe(e,t=6,n){let r=je(e=Ze(e,Ea));const o=Ua(e,7);let i=Na(e,t);return i=G(Ea,i),r=Re(r,i,void 0,n),[i,r,o]}function Be(e){return Ya(Ye(e))}function Ne(e,t){return xe(Ye(e),t)}function xe(e,t=4){const n=Fe(e);return[Ua(e,4),...Le(Na(e,t),n)]}function Le(e,t){return null!=e?[pi[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function je(e){const t=e[Sa];return void 0===t?1:Y(t,Sa)}function Re(e,t,r,o){const i=o?gi:pi[t+1];if(i){const r=pi[t];if(i%((e=n(Sa,e,1,i/r-(o?0:1),1))*r))throw new RangeError(Eo(Sa,e))}else e=n(Sa,e,1,r?10**9:1,1);return e}function Fe(e){let t=e[Da];if(void 0!==t){if("number"!=typeof t){if("auto"===L(t))return;throw new RangeError(Eo(Da,t))}t=n(Da,Math.floor(t),0,9,1)}return t}function Ye(e){return void 0===e?{}:O(e)}function Ze(e,t){return"string"==typeof e?{[t]:e}:O(e)}function We(e){return{overflow:ka[e]}}function Ue(e,t,r=9,o=0,i){let a=t[e];if(void 0===a)return i?o:void 0;if(a=L(a),"auto"===a)return i?o:null;let s=mi[a];if(void 0===s&&(s=Ji[a]),void 0===s)throw new RangeError(Ao(e,a,mi));return n(e,s,o,r,1,li),s}function qe(e,t,n,r=0){const o=n[e];if(void 0===o)return r;const i=L(o),a=t[i];if(void 0===a)throw new RangeError(Ao(e,i,t));return a}function $e(e,t){if(t>e)throw new RangeError(ei)}function Ve(e){return{branding:Qa,epochNanoseconds:e}}function Ke(e,t,n){return{branding:Xa,calendar:n,timeZone:t,epochNanoseconds:e}}function Je(e,t=e.calendar){return{branding:Ka,calendar:t,...h(aa,e)}}function Xe(e,t=e.calendar){return{branding:Va,calendar:t,...h(oa,e)}}function Qe(e,t=e.calendar){return{branding:qa,calendar:t,...h(oa,e)}}function et(e,t=e.calendar){return{branding:$a,calendar:t,...h(oa,e)}}function tt(e){return{branding:Ja,...h(ia,e)}}function nt(e){return{branding:es,sign:gn(e),...h(qi,e)}}function rt(e){return te(e.epochNanoseconds,hi)[0]}function ot(e){return e.epochNanoseconds}function it(e,t){return ee(wn(e),pi[t],1)}function at(e,t,n,r,o,i,a){const s=Ui[n],m={...t,[s]:t[s]+r},l=a(e,o,t),u=a(e,o,m);return[i(l),i(u)]}function st(e,t,n){const r=ee(V(t,n));if(!r)throw new RangeError(xo);return ee(V(t,e))/r}function mt(e,t,n,r){return lt(e,ct(t,n),r)}function lt(e,t,n){const[r,o]=ut(e,t,n);return oe({...sn(e,o),...r})}function ut(e,t,n){return se(bt(ae(e),t,n))}function dt(e){return bt(e,Mi,7)}function ct(e,t){return pi[e]*t}function ht(e){const t=ft(e);return[t,sn(t,1)]}function ft(e){return ma(6,e)}function Mt(e,t,n){const r=Math.min(Sn(e),6);return vn(pt(wn(e,r),t,n),r)}function yt(e,t,n,r,o,i,a,s,m,l){if(0===r&&1===o)return e;const u=hn(r,s)?cn(s)&&r<6&&n>=6?Et:vt:Tt;let[d,c,h]=u(e,t,n,r,o,i,a,s,m,l);return h&&7!==r&&(d=((e,t,n,r,o,i,a,s)=>{const m=gn(e);for(let l=r+1;l<=n;l++){if(7===l&&7!==n)continue;const r=ea(l,e);r[Ui[l]]+=m;const u=ee(V(a(s(o,i,r)),t));if(u&&Math.sign(u)!==m)break;e=r}return e})(d,c,n,Math.max(6,r),a,s,m,l)),d}function gt(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/gi)(e);return[bt(t,n,r),0]}return pt(e,ct(t,n),r,o)}function pt(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=gi,o-=1);const[a,s]=T(bt(i,t,n),gi);return U(o+a,s)}function bt(e,t,n){return wt(e/t,n)*t}function wt(e,t){return ts[t](e)}function vt(e,t,n,r,o,i){const a=gn(e),s=wn(e),m=gt(s,r,o,i),l=V(s,m),u=Math.sign(m[0]-s[0])===a,d=vn(m,Math.min(n,6));return[{...e,...d},q(t,l),u]}function Et(e,t,n,r,o,i,a,s,m,l){const u=gn(e)||1,d=ee(wn(e,5)),c=ct(r,o);let h=bt(d,c,i);const[f,M]=at(a,{...e,...Qi},6,u,s,m,l),y=h-ee(V(f,M));let g=0;y&&Math.sign(y)!==u?t=$(f,h):(g+=u,h=bt(y,c,i),t=$(M,h));const p=En(h);return[{...e,...p,days:e.days+g},t,Boolean(g)]}function Tt(e,t,n,r,o,i,a,s,m,l){const u=gn(e),d=Ui[r],c=ea(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const h=z(e[d],o)*o;c[d]=h;const[f,M]=at(a,c,r,o*u,s,m,l),y=h+st(t,f,M)*u*o,g=bt(y,o,i),p=Math.sign(g-y)===u;return c[d]=g,[c,p?M:f,p]}function St(e,t,n,r){const[o,i,a,s]=(e=>{const t=xe(e=Ye(e));return[e.timeZone,...t]})(r),m=void 0!==o;return((e,t,n,r,o,i)=>{n=pt(n,o,r,1);const a=t.R(n);return Gt(Me(n,a),i)+(e?Lt(dt(a)):"Z")})(m,t(m?e(o):ns),n.epochNanoseconds,i,a,s)}function Dt(e,t,n){const[r,o,i,a,s,m]=(e=>{e=Ye(e);const t=Ya(e),n=Fe(e),r=Wa(e),o=Ua(e,4),i=Na(e,4);return[t,Za(e),r,o,...Le(i,n)]})(n);return((e,t,n,r,o,i,a,s,m,l)=>{r=pt(r,m,s,1);const u=e(n).R(r);return Gt(Me(r,u),l)+Lt(dt(u),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+e+"]":"")(n,i)+jt(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,m)}function zt(e,t){const[n,r,o,i]=(e=>(e=Ye(e),[Ya(e),...xe(e)]))(t);return a=e.calendar,s=n,m=i,Gt(lt(e,o,r),m)+jt(a,s);var a,s,m}function At(e,t){return n=e.calendar,r=e,o=Be(t),Ot(r)+jt(n,o);var n,r,o}function Ht(e,t){return Ct(e.calendar,Bt,e,Be(t))}function kt(e,t){return Ct(e.calendar,Nt,e,Be(t))}function It(e,t){const[n,r,o]=Ne(t);return i=o,xt(ut(e,r,n)[0],i);var i}function _t(e,t){const[n,r,o]=Ne(t,3);return r>1&&pn(e={...e,...Mt(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?yn(e):e,{hours:o,minutes:i}=r,[a,s]=te(wn(r,3),fi,D);bn(a);const m=Ft(s,t),l=t>=0||!n||m;return(n<0?"-":"")+"P"+Pt({Y:Zt(r.years),M:Zt(r.months),W:Zt(r.weeks),D:Zt(r.days)})+(o||i||a||l?"T"+Pt({H:Zt(o),M:Zt(i),S:Zt(a,l)+m}):"")})(e,o)}function Ct(e,t,n,r){const o=r>1||0===r&&e!==Ni;return 1===r?e===Ni?t(n):Ot(n):o?Ot(n)+Rt(e,2===r):t(n)}function Pt(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Gt(e,t){return Ot(e)+"T"+xt(e,t)}function Ot(e){return Bt(e)+"-"+si(e.isoDay)}function Bt(e){const{isoYear:t}=e;return(t<0||t>9999?Yt(t)+w(6,Math.abs(t)):w(4,t))+"-"+si(e.isoMonth)}function Nt(e){return si(e.isoMonth)+"-"+si(e.isoDay)}function xt(e,t){const n=[si(e.isoHour),si(e.isoMinute)];return-1!==t&&n.push(si(e.isoSecond)+((e,t,n,r)=>Ft(e*hi+t*ci+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Lt(e,t=0){if(1===t)return"";const[n,r]=T(Math.abs(e),yi),[o,i]=T(r,Mi),[a,s]=T(i,fi);return Yt(e)+si(n)+":"+si(o)+(a||s?":"+si(a)+Ft(s):"")}function jt(e,t){return 1!==t&&(t>1||0===t&&e!==Ni)?Rt(e,2===t):""}function Rt(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function Ft(e,t){let n=w(9,e);return n=void 0===t?n.replace(as,""):n.slice(0,t),n?"."+n:""}function Yt(e){return e<0?"-":"+"}function Zt(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Wt(e,t){const{epochNanoseconds:n}=e,r=(t.R?t:t(e.timeZone)).R(n),o=Me(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Ut(e,t,n,r=0,o=0,i,a){if(void 0!==n&&1===r&&(1===r||a))return de(t,n);const s=e.I(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=ue(t);r&&(n=dt(n));for(const t of e){let e=ee(V(t,o));if(r&&(e=dt(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(Uo)}return a?ue(t):qt(e,t,o,s)}function qt(e,t,n=0,r=e.I(t)){if(1===r.length)return r[0];if(1===n)throw new RangeError(qo);if(r.length)return r[3===n?1:0];const o=ue(t),i=((e,t)=>{const n=e.R($(t,-gi));return(e=>{if(e>gi)throw new RangeError(Wo);return e})(e.R($(t,gi))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.I(Me(o,a)))[2===n?0:r.length-1]}function $t(e,t){const n=e.I(t);if(n.length)return n[0];const r=$(ue(t),-gi);return e.O(r,1)}function Vt(e,t,n){return Ve(ie(q(t.epochNanoseconds,(e=>{if(Tn(e))throw new RangeError(Xo);return wn(e,5)})(e?yn(n):n))))}function Kt(e,t,n,r,o,i=Object.create(null)){const a=t(r.timeZone),s=e(r.calendar);return{...r,...tn(a,s,r,n?yn(o):o,i)}}function Jt(e,t,n,r,o=Object.create(null)){const{calendar:i}=n;return Je(nn(e(i),n,t?yn(r):r,o),i)}function Xt(e,t,n,r,o){const{calendar:i}=n;return Xe(rn(e(i),n,t?yn(r):r,o),i)}function Qt(e,t,n,r,o){const i=n.calendar,a=e(i);let s=re(on(a,n));t&&(r=Mn(r)),r.sign<0&&(s=a.P(s,{...Xi,months:1}),s=sn(s,-1));const m=a.P(s,r,o);return Qe(on(a,m),i)}function en(e,t,n){return tt(an(t,e?yn(n):n)[0])}function tn(e,t,n,r,o){const i=wn(r,5);let a=n.epochNanoseconds;if(Tn(r)){const s=ss(n,e);a=q(qt(e,{...rn(t,s,{...r,...Qi},o),...h(ta,s)}),i)}else a=q(a,i),Ce(o);return{epochNanoseconds:ie(a)}}function nn(e,t,n,r){const[o,i]=an(t,n);return oe({...rn(e,t,{...n,...Qi,days:n.days+i},r),...o})}function rn(e,t,n,r){if(n.years||n.months||n.weeks)return e.P(t,n,r);Ce(r);const o=n.days+wn(n,5)[0];return o?re(sn(t,o)):t}function on(e,t,n=1){return sn(t,n-e.day(t))}function an(e,t){const[n,r]=wn(t,5),[o,i]=se(ae(e)+r);return[o,n+i]}function sn(e,t){return t?{...e,...ye(le(e)+t*ui)}:e}function mn(e,t,n){const r=e(n.calendar);return cn(n)?[n,r,t(n.timeZone)]:[{...n,...sa},r]}function ln(e){return e?ot:ue}function un(e){return e?g(tn,e):nn}function dn(e){return e?g(sr,e):mr}function cn(e){return e&&e.epochNanoseconds}function hn(e,t){return e<=6-(cn(t)?1:0)}function fn(e,t,n,r,o,i,a){const s=e(Ye(a).relativeTo),m=Math.max(Sn(o),Sn(i));if(hn(m,s))return nt(pn(((e,t,n,r)=>{const o=q(wn(e),wn(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError($o);return{...Xi,...vn(o,n)}})(o,i,m,r)));if(!s)throw new RangeError(Jo);r&&(i=yn(i));const[l,u,d]=mn(t,n,s),c=un(d),h=dn(d),f=c(u,l,o);return nt(h(u,l,c(u,f,i),m))}function Mn(e){return nt(yn(e))}function yn(e){const t={};for(const n of Ui)t[n]=-1*e[n]||0;return t}function gn(e,t=Ui){let n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Ko);n=t}}return n}function pn(e){for(const t of Ki)n(t,e[t],-ms,ms,1);return bn(ee(wn(e),fi)),e}function bn(e){if(!Number.isSafeInteger(e))throw new RangeError(Vo)}function wn(e,t=6){return k(e,t,Ui)}function vn(e,t=6){const[n,r]=e,o=I(r,t,Ui);if(o[Ui[t]]+=n*(gi/pi[t]),!Number.isFinite(o[Ui[t]]))throw new RangeError($o);return o}function En(e,t=5){return I(e,t,Ui)}function Tn(e){return Boolean(gn(e,Vi))}function Sn(e){let t=9;for(;t>0&&!e[Ui[t]];t--);return t}function Dn(e,t){return[e,t]}function zn(e){const t=Math.floor(e/rs)*rs;return[t,t+rs]}function An(e){const t=Nn(e);if(void 0===t)throw new RangeError(ti(e));return t}function Hn(e,t,n){let r=Gn(Yi(e));if(!r||r.j)throw new RangeError(ti(e));return t?r.calendar===Ni&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...sa}:{...r,isoDay:1,...sa}):n&&r.calendar===Ni&&(r={...r,isoYear:pa}),Xe(r.C?_n(r):Cn(r))}function kn(e){if(e.calendar!==Ni)throw new RangeError(ni(e.calendar))}function In(e,t,n=0,r=0){const o=Wn(e.timeZone),i=ls(o);let a;return Ae(e),a=e.C?Ut(i,e,t,n,r,!i.$,e.j):$t(i,e),Ke(a,o,Yr(e.calendar))}function _n(e){return Pn(oe(Ae(e)))}function Cn(e){return Pn(re(He(e)))}function Pn(e){return{...e,calendar:Yr(e.calendar)}}function Gn(e){const t=Es.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:xn(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Ln(e.slice(5)),...jn(e[16]),C:Boolean(e[6]),j:n,offset:n?void 0:t}})(t):void 0}function On(e){const t=ws.exec(e);return t?(e=>({isoYear:xn(e),isoMonth:parseInt(e[4]),isoDay:1,...jn(e[5])}))(t):void 0}function Bn(e){const t=vs.exec(e);return t?(e=>({isoYear:pa,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...jn(e[3])}))(t):void 0}function Nn(e,t){const n=Ss.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(ni(n));return(e=>{if(Math.abs(e)>=gi)throw new RangeError(Zo);return e})((Zn(e[2])*yi+Zn(e[3])*Mi+Zn(e[4])*fi+Rn(e[5]||""))*Yn(e[1]))})(n,t):void 0}function xn(e){const t=Yn(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(ni(-0));return t*n}function Ln(e){const t=Zn(e[3]);return{...se(Rn(e[4]||""))[0],isoHour:Zn(e[1]),isoMinute:Zn(e[2]),isoSecond:60===t?59:t}}function jn(e){let t,n;const r=[];if(e.replace(Ds,(e,o,i)=>{const a=Boolean(o),[s,m]=i.split("=").reverse();if(m){if("u-ca"===m)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(m))throw new RangeError(ni(e))}else{if(n)throw new RangeError(ni(e));n=s}return""}),r.length>1&&t)throw new RangeError(ni(e));return{timeZone:n,calendar:r[0]||Ni}}function Rn(e){return parseInt(e.padEnd(9,"0"))}function Fn(e){return new RegExp(`^${e}$`,"i")}function Yn(e){return e&&"+"!==e?-1:1}function Zn(e){return void 0===e?0:parseInt(e)}function Wn(e){const t=qn(e);return"number"==typeof t?Lt(t):t?(e=>{if(ks.test(e))throw new RangeError(Ro(e));if(Hs.test(e))throw new RangeError(Yo);return e.toLowerCase().split("/").map((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?p(e).replace(/island|noronha|murdo|rivadavia|urville/,p):e)).join("/")})(e):ns}function Un(e){const t=qn(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:ns}function qn(e){const t=Nn(e=e.toUpperCase(),1);return void 0!==t?t:e!==ns?As(e):void 0}function $n(e,t){return K(e.epochNanoseconds,t.epochNanoseconds)}function Vn(e,t){return K(e.epochNanoseconds,t.epochNanoseconds)}function Kn(e,t){return Jn(e,t)||Xn(e,t)}function Jn(e,t){return v(le(e),le(t))}function Xn(e,t){return v(ae(e),ae(t))}function Qn(e,t){if(e===t)return 1;try{return Un(e)===Un(t)}catch(e){}}function er(e,t,n,r){const o=Ge(e,r,3,5),i=dr(t.epochNanoseconds,n.epochNanoseconds,...o);return nt(e?yn(i):i)}function tr(e,t,n,r,o,i){const a=yr(r.calendar,o.calendar),[s,m,l,u]=Ge(n,i,5),d=r.epochNanoseconds,c=o.epochNanoseconds,h=K(c,d);let f;if(h)if(s<6)f=dr(d,c,s,m,l,u);else{const n=t(((e,t)=>{if(!Qn(e,t))throw new RangeError(Fo);return e})(r.timeZone,o.timeZone)),d=e(a);f=lr(d,n,r,o,h,s,i),f=yt(f,c,s,m,l,u,d,r,ot,g(tn,n))}else f=Xi;return nt(n?yn(f):f)}function nr(e,t,n,r,o){const i=yr(n.calendar,r.calendar),[a,s,m,l]=Ge(t,o,6),u=ue(n),d=ue(r),c=K(d,u);let h;if(c)if(a<=6)h=dr(u,d,a,s,m,l);else{const t=e(i);h=ur(t,n,r,c,a,o),h=yt(h,d,a,s,m,l,t,n,ue,nn)}else h=Xi;return nt(t?yn(h):h)}function rr(e,t,n,r,o){const i=yr(n.calendar,r.calendar);return ir(t,()=>e(i),n,r,...Ge(t,o,6,9,6))}function or(e,t,n,r,o){const i=yr(n.calendar,r.calendar),a=Ge(t,o,9,9,8),s=e(i),m=on(s,n),l=on(s,r);return m.isoYear===l.isoYear&&m.isoMonth===l.isoMonth&&m.isoDay===l.isoDay?nt(Xi):ir(t,()=>s,re(m),re(l),...a,8)}function ir(e,t,n,r,o,i,a,s,m=6){const l=ue(n),u=ue(r);if(void 0===l||void 0===u)throw new RangeError($o);let d;if(K(u,l))if(6===o)d=dr(l,u,o,i,a,s);else{const e=t();d=e.N(n,r,o),i===m&&1===a||(d=yt(d,u,o,i,a,s,e,n,ue,rn))}else d=Xi;return nt(e?yn(d):d)}function ar(e,t,n,r){const[o,i,a,s]=Ge(e,r,5,5),m=bt(Mr(t,n),ct(i,a),s),l={...Xi,...En(m,o)};return nt(e?yn(l):l)}function sr(e,t,n,r,o,i){const a=K(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?cr(n.epochNanoseconds,r.epochNanoseconds,o):lr(t,e,n,r,a,o,i):Xi}function mr(e,t,n,r,o){const i=ue(t),a=ue(n),s=K(a,i);return s?r<=6?cr(i,a,r):ur(e,t,n,s,r,o):Xi}function lr(e,t,n,r,o,i,a){const[s,m,l]=((e,t,n,r)=>{function o(){return d={...sn(s,l++*-r),...a},c=qt(e,d),K(m,c)===-r}const i=ss(t,e),a=h(ta,i),s=ss(n,e),m=n.epochNanoseconds;let l=0;const u=Mr(i,s);let d,c;if(Math.sign(u)===-r&&l++,o()&&(-1===r||o()))throw new RangeError(xo);const f=ee(V(c,m));return[i,d,f]})(t,n,r,o);var u,d;return{...6===i?(u=s,d=m,{...Xi,days:hr(u,d)}):e.N(s,m,i,a),...En(l)}}function ur(e,t,n,r,o,i){const[a,s,m]=((e,t,n)=>{let r=t,o=Mr(e,t);return Math.sign(o)===-n&&(r=sn(t,-n),o+=gi*n),[e,r,o]})(t,n,r);return{...e.N(a,s,o,i),...En(m)}}function dr(e,t,n,r,o,i){return{...Xi,...vn(gt(V(e,t),r,o,i),n)}}function cr(e,t,n){return{...Xi,...vn(V(e,t),n)}}function hr(e,t){return fr(le(e),le(t))}function fr(e,t){return Math.trunc((t-e)/ui)}function Mr(e,t){return ae(t)-ae(e)}function yr(e,t){if(e!==t)throw new RangeError(jo);return e}function gr(e){return this.m(e)[0]}function pr(e){return this.m(e)[1]}function br(e){const[t]=this.v(e);return fr(this.p(t),le(e))+1}function wr(e){const t=Is.exec(e);if(!t)throw new RangeError(Go(e));return[parseInt(t[1]),Boolean(t[2])]}function vr(e,t){return"M"+si(e)+(t?"L":"")}function Er(e,t,n){return e+(t||n&&e>=n?1:0)}function Tr(e,t){return e-(t&&e>=t?1:0)}function Sr(e,t){return(t+e)*(Math.sign(t)||1)||0}function Dr(e){return ji[Ar(e)]}function zr(e){return Fi[Ar(e)]}function Ar(e){return Zr(e.id||Ni)}function Hr(e){function t(e){return((e,t)=>({..._r(e,t),o:e.month,day:parseInt(e.day)}))(ge(n,e),r)}const n=Cs(e),r=Zr(e);return{id:e,h:kr(t),l:Ir(t)}}function kr(e){return o(t=>{const n=le(t);return e(n)},WeakMap)}function Ir(e){const t=e(0).year-ga;return o(n=>{let r,o=he(n-t),i=0;const a=[],s=[];do{o+=400*ui}while((r=e(o)).year<=n);do{if(o+=(1-r.day)*ui,r.year===n&&(a.push(o),s.push(r.o)),o-=ui,++i>100||o<-ua)throw new RangeError(xo)}while((r=e(o)).year>=n);return{i:a.reverse(),u:ii(s.reverse())}})}function _r(e,t){let n,r,o=Cr(e);if(e.era){const i=ji[t],a=Ri[t]||{};void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"===n||"a"===n?n="ce":"beforeroc"===n&&(n="broc"),n=a[n]||n,r=o,o=Sr(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function Cr(e){return parseInt(e.relatedYear||e.year)}function Pr(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Gr(e,t=1,n=1){return this.l(e).i[t-1]+(n-1)*ui}function Or(e,t){const n=Br.call(this,e);return[Tr(t,n),n===t]}function Br(e){const t=Rr(this,e),n=Rr(this,e-1),r=t.length;if(r>n.length){const e=zr(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Nr(e){return fr(Gr.call(this,e),Gr.call(this,e+1))}function xr(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),fr(n[t-1],o[r-1])}function Lr(e){return this.l(e).i.length}function jr(e){const t=this.h(e);return[t.era,t.eraYear]}function Rr(e,t){return Object.keys(e.l(t).u)}function Fr(e){return Yr(Yi(e))}function Yr(e){if((e=e.toLowerCase())!==Ni&&e!==xi){const t=Cs(e).resolvedOptions().calendar;if(Zr(e)!==Zr(t))throw new RangeError(Lo(e));return t}return e}function Zr(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function Wr(e,t){return n=>n===Ni?e:n===xi||n===Li?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),_s(n))}function Ur(e,t,n,r){const o=qr(n,r,Pi,[],Si);if(void 0!==o.timeZone){const r=n.F(o),i=Vr(o),a=e(o.timeZone);return{epochNanoseconds:Ut(t(a),{...r,...i},void 0!==o.offset?An(o.offset):void 0),timeZone:a}}return{...n.F(o),...sa}}function qr(e,t,n,r=[],o=[]){return $r(t,[...e.fields(n),...o].sort(),r)}function $r(e,t,n,r=!n){const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(Do(r));if("constructor"===r||"__proto__"===r)throw new RangeError(So(r));let t=e[r];if(void 0!==t)a=1,Ys[r]&&(t=Ys[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(To(r));o[r]=Bi[r]}i=r}if(r&&!a)throw new TypeError(zo(t));return o}function Vr(e,t){return _e(Zs({...Bi,...e}),t)}function Kr(e,t,n,r,o){t=h(n=e.fields(n),t),r=$r(r,o=e.fields(o),[]);let i=e.k(t,r);return i=$r(i,[...n,...o].sort(),[]),e.F(i)}function Jr(e,t){const n=Dr(e),r=Ri[e.id||""]||{};let{era:o,eraYear:i,year:a}=t;if(void 0!==o||void 0!==i){if(void 0===o||void 0===i)throw new TypeError(Io);if(!n)throw new RangeError(ko);const e=n[r[o]||o];if(void 0===e)throw new RangeError(Co(o));const t=Sr(i,e);if(void 0!==a&&a!==t)throw new RangeError(_o);a=t}else if(void 0===a)throw new TypeError(Po(n));return a}function Xr(e,t,r,o){let{month:i,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.L(n),[i,a]=wr(t);let s=Er(i,a,o);if(a){const t=zr(e);if(void 0===t)throw new RangeError(No);if(t>0){if(s>t)throw new RangeError(No);if(void 0===o){if(1===r)throw new RangeError(No);s--}}else{if(s!==-t)throw new RangeError(No);if(void 0===o&&1===r)throw new RangeError(No)}}return s})(e,a,r,o);if(void 0!==i&&i!==t)throw new RangeError(Oo);i=t,o=1}else if(void 0===i)throw new TypeError(Bo);return n("month",i,1,e.B(r),o)}function Qr(e,n,r,o,i){return t(n,"day",1,e.U(o,r),i)}function eo(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function to(e){const t=Rs(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{year:n,monthCode:vr(i,a),day:o}}function no(e,t){return Je(ss(t,e))}function ro(e,t){return Xe(ss(t,e))}function oo(e,t){return tt(ss(t,e))}function io(e,t,n){const r=new Set(n);return(o,i)=>{const a=n&&f(o,n);if(!f(o=((e,t)=>{const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n})(r,o),e)){if(i&&a)throw new TypeError("Invalid formatting options");o={...t,...o}}return n&&(o.timeZone=ns,["full","long"].includes(o.J)&&(o.J="medium")),o}}function ao(e,t=so,n=0){const[r,,,o]=e;return(i,a=vm,...s)=>{const m=t(o&&o(...s),i,a,r,n),l=m.resolvedOptions();return[m,...mo(e,l,s)]}}function so(e,t,n,r,o){if(n=r(n,o),e){if(void 0!==n.timeZone)throw new TypeError(oi);n.timeZone=e}return new Ma(t,n)}function mo(e,t,n){const[,r,o]=e;return n.map(e=>(e.calendar&&((e,t,n)=>{if((n||e!==Ni)&&e!==t)throw new RangeError(jo)})(e.calendar,t.calendar,o),r(e,t)))}function lo(e,t){return{...e,calendar:t}}function uo(e){const t=co();return Me(t,e.R(t))}function co(){return Q(Date.now(),hi)}function ho(){return Im||(Im=(new Ma).resolvedOptions().timeZone)}const fo=(e,t)=>`Non-integer ${e}: ${t}`,Mo=(e,t)=>`Non-positive ${e}: ${t}`,yo=(e,t)=>`Non-finite ${e}: ${t}`,go=e=>`Cannot convert bigint to ${e}`,po=e=>`Invalid bigint: ${e}`,bo="Cannot convert Symbol to string",wo="Invalid object",vo=(e,t,n,r,o)=>o?vo(e,o[t],o[n],o[r]):Eo(e,t)+`; must be between ${n}-${r}`,Eo=(e,t)=>`Invalid ${e}: ${t}`,To=e=>`Missing ${e}`,So=e=>`Invalid field ${e}`,Do=e=>`Duplicate field ${e}`,zo=e=>"No valid fields: "+e.join(),Ao=(e,t,n)=>Eo(e,t)+"; must be "+Object.keys(n).join(),Ho="Invalid calling context",ko="Forbidden era/eraYear",Io="Mismatching era/eraYear",_o="Mismatching year/eraYear",Co=e=>`Invalid era: ${e}`,Po=e=>"Missing year"+(e?"/era/eraYear":""),Go=e=>`Invalid monthCode: ${e}`,Oo="Mismatching month/monthCode",Bo="Missing month/monthCode",No="Invalid leap month",xo="Invalid protocol results",Lo=e=>Eo("Calendar",e),jo="Mismatching Calendars",Ro=e=>Eo("TimeZone",e),Fo="Mismatching TimeZones",Yo="Forbidden ICU TimeZone",Zo="Out-of-bounds offset",Wo="Out-of-bounds TimeZone gap",Uo="Invalid TimeZone offset",qo="Ambiguous offset",$o="Out-of-bounds date",Vo="Out-of-bounds duration",Ko="Cannot mix duration signs",Jo="Missing relativeTo",Xo="Cannot use large units",Qo="Required smallestUnit or largestUnit",ei="smallestUnit > largestUnit",ti=e=>`Cannot parse: ${e}`,ni=e=>`Invalid substring: ${e}`,ri="Mismatching types for formatting",oi="Cannot specify TimeZone",ii=g(d,(e,t)=>t),ai=g(d,(e,t,n)=>n),si=g(w,2),mi={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},li=Object.keys(mi),ui=864e5,di=1e3,ci=1e3,hi=1e6,fi=1e9,Mi=6e10,yi=36e11,gi=864e11,pi=[1,ci,hi,fi,Mi,yi,gi],bi=li.slice(0,6),wi=b(bi),vi=["offset"],Ei=["timeZone"],Ti=bi.concat(vi),Si=Ti.concat(Ei),Di=["era","eraYear"],zi=Di.concat(["year"]),Ai=["year"],Hi=["monthCode"],ki=["month"].concat(Hi),Ii=["day"],_i=ki.concat(Ai),Ci=Hi.concat(Ai),Pi=Ii.concat(_i),Gi=Ii.concat(ki),Oi=Ii.concat(Hi),Bi=ai(bi,0),Ni="iso8601",xi="gregory",Li="japanese",ji={[xi]:{"gregory-inverse":-1,gregory:0},[Li]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Ri={[xi]:{bce:"gregory-inverse",ce:"gregory"},[Li]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Fi={chinese:13,dangi:13,hebrew:-6},Yi=g(B,"string"),Zi=g(B,"boolean"),Wi=g(B,"number"),Ui=li.map(e=>e+"s"),qi=b(Ui),$i=Ui.slice(0,6),Vi=Ui.slice(6),Ki=Vi.slice(1),Ji=ii(Ui),Xi=ai(Ui,0),Qi=ai($i,0),ea=g(y,Ui),ta=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],na=["isoDay","isoMonth","isoYear"],ra=ta.concat(na),oa=b(na),ia=b(ta),aa=b(ra),sa=ai(ia,0),ma=g(y,ra),la=1e8,ua=la*ui,da=[la,0],ca=[-la,0],ha=275760,fa=-271821,Ma=Intl.DateTimeFormat,ya="en-GB",ga=1970,pa=1972,ba=12,wa=he(1868,9,8),va=o(ze,WeakMap),Ea="smallestUnit",Ta="unit",Sa="roundingIncrement",Da="fractionalSecondDigits",za="relativeTo",Aa="direction",Ha={constrain:0,reject:1},ka=Object.keys(Ha),Ia={compatible:0,reject:1,earlier:2,later:3},_a={reject:0,use:1,prefer:2,ignore:3},Ca={auto:0,never:1,critical:2,always:3},Pa={auto:0,never:1,critical:2},Ga={auto:0,never:1},Oa={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Ba={previous:-1,next:1},Na=g(Ue,Ea),xa=g(Ue,"largestUnit"),La=g(Ue,Ta),ja=g(qe,"overflow",Ha),Ra=g(qe,"disambiguation",Ia),Fa=g(qe,"offset",_a),Ya=g(qe,"calendarName",Ca),Za=g(qe,"timeZoneName",Pa),Wa=g(qe,"offset",Ga),Ua=g(qe,"roundingMode",Oa),qa="PlainYearMonth",$a="PlainMonthDay",Va="PlainDate",Ka="PlainDateTime",Ja="PlainTime",Xa="ZonedDateTime",Qa="Instant",es="Duration",ts=[Math.floor,e=>H(e)?Math.floor(e):Math.round(e),Math.ceil,e=>H(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>H(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>H(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ns="UTC",rs=5184e3,os=ce(1847),is=ce((new Date).getUTCFullYear()+10),as=/0+$/,ss=o(Wt,WeakMap),ms=2**32-1,ls=o(e=>{const t=qn(e);return"object"==typeof t?new ds(t):new us(t||0)});class us{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const t=ue({...e,...sa});if(!t||Math.abs(t[0])>1e8)throw new RangeError($o)})(e),[de(e,this.$)]}O(){}}class ds{constructor(e){this.nn=(e=>{function t(e){const t=E(e,a,s),[o,m]=zn(t),l=r(o),u=r(m);return l===u?l:n(i(o,m),l,u,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=o(e),i=o(Dn);let a=os,s=is;return{tn(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},rn:t,O(e,t){const o=E(e,a,s);let[m,l]=zn(o);const u=rs*t,d=t<0?()=>l>a||(a=o,0):()=>m<s||(s=o,0);for(;d();){const o=r(m),a=r(l);if(o!==a){const r=i(m,l);n(r,o,a);const s=r[0];if((v(s,e)||1)===t)return s}m+=u,l+=u}}}})((e=>t=>{const n=ge(e,t*di);return ce(Cr(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}R(e){return this.nn.rn((e=>me(e)[0])(e))*fi}I(e){const[t,n]=[ce((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*hi+r.isoMicrosecond*ci+r.isoNanosecond];var r;return this.nn.tn(t).map(e=>ie($(Q(e,fi),n)))}O(e,t){const[n,r]=me(e),o=this.nn.O(n+(t>0||r?1:0),t);if(void 0!==o)return Q(o,fi)}}const cs="([+-])",hs="(?:[.,](\\d{1,9}))?",fs=`(?:(?:${cs}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Ms="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+hs+")?)?",ys=cs+Ms,gs=fs+"-?(\\d{2})(?:[T ]"+Ms+"(Z|"+ys+")?)?",ps="\\[(!?)([^\\]]*)\\]",bs=`((?:${ps}){0,9})`,ws=Fn(fs+bs),vs=Fn("(?:--)?(\\d{2})-?(\\d{2})"+bs),Es=Fn(gs+bs),Ts=Fn("T?"+Ms+"(?:"+ys+")?"+bs),Ss=Fn(ys),Ds=new RegExp(ps,"g"),zs=Fn(`${cs}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${hs}H)?(?:(\\d+)${hs}M)?(?:(\\d+)${hs}S)?)?`),As=o(e=>new Ma(ya,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),Hs=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,ks=/[^\w\/:+-]+/,Is=/^M(\d{2})(L?)$/,_s=o(Hr),Cs=o(e=>new Ma(ya,{calendar:e,timeZone:ns,era:"short",year:"numeric",month:"short",day:"numeric"})),Ps={P(e,t,r){const o=Ce(r);let i,{years:a,months:s,weeks:m,days:l}=t;if(l+=wn(t,5)[0],a||s)i=((e,t,r,o,i)=>{let[a,s,m]=e.v(t);if(r){const[t,o]=e.q(a,s);a+=r,s=Er(t,o,e.L(a)),s=n("month",s,1,e.B(a),i)}return o&&([a,s]=e.un(a,s,o)),m=n("day",m,1,e.U(a,s),i),e.p(a,s,m)})(this,e,a,s,o);else{if(!m&&!l)return e;i=le(e)}if(void 0===i)throw new RangeError($o);return i+=(7*m+l)*ui,re(ye(i))},N(e,t,n){if(n<=7){let r=0,o=hr({...e,...sa},{...t,...sa});return 7===n&&([r,o]=D(o,7)),{...Xi,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,m=i-n,l=a-r;if(s||m){const u=Math.sign(s||m);let d=e.U(o,i),c=0;if(Math.sign(l)===-u){const r=d;[o,i]=e.un(o,i,-u),s=o-t,m=i-n,d=e.U(o,i),c=u<0?-r:d}if(l=a-Math.min(r,d)+c,s){const[r,a]=e.q(t,n),[l,d]=e.q(o,i);if(m=l-r||Number(d)-Number(a),Math.sign(m)===-u){const n=u<0&&-e.B(o);s=(o-=u)-t,m=i-Er(r,a,e.L(o))+(n||e.B(o))}}}return[s,m,l]})(this,...r,...o);return 8===n&&(a+=this.cn(i,r[0]),i=0),{...Xi,years:i,months:a,days:s}},F(e,t){const n=Ce(t),r=Jr(this,e),o=Xr(this,e,r,n),i=Qr(this,e,o,r,n);return Xe(re(this.V(r,o,i)),this.id||Ni)},K(e,t){const n=Ce(t),r=Jr(this,e),o=Xr(this,e,r,n);return Qe(ne(this.V(r,o,1)),this.id||Ni)},_(e,t){const n=Ce(t);let r,o,i,a=void 0!==e.eraYear||void 0!==e.year?Jr(this,e):void 0;const s=!this.id;if(void 0===a&&s&&(a=pa),void 0!==a){const t=Xr(this,e,a,n);r=Qr(this,e,t,a,n);const s=this.L(a);o=Tr(t,s),i=t===s}else{if(void 0===e.monthCode)throw new TypeError(Bo);if([o,i]=wr(e.monthCode),this.id&&this.id!==xi&&this.id!==Li)if(this.id&&"coptic"===Zr(this.id)&&0===n){const t=i||13!==o?30:6;r=e.day,r=E(r,1,t)}else if(this.id&&"chinese"===Zr(this.id)&&0===n){const t=!i||1!==o&&9!==o&&10!==o&&11!==o&&12!==o?30:29;r=e.day,r=E(r,1,t)}else r=e.day;else r=Qr(this,e,Xr(this,e,pa,n),pa,n)}const m=this.G(o,i,r);if(!m)throw new RangeError("Cannot guess year");const[l,u]=m;return et(re(this.V(l,u,r)),this.id||Ni)},fields(e){return Dr(this)&&e.includes("year")?[...e,...Di]:e},k(e,t){const n=Object.assign(Object.create(null),e);return eo(n,t,ki),Dr(this)&&(eo(n,t,zi),this.id===Li&&eo(n,t,Gi,Di)),n},inLeapYear(e){const[t]=this.v(e);return this.sn(t)},monthsInYear(e){const[t]=this.v(e);return this.B(t)},daysInMonth(e){const[t,n]=this.v(e);return this.U(t,n)},daysInYear(e){const[t]=this.v(e);return this.fn(t)},dayOfYear:br,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.q(t,n);return vr(r,o)},dayOfWeek:Se,daysInWeek:()=>7},Gs={v:pe,hn:De,q:be},Os={dayOfYear:br,v:pe,p:he},Bs=Object.assign({},Os,{weekOfYear:gr,yearOfWeek:pr,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Ee(c+e),r=e||1,o=t(S(m+n*r,7));return u=(n+(o-l)*r)/7}const r=this.id?1:4,o=Se(e),i=this.dayOfYear(e),a=S(o-1,7),s=i-1,m=S(a-s,7),l=t(m);let u,d=Math.floor((s-l)/7)+1,c=e.isoYear;return d?d>n(0)&&(d=1,c++):(d=n(-1),c--),[d,c,u]}}),Ns=Object.assign({},Ps,Bs,{v:pe,hn:De,q:be,G(e,t){if(!t)return[pa,e]},sn:Te,L(){},B:we,cn:e=>e*ba,U:ve,fn:Ee,V:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:he,un:(e,t,n)=>(e+=z(n,ba),(t+=A(n,ba))<1?(e--,t+=ba):t>ba&&(e++,t-=ba),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),xs={v:Pr,hn:jr,q:Or},Ls={dayOfYear:br,v:Pr,p:Gr,weekOfYear:gr,yearOfWeek:pr,m:()=>[]},js=Object.assign({},Ps,Ls,{v:Pr,hn:jr,q:Or,G(e,t,n){const r=this.id&&"chinese"===Zr(this.id)?((e,t,n)=>{if(t)switch(e){case 1:return 1651;case 2:return n<30?1947:1765;case 3:return n<30?1966:1955;case 4:return n<30?1963:1944;case 5:return n<30?1971:1952;case 6:return n<30?1960:1941;case 7:return n<30?1968:1938;case 8:return n<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,t,n):pa;let[o,i,a]=Pr.call(this,{isoYear:r,isoMonth:ba,isoDay:31});const s=Br.call(this,o),m=i===s;1===(v(e,Tr(i,s))||v(Number(t),Number(m))||v(n,a))&&o--;for(let r=0;r<100;r++){const i=o-r,a=Br.call(this,i),s=Er(e,t,a);if(t===(s===a)&&n<=xr.call(this,i,s))return[i,s]}},sn(e){const t=Nr.call(this,e);return t>Nr.call(this,e-1)&&t>Nr.call(this,e+1)},L:Br,B:Lr,cn(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=Lr.call(this,e+o);return i},U:xr,fn:Nr,V(e,t,n){return ye(Gr.call(this,e,t,n))},p:Gr,un(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError($o);if(n<0)for(;t<1;)t+=Lr.call(this,--e);else{let n;for(;t>(n=Lr.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}}),Rs=Wr(Gs,xs),Fs=Wr(Ns,js),Ys={...{era:j,eraYear:Y,year:Y,month:W,monthCode(e){const t=j(e);return wr(t),t},day:W},...ai(bi,Y),...ai(Ui,Z),offset(e){const t=j(e);return An(t),t}},Zs=g(c,bi,ta),Ws=g(c,ta,bi),Us="numeric",qs=["timeZoneName"],$s={month:Us,day:Us},Vs={year:Us,month:Us},Ks=Object.assign({},Vs,{day:Us}),Js={hour:Us,minute:Us,second:Us},Xs=Object.assign({},Ks,Js),Qs=Object.assign({},Xs,{timeZoneName:"short"}),em=Object.keys(Vs),tm=Object.keys($s),nm=Object.keys(Ks),rm=Object.keys(Js),om=["dateStyle"],im=em.concat(om),am=tm.concat(om),sm=nm.concat(om,["weekday"]),mm=rm.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),lm=sm.concat(mm),um=qs.concat(mm),dm=qs.concat(sm),cm=qs.concat(["day","weekday"],mm),hm=qs.concat(["year","weekday"],mm),fm=io(lm,Xs),Mm=io(lm,Qs),ym=io(lm,Xs,qs),gm=io(sm,Ks,um),pm=io(mm,Js,dm),bm=io(im,Vs,cm),wm=io(am,$s,hm),vm={},Em=new Ma(void 0,{calendar:Ni}).resolvedOptions().calendar===Ni,Tm=[fm,rt],Sm=[Mm,rt,0,(e,t)=>{const n=e.timeZone;if(t&&t.timeZone!==n)throw new RangeError(Fo);return n}],Dm=[ym,le],zm=[gm,le],Am=[pm,e=>ae(e)/hi],Hm=[bm,le,Em],km=[wm,le,Em];let Im;function _m(e,t,n,r,o){function l(...e){if(!(this instanceof l))throw new TypeError(Ho);rl(this,t(...e))}function d(e,t){return Object.defineProperties(function(...t){return e.call(this,c(this),...t)},i(t))}function c(t){const n=nl(t);if(!n||n.branding!==e)throw new TypeError(Ho);return n}return Object.defineProperties(l.prototype,{...s(u(d,n)),...a(u(d,r)),...m("Temporal."+e)}),Object.defineProperties(l,{...a(o),...i(e)}),[l,e=>{const t=Object.create(l.prototype);return rl(t,e),t},c]}function Cm(e){if(nl(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Pm(e){return Gm(e)||Ni}function Gm(e){const{calendar:t}=e;if(void 0!==t)return Om(t)}function Om(e){if(r(e)){const{calendar:t}=nl(e)||{};if(!t)throw new TypeError(Lo(e));return t}return(e=>Yr(function(e){const t=Gn(e)||On(e)||Bn(e);return t?t.calendar:e}(Yi(e))))(e)}function Bm(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return Fs(t)[n](e)};return t}function Nm(){throw new TypeError("Cannot use valueOf")}function xm(e){if(r(e)){const{timeZone:t}=nl(e)||{};if(!t)throw new TypeError(Ro(e));return t}return(e=>Wn(function(e){const t=Gn(e);return t&&(t.timeZone||t.j&&ns||t.offset)||e}(Yi(e))))(e)}function Lm(e){if(r(e)){const t=nl(e);return t&&t.branding===es?t:function(e){const t=$r(e,qi);return nt(pn({...Xi,...t}))}(e)}return function(e){const t=(e=>{const t=zs.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=T(o,pi[i])),void 0!==e){if(r)throw new RangeError(ni(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(ni(e));return t})(e),n=1,t&&(o=Rn(t)*(pi[i]/fi),r=1)}return a+s}let n=0,r=0,o=0,i={...l(Ui,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...I(o,2,Ui)};if(!n)throw new RangeError(zo(Ui));return Yn(e[1])<0&&(i=yn(i)),i})(t):void 0})(Yi(e));if(!t)throw new RangeError(ti(e));return nt(pn(t))}(e)}function jm(e){if(void 0!==e){if(r(e)){const t=nl(e)||{};switch(t.branding){case Xa:case Va:return t;case Ka:return Xe(t)}const n=Pm(e);return{...Ur(xm,ls,Fs(n),e),calendar:n}}return function(e){const t=Gn(Yi(e));if(!t)throw new RangeError(ti(e));if(t.timeZone)return In(t,t.offset?An(t.offset):void 0);if(t.j)throw new RangeError(ti(e));return Cn(t)}(e)}}function Rm(e,t){if(r(e)){const n=nl(e)||{};switch(n.branding){case Ja:return Ce(t),n;case Ka:return Ce(t),tt(n);case Xa:return Ce(t),oo(ls,n)}return function(e,t){return tt(Vr($r(e,wi,[],1),Ce(t)))}(e,t)}const n=function(e){let t,n=(e=>{const t=Ts.exec(e);return t?(jn(t[10]),Ln(t)):void 0})(Yi(e));if(!n){if(n=Gn(e),!n)throw new RangeError(ti(e));if(!n.C)throw new RangeError(ti(e));if(n.j)throw new RangeError(ni("Z"));kn(n)}if((t=On(e))&&ke(t))throw new RangeError(ti(e));if((t=Bn(e))&&ke(t))throw new RangeError(ti(e));return tt(_e(n,1))}(e);return Ce(t),n}function Fm(e){return void 0===e?void 0:Rm(e)}function Ym(e,t){if(r(e)){const n=nl(e)||{};switch(n.branding){case Ka:return Ce(t),n;case Va:return Ce(t),Je({...n,...sa});case Xa:return Ce(t),no(ls,n)}return function(e,t,n){const r=qr(e,t,Pi,[],bi),o=Ce(n);return Je(oe({...e.F(r,We(o)),...Vr(r,o)}))}(Fs(Pm(e)),e,t)}const n=function(e){const t=Gn(Yi(e));if(!t||t.j)throw new RangeError(ti(e));return Je(_n(t))}(e);return Ce(t),n}function Zm(e,t){if(r(e)){const n=nl(e);if(n&&n.branding===$a)return Ce(t),n;const r=Gm(e);return function(e,t,n,r){const o=qr(e,n,Pi,Ii);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=pa),e._(o,r)}(Fs(r||Ni),!r,e,t)}const n=function(e,t){const n=Bn(Yi(t));if(n)return kn(n),et(He(n));const r=Hn(t,0,1),{calendar:o}=r,i=e(o),[a,s,m]=i.v(r),[l,u]=i.q(a,s),[d,c]=i.G(l,u,m);return et(re(i.V(d,c,m)),o)}(Fs,e);return Ce(t),n}function Wm(e,t){if(r(e)){const n=nl(e);return n&&n.branding===qa?(Ce(t),n):function(e,t,n,r){const o=qr(e,t,_i,r);return e.K(o,n)}(Fs(Pm(e)),e,t)}const n=function(e,t){const n=On(Yi(t));if(n)return kn(n),Qe(ne(He(n)));const r=Hn(t,1);return Qe(on(e(r.calendar),r))}(Fs,e);return Ce(t),n}function Um(e,t){if(r(e)){const n=nl(e)||{};switch(n.branding){case Va:return Ce(t),n;case Ka:return Ce(t),Xe(n);case Xa:return Ce(t),ro(ls,n)}return function(e,t,n,r=[]){const o=qr(e,t,Pi,r);return e.F(o,n)}(Fs(Pm(e)),e,t)}const n=Hn(e);return Ce(t),n}function qm(e,t){if(r(e)){const n=nl(e);if(n&&n.branding===Xa)return Pe(t),n;const r=Pm(e);return function(e,t,n,r,o,i){const a=qr(n,o,Pi,Ei,Si),s=e(a.timeZone),[m,l,u]=Pe(i),d=n.F(a,We(m)),c=Vr(a,m);return Ke(Ut(t(s),{...d,...c},void 0!==a.offset?An(a.offset):void 0,l,u),s,r)}(xm,ls,Fs(r),r,e,t)}return function(e,t){const n=Gn(Yi(e));if(!n||!n.timeZone)throw new RangeError(ti(e));const{offset:r}=n,o=r?An(r):void 0,[,i,a]=Pe(t);return In(n,o,i,a)}(e,t)}function $m(e){return u(e=>t=>e(Vm(t)),e)}function Vm(e){return ss(e,ls)}function Km(e){if(r(e)){const t=nl(e);if(t)switch(t.branding){case Qa:return t;case Xa:return Ve(t.epochNanoseconds)}}return function(e){const t=Gn(e=j(e));if(!t)throw new RangeError(ti(e));let n;if(t.j)n=0;else{if(!t.offset)throw new RangeError(ti(e));n=An(t.offset)}return t.timeZone&&Nn(t.timeZone,1),Ve(de(Ae(t),n))}(e)}function Jm(){function e(e,n){return new t(e,n)}function t(e,t=Object.create(null)){Fl.set(this,((e,t)=>{const n=new Ma(e,t),r=n.resolvedOptions(),i=r.locale,a=h(Object.keys(t),r),s=o(el),m=(e,...t)=>{if(e){if(2!==t.length)throw new TypeError(ri);for(const e of t)if(void 0===e)throw new TypeError(ri)}e||void 0!==t[0]||(t=[]);const r=t.map(e=>nl(e)||Number(e));let o,m=0;for(const e of r){const t="object"==typeof e?e.branding:void 0;if(m++&&t!==o)throw new TypeError(ri);o=t}return o?s(o)(i,a,...r):[n,...r]};return m.X=n,m})(e,t))}const n=Ma.prototype,r=Object.getOwnPropertyDescriptors(n),a=Object.getOwnPropertyDescriptors(Ma);for(const t in r){const n=r[t],o=t.startsWith("format")&&Xm(t);"function"==typeof n.value?n.value="constructor"===t?e:o||Qm(t):o&&(n.get=function(){if(!Fl.has(this))throw new TypeError(Ho);return(...e)=>o.apply(this,e)},Object.defineProperties(n.get,i(`get ${t}`)))}return a.prototype.value=t.prototype=Object.create({},r),Object.defineProperties(e,a),e}function Xm(e){return Object.defineProperties(function(...t){const n=Fl.get(this),[r,...o]=n(e.includes("Range"),...t);return r[e](...o)},i(e))}function Qm(e){return Object.defineProperties(function(...t){return Fl.get(this).X[e](...t)},i(e))}function el(e){const t=gl[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return ao(t,o(so),1)}const tl=new WeakMap,nl=tl.get.bind(tl),rl=tl.set.bind(tl),ol={era:function(e){if(void 0!==e)return Yi(e)},eraYear:_,year:P,month:C,daysInMonth:C,daysInYear:C,inLeapYear:Zi,monthsInYear:C},il={monthCode:Yi},al={day:C},sl={dayOfWeek:C,dayOfYear:C,weekOfYear:function(e){if(void 0!==e)return C(e)},yearOfWeek:_,daysInWeek:C},ml=Bm(Object.assign({},ol,il,al,sl)),ll=Bm({...ol,...il}),ul=Bm({...il,...al}),dl={calendarId:e=>e.calendar},cl=d(e=>t=>t[e],Ui.concat("sign")),hl=d((e,t)=>e=>e[ta[t]],bi),fl={epochMilliseconds:rt,epochNanoseconds:function(e){return((e,t=1)=>{const[n,r]=e,o=Math.floor(r/t),i=gi/t;return BigInt(n)*BigInt(i)+BigInt(o)})(e.epochNanoseconds)}},[Ml,yl]=_m(es,function(e=0,t=0,n=0,r=0,o=0,i=0,a=0,s=0,m=0,d=0){return nt(pn(u(Z,l(Ui,[e,t,n,r,o,i,a,s,m,d]))))},{...cl,blank:function(e){return!e.sign}},{with:(e,t)=>yl(function(e,t){return nt((n=e,r=t,pn({...n,...$r(r,qi)})));var n,r}(e,t)),negated:e=>yl(Mn(e)),abs:e=>yl(function(e){return-1===e.sign?Mn(e):e}(e)),add:(e,t,n)=>yl(fn(jm,Fs,ls,0,e,Lm(t),n)),subtract:(e,t,n)=>yl(fn(jm,Fs,ls,1,e,Lm(t),n)),round:(e,t)=>yl(function(e,t,n,r,o){const i=Sn(r),[a,s,m,l,u]=((e,t,n)=>{e=Ze(e,Ea);let r=xa(e);const o=n(e[za]);let i=je(e);const a=Ua(e,7);let s=Na(e);if(void 0===r&&void 0===s)throw new RangeError(Qo);if(null==s&&(s=0),null==r&&(r=Math.max(s,t)),$e(r,s),i=Re(i,s,1),i>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,i,a,o]})(o,i,e),d=Math.max(i,a);if(!u&&d<=6)return nt(pn(((e,t,n,r,o)=>{const i=gt(wn(e),n,r,o);return{...Xi,...vn(i,t)}})(r,a,s,m,l)));if(!cn(u)&&!r.sign)return r;if(!u)throw new RangeError(Jo);const[c,h,f]=mn(t,n,u),M=ln(f),y=un(f),g=dn(f),p=y(h,c,r);cn(u)||(oe(c),oe(p));let b=g(h,c,p,a);const w=r.sign,v=gn(b);if(w&&v&&w!==v)throw new RangeError(xo);return b=yt(b,M(p),a,s,m,l,h,c,M,y),nt(b)}(jm,Fs,ls,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=Sn(r),[a,s]=((e,t)=>{const n=t((e=Ze(e,Ta))[za]);let r=La(e);return r=G(Ta,r),[r,n]})(o,e),m=Math.max(a,i);if(!s&&hn(m,s))return it(r,a);if(!s)throw new RangeError(Jo);if(!r.sign)return 0;const[l,u,d]=mn(t,n,s),c=ln(d),h=un(d),f=dn(d),M=h(u,l,r);cn(s)||(oe(l),oe(M));const y=f(u,l,M,a);return hn(a,s)?it(y,a):((e,t,n,r,o,i,a)=>{const s=gn(e),[m,l]=at(r,ea(n,e),n,s,o,i,a),u=st(t,m,l);return e[Ui[n]]+u*s})(y,c(M),a,u,l,c,h)}(jm,Fs,ls,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):_t(e)},toString:_t,toJSON:e=>_t(e),valueOf:Nm},{from:e=>yl(Lm(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(Ye(i).relativeTo),s=Math.max(Sn(r),Sn(o));if(M(Ui,r,o))return 0;if(hn(s,a))return K(wn(r),wn(o));if(!a)throw new RangeError(Jo);const[m,l,u]=mn(t,n,a),d=ln(u),c=un(u);return K(d(c(l,m,r)),d(c(l,m,o)))}(jm,Fs,ls,Lm(e),Lm(t),n)}),gl={Instant:Tm,PlainDateTime:Dm,PlainDate:zm,PlainTime:Am,PlainYearMonth:Hm,PlainMonthDay:km},pl=ao(Tm),bl=ao(Sm),wl=ao(Dm),vl=ao(zm),El=ao(Am),Tl=ao(Hm),Sl=ao(km),[Dl,zl]=_m(Ja,function(e=0,t=0,n=0,r=0,o=0,i=0){return tt(_e(u(Y,l(ta,[e,t,n,r,o,i])),1))},hl,{with(e,t,n){return zl(function(e,t,n){return tt(((e,t,n)=>Vr({...h(wi,e),...$r(t,wi)},Ce(n)))(e,t,n))}(this,Cm(t),n))},add:(e,t)=>zl(en(0,e,Lm(t))),subtract:(e,t)=>zl(en(1,e,Lm(t))),until:(e,t,n)=>yl(ar(0,e,Rm(t),n)),since:(e,t,n)=>yl(ar(1,e,Rm(t),n)),round:(e,t)=>zl(function(e,t){const[n,r,o]=Oe(t,5);var i;return tt((i=o,ut(e,ct(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Xn(e,t)}(e,Rm(t)),toLocaleString(e,t,n){const[r,o]=El(t,n,e);return r.format(o)},toString:It,toJSON:e=>It(e),valueOf:Nm},{from:(e,t)=>zl(Rm(e,t)),compare:(e,t)=>Xn(Rm(e),Rm(t))}),[Al,Hl]=_m(Ka,g(function(e,t,n,r,o=0,i=0,a=0,s=0,m=0,d=0,c=Ni){return Je(oe(Ae(u(Y,l(ra,[t,n,r,o,i,a,s,m,d])))),e(c))},Fr),{...dl,...ml,...hl},{with:(e,t,n)=>Hl(function(e,t,n,r){const o=e(t.calendar),i=[...o.fields(Pi),...bi].sort(),a={...to(s=t),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const m=$r(n,i),l=Ce(r),u=o.k(a,m),d={...a,...m};return Je(oe({...o.F(u,We(l)),..._e(Zs(d),l)}))}(Fs,e,Cm(t),n)),withCalendar:(e,t)=>Hl(lo(e,Om(t))),withPlainTime:(e,t)=>Hl(function(e,t=sa){return Je(oe({...e,...t}))}(e,Fm(t))),add:(e,t,n)=>Hl(Jt(Fs,0,e,Lm(t),n)),subtract:(e,t,n)=>Hl(Jt(Fs,1,e,Lm(t),n)),until:(e,t,n)=>yl(nr(Fs,0,e,Ym(t),n)),since:(e,t,n)=>yl(nr(Fs,1,e,Ym(t),n)),round:(e,t)=>Hl(function(e,t){return Je(mt(e,...Oe(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Kn(e,t)&&e.calendar===t.calendar}(e,Ym(t)),toZonedDateTime:(e,t,n)=>Bl(function(e,t,n,r){const o=((e,t,n,r)=>{const o=(e=>Ra(Ye(e)))(r);return qt(e(t),n,o)})(e,n,t,r);return Ke(ie(o),n,t.calendar)}(ls,e,xm(t),n)),toPlainDate:e=>Gl(Xe(e)),toPlainTime:e=>zl(tt(e)),toLocaleString(e,t,n){const[r,o]=wl(t,n,e);return r.format(o)},toString:zt,toJSON:e=>zt(e),valueOf:Nm},{from:(e,t)=>Hl(Ym(e,t)),compare:(e,t)=>Kn(Ym(e),Ym(t))}),[kl,Il]=_m($a,g(function(e,t,n,r=Ni,o=pa){const i=Y(t),a=Y(n),s=e(r);return et(re(He({isoYear:Y(o),isoMonth:i,isoDay:a})),s)},Fr),{...dl,...ul},{with:(e,t,n)=>Il(function(e,t,n,r){const o=e(t.calendar),i=o.fields(Pi).sort(),a=(e=>{const t=Rs(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{monthCode:vr(i,a),day:o}})(t),s=$r(n,i),m=o.k(a,s);return o._(m,r)}(Fs,e,Cm(t),n)),equals:(e,t)=>function(e,t){return!Jn(e,t)&&e.calendar===t.calendar}(e,Zm(t)),toPlainDate(e,t){return Gl(function(e,t,n,r){return((e,t,n)=>Kr(e,t,Oi,O(n),Ai))(e(t.calendar),n,r)}(Fs,e,this,t))},toLocaleString(e,t,n){const[r,o]=Sl(t,n,e);return r.format(o)},toString:kt,toJSON:e=>kt(e),valueOf:Nm},{from:(e,t)=>Il(Zm(e,t))}),[_l,Cl]=_m(qa,g(function(e,t,n,r=Ni,o=1){const i=Y(t),a=Y(n),s=e(r);return Qe(ne(He({isoYear:i,isoMonth:a,isoDay:Y(o)})),s)},Fr),{...dl,...ll},{with:(e,t,n)=>Cl(function(e,t,n,r){const o=e(t.calendar),i=o.fields(_i).sort(),a=(e=>{const t=Rs(e.calendar),[n,r]=t.v(e),[o,i]=t.q(n,r);return{year:n,monthCode:vr(o,i)}})(t),s=$r(n,i),m=o.k(a,s);return o.K(m,r)}(Fs,e,Cm(t),n)),add:(e,t,n)=>Cl(Qt(Fs,0,e,Lm(t),n)),subtract:(e,t,n)=>Cl(Qt(Fs,1,e,Lm(t),n)),until:(e,t,n)=>yl(or(Fs,0,e,Wm(t),n)),since:(e,t,n)=>yl(or(Fs,1,e,Wm(t),n)),equals:(e,t)=>function(e,t){return!Jn(e,t)&&e.calendar===t.calendar}(e,Wm(t)),toPlainDate(e,t){return Gl(function(e,t,n,r){return((e,t,n)=>Kr(e,t,Ci,O(n),Ii))(e(t.calendar),n,r)}(Fs,e,this,t))},toLocaleString(e,t,n){const[r,o]=Tl(t,n,e);return r.format(o)},toString:Ht,toJSON:e=>Ht(e),valueOf:Nm},{from:(e,t)=>Cl(Wm(e,t)),compare:(e,t)=>Jn(Wm(e),Wm(t))}),[Pl,Gl]=_m(Va,g(function(e,t,n,r,o=Ni){return Xe(re(He(u(Y,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))},Fr),{...dl,...ml},{with:(e,t,n)=>Gl(function(e,t,n,r){const o=e(t.calendar),i=o.fields(Pi).sort(),a=to(t),s=$r(n,i),m=o.k(a,s);return o.F(m,r)}(Fs,e,Cm(t),n)),withCalendar:(e,t)=>Gl(lo(e,Om(t))),add:(e,t,n)=>Gl(Xt(Fs,0,e,Lm(t),n)),subtract:(e,t,n)=>Gl(Xt(Fs,1,e,Lm(t),n)),until:(e,t,n)=>yl(rr(Fs,0,e,Um(t),n)),since:(e,t,n)=>yl(rr(Fs,1,e,Um(t),n)),equals:(e,t)=>function(e,t){return!Jn(e,t)&&e.calendar===t.calendar}(e,Um(t)),toZonedDateTime(e,t){const n=r(t)?t:{timeZone:t};return Bl(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):void 0,m=n(i);let l;return l=s?qt(m,{...r,...s}):$t(m,{...r,...sa}),Ke(l,i,r.calendar)}(xm,Rm,ls,e,n))},toPlainDateTime:(e,t)=>Hl(function(e,t=sa){return Je(oe({...e,...t}))}(e,Fm(t))),toPlainYearMonth(e){return Cl(function(e,t,n){return((e,t)=>{const n=qr(e,t,Ci);return e.K(n,void 0)})(e(t.calendar),n)}(Fs,e,this))},toPlainMonthDay(e){return Il(function(e,t,n){return((e,t)=>{const n=qr(e,t,Oi);return e._(n)})(e(t.calendar),n)}(Fs,e,this))},toLocaleString(e,t,n){const[r,o]=vl(t,n,e);return r.format(o)},toString:At,toJSON:e=>At(e),valueOf:Nm},{from:(e,t)=>Gl(Um(e,t)),compare:(e,t)=>Jn(Um(e),Um(t))}),[Ol,Bl]=_m(Xa,g(function(e,t,n,r,o=Ni){return Ke(ie(X(R(n))),t(r),e(o))},Fr,function(e){return Wn(Yi(e))}),{...fl,...dl,...$m(ml),...$m(hl),offset:e=>Lt(Vm(e).offsetNanoseconds),offsetNanoseconds:e=>Vm(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=ss(t,n),[o,i]=ht(r),a=ee(V($t(n,o),$t(n,i)),yi,1);if(a<=0)throw new RangeError(xo);return a}(ls,e)},{with:(e,t,n)=>Bl(function(e,t,n,r,o){const{calendar:i,timeZone:a}=n,s=e(i),m=t(a),l=[...s.fields(Pi),...Ti].sort(),u=(e=>{const t=ss(e,ls),n=Lt(t.offsetNanoseconds),r=Rs(e.calendar),[o,i,a]=r.v(t),[s,m]=r.q(o,i),l=vr(s,m);return{...Ws(t),year:o,monthCode:l,day:a,offset:n}})(n),d=$r(r,l),c=s.k(u,d),h={...u,...d},[f,M,y]=Pe(o,2);return Ke(Ut(m,{...s.F(c,We(f)),..._e(Zs(h),f)},An(h.offset),M,y),a,i)}(Fs,ls,e,Cm(t),n)),withCalendar:(e,t)=>Bl(lo(e,Om(t))),withTimeZone:(e,t)=>Bl(function(e,t){return{...e,timeZone:t}}(e,xm(t))),withPlainTime:(e,t)=>Bl(function(e,t,n){const r=t.timeZone,o=e(r),i={...ss(t,o),...n||sa};let a;return a=n?Ut(o,i,i.offsetNanoseconds,2):$t(o,i),Ke(a,r,t.calendar)}(ls,e,Fm(t))),add:(e,t,n)=>Bl(Kt(Fs,ls,0,e,Lm(t),n)),subtract:(e,t,n)=>Bl(Kt(Fs,ls,1,e,Lm(t),n)),until:(e,t,n)=>yl(nt(tr(Fs,ls,0,e,qm(t),n))),since:(e,t,n)=>yl(nt(tr(Fs,ls,1,e,qm(t),n))),round:(e,t)=>Bl(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,m]=Oe(n);if(0===a&&1===s)return t;const l=e(o);if(6===a)r=((e,t,n,r)=>{const o=ss(n,t),[i,a]=e(o),s=n.epochNanoseconds,m=$t(t,i),l=$t(t,a);if(J(s,m,l))throw new RangeError(xo);return wt(st(s,m,l),r)?l:m})(ht,l,t,m);else{const e=l.R(r);r=Ut(l,mt(Me(r,e),a,s,m),e,2,0,1)}return Ke(r,o,i)}(ls,e,t)),startOfDay:e=>Bl(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>$t(t,e(ss(n,t))))(ft,e(n),t);return Ke(o,n,r)}(ls,e)),equals:(e,t)=>function(e,t){return!Vn(e,t)&&!!Qn(e.timeZone,t.timeZone)&&e.calendar===t.calendar}(e,qm(t)),toInstant:e=>xl(function(e){return Ve(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Hl(no(ls,e)),toPlainDate:e=>Gl(ro(ls,e)),toPlainTime:e=>zl(oo(ls,e)),toLocaleString(e,t,n={}){const[r,o]=bl(t,n,e);return r.format(o)},toString:(e,t)=>Dt(ls,e,t),toJSON:e=>Dt(ls,e),valueOf:Nm,getTimeZoneTransition(e,t){const{timeZone:n,epochNanoseconds:r}=e,o=function(e){const t=Ze(e,Aa),n=qe(Aa,Ba,t,0);if(!n)throw new RangeError(Eo(Aa,n));return n}(t),i=ls(n).O(r,o);return i?Bl({...e,epochNanoseconds:i}):null}},{from:(e,t)=>Bl(qm(e,t)),compare:(e,t)=>Vn(qm(e),qm(t))}),[Nl,xl]=_m(Qa,function(e){return Ve(ie(X(R(e))))},fl,{add:(e,t)=>xl(Vt(0,e,Lm(t))),subtract:(e,t)=>xl(Vt(1,e,Lm(t))),until:(e,t,n)=>yl(er(0,e,Km(t),n)),since:(e,t,n)=>yl(er(1,e,Km(t),n)),round:(e,t)=>xl(function(e,t){const[n,r,o]=Oe(t,5,1);return Ve(gt(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!$n(e,t)}(e,Km(t)),toZonedDateTimeISO:(e,t)=>Bl(function(e,t,n=Ni){return Ke(e.epochNanoseconds,t,n)}(e,xm(t))),toLocaleString(e,t,n){const[r,o]=pl(t,n,e);return r.format(o)},toString:(e,t)=>St(xm,ls,e,t),toJSON:e=>St(xm,ls,e),valueOf:Nm},{from:e=>xl(Km(e)),fromEpochMilliseconds:e=>xl(function(e){return Ve(ie(Q(Z(e),hi)))}(e)),fromEpochNanoseconds:e=>xl(function(e){return Ve(ie(X(R(e))))}(e)),compare:(e,t)=>$n(Km(e),Km(t))}),Ll=Object.defineProperties({},{...m("Temporal.Now"),...a({timeZoneId:()=>ho(),instant:()=>xl(Ve(co())),zonedDateTimeISO:(e=ho())=>Bl(Ke(co(),xm(e),Ni)),plainDateTimeISO:(e=ho())=>Hl(Je(uo(ls(xm(e))),Ni)),plainDateISO:(e=ho())=>Gl(Xe(uo(ls(xm(e))),Ni)),plainTimeISO:(e=ho())=>zl(tt(uo(ls(xm(e)))))})}),jl=Object.defineProperties({},{...m("Temporal"),...a({PlainYearMonth:_l,PlainMonthDay:kl,PlainDate:Pl,PlainTime:Dl,PlainDateTime:Al,ZonedDateTime:Ol,Instant:Nl,Duration:Ml,Now:Ll})}),Rl=Jm(),Fl=new WeakMap;function Yl(e,...t){let n=bbn.lng[e]||e;if(t.length){let e=0;return n.replace(/\%([d|s])/g,(n,r)=>{let o=t[e++];o||(o="d"===r?0:"");const i=typeof o;return"d"===r&&"number"!==i?(o=parseFloat(o),isNaN(o)&&(o=0)):"s"===r&&"string"!==i&&(o=""+o),o})}return n}Object.create(Intl),a({DateTimeFormat:Rl});var Zl,Wl,Ul,ql,$l,Vl,Kl={loggers:{_num:0},datatypes:["xml","html","script","json","jsonp","text","blob"],shortenLen:30,keys:{upDown:["PageUp","PageDown","End","Home","ArrowUp","ArrowDown"],leftRight:["Home","End","ArrowLeft","ArrowRight"],dels:["Backspace","Delete","Insert"],confirm:["Enter","Tab"],alt:["CapsLock","Shift","Control","Alt","NumLock"],numbers:["0","1","2","3","4","5","6","7","8","9","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9"],numsigns:["NumpadSubtract","NumpadDecimal","-","."]},comparators:[">=","<=",">","<","="],operators:["+","-","/","*"],tags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],colors:{darkgrey:"#5a6a62",black:"#000000",anthracite:"#454545",grey:"#d3d3d3",white:"#ffffff",beige:"#fdfdfd",lightgrey:"#dcdcdc",pastelblue:"#ddebf6",cyan:"#00c8f8",blue:"#6e9ecf",indigo:"#3f51b5",navy:"#354458",webblue:"#2196f3",teal:"#009688",turquoise:"#1fda9a",pastelgreen:"#e2efda",palegreen:"#ccffcc",green:"#00a03e",olive:"#92b06a",pastelorange:"#fff2cc",yellow:"#fdf200",orange:"#ff9900",pink:"#eb65a0",purple:"#a333c8",red:"#db3340",brown:"#8c6954"},reserved:["abstract","boolean","break","byte","case","catch","char","class","continue","const","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","new","null","package","return","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","while","with"],mockText:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",regexp:{url:new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),ip:/^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,hostname:/^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i}},Jl={siteTitle:null===(Zl=globalThis.document)||void 0===Zl?void 0:Zl.title,logging:!1,cdn:"",lang:"en",host:(null===(Wl=globalThis.location)||void 0===Wl?void 0:Wl.protocol)+"//"+(null===(Ul=globalThis.location)||void 0===Ul?void 0:Ul.hostname),url:null===(ql=globalThis.location)||void 0===ql?void 0:ql.href,old_path:null,loading:!1,_enumerated:[],get isEnumerating(){return this._enumerated.length>0},width:0,height:0,focused:!1,last_focus:(new Date).getTime(),sleep:!1,theme:"dark",loaders:[],loadersHistory:[],maxLoadersHistory:50,resizeTimer:!1,hashChanged:0,params:[],isInit:!1,isFocused:!1,isVisible:!(null===($l=globalThis.document)||void 0===$l?void 0:$l.hidden),timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax",online:null===(Vl=globalThis.navigator)||void 0===Vl?void 0:Vl.onLine},Xl=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};class Ql extends Error{constructor(e){super(e||"Request canceled"),this.name="Cancel",this.__BBN_CANCEL__=!0}}const eu=["POST","PUT","PATCH","DELETE"],tu=(e,t,n={},r)=>{const o=new XMLHttpRequest,i=eu.includes(e.toUpperCase()),a=new Promise((r,a)=>{o.open(e.toUpperCase(),t,!0);const{body:s,headers:m}=((e,t)=>{const n=new Headers(t||{});let r=e;return null==e||e instanceof FormData||"object"!=typeof e||(n.set("Content-Type","application/json"),r=JSON.stringify(e)),{body:r,headers:n}})(n.data,n.headers);m.forEach((e,t)=>{o.setRequestHeader(t,e)}),"function"==typeof n.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",e=>{const t=e.lengthComputable?e.total:void 0;n.onUploadProgress({loaded:e.loaded,total:t,progress:t?e.loaded/t:void 0})}),o.onreadystatechange=()=>{if(4!==o.readyState)return;const e=(e=>{const t={};return e?(e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.split(": "),r=n.shift(),o=n.join(": ");r&&(t[r.toLowerCase()]=o)}),t):t})(o.getAllResponseHeaders()),t=1223===o.status?204:o.status,i=o.statusText||"";let s=o.responseText;if((e["content-type"]||"").includes("application/json"))try{s=JSON.parse(o.responseText)}catch(e){}const m={data:s,status:t,statusText:i,headers:e,config:n,request:o};if(t>=200&&t<300)r(m);else{const e=new Error("Request failed with status code "+t);e.response=m,e.config=n,e.request=o,a(e)}},o.onerror=()=>{const e=new Error("Network Error");e.config=n,e.request=o,a(e)},o.onabort=()=>{a(new Ql("Request canceled"))},i?o.send(s):o.send()});return a.cancel=()=>o.abort(),a};var nu={isCancel:e=>!(!e||!0!==e.__BBN_CANCEL__),run:(e,t,n={},r)=>{n.baseURL&&!/^https?:\/\//i.test(t)&&(t=n.baseURL.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")),t=((e,t)=>{if(!t)return e;const n=new URLSearchParams(t).toString();return n?e+(e.includes("?")?"&":"?")+n:e})(t,n.params);return"function"==typeof n.onUploadProgress&&eu.includes(e.toUpperCase())?tu(e,t,n):((e,t,n={},r)=>{const o={method:e,headers:new Headers(n.headers||{}),signal:null==r?void 0:r.signal},i=eu.includes(e.toUpperCase());if(null!=n.data&&i&&("object"!=typeof n.data||n.data instanceof FormData?o.body=n.data:(o.headers.set("Content-Type","application/json"),o.body=JSON.stringify(n.data))),n.params){const e=new URLSearchParams(n.params).toString();t+=(t.includes("?")?"&":"?")+e}const a=fetch(t,o).then(e=>Xl(void 0,void 0,void 0,function*(){let t;const r=e.headers.get("content-type")||"";try{t=r.includes("application/json")?yield e.json():r.startsWith("text/")?yield e.text():r.includes("multipart/")?yield e.arrayBuffer():yield e.blob()}catch(n){t=yield e.text()}const o={data:t,status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries()),config:n,request:e};if(!e.ok){const t=new Error("Request failed with status code "+e.status);throw t.response=o,t.config=n,t.request=e,t}return o})).catch(e=>{if("AbortError"===e.name)throw new Ql("Request canceled");throw e});return a.cancel=()=>r.abort(),a})(e,t,n,r)}};function ru(...e){if(!e.length)return!1;for(let t of e)if("[object String]"!=={}.toString.apply(t))return!1;return!0}function ou(...e){if(!e.length)return!1;for(let t of e)if(!Number.isInteger(t))return!1;return!0}function iu(...e){if(!e.length)return!1;for(let t of e)if(!(t&&t.constructor&&t.call&&t.apply))return!1;return!0}function au(...e){var t,n,r,o;if((null===(n=null===(t=globalThis.bbn)||void 0===t?void 0:t.env)||void 0===n?void 0:n.logging)&&void 0!==globalThis.console){let t,n=5,i="log";e[0]&&"object"==typeof e[0]&&e[0]._bbn_console_style&&(e[0]._bbn_console_mode&&iu(globalThis.console[e[0]._bbn_console_mode])?i=e[0]._bbn_console_mode:(t=e[0]._bbn_console_style,n=e[0]._bbn_console_level),e.shift());const a=globalThis.console[i];if((null===(o=null===(r=globalThis.bbn)||void 0===r?void 0:r.env)||void 0===o?void 0:o.loggingLevel)>=n){let n=0;for(;n<e.length;){let r=typeof e[n],o=[e[n]];"string"!==r&&"number"!==r||o.unshift("%c %s ",t),a.apply(globalThis.console,o),n++}}}}function su(e,t,n){if(!ru(e)||!ou(t))throw au(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return t<0&&(t=e.length+t),ou(n)?e.substring(t,(n<0?e.length:t)+n):e.substring(t)}function mu(e,t=!1){let n=null;if("object"==typeof e)for(var r in n={},e)su(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(t&&"object"==typeof e[r]?n[r]=mu(e[r],!0):n[r]=e[r]);return n||!1}function lu(e,t,n=!1,r=!1){if(null!==e&&"object"==typeof e){let o=Object.keys(n?mu(e):e);r&&o.reverse();for(let n of o)if(!1===t(e[n],n))break}return e}function uu(...e){if(!e.length)return!1;for(let t of e)if("[object Object]"!=={}.toString.apply(t))return!1;return!0}function du(...e){if(!e.length)return!1;for(let t of e)if(!Array.isArray(t))return!1;return!0}function cu(...e){if(!e.length)return!1;for(let t of e)if(["boolean","object","symbol"].includes(typeof t)||""===t||isNaN(t))return!1;return!0}function hu(...e){if(!e.length)return!1;for(let t of e)if(!t||"object"!=typeof t||!(Symbol.iterator in Object(t)))return!1;return!0}function fu(e,t){if(!(cu(e)&&e>0)){if(hu(e)){for(let n=0;n<e.length;n++)if(!1===t(e[n],n))return;return e}return lu(e,t)}for(let n=0;n<e;n++)if(!1===t(n,n))return}function Mu(...e){let t=!1,n=[];for(let r=0;r<e.length;r++)if(!0===e[r])t=!0;else{if(!e[r])continue;if("object"!=typeof e[r])throw new Error(bbn._("Error in extend: all arguments should be object, you have given ")+typeof e[r]);n.push(e[r])}if(!n.length)throw new Error("No argument given");let r,o=n[0];for(let e=1;e<n.length;e++)lu(n[e],(e,n)=>{t?du(e)?(o[n]=du(o[n])?o[n]:[],fu(e,(e,t)=>{if(e&&"object"==typeof e){let r=o[n][t];du(e)?du(r)||(r=[]):uu(r)||(r={}),o[n][t]=Mu(!0,r,e)}else o[n][t]=e})):uu(e)?o[n]=Mu(!0,o[n]&&"object"==typeof o[n]?o[n]:Object.create(Object.getPrototypeOf(e)),e):o[n]=e:(o[n]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(o,[n]))&&(o[n]=e)}),r||(r=!!n[e].__bbnNoData);return r&&"bbnData"in window&&(o.__bbnData&&o.__bbnData.unset(),Object.defineProperty(o,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1})),o}var yu=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};const gu=globalThis.indexedDB||globalThis.webkitIndexedDB||globalThis.mozIndexedDB||globalThis.OIndexedDB||globalThis.msIndexedDB,pu=(e,t)=>{if(e){if(null==t?void 0:t.length){const n={};return lu(e,(e,r)=>{t.includes(r)&&(n[r]=e)}),n}return e}},bu=(e,t=[])=>{var n;return(null===(n=null==e?void 0:e.conditions)||void 0===n?void 0:n.length)?e.conditions.forEach(e=>{e.field&&!t.includes(e.field)?t.push(e.field):e.conditions&&bu(e,t)}):uu(e)?lu(e,(e,n)=>{t.includes(n)||t.push(n)}):du(e)&&e.forEach(e=>{e.field&&!t.includes(e.field)?t.push(e.field):e.conditions&&bu(e,t)}),t},wu=e=>{const t=e.keys.PRIMARY.columns;return t.length>1?t:t[0]},vu=e=>new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)}),Eu=e=>new Promise((t,n)=>{e.oncomplete=()=>t(),e.onabort=()=>n(e.error),e.onerror=()=>n(e.error)});class Tu{constructor(e){this.lastErr=null,this.dbName=e}hasMissingStores(e,t){const n=Su._structures[e]||{};return Object.keys(n).some(e=>!t.objectStoreNames.contains(e))}getConnection(){return yu(this,arguments,void 0,function*(e=""){let t=Su._connections[e||this.dbName];if(!t){if(yield Su.open(e||this.dbName),!Su._connections[e||this.dbName])throw new Error(Yl("The database %s is not open",this.dbName));t=Su._connections[e||this.dbName]}return t})}get structure(){const e=Su._structures[this.dbName];if(!e)throw new Error(Yl("No structure defined for database %s",this.dbName));return e}getStore(e,t){return yu(this,void 0,void 0,function*(){const n=yield this.getConnection();if(!this.structure[e])throw new Error(Yl("Table %s is not defined in database structure %s",e,this.dbName));if(!n.objectStoreNames.contains(e))throw new Error(Yl("Table %s does not exist in database %s. Schema upgrade required.",e,this.dbName));const r=n.transaction([e],t);return r.onabort=()=>{this.lastErr=r.error,au(r.error)},r.onerror=()=>{this.lastErr=r.error,au(r.error)},[r,r.objectStore(e)]})}lastError(){return this.lastErr}close(){const e=Su._connections[this.dbName];e&&(e.close(),delete Su._connections[this.dbName])}insert(e,t){return yu(this,void 0,void 0,function*(){const n=Array.isArray(t)?t:[t];if(!n.length)return 0;const[r,o]=yield this.getStore(e,"readwrite");let i=0;for(const e of n){const t=o.put(e);t.onsuccess=()=>{i++},t.onerror=()=>{this.lastErr=t.error,au(t.error)}}return yield Eu(r),i})}update(e,t,n){return yu(this,arguments,void 0,function*(e,t,n,r=!1){const o=yield this.selectAll(e,[],n);if(!o.length)return 0;const i=this.structure[e],a=wu(i);if(Array.isArray(a))throw new Error(Yl("Composite primary keys are not supported by this update implementation"));const[s,m]=yield this.getStore(e,"readwrite");let l=0;for(const e of o){const n=Mu({},r?{[a]:e[a]}:e,t);if(!(a in n))throw new Error(Yl("No primary key in the data"));const o=m.put(n);o.onsuccess=()=>{l++},o.onerror=()=>{this.lastErr=o.error,au(o.error)}}return yield Eu(s),l})}delete(e,t){return yu(this,void 0,void 0,function*(){const n=this.structure[e],r=wu(n);if(Array.isArray(r))throw new Error(Yl("Composite primary keys are not supported by this delete implementation"));if(!(r in t))throw new Error(Yl("No primary key in the filter"));const[o,i]=yield this.getStore(e,"readwrite");return i.delete(t[r]),yield Eu(o),1})}selectOne(e,t){return yu(this,arguments,void 0,function*(e,t,n=null,r=null,o=0,i=1){var a;const s=yield this.selectAll(e,[t],n,r,o,i);return null===(a=null==s?void 0:s[0])||void 0===a?void 0:a[t]})}select(e){return yu(this,arguments,void 0,function*(e,t=[],n=null,r=null,o=0){const i=yield this.selectAll(e,t,n,r,o,1);return i.length?i[0]:null})}selectAll(e){return yu(this,arguments,void 0,function*(e,t=[],n=null,r=null,o=0,i=null){const[a,s]=yield this.getStore(e,"readonly"),m=this.structure[e],l=wu(m),u=[],d=uu(n)?Object.keys(n)[0]:!n||du(n)?null:l;if(!Array.isArray(l)&&d===l){if(Array.isArray(null==n?void 0:n[l])){const e=n[l],r=Math.min(e.length-o,null!=i?i:e.length),m=e.slice(o,o+r);for(const e of m){const n=yield vu(s.get(e)),r=pu(n,t);r&&u.push(r)}return yield Eu(a),u}const e=uu(n)?n[l]:n,r=yield vu(s.get(e)),m=pu(r,t);return m&&u.push(m),yield Eu(a),u}return yield new Promise((e,r)=>{const a=s.openCursor();let m=0;a.onsuccess=r=>{var a,s;const l=r.target.result;if(!l)return void e();if(!n||!(null===(s=null===(a=globalThis.bbn)||void 0===a?void 0:a.fn)||void 0===s?void 0:s.search)||0===globalThis.bbn.fn.search([l.value],n)){if(m>=o){const n=pu(l.value,t);if(n&&u.push(n),null!==i&&u.length>=i)return void e()}m++}l.continue()},a.onerror=()=>{this.lastErr=a.error,au(a.error),r(a.error)}}),yield Eu(a),u})}getColumnValues(e,t){return yu(this,arguments,void 0,function*(e,t,n=null,r=null,o=0,i=null){return(yield this.selectAll(e,bu(n,[t]),n,r,o,i)).map(e=>e[t]).filter(e=>void 0!==e)})}copyTable(e,t){return yu(this,arguments,void 0,function*(e,t,n=[],r=null,o=null,i=0,a=null){if(!this.structure[t])throw new Error(Yl("Source table %s does not exist in structure",t));let s=yield this.getConnection();if(s.objectStoreNames.contains(e)||(yield Su.add(this.dbName,e,this.structure[t]),s=yield this.getConnection()),!s.objectStoreNames.contains(e))throw new Error(Yl("The target table %s does not exist",e));const m=yield this.selectAll(t,n,r,o,i,a);return m.length?this.insert(e,m):0})}deleteTable(e){return yu(this,void 0,void 0,function*(){return yield Su.remove(this.dbName,e),!0})}}const Su={_structures:{},_connections:{},_stores:{},ok:void 0!==gu,updateStructure(e,t,n){const r=wu(t);if(!n.objectStoreNames.contains(e)){const o=n.createObjectStore(e,{keyPath:r});lu(t.keys,(e,t)=>{"PRIMARY"!==t&&o.createIndex(t,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})})}},getExistingVersion(e){return yu(this,void 0,void 0,function*(){const t=this._connections[e];return t?t.version:new Promise((t,n)=>{if(!gu)return void n(new Error(Yl("IndexedDB is not available")));const r=gu.open(e);r.onsuccess=()=>{const e=r.result,n=e.version;e.close(),t(n)},r.onupgradeneeded=()=>{const e=r.result,n=e.version;e.close(),t(n)},r.onerror=()=>n(r.error)})})},reopenWithUpgrade(e){return yu(this,void 0,void 0,function*(){if(!this._structures[e])throw new Error(Yl("Impossible to find a structure for the database %s",e));const t=yield this.getExistingVersion(e),n=t+1;return au(Yl("Going from version %s to version %s for database %s",t,n,e)),this._connections[e]&&(this._connections[e].close(),delete this._connections[e]),new Promise((t,r)=>{if(!gu)return void r(new Error(Yl("IndexedDB is not available")));const o=gu.open(e,n);o.onupgradeneeded=()=>{const t=o.result;lu(this._structures[e]||{},(e,n)=>{t.objectStoreNames.contains(n)||this.updateStructure(n,e,t)})},o.onsuccess=()=>{this._connections[e]=o.result,t(o.result)},o.onerror=()=>r(o.error),o.onblocked=t=>{au(t),r(Yl("reopenWithUpgrade: Upgrade blocked for database %s. Please close other connections to proceed.",e))}})})},open(e){return yu(this,void 0,void 0,function*(){if(!gu)throw new Error(Yl("IndexedDB is not available"));if(!this._structures[e])throw new Error(Yl("Impossible to find a structure for the database %s",e));return this._connections[e]||(yield new Promise((t,n)=>{const r=gu.open(e);r.onupgradeneeded=()=>{const t=r.result;lu(this._structures[e]||{},(e,n)=>{t.objectStoreNames.contains(n)||this.updateStructure(n,e,t)})},r.onsuccess=()=>{this._connections[e]=r.result,t(r.result)},r.onerror=()=>n(r.error),r.onblocked=t=>{n(Yl("open: Upgrade blocked for database %s. Please close other connections to proceed.",e))}})),new Tu(e)})},add(e,t,n){return yu(this,void 0,void 0,function*(){var r;if(au(Yl("Adding database structure for %s.%s",e,t)),!(null===(r=null==n?void 0:n.keys)||void 0===r?void 0:r.PRIMARY)||!(null==n?void 0:n.fields))throw new Error(Yl("The database structure for %s is not valid (missing keys, fields, or primary key)",t));this._structures[e]||(this._structures[e]={}),this._structures[e][t]=n;const o=this._connections[e];if(o)return o.objectStoreNames.contains(t)?o:yield this.reopenWithUpgrade(e);if(!((yield this.getExistingVersion(e))>0))return yield this.open(e),this._connections[e];const i=yield this.openRaw(e),a=i.objectStoreNames.contains(t);return i.close(),a?yield this.openRaw(e):yield this.reopenWithUpgrade(e)})},openRaw:(e,t)=>new Promise((n,r)=>{if(!gu)return void r(new Error(Yl("IndexedDB is not available")));const o=t?gu.open(e,t):gu.open(e);o.onsuccess=()=>n(o.result),o.onerror=()=>r(o.error),o.onblocked=()=>r(new Error(Yl("IndexedDB open blocked for database %s",e)))}),remove(e,t){return yu(this,void 0,void 0,function*(){const n=this._structures[e];if(!(null==n?void 0:n[t]))return;const r=n[t];delete n[t];try{const n=this._connections[e];if(!n)return;const r=n.version+1;n.close(),delete this._connections[e],yield new Promise((n,o)=>{if(!gu)return void o(new Error(Yl("IndexedDB is not available")));const i=gu.open(e,r);i.onupgradeneeded=()=>{const e=i.result;e.objectStoreNames.contains(t)&&e.deleteObjectStore(t)},i.onsuccess=()=>{this._connections[e]=i.result,n()},i.onerror=()=>o(i.error),i.onblocked=()=>o(new Error(Yl("Remove blocked for database %s",e)))})}catch(e){throw n[t]=r,e}})}};function Du(e,t,n){let r=(new Date).getTime(),o={key:e,url:su(e,0,e.length-33),loader:t,aborter:n,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(o),bbn.env.loadersHistory.unshift(o);let i=bbn.env.loadersHistory.length;for(;i&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)i--,bbn.env.loading||bbn.env.loadersHistory.splice(i,1);return r}function zu(e,...t){if("object"==typeof e){const n=[];return 1===t.length&&"string"==typeof t[0]?n.push(...t[0].split(".")):n.push(...t),n.reduce((e,t)=>{if(e)return e[e instanceof Array?parseInt(t):t]},e)}}function Au(e){if(!ru(e)){if(!e.toString)throw au(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Hu(...e){if(!e.length)return!1;for(let t of e)if("[object Date]"!=={}.toString.apply(t))return!1;return!0}function ku(e,t,n,r="asc"){let o=zu(e,n),i=zu(t,n),a=(typeof o).toLowerCase(),s=(typeof i).toLowerCase();if("asc"!==r&&ru(r)&&"desc"===r.toLowerCase()&&(r="desc"),a!==s)o=a,i=s;else switch(a){case"string":o=Au(o).toLowerCase(),i=Au(i).toLowerCase();break;case"boolean":o=o?1:0,i=i?1:0;break;case"object":Hu(o)&&(o=o.getTime(),i=Hu(i)?i.getTime():0)}return o<i?"desc"===r?1:-1:o>i?"desc"===r?-1:1:0}function Iu(e){return e&&"object"==typeof e?Object.keys(e).length:0}function _u(e){return!e||(du(e)?!e.length:"object"==typeof e&&!Iu(e))}function Cu(...e){if(!e.length)return!1;for(let t of e)if("[object Null]"!=={}.toString.apply(t))return!1;return!0}function Pu(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t|=0}return Math.abs(t).toString(16)}function Gu(e){let t=0;for(let n=0;n<e.length;n++){t=e.charCodeAt(n)+(t<<6)+(t<<16)-t,t|=0}return Math.abs(t).toString(16)}function Ou(e){return Pu(e).padStart(8,"0")+Gu(e).padStart(8,"0")}function Bu(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof HTMLElement))return!1;return!0}function Nu(e){let t="",n=e;if(e.id)return"#"+e.id;for(;n&&n!==document.body;){let e=n,r=e.localName,o=0;if(!r)break;if(e===document.body)break;e.id&&(t="#"+e.id+">"+t,o=1);let i=n.parentNode,a=Array.from(i.children).filter(t=>t.tagName===e.tagName);if(!o&&a.length>1){let t=Array.from(i.children).indexOf(e)+1;t>1&&(r+=":nth-child("+t+")")}t=r+(t?">"+t:""),n=i}return t}function xu(...e){var t;if(!e.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(let n of e){if(!bbn.cp.isComponent(n)||Bu(n)||!(null===(t=n.$el)||void 0===t?void 0:t.bbnCid))return!1}return!0}function Lu(e,t=null,n=0,r=null,o=null){if(n||r||(r=new WeakSet),void 0===e)e="__BBN_UNDEFINED__";else if(null===e)e="__BBN_NULL__";else if(null===e)e="__BBN_NULL__";else if("function"==typeof e)e="__BBN_FUNCTION__"+e.toString();else if("symbol"==typeof e)e="__BBN_SYMBOL__"+e.toString();else if("string"==typeof e)e="__BBN_STRING__"+e;else if("number"==typeof e)e="__BBN_NUMBER__"+e.toString();else if("boolean"==typeof e)e="__BBN_BOOLEAN__"+e.toString();else if([void 0,Object,Array,null].includes(null==e?void 0:e.constructor)){if(bbn.fn.isArray(e))if(r.has(e)||t&&t<n)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);let i="";for(let a=0;a<e.length;a++)i+="__BBN_ITEM"+a.toString()+"__"+o(e[a],t,n+1,r,o);e="__BBN_ARRAY__"+i}else if("object"==typeof e)if(r.has(e)||t&&t<n)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);let i="";for(let a in e){let s=a;"string"!=typeof s&&(s=o(s,o,1,1)),i+="__BBN_PROP_"+s+"__"+o(e[a],t,n+1,r,o)}e="__BBN_OBJECT__"+i}}else e=Bu(e)?xu(e)?"__BBN_CP__"+e.$cid:e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+Nu(e):"__BBN_UNKNOWN_OBJECT__"+e.constructor.toString();return e}function ju(...e){let t="",n=null;2===e.length&&"number"==typeof e[1]&&(n=e[1],e=[e[0]]);for(let r in e)t+=Lu(e[r],n,0,null,Lu);return Ou(t)}function Ru(e){var t="0123456789abcdef";function n(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r(function(e,t){return e<<t|e>>>32-t}(r(r(t,e),r(o,a)),i),n)}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function m(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}var l,u,d,c,h,f=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<t%4*8;return r[t>>2]|=128<<t%4*8,r[16*n-2]=8*e.length,r}(e),M=1732584193,y=-271733879,g=-1732584194,p=271733878;for(l=0;l<f.length;l+=16)u=M,d=y,c=g,h=p,M=i(M,y,g,p,f[l+0],7,-680876936),p=i(p,M,y,g,f[l+1],12,-389564586),g=i(g,p,M,y,f[l+2],17,606105819),y=i(y,g,p,M,f[l+3],22,-1044525330),M=i(M,y,g,p,f[l+4],7,-176418897),p=i(p,M,y,g,f[l+5],12,1200080426),g=i(g,p,M,y,f[l+6],17,-1473231341),y=i(y,g,p,M,f[l+7],22,-45705983),M=i(M,y,g,p,f[l+8],7,1770035416),p=i(p,M,y,g,f[l+9],12,-1958414417),g=i(g,p,M,y,f[l+10],17,-42063),y=i(y,g,p,M,f[l+11],22,-1990404162),M=i(M,y,g,p,f[l+12],7,1804603682),p=i(p,M,y,g,f[l+13],12,-40341101),g=i(g,p,M,y,f[l+14],17,-1502002290),M=a(M,y=i(y,g,p,M,f[l+15],22,1236535329),g,p,f[l+1],5,-165796510),p=a(p,M,y,g,f[l+6],9,-1069501632),g=a(g,p,M,y,f[l+11],14,643717713),y=a(y,g,p,M,f[l+0],20,-373897302),M=a(M,y,g,p,f[l+5],5,-701558691),p=a(p,M,y,g,f[l+10],9,38016083),g=a(g,p,M,y,f[l+15],14,-660478335),y=a(y,g,p,M,f[l+4],20,-405537848),M=a(M,y,g,p,f[l+9],5,568446438),p=a(p,M,y,g,f[l+14],9,-1019803690),g=a(g,p,M,y,f[l+3],14,-187363961),y=a(y,g,p,M,f[l+8],20,1163531501),M=a(M,y,g,p,f[l+13],5,-1444681467),p=a(p,M,y,g,f[l+2],9,-51403784),g=a(g,p,M,y,f[l+7],14,1735328473),M=s(M,y=a(y,g,p,M,f[l+12],20,-1926607734),g,p,f[l+5],4,-378558),p=s(p,M,y,g,f[l+8],11,-2022574463),g=s(g,p,M,y,f[l+11],16,1839030562),y=s(y,g,p,M,f[l+14],23,-35309556),M=s(M,y,g,p,f[l+1],4,-1530992060),p=s(p,M,y,g,f[l+4],11,1272893353),g=s(g,p,M,y,f[l+7],16,-155497632),y=s(y,g,p,M,f[l+10],23,-1094730640),M=s(M,y,g,p,f[l+13],4,681279174),p=s(p,M,y,g,f[l+0],11,-358537222),g=s(g,p,M,y,f[l+3],16,-722521979),y=s(y,g,p,M,f[l+6],23,76029189),M=s(M,y,g,p,f[l+9],4,-640364487),p=s(p,M,y,g,f[l+12],11,-421815835),g=s(g,p,M,y,f[l+15],16,530742520),M=m(M,y=s(y,g,p,M,f[l+2],23,-995338651),g,p,f[l+0],6,-198630844),p=m(p,M,y,g,f[l+7],10,1126891415),g=m(g,p,M,y,f[l+14],15,-1416354905),y=m(y,g,p,M,f[l+5],21,-57434055),M=m(M,y,g,p,f[l+12],6,1700485571),p=m(p,M,y,g,f[l+3],10,-1894986606),g=m(g,p,M,y,f[l+10],15,-1051523),y=m(y,g,p,M,f[l+1],21,-2054922799),M=m(M,y,g,p,f[l+8],6,1873313359),p=m(p,M,y,g,f[l+15],10,-30611744),g=m(g,p,M,y,f[l+6],15,-1560198380),y=m(y,g,p,M,f[l+13],21,1309151649),M=m(M,y,g,p,f[l+4],6,-145523070),p=m(p,M,y,g,f[l+11],10,-1120210379),g=m(g,p,M,y,f[l+2],15,718787259),y=m(y,g,p,M,f[l+9],21,-343485551),M=r(M,u),y=r(y,d),g=r(g,c),p=r(p,h);return n(M)+n(y)+n(g)+n(p)}function Fu(e){const t="function"==typeof e?e.toString():e;if("string"!=typeof t)throw Error("Unexpected type "+typeof e+" while parsing function");let n,r="",o=!1,i=!1,a=!1,s="",m=0,l=0,u=[],d={},c="",h=['"',"'","`"],f=!1,M=!1,y=!1,g=!1,p=!1,b=!1,w="";for(let e=0;e<t.length;e++)if(y||"/"!==t[e]||"*"!==t[e+1])if("/"===t[e]&&"*"===t[e-1])y=!1;else if(g||"/"!==t[e]||"/"!==t[e+1])if("\n"===t[e])g=!1;else{if(y||g)continue;if(t[e]===c&&!f&&c)c="",r+=t[e];else if(c)f="\\"===t[e]&&!f,r+=t[e];else if(h.includes(t[e])&&!f)c=t[e],r+=t[e];else if("("===t[e]){if(m++,""!==r.trim()){if("function"===r.trim())a=!0;else if("async"!==r.trim()){s=r.trim();let e=s.match(/^([a-zA-Z0-9_]+)<[a-zA-Z0-9_]+>$/);e&&(s=e[1])}r=""}}else if(")"===t[e])m===l+1&&(M?(d.default=r.trim(),M=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(u.push(d),d={}),r=""),l++;else if(p&&"}"!==t[e])r+=t[e];else{if(m&&m===l&&":"===t[e]){const r=t.substring(e+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!r)throw Error("Unexpected ':' while parsing function");w=r[1],n=t.substring(e+r[0].length).trim();break}if(!(r||"="!==t[e]||">"!==t[e+1]||m!==l||l||o)){d.name=t.slice(0,e).trim(),u.push(d),d={},o=!0,n=bbn.fn.substr(t,e+2).trim();break}if(m===l&&"="===t[e]&&">"===t[e+1]){""!==r.trim()&&(d.name=r.trim(),u.push(d),d={},r=""),o=!0,e++;continue}if("="===t[e]&&m>l&&!M)d.name=r.trim(),r="",M=!0;else if(","===t[e])if(p)r+=t[e];else{if(!(m>l))throw Error("Unexpected ',' while parsing function");M?(d.default=r.trim(),M=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(u.push(d),d={}),r=""}else if("{"===t[e]||"}"===t[e]){if(m===l){n=t.substring(e).trim();break}m>l?"{"!==t[e]||p?"}"===t[e]&&p&&(p=!1,r+=t[e]):(p=!0,r=t[e]):r=""}else{if(o){n=t.substring(t.indexOf("=>")+2).trim();break}" "===t[e]?""!==r.trim()&&("async"===r.trim()&&(i=!0),m>l?r+=t[e]:r=""):r+=t[e]}}}else g=!0,r="";else y=!0,r="";if(!n){if(!o)throw Error("Unexpected end of function while parsing function");n=r}n.substr(0,25).indexOf("[native code]")>-1&&(b=!0);const v=u.map(e=>e.name+(e.default?" = "+e.default:"")).join(", ");return{body:n,args:u,argString:v,isArrow:o,hasFunction:a,name:s,isAsync:i,isBinary:b,hash:Ru(n+(s?"-"+s:"")+(v?"-"+v:"")),returnType:w}}function Yu(e,t,n){if(n||(n=[]),e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(![void 0,Object,Array,null].includes(null==e?void 0:e.constructor)||![void 0,Object,Array,null].includes(null==t?void 0:t.constructor))return!1;let r=Object.keys(e).sort(),o=Object.keys(t).sort();if(ju(r)!==ju(o))return!1;let i=!0;if(e&&"object"==typeof e){if(n.includes(e))return i;n.push(e)}return fu(r,n=>{if(!Yu(e[n],t[n]))return i=!1,!1}),i}if(e&&t&&"function"==typeof e&&"function"==typeof t){let n=Fu(e),r=Fu(t),o=n.hash===r.hash;return o&&n.isBinary&&(o=!1),o}return!1}function Zu(e,t,n){switch(n){case"===":case"=":case"equal":case"eq":case"is":return e===t;case"!==":case"notequal":case"neq":case"isnot":return e!==t;case"!=":case"different":return e!=t;case"contains":case"contain":case"icontains":case"icontain":return!_u(e)&&!_u(t)&&-1!==Au(e).toLowerCase().indexOf(Au(t).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!Cu(e)&&!Cu(t))||-1===Au(e.toLowerCase()).indexOf(Au(t.toLowerCase()));case"starts":case"start":return!Cu(e)&&!Cu(t)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof t&&(t=t.toString()||""),0===e.indexOf(t));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!Cu(e)&&!Cu(t)&&0===Au(e).toLowerCase().indexOf(Au(t).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!Cu(e)&&!Cu(t)&&e.lastIndexOf(t)===e.length-t.length;case"like":return!Cu(e)&&!Cu(t)&&Au(e).toLowerCase()===Au(t).toLowerCase();case"gt":case">":return e>t;case"gte":case">=":return e>=t;case"lt":case"<":return e<t;case"lte":case"<=":return e<=t;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(uu(e,t))return Yu(e,t);default:return e==t}}function Wu(e,t){if(!t.conditions||!t.logic||!du(t.conditions))throw new Error("Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects");let n="AND"===t.logic;return fu(t.conditions,r=>{let o;if(r.conditions&&du(r.conditions))o=Wu(e,r);else if(o=Zu(zu(e,r.field),r.value,r.operator),o){let t=r.field.split("."),n=t.pop();t.length&&fu(t,t=>e=e[t]),void 0===zu(e,n)&&void 0!==r.value&&(o=!1)}if(o){if("OR"===t.logic)return n=!0,!1}else if("AND"===t.logic)return n=!1,!1}),n}function Uu(e,t="="){if(!uu(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!du(e.conditions)){let n=[];lu(e,(e,r)=>{uu(e)&&"object"==typeof e.conditions?n.push(Uu(e)):n.push({field:r,operator:t,value:e})}),e={conditions:n}}return e.logic||(e.logic="AND"),e}function qu(e,t,n=null,r="=",o=0,i=!1){if(!hu(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;let a,s,m=!1;if(t)if("string"==typeof t)a={conditions:[{field:t,value:n,operator:r||"="}]};else if(i=!0===r,o="number"==typeof n?n:i?e.length-1:0,"function"==typeof t)m=!0,s=t;else if(uu(t))if("field"in t&&"value"in t)a={conditions:[t],logic:"AND"};else if("conditions"in t)a=t;else{const e=[];for(let n in t)e.push({field:n,value:t[n],operator:"="});a={conditions:e,logic:"AND"}}else du(t)&&(a={conditions:t,logic:"AND"});else m=!0,s=e=>Wu({value:e},Uu({logic:"AND",conditions:[{field:"value",operator:r||"=",value:n}]}));if(m||a){if("number"!=typeof o&&(o=i?e.length-1:0),!s){const e=Uu(a);s=t=>Wu(t,e)}if(i)for(let t=o;t>=0;t--){if(bbn.env._enumerated.push(!0),s(e[t]))return bbn.env._enumerated.pop(),e[t],t;bbn.env._enumerated.pop()}else for(let t=o;t<e.length;t++){if(bbn.env._enumerated.push(!0),s(e[t]))return bbn.env._enumerated.pop(),e[t],t;bbn.env._enumerated.pop()}}return-1}function $u(e,t,n=null,r="=",o=0,i=!1,a=!1){let s=qu(e,t,n,r,o,i);return s>-1?e[s]:t&&["object","function"].includes(typeof t)&&5 in arguments?i:a}function Vu(e,t=null,n=!1){let r=qu(bbn.env.loaders,{key:e});if(r>-1){let o=bbn.env.loaders.splice(r,1)[0],i=$u(bbn.env.loadersHistory,{key:e,start:o.start});return i&&(i.loading=!1,i.duration=(new Date).getTime()-o.start,"string"==typeof t?(i.errorMessage=t,i.error=!n,i.abort=n):uu(t)&&(i.success=!0)),!0}return!1}function Ku(e){let t=qu(bbn.env.loaders,{key:e});return t>-1?bbn.env.loaders[t]:null}function Ju(e,t,n=null,r="=",o=0){if(!du(e))try{e=Array.from(e)}catch(t){throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array")}let i={};const a=[],s="function"==typeof t;if(!t||!e.length)return e;if("object"==typeof t)i=t;else if("string"==typeof t)i[t]=n;else if(!s)throw new Error("Search function error: The prop argument should be a string or an object");let m;m="function"==typeof t?t:(e,t)=>Wu(e,i);for(let t=0;t<e.length&&(bbn.env._enumerated.push(!0),!(m(e[t],t)&&(bbn.env._enumerated.pop(),a.push(e[t]),bbn.env._enumerated.push(!0),o&&a.length>=o)));t++)bbn.env._enumerated.pop();return a}function Xu(e){if(Iu(e)){bbn.var.colors||(bbn.var.colors={});let t=document.createElement("style");document.head.appendChild(t);let n=t.sheet,r=0;lu(e,(e,t)=>{bbn.var.colors[t]=e,n.insertRule(".bbn-"+t+", .bbn-color-text-"+t+" {color: "+e+" !important;}",r),n.insertRule("svg.bbn-"+t+", .bbn-"+t+" svg, svg.bbn-color-text-"+t+", .bbn-color-text-"+t+" svg {fill: "+e+";}",r),n.insertRule(".bbn-bg-"+t+", .bbn-color-bg-"+t+", .bbn-color-background-"+t+" {background-color: "+e+" !important;}",r),n.insertRule(".bbn-border-"+t+", .bbn-color-border-"+t+" {border-color: "+e+" !important;}",r),n.insertRule(".bbn-color-"+t+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",r)})}}function Qu(e,t=null,n=""){if(e&&"FORM"===e.tagName){let r=(t,n)=>{let r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)};t=JSON.parse(JSON.stringify(t||{})),n=n||"",t&&lu(t,(t,o)=>{let i=n?`${n}[${o}]`:o;t instanceof Date?r(i,t.toISOString()):t instanceof Array?t.forEach((t,n)=>{const o=`${i}[${n}]`;"object"==typeof t?Qu(e,t,o):r(o,t.toString())}):"object"!=typeof t||t instanceof File?r(i,t.toString()):Qu(e,t,i)})}}function ed(e,t){let n=0;fu(t,t=>{t.style[e]="auto"}),fu(t,(t,r)=>{let o=t.getBoundingClientRect(),i=o[e]%1?o[e]-o[e]%1+1:o[e];i>n&&(n=i)}),fu(t,(t,r)=>{n&&(t.style[e]=n+"px")})}function td(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function nd(e,t,n,r=""){return n.toString().replace(uu(e)?e:new RegExp(td(e),"g"+r),t)}function rd(e,t,n){let r={};return t&&lu(t,(e,t)=>{-1===t.indexOf("_bbn")&&(r[t]=e)}),e+":"+Ru((n||"json")+JSON.stringify(r))}function od(e,t=null,n=null,r=null,o=null,i=null){if(null===t&&e&&"object"==typeof e&&e.url&&(e.abort&&(i=e.abort),e.failure&&(o=e.failure),e.success&&(r=e.success),e.data&&(n=e.data),e.datatype&&(t=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=nd("//","/",e)),t||(t="json");let a=rd(e,n,t),s=Ku(a);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&Mu(n||{},{_bbn_token:bbn.env.token});const m=new AbortController;let l={responseType:t,signal:m.signal};"text"===t?l.headers={accept:"text/javascript","Content-Type":"text/javascript"}:"json"===t?l.headers={accept:"application/json","Content-Type":"application/json"}:"html"===t&&(l.headers={accept:"text/html","Content-Type":"text/html"});let u="get";uu(n)&&Iu(n)>0&&(l.data=n,u="post");let d=nu.run(u,e,l).then(t=>{if(Vu(a,t),bbn.fn.defaultEndLoadingFunction(e,c,n,t),200===t.status)iu(r)&&r(t.data,t.headers);else{let e=1;iu(o)&&(e=o(d,t.message,t)),e&&bbn.fn.defaultAjaxErrorFunction(d,t.message,t)}return t}).catch(t=>{let r=nu.isCancel(t);if(Vu(a,t.message||t.response.data,r),bbn.fn.defaultEndLoadingFunction(e,c,n,t),r){let n=1;iu(i)&&(n=i(t.message,e)),n&&bbn.fn.defaultAjaxAbortFunction(t.message,e)}else{let e=1;iu(o)&&(e=o(d,t.message,t)),e&&bbn.fn.defaultAjaxErrorFunction(d,t.message,t.response)}return t.response}),c=Du(a,d,m);return bbn.fn.defaultStartLoadingFunction(e,c,n,a),d}}const id=new TextDecoder;function ad(e){return id.decode(e)}function sd(e,t){if(e&&ru(e)){let n=e.split("/").pop();if(!t)return n;let r=t.length;if(n&&su(n,-r)===t)return su(n,0,n.length-r)}return""}const md=[["y","year",31536e6],["m","month",2592e6],["w","week",6048e5],["d","day",864e5],["h","hour",36e5],["i","minute",6e4],["s","second",1e3],["x","millisecond",1]],ld={years:"y",year:"y",YEARS:"y",YEAR:"y",Years:"y",Year:"y",YYYY:"y",YY:"y",yyyy:"y",yy:"y",months:"m",month:"m",Months:"m",Month:"m",MONTHS:"m",MONTH:"m",MMMM:"m",MMM:"m",MM:"m",weekday:"e",WEEKDAY:"e",ee:"e",EE:"e",ddd:"e",days:"d",day:"d",Days:"d",Day:"d",DAYS:"d",DAY:"d",DD:"d",dd:"d",hours:"h",hour:"h",Hours:"h",Hour:"h",HOURS:"h",HOUR:"h",HH:"h",hr:"h",hh:"h",milliseconds:"x",millisecond:"x",Milliseconds:"x",Millisecond:"x",MILLISECONDS:"x",MILLISECOND:"x",minutes:"i",minute:"i",Minutes:"i",Minute:"i",MINUTES:"i",MINUTE:"i",II:"i",ii:"i",mn:"i",mm:"i",min:"i",ms:"x",SSS:"x",sss:"x",SS:"s",ss:"s",seconds:"s",second:"s",Seconds:"s",Second:"s",SECONDS:"s",SECOND:"s",sec:"s",WW:"w",Y:"y",y:"y",M:"m",m:"m",e:"e",E:"e",D:"d",d:"d",H:"h",h:"h",n:"i",i:"i",s:"s",S:"s",W:"w",w:"w",ZZ:"z",Z:"z"},ud={y:"YYYY",m:"MM",d:"DD",e:"EE",w:"WW",h:"HH",i:"II",s:"SS",x:"SSS",z:"Z"};function dd(...e){if(!e.length)return!1;for(let t of e)if(null!==t&&("object"==typeof t||"function"==typeof t))return!1;return!0}var cd,hd,fd,Md,yd=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},gd=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const pd=jl.ZonedDateTime.from("1970-01-01T00:00Z[UTC]");class bd{static fromUnit(e,t){const n=ld[t]||"ms",r=["y"===n?e:0,"m"===n?e:0,"w"===n?e:0,"d"===n?e:0,"h"===n?e:0,"i"===n?e:0,"s"===n?e:0,["y","m","w","d","h","i","s"].includes(n)?0:e],o=new jl.Duration(...r);return new bd(o)}constructor(e,t,n,r,o,i,a,s,m){cd.add(this),hd.set(this,void 0),fd.set(this,void 0),e instanceof jl.Duration?yd(this,hd,e,"f"):yd(this,hd,"object"==typeof e?new jl.Duration(e.years||0,e.months||0,e.weeks||0,e.days||0,e.hours||0,e.minutes||0,e.seconds||0,e.milliseconds||0,0,0):new jl.Duration(e||0,t||0,n||0,r||0,o||0,i||0,a||0,s||0,0,0),"f");const l=ld[m||""]||m;yd(this,fd,l||"ms","f"),$u(md,e=>e[0]===l),Object.defineProperty(this,"isValid",{value:!1,writable:!1,configurable:!0})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return gd(this,hd,"f")}years(e=!1){return gd(this,cd,"m",Md).call(this,"year",e)}months(e=!1){return gd(this,cd,"m",Md).call(this,"month",e)}weeks(e=!1){return gd(this,cd,"m",Md).call(this,"week",e)}days(e=!1){return gd(this,cd,"m",Md).call(this,"day",e)}hours(e=!1){return gd(this,cd,"m",Md).call(this,"hour",e)}minutes(e=!1){return gd(this,cd,"m",Md).call(this,"minute",e)}seconds(e=!1){return gd(this,cd,"m",Md).call(this,"second",e)}toJSON(){return this.value.toJSON()}asYears(){return gd(this,hd,"f").total({unit:"year",relativeTo:pd})}asMonths(){return gd(this,hd,"f").total({unit:"month",relativeTo:pd})}asWeeks(){return gd(this,hd,"f").total({unit:"week",relativeTo:pd})}asDays(){return gd(this,hd,"f").total({unit:"day",relativeTo:pd})}asHours(){return gd(this,hd,"f").total({unit:"hour",relativeTo:pd})}asMinutes(){return gd(this,hd,"f").total({unit:"minute",relativeTo:pd})}asSeconds(){return gd(this,hd,"f").total({unit:"second",relativeTo:pd})}add(e,t){let n=gd(this,fd,"f");if(t)if(ld[t]){const e=$u(md,e=>e[0]===ld[t]);e&&(n=e[1])}else n=t;const r=n+"s";if(!["years","months","weeks","days","hours","minutes","seconds","milliseconds"].includes(r))throw new Error("Invalid unit for duration: "+(null!=t?t:n));const o={[r]:e},i=gd(this,hd,"f").add(o);return new bd(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gd(this,fd,"f"))}subtract(e,t){return this.add(-e,t)}toMilliseconds(){const e=gd(this,hd,"f");return e.years||e.months||e.weeks||e.days?e.total({unit:"millisecond",relativeTo:pd}):e.total({unit:"millisecond"})}}hd=new WeakMap,fd=new WeakMap,cd=new WeakSet,Md=function(e,t){const n=gd(this,hd,"f");if(t)switch(e){case"year":return n.years;case"month":return n.months;case"week":return n.weeks;case"day":return n.days;case"hour":return n.hours;case"minute":return n.minutes;case"second":return n.seconds}const r=n.total({unit:e,relativeTo:pd});return Math.floor(r)};var wd,vd=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Ed=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Td{constructor(e){this.__bbnNoData=!0,this.__isBbnDt=!0,wd.set(this,void 0),this.getWeekdayIndex=(e,t)=>{const n=t||bbn.env.lang,r=e.trim().toLowerCase(),o=[n,...navigator.languages];for(let e=0;e<o.length;e++){if(!o[e])continue;const t=new Intl.DateTimeFormat(o[e],{weekday:"long"});for(let e=0;e<7;e++){const n=new Date(2023,0,1+e);if(t.format(n).toLowerCase()===r)return e}}throw new Error(`Unknown weekday name '${e}' for locale '${n}'`)},Object.defineProperty(this,"isValid",{value:!0,writable:!1,configurable:!0}),vd(this,wd,e,"f");const t=new Date;Object.defineProperty(this,"defaultValue",{value:{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()},writable:!1,configurable:!1})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return Ed(this,wd,"f")}get hasFullDate(){return"year"in this.value&&"month"in this.value&&"day"in this.value}toEpochMs(){if("zoned"===this.kind){return this.value.toInstant().epochMilliseconds}const e=Td.systemTimeZoneId;let t;switch(this.kind){case"dateTime":return this.value.toZonedDateTime(e).toInstant().epochMilliseconds;case"date":return this.value.toZonedDateTime({timeZone:e,plainTime:{hour:this.defaultValue.hour,minute:this.defaultValue.minute,second:this.defaultValue.second,millisecond:this.defaultValue.millisecond}}).toInstant().epochMilliseconds;case"time":{const n=this.value;t=`${jl.Now.plainDateISO().toString()}T${n.toString()}[${e}]`}case"yearMonth":t=`${this.value.toPlainDate({day:1}).toString()}T00:00[${e}]`;case"monthDay":{const n=this.value,r=jl.Now.plainDateISO();t=`${n.toPlainDate({year:r.year}).toString()}T00:00[${e}]`}}if(t){return jl.ZonedDateTime.from(t).toInstant().epochMilliseconds}throw new Error(`Unsupported kind '${this.kind}' in toEpochMs`)}static nowForKind(e){switch(e){case"zoned":return jl.Now.zonedDateTimeISO();case"dateTime":return jl.Now.plainDateTimeISO();case"date":return jl.Now.plainDateISO();case"time":return jl.Now.plainTimeISO();case"yearMonth":{const e=jl.Now.plainDateISO();return new jl.PlainYearMonth(e.year,e.month)}case"monthDay":{const e=jl.Now.plainDateISO();return new jl.PlainMonthDay(e.month,e.day,void 0,e.year)}default:throw new Error(`Unsupported kind '${e}' in nowForKind`)}}withValue(e){return new(0,this.constructor)(e)}static compare(e,t,n){if(!e||!t)throw new TypeError("Both arguments must be Temporal values");const r=jl.Now.timeZoneId();let o=ld[n]?$u(md,e=>e[0]===ld[n])[1]:void 0;o=o?o+"s":void 0;const i=e=>e instanceof Td,a=e=>i(e)?e.value:e,s=e=>{if(i(e))switch(e.kind){case"zoned":return e.value;case"dateTime":{const t=`${e.value.toString()}[${r}]`;return jl.ZonedDateTime.from(t)}case"date":{const t=`${e.value.toString()}T00:00[${r}]`;return jl.ZonedDateTime.from(t)}case"yearMonth":{const t=`${e.value.toPlainDate({day:1}).toString()}T00:00[${r}]`;return jl.ZonedDateTime.from(t)}default:throw new TypeError(`Cannot convert kind '${e.kind}' to ZonedDateTime for comparison`)}if(e instanceof jl.ZonedDateTime)return e;throw new TypeError("toZdt expects a bbnDt wrapper or ZonedDateTime")},m=a(e),l=a(t);if(m.constructor===l.constructor){const e=m.constructor,t=e.compare(m,l);if(void 0===o){if("function"!=typeof e.compare)throw new TypeError("This Temporal type has no static compare");return t}if("function"!=typeof m.until||"function"!=typeof m.since)throw new TypeError("This Temporal type does not support until/since");return m[1===t?"since":"until"](l,{smallestUnit:o,largestUnit:o,roundingMode:"floor"}).sign}const u=new Set(["zoned","dateTime","date","yearMonth"]);if(i(e)&&i(t)&&u.has(e.kind)&&u.has(t.kind)){const n=s(e),r=s(t),i=jl.ZonedDateTime.compare(n,r);if(void 0===o)return i;if("function"!=typeof n.until||"function"!=typeof n.since)throw new TypeError("ZonedDateTime does not support until/since");return n[1===i?"since":"until"](r,{smallestUnit:o,largestUnit:o,roundingMode:"floor"}).sign}throw new TypeError("Cannot compare different Temporal or bbnDt types")}static parse(e,t,n="auto",r){return bbn.dt(e,t,n,r)}parse(e,t,n){return Td.parse(e,t,n||this.kind)}compare(e,t){return e instanceof Td||(e=bbn.dt(e,null,this.kind)),Td.compare(this,e,t)}add(e,t){if(this.value){if(this.value instanceof jl.PlainMonthDay||"function"!=typeof this.value.add)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof bd){const t=this.value.add(e.value);return new this.constructor(t)}if("object"==typeof e){const t=new bd(e),n=this.value.add(t.value);return new this.constructor(n)}{if(!t)throw new Error("Unit must be specified when adding a number");const n=bd.fromUnit(e,t),r=this.value.add(n.value);return new this.constructor(r)}}}subtract(e,t){if(this.value){if(this.value instanceof jl.PlainMonthDay||"function"!=typeof this.value.subtract)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof bd){const t=this.value.subtract(e.value);return new this.constructor(t)}if("object"==typeof e){const t=new bd(e),n=this.value.subtract(t.value);return new this.constructor(n)}{if(!t)throw new Error("Unit must be specified when adding a number");const n=bd.fromUnit(e,t),r=this.value.subtract(n.value);return new this.constructor(r)}}}duration(e,t){return bd.fromUnit(e,t)}isBefore(e,t){return this.compare(e,t)<0}isBeforeOrSame(e,t){return this.compare(e,t)<=0}isAfter(e,t){return this.compare(e,t)>0}isAfterOrSame(e,t){return this.compare(e,t)>=0}isSame(e,t){return 0===this.compare(e,t)}equals(e){return this.isSame(e)}toJSON(){if("toZonedDateTime"in Ed(this,wd,"f")){const e=Ed(this,wd,"f").toZonedDateTime(Td.systemTimeZoneId).withTimeZone("UTC");return bbn.dt(e).format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}if("zoned"===this.kind)return this.timezone("America/New_York").format("YYYY-MM-DDTHH:II:SS.SSS")+"Z"}timezone(e){switch(this.kind){case"zoned":if(void 0===e){return this.value.timeZoneId}{const t=this.value.withTimeZone(e);return bbn.dt(t)}case"dateTime":if(void 0===e){const e=`${this.value.toString()}[${Td.systemTimeZoneId}]`;return jl.ZonedDateTime.from(e).timeZoneId}{const t=`${this.value.toString()}[${e}]`,n=jl.ZonedDateTime.from(t);return bbn.dt(n)}default:throw new Error(`timezone() is not supported for kind '${this.kind}'`)}}toString(){return new Date(this.valueOf()).toString()}year(e){if(this.value){if(!("year"in this.value))throw new Error("year() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({year:e});return new this.constructor(t)}return this.value.year}}month(e){if(this.value){if(!("month"in this.value))throw new Error("month() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({month:e});return new this.constructor(t)}return this.value.month}}day(e){if(this.value){if(!("day"in this.value))throw new Error("day() is not supported for this type");if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({day:e});return new this.constructor(t)}return this.value.day}}hour(e){if(this.value){if(!("hour"in this.value)){if(this.hasFullDate)return 0;throw new Error("hour() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({hour:e});return new this.constructor(t)}return this.value.hour}}minute(e){if(this.value){if(!("minute"in this.value)){if(this.hasFullDate)return 0;throw new Error("minute() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({minute:e});return new this.constructor(t)}return this.value.minute}}second(e){if(this.value){if(!("second"in this.value)){if(this.hasFullDate)return 0;throw new Error("second() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({second:e});return new this.constructor(t)}return this.value.second}}millisecond(e){if(this.value){if(!("millisecond"in this.value)){if(this.hasFullDate)return 0;throw new Error("millisecond() is not supported for this type")}if(void 0!==e&&!(e instanceof Event)){const t=this.value.with({millisecond:e});return new this.constructor(t)}return this.value.millisecond}}weekday(e,t){if(this.value){if(!("dayOfWeek"in this.value))throw new Error("weekday() is not supported for this type");return void 0===e||e instanceof Event?this.value.dayOfWeek%7:this.setWeekday(e,t)}}date(e){if(this.value){if(!this.hasFullDate)throw new Error("date() is not supported for this type");return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD:this.parse(e,"Y-m-d")}}datetime(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.YYYY+"-"+this.MM+"-"+this.DD+" "+this.HH+":"+this.II+":"+this.SS:"date"===this.kind?this.parse(this.date()+" "+e,"Y-m-d 00:00:00","dateTime"):this.parse(e,"Y-m-d H:i:s")}time(e){return!(0 in arguments)||void 0===e||e instanceof Event?this.HH+":"+this.II+":"+this.SS:"zoned"===this.kind?this.parse(this.date()+" "+e+" GMT"+this.value.timeZoneId,"Y-m-d H:i:s[ GMT]Z","dateTime"):["dateTime","date"].includes(this.kind)?this.parse(this.date()+" "+e,"Y-m-d H:i:s","dateTime"):this.parse(e,"H:i:s")}fdate(e=!1,t=!1){return this.value?bbn.dt.locales.formatters[e?"long":"numeric"].format(new Date(this.toEpochMs())):""}ftime(e=!0){return this.value?this.format("HH:II"+(e?":SS":"")):""}week(){if(!this.value)return;const e=this.year(),t=new Date(Date.UTC(e,this.month()-1,this.day())),n=new Date(Date.UTC(e,0,1)),r=Math.floor((t.getTime()-n.getTime())/864e5),o=n.getUTCDay();let i=(bbn.dt.locales.firstDayOfWeek-o+7)%7;const a=0===i?7:i;if(r<a)return 1;const s=r-a;return 2+Math.floor(s/7)}get YYYY(){if("year"in this.value)return this.year().toString()}get YY(){if("year"in this.value)return su(this.year().toString(),2,2)}get MMMM(){if("month"in this.value)return bbn.dt.locales.monthsLong[this.month()-1]}get MMM(){if("month"in this.value)return bbn.dt.locales.monthsShort[this.month()-1]}get MM(){if("month"in this.value){const e=parseInt(this.month().toString());return e<10?"0"+e.toString():e.toString()}}get M(){if("month"in this.value)return this.month().toString()}get EE(){if("dayOfWeek"in this.value)return this.value.dayOfWeek.toString()}get DD(){if("day"in this.value){const e=parseInt(this.day().toString());return e<10?"0"+e.toString():e.toString()}}get d(){if("day"in this.value)return this.day().toString()}get dddd(){if("dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"long")}get ddd(){if("dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"short")}get D(){if("day"in this.value)return this.day().toString()}get HH(){if("hour"in this.value){const e=parseInt(this.hour().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.hour.toString().padStart(2,"0")}get H(){return"hour"in this.value?this.hour().toString():this.hasFullDate?"0":void 0}get II(){if("minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get mm(){if("minute"in this.value){const e=parseInt(this.minute().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.minute.toString().padStart(2,"0")}get I(){return"minute"in this.value?this.minute().toString():this.hasFullDate?"0":void 0}get SS(){if("second"in this.value){const e=parseInt(this.second().toString());return e<10?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.second.toString().padStart(2,"0")}get SSS(){if("millisecond"in this.value){const e=parseInt(this.millisecond().toString());return e<10?"00"+e.toString():e<100?"0"+e.toString():e.toString()}if(this.hasFullDate)return this.defaultValue.millisecond.toString().padStart(3,"0")}get S(){return"second"in this.value?this.second().toString():this.hasFullDate?"0":void 0}get WW(){if("weekOfYear"in this.value)return this.value.weekOfYear.toString().padStart(2,"0")}get W(){if("weekOfYear"in this.value)return this.value.weekOfYear.toString()}get Z(){if("zoned"===this.kind){return this.value.offset}}get ZZ(){if("zoned"===this.kind){return this.value.offset.replace(":","")}}unix(e=!1){if("number"==typeof e){return new(0,this.constructor)(new Date(e))}return e?this.toEpochMs():Math.floor(this.toEpochMs()/1e3)}format(e="YYYY-MM-DD HH:II:SS"){let t="";if(e){const n=new RegExp("([|]|"+Object.keys(ld).join("|")+")","g");let r=0;fu(e.split(n),e=>{if("["!==e)if("]"!==e)if(r>0)t+=e;else if(e in ld)if(e in this&&dd(this[e]))t+=this[e];else{t+=this[ud[ld[e]]]||""}else t+=e;else r--;else r++})}return t}calendar(e){const t=new this.constructor,n=this.startOf("day"),r=t.startOf("day"),o=n.diff(r,"day"),i={numeric:"auto"};e&&(i.style="short");const a=new Intl.RelativeTimeFormat(bbn.env.lang,i);let s="",m=[],l="";if(o>=-1&&o<=1)m=a.formatToParts(o,"day");else if(o>=-6&&o<-1)l=this.dddd+", ",m=a.formatToParts(o,"day");else{if(!(o<=6&&o>1))return this.fdate();l=this.dddd,m=[]}return bbn.fn.each(m,e=>{s+=e.value}),`${l}${s} ${this.ftime()}`}matchFormat(e,t){try{return this.parse(e,t),!0}catch(e){return!1}}getWeekday(e,t="long",n){if(!t){const t=this.getWeekday(e,"narrow",n),r=this.getWeekday(e,"short",n),o=this.getWeekday(e,"long",n);return{letter:t,abbr:r,full:o,long:o,short:r,narrow:t}}let r;if("letter"===t)r="narrow";else if("abbr"===t)r="short";else if("full"===t)r="long";else{if(!["long","short","narrow"].includes(t))throw new Error("Invalid mode for getWeekDay: "+t+'. Allowed values are "long", "short", "narrow", "letter", "abbr", "full".');r=t}return new Date(2023,0,1+e).toLocaleDateString([n||bbn.env.lang,...navigator.languages],{weekday:r})}setWeekday(e,t=!1,n){let r;if("string"==typeof e&&(e=this.getWeekdayIndex(e,n)),"number"!=typeof e)throw new TypeError("weekday must be a number (0–6) or a string");if(e<0||e>6)throw new RangeError("weekday number must be between 0 and 6");r=e;const o=this.weekday();let i;return t?(i=(o-r+7)%7,0===i&&(i=7),i=-i):(i=(r-o+7)%7,0===i&&(i=7)),this.add(i,"d")}diff(e,t="",n=!1){let r;if(e instanceof Td)r=e.toEpochMs();else if(e instanceof jl.ZonedDateTime||e instanceof jl.PlainDateTime||e instanceof jl.PlainDate||e instanceof jl.PlainTime||e instanceof jl.PlainYearMonth||e instanceof jl.PlainMonthDay){r={kind:this.kind,value:e}.toEpochMs()}else{if("string"!=typeof e&&"number"!=typeof e)throw bbn.fn.log("DATE??",e),new TypeError("Unsupported date argument for diff");r=this.parse(String(e),"").toEpochMs()}let o=this.toEpochMs()-r;if(n&&(o=Math.abs(o)),!t)return o;const i=ld[t]||t,a=$u(md,e=>e[0]===i);if(!a)throw new Error("Invalid unit for diff: "+t);const[,,s]=a,m=o/s;return m<0?Math.ceil(m):Math.floor(m)}guessUnit(e){const t=Math.abs(e);for(const[e,n,r]of md)if(t>=r||"millisecond"===n)return e;return null}fromNow(e=""){Td.nowForKind(this.kind);const t=bbn.dt(void 0,null,this.kind),n=this.diff(t),r=ld[e]||this.guessUnit(n);if(!r)throw new Error("Cannot guess unit for fromNow");let o=this.diff(t,r);const i=new Intl.RelativeTimeFormat([bbn.env.lang,...navigator.languages],{numeric:"auto"}),a=$u(md,e=>e[0]===r);if(!a)throw new Error("Invalid unit for fromNow: "+e);let[,s]=a;return"millisecond"===s&&(s="second",o=Math.round(o/1e3)),bbn.fn.log("FROM NOW",o,s,i),i.format(o,s)}from(e,t=""){const n=this.diff(e),r=ld[t]||this.guessUnit(n);if(!r)throw new Error("Cannot guess unit for fromDate");const o=this.diff(e,r),i=r;return o>0?Yl("%d %s before",o,i):o<0?Yl("%d %s after",-o,i):Yl("The same %s",i)}startOf(e="d"){var t,n;const r=ld[e]||e;if(!r)throw new Error("Invalid unit for startOf: "+e);let o=this.value;const i=e=>{const t={};return"hour"in e?(Object.assign(t,{hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),e.with(t)):e};switch(r){case"y":if(!("year"in o))throw new Error('startOf("y") only valid for year-based types');o=i(o.with({month:1,day:1}));break;case"m":if(!("month"in o))throw new Error('startOf("m") only valid for month-based types');o=i(o.with({day:1}));break;case"w":{const e="toPlainDate"in o?o.toPlainDate():o,r=e.dayOfWeek-1,a=e.subtract({days:r});o="toPlainDateTime"in o?i(a.toPlainDateTime(null!==(n=null===(t=o.toPlainTime)||void 0===t?void 0:t.call(o))&&void 0!==n?n:jl.PlainTime.from("00:00"))):a;break}case"d":o=i(o);break;case"h":o=o.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"i":o=o.with({second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"s":o=o.with({millisecond:0,microsecond:0,nanosecond:0});break;default:throw new Error("Invalid unit for startOf: "+e)}return this.withValue(o)}endOf(e="d"){const t=jl.Now.timeZoneId(),n=ld[e]||e;let r,o=(()=>{switch(this.kind){case"zoned":return this.value;case"dateTime":{const e=`${this.value.toString()}[${t}]`;return jl.ZonedDateTime.from(e)}case"date":{const e=`${this.value.toString()}T00:00[${t}]`;return jl.ZonedDateTime.from(e)}case"time":{const e=this.value,n=`${jl.Now.plainDateISO().toString()}T${e.toString()}[${t}]`;return jl.ZonedDateTime.from(n)}case"yearMonth":{const e=`${this.value.toPlainDate({day:1}).toString()}T00:00[${t}]`;return jl.ZonedDateTime.from(e)}case"monthDay":{const e=this.value,n=jl.Now.plainDateISO(),r=`${e.toPlainDate({year:n.year}).toString()}T00:00[${t}]`;return jl.ZonedDateTime.from(r)}default:throw new Error("Unsupported kind in endOf")}})(this.value);switch(n){case"y":r=o.with({month:1,day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({years:1});break;case"m":r=o.with({day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({months:1});break;case"w":{const e=-(o.toPlainDate().dayOfWeek-1);r=o.add({days:e}).with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({weeks:1});break}case"d":r=o.with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({days:1});break;case"h":r=o.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({hours:1});break;case"i":case"n":case"min":r=o.with({second:0,millisecond:0,microsecond:0,nanosecond:0}).add({minutes:1});break;case"s":r=o.with({millisecond:0,microsecond:0,nanosecond:0}).add({seconds:1});break;default:throw new Error("Invalid unit for endOf: "+e)}const i=r.subtract({milliseconds:1});switch(this.kind){case"zoned":return this.withValue(i);case"dateTime":return this.withValue(i.toPlainDateTime());case"date":return this.withValue(i.toPlainDate());case"time":return this.withValue(i.toPlainTime());case"yearMonth":{const e=i.toPlainDate();return this.withValue(new jl.PlainYearMonth(e.year,e.month))}case"monthDay":{const e=i.toPlainDate();return this.withValue(new jl.PlainMonthDay(e.month,e.day))}default:throw new Error("Unsupported kind in endOf")}}clone(){return this.withValue(this.value)}isLeapYear(){if(this.isValid){const e=this.year();return e%4==0&&e%100!=0||e%400==0}return!1}daysInMonth(){if(this.isValid)switch(this.month()){case 2:return this.year()%4==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}valueOf(){return this.unix(!0)}}wd=new WeakMap,Td.systemTimeZoneId=jl.Now.timeZoneId();class Sd extends Td{constructor(e,t,n,r,o,i,a){let s;if(e)if(void 0===t)if(e instanceof jl.PlainDateTime)s=e;else if(e instanceof Date)s=new jl.PlainDateTime(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");s=jl.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Td.systemTimeZoneId).toPlainDateTime()}else s=new jl.PlainDateTime(e,t,n||1,r||0,o||0,i||0,a||0);else s=jl.PlainDateTime.from(jl.Now.plainDateTimeISO());super(s),this.kind="dateTime"}format(e){return[!0,"long","full"].includes(e)&&(e=$u(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long",hour:"2-digit",minute:"2-digit",second:void 0}).pattern),e||(e=$u(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:void 0}).pattern),Td.prototype.format.call(this,e)}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),o=Object.assign(Object.assign({year:"numeric",month:e?"long":"2-digit",day:"2-digit"},n?{weekday:e?"long":"short"}:{}),t?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}ftime(e=!1){if(!this.value)return"";const t=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),n={hour:"2-digit",minute:"2-digit"};e&&(n.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],n).format(t)}}class Dd extends Td{constructor(e,t,n){let r;if(e)if(void 0===t)if(e instanceof jl.PlainDate)r=e;else if(e instanceof Date)r=new jl.PlainDate(e.getFullYear(),e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const t=new Date(e);r=new jl.PlainDate(t.getFullYear(),t.getMonth()+1,t.getDate())}}else r=new jl.PlainDate(e,t,n||1);else r=jl.PlainDate.from(jl.Now.plainDateISO());super(r),this.kind="date"}compareSameKind(e){const t=jl.PlainDate.compare(this.value,e.value);return t<0?-1:t>0?1:0}format(e){return!0===e&&(e=$u(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long"}).pattern),e||(e=$u(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric"}).pattern),Td.prototype.format.call(this,e)}ftime(e=!1){return"00:00"+(e?":00":"")}fdate(e=!1,t=!1){const n=new Date(this.year(),this.month()-1,this.day()),r=Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},t?{weekday:e?"long":"short"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],r).format(n)}}class zd extends Td{constructor(e,t,n,r,o,i,a,s){let m;if(e)if(void 0===t)if(e instanceof jl.ZonedDateTime)m=e;else if(e instanceof Date)m=function(e,t=!1,n=jl.Now.timeZoneId()){const r=jl.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(n);return t?r:r.toPlainDateTime()}(e,!0);else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtZoned");m=jl.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone)}else{m=new jl.PlainDateTime(t,n,r||1,o||0,i||0,a||0,s||0).toZonedDateTime(e||jl.Now.timeZoneId())}else m=jl.Now.zonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone);super(m),this.kind="zoned"}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),o=Object.assign(Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},n?{weekday:e?"long":"short"}:{}),t?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}ftime(e=!1){if(!this.value)return"";const t=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),n={hour:"2-digit",minute:"2-digit"};e&&(n.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],n).format(t)}}class Ad extends Td{constructor(e,t){let n;if(e)if(void 0===t)if(e instanceof jl.PlainYearMonth)n=e;else if(e instanceof Date)n=new jl.PlainYearMonth(e.getFullYear(),e.getMonth()+1);else{if("number"!=typeof t)throw new Error("Invalid value for bbnDtDateTime");{const e=new Date(t);n=new jl.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}}else n=new jl.PlainYearMonth(e,t);else{const e=new Date;n=new jl.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}super(n),this.kind="yearMonth"}format(e){return!0===e&&(e=$u(bbn.dt.locales.date,e=>"numeric"===e.year&&"long"===e.month&&!("day"in e)).pattern),e||(e=$u(bbn.dt.locales.date,e=>"numeric"===e.year&&"numeric"===e.month&&!("day"in e)).pattern),Td.prototype.format.call(this,e)}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1),o={year:"numeric",month:e?"long":"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}}class Hd extends Td{constructor(e,t){let n;if(e)if(void 0===t)if(e instanceof jl.PlainMonthDay)n=e;else if(e instanceof Date)n=new jl.PlainMonthDay(e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const t=new Date(e);n=new jl.PlainMonthDay(t.getMonth()+1,t.getDate())}}else n=new jl.PlainMonthDay(e,t);else{const e=new Date;n=new jl.PlainMonthDay(e.getMonth()+1,e.getDate())}super(n),this.kind="monthDay"}fdate(e=!1,t=!1,n=!1){if(!this.value)return"";const r=new Date(2e3,this.month()-1,this.day()),o={month:e?"long":"numeric",day:"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],o).format(r)}}function kd(e,t,n){let r="";const o=e.some(e=>"dayPeriod"===e.type),i=o||"h12"===t||"h11"===t,a=!!n.weekday,s="short"===n.month||"long"===n.month,m="numeric"===n.year&&"numeric"===n.month&&"numeric"===n.day&&!a&&!s;for(const t of e)switch(t.type){case"year":"2-digit"===n.year?r+="YY":r+="YYYY";break;case"month":if("short"===n.month){r+="MMM";break}if("long"===n.month){r+="MMMM";break}if(m){r+="M";break}/^\d+$/.test(t.value)?r+=2===t.value.length?"MM":"M":r+=t.value.length>3?"MMMM":"MMM";break;case"day":if(m){r+="D";break}r+=2===t.value.length?"DD":"D";break;case"weekday":"short"===n.weekday||"narrow"===n.weekday?r+="ddd":"long"===n.weekday?r+="dddd":r+=t.value.length>3?"dddd":"ddd";break;case"hour":r+=i?2===t.value.length?"hh":"h":2===t.value.length?"HH":"H";break;case"minute":r+="II";break;case"second":r+="SS";break;case"dayPeriod":r+="A";break;case"timeZoneName":r+="z";break;case"literal":if(!t.value)break;if(/[A-Za-zÀ-ÖØ-öø-ÿ]/.test(t.value)){r+=`[${t.value.replace(/]/g,"\\]")}]`}else r+=t.value;break;default:r+=t.value}return r}const Id=()=>{if(Object.keys(bbn.dt.locales).length)return;const e=[bbn.env.lang,...navigator.languages],t=new Intl.DateTimeFormat(e,{month:"long"}),n=new Intl.DateTimeFormat(e,{month:"short"}),r=new Intl.DateTimeFormat(e,{weekday:"long"}),o=new Intl.DateTimeFormat(e,{weekday:"short"}),i=new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"short"}),a=new Intl.DateTimeFormat(e,{dateStyle:"long",timeStyle:"long"}),s=new Intl.DateTimeFormat(e,{year:"numeric",month:"numeric",day:"numeric"}),m=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),l=new Intl.Locale(e[0]),u=[],d=[];for(let e=0;e<12;e++){const r=new Date(2020,e,1);u.push(t.format(r)),d.push(n.format(r))}const c=new Date(2020,1,2),h=[],f=[];for(let e=0;e<7;e++){const t=new Date(c.getTime()+864e5*e);h.push(r.format(t)),f.push(o.format(t))}const{date:M,time:y,datetime:g}=(e=>{e||(e=[bbn.env.lang,...navigator.languages]);const t=new Date(Date.UTC(2e3,0,2,13,45,30)),n=[],r=[],o=[],i=new Set,a=new Set,s=new Set,m=[{year:"numeric",month:"2-digit",day:"2-digit"},{year:"numeric",month:"numeric",day:"numeric"},{year:"numeric",month:"short",day:"numeric"},{year:"numeric",month:"long",day:"numeric"},{weekday:"short",year:"numeric",month:"short",day:"numeric"},{weekday:"long",year:"numeric",month:"long",day:"numeric"},{year:"numeric",month:"numeric"},{year:"numeric",month:"2-digit"},{year:"numeric",month:"short"},{year:"numeric",month:"long"},{month:"numeric",day:"numeric"},{month:"2-digit",day:"2-digit"},{month:"short",day:"numeric"},{month:"long",day:"numeric"}],l=[];for(const r of m){const o=new Intl.DateTimeFormat(e,r),a=kd(o.formatToParts(t),o.resolvedOptions().hourCycle,r);i.has(a)||(i.add(a),n.push({pattern:a,sample:o.format(t),options:r})),r.year&&r.month&&r.day&&l.push(r)}const u=[{hour:"numeric"},{hour:"2-digit",minute:"2-digit"},{hour:"2-digit",minute:"2-digit",second:"2-digit"},{hour:"2-digit",minute:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"},{hour:"2-digit",minute:"2-digit",timeZoneName:"long"}];for(const n of u){const o=new Intl.DateTimeFormat(e,n),i=kd(o.formatToParts(t),o.resolvedOptions().hourCycle,n);a.has(i)||(a.add(i),r.push({pattern:i,sample:o.format(t),options:n}))}for(const n of l)for(const r of u){const i=Object.assign(Object.assign({},n),r),a=new Intl.DateTimeFormat(e,i),m=kd(a.formatToParts(t),a.resolvedOptions().hourCycle,i);s.has(m)||(s.add(m),o.push({pattern:m,sample:a.format(t),options:i}))}return{date:n,time:r,datetime:o}})(e),p=l.getWeekInfo?l.getWeekInfo():{firstDay:1};Mu(bbn.dt.locales,{formatters:{short:i,long:a,numeric:s,relative:m},firstDayOfWeek:p.firstDay,monthsLong:u,monthsShort:d,weekdaysLong:h,weekdaysShort:f,locale:l,date:M,time:y,datetime:g})};class _d extends Td{constructor(e,t,n,r){let o;if(e)if(void 0===e)if(e instanceof jl.PlainTime)o=e;else if(e instanceof Date)o=new jl.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");if(void 0!==t)o=new jl.PlainTime(e,t,n||0,r||0);else{const t=new Date(e);o=new jl.PlainTime(t.getHours(),t.getMinutes(),t.getSeconds(),1e6*t.getMilliseconds())}}else o=new jl.PlainTime(e,t||0,n||0,r||0);else{const e=new Date;o=new jl.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds())}super(o),this.kind="time"}ftime(e=!1){if(!this.value)return"";const t=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),n={hour:"2-digit",minute:"2-digit"};e&&(n.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],n).format(t)}}const Cd=function(e,t){try{return t?e.toLocaleLowerCase(t):e.toLowerCase()}catch(t){return e.toLowerCase()}};function Pd(e,t,n="auto",r,o){var i,a,s,m,l,u,d;Id();const c=jl;if(!c)throw new Error("Temporal API is required (load @js-temporal/polyfill)");let h=!0;o||(o=(null===(i=null===bbn||void 0===bbn?void 0:bbn.dt)||void 0===i?void 0:i.locales)||{});const f={monthsLong:null!==(a=null==o?void 0:o.monthsLong)&&void 0!==a?a:bbn.dt.locales.monthsLong,monthsShort:null!==(s=null==o?void 0:o.monthsShort)&&void 0!==s?s:bbn.dt.locales.monthsShort,weekdaysLong:null!==(m=null==o?void 0:o.weekdaysLong)&&void 0!==m?m:bbn.dt.locales.weekdaysLong,weekdaysShort:null!==(l=null==o?void 0:o.weekdaysShort)&&void 0!==l?l:bbn.dt.locales.weekdaysShort},M=(null===bbn||void 0===bbn?void 0:bbn.env)&&(null===(u=bbn.env)||void 0===u?void 0:u.lang)||(null===bbn||void 0===bbn?void 0:bbn.dt)&&(null===(d=bbn.dt)||void 0===d?void 0:d.locale)||Intl.DateTimeFormat().resolvedOptions().locale,y=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function g(t,n="auto"){var o;const i=new Sd,a={year:i.year(),month:1,day:1,hour:0,minute:0,second:0,ms:0,hasYear:!1,hasMonth:!1,hasDay:!1,hasHour:!1,hasMinute:!1,hasSecond:!1,hasMs:!1},s="auto"===n,m="zoned"===n.toLowerCase(),l="datetime"===n.toLowerCase(),u="date"===n.toLowerCase(),d="time"===n.toLowerCase(),g="yearmonth"===n.toLowerCase(),p="monthday"===n.toLowerCase(),b=[{token:"YYYY",regex:"\\d{4}",apply:(e,t)=>{t.year=parseInt(e,10),t.hasYear=!0}},{token:"YY",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);t.year=n>=70?1900+n:2e3+n,t.hasYear=!0}},{token:"Y",regex:"[+-]?\\d{1,6}",apply:(e,t)=>{t.year=parseInt(e,10),t.hasYear=!0}},{token:"MMMM",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cd(e,M),r=f.monthsLong.findIndex(e=>Cd(e,M)===n);if(-1===r)throw new Error("Invalid month name: "+e);t.month=r+1,t.hasMonth=!0}},{token:"MMM",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cd(e,M),r=f.monthsShort.findIndex(e=>Cd(e,M)===n);if(-1===r)throw new Error("Invalid short month name: "+e);t.month=r+1,t.hasMonth=!0}},{token:"MM",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid month: "+n);t.month=n,t.hasMonth=!0}},{token:"mm",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"M",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid month: "+n);t.month=n,t.hasMonth=!0}},{token:"m",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid month: "+n);t.month=n,t.hasMonth=!0}},{token:"DD",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>31)throw new Error("Invalid day of month: "+n);t.day=n,t.hasDay=!0}},{token:"D",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>31)throw new Error("Invalid day of month: "+n);t.day=n,t.hasDay=!0}},{token:"d",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>31)throw new Error("Invalid day of month: "+n);t.day=n,t.hasDay=!0}},{token:"dddd",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cd(e,M),r=f.weekdaysLong.findIndex(e=>Cd(e,M)===n);if(-1===r)throw new Error("Invalid weekday name: "+e);t.weekday=r}},{token:"ddd",regex:"[^\\d\\s]+",apply:(e,t)=>{const n=Cd(e,M),r=f.weekdaysShort.findIndex(e=>Cd(e,M)===n);if(-1===r)throw new Error("Invalid short weekday name: "+e);t.weekday=r}},{token:"EE",regex:"\\d{1}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>7)throw new Error("Invalid weekday number: "+n);t.weekday=n}},{token:"hh",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>12)throw new Error("Invalid 12-hour clock hour: "+n);t.hour=n,t.hasHour=!0,t.uses12Hour=!0}},{token:"HH",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>23)throw new Error("Invalid hour: "+n);t.hour=n,t.hasHour=!0}},{token:"H",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>23)throw new Error("Invalid hour: "+n);t.hour=n,t.hasHour=!0}},{token:"h",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>23)throw new Error("Invalid hour: "+n);t.hour=n,t.hasHour=!0}},{token:"II",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"I",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"i",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid minute: "+n);t.minute=n,t.hasMinute=!0}},{token:"SS",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"S",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"ss",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"s",regex:"\\d{2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>59)throw new Error("Invalid second: "+n);t.second=n,t.hasSecond=!0}},{token:"ms",regex:"\\d{1,3}",apply:(e,t)=>{const n=parseInt(e,10);if(n<0||n>999)throw new Error("Invalid millisecond: "+n);t.ms=n,t.hasMs=!0}},{token:"WWWW",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"WWW",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"WW",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"W",regex:"\\d{1,2}",apply:(e,t)=>{const n=parseInt(e,10);if(n<1||n>53)throw new Error("Invalid week number: "+n);t.week=n}},{token:"ZZ",regex:"(?:Z?[+-]\\d{2}\\d{2})",apply:(e,t)=>{if("Z"===e||"z"===e)return void(t.offsetMinutes=0);const n="-"===e[0]?-1:1,r=e.slice(1),o=parseInt(r.slice(0,2),10),i=parseInt(r.slice(2),10);if(o<0||o>23||i<0||i>59)throw new Error("Invalid timezone offset: "+e);t.offsetMinutes=n*(60*o+i)}},{token:"Z",regex:"(?:Z?[+-]\\d{2}\\:{1}\\d{2})",apply:(e,t)=>{if("Z"===e||"z"===e)return void(t.offsetMinutes=0);const n="-"===e[0]?-1:1,r=e.slice(1),[o,i]=r.split(":");let a=parseInt(o,10),s=parseInt(i,10);if(a<0||a>23||s<0||s>59)throw new Error("Invalid timezone offset: "+e);t.offsetMinutes=n*(60*a+s)}},{token:"z",regex:"[A-Za-z_\\/]+",apply:(e,t)=>{t.timeZone=e}},{token:"A",regex:"(?:AM|PM|am|pm)",apply:(e,t)=>{t.isPM=/pm/i.test(e),t.hasAmPm=!0}},{token:"a",regex:"(?:AM|PM|am|pm)",apply:(e,t)=>{t.isPM=/pm/i.test(e),t.hasAmPm=!0}}],w=[...b].sort((e,t)=>t.token.length-e.token.length);let v="";const E=[];let T=0,S=0;for(;T<t.length;){if("["===t[T]){let e=T+1,n="";for(;e<t.length&&"]"!==t[e];)n+=t[e],e++;if(e<t.length&&"]"===t[e]){const t=n.replace(/\\]/g,"]");v+=y(t),T=e+1;continue}}let e=null;for(const n of w)if(t.startsWith(n.token,T)){e=n;break}e?(v+=`(${e.regex})`,S=v.length,e.apply?E.push(t=>e.apply(t,a)):E.push(()=>{}),T+=e.token.length):(v+=y(t[T]),T+=1)}const D=new RegExp("^"+bbn.fn.substr(v,0,S));let z=D.exec(e);if(!z){if(!r)throw new Error(`Date string "${e}" does not match format "${t}"`);{const n=new Sd(i.year(),1,1,0,0,0,0);e=n.format(t),h=!1,z=D.exec(e)}}for(let e=1;e<z.length;e++){const t=z[e],n=E[e-1];null!=t&&n&&n(t)}if(a.uses12Hour){if(!a.hasAmPm)throw new Error("AM/PM marker (A or a) is required with 12-hour format (hh)");let e=a.hour;a.isPM?e<12&&(e+=12):12===e&&(e=0),a.hour=e}const A=a.hasYear||a.hasMonth||a.hasDay,H=a.hasYear&&a.hasMonth&&a.hasDay,k=a.hasYear&&a.hasMonth&&!a.hasDay,I=!a.hasYear&&a.hasMonth&&a.hasDay,_=a.hasHour||a.hasMinute||a.hasSecond||a.hasMs,C=null!=a.timeZone||null!=a.offsetMinutes;let P;if(m||C&&s){let e;try{e=new c.PlainDateTime(a.year,a.month,a.day,a.hour,a.minute,a.second,1e6*a.ms)}catch(e){throw new Error("Invalid date/time components")}if(a.timeZone){const t=c.TimeZone.from(a.timeZone),n=e.toZonedDateTime(t);P=new zd(n)}else{const e=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.ms)-6e4*(null!==(o=a.offsetMinutes)&&void 0!==o?o:0);P=new zd(c.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(c.Now.timeZoneId()))}}else if(l||s&&(h||A&&_)){if(!H&&!h)throw new Error("PlainDateTime requires year, month and day");const e=new c.PlainDateTime(a.year,a.month,a.day,a.hour,a.minute,a.second,1e6*a.ms);P=new Sd(e)}else if(u||g||p||s&&A&&!_)if(u||H&&s){const e=new c.PlainDate(a.year,a.month,a.day);P=new Dd(e)}else if(g||k&&s){const e=new c.PlainYearMonth(a.year,a.month);P=new Ad(e)}else if(p||I&&s){const e=new c.PlainMonthDay(a.month,a.day,1972);P=new Hd(e)}else{if(!s||!a.hasYear)throw new Error("Not enough date components for a known Temporal type");{const e=new c.PlainDate(a.year,1,1);P=new Dd(e)}}else{if(!(d||s&&!A&&_))throw new Error("No date or time information found in input");{const e=new c.PlainTime(a.hour,a.minute,a.second,1e6*a.ms);P=new _d(e)}}return P.setValid(h),P}if(Array.isArray(t)){let e=null;for(const r of t)try{return g(r,n)}catch(t){e=t}throw null!=e?e:new Error("No format matched")}return g(t,n)}const Gd=["YYYY-MM-DD HH:II:SS.ms","YYYY-MM-DD HH:II:SS","YYYY-MM-DD HH:II:SS[ GMT]Z","YYYY-MM-DD HH:II","YYYY-MM-DDTHH:II:SS.msZ","YYYY-MM-DDTHH:II:SSZ","YYYY-MM-DDTHH:II:SS","YYYY-MM-DDTHH:II","ddd[, ]DD MMM YYYY HH:II:SS[ GMT]","ddd MMM DD YYYY HH:II:SS[ GMT]Z","ddd MMM DD YYYY HH:II:SS","D MMM","D MMMM","D/M","YYYY-MM-DD","YYYY-MM","HH:II:SS","HH:II"];function Od(e,t,n){const r=e.trim();if(!r)return null;Id();const o=e=>{for(const t of e)try{return Pd(r,t),t}catch(e){}return null};if(t){return o(Array.isArray(t)?t:[t])}const i=new Set,a=Gd.filter(e=>!i.has(e)&&(i.add(e),!0)),s=[...bbn.dt.locales.datetime.map(e=>e.pattern),...bbn.dt.locales.date.map(e=>e.pattern),...bbn.dt.locales.time.map(e=>e.pattern)].filter(e=>!i.has(e)&&(i.add(e),!0)),m=o([...a,...s]);return m||null}const Bd=(e,t=null,n="auto")=>{if(void 0===e)return new Sd;if(!e){const e=new Sd;return e.setValid(!1),e}if("string"==typeof e){if(t)return Pd(e,t,n,!0);{const t=Od(e);if(t)return Pd(e,t,n);throw new Error(Yl("Could not guess the date format for value: %s",e))}}if("number"==typeof e)return new Sd(Math.floor(Math.abs(e)<99999999999?1e3*e:e));if(e.__isBbnDt)return e;if(e instanceof Date){const t=e;return new Sd(t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}if(e instanceof jl.PlainDateTime)return new Sd(e);if(e instanceof jl.PlainDate)return new Dd(e);if(e instanceof jl.PlainTime)return new zd(e);if(e instanceof jl.PlainYearMonth)return new Ad(e);if(e instanceof jl.PlainMonthDay)return new Hd(e);if(e instanceof jl.ZonedDateTime)return new zd(e);if(e instanceof jl.Duration)return new bd(e);throw bbn.fn.log("Invalid date value",e),new Error(Yl("Invalid date value"))};function Nd(e){if(arguments.length>1){const e=[];for(let t=1;t<arguments.length;t++)e.push(arguments[t]);e.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),au.apply(this,e)}throw new Error(e)}function xd(e,t=null,n=null,r=null,o=null){let i=!1;if(t){i=!0;let a,s="object"===(typeof t).toLowerCase();if(s&&t.prescript)try{new Function(t.prescript)()}catch(e){Nd(e.message||"")}if(s&&void 0===t.url&&(t.url=e),i=n&&iu(n)?n(t,o):bbn.fn.defaultLinkFunction(t,o),o&&s&&void 0!==t.content&&("value"in o?o.value=t.content:o.innerHTML=t.content),i&&s&&t.script&&(i="function"==typeof t.script?t.script(t.data?t.data:{},o||null):((e,n)=>{let r=null;try{r=new Function(t.script)(),iu(r)&&(r=r(e,n))}catch(e){au(e,t),Nd(iu(e.getMessage)?e.getMessage():null)}return r})(t.data?t.data:{},o||!1)),i&&r&&iu(r)?r(t):s&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(t,o),i&&s&&t.postscript){new Function(t.postscript)(t.postscript)}s&&t.error&&(a=t.errorTitle||bbn.lng.server_response,bbn.fn.defaultErrorFunction(t.error,a))}else bbn.fn.defaultErrorFunction(bbn.lng.errorText,bbn.lng.error);return i}function Ld(e,t,n=!1){let r={error:!1,result:!0};if("string"==typeof t&&(t=[t]),du(t)||(r.error=bbn._("checkProps must receive a string or an array as props argument")),uu(e)||(r.error=bbn._("checkProps must receive an object as obj argument")),!r.error){let o;fu(t,t=>{let i=(t=t.trim().split(":"))[1]||!1;if(t=t[0],void 0===e[t]?r.error=t+" "+bbn._("is not defined"):i?(o="is"+su(i,0,1).toUpperCase()+su(i,1).toLowerCase(),void 0===bbn.fn[o]?r.error=i+" "+bbn._("is not a valid type"):bbn.fn[o](e[t])||(r.error=t+" "+bbn._("is not a")+" "+i)):n&&!e[t]&&(r.error=t+" "+bbn._("is empty")),r.error)return!1})}return r.error&&(r.result=!1),r}function jd(e){return e.replace(/[A-z]{1}/,e=>e.toUpperCase())}function Rd(e,t,n,...r){let o=!1;du(t)||(t=[t]);const i=[];if(fu(t,t=>{var n;if(t===String?t="string":t===Number?t="number":t===Array?t="array":t===Boolean?t="boolean":t===Object?t="object":t===Function&&(t="function"),iu(t)){if(i.push(t.name||(null===(n=t.constructor)||void 0===n?void 0:n.name)||t.toString()),e instanceof t)return o=!0,!1}else if(ru(t)&&iu(bbn.fn["is"+jd(t)])){if(bbn.fn["is"+jd(t)](e))return o=!0,!1;i.push(t)}else Nd(`The type ${t} is not recognized`)}),!o)throw au(["Value given",e,"type",typeof e,"expected",i.join(" or ")]),r.length&&au(r),new Error((n?n+" - ":"")+bbn._("The value should be a %s",i.join(" "+bbn._("or a")+" ")))}function Fd(e){if(du(e))return e.slice().map(e=>"object"==typeof e?Fd(e):e);if(uu(e)){return Mu(!0,Object.create(Object.getPrototypeOf(e)),e)}return e}Bd.locales=Object.create(null),Bd.parse=Pd,Bd.guessFormat=Od,Bd.time=()=>{},Bd.date=()=>{},Bd.dateTime=()=>{},Bd.duration=(e,t)=>e instanceof jl.Duration?new bd(e):bd.fromUnit(e,t),Bd.zoned=()=>{},Bd.monthDay=()=>{},Bd.yearMonth=()=>{};const Yd=(e,t="text/plain")=>{const n=new DataTransfer;n.setData(t,e);const r=new ClipboardEvent("copy",{bubbles:!0,cancelable:!0,clipboardData:n});document.dispatchEvent(r)};function Zd(e,t,n=null,r="="){if(!du(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");let o={};const i=[],a="function"==typeof t;if(!t||!e.length)return e;if("object"==typeof t)r=n,o=t;else if("string"==typeof t)o[t]=n;else if(!a)throw new Error("Search function error: The prop argument should be a string or an object");if("function"==typeof t)for(let n=0;n<e.length;n++)t(e[n],n)&&i.push(e[n]);else if(o=Uu(o,r),o.conditions&&o.logic)for(let t=0;t<e.length;t++)Wu(e[t],o)&&i.push(e[t]);return i}const Wd=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t=1&t?3988292384^t>>>1:t>>>1;Wd.push(t)}function Ud(...e){const t=Object.create(null);return e.length&&Mu(t,...e),t}function qd(e){let t=typeof e;if(void 0===e)return new Date;if("number"===t||cu(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===t){if(10===e.length)return new Date(parseInt(su(e,0,4)),parseInt(su(e,5,2))-1,parseInt(su(e,8,2)),12);if(19===e.length)return new Date(parseInt(su(e,0,4)),parseInt(su(e,5,2))-1,parseInt(su(e,8,2)),parseInt(su(e,11,2)),parseInt(su(e,14,2)),parseInt(su(e,17,2)))}else if(Hu(e))return e;return!1}function $d(e,t=""){au(e)}function Vd(e,t=null,n=null){au(t,n)}function Kd(e,t,n=null,r=null){return!0}function Jd(...e){if(!e.length)return!1;for(let t of e)if("object"==typeof t&&!Cu(t))return!1;return!0}let Xd=[];function Qd(e){if(ru(e)&&e){for(;"/"===su(e,e.length-1);)e=su(e,0,e.length-1);let t=e.lastIndexOf("/");if(t>0)return su(e,0,t);if(0===t)return"/"}return""}function ec(...e){if(!e.length)return!1;for(let t of e)if("[object Blob]"!=={}.toString.apply(t))return!1;return!0}function tc(e){if(e&&ru(e)){let t=e.split(".");if(t[0]&&t.length>1)return t[t.length-1].toLowerCase()}return""}function nc(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof HTMLCanvasElement))return!1;return!0}function rc(e,t,n=null){if(nc(t))return void t.toBlob(t=>{let n=document.createElement("a");n.download=e,n.href=window.URL.createObjectURL(t),n.className="bbn-no",n.click(),window.URL.revokeObjectURL(n.href)},n||"image/png");n?-1===n.indexOf("/")&&(n="text/"+n):n=uu(t)&&t.type?t.type:"octet/stream";let r=window.document.createElement("a");r.className="bbn-no";let o=null;if(ru(t))o=new Blob([t],{type:n});else try{o=t}catch(e){au(e)}r.href=window.URL.createObjectURL(o),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}var oc=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};function ic(){return oc(this,void 0,void 0,function*(){var e;(null===(e=window.scheduler)||void 0===e?void 0:e.yield)?yield window.scheduler.yield():yield new Promise(requestAnimationFrame)})}var ac=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};function sc(e){let t;return"checkbox"===e.type?e.checked?(t=e.value,t||(t=1)):t=0:"radio"===e.type?e.checked&&(t=e.value):t=e.value,t}function mc(e){let t,n,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),o={};return fu(r,(e,r)=>{if(n=sc(e),void 0!==n&&!e.disabled){let r=e.name;if(-1===r.indexOf("[]")&&r.indexOf("[")>-1&&r.indexOf("]")>-1&&r.lastIndexOf("]")===r.length-1&&(r=nd("][",".",r),r=nd("[",".",r),r=nd("]","",r)),r.length>2&&r.indexOf("[]")===r.length-2)t=su(r,0,r.length-2),void 0===o[t]&&(o[t]=[]),o[t].push(n);else if(r.indexOf(".")>-1){let e,t=r.split(".");e=o;for(let r=0;r<t.length;r++)void 0===o[t[r]]&&(r<t.length-1?e[t[r]]={}:e[t[r]]=n),e=e[t[r]]}else o[r]=n}}),o}function lc(e){return e.filter((e,t,n)=>t===n.indexOf(e))}function uc(e,t=null){let n=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof t)for(;e=e.parentElement.closest(t);)n.push(e);else for(!0===t&&n.push(e);e=e.parentElement;)n.push(e);return n}function dc(e){0!==e.indexOf("--")&&(e="--"+e);let t=getComputedStyle(document.documentElement).getPropertyValue(e);return"string"==typeof t&&(t=t.trim()),t}function cc(){const e=navigator.userAgent.toLowerCase();return/iPhone|Android/i.test(navigator.userAgent)?"mobile":/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(e)?"tablet":"desktop"}function hc(){let e,t=window.getSelection();if(t.rangeCount>0){e=t.getRangeAt(0),au("RANGE",e);let n=e.cloneContents();au("clonedSelection",n);let r=document.createElement("div");return r.appendChild(n),r.innerHTML}return""}function fc(e){return ru(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function Mc(e){let t=document.createElement("div");return t.innerHTML=e,e=t.innerText}function yc(e){let t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t}function gc(e){let t,n={};if(uu(e[0])&&1===e.length)return e[0];for(let r=0;r<e.length;r++)t=typeof e[r],t=t.toLowerCase(),iu(e[r])?(n.errorFn&&!n.abortFn&&(n.abortFn=e[r]),n.successFn&&!n.errorFn?n.errorFn=e[r]:n.successFn||(n.successFn=e[r])):1===e[r]||!0===e[r]?n.force=!0:"string"===t?n.url?n.datatype=e[r]:(n.url=e[r],0===n.url.indexOf(bbn.env.root)&&(n.url=su(n.url,bbn.env.root.length))):e[r]&&"object"===t&&(e[r]instanceof Event?n.e=e[r]:n.ele||1!==e[r].nodeType?"object"===t.toLowerCase()&&(n.obj=e[r]):n.ele=e[r]);return!n.url&&Iu(n)&&(n.url=bbn.env.path),void 0===n.obj&&(n.obj={_bbn:"public"}),n.datatype||(n.datatype="json"),n}function pc(e,t,n=null,r=!1){bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(su(e,0,7))?e:bbn.env.root+e,bbn.env.path=su(bbn.env.url,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e);let o=window.history;if(o){let e=o.state,i={url:bbn.env.path,old_path:bbn.env.old_path||null,data:n||{},reload:!1};e&&e.url===bbn.env.path&&(e.data&&Mu(i.data,e.data),e.title&&!t&&(t=e.title),r=!0),t=t?Mc(t):bbn.env.siteTitle,r?(i.reload=!0,o.replaceState(i,t,bbn.env.url)):o.pushState(i,t,bbn.env.url)}}function bc(...e){let t=gc(e),n=1;if(t){if(0===t.url.indexOf("javascript:"))return!0;if(0===t.url.indexOf("data:"))return!0;if(0===t.url.indexOf("#"))return t.e&&t.e.preventDefault(),document.location.hash=t.url.substring(1),!1;if(0===t.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=t.url,setTimeout(()=>{bbn.env.ignoreUnload=!1},0),!1;if(Ku(t.url))return!1;if((0===t.url.indexOf("http://")||0===t.url.indexOf("https://"))&&0!==t.url.indexOf(bbn.env.host))return t.e&&t.e.preventDefault(),window.open(t.url),!1;if(t.url!==bbn.env.params.join("/")||1===t.force){if(t.e&&t.e.preventDefault(),t.successFn)n=t.successFn(t.url);else if(bbn.fn.defaultPreLinkFunction){let e=bbn.fn.defaultPreLinkFunction(t.url,t.force,t.ele);void 0!==e.data?(Mu(t.obj,e.data),n=1):n=e}if(n){1!==n&&"string"==typeof n&&(t.url=n);let e=bbn._("The Ajax call to")+" "+t.url+" ";return od(t.url,t.datatype,t.obj,n=>{n||au(e+bbn._("returned no answer")),uu(n)&&(0===Object.keys(n).length&&au(e+bbn._("returned an empty object")),n.new_url?(n.old_path=t.url,t.url=n.new_url):n.url&&t.url!==n.url&&(n.old_path=t.url)),xd(t.url,n,t.successFn,null,t.ele)&&void 0===n.noNav&&0!==bbn.env.path.indexOf(t.url)&&pc(t.url,(n.title?n.title+" - ":"")+bbn.env.siteTitle)},t.errorFn||null)}}return!0}}function wc(){let e=bbn.env.width!==window.innerWidth,t=bbn.env.height!==window.innerHeight;if(e||t){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),t&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));let n=parseInt(dc("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<n?"small":"regular"),o=(document.body.className||"").split(" "),i=!1;fu(o,(e,t)=>{if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return i=!0,e!==r&&o.splice(t,1,r),!1}),i||o.push(r),bbn.fn.defaultResizeFunction(),document.body.className=o.join(" ")}}function vc(){return"mobile"===cc()}function Ec(){return"tablet"===cc()}function Tc(){return vc()||Ec()}function Sc(e=!1){let t=(new Date).getTime();return e?Math.round(t/1e3):t}function Dc(e){const t=String(null!=e?e:"").split("-").filter(Boolean);if(!t.length)return{language:"und"};let n,r,o=t[0].toLowerCase();for(let e=1;e<t.length;e++){const o=t[e];n||4!==o.length?r||2!==o.length&&3!==o.length||(r=o.toUpperCase()):n=o[0].toUpperCase()+o.slice(1).toLowerCase()}return{language:o,script:n,region:r}}const zc=globalThis.document?Promise.resolve().then(function(){return Uc}):{};function Ac(e){var t,n,r;const o=null!==(r=null!==(t=e.baseName)&&void 0!==t?t:null===(n=e.toString)||void 0===n?void 0:n.call(e))&&void 0!==r?r:"und",{region:i}=Dc(o),a=i&&zc[i]||{firstDay:1,weekend:[6,7],minimalDays:4};return{firstDay:a.firstDay,weekend:a.weekend.slice(),minimalDays:a.minimalDays}}function Hc(){!function(){if("undefined"==typeof Intl)return;if("function"!=typeof Intl.Locale){class e{constructor(e){const t=Array.isArray(e)?e[0]:e,n=String(null!=t?t:"und"),r=Dc(n);this._tag=n,this._language=r.language,this._script=r.script,this._region=r.region}toString(){return this._tag}get baseName(){return this._tag}get language(){return this._language}get script(){return this._script}get region(){return this._region}getWeekInfo(){return Ac(this)}get weekInfo(){return Ac(this)}}Intl.Locale=e}const e=Intl.Locale.prototype;"function"!=typeof e.getWeekInfo&&(e.getWeekInfo=function(){return Ac(this)}),Object.getOwnPropertyDescriptor(e,"weekInfo")||Object.defineProperty(e,"weekInfo",{configurable:!0,enumerable:!0,get(){return"function"==typeof this.getWeekInfo?this.getWeekInfo():Ac(this)}})}()}var kc=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{m(r.next(e))}catch(e){i(e)}}function s(e){try{m(r.throw(e))}catch(e){i(e)}}function m(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}m((r=r.apply(e,t||[])).next())})};function Ic(){return kc(this,void 0,void 0,function*(){const e=[];"undefined"!=typeof Intl&&"function"==typeof Intl.RelativeTimeFormat||e.push((()=>kc(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return $c}),yield Promise.resolve().then(function(){return Vc})}))()),function(){if("undefined"==typeof Intl||"function"!=typeof Intl.DateTimeFormat)return!0;try{return new Intl.DateTimeFormat("en",{dateStyle:"medium"}),!1}catch(e){return!0}}()&&e.push((()=>kc(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return eh}),yield Promise.resolve().then(function(){return th})}))()),e.length>0&&(yield Promise.all(e)),Hc()})}const _c=()=>{bbn.env.last_focus=bbn.dt().unix()},Cc=e=>{if(_c(),"ajax"!==bbn.env.nav)return;let t=e.target;if(t instanceof HTMLElement&&"A"!==t.tagName){let e=t;for(;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentElement;t=e&&"A"===e.tagName?e:null}t instanceof HTMLElement&&t.hasAttribute("href")&&!t.hasAttribute("target")&&!t.classList.contains("bbn-no")&&(au("Link clicked: "+t.getAttribute("href")),bc(t.getAttribute("href"),e))};function Pc(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||cu(su(e,0,1)))){let t=document.createElement("div");t.style.width=e;let n=!!t.style.width.length;return t.remove(),n}return!1}function Gc(...e){if(!e.length)return!1;for(let t of e)if(!ru(t)||!bbn.var.regexp.ip.test(t))return!1;return!0}function Oc(...e){if(!e.length)return!1;for(let t of e)if("[object Symbol]"!=={}.toString.apply(t))return!1;return!0}function Bc(e){const t=["BBN: "+e];t.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),au.apply(this,t)}function Nc(e,t="",n=null){let r=new FormData,o=(e,t="")=>{(!n||du(n)&&!n.includes(t))&&(e instanceof File?r.append(t,e):du(e)?fu(e,(e,n)=>{o(e,t+"["+n+"]")}):uu(e)&&Object.keys(e).length?lu(e,(n,r)=>{r in e&&o(n,t?t+"["+r+"]":r)}):Cu(e)||void 0===e||r.append(t,e))};return o(e,t),r}function xc(e){return"string"==typeof e?document.querySelector(e):e}function Lc(...e){let t=gc(e);if(t.url)return od(t.url,t.datatype,t.obj,e=>{xd(t.url,e,t.successFn,t.errorFn,t.ele)},t.errorFn,t.abortFn)}function jc(e,t,n,r){if("object"==typeof e&&"string"==typeof t){let o=e;const i=t.split(".");fu(i,(e,t)=>{if(!o){if(!r)throw new Error(bbn._("The object is invalid"));o={}}i.length-1===t?o[e]=n:o=o[e]})}}function Rc(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Fc(e,t=" "){if(" "===t)return e.trim();if(!t)return e;if(t===e)return"";for(;0===e.indexOf(t);)e=su(e,t.length);for(;e.lastIndexOf(t)===e.length-t.length;)e=su(e,0,e.length-t.length);return e}function Yc(e,t,n){return"string"==typeof e.toLowerCase()&&(t||(t=bbn.var.shortenLen),void 0!==n&&ru(n)||(n="..."),e.length>t&&(e=su(e,0,t)+n)),e}var Zc={_addLoader:Du,_compareValues:ku,_deleteLoader:Vu,abort:function(e){let t=Ku(e);(null==t?void 0:t.aborter)&&t.aborter.abort("Operation canceled by the user.")},abortURL:function(e){fu(Ju(bbn.env.loaders,{url:e}),t=>{if(!t||!t.source)throw new Error("Impossible to find the loader with URL "+e);t.source.cancel("Operation canceled by the user.")})},addColors:Xu,addInputs:Qu,addStyle:function(e,t){uu(t)&&lu(t,(t,n)=>{e.style[n]=t})},adjustHeight:function(){let e=arguments;return 1===e.length&&hu(e[0])&&(e=e[0]),ed("height",e)},adjustSize:ed,adjustWidth:function(){let e=arguments;return 1===e.length&&hu(e[0])&&(e=e[0]),ed("width",e)},ajax:od,analyzeFunction:Fu,animateCss:function(e,t,n){e.classList.add("animated"),e.classList.add(t),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function e(r){r.target.removeEventListener(r.type,e),"function"==typeof n&&n.call(this),r.target.classList.remove(t)})},arrayBuffer2String:ad,arrayFromProp:function(e,t){let n=[];return fu(e,(e,r)=>{n.push(zu(e,t))}),n},autoExtend:function(e,t){bbn[e]||(bbn[e]={}),Mu(bbn[e],t)},baseName:sd,br2nl:function(e){return nd("<br />","\n",nd("<br/>","\n",nd("<br>","\n",e)))},calendar:function(e,t=!1){let n=Bd(e);return n.isValid?n.calendar():t&&ru(t)?t:""},callback:xd,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,function(e,t,n,r){return n?n.toUpperCase():t.toLowerCase()})},camelToCss:function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).replace("/^./",function(e){return e.toLowerCase()})},canvasToImage:function(e){let t=new Image;return t.src=e.toDataURL("image/png"),t},cast:function(e){var t;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(t=e.constructor)||void 0===t?void 0:t.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){let t=e.parentNode,n=t.clientWidth,r=t.clientHeight;for(;t&&(!n||!r);)t=e.parentNode,n=t.clientWidth,r=t.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+t.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+t.scrollLeft)+"px",e},checkProps:function(e,t,n=!1){return Ld(e,t,n).result},checkPropsDetails:Ld,checkPropsOrDie:function(e,t,n=!1){let r=Ld(e,t,n);if(r.error)throw new Error(r.error);return!0},checkType:Rd,circularReplacer:function(){const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n),[void 0,Object,Array,null].includes(n.constructor)||(n=Bu(n)?n.bbnId?"__BBN_DOM__"+n.tagName+"/"+n.bbnId+n.bbnHash:"__BBN_DOM__"+n.tagName+"/"+n.className:xu(n)?"__BBN_CP__"+n.$options.name+"/"+n.$cid:n.constructor.toString())}return n}},clone:Fd,colorToHex:function(e){let t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle},compare:Zu,compareConditions:Wu,copy:function(e,t){return new Promise(n=>{if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?(navigator.clipboard.write([new ClipboardItem({[e.type.toString()]:e})]).then(()=>{n(!0)}),t||Yd(e,e.type.toString())):uu(e)&&iu(e.toBlob)?e.toBlob(r=>{const o=new ClipboardItem({[r.type.toString()]:r});navigator.clipboard.write([o]).then(()=>{t||Yd(e,r.type.toString()),n(!0)})}):(navigator.clipboard.writeText(e),t||Yd(e),n(!0)));let r=document.createElement("textarea");r.style.opacity="0",r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),t||Yd(e),n(!0)}n(!1)})},correctCase:jd,count:function(e,t,n=null,r="="){return Zd(e,t,n,r).length||0},crc32:function(e){let t=~0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=t>>>8^Wd[255&(t^r)]}return(-1^t)>>>0},createObject:Ud,cssExists:function(e){let t,n,r=document.styleSheets;for(let o=0;o<r.length;o++){t=1;try{n=r[o].rules||r[o].cssRules}catch(e){if(t=!1,"SecurityError"!==e.name)throw e}if(t)for(let t=0;t<n.length;t++)if(new RegExp("(^|\\s)"+td(e)+"(\\{|\\s)","g").test(n[t].selectorText))return!0}return!1},data2Html:function e(t,n=""){const r=!du(t);let o='<ul class="bbn-bottom-xspadding '+(n||"bbn-ul")+'">';for(let i in t)o+="<li>",r&&(o+="<em>"+i+"</em>: "),t[i]&&(du(t[i])||uu(t[i]))?o+=e(t[i],n):o+=null===t[i]?"<em>null</em>":t[i].toString?t[i].toString():t[i],o+="</li>";return o+='</ul><div class="bbn-bottom-xspadding '+(n||"bbn-div")+'"></div>',o},date:qd,dateSQL:function(e,t){let n=Bd(e);if(n)return n.format("YYYY-MM-DD"+(t?"":" HH:mm:ss"))},deepPath:function e(t,n,r,o=[]){let i;return(i=qu(t,n,0))>-1?(o.push(i),o):(fu(t,(t,i)=>{if(du(t[r])){let a=o.slice();a.push(i);let s=e(t[r],n,r,a);if(!1!==s)return s}}),!1)},defaultAjaxAbortFunction:$d,defaultAjaxErrorFunction:Vd,defaultAlertFunction:function(e,t=null){alert(e)},defaultConfirmFunction:function(e,t,n=null){let r=0;confirm(e)&&iu(t)&&(t(),r=1),!r&&iu(n)&&n()},defaultEndLoadingFunction:Kd,defaultErrorFunction:function(e){au(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,t){return!0},defaultPostLinkFunction:function(e,t=null){return!0},defaultPreLinkFunction:function(e,t=!1,n=null){return au("defaultPreLinkFunction",e,t,n),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,t,n,r){return!0},deleteProp:function(e,t){Rd(e,"object",bbn._("The obj must be an object in setProp")),Rd(t,"string",bbn._("The prop must be a string in setProp")),delete e[t]},diffObj:function e(t,n,r=!1,o=!1){o||(Xd=[]);let i="unchanged";void 0===o&&(o=!1);let a=Ud();if(!iu(t)&&!iu(n)){if(Jd(t)||Jd(n)){let e=(s=t)===(m=n)||Hu(s)&&Hu(m)&&s.getTime()===m.getTime()?i:void 0===s?"created":void 0===m?"deleted":"updated";if(r||e!==i){let r=Ud();return Object.defineProperty(r,"type",{value:e,enumerable:!1}),Object.defineProperty(r,"data",{value:void 0===t?n:t,enumerable:!1}),Object.defineProperty(r,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==t&&Object.defineProperty(r,"newData",{value:n,enumerable:!1}),r}return!1}if(Bu(t)||Bu(n))return!1;if(Xd.includes(t)||Xd.includes(n))return!1;Xd.push(t,n);for(let o in t){if(iu(t[o]))continue;let i;void 0!==n[o]&&(i=n[o]);let s=e(t[o],i,r,!0);s&&(a[o]=s)}for(let o in n){if(iu(n[o])||void 0!==t[o])continue;let i=e(void 0,n[o],r,!0);i&&(a[o]=i)}}var s,m;return!(o&&!r&&!Iu(a))&&a},dirName:Qd,download:function(e,t="",n=null){return t&&"object"==typeof t&&(n=t,t=""),od(e,"blob",n||{_bbn_download:1},(n,r)=>{if(!t){let n="content-disposition",o="attachment; filename=";t=(null==r?void 0:r[n])&&0===r[n].indexOf(o)?su(r[n],o.length+1,r[n].length-o.length-2):sd(e)}if(ec(n)){let e=tc(t),r=["php","html"];if("string"==typeof t&&("type"in n&&"text/html"!==n.type||r.includes(e)))return void rc(t,n)}},e=>{bbn.fn.defaultAjaxErrorFunction(e)})},downloadContent:rc,each:fu,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Nd,escapeDquotes:function(e){return ru(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:td,escapeSquotes:function(e){return ru(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return ru(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,t){let n="";e.match("^(http|https)://")&&(n+="http","s"===(e=e.substring(4)).substr(0,1)&&(n+="s",e=e.substring(1)),n+="://",e=e.substring(3)),fu(Qd(e).split("/"),e=>{n+=encodeURIComponent(e)+"/"});let r=sd(e),o="?",i="";if(r.indexOf(o)){let e=r.split("?");o="&",i="?"+e[1],r=e[0]}return t&&ru(t)?(t.match("^(\\&|\\?)")&&(t=t.substring(1)),t=o+t):t="",n+encodeURIComponent(r)+i+t},executeSlowly:function(e,t){return ac(this,void 0,void 0,function*(){for(let n=0;n<e.length;n++){yield ic();let r=t(e[n],n);if(r instanceof Promise&&(r=yield r),!1===r)return!1}return!0})},extend:Mu,extendOut:function e(...t){let n=null;for(let r of t){if(!uu(r))throw new Error("Each argument for extendOut must be an object, "+typeof r+" given");if(null===n)n=r;else for(let t in r)uu(n[t],r[t])?e(n[t],r[t]):void 0===n[t]&&(n[t]=r[t])}return n},fdate:function(e,t=!1){let n=Bd(e),r=!1;return!0===t&&(r=!0),n.isValid?n.fdate(!1,r):t&&ru(t)?t:""},fdatetime:function(e,t=!1){let n=Bd(e);return n.isValid?n.fdate(!1,!0):t&&ru(t)?t:""},fieldValue:sc,fileExt:tc,filter:Zd,filterToConditions:Uu,findAll:function e(t,n,r,o=[]){let i,a=0;for(;(i=qu(t,n,a))>-1;)o.push(t[i]),a=i+1;return fu(t,t=>{du(t[r])&&e(t[r],n,r,o)}),o},firstVarElement:function(e){const t=e.indexOf("["),n=e.indexOf(".");return-1===t&&-1===n?e:-1===t?e.substring(0,n):-1===n?e.substring(0,t):e.substring(0,Math.min(t,n))},fori:function(e,t,n=e.length-1,r=0){if(du(e)){let o=e.length-1;cu(n)&&0<n&&n<=o||(n=o),(!cu(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(let o=r;o<=n;o++)if(!1===t(e[o],o))return}},forir:function(e,t,n=e.length-1,r=0){if(du(e)){let o=e.length-1;cu(n)&&0<n&&n<=o||(n=o),(!cu(r)||!(0<=r&&r<o)||r>n)&&(r=0);for(let o=n;o>=r;o--)if(!1===t(e[o],o))return}},format:function(e){let t=Array.prototype.slice.call(arguments,1);if(t.length){let n=0;return e.replace(/\%([d|s])/g,(e,r)=>{let o=t[n++];return Rd(o,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),o})}return e},formatBytes:function(e,t=2){if(!e)return"0 B";const n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},formatDate:function(e,t){const n=Bd(e);return n.isValid?n.format(t):""},formatSize:function(e,t){return cu(e)?e+"px":ru(e)?e:!t&&"auto"},formdata:mc,fphone:function(e){var t;if(cu(e)&&(e=e.toString()),ru(e)){const n=(null===(t=bbn.var)||void 0===t?void 0:t.phoneCodes)||[];let r="",o="",i="";if(n.length&&fu(n,t=>{e.startsWith(t.prefix)&&t.prefix.length>o.length&&(o=t.prefix,i=t.mask||"")}),!i.length&&e.startsWith("+")){o.length||(o=e.substr(0,3));const t=e.slice(o.length);for(let e=0;e<t.length;e++)e+1<=t.length&&e%2==0&&(i+="0"+(t[e+1]?"0":"")+" ");i=i.trim()}if(i.length){o.length&&(r=o+" ",e=e.slice(o.length));let t=0;return r+=i.replace(/[0-9]/g,()=>e[t++]||""),r}}return e},fromXml:function(e,t){let n=null;if(window.DOMParser)n=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if(n=new window.ActiveXObject("Microsoft.XMLDOM"),n.async=!1,!n.loadXML(e))throw n.parseError.reason+" "+n.parseError.srcText}function r(e,n){if("#text"==e.nodeName){let t=e.nodeValue;return void(t.trim()&&(n["#text"]=t))}let o={},i=n[e.nodeName];if(i?Array.isArray(i)?n[e.nodeName].push(o):n[e.nodeName]=[i,o]:t&&-1!=t.indexOf(e.nodeName)?n[e.nodeName]=[o]:n[e.nodeName]=o,e.attributes)for(let t of e.attributes)o[t.nodeName]=t.nodeValue;for(let t of e.childNodes)r(t,o)}let o={};for(let e of n.childNodes)r(e,o);return o},ftime:function(e,t){let n=Bd(e);return n.isValid?n.ftime():t&&ru(t)?t:""},getAllTags:function(){return lc(Array.prototype.map.apply(document.all,[e=>e.tagName.toLowerCase()]))},getAncestors:uc,getAttributes:function(e){e.getAttributeNames||Nd("The element is not a proper HTML Element");let t=Object.create(null);return e.getAttributeNames().forEach(n=>{t[n]=e.getAttribute(n)}),t},getBrowserName:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge"):case e.includes("edg/"):return"Edge";case e.includes("opr")&&!!window.opr:return"Opera";case e.includes("chrome")&&!!window.chrome:return"Chrome";case e.includes("trident"):return"Internet Explorer";case e.includes("firefox"):return"Firefox";case e.includes("safari"):return"Safari";default:return"Other"}},getBrowserVersion:function(){const e=navigator.userAgent.toLowerCase();switch(!0){case e.includes("edge/"):return e.split("edge/")[1].split(" ")[0];case e.includes("edg/"):return e.split("edg/")[1].split(" ")[0];case e.includes("opr/")&&!!window.opr:return e.split("opr/")[1].split(" ")[0];case e.includes("chrome/")&&!!window.chrome:return e.split("chrome/")[1].split(" ")[0];case e.includes("trident/"):return e.split("trident/")[1].split(" ")[0];case e.includes("firefox/"):return e.split("firefox/")[1].split(" ")[0];case e.includes("safari/"):return e.split("version/")[1].split(" ")[0];default:return""}},getChrono:function(e="default"){return bbn.fn.microtimestamp()-this.constructor.chronos[e]},getCookie:function(e){let t=e+"=",n=document.cookie.split(";");for(let e=0;e<n.length;e++){let r=n[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(t)){let e=r.substring(t.length,r.length);if(e)return JSON.parse(unescape(e)).value}}return null},getCssVar:dc,getDay:function(e){let t=qd(e);if(t){let e=t.getTime(),r=t.getYear(),o=365*(r-1970);t.getMonth()<2&&r--;for(var n=1972;n<=r;n+=4)o++;return o+Math.floor(e/864e5)}return!1},getDeviceType:cc,getEventData:function(e){let t=e.dataTransfer||e.clipboardData,n=t.getData("Text"),r={raw:n,files:[],str:[]};return new Promise((o,i)=>{let a=!(t instanceof DataTransfer);if(!n&&"copy"===e.type){let e=window.getSelection();r.raw=e.toString();let t=hc();r.str.push({type:"text/plain",data:r.raw}),t!==r.raw?r.str.push({type:"text/html",data:t}):0===r.raw.trim().indexOf("<")&&r.str.push({type:"text/html",data:"<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n"+r.raw+"\n</code>"}),a=!0,o(r)}if(!a){let e=[],n=t.items.length;fu(t.items,(i,s)=>{let m=i.kind,l=i.type;if("file"===m){let m=t.files[s];if(!l&&m.name){let e=m.name.split(".");l=e[e.length-1]}let u=m?m.name:bbn._("untitled"),d=m?m.size:null,c=m?m.lastModified:null,h=i.getAsFile();h?(a=!0,n--,r.files.push({type:l,data:h,name:u,size:d,mdate:c}),e.push(u),n||(r.raw||(r.raw=e.join(", ")),o(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+u)}else a=!0,i.getAsString(t=>{n--,r.str.push({type:l,data:t}),"text/plain"===l&&e.push(name),n||(r.raw||(r.raw=e.join(", ")),o(r))})})}a||setTimeout(()=>{o(r)})})},getField:function(e,t,n="",r=null,o="=",i=0,a=!1,s=void 0){let m;return n&&["object","function"].includes(typeof n)&&6 in arguments&&(s=a),t?(m=$u(e,n,r,o,i,a,void 0),void 0===m?s:m[t]):s},getFieldValues:function(e,t,n,r,o){Rd(t,"string"),n&&(e=Ju(e,n,r,o));let i=[];return fu(e,e=>-1===i.indexOf(e[t])?i.push(e[t]):null),i},getFileContent:function(){let e,t,n="",r="text";bbn.fn.each(arguments,o=>{"string"==typeof o?["binary","text"].includes(o.toLowerCase())?r=o.toLowerCase():n||(n=o,"image"===n&&(n="image/*")):bbn.fn.isFunction(o)&&(e?t||(t=o):e=o)});let o=document.createElement("input");o.type="file",n&&o.setAttribute("accept",n),o.onchange=function(n){var i;const a=null===(i=o.files)||void 0===i?void 0:i[0];if(!a)return;const s=new FileReader;"binary"===r?s.readAsArrayBuffer(a):s.readAsText(a,"UTF-8"),s.onload=function({target:t}){e&&e(null==t?void 0:t.result)},s.onerror=function(){t&&t("error reading file")}},o.click()},getIndex:function(e,t=""){return e.parentElement?(t||Array.from(e.parentElement.children).indexOf(e),Array.from(e.parentElement.children).filter(e=>e.matches(t)).indexOf(e)):-1},getHtml:function(e,t=!1){let n=e.innerHTML();return t&&(n=fc(n)),n.trim()},getHTMLOfSelection:hc,getLoader:Ku,getPath:Nu,getProp:function(e,t){return Rd(e,"object",bbn._("The obj must be an object in setProp")),Rd(t,"string",bbn._("The prop must be a string in setProp")),e[t]},getProperty:zu,getRequestId:rd,getRow:$u,getScrollBarSize:function(){if(void 0===bbn.env.scrollBarSize){let e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px","msOverflowStyle"in e.style&&(e.style.msOverflowStyle="scrollbar"),document.body.appendChild(e);let t=e.offsetWidth;e.style.overflow="scroll";let n=document.createElement("div");n.style.width="100%",e.appendChild(n);let r=n.offsetWidth;e.parentNode.removeChild(e);let o=t-r;bbn.env.scrollBarSize=o?o+1:0}return bbn.env.scrollBarSize},getSortingMoves:function(e,t){if(e.length!==t.length)throw new Error("Lengths must match.");const n=new Set(t);if(n.size!==t.length)throw new Error("dst has duplicates.");const r=new Set(e);if(r.size!==e.length)throw new Error("src has duplicates.");if(e.length!==n.size||Array.from(r).some(e=>!n.has(e)))throw new Error("Arrays must contain the same unique values.");const o=new Map(t.map((e,t)=>[e,t])),i=e.map(e=>o.get(e)),a=(e=>{const t=e.length,n=[],r=Array(t).fill(-1);for(let o=0;o<t;o++){let t=e[o],i=0,a=n.length;for(;i<a;){const r=i+a>>1;e[n[r]]<t?i=r+1:a=r}i>0&&(r[o]=n[i-1]),n[i]=o}const o=[];for(let e=n.length?n[n.length-1]:-1;-1!==e;e=r[e])o.push(e);return o.reverse()})(i),s=new Set(a.map(t=>e[t])),m=Array(t.length).fill(-1);for(let e=t.length-2;e>=0;e--)m[e]=m[e+1],s.has(t[e+1])&&(m[e]=e+1);const l=e.slice(),u=new Map(l.map((e,t)=>[e,t])),d=[];for(let e=0;e<t.length;e++){const n=t[e];if(s.has(n))continue;const r=u.get(n);if(void 0===r)throw new Error("Inconsistent state");const o=m[e],i=-1!==o?u.get(t[o]):l.length;if(void 0===i)throw new Error("Inconsistent state");const a=r<i?i-1:i;if(r!==a){const[e]=l.splice(r,1);l.splice(a,0,e),d.push({from:r,to:a,value:n}),u.clear();for(let e=0;e<l.length;e++)u.set(l[e],e)}}return d},getText:function(e){return e.innerText().trim()},getTimeoff:function(){return bbn.env.isFocused?0:Math.round((new Date).getTime()/1e3-bbn.env.timeoff)},happy:function(...e){return e.unshift({_bbn_console_level:3,_bbn_console_style:"color: white; background: green; font-size: 18px;"}),au.apply(this,e),this},hash:ju,hex2rgb:function(e){"#"!==e.charAt(0)&&(e="#"+e),4===e.length&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},history:function(){return window.history||!1},html2text:Mc,imageToCanvas:yc,imgToBase64:function(e,t="image/png"){return yc(e).toDataURL(t)},info:function(...e){return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),au.apply(this,e),this},init:function(e,t){var n,r;let o;bbn.env.isInit||(bbn.env.root=(null===(r=null===(n=globalThis.document)||void 0===n?void 0:n.baseURI)||void 0===r?void 0:r.length)?globalThis.document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==su(bbn.env.root,-1)&&(bbn.env.root+="/"),"object"==typeof e&&Mu(!0,bbn,e),bbn.env.path=su(bbn.env.url,bbn.env.root.length),o=bbn.env.path.split("/"),fu(o,e=>{""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)}),Ic(),globalThis.document&&(bbn.var.colors&&Xu(bbn.var.colors),document.addEventListener("visibilitychange",()=>{document.hidden?bbn.env.isVisible=!1:bbn.env.isVisible=!0}),document.addEventListener("focus",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!0,bbn.env.last_focus=Sc()}),document.addEventListener("blur",e=>{e.target instanceof HTMLElement&&!e.target.classList.contains("bbn-no")&&(bbn.env.focused=e.target),bbn.env.isFocused=!1,bbn.env.last_focus=Sc()}),document.addEventListener("click",Cc),document.addEventListener("keydown",Cc),document.addEventListener("focusin",_c),document.addEventListener("focusout",_c),window.addEventListener("hashchange",()=>{bbn.env.hashChanged=(new Date).getTime()},!1),window.addEventListener("resize",()=>{wc()}),window.addEventListener("orientationchange",()=>{wc()}),wc(),Tc()&&(document.body.classList.add("bbn-mobile"),Ec()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){let t=window.history;if(!bbn.env.historyDisabled&&t&&bbn.fn.defaultHistoryFunction(t.state)){let e=t.state;e?bc(e.url,Mu({title:e.title||bbn.env.siteTitle},e.data||{})):e&&e.data&&iu(e.data.script)&&e.data.script()}}),window.addEventListener("online",()=>{bbn.env.online=!0}),window.addEventListener("offline",()=>{bbn.env.online=!1}),bbn.env.isInit=!0,document.dispatchEvent(new Event("bbninit"))),bbn.env.logging&&au("Logging in bbn is enabled"))},isActiveInterface:function(e=600){return!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:du,isBlob:ec,isBoolean:function(...e){if(!e.length)return!1;for(let t of e)if(![!0,!1].includes(t))return!1;return!0},isCanvas:nc,isColor:function(...e){if(!e.length)return!1;var t=new RegExp("^(#[a-f0-9]{6}|#[a-f0-9]{3}|rgb *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|rgba *( *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *, *[0-9]{1,3}%? *)|black|green|silver|gray|olive|white|yellow|maroon|navy|red|blue|purple|teal|fuchsia|aqua)$","i");for(let n of e){if(!ru(n))return!1;if(!t.test(n))return!1}return!0},isComment:function(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof Comment))return!1;return!0},isCp:xu,isDataURL:function(...e){if(!e.length)return!1;for(let t of e)if(!/^data:([a-z]+\/[a-z0-9\-\+\.]+(;[a-z\-]+\=[a-z0-9\-\.]+)?)?(;base64)?,/i.test(t))return!1;return!0},isDate:Hu,isDesktopDevice:function(){return"desktop"===cc()},isDimension:function(...e){if(!e.length)return!1;for(let t of e){if("number"!=typeof t||t<0)return!1;if(!Pc(t))return!1}return!0},isDom:Bu,isEmail:function(...e){if(!e.length)return!1;let t=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;for(let n of e){if(!ru(n))return!1;if(!t.test(n))return!1}return!0},isEmpty:_u,isEvent:function(...e){if(!e.length)return!1;for(let t of e)if(!(t instanceof Event))return!1;return!0},isFocused:function(e,t=!1){return e===document.activeElement||t&&e.contains&&e.contains(document.activeElement)},isFunction:iu,isHex:function(e){return Boolean(e.match(/^(0x)?[0-9a-f]+$/i))},isHostname:function(...e){if(!e.length)return!1;for(let t of e){if(!ru(t))return!1;if(!Gc(t)&&!bbn.var.regexp.hostname.test(t))return!1}return!0},isInside:function(e,t){let n=uc(e);if(n.length){if(ru(t)){let e=!1;return fu(n,n=>{if(n.matches&&n.matches(t))return e=!0,!1}),e}if(t instanceof HTMLElement)return n.indexOf(t)>-1}return!1},isInt:ou,isInViewport:function(e,t=!1){const n=e.getBoundingClientRect();if(t)return n.top>=0&&n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth)&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight);const r=e.offsetHeight,o=e.offsetWidth;return n.top>=-r&&n.left>=-o&&n.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Gc,isIterable:hu,isMobile:Tc,isMobileDevice:vc,isNotObject:Jd,isNull:Cu,isNumber:cu,isObject:uu,isPercent:function(...e){if(!e.length)return!1;for(let t of e)if("string"!=typeof t||!t.match(/^\d+(?:\.\d+)?%$/))return!1;return!0},isPrimitive:dd,isPromise:function(...e){if(!e.length)return!1;for(let t of e)if("[object Promise]"!=={}.toString.apply(t))return!1;return!0},isPropSize:function(e){let t=!1;return fu(["width","height","gap","margin","padding","top","left","right","bottom"],n=>{if(-1!==e.indexOf(n))return t=!0,!1}),t},isSame:Yu,isSQLDate:function(...e){if(!e.length)return!1;for(let t of e)if("string"!=typeof t||!t.match(/^([1-2]\d{3})-((0\d)|(1[12]))-(([0-2]\d)|(3[01]))(?:( [0-2]\d):([0-5]\d):([0-5]\d))?$/))return!1;return!0},isString:ru,isSymbol:Oc,isTabletDevice:Ec,isURL:function(...e){if(!e.length)return!1;for(let t of e)if(!bbn.var.regexp.url.test(t))return!1;return!0},isUid:function(...e){if(!e.length)return!1;for(let t of e)if("string"!=typeof t||!t.match(/^[0-9a-f]{32}$/i))return!1;return!0},isValidDimension:Pc,isValidName:function(...e){if(!e.length)return!1;for(let t of e)if(!ru(t)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(t))return!1;return!0},isVue:function(...e){if(!e.length)return!1;if("vue"in bbn&&window.Vue)if("app"in bbn.vue){for(let t of e)if(!t||"function"!=typeof t.render)return!1}else for(let t of e)if(!(t instanceof window.Vue))return!1;return!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent||bbn.cp.isComponent(...e)},isWritable:function(e,t){let n;for(;e&&(n=Object.getOwnPropertyDescriptor(e,t),!n);)e=Object.getPrototypeOf(e);return!n||Boolean(n.writable||n.set)},iterate:lu,lightenDarkenHex:function(e,t){if(e&&t){let n="#"===e[0];e=n?e.slice(1):e;let r=parseInt(e,16),o=(r>>16)+t,i=(r>>8&255)+t,a=(255&r)+t;return o>255?o=255:o<0&&(o=0),i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),(n?"#":"")+(a|i<<8|o<<16).toString(16)}},link:bc,log:au,makeReactive:function e(t,n,r,o){const i=(null==r?void 0:r.$cid)||"",a="__bbn_"+(i?i+"_":"");if(t&&"object"==typeof t&&[void 0,Object,Array].includes(t.constructor)){if(t.__bbnIsProxy&&t.__bbnParent===r)return t;r&&r.$options&&"bbn-loadbar"===r.$options.name&&au(["MAKING bbn-loadbar",t]),t.__bbnWatchers||Reflect.defineProperty(t,"__bbnWatchers",{value:Ud(),writable:!0,configurable:!0,enumerable:!1});return new Proxy(t,{get(s,m){const l=Reflect.get(s,m),u=s.__bbnRoot||s;if(Oc(m))return Reflect.get(u,m);const d=o?o+"."+m:m,c=a+(cu(m)?m.toString():m);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(m)&&du(s))return function(...e){let t=u[m](...e);return Bc("DOING ARRAY STUFF"),au(s.__bbnParent),n(s,"length",r),t};if(iu(l))return l;if("__bbnRoot"===m){let e=t;for(;e&&(null==e?void 0:e.__bbnTarget);)e=e.__bbnTarget;return e}return"__bbnIsProxy"===m||("__bbnTarget"===m?s:"__bbnParent"===m?r:"__bbnWatchers"===m?s.__bbnWatchers:0===m.indexOf("__bbn_")?Reflect.get(s,m):"length"===m&&du(s.__bbnRoot||s)?u.length:m in s&&l&&"object"==typeof l&&[void 0,Object,Array].includes(l.constructor)?(l.__bbnIsProxy&&l.__bbnParent===r||(c in u||Reflect.defineProperty(u,c,{value:e(l,n,r,d),writable:!0,configurable:!0,enumerable:!1}),u[c].__bbnIsProxy&&!u.__bbnWatchers[i]&&(u.__bbnWatchers[i]=d)),u[c]):l)},set(t,s,m){if(Oc(s))return Reflect.get(t,s,m);const l=t.__bbnRoot||t,u=o?o+"."+s:s;if(Oc(s))return Reflect.get(t,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&au(["Setting proxy prop in "+r.$options.name,t,s,m]),!Yu(l[s],m)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(l,s,{value:e(m,n,r,u),writable:!0,configurable:!0,enumerable:!1});else if(m&&"object"==typeof m&&[void 0,Object,Array].includes(m.constructor)){const t=a+(cu(s)?s.toString():s);Reflect.defineProperty(l,t,{value:e(m,n,r,u),writable:!0,configurable:!0,enumerable:!1}),l[t].__bbnIsProxy&&!l.__bbnWatchers[i]&&(l.__bbnWatchers[i]=u)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&au(["Setting proxy prop in "+r.$options.name+" "+(cu(s)?s.toString():s),m,t]),Reflect.set(l,s,m),n(t,s,r)}return!0},defineProperty(t,i,s){const m=t,l=o?o+"."+i:i;if("__bbnWatchers"===i||Oc(i)||0===i.indexOf("__bbn_"))Reflect.defineProperty(m,i,s);else{const t=a+(cu(i)?i.toString():i);Reflect.defineProperty(m,t,{value:e(s.value,n,r,l),writable:!0,configurable:!0,enumerable:!1})}return n(t,i,r),!0},deleteProperty(e,t){const n=e;if(0===t.indexOf("__bbn_"))Reflect.deleteProperty(n,t);else{const r=a+(cu(t)?t.toString():t);Reflect.deleteProperty(n,r),Reflect.deleteProperty(e,t)}return!0}})}return t},map:function e(t,n,r,o=0){return t.map((t,i)=>(t=n(t,i,o),r&&t[r]&&du(t[r])&&(t[r]=e(t[r],n,r,o+1)),t))},md5:Ru,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,t,n,r,o,i,a){if(o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),n||(n=void 0===n&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),t||(t=!(void 0!==t||!bbn.env.money||void 0===bbn.env.money.kilo)&&bbn.env.money.kilo),r||(r=!(void 0!==r||!bbn.env.money||void 0===bbn.env.money.novalue)&&bbn.env.money.novalue),cu(a)||(a=t?3:0),0===e&&"number"==typeof a&&a>0){let r=e.toFixed(a).replace(".",o);return n&&(r+=" "+(t?"K"+n:n)),r}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(n?" "+n:"");if("string"==typeof e&&(e=Number(e)),"number"!=typeof e)throw new Error("The value must be a number");t&&e&&(e/=1e3,n&&(n="K"+n));let s=e.toFixed(a),m=0,l=1e4;return s&&(l=s.indexOf("."),l<=0?l=1e4:m=s.length-l),s.replace(/./g,function(e,t,n){return"."===e?o:t&&(n.length-t-m)%3==0&&t<l?i+e:e})+(n?" "+n:"")},move:function(e,t,n){if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}return e.splice(n,0,e.splice(t,1)[0]),e},multiorder:function(e,t){if(!t)return e;let n;if(Array.isArray(t)||"object"!=typeof t)n=t;else for(var r in n=[],t)n.push({field:r,dir:t[r]});if(!Array.isArray(n))throw new Error("The orders argument must be an array");return e.slice().sort((e,t)=>{let r;for(let o of n)if(r=ku(e,t,o.field,o.dir),0!==r)return r;return 0})},mutateArray:function(e,t,n=null){if(!du(e,t))throw new TypeError("mutateArray can only be called with arrays");n?Rd(n,"function","The hash function must be a function"):n=ju;const r=new Map(t.map(e=>[n(e),e]));let o=[];t.forEach(e=>{o.push(e)});let i=e.length;for(;i--;)r.has(n(e[i]))||e.splice(i,1);for(let t=0;t<o.length;t++)if(t>=e.length||!Yu(e[t],o[t])){const n=qu(e,o[t]);if(-1!==n){const[r]=e.splice(n,1);e.splice(t,0,r)}else e.splice(t,0,o[t])}return e.length>o.length&&e.splice(o.length,e.length-o.length),e},mutateObject:function(e,t,n){if(!uu(e,t))throw new TypeError("mutateObject can only be called with objects parameters");n?Rd(n,"function","The hash function must be a function"):n=ju;const r=Object.keys(t);for(let t in e)r.includes(t)||delete e[t];return r.forEach(n=>{Yu(e[n],t[n])||(e[n]=t[n])}),e},nl2br:function(e,t){return nd("\n","<br>"+(t?"\n":""),e)},numProperties:Iu,objectToFormData:Nc,order:function(e,t,n="asc"){return e?e.sort(function(e,r){return ku(e,r,t,n)}):e},outerHeight:function(e){if((e=xc(e))&&"offsetHeight"in e){let t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+n)}},outerWidth:function(e){e=xc(e);let t=window.getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+n)},percent:function(e,t){return t/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Lc,postOut:function(e,t,n=null,r=""){let o=document.body.querySelector("form#bbn-form_out");o||(o=document.createElement("form"),o.classList.add("bbn-no"),o.setAttribute("id","bbn-form_out"),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data-encoded"),jc(o,"style.display","none"),document.body.appendChild(o)),o instanceof HTMLFormElement&&(o.innerHTML="",o.setAttribute("action",e),o.setAttribute("target",r||"_blank"),t||(t={}),(t=Ud(t)).bbn||(t.bbn="public"),Qu(o,t),o.submit(),n&&n())},printf:function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,n){return void 0!==t[n]?t[n]:e})},quotes2html:function(e,t){return t&&0!==t.toLowerCase().indexOf("s")||(e=nd("'","&#39;",e)),t&&0!==t.toLowerCase().indexOf("d")||(e=nd('"',"&quot;",e)),e},randomInt:Rc,randomString:function(e,t,n){let r,o,i={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};n||(n="nlu"),e||(r=Rc(8,14)),"string"==typeof t?(n="n",delete i.l,delete i.u,i.n=t,r||(r=e)):"number"==typeof t&&e<t?r=Rc(e,t):e&&(r=e);let a="";for(let e=0;e<r;e++)0===e?"n"!==n&&(o=-1===n.indexOf("u")?"l":"u"):o=n[Math.floor(Math.random()*n.length)],a+=i[o][Math.floor(Math.random()*i[o].length)];return a},range:function(e,t,n){return Array.from({length:(t-e)/n+1},(t,r)=>e+r*n)},removeAccents:Au,removeEmpty:function(e){var t=[];if(du(e))for(let n=0;n<e.length;n++){let r=!1;e[n]&&(du(e[n])?e[n].length&&(r=!0):uu(e[n])?Iu(e[n])&&(r=!0):r=!0),r&&t.push(e[n])}return t},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:fc,removePrivateProp:mu,removeTrailingChars:function(e,t){if(t||(t=" "),t.length){for(;su(e,-t.length)===t;)e=su(e,0,e.length-t.length);for(;su(e,0,t.length)===t;)e=su(e,t.length)}return e},repeat:function(e,t){return e.repeat(t)},replaceAll:nd,replaceSelection:function(e,t){let n,r,o;if(n=window.getSelection(),n.getRangeAt&&n.rangeCount){if(r=window.getSelection().getRangeAt(0),r.deleteContents(),r.createContextualFragment)o=r.createContextualFragment(e);else{const t=document.createElement("div");let n;for(t.innerHTML=e,o=document.createDocumentFragment();n=t.firstChild;)o.appendChild(n)}const i=o.firstChild,a=o.lastChild;r.insertNode(o),n.removeAllRanges(),t?(i&&(r.setStartBefore(i),r.setEndAfter(a)),n.addRange(r)):(r.setStartAfter(a),n.addRange(r))}},resize:wc,rgb2hex:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},riterate:function(e,t,n=!1){return lu(e,t,n,!0)},roundDecimal:function(e,t){return Number(Math.round(parseFloat(e+"e"+t+"e-"+t)))},sanitize:function(e,t="_"){let n=["[","]","{","}","(",")","-","+","*","/"],r="[";for(let e=0;e<t.length;e++)n.includes(t[e])&&(r+="\\"),r+=t[e];r+="]+";let o=new RegExp(r,"g");return Fc(Au(e).replace(/[^a-z0-9]/gi,t).replace(o,t),t)},search:qu,selectElementText:function(e,t=null){if(t=t||window,e instanceof HTMLInputElement)return void e.select();let n,r,o=t.document;t.getSelection&&o.createRange?(n=t.getSelection(),r=o.createRange(),r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r)):"createTextRange"in o.body&&"function"==typeof o.body.createTextRange&&(r=o.body.createTextRange(),r.moveToElementText(e),r.select())},selector:xc,setCookie:function(e,t,n){let r="";if(n){let e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),r="; expires="+e.toUTCString()}let o=escape(JSON.stringify({value:t}));document.cookie=e+"="+o+r+"; path=/"},setCssVar:function(e,t){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,t)},setNavigationVars:pc,setProp:function(e,t,n,r=!0,o=!0){Object.defineProperty(e,t,{value:n,writable:r,configurable:o})},setProperty:jc,shorten:Yc,shortenObj:function e(t,n=100){let r=Fd(t);return fu(r,(t,o)=>{ru(t)&&t.length>n?r[o]=Yc(t,n):t&&"object"==typeof t&&(r[o]=e(t))}),r},shuffle:function(e){let t,n=e.length;for(;0!=n;)t=Math.floor(Math.random()*n),n--,[e[n],e[t]]=[e[t],e[n]];return e},simpleHash:Ou,simpleHash1:Pu,simpleHash2:Gu,startChrono:function(e){let t=bbn.fn.microtimestamp();return this.constructor.chronos||Object.defineProperty(this.constructor,"chronos",{value:Object.create(null),writable:!1,configurable:!1}),this.constructor.chronos[e||"default"]=t,e},stopChrono:function(e,t){if(this.constructor.chronos[e||"default"]){let n=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],t&&(n=Math.round(n)/1e3),n}throw Error("No chrono with name "+(e||"default"))},stream:function(e,t,n,r,o,i){const a=rd(e,n,"json"),s=Ku(a);if(null==s?void 0:s.loader)return s.loader;n||(n={}),bbn.env.token&&(n._bbn_token=bbn.env.token);const m=new AbortController;let l="";const u=e=>{if(e.length){e=e.indexOf("\n")>-1?bbn.fn.removeEmpty(e.split("\n")):[e];for(let n in e)try{const r=JSON.parse(e[n]);(null==r?void 0:r.__bbn_stream_ping__)||t(r)}catch(e){throw e}}},d=fetch(e,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",signal:m.signal,body:JSON.stringify(n||{})}).then(e=>{if(e.body){const r=e.body.getReader(),o=iu(t);r.read().then(function e({done:s,value:m}){if(s)return Vu(a,n),l&&u(l),void(i&&i());if(o)if(l+=ad(m).trim(),bbn.fn.log(["STREAM RESULT",l.length,l]),l)try{u(l),l=""}catch(e){}else t();else bbn.fn.log(["STREAM SUCCESS IS FN? "+o]);return r.read().then(e)})}}).catch(t=>{let i=!(!(s=t)||!0!==s.__BBN_CANCEL__);var s;if(Vu(a,n,i),i){let n=1;iu(o)&&(n=o(t.message,e)),n&&$d(t.message,e)}else{let e=1;iu(r)&&(e=r(t.request,t)),e&&Vd(t.request,t.response?t.response.data:"",t.response?t.response.status:t)}});return Du(a,d,m),d},string2ArrayBuffer:function(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint16Array(t),r=0,o=e.length;r<o;r++)n[r]=e.charCodeAt(r);return t},submit:function(e,t,n){let r,o=e.getAttribute("action")||bbn.env.path;if(""===o&&(o="."),"string"==typeof o&&(0!==o.indexOf("http")||-1!==o.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(t&&t.preventDefault(),r=mc(e),r)){e.setAttribute("action",null);const t=[o,r];!n&&e.getAttribute("data-script")&&(n=(n=new Function(e.getAttribute("data-script")))()),n&&t.push(n),Lc(...t)}},substr:su,sum:function(e,t,n,r,o){let i=0;return fu(Zd(e,n,r,o),e=>{let n="function"==typeof t?t(e):e[t];n&&(i+=parseFloat(n)||0)}),i},timestamp:Sc,toCSV:function(e,t=",",n="",r='"'){t||(t=","),r||(r='"');let o="",i=e.length;return fu(e,(e,a)=>{let s=du(e)?e.length:Object.values(e).length,m=0;fu(e,e=>{o+="string"==typeof e?r+nd(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,m++,m<s&&(o+=t)}),a<i-1&&(o+=n+"\n")}),o},toggleFullScreen:function(){"mozRequestFullScreen"in window.document.documentElement?window.document.mozFullScreen?window.document.mozCancelFullScreen():"function"==typeof window.document.documentElement.mozRequestFullScreen&&window.document.documentElement.mozRequestFullScreen():"webkitRequestFullScreen"in window.document.documentElement?window.document.webkitIsFullScreen?window.document.webkitCancelFullScreen():"function"==typeof window.document.documentElement.webkitRequestFullScreen&&window.document.documentElement.webkitRequestFullScreen():"msRequestFullScreen"in window.document.documentElement?window.document.msFullscreenEnabled?window.document.msExitFullscreen():"function"==typeof window.document.documentElement.msRequestFullScreen&&window.document.documentElement.msRequestFullScreen():"requestFullscreen"in window.document&&(window.document.fullscreenEnabled?window.document.exitFullscreen():window.document.documentElement.requestFullscreen()),setTimeout(function(){wc()},0)},translate:function(e,t){let n=t?bbn.lng[0===t.indexOf("_")?t:"_"+t]:bbn.lng;lu(e,(e,t)=>{n[t]=e})},treatAjaxArguments:gc,treatForHash:Lu,trim:Fc,uniqString:function(...e){for(var t="",n=0;n<e.length;n++)if(e[n])if("object"==typeof e[n])if(du(e[n]))t+=JSON.stringify(e[n]);else{let r={};fu(Object.keys(e[n]).sort(),t=>{r[t]=e[n][t]}),t+=JSON.stringify(r)}else"string"!=typeof e[n]?t+=e[n].toString():t+=e[n];else t+="__bbn_empty__";return Ru(t)},unique:lc,upload:function(e,t,n=null,r=null,o=null){const i=()=>nu.run("post",e||bbn.env.path,{data:Nc(t),headers:{},onUploadProgress(e){if(o){let t=Math.round(100*e.loaded/e.total);o(t,e.loaded,e.total)}}});return n||r?i().then(e=>{n&&(au("SUCCESS",e),n(e))}).catch(e=>{r&&(au("ERROR",e),r(e))}):i()},warning:Bc,yieldToBrowser:ic};const Wc={version:"1.0.1",opt:{_cat:{}},app:{},_:Yl,$:function(e,t){if(null==t?void 0:t.querySelectorAll)return t.querySelectorAll(e);if(t)throw new Error("Invalid context");return document.body.querySelectorAll(e)},lng:{select_unselect_all:"Select/Clear all",select_all:"Select all",search:"Search",loading:"Loading...",choose:"Choose",error:"Error",server_response:"Server response",reload:"Reload",errorText:"Something went wrong",closeAll:"Close all",closeOthers:"Close others",pin:"Pin",arrange:"Arrange",cancel:"Cancel",unpin:"Unpin",yes:"Yes",no:"No",unknown:"Unknown",untitled:"Untitled",confirmation:"Confirmation",Today:"Today",Tomorrow:"Tomorrow",Yesterday:"Yesterday"},var:Kl,dt:Bd,com:nu,env:Jl,db:Su,fn:Zc,info:[{value:"ajax",label:"Loading and streaming",description:"Functions related to Ajax requests",icon:"nf nf-fa-rocket"},{value:"browser",label:"Browser-only",description:"Functions that can only be run in the browser",icon:"nf nf-fa-desktop"},{value:"convert",label:"Conversion",description:"Functions related to data conversion",icon:"nf nf-fa-exchange"},{value:"datetime",label:"Date and time",description:"Functions related to dates and times",icon:"nf nf-fa-calendar"},{value:"form",label:"Form manipulation",description:"Functions related to form manipulation and validation",icon:"nf nf-fa-edit"},{value:"html",label:"HTML manipulation",description:"Functions related to HTML manipulation and DOM interaction",icon:"nf nf-fa-html5"},{value:"loop",label:"Looping",description:"Functions related to looping through arrays and objects",icon:"nf nf-fa-repeat"},{value:"misc",label:"Miscellaneous",description:"Miscellaneous functions that do not fit into other categories",icon:"nf nf-fa-cubes"},{value:"object",label:"Object manipulation",description:"Functions related to object manipulation and inspection",icon:"nf nf-fa-object_group"},{value:"phone",label:"Phone and contact",description:"Functions related to phone numbers and contact information",icon:"nf nf-fa-phone"},{value:"string",label:"String manipulation",description:"Functions related to string manipulation and formatting",icon:"nf nf-fa-text_height"},{value:"style",label:"Styling and layout",description:"Functions related to styling and layout management",icon:"nf nf-fa-paint_brush"},{value:"type",label:"Type checking",description:"Functions related to type checking and validation",icon:"nf nf-fa-check_square"}]};"undefined"!=typeof globalThis&&(globalThis.bbn=Wc,globalThis.Temporal||(globalThis.Temporal=jl));var Uc=Object.freeze({__proto__:null,default:{AE:{firstDay:1,weekend:[6,7],minimalDays:1},AF:{firstDay:6,weekend:[4,5],minimalDays:1},AG:{firstDay:7,weekend:[6,7],minimalDays:1},AI:{firstDay:1,weekend:[6,7],minimalDays:1},AL:{firstDay:1,weekend:[6,7],minimalDays:1},AM:{firstDay:1,weekend:[6,7],minimalDays:1},AR:{firstDay:1,weekend:[6,7],minimalDays:1},AS:{firstDay:7,weekend:[6,7],minimalDays:1},AU:{firstDay:1,weekend:[6,7],minimalDays:1},AZ:{firstDay:1,weekend:[6,7],minimalDays:1},BA:{firstDay:1,weekend:[6,7],minimalDays:1},BD:{firstDay:7,weekend:[6,7],minimalDays:1},BH:{firstDay:6,weekend:[5,6],minimalDays:1},BM:{firstDay:1,weekend:[6,7],minimalDays:1},BN:{firstDay:1,weekend:[6,7],minimalDays:1},BR:{firstDay:7,weekend:[6,7],minimalDays:1},BS:{firstDay:7,weekend:[6,7],minimalDays:1},BT:{firstDay:7,weekend:[6,7],minimalDays:1},BW:{firstDay:7,weekend:[6,7],minimalDays:1},BY:{firstDay:1,weekend:[6,7],minimalDays:1},BZ:{firstDay:7,weekend:[6,7],minimalDays:1},CA:{firstDay:7,weekend:[6,7],minimalDays:1},CL:{firstDay:1,weekend:[6,7],minimalDays:1},CM:{firstDay:1,weekend:[6,7],minimalDays:1},CN:{firstDay:1,weekend:[6,7],minimalDays:1},CO:{firstDay:7,weekend:[6,7],minimalDays:1},CR:{firstDay:1,weekend:[6,7],minimalDays:1},CY:{firstDay:1,weekend:[6,7],minimalDays:1},DJ:{firstDay:6,weekend:[6,7],minimalDays:1},DM:{firstDay:7,weekend:[6,7],minimalDays:1},DO:{firstDay:7,weekend:[6,7],minimalDays:1},DZ:{firstDay:6,weekend:[5,6],minimalDays:1},EC:{firstDay:1,weekend:[6,7],minimalDays:1},EG:{firstDay:6,weekend:[5,6],minimalDays:1},ET:{firstDay:7,weekend:[6,7],minimalDays:1},"GB-alt-variant":{firstDay:7,weekend:[6,7],minimalDays:1},GE:{firstDay:1,weekend:[6,7],minimalDays:1},GT:{firstDay:7,weekend:[6,7],minimalDays:1},GU:{firstDay:7,weekend:[6,7],minimalDays:1},HK:{firstDay:7,weekend:[6,7],minimalDays:1},HN:{firstDay:7,weekend:[6,7],minimalDays:1},HR:{firstDay:1,weekend:[6,7],minimalDays:1},ID:{firstDay:7,weekend:[6,7],minimalDays:1},IL:{firstDay:7,weekend:[5,6],minimalDays:1},IN:{firstDay:7,weekend:[7],minimalDays:1},IQ:{firstDay:6,weekend:[5,6],minimalDays:1},IR:{firstDay:6,weekend:[5],minimalDays:1},IS:{firstDay:7,weekend:[6,7],minimalDays:4},JM:{firstDay:7,weekend:[6,7],minimalDays:1},JO:{firstDay:6,weekend:[5,6],minimalDays:1},JP:{firstDay:7,weekend:[6,7],minimalDays:1},KE:{firstDay:7,weekend:[6,7],minimalDays:1},KG:{firstDay:1,weekend:[6,7],minimalDays:1},KH:{firstDay:7,weekend:[6,7],minimalDays:1},KR:{firstDay:7,weekend:[6,7],minimalDays:1},KW:{firstDay:6,weekend:[5,6],minimalDays:1},KZ:{firstDay:1,weekend:[6,7],minimalDays:1},LA:{firstDay:7,weekend:[6,7],minimalDays:1},LB:{firstDay:1,weekend:[6,7],minimalDays:1},LK:{firstDay:1,weekend:[6,7],minimalDays:1},LV:{firstDay:1,weekend:[6,7],minimalDays:1},LY:{firstDay:6,weekend:[5,6],minimalDays:1},MD:{firstDay:1,weekend:[6,7],minimalDays:1},ME:{firstDay:1,weekend:[6,7],minimalDays:1},MH:{firstDay:7,weekend:[6,7],minimalDays:1},MK:{firstDay:1,weekend:[6,7],minimalDays:1},MM:{firstDay:7,weekend:[6,7],minimalDays:1},MN:{firstDay:1,weekend:[6,7],minimalDays:1},MO:{firstDay:7,weekend:[6,7],minimalDays:1},MT:{firstDay:7,weekend:[6,7],minimalDays:1},MV:{firstDay:5,weekend:[6,7],minimalDays:1},MX:{firstDay:7,weekend:[6,7],minimalDays:1},MY:{firstDay:1,weekend:[6,7],minimalDays:1},MZ:{firstDay:7,weekend:[6,7],minimalDays:1},NI:{firstDay:7,weekend:[6,7],minimalDays:1},NP:{firstDay:7,weekend:[6,7],minimalDays:1},NZ:{firstDay:1,weekend:[6,7],minimalDays:1},OM:{firstDay:6,weekend:[5,6],minimalDays:1},PA:{firstDay:7,weekend:[6,7],minimalDays:1},PE:{firstDay:7,weekend:[6,7],minimalDays:1},PH:{firstDay:7,weekend:[6,7],minimalDays:1},PK:{firstDay:7,weekend:[6,7],minimalDays:1},PR:{firstDay:7,weekend:[6,7],minimalDays:1},PT:{firstDay:7,weekend:[6,7],minimalDays:4},PY:{firstDay:7,weekend:[6,7],minimalDays:1},QA:{firstDay:6,weekend:[5,6],minimalDays:1},RO:{firstDay:1,weekend:[6,7],minimalDays:1},RS:{firstDay:1,weekend:[6,7],minimalDays:1},SA:{firstDay:7,weekend:[5,6],minimalDays:1},SD:{firstDay:6,weekend:[5,6],minimalDays:1},SG:{firstDay:7,weekend:[6,7],minimalDays:1},SI:{firstDay:1,weekend:[6,7],minimalDays:1},SV:{firstDay:7,weekend:[6,7],minimalDays:1},SY:{firstDay:6,weekend:[5,6],minimalDays:1},TH:{firstDay:7,weekend:[6,7],minimalDays:1},TJ:{firstDay:1,weekend:[6,7],minimalDays:1},TM:{firstDay:1,weekend:[6,7],minimalDays:1},TR:{firstDay:1,weekend:[6,7],minimalDays:1},TT:{firstDay:7,weekend:[6,7],minimalDays:1},TW:{firstDay:7,weekend:[6,7],minimalDays:1},UA:{firstDay:1,weekend:[6,7],minimalDays:1},UG:{firstDay:1,weekend:[7],minimalDays:1},UM:{firstDay:7,weekend:[6,7],minimalDays:1},US:{firstDay:7,weekend:[6,7],minimalDays:1},UY:{firstDay:1,weekend:[6,7],minimalDays:1},UZ:{firstDay:1,weekend:[6,7],minimalDays:1},VE:{firstDay:7,weekend:[6,7],minimalDays:1},VI:{firstDay:7,weekend:[6,7],minimalDays:1},VN:{firstDay:1,weekend:[6,7],minimalDays:1},WS:{firstDay:7,weekend:[6,7],minimalDays:1},XK:{firstDay:1,weekend:[6,7],minimalDays:1},YE:{firstDay:7,weekend:[5,6],minimalDays:1},ZA:{firstDay:7,weekend:[6,7],minimalDays:1},ZW:{firstDay:7,weekend:[6,7],minimalDays:1}}});Object.defineProperty(e,"__esModule",{value:!0});var qc=require("tslib").__importDefault(require("./"));(0,require("./should-polyfill").shouldPolyfill)()&&Object.defineProperty(Intl,"RelativeTimeFormat",{value:qc.default,writable:!0,enumerable:!1,configurable:!0});var $c=Object.freeze({__proto__:null});Intl.RelativeTimeFormat&&"function"==typeof Intl.RelativeTimeFormat.__addLocaleData&&Intl.RelativeTimeFormat.__addLocaleData({data:{day:{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}},"day-narrow":{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0}d",other:"in {0}d"},past:{one:"{0}d ago",other:"{0}d ago"}},"day-short":{"-1":"yesterday",0:"today",1:"tomorrow",future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}},hour:{0:"this hour",future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}},"hour-narrow":{0:"this hour",future:{one:"in {0}h",other:"in {0}h"},past:{one:"{0}h ago",other:"{0}h ago"}},"hour-short":{0:"this hour",future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}},minute:{0:"this minute",future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}},"minute-narrow":{0:"this minute",future:{one:"in {0}m",other:"in {0}m"},past:{one:"{0}m ago",other:"{0}m ago"}},"minute-short":{0:"this minute",future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}},month:{"-1":"last month",0:"this month",1:"next month",future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}},"month-narrow":{"-1":"last mo.",0:"this mo.",1:"next mo.",future:{one:"in {0}mo",other:"in {0}mo"},past:{one:"{0}mo ago",other:"{0}mo ago"}},"month-short":{"-1":"last mo.",0:"this mo.",1:"next mo.",future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}},nu:["latn"],quarter:{"-1":"last quarter",0:"this quarter",1:"next quarter",future:{one:"in {0} quarter",other:"in {0} quarters"},past:{one:"{0} quarter ago",other:"{0} quarters ago"}},"quarter-narrow":{"-1":"last qtr.",0:"this qtr.",1:"next qtr.",future:{one:"in {0}q",other:"in {0}q"},past:{one:"{0}q ago",other:"{0}q ago"}},"quarter-short":{"-1":"last qtr.",0:"this qtr.",1:"next qtr.",future:{one:"in {0} qtr.",other:"in {0} qtrs."},past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"}},second:{0:"now",future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}},"second-narrow":{0:"now",future:{one:"in {0}s",other:"in {0}s"},past:{one:"{0}s ago",other:"{0}s ago"}},"second-short":{0:"now",future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}},week:{"-1":"last week",0:"this week",1:"next week",future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}},"week-narrow":{"-1":"last wk.",0:"this wk.",1:"next wk.",future:{one:"in {0}w",other:"in {0}w"},past:{one:"{0}w ago",other:"{0}w ago"}},"week-short":{"-1":"last wk.",0:"this wk.",1:"next wk.",future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}},year:{"-1":"last year",0:"this year",1:"next year",future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}},"year-narrow":{"-1":"last yr.",0:"this yr.",1:"next yr.",future:{one:"in {0}y",other:"in {0}y"},past:{one:"{0}y ago",other:"{0}y ago"}},"year-short":{"-1":"last yr.",0:"this yr.",1:"next yr.",future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},locale:"en"});var Vc=Object.freeze({__proto__:null});Object.defineProperty(e,"__esModule",{value:!0});var Kc=require("./"),Jc=require("@formatjs/ecma402-abstract"),Xc=require("./should-polyfill"),Qc=require("./src/to_locale_string");(0,Xc.shouldPolyfill)()&&((0,Jc.defineProperty)(Intl,"DateTimeFormat",{value:Kc.DateTimeFormat}),(0,Jc.defineProperty)(Date.prototype,"toLocaleString",{value:function(e,t){void 0===t&&(t={dateStyle:"short",timeStyle:"medium"});try{return(0,Qc.toLocaleString)(this,e,t)}catch(e){return"Invalid Date"}}}),(0,Jc.defineProperty)(Date.prototype,"toLocaleDateString",{value:function(e,t){void 0===t&&(t={dateStyle:"short"});try{return(0,Qc.toLocaleDateString)(this,e,t)}catch(e){return"Invalid Date"}}}),(0,Jc.defineProperty)(Date.prototype,"toLocaleTimeString",{value:function(e,t){void 0===t&&(t={timeStyle:"medium"});try{return(0,Qc.toLocaleTimeString)(this,e,t)}catch(e){return"Invalid Date"}}}));var eh=Object.freeze({__proto__:null});Intl.DateTimeFormat&&"function"==typeof Intl.DateTimeFormat.__addLocaleData&&Intl.DateTimeFormat.__addLocaleData({data:{am:"AM",pm:"PM",weekday:{narrow:["S","M","T","W","T","F","S"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},era:{narrow:{BC:"B",AD:"A"},short:{BC:"BC",AD:"AD"},long:{BC:"Before Christ",AD:"Anno Domini"}},month:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},timeZoneName:{"America/Rio_Branco":{long:["Acre Standard Time","Acre Summer Time"]},"Asia/Kabul":{long:["Afghanistan Time","Afghanistan Time"]},"Africa/Maputo":{long:["Central Africa Time","Central Africa Time"]},"Africa/Bujumbura":{long:["Central Africa Time","Central Africa Time"]},"Africa/Gaborone":{long:["Central Africa Time","Central Africa Time"]},"Africa/Lubumbashi":{long:["Central Africa Time","Central Africa Time"]},"Africa/Blantyre":{long:["Central Africa Time","Central Africa Time"]},"Africa/Kigali":{long:["Central Africa Time","Central Africa Time"]},"Africa/Lusaka":{long:["Central Africa Time","Central Africa Time"]},"Africa/Harare":{long:["Central Africa Time","Central Africa Time"]},"Africa/Nairobi":{long:["East Africa Time","East Africa Time"]},"Africa/Djibouti":{long:["East Africa Time","East Africa Time"]},"Africa/Asmera":{long:["East Africa Time","East Africa Time"]},"Africa/Addis_Ababa":{long:["East Africa Time","East Africa Time"]},"Indian/Comoro":{long:["East Africa Time","East Africa Time"]},"Indian/Antananarivo":{long:["East Africa Time","East Africa Time"]},"Africa/Mogadishu":{long:["East Africa Time","East Africa Time"]},"Africa/Dar_es_Salaam":{long:["East Africa Time","East Africa Time"]},"Africa/Kampala":{long:["East Africa Time","East Africa Time"]},"Indian/Mayotte":{long:["East Africa Time","East Africa Time"]},"Africa/Johannesburg":{long:["South Africa Standard Time","South Africa Standard Time"]},"Africa/Maseru":{long:["South Africa Standard Time","South Africa Standard Time"]},"Africa/Mbabane":{long:["South Africa Standard Time","South Africa Standard Time"]},"Africa/Lagos":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Luanda":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Porto-Novo":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Kinshasa":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Bangui":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Brazzaville":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Douala":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Libreville":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Malabo":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Niamey":{long:["West Africa Standard Time","West Africa Summer Time"]},"Africa/Ndjamena":{long:["West Africa Standard Time","West Africa Summer Time"]},"Asia/Aqtobe":{long:["West Kazakhstan Time","West Kazakhstan Time"]},"America/Juneau":{long:["Alaska Standard Time","Alaska Daylight Time"],short:["AKST","AKDT"]},"Asia/Almaty":{long:["East Kazakhstan Time","East Kazakhstan Time"]},"America/Manaus":{long:["Amazon Standard Time","Amazon Summer Time"]},"America/Chicago":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Belize":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Winnipeg":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Costa_Rica":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Guatemala":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Tegucigalpa":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/Mexico_City":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/El_Salvador":{long:["Central Standard Time","Central Daylight Time"],short:["CST","CDT"]},"America/New_York":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Nassau":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Toronto":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Port-au-Prince":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Jamaica":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Cayman":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Panama":{long:["Eastern Standard Time","Eastern Daylight Time"],short:["EST","EDT"]},"America/Denver":{long:["Mountain Standard Time","Mountain Daylight Time"],short:["MST","MDT"]},"America/Edmonton":{long:["Mountain Standard Time","Mountain Daylight Time"],short:["MST","MDT"]},"America/Los_Angeles":{long:["Pacific Standard Time","Pacific Daylight Time"],short:["PST","PDT"]},"America/Vancouver":{long:["Pacific Standard Time","Pacific Daylight Time"],short:["PST","PDT"]},"America/Tijuana":{long:["Pacific Standard Time","Pacific Daylight Time"],short:["PST","PDT"]},"Asia/Anadyr":{long:["Anadyr Standard Time","Anadyr Summer Time"]},"Pacific/Apia":{long:["Apia Standard Time","Apia Daylight Time"]},"Asia/Riyadh":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Bahrain":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Baghdad":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Kuwait":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Qatar":{long:["Arabian Standard Time","Arabian Daylight Time"]},"Asia/Aden":{long:["Arabian Standard Time","Arabian Daylight Time"]},"America/Buenos_Aires":{long:["Argentina Standard Time","Argentina Summer Time"]},"America/Argentina/San_Luis":{long:["Western Argentina Standard Time","Western Argentina Summer Time"]},"Asia/Ashgabat":{long:["Turkmenistan Standard Time","Turkmenistan Summer Time"]},"America/Halifax":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Antigua":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Anguilla":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Aruba":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Barbados":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"Atlantic/Bermuda":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Kralendijk":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Curacao":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Dominica":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Grenada":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Thule":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Guadeloupe":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Kitts":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Lucia":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Marigot":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Martinique":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Montserrat":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Puerto_Rico":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Lower_Princes":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Port_of_Spain":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Vincent":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/Tortola":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"America/St_Thomas":{long:["Atlantic Standard Time","Atlantic Daylight Time"],short:["AST","ADT"]},"Australia/Adelaide":{long:["Australian Central Standard Time","Australian Central Daylight Time"]},"Australia/Eucla":{long:["Australian Central Western Standard Time","Australian Central Western Daylight Time"]},"Australia/Sydney":{long:["Australian Eastern Standard Time","Australian Eastern Daylight Time"]},"Australia/Perth":{long:["Australian Western Standard Time","Australian Western Daylight Time"]},"Atlantic/Azores":{long:["Azores Standard Time","Azores Summer Time"]},"Asia/Thimphu":{long:["Bhutan Time","Bhutan Time"]},"America/La_Paz":{long:["Bolivia Time","Bolivia Time"]},"Asia/Kuching":{long:["Malaysia Time","Malaysia Time"]},"America/Sao_Paulo":{long:["Brasilia Standard Time","Brasilia Summer Time"]},"Europe/London":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Asia/Brunei":{long:["Brunei Darussalam Time","Brunei Darussalam Time"]},"Atlantic/Cape_Verde":{long:["Cape Verde Standard Time","Cape Verde Summer Time"]},"Antarctica/Casey":{long:["Casey Time","Casey Time"]},"Pacific/Saipan":{long:["North Mariana Islands Time","North Mariana Islands Time"]},"Pacific/Guam":{long:["Guam Standard Time","Guam Standard Time"]},"Pacific/Chatham":{long:["Chatham Standard Time","Chatham Daylight Time"]},"America/Santiago":{long:["Chile Standard Time","Chile Summer Time"]},"Asia/Shanghai":{long:["China Standard Time","China Daylight Time"]},"Indian/Christmas":{long:["Christmas Island Time","Christmas Island Time"]},"Indian/Cocos":{long:["Cocos Islands Time","Cocos Islands Time"]},"America/Bogota":{long:["Colombia Standard Time","Colombia Summer Time"]},"Pacific/Rarotonga":{long:["Cook Islands Standard Time","Cook Islands Half Summer Time"]},"America/Havana":{long:["Cuba Standard Time","Cuba Daylight Time"]},"Antarctica/Davis":{long:["Davis Time","Davis Time"]},"Antarctica/DumontDUrville":{long:["Dumont-d’Urville Time","Dumont-d’Urville Time"]},"Asia/Dushanbe":{long:["Tajikistan Time","Tajikistan Time"]},"America/Paramaribo":{long:["Suriname Time","Suriname Time"]},"Asia/Dili":{long:["East Timor Time","East Timor Time"]},"Pacific/Easter":{long:["Easter Island Standard Time","Easter Island Summer Time"]},"America/Guayaquil":{long:["Ecuador Time","Ecuador Time"]},"Europe/Paris":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Andorra":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Tirane":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Vienna":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Sarajevo":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Brussels":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Zurich":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Prague":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Berlin":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Copenhagen":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Madrid":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Gibraltar":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Zagreb":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Budapest":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Rome":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Vaduz":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Luxembourg":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Monaco":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Podgorica":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Skopje":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Malta":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Amsterdam":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Oslo":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Warsaw":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Belgrade":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Stockholm":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Ljubljana":{long:["Central European Standard Time","Central European Summer Time"]},"Arctic/Longyearbyen":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Bratislava":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/San_Marino":{long:["Central European Standard Time","Central European Summer Time"]},"Africa/Tunis":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Vatican":{long:["Central European Standard Time","Central European Summer Time"]},"Europe/Bucharest":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Mariehamn":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Sofia":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Asia/Nicosia":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Africa/Cairo":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Helsinki":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Athens":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Asia/Beirut":{long:["Eastern European Standard Time","Eastern European Summer Time"]},"Europe/Minsk":{long:["Further-eastern European Time","Further-eastern European Time"]},"Europe/Kaliningrad":{long:["Further-eastern European Time","Further-eastern European Time"]},"Atlantic/Canary":{long:["Western European Standard Time","Western European Summer Time"]},"Atlantic/Faeroe":{long:["Western European Standard Time","Western European Summer Time"]},"Atlantic/Stanley":{long:["Falkland Islands Standard Time","Falkland Islands Summer Time"]},"Pacific/Fiji":{long:["Fiji Standard Time","Fiji Summer Time"]},"America/Cayenne":{long:["French Guiana Time","French Guiana Time"]},"Indian/Kerguelen":{long:["French Southern & Antarctic Time","French Southern & Antarctic Time"]},"Asia/Bishkek":{long:["Kyrgyzstan Time","Kyrgyzstan Time"]},"Pacific/Galapagos":{long:["Galapagos Time","Galapagos Time"]},"Pacific/Gambier":{long:["Gambier Time","Gambier Time"]},"Pacific/Tarawa":{long:["Gilbert Islands Time","Gilbert Islands Time"]},"Atlantic/Reykjavik":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Ouagadougou":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Abidjan":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Accra":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Banjul":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Conakry":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Bamako":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Nouakchott":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Atlantic/St_Helena":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Freetown":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Dakar":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"Africa/Lome":{long:["Greenwich Mean Time","Greenwich Mean Time"],short:["GMT","GMT"]},"America/Godthab":{long:["West Greenland Standard Time","West Greenland Summer Time"]},"America/Scoresbysund":{long:["East Greenland Standard Time","East Greenland Summer Time"]},"Asia/Dubai":{long:["Gulf Standard Time","Gulf Standard Time"]},"Asia/Muscat":{long:["Gulf Standard Time","Gulf Standard Time"]},"America/Guyana":{long:["Guyana Time","Guyana Time"]},"Pacific/Honolulu":{long:["Hawaii-Aleutian Standard Time","Hawaii-Aleutian Daylight Time"],short:["HAST","HADT"]},"Asia/Hong_Kong":{long:["Hong Kong Standard Time","Hong Kong Summer Time"]},"Asia/Hovd":{long:["Hovd Standard Time","Hovd Summer Time"]},"Asia/Calcutta":{long:["India Standard Time","India Standard Time"]},"Asia/Colombo":{long:["Lanka Time","Lanka Time"]},"Indian/Chagos":{long:["Indian Ocean Time","Indian Ocean Time"]},"Asia/Bangkok":{long:["Indochina Time","Indochina Time"]},"Asia/Phnom_Penh":{long:["Indochina Time","Indochina Time"]},"Asia/Vientiane":{long:["Indochina Time","Indochina Time"]},"Asia/Makassar":{long:["Central Indonesia Time","Central Indonesia Time"]},"Asia/Jayapura":{long:["Eastern Indonesia Time","Eastern Indonesia Time"]},"Asia/Jakarta":{long:["Western Indonesia Time","Western Indonesia Time"]},"Asia/Tehran":{long:["Iran Standard Time","Iran Daylight Time"]},"Asia/Irkutsk":{long:["Irkutsk Standard Time","Irkutsk Summer Time"]},"Asia/Jerusalem":{long:["Israel Standard Time","Israel Daylight Time"]},"Asia/Tokyo":{long:["Japan Standard Time","Japan Daylight Time"]},"Asia/Kamchatka":{long:["Petropavlovsk-Kamchatski Standard Time","Petropavlovsk-Kamchatski Summer Time"]},"Asia/Karachi":{long:["Pakistan Standard Time","Pakistan Summer Time"]},"Asia/Qyzylorda":{long:["Qyzylorda Standard Time","Qyzylorda Summer Time"]},"Asia/Seoul":{long:["Korean Standard Time","Korean Daylight Time"]},"Pacific/Kosrae":{long:["Kosrae Time","Kosrae Time"]},"Asia/Krasnoyarsk":{long:["Krasnoyarsk Standard Time","Krasnoyarsk Summer Time"]},"Europe/Samara":{long:["Samara Standard Time","Samara Summer Time"]},"Pacific/Kiritimati":{long:["Line Islands Time","Line Islands Time"]},"Australia/Lord_Howe":{long:["Lord Howe Standard Time","Lord Howe Daylight Time"]},"Asia/Macau":{long:["Macao Standard Time","Macao Summer Time"]},"Asia/Magadan":{long:["Magadan Standard Time","Magadan Summer Time"]},"Indian/Maldives":{long:["Maldives Time","Maldives Time"]},"Pacific/Marquesas":{long:["Marquesas Time","Marquesas Time"]},"Pacific/Majuro":{long:["Marshall Islands Time","Marshall Islands Time"]},"Indian/Mauritius":{long:["Mauritius Standard Time","Mauritius Summer Time"]},"Antarctica/Mawson":{long:["Mawson Time","Mawson Time"]},"America/Mazatlan":{long:["Mexican Pacific Standard Time","Mexican Pacific Daylight Time"]},"Asia/Ulaanbaatar":{long:["Ulaanbaatar Standard Time","Ulaanbaatar Summer Time"]},"Europe/Moscow":{long:["Moscow Standard Time","Moscow Summer Time"]},"Asia/Rangoon":{long:["Myanmar Time","Myanmar Time"]},"Pacific/Nauru":{long:["Nauru Time","Nauru Time"]},"Asia/Katmandu":{long:["Nepal Time","Nepal Time"]},"Pacific/Noumea":{long:["New Caledonia Standard Time","New Caledonia Summer Time"]},"Pacific/Auckland":{long:["New Zealand Standard Time","New Zealand Daylight Time"]},"Antarctica/McMurdo":{long:["New Zealand Standard Time","New Zealand Daylight Time"]},"America/St_Johns":{long:["Newfoundland Standard Time","Newfoundland Daylight Time"]},"Pacific/Niue":{long:["Niue Time","Niue Time"]},"Pacific/Norfolk":{long:["Norfolk Island Standard Time","Norfolk Island Daylight Time"]},"America/Noronha":{long:["Fernando de Noronha Standard Time","Fernando de Noronha Summer Time"]},"Asia/Novosibirsk":{long:["Novosibirsk Standard Time","Novosibirsk Summer Time"]},"Asia/Omsk":{long:["Omsk Standard Time","Omsk Summer Time"]},"Pacific/Palau":{long:["Palau Time","Palau Time"]},"Pacific/Port_Moresby":{long:["Papua New Guinea Time","Papua New Guinea Time"]},"America/Asuncion":{long:["Paraguay Standard Time","Paraguay Summer Time"]},"America/Lima":{long:["Peru Standard Time","Peru Summer Time"]},"Asia/Manila":{long:["Philippine Standard Time","Philippine Summer Time"]},"Pacific/Enderbury":{long:["Phoenix Islands Time","Phoenix Islands Time"]},"America/Miquelon":{long:["St. Pierre & Miquelon Standard Time","St. Pierre & Miquelon Daylight Time"]},"Pacific/Pitcairn":{long:["Pitcairn Time","Pitcairn Time"]},"Pacific/Ponape":{long:["Ponape Time","Ponape Time"]},"Asia/Pyongyang":{long:["Pyongyang Time","Pyongyang Time"]},"Indian/Reunion":{long:["Réunion Time","Réunion Time"]},"Antarctica/Rothera":{long:["Rothera Time","Rothera Time"]},"Asia/Sakhalin":{long:["Sakhalin Standard Time","Sakhalin Summer Time"]},"Pacific/Pago_Pago":{long:["Samoa Standard Time","Samoa Daylight Time"]},"Indian/Mahe":{long:["Seychelles Time","Seychelles Time"]},"Asia/Singapore":{long:["Singapore Standard Time","Singapore Standard Time"]},"Pacific/Guadalcanal":{long:["Solomon Islands Time","Solomon Islands Time"]},"Atlantic/South_Georgia":{long:["South Georgia Time","South Georgia Time"]},"Asia/Yekaterinburg":{long:["Yekaterinburg Standard Time","Yekaterinburg Summer Time"]},"Antarctica/Syowa":{long:["Syowa Time","Syowa Time"]},"Pacific/Tahiti":{long:["Tahiti Time","Tahiti Time"]},"Asia/Taipei":{long:["Taipei Standard Time","Taipei Daylight Time"]},"Asia/Tashkent":{long:["Uzbekistan Standard Time","Uzbekistan Summer Time"]},"Pacific/Fakaofo":{long:["Tokelau Time","Tokelau Time"]},"Pacific/Tongatapu":{long:["Tonga Standard Time","Tonga Summer Time"]},"Pacific/Truk":{long:["Chuuk Time","Chuuk Time"]},"Pacific/Funafuti":{long:["Tuvalu Time","Tuvalu Time"]},"America/Montevideo":{long:["Uruguay Standard Time","Uruguay Summer Time"]},"Pacific/Efate":{long:["Vanuatu Standard Time","Vanuatu Summer Time"]},"America/Caracas":{long:["Venezuela Time","Venezuela Time"]},"Asia/Vladivostok":{long:["Vladivostok Standard Time","Vladivostok Summer Time"]},"Europe/Volgograd":{long:["Volgograd Standard Time","Volgograd Summer Time"]},"Antarctica/Vostok":{long:["Vostok Time","Vostok Time"]},"Pacific/Wake":{long:["Wake Island Time","Wake Island Time"]},"Pacific/Wallis":{long:["Wallis & Futuna Time","Wallis & Futuna Time"]},"Asia/Yakutsk":{long:["Yakutsk Standard Time","Yakutsk Summer Time"]},"America/Whitehorse":{long:["Yukon Time","Yukon Time"]},UTC:{long:["Coordinated Universal Time","Coordinated Universal Time"],short:["UTC","UTC"]}},gmtFormat:"GMT{0}",hourFormat:"+HH:mm;-HH:mm",dateFormat:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormat:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormat:{full:"{1}, {0}",long:"{1}, {0}",medium:"{1}, {0}",short:"{1}, {0}"},formats:{gregory:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a","Ehm-alt-ascii":"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a","Ehms-alt-ascii":"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMd:"M/d/y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a","h-alt-ascii":"h a",H:"HH",hm:"h:mm a","hm-alt-ascii":"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a","hms-alt-ascii":"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v","hmsv-alt-ascii":"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v","hmv-alt-ascii":"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y","EEEE, MMMM d, y":"EEEE, MMMM d, y","MMMM d, y":"MMMM d, y","MMM d, y":"MMM d, y","M/d/yy":"M/d/yy","h:mm:ss a zzzz":"h:mm:ss a zzzz","h:mm:ss a zzzz":"h:mm:ss a zzzz","h:mm:ss a z":"h:mm:ss a z","h:mm:ss a z":"h:mm:ss a z","h:mm:ss a":"h:mm:ss a","h:mm:ss a":"h:mm:ss a","h:mm a":"h:mm a","h:mm a":"h:mm a","EEEE, MMMM d, y, h:mm:ss a zzzz":"EEEE, MMMM d, y, h:mm:ss a zzzz","MMMM d, y, h:mm:ss a zzzz":"MMMM d, y, h:mm:ss a zzzz","MMM d, y, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","M/d/yy, h:mm:ss a zzzz":"M/d/yy, h:mm:ss a zzzz","d, h:mm:ss a zzzz":"d, h:mm:ss a zzzz","E, h:mm:ss a zzzz":"ccc, h:mm:ss a zzzz","Ed, h:mm:ss a zzzz":"d E, h:mm:ss a zzzz","Gy, h:mm:ss a zzzz":"y G, h:mm:ss a zzzz","GyMd, h:mm:ss a zzzz":"M/d/y G, h:mm:ss a zzzz","GyMMM, h:mm:ss a zzzz":"MMM y G, h:mm:ss a zzzz","GyMMMd, h:mm:ss a zzzz":"MMM d, y G, h:mm:ss a zzzz","GyMMMEd, h:mm:ss a zzzz":"E, MMM d, y G, h:mm:ss a zzzz","M, h:mm:ss a zzzz":"L, h:mm:ss a zzzz","Md, h:mm:ss a zzzz":"M/d, h:mm:ss a zzzz","MEd, h:mm:ss a zzzz":"E, M/d, h:mm:ss a zzzz","MMM, h:mm:ss a zzzz":"LLL, h:mm:ss a zzzz","MMMd, h:mm:ss a zzzz":"MMM d, h:mm:ss a zzzz","MMMEd, h:mm:ss a zzzz":"E, MMM d, h:mm:ss a zzzz","MMMMd, h:mm:ss a zzzz":"MMMM d, h:mm:ss a zzzz","y, h:mm:ss a zzzz":"y, h:mm:ss a zzzz","yM, h:mm:ss a zzzz":"M/y, h:mm:ss a zzzz","yMd, h:mm:ss a zzzz":"M/d/y, h:mm:ss a zzzz","yMEd, h:mm:ss a zzzz":"E, M/d/y, h:mm:ss a zzzz","yMMM, h:mm:ss a zzzz":"MMM y, h:mm:ss a zzzz","yMMMd, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","yMMMEd, h:mm:ss a zzzz":"E, MMM d, y, h:mm:ss a zzzz","yMMMM, h:mm:ss a zzzz":"MMMM y, h:mm:ss a zzzz","EEEE, MMMM d, y, h:mm:ss a zzzz":"EEEE, MMMM d, y, h:mm:ss a zzzz","MMMM d, y, h:mm:ss a zzzz":"MMMM d, y, h:mm:ss a zzzz","MMM d, y, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","M/d/yy, h:mm:ss a zzzz":"M/d/yy, h:mm:ss a zzzz","d, h:mm:ss a zzzz":"d, h:mm:ss a zzzz","E, h:mm:ss a zzzz":"ccc, h:mm:ss a zzzz","Ed, h:mm:ss a zzzz":"d E, h:mm:ss a zzzz","Gy, h:mm:ss a zzzz":"y G, h:mm:ss a zzzz","GyMd, h:mm:ss a zzzz":"M/d/y G, h:mm:ss a zzzz","GyMMM, h:mm:ss a zzzz":"MMM y G, h:mm:ss a zzzz","GyMMMd, h:mm:ss a zzzz":"MMM d, y G, h:mm:ss a zzzz","GyMMMEd, h:mm:ss a zzzz":"E, MMM d, y G, h:mm:ss a zzzz","M, h:mm:ss a zzzz":"L, h:mm:ss a zzzz","Md, h:mm:ss a zzzz":"M/d, h:mm:ss a zzzz","MEd, h:mm:ss a zzzz":"E, M/d, h:mm:ss a zzzz","MMM, h:mm:ss a zzzz":"LLL, h:mm:ss a zzzz","MMMd, h:mm:ss a zzzz":"MMM d, h:mm:ss a zzzz","MMMEd, h:mm:ss a zzzz":"E, MMM d, h:mm:ss a zzzz","MMMMd, h:mm:ss a zzzz":"MMMM d, h:mm:ss a zzzz","y, h:mm:ss a zzzz":"y, h:mm:ss a zzzz","yM, h:mm:ss a zzzz":"M/y, h:mm:ss a zzzz","yMd, h:mm:ss a zzzz":"M/d/y, h:mm:ss a zzzz","yMEd, h:mm:ss a zzzz":"E, M/d/y, h:mm:ss a zzzz","yMMM, h:mm:ss a zzzz":"MMM y, h:mm:ss a zzzz","yMMMd, h:mm:ss a zzzz":"MMM d, y, h:mm:ss a zzzz","yMMMEd, h:mm:ss a zzzz":"E, MMM d, y, h:mm:ss a zzzz","yMMMM, h:mm:ss a zzzz":"MMMM y, h:mm:ss a zzzz","EEEE, MMMM d, y, h:mm:ss a z":"EEEE, MMMM d, y, h:mm:ss a z","MMMM d, y, h:mm:ss a z":"MMMM d, y, h:mm:ss a z","MMM d, y, h:mm:ss a z":"MMM d, y, h:mm:ss a z","M/d/yy, h:mm:ss a z":"M/d/yy, h:mm:ss a z","d, h:mm:ss a z":"d, h:mm:ss a z","E, h:mm:ss a z":"ccc, h:mm:ss a z","Ed, h:mm:ss a z":"d E, h:mm:ss a z","Gy, h:mm:ss a z":"y G, h:mm:ss a z","GyMd, h:mm:ss a z":"M/d/y G, h:mm:ss a z","GyMMM, h:mm:ss a z":"MMM y G, h:mm:ss a z","GyMMMd, h:mm:ss a z":"MMM d, y G, h:mm:ss a z","GyMMMEd, h:mm:ss a z":"E, MMM d, y G, h:mm:ss a z","M, h:mm:ss a z":"L, h:mm:ss a z","Md, h:mm:ss a z":"M/d, h:mm:ss a z","MEd, h:mm:ss a z":"E, M/d, h:mm:ss a z","MMM, h:mm:ss a z":"LLL, h:mm:ss a z","MMMd, h:mm:ss a z":"MMM d, h:mm:ss a z","MMMEd, h:mm:ss a z":"E, MMM d, h:mm:ss a z","MMMMd, h:mm:ss a z":"MMMM d, h:mm:ss a z","y, h:mm:ss a z":"y, h:mm:ss a z","yM, h:mm:ss a z":"M/y, h:mm:ss a z","yMd, h:mm:ss a z":"M/d/y, h:mm:ss a z","yMEd, h:mm:ss a z":"E, M/d/y, h:mm:ss a z","yMMM, h:mm:ss a z":"MMM y, h:mm:ss a z","yMMMd, h:mm:ss a z":"MMM d, y, h:mm:ss a z","yMMMEd, h:mm:ss a z":"E, MMM d, y, h:mm:ss a z","yMMMM, h:mm:ss a z":"MMMM y, h:mm:ss a z","EEEE, MMMM d, y, h:mm:ss a z":"EEEE, MMMM d, y, h:mm:ss a z","MMMM d, y, h:mm:ss a z":"MMMM d, y, h:mm:ss a z","MMM d, y, h:mm:ss a z":"MMM d, y, h:mm:ss a z","M/d/yy, h:mm:ss a z":"M/d/yy, h:mm:ss a z","d, h:mm:ss a z":"d, h:mm:ss a z","E, h:mm:ss a z":"ccc, h:mm:ss a z","Ed, h:mm:ss a z":"d E, h:mm:ss a z","Gy, h:mm:ss a z":"y G, h:mm:ss a z","GyMd, h:mm:ss a z":"M/d/y G, h:mm:ss a z","GyMMM, h:mm:ss a z":"MMM y G, h:mm:ss a z","GyMMMd, h:mm:ss a z":"MMM d, y G, h:mm:ss a z","GyMMMEd, h:mm:ss a z":"E, MMM d, y G, h:mm:ss a z","M, h:mm:ss a z":"L, h:mm:ss a z","Md, h:mm:ss a z":"M/d, h:mm:ss a z","MEd, h:mm:ss a z":"E, M/d, h:mm:ss a z","MMM, h:mm:ss a z":"LLL, h:mm:ss a z","MMMd, h:mm:ss a z":"MMM d, h:mm:ss a z","MMMEd, h:mm:ss a z":"E, MMM d, h:mm:ss a z","MMMMd, h:mm:ss a z":"MMMM d, h:mm:ss a z","y, h:mm:ss a z":"y, h:mm:ss a z","yM, h:mm:ss a z":"M/y, h:mm:ss a z","yMd, h:mm:ss a z":"M/d/y, h:mm:ss a z","yMEd, h:mm:ss a z":"E, M/d/y, h:mm:ss a z","yMMM, h:mm:ss a z":"MMM y, h:mm:ss a z","yMMMd, h:mm:ss a z":"MMM d, y, h:mm:ss a z","yMMMEd, h:mm:ss a z":"E, MMM d, y, h:mm:ss a z","yMMMM, h:mm:ss a z":"MMMM y, h:mm:ss a z","EEEE, MMMM d, y, h:mm:ss a":"EEEE, MMMM d, y, h:mm:ss a","MMMM d, y, h:mm:ss a":"MMMM d, y, h:mm:ss a","MMM d, y, h:mm:ss a":"MMM d, y, h:mm:ss a","M/d/yy, h:mm:ss a":"M/d/yy, h:mm:ss a","d, h:mm:ss a":"d, h:mm:ss a","E, h:mm:ss a":"ccc, h:mm:ss a","Ed, h:mm:ss a":"d E, h:mm:ss a","Gy, h:mm:ss a":"y G, h:mm:ss a","GyMd, h:mm:ss a":"M/d/y G, h:mm:ss a","GyMMM, h:mm:ss a":"MMM y G, h:mm:ss a","GyMMMd, h:mm:ss a":"MMM d, y G, h:mm:ss a","GyMMMEd, h:mm:ss a":"E, MMM d, y G, h:mm:ss a","M, h:mm:ss a":"L, h:mm:ss a","Md, h:mm:ss a":"M/d, h:mm:ss a","MEd, h:mm:ss a":"E, M/d, h:mm:ss a","MMM, h:mm:ss a":"LLL, h:mm:ss a","MMMd, h:mm:ss a":"MMM d, h:mm:ss a","MMMEd, h:mm:ss a":"E, MMM d, h:mm:ss a","MMMMd, h:mm:ss a":"MMMM d, h:mm:ss a","y, h:mm:ss a":"y, h:mm:ss a","yM, h:mm:ss a":"M/y, h:mm:ss a","yMd, h:mm:ss a":"M/d/y, h:mm:ss a","yMEd, h:mm:ss a":"E, M/d/y, h:mm:ss a","yMMM, h:mm:ss a":"MMM y, h:mm:ss a","yMMMd, h:mm:ss a":"MMM d, y, h:mm:ss a","yMMMEd, h:mm:ss a":"E, MMM d, y, h:mm:ss a","yMMMM, h:mm:ss a":"MMMM y, h:mm:ss a","EEEE, MMMM d, y, h:mm:ss a":"EEEE, MMMM d, y, h:mm:ss a","MMMM d, y, h:mm:ss a":"MMMM d, y, h:mm:ss a","MMM d, y, h:mm:ss a":"MMM d, y, h:mm:ss a","M/d/yy, h:mm:ss a":"M/d/yy, h:mm:ss a","d, h:mm:ss a":"d, h:mm:ss a","E, h:mm:ss a":"ccc, h:mm:ss a","Ed, h:mm:ss a":"d E, h:mm:ss a","Gy, h:mm:ss a":"y G, h:mm:ss a","GyMd, h:mm:ss a":"M/d/y G, h:mm:ss a","GyMMM, h:mm:ss a":"MMM y G, h:mm:ss a","GyMMMd, h:mm:ss a":"MMM d, y G, h:mm:ss a","GyMMMEd, h:mm:ss a":"E, MMM d, y G, h:mm:ss a","M, h:mm:ss a":"L, h:mm:ss a","Md, h:mm:ss a":"M/d, h:mm:ss a","MEd, h:mm:ss a":"E, M/d, h:mm:ss a","MMM, h:mm:ss a":"LLL, h:mm:ss a","MMMd, h:mm:ss a":"MMM d, h:mm:ss a","MMMEd, h:mm:ss a":"E, MMM d, h:mm:ss a","MMMMd, h:mm:ss a":"MMMM d, h:mm:ss a","y, h:mm:ss a":"y, h:mm:ss a","yM, h:mm:ss a":"M/y, h:mm:ss a","yMd, h:mm:ss a":"M/d/y, h:mm:ss a","yMEd, h:mm:ss a":"E, M/d/y, h:mm:ss a","yMMM, h:mm:ss a":"MMM y, h:mm:ss a","yMMMd, h:mm:ss a":"MMM d, y, h:mm:ss a","yMMMEd, h:mm:ss a":"E, MMM d, y, h:mm:ss a","yMMMM, h:mm:ss a":"MMMM y, h:mm:ss a","EEEE, MMMM d, y, h:mm a":"EEEE, MMMM d, y, h:mm a","MMMM d, y, h:mm a":"MMMM d, y, h:mm a","MMM d, y, h:mm a":"MMM d, y, h:mm a","M/d/yy, h:mm a":"M/d/yy, h:mm a","d, h:mm a":"d, h:mm a","E, h:mm a":"ccc, h:mm a","Ed, h:mm a":"d E, h:mm a","Gy, h:mm a":"y G, h:mm a","GyMd, h:mm a":"M/d/y G, h:mm a","GyMMM, h:mm a":"MMM y G, h:mm a","GyMMMd, h:mm a":"MMM d, y G, h:mm a","GyMMMEd, h:mm a":"E, MMM d, y G, h:mm a","M, h:mm a":"L, h:mm a","Md, h:mm a":"M/d, h:mm a","MEd, h:mm a":"E, M/d, h:mm a","MMM, h:mm a":"LLL, h:mm a","MMMd, h:mm a":"MMM d, h:mm a","MMMEd, h:mm a":"E, MMM d, h:mm a","MMMMd, h:mm a":"MMMM d, h:mm a","y, h:mm a":"y, h:mm a","yM, h:mm a":"M/y, h:mm a","yMd, h:mm a":"M/d/y, h:mm a","yMEd, h:mm a":"E, M/d/y, h:mm a","yMMM, h:mm a":"MMM y, h:mm a","yMMMd, h:mm a":"MMM d, y, h:mm a","yMMMEd, h:mm a":"E, MMM d, y, h:mm a","yMMMM, h:mm a":"MMMM y, h:mm a","EEEE, MMMM d, y, h:mm a":"EEEE, MMMM d, y, h:mm a","MMMM d, y, h:mm a":"MMMM d, y, h:mm a","MMM d, y, h:mm a":"MMM d, y, h:mm a","M/d/yy, h:mm a":"M/d/yy, h:mm a","d, h:mm a":"d, h:mm a","E, h:mm a":"ccc, h:mm a","Ed, h:mm a":"d E, h:mm a","Gy, h:mm a":"y G, h:mm a","GyMd, h:mm a":"M/d/y G, h:mm a","GyMMM, h:mm a":"MMM y G, h:mm a","GyMMMd, h:mm a":"MMM d, y G, h:mm a","GyMMMEd, h:mm a":"E, MMM d, y G, h:mm a","M, h:mm a":"L, h:mm a","Md, h:mm a":"M/d, h:mm a","MEd, h:mm a":"E, M/d, h:mm a","MMM, h:mm a":"LLL, h:mm a","MMMd, h:mm a":"MMM d, h:mm a","MMMEd, h:mm a":"E, MMM d, h:mm a","MMMMd, h:mm a":"MMMM d, h:mm a","y, h:mm a":"y, h:mm a","yM, h:mm a":"M/y, h:mm a","yMd, h:mm a":"M/d/y, h:mm a","yMEd, h:mm a":"E, M/d/y, h:mm a","yMMM, h:mm a":"MMM y, h:mm a","yMMMd, h:mm a":"MMM d, y, h:mm a","yMMMEd, h:mm a":"E, MMM d, y, h:mm a","yMMMM, h:mm a":"MMMM y, h:mm a","EEEE, MMMM d, y, Bh":"EEEE, MMMM d, y, h B","MMMM d, y, Bh":"MMMM d, y, h B","MMM d, y, Bh":"MMM d, y, h B","M/d/yy, Bh":"M/d/yy, h B","d, Bh":"d, h B","E, Bh":"ccc, h B","Ed, Bh":"d E, h B","Gy, Bh":"y G, h B","GyMd, Bh":"M/d/y G, h B","GyMMM, Bh":"MMM y G, h B","GyMMMd, Bh":"MMM d, y G, h B","GyMMMEd, Bh":"E, MMM d, y G, h B","M, Bh":"L, h B","Md, Bh":"M/d, h B","MEd, Bh":"E, M/d, h B","MMM, Bh":"LLL, h B","MMMd, Bh":"MMM d, h B","MMMEd, Bh":"E, MMM d, h B","MMMMd, Bh":"MMMM d, h B","y, Bh":"y, h B","yM, Bh":"M/y, h B","yMd, Bh":"M/d/y, h B","yMEd, Bh":"E, M/d/y, h B","yMMM, Bh":"MMM y, h B","yMMMd, Bh":"MMM d, y, h B","yMMMEd, Bh":"E, MMM d, y, h B","yMMMM, Bh":"MMMM y, h B","EEEE, MMMM d, y, Bhm":"EEEE, MMMM d, y, h:mm B","MMMM d, y, Bhm":"MMMM d, y, h:mm B","MMM d, y, Bhm":"MMM d, y, h:mm B","M/d/yy, Bhm":"M/d/yy, h:mm B","d, Bhm":"d, h:mm B","E, Bhm":"ccc, h:mm B","Ed, Bhm":"d E, h:mm B","Gy, Bhm":"y G, h:mm B","GyMd, Bhm":"M/d/y G, h:mm B","GyMMM, Bhm":"MMM y G, h:mm B","GyMMMd, Bhm":"MMM d, y G, h:mm B","GyMMMEd, Bhm":"E, MMM d, y G, h:mm B","M, Bhm":"L, h:mm B","Md, Bhm":"M/d, h:mm B","MEd, Bhm":"E, M/d, h:mm B","MMM, Bhm":"LLL, h:mm B","MMMd, Bhm":"MMM d, h:mm B","MMMEd, Bhm":"E, MMM d, h:mm B","MMMMd, Bhm":"MMMM d, h:mm B","y, Bhm":"y, h:mm B","yM, Bhm":"M/y, h:mm B","yMd, Bhm":"M/d/y, h:mm B","yMEd, Bhm":"E, M/d/y, h:mm B","yMMM, Bhm":"MMM y, h:mm B","yMMMd, Bhm":"MMM d, y, h:mm B","yMMMEd, Bhm":"E, MMM d, y, h:mm B","yMMMM, Bhm":"MMMM y, h:mm B","EEEE, MMMM d, y, Bhms":"EEEE, MMMM d, y, h:mm:ss B","MMMM d, y, Bhms":"MMMM d, y, h:mm:ss B","MMM d, y, Bhms":"MMM d, y, h:mm:ss B","M/d/yy, Bhms":"M/d/yy, h:mm:ss B","d, Bhms":"d, h:mm:ss B","E, Bhms":"ccc, h:mm:ss B","Ed, Bhms":"d E, h:mm:ss B","Gy, Bhms":"y G, h:mm:ss B","GyMd, Bhms":"M/d/y G, h:mm:ss B","GyMMM, Bhms":"MMM y G, h:mm:ss B","GyMMMd, Bhms":"MMM d, y G, h:mm:ss B","GyMMMEd, Bhms":"E, MMM d, y G, h:mm:ss B","M, Bhms":"L, h:mm:ss B","Md, Bhms":"M/d, h:mm:ss B","MEd, Bhms":"E, M/d, h:mm:ss B","MMM, Bhms":"LLL, h:mm:ss B","MMMd, Bhms":"MMM d, h:mm:ss B","MMMEd, Bhms":"E, MMM d, h:mm:ss B","MMMMd, Bhms":"MMMM d, h:mm:ss B","y, Bhms":"y, h:mm:ss B","yM, Bhms":"M/y, h:mm:ss B","yMd, Bhms":"M/d/y, h:mm:ss B","yMEd, Bhms":"E, M/d/y, h:mm:ss B","yMMM, Bhms":"MMM y, h:mm:ss B","yMMMd, Bhms":"MMM d, y, h:mm:ss B","yMMMEd, Bhms":"E, MMM d, y, h:mm:ss B","yMMMM, Bhms":"MMMM y, h:mm:ss B","EEEE, MMMM d, y, h":"EEEE, MMMM d, y, h a","MMMM d, y, h":"MMMM d, y, h a","MMM d, y, h":"MMM d, y, h a","M/d/yy, h":"M/d/yy, h a","d, h":"d, h a","E, h":"ccc, h a","Ed, h":"d E, h a","Gy, h":"y G, h a","GyMd, h":"M/d/y G, h a","GyMMM, h":"MMM y G, h a","GyMMMd, h":"MMM d, y G, h a","GyMMMEd, h":"E, MMM d, y G, h a","M, h":"L, h a","Md, h":"M/d, h a","MEd, h":"E, M/d, h a","MMM, h":"LLL, h a","MMMd, h":"MMM d, h a","MMMEd, h":"E, MMM d, h a","MMMMd, h":"MMMM d, h a","y, h":"y, h a","yM, h":"M/y, h a","yMd, h":"M/d/y, h a","yMEd, h":"E, M/d/y, h a","yMMM, h":"MMM y, h a","yMMMd, h":"MMM d, y, h a","yMMMEd, h":"E, MMM d, y, h a","yMMMM, h":"MMMM y, h a","EEEE, MMMM d, y, H":"EEEE, MMMM d, y, HH","MMMM d, y, H":"MMMM d, y, HH","MMM d, y, H":"MMM d, y, HH","M/d/yy, H":"M/d/yy, HH","d, H":"d, HH","E, H":"ccc, HH","Ed, H":"d E, HH","Gy, H":"y G, HH","GyMd, H":"M/d/y G, HH","GyMMM, H":"MMM y G, HH","GyMMMd, H":"MMM d, y G, HH","GyMMMEd, H":"E, MMM d, y G, HH","M, H":"L, HH","Md, H":"M/d, HH","MEd, H":"E, M/d, HH","MMM, H":"LLL, HH","MMMd, H":"MMM d, HH","MMMEd, H":"E, MMM d, HH","MMMMd, H":"MMMM d, HH","y, H":"y, HH","yM, H":"M/y, HH","yMd, H":"M/d/y, HH","yMEd, H":"E, M/d/y, HH","yMMM, H":"MMM y, HH","yMMMd, H":"MMM d, y, HH","yMMMEd, H":"E, MMM d, y, HH","yMMMM, H":"MMMM y, HH","EEEE, MMMM d, y, hm":"EEEE, MMMM d, y, h:mm a","MMMM d, y, hm":"MMMM d, y, h:mm a","MMM d, y, hm":"MMM d, y, h:mm a","M/d/yy, hm":"M/d/yy, h:mm a","d, hm":"d, h:mm a","E, hm":"ccc, h:mm a","Ed, hm":"d E, h:mm a","Gy, hm":"y G, h:mm a","GyMd, hm":"M/d/y G, h:mm a","GyMMM, hm":"MMM y G, h:mm a","GyMMMd, hm":"MMM d, y G, h:mm a","GyMMMEd, hm":"E, MMM d, y G, h:mm a","M, hm":"L, h:mm a","Md, hm":"M/d, h:mm a","MEd, hm":"E, M/d, h:mm a","MMM, hm":"LLL, h:mm a","MMMd, hm":"MMM d, h:mm a","MMMEd, hm":"E, MMM d, h:mm a","MMMMd, hm":"MMMM d, h:mm a","y, hm":"y, h:mm a","yM, hm":"M/y, h:mm a","yMd, hm":"M/d/y, h:mm a","yMEd, hm":"E, M/d/y, h:mm a","yMMM, hm":"MMM y, h:mm a","yMMMd, hm":"MMM d, y, h:mm a","yMMMEd, hm":"E, MMM d, y, h:mm a","yMMMM, hm":"MMMM y, h:mm a","EEEE, MMMM d, y, Hm":"EEEE, MMMM d, y, HH:mm","MMMM d, y, Hm":"MMMM d, y, HH:mm","MMM d, y, Hm":"MMM d, y, HH:mm","M/d/yy, Hm":"M/d/yy, HH:mm","d, Hm":"d, HH:mm","E, Hm":"ccc, HH:mm","Ed, Hm":"d E, HH:mm","Gy, Hm":"y G, HH:mm","GyMd, Hm":"M/d/y G, HH:mm","GyMMM, Hm":"MMM y G, HH:mm","GyMMMd, Hm":"MMM d, y G, HH:mm","GyMMMEd, Hm":"E, MMM d, y G, HH:mm","M, Hm":"L, HH:mm","Md, Hm":"M/d, HH:mm","MEd, Hm":"E, M/d, HH:mm","MMM, Hm":"LLL, HH:mm","MMMd, Hm":"MMM d, HH:mm","MMMEd, Hm":"E, MMM d, HH:mm","MMMMd, Hm":"MMMM d, HH:mm","y, Hm":"y, HH:mm","yM, Hm":"M/y, HH:mm","yMd, Hm":"M/d/y, HH:mm","yMEd, Hm":"E, M/d/y, HH:mm","yMMM, Hm":"MMM y, HH:mm","yMMMd, Hm":"MMM d, y, HH:mm","yMMMEd, Hm":"E, MMM d, y, HH:mm","yMMMM, Hm":"MMMM y, HH:mm","EEEE, MMMM d, y, hms":"EEEE, MMMM d, y, h:mm:ss a","MMMM d, y, hms":"MMMM d, y, h:mm:ss a","MMM d, y, hms":"MMM d, y, h:mm:ss a","M/d/yy, hms":"M/d/yy, h:mm:ss a","d, hms":"d, h:mm:ss a","E, hms":"ccc, h:mm:ss a","Ed, hms":"d E, h:mm:ss a","Gy, hms":"y G, h:mm:ss a","GyMd, hms":"M/d/y G, h:mm:ss a","GyMMM, hms":"MMM y G, h:mm:ss a","GyMMMd, hms":"MMM d, y G, h:mm:ss a","GyMMMEd, hms":"E, MMM d, y G, h:mm:ss a","M, hms":"L, h:mm:ss a","Md, hms":"M/d, h:mm:ss a","MEd, hms":"E, M/d, h:mm:ss a","MMM, hms":"LLL, h:mm:ss a","MMMd, hms":"MMM d, h:mm:ss a","MMMEd, hms":"E, MMM d, h:mm:ss a","MMMMd, hms":"MMMM d, h:mm:ss a","y, hms":"y, h:mm:ss a","yM, hms":"M/y, h:mm:ss a","yMd, hms":"M/d/y, h:mm:ss a","yMEd, hms":"E, M/d/y, h:mm:ss a","yMMM, hms":"MMM y, h:mm:ss a","yMMMd, hms":"MMM d, y, h:mm:ss a","yMMMEd, hms":"E, MMM d, y, h:mm:ss a","yMMMM, hms":"MMMM y, h:mm:ss a","EEEE, MMMM d, y, Hms":"EEEE, MMMM d, y, HH:mm:ss","MMMM d, y, Hms":"MMMM d, y, HH:mm:ss","MMM d, y, Hms":"MMM d, y, HH:mm:ss","M/d/yy, Hms":"M/d/yy, HH:mm:ss","d, Hms":"d, HH:mm:ss","E, Hms":"ccc, HH:mm:ss","Ed, Hms":"d E, HH:mm:ss","Gy, Hms":"y G, HH:mm:ss","GyMd, Hms":"M/d/y G, HH:mm:ss","GyMMM, Hms":"MMM y G, HH:mm:ss","GyMMMd, Hms":"MMM d, y G, HH:mm:ss","GyMMMEd, Hms":"E, MMM d, y G, HH:mm:ss","M, Hms":"L, HH:mm:ss","Md, Hms":"M/d, HH:mm:ss","MEd, Hms":"E, M/d, HH:mm:ss","MMM, Hms":"LLL, HH:mm:ss","MMMd, Hms":"MMM d, HH:mm:ss","MMMEd, Hms":"E, MMM d, HH:mm:ss","MMMMd, Hms":"MMMM d, HH:mm:ss","y, Hms":"y, HH:mm:ss","yM, Hms":"M/y, HH:mm:ss","yMd, Hms":"M/d/y, HH:mm:ss","yMEd, Hms":"E, M/d/y, HH:mm:ss","yMMM, Hms":"MMM y, HH:mm:ss","yMMMd, Hms":"MMM d, y, HH:mm:ss","yMMMEd, Hms":"E, MMM d, y, HH:mm:ss","yMMMM, Hms":"MMMM y, HH:mm:ss","EEEE, MMMM d, y, hmsv":"EEEE, MMMM d, y, h:mm:ss a v","MMMM d, y, hmsv":"MMMM d, y, h:mm:ss a v","MMM d, y, hmsv":"MMM d, y, h:mm:ss a v","M/d/yy, hmsv":"M/d/yy, h:mm:ss a v","d, hmsv":"d, h:mm:ss a v","E, hmsv":"ccc, h:mm:ss a v","Ed, hmsv":"d E, h:mm:ss a v","Gy, hmsv":"y G, h:mm:ss a v","GyMd, hmsv":"M/d/y G, h:mm:ss a v","GyMMM, hmsv":"MMM y G, h:mm:ss a v","GyMMMd, hmsv":"MMM d, y G, h:mm:ss a v","GyMMMEd, hmsv":"E, MMM d, y G, h:mm:ss a v","M, hmsv":"L, h:mm:ss a v","Md, hmsv":"M/d, h:mm:ss a v","MEd, hmsv":"E, M/d, h:mm:ss a v","MMM, hmsv":"LLL, h:mm:ss a v","MMMd, hmsv":"MMM d, h:mm:ss a v","MMMEd, hmsv":"E, MMM d, h:mm:ss a v","MMMMd, hmsv":"MMMM d, h:mm:ss a v","y, hmsv":"y, h:mm:ss a v","yM, hmsv":"M/y, h:mm:ss a v","yMd, hmsv":"M/d/y, h:mm:ss a v","yMEd, hmsv":"E, M/d/y, h:mm:ss a v","yMMM, hmsv":"MMM y, h:mm:ss a v","yMMMd, hmsv":"MMM d, y, h:mm:ss a v","yMMMEd, hmsv":"E, MMM d, y, h:mm:ss a v","yMMMM, hmsv":"MMMM y, h:mm:ss a v","EEEE, MMMM d, y, Hmsv":"EEEE, MMMM d, y, HH:mm:ss v","MMMM d, y, Hmsv":"MMMM d, y, HH:mm:ss v","MMM d, y, Hmsv":"MMM d, y, HH:mm:ss v","M/d/yy, Hmsv":"M/d/yy, HH:mm:ss v","d, Hmsv":"d, HH:mm:ss v","E, Hmsv":"ccc, HH:mm:ss v","Ed, Hmsv":"d E, HH:mm:ss v","Gy, Hmsv":"y G, HH:mm:ss v","GyMd, Hmsv":"M/d/y G, HH:mm:ss v","GyMMM, Hmsv":"MMM y G, HH:mm:ss v","GyMMMd, Hmsv":"MMM d, y G, HH:mm:ss v","GyMMMEd, Hmsv":"E, MMM d, y G, HH:mm:ss v","M, Hmsv":"L, HH:mm:ss v","Md, Hmsv":"M/d, HH:mm:ss v","MEd, Hmsv":"E, M/d, HH:mm:ss v","MMM, Hmsv":"LLL, HH:mm:ss v","MMMd, Hmsv":"MMM d, HH:mm:ss v","MMMEd, Hmsv":"E, MMM d, HH:mm:ss v","MMMMd, Hmsv":"MMMM d, HH:mm:ss v","y, Hmsv":"y, HH:mm:ss v","yM, Hmsv":"M/y, HH:mm:ss v","yMd, Hmsv":"M/d/y, HH:mm:ss v","yMEd, Hmsv":"E, M/d/y, HH:mm:ss v","yMMM, Hmsv":"MMM y, HH:mm:ss v","yMMMd, Hmsv":"MMM d, y, HH:mm:ss v","yMMMEd, Hmsv":"E, MMM d, y, HH:mm:ss v","yMMMM, Hmsv":"MMMM y, HH:mm:ss v","EEEE, MMMM d, y, hmv":"EEEE, MMMM d, y, h:mm a v","MMMM d, y, hmv":"MMMM d, y, h:mm a v","MMM d, y, hmv":"MMM d, y, h:mm a v","M/d/yy, hmv":"M/d/yy, h:mm a v","d, hmv":"d, h:mm a v","E, hmv":"ccc, h:mm a v","Ed, hmv":"d E, h:mm a v","Gy, hmv":"y G, h:mm a v","GyMd, hmv":"M/d/y G, h:mm a v","GyMMM, hmv":"MMM y G, h:mm a v","GyMMMd, hmv":"MMM d, y G, h:mm a v","GyMMMEd, hmv":"E, MMM d, y G, h:mm a v","M, hmv":"L, h:mm a v","Md, hmv":"M/d, h:mm a v","MEd, hmv":"E, M/d, h:mm a v","MMM, hmv":"LLL, h:mm a v","MMMd, hmv":"MMM d, h:mm a v","MMMEd, hmv":"E, MMM d, h:mm a v","MMMMd, hmv":"MMMM d, h:mm a v","y, hmv":"y, h:mm a v","yM, hmv":"M/y, h:mm a v","yMd, hmv":"M/d/y, h:mm a v","yMEd, hmv":"E, M/d/y, h:mm a v","yMMM, hmv":"MMM y, h:mm a v","yMMMd, hmv":"MMM d, y, h:mm a v","yMMMEd, hmv":"E, MMM d, y, h:mm a v","yMMMM, hmv":"MMMM y, h:mm a v","EEEE, MMMM d, y, Hmv":"EEEE, MMMM d, y, HH:mm v","MMMM d, y, Hmv":"MMMM d, y, HH:mm v","MMM d, y, Hmv":"MMM d, y, HH:mm v","M/d/yy, Hmv":"M/d/yy, HH:mm v","d, Hmv":"d, HH:mm v","E, Hmv":"ccc, HH:mm v","Ed, Hmv":"d E, HH:mm v","Gy, Hmv":"y G, HH:mm v","GyMd, Hmv":"M/d/y G, HH:mm v","GyMMM, Hmv":"MMM y G, HH:mm v","GyMMMd, Hmv":"MMM d, y G, HH:mm v","GyMMMEd, Hmv":"E, MMM d, y G, HH:mm v","M, Hmv":"L, HH:mm v","Md, Hmv":"M/d, HH:mm v","MEd, Hmv":"E, M/d, HH:mm v","MMM, Hmv":"LLL, HH:mm v","MMMd, Hmv":"MMM d, HH:mm v","MMMEd, Hmv":"E, MMM d, HH:mm v","MMMMd, Hmv":"MMMM d, HH:mm v","y, Hmv":"y, HH:mm v","yM, Hmv":"M/y, HH:mm v","yMd, Hmv":"M/d/y, HH:mm v","yMEd, Hmv":"E, M/d/y, HH:mm v","yMMM, Hmv":"MMM y, HH:mm v","yMMMd, Hmv":"MMM d, y, HH:mm v","yMMMEd, Hmv":"E, MMM d, y, HH:mm v","yMMMM, Hmv":"MMMM y, HH:mm v","EEEE, MMMM d, y, ms":"EEEE, MMMM d, y, mm:ss","MMMM d, y, ms":"MMMM d, y, mm:ss","MMM d, y, ms":"MMM d, y, mm:ss","M/d/yy, ms":"M/d/yy, mm:ss","d, ms":"d, mm:ss","E, ms":"ccc, mm:ss","Ed, ms":"d E, mm:ss","Gy, ms":"y G, mm:ss","GyMd, ms":"M/d/y G, mm:ss","GyMMM, ms":"MMM y G, mm:ss","GyMMMd, ms":"MMM d, y G, mm:ss","GyMMMEd, ms":"E, MMM d, y G, mm:ss","M, ms":"L, mm:ss","Md, ms":"M/d, mm:ss","MEd, ms":"E, M/d, mm:ss","MMM, ms":"LLL, mm:ss","MMMd, ms":"MMM d, mm:ss","MMMEd, ms":"E, MMM d, mm:ss","MMMMd, ms":"MMMM d, mm:ss","y, ms":"y, mm:ss","yM, ms":"M/y, mm:ss","yMd, ms":"M/d/y, mm:ss","yMEd, ms":"E, M/d/y, mm:ss","yMMM, ms":"MMM y, mm:ss","yMMMd, ms":"MMM d, y, mm:ss","yMMMEd, ms":"E, MMM d, y, mm:ss","yMMMM, ms":"MMMM y, mm:ss"}},intervalFormats:{intervalFormatFallback:"{0} – {1}",Bh:{B:"h B – h B",h:"h – h B"},Bhm:{B:"h:mm B – h:mm B",h:"h:mm – h:mm B",m:"h:mm – h:mm B"},d:{d:"d – d"},Gy:{G:"y G – y G",y:"y – y G"},GyM:{G:"M/y G – M/y G",M:"M/y – M/y G",y:"M/y – M/y G"},GyMd:{d:"M/d/y – M/d/y G",G:"M/d/y G – M/d/y G",M:"M/d/y – M/d/y G",y:"M/d/y – M/d/y G"},GyMEd:{d:"E, M/d/y – E, M/d/y G",G:"E, M/d/y G – E, M/d/y G",M:"E, M/d/y – E, M/d/y G",y:"E, M/d/y – E, M/d/y G"},GyMMM:{G:"MMM y G – MMM y G",M:"MMM – MMM y G",y:"MMM y – MMM y G"},GyMMMd:{d:"MMM d – d, y G",G:"MMM d, y G – MMM d, y G",M:"MMM d – MMM d, y G",y:"MMM d, y – MMM d, y G"},GyMMMEd:{d:"E, MMM d – E, MMM d, y G",G:"E, MMM d, y G – E, MMM d, y G",M:"E, MMM d – E, MMM d, y G",y:"E, MMM d, y – E, MMM d, y G"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{M:"M/y – M/y",y:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",M:"M/d/y – M/d/y",y:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y"},yMMM:{M:"MMM – MMM y",y:"MMM y – MMM y"},yMMMd:{d:"MMM d – d, y",M:"MMM d – MMM d, y",y:"MMM d, y – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",M:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y"},yMMMM:{M:"MMMM – MMMM y",y:"MMMM y – MMMM y"}},hourCycle:"h12",nu:["latn"],ca:["gregory"],hc:["h12","","h23",""]},locale:"en"});var th=Object.freeze({__proto__:null});e.Temporal=jl,e.bbn=Wc,e.default=Wc,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=bbn.js.map