@bbn/bbn 2.0.228 → 2.0.229

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.sw.js CHANGED
@@ -1,4 +1,4 @@
1
- function e(e,n){return n.forEach(function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach(function(t){if("default"!==t&&!(t in e)){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}})}),Object.freeze(e)}function n(e,n,r,i,a){return t(n,((e,n)=>{const t=e[n];if(void 0===t)throw new TypeError(_i(n));return t})(e,n),r,i,a)}function t(e,n,t,r,i,a){const o=_(n,t,r);if(i&&n!==o)throw new RangeError(wi(e,n,t,r,a));return o}function r(e){return null!==e&&/object|function/.test(typeof e)}function i(e,n=Map){const t=new n;return(n,...r)=>{if(t.has(n))return t.get(n);const i=e(n,...r);return t.set(n,i),i}}function a(e){return o({name:e},1)}function o(e,n){return l(e=>({value:e,configurable:1,writable:!n}),e)}function s(e){return l(e=>({get:e,configurable:1}),e)}function u(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function c(e,n){const t={};let r=e.length;for(const i of n)t[e[--r]]=i;return t}function l(e,n,t){const r={};for(const i in n)r[i]=e(n[i],i,t);return r}function d(e,n,t){const r={};for(let i=0;i<n.length;i++){const a=n[i];r[a]=e(a,i,t)}return r}function m(e,n,t){const r={};for(let i=0;i<e.length;i++)r[n[i]]=t[e[i]];return r}function f(e,n){const t=Object.create(null);for(const r of e)t[r]=n[r];return t}function h(e,n){for(const t of n)if(t in e)return 1;return 0}function y(e,n,t){for(const r of e)if(n[r]!==t[r])return 0;return 1}function M(e,n,t){const r={...t};for(let t=0;t<n;t++)r[e[t]]=0;return r}function g(e,...n){return(...t)=>e(...n,...t)}function p(e){return e[0].toUpperCase()+e.substring(1)}function v(e){return e.slice().sort()}function w(e,n){return String(n).padStart(e,"0")}function b(e,n){return Math.sign(e-n)}function _(e,n,t){return Math.min(Math.max(e,n),t)}function E(e,n){return[Math.floor(e/n),T(e,n)]}function T(e,n){return(e%n+n)%n}function D(e,n){return[S(e,n),A(e,n)]}function S(e,n){return Math.trunc(e/n)||0}function A(e,n){return e%n||0}function k(e){return.5===Math.abs(e%1)}function C(e,n,t){let r=0,i=0;for(let a=0;a<=n;a++){const n=e[t[a]],o=ga[a],s=Ma/o,[u,c]=D(n,s);r+=c*o,i+=u}const[a,o]=D(r,Ma);return[i+a,o]}function P(e,n,t){const r={};for(let i=n;i>=0;i--){const n=ga[i];r[t[i]]=S(e,n),e=A(e,n)}return r}function N(e){if(void 0!==e)return H(e)}function z(e){return G(H(e))}function H(e){return L(Ua(e))}function I(e,n){if(null==n)throw new RangeError(_i(e));return n}function F(e){if(!r(e))throw new TypeError(vi);return e}function O(e,n,t=e){if(typeof n!==e)throw new TypeError(bi(t,n));return n}function L(e,n="number"){if(!Number.isInteger(e))throw new RangeError(fi(n,e));return e||0}function G(e,n="number"){if(e<=0)throw new RangeError(hi(n,e));return e}function B(e){if("symbol"==typeof e)throw new TypeError(pi);return String(e)}function x(e,n){return r(e)?String(e):ja(e,n)}function R(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(gi(e));return e}function j(e,n="number"){if("bigint"==typeof e)throw new TypeError(Mi(n));if(e=Number(e),!Number.isFinite(e))throw new RangeError(yi(n,e));return e}function Z(e,n){return Math.trunc(j(e,n))||0}function U(e,n){return L(j(e,n),n)}function Y(e,n){return G(Z(e,n),n)}function q(e,n){let[t,r]=D(n,Ma),i=e+t;const a=Math.sign(i);return a&&a===-Math.sign(r)&&(i-=a,r+=a*Ma),[i,r]}function W(e,n,t=1){return q(e[0]+n[0]*t,e[1]+n[1]*t)}function K(e,n){return q(e[0],e[1]+n)}function V(e,n){return W(n,e,-1)}function $(e,n){return b(e[0],n[0])||b(e[1],n[1])}function J(e,n,t){return-1===$(e,n)||1===$(e,t)}function Q(e,n=1){const t=BigInt(Ma/n);return[Number(e/t),Number(e%t)*n]}function X(e,n=1){const t=Ma/n,[r,i]=D(e,t);return[r,i*n]}function ee(e,n=1,t){const[r,i]=e,[a,o]=D(i,n);return r*(Ma/n)+(a+(t?o/n:0))}function ne(e,n,t=E){const[r,i]=e,[a,o]=t(i,n);return[r*(Ma/n)+a,o]}function te(e){return n(e,"isoYear",ho,fo,1),e.isoYear===ho?n(e,"isoMonth",4,12,1):e.isoYear===fo&&n(e,"isoMonth",1,9,1),e}function re(e){return ie({...e,...oo,isoHour:12}),e}function ie(e){const t=n(e,"isoYear",ho,fo,1),r=t===ho?1:t===fo?-1:0;return r&&ae(le({...e,isoDay:e.isoDay+r,isoNanosecond:e.isoNanosecond-r})),e}function ae(e){if(!e||J(e,mo,lo))throw new RangeError(Wi);return e}function oe(e){return C(e,5,eo)[1]}function se(e){const[n,t]=E(e,Ma);return[P(t,5,eo),n]}function ue(e){return ne(e,fa)}function ce(e){return fe(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function le(e){const n=ce(e);if(void 0!==n){const[t,r]=D(n,ca);return[t,r*ma+(e.isoMicrosecond||0)*da+(e.isoNanosecond||0)]}}function de(e,n){const[t,r]=se(oe(e)-n);return ae(le({...e,isoDay:e.isoDay+r,...t}))}function me(...e){return fe(...e)/la}function fe(...e){const[n,t]=he(...e),r=n.valueOf();if(!isNaN(r))return r-t*ca}function he(e,n=1,t=1,r=0,i=0,a=0,o=0){const s=e===ho?1:e===fo?-1:0,u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,n-1,t+s),[u,s]}function ye(e,n){let[t,r]=K(e,n);r<0&&(r+=Ma,t-=1);const[i,a]=E(r,ma),[o,s]=E(a,da);return Me(t*ca+i,o,s)}function Me(e,n=0,t=0){const r=Math.ceil(Math.max(0,Math.abs(e)-co)/ca)*Math.sign(e),i=new Date(e-r*ca);return c(to,[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()+r,i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds(),n,t])}function ge(e,n){if(n<-co)throw new RangeError(Wi);const t=e.formatToParts(n),r={};for(const e of t)r[e.type]=e.value;return r}function pe(e){return[e.isoYear,e.isoMonth,e.isoDay]}function ve(e,n){return[n,0]}function we(){return vo}function be(e,n){switch(n){case 2:return Ee(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function _e(e){return Ee(e)?366:365}function Ee(e){return e%4==0&&(e%100!=0||e%400==0)}function Te(e){const[n,t]=he(e.isoYear,e.isoMonth,e.isoDay);return T(n.getUTCDay()-t,7)||7}function De(e){return this.id===La?(({isoYear:e})=>e<1?["gregory-inverse",1-e]:["gregory",e])(e):this.id===Ga?bo(e):[]}function Se(e){const n=ce(e);if(n<wo){const{isoYear:n}=e;return n<1?["japanese-inverse",1-n]:["japanese",n]}const t=ge(zs(Ga),n),{era:r,eraYear:i}=Nr(t,Ga);return[r,i]}function Ae(e){return ke(e),Ne(e,1),e}function ke(e){return Pe(e,1),e}function Ce(e){return y(no,e,Pe(e))}function Pe(e,t){const{isoYear:r}=e,i=n(e,"isoMonth",1,we(),t);return{isoYear:r,isoMonth:i,isoDay:n(e,"isoDay",1,be(r,i),t)}}function Ne(e,t){return c(eo,[n(e,"isoHour",0,23,t),n(e,"isoMinute",0,59,t),n(e,"isoSecond",0,59,t),n(e,"isoMillisecond",0,999,t),n(e,"isoMicrosecond",0,999,t),n(e,"isoNanosecond",0,999,t)])}function ze(e){return void 0===e?0:xo(F(e))}function He(e,n=0){e=Ze(e);const t=Ro(e),r=jo(e,n);return[xo(e),r,t]}function Ie(e,n,t,r=9,i=0,a=4){n=Ze(n);let o=Go(n,r,i),s=xe(n),u=qo(n,a);const c=Lo(n,r,i,1);return null==o?o=Math.max(t,c):Ke(o,c),s=Re(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[o,c,s,u]}function Fe(e,n=6,t){let r=xe(e=Ue(e,_o));const i=qo(e,7);let a=Lo(e,n);return a=I(_o,a),r=Re(r,a,void 0,t),[a,r,i]}function Oe(e){return Zo(Ze(e))}function Le(e,n){return Ge(Ze(e),n)}function Ge(e,n=4){const t=je(e);return[qo(e,4),...Be(Lo(e,n),t)]}function Be(e,n){return null!=e?[ga[e],e<4?9-3*e:-1]:[void 0===n?1:10**(9-n),n]}function xe(e){const n=e[To];return void 0===n?1:Z(n,To)}function Re(e,n,r,i){const a=i?Ma:ga[n+1];if(a){const r=ga[n];if(a%((e=t(To,e,1,a/r-(i?0:1),1))*r))throw new RangeError(bi(To,e))}else e=t(To,e,1,r?10**9:1,1);return e}function je(e){let n=e[Do];if(void 0!==n){if("number"!=typeof n){if("auto"===B(n))return;throw new RangeError(bi(Do,n))}n=t(Do,Math.floor(n),0,9,1)}return n}function Ze(e){return void 0===e?{}:F(e)}function Ue(e,n){return"string"==typeof e?{[n]:e}:F(e)}function Ye(e){return{overflow:Co[e]}}function qe(e,n,r=9,i=0,a){let o=n[e];if(void 0===o)return a?i:void 0;if(o=B(o),"auto"===o)return a?i:null;let s=sa[o];if(void 0===s&&(s=$a[o]),void 0===s)throw new RangeError(Si(e,o,sa));return t(e,s,i,r,1,ua),s}function We(e,n,t,r=0){const i=t[e];if(void 0===i)return r;const a=B(i),o=n[a];if(void 0===o)throw new RangeError(Si(e,a,n));return o}function Ke(e,n){if(n>e)throw new RangeError(Xi)}function Ve(e){return{branding:Xo,epochNanoseconds:e}}function $e(e,n,t){return{branding:Qo,calendar:t,timeZone:n,epochNanoseconds:e}}function Je(e,n=e.calendar){return{branding:$o,calendar:n,...f(ao,e)}}function Qe(e,n=e.calendar){return{branding:Vo,calendar:n,...f(ro,e)}}function Xe(e,n=e.calendar){return{branding:Wo,calendar:n,...f(ro,e)}}function en(e,n=e.calendar){return{branding:Ko,calendar:n,...f(ro,e)}}function nn(e){return{branding:Jo,...f(io,e)}}function tn(e){return{branding:es,sign:gt(e),...f(qa,e)}}function rn(e){return ne(e.epochNanoseconds,ma)[0]}function an(e){return e.epochNanoseconds}function on(e,n){return ee(wt(e),ga[n],1)}function sn(e,n,t,r,i,a,o){const s=Ya[t],u={...n,[s]:n[s]+r},c=o(e,i,n),l=o(e,i,u);return[a(c),a(l)]}function un(e,n,t){const r=ee(V(n,t));if(!r)throw new RangeError(Li);return ee(V(n,e))/r}function cn(e,n,t,r){return ln(e,fn(n,t),r)}function ln(e,n,t){const[r,i]=dn(e,n,t);return ie({...st(e,i),...r})}function dn(e,n,t){return se(wn(oe(e),n,t))}function mn(e){return wn(e,ha,7)}function fn(e,n){return ga[e]*n}function hn(e){const n=yn(e);return[n,st(n,1)]}function yn(e){return so(6,e)}function Mn(e,n,t){const r=Math.min(Tt(e),6);return bt(vn(wt(e,r),n,t),r)}function gn(e,n,t,r,i,a,o,s,u,c){if(0===r&&1===i)return e;const l=ft(r,s)?mt(s)&&r<6&&t>=6?En:_n:Tn;let[d,m,f]=l(e,n,t,r,i,a,o,s,u,c);return f&&7!==r&&(d=((e,n,t,r,i,a,o,s)=>{const u=gt(e);for(let c=r+1;c<=t;c++){if(7===c&&7!==t)continue;const r=Xa(c,e);r[Ya[c]]+=u;const l=ee(V(o(s(i,a,r)),n));if(l&&Math.sign(l)!==u)break;e=r}return e})(d,m,t,Math.max(6,r),o,s,u,c)),d}function pn(e,n,t,r,i){if(6===n){const n=(e=>e[0]+e[1]/Ma)(e);return[wn(n,t,r),0]}return vn(e,fn(n,t),r,i)}function vn(e,n,t,r){let[i,a]=e;r&&a<0&&(a+=Ma,i-=1);const[o,s]=E(wn(a,n,t),Ma);return q(i+o,s)}function wn(e,n,t){return bn(e/n,t)*n}function bn(e,n){return ns[n](e)}function _n(e,n,t,r,i,a){const o=gt(e),s=wt(e),u=pn(s,r,i,a),c=V(s,u),l=Math.sign(u[0]-s[0])===o,d=bt(u,Math.min(t,6));return[{...e,...d},W(n,c),l]}function En(e,n,t,r,i,a,o,s,u,c){const l=gt(e)||1,d=ee(wt(e,5)),m=fn(r,i);let f=wn(d,m,a);const[h,y]=sn(o,{...e,...Qa},6,l,s,u,c),M=f-ee(V(h,y));let g=0;M&&Math.sign(M)!==l?n=K(h,f):(g+=l,f=wn(M,m,a),n=K(y,f));const p=_t(f);return[{...e,...p,days:e.days+g},n,Boolean(g)]}function Tn(e,n,t,r,i,a,o,s,u,c){const l=gt(e),d=Ya[r],m=Xa(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const f=S(e[d],i)*i;m[d]=f;const[h,y]=sn(o,m,r,i*l,s,u,c),M=f+un(n,h,y)*l*i,g=wn(M,i,a),p=Math.sign(g-M)===l;return m[d]=g,[m,p?y:h,p]}function Dn(e,n,t,r){const[i,a,o,s]=(e=>{const n=Ge(e=Ze(e));return[e.timeZone,...n]})(r),u=void 0!==i;return((e,n,t,r,i,a)=>{t=vn(t,i,r,1);const o=n.R(t);return Fn(ye(t,o),a)+(e?xn(mn(o)):"Z")})(u,n(u?e(i):ts),t.epochNanoseconds,a,o,s)}function Sn(e,n,t){const[r,i,a,o,s,u]=(e=>{e=Ze(e);const n=Zo(e),t=je(e),r=Yo(e),i=qo(e,4),a=Lo(e,4);return[n,Uo(e),r,i,...Be(a,t)]})(t);return((e,n,t,r,i,a,o,s,u,c)=>{r=vn(r,u,s,1);const l=e(t).R(r);return Fn(ye(r,l),c)+xn(mn(l),o)+((e,n)=>1!==n?"["+(2===n?"!":"")+e+"]":"")(t,a)+Rn(n,i)})(e,n.calendar,n.timeZone,n.epochNanoseconds,r,i,a,o,s,u)}function An(e,n){const[t,r,i,a]=(e=>(e=Ze(e),[Zo(e),...Ge(e)]))(n);return o=e.calendar,s=t,u=a,Fn(ln(e,i,r),u)+Rn(o,s);var o,s,u}function kn(e,n){return t=e.calendar,r=e,i=Oe(n),On(r)+Rn(t,i);var t,r,i}function Cn(e,n){return Hn(e.calendar,Ln,e,Oe(n))}function Pn(e,n){return Hn(e.calendar,Gn,e,Oe(n))}function Nn(e,n){const[t,r,i]=Le(n);return a=i,Bn(dn(e,r,t)[0],a);var a}function zn(e,n){const[t,r,i]=Le(n,3);return r>1&&pt(e={...e,...Mn(e,r,t)}),((e,n)=>{const{sign:t}=e,r=-1===t?Mt(e):e,{hours:i,minutes:a}=r,[o,s]=ne(wt(r,3),fa,D);vt(o);const u=Zn(s,n),c=n>=0||!t||u;return(t<0?"-":"")+"P"+In({Y:Yn(r.years),M:Yn(r.months),W:Yn(r.weeks),D:Yn(r.days)})+(i||a||o||c?"T"+In({H:Yn(i),M:Yn(a),S:Yn(o,c)+u}):"")})(e,i)}function Hn(e,n,t,r){const i=r>1||0===r&&e!==Oa;return 1===r?e===Oa?n(t):On(t):i?On(t)+jn(e,2===r):n(t)}function In(e){const n=[];for(const t in e){const r=e[t];r&&n.push(r,t)}return n.join("")}function Fn(e,n){return On(e)+"T"+Bn(e,n)}function On(e){return Ln(e)+"-"+oa(e.isoDay)}function Ln(e){const{isoYear:n}=e;return(n<0||n>9999?Un(n)+w(6,Math.abs(n)):w(4,n))+"-"+oa(e.isoMonth)}function Gn(e){return oa(e.isoMonth)+"-"+oa(e.isoDay)}function Bn(e,n){const t=[oa(e.isoHour),oa(e.isoMinute)];return-1!==n&&t.push(oa(e.isoSecond)+((e,n,t,r)=>Zn(e*ma+n*da+t,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,n)),t.join(":")}function xn(e,n=0){if(1===n)return"";const[t,r]=E(Math.abs(e),ya),[i,a]=E(r,ha),[o,s]=E(a,fa);return Un(e)+oa(t)+":"+oa(i)+(o||s?":"+oa(o)+Zn(s):"")}function Rn(e,n){return 1!==n&&(n>1||0===n&&e!==Oa)?jn(e,2===n):""}function jn(e,n){return"["+(n?"!":"")+"u-ca="+e+"]"}function Zn(e,n){let t=w(9,e);return t=void 0===n?t.replace(os,""):t.slice(0,n),t?"."+t:""}function Un(e){return e<0?"-":"+"}function Yn(e,n){return e||n?e.toLocaleString("fullwide",{useGrouping:0}):""}function qn(e,n){const{epochNanoseconds:t}=e,r=(n.R?n:n(e.timeZone)).R(t),i=ye(t,r);return{calendar:e.calendar,...i,offsetNanoseconds:r}}function Wn(e,n,t,r=0,i=0,a,o){if(void 0!==t&&1===r&&(1===r||o))return de(n,t);const s=e.I(n);if(void 0!==t&&3!==r){const e=((e,n,t,r)=>{const i=le(n);r&&(t=mn(t));for(const n of e){let e=ee(V(n,i));if(r&&(e=mn(e)),e===t)return n}})(s,n,t,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Yi)}return o?le(n):Kn(e,n,i,s)}function Kn(e,n,t=0,r=e.I(n)){if(1===r.length)return r[0];if(1===t)throw new RangeError(qi);if(r.length)return r[3===t?1:0];const i=le(n),a=((e,n)=>{const t=e.R(K(n,-Ma));return(e=>{if(e>Ma)throw new RangeError(Ui);return e})(e.R(K(n,Ma))-t)})(e,i),o=a*(2===t?-1:1);return(r=e.I(ye(i,o)))[2===t?0:r.length-1]}function Vn(e,n){const t=e.I(n);if(t.length)return t[0];const r=K(le(n),-Ma);return e.O(r,1)}function $n(e,n,t){return Ve(ae(W(n.epochNanoseconds,(e=>{if(Et(e))throw new RangeError(Ji);return wt(e,5)})(e?Mt(t):t))))}function Jn(e,n,t,r,i,a=Object.create(null)){const o=n(r.timeZone),s=e(r.calendar);return{...r,...tt(o,s,r,t?Mt(i):i,a)}}function Qn(e,n,t,r,i=Object.create(null)){const{calendar:a}=t;return Je(rt(e(a),t,n?Mt(r):r,i),a)}function Xn(e,n,t,r,i){const{calendar:a}=t;return Qe(it(e(a),t,n?Mt(r):r,i),a)}function et(e,n,t,r,i){const a=t.calendar,o=e(a);let s=re(at(o,t));n&&(r=yt(r)),r.sign<0&&(s=o.P(s,{...Ja,months:1}),s=st(s,-1));const u=o.P(s,r,i);return Xe(at(o,u),a)}function nt(e,n,t){return nn(ot(n,e?Mt(t):t)[0])}function tt(e,n,t,r,i){const a=wt(r,5);let o=t.epochNanoseconds;if(Et(r)){const s=ss(t,e);o=W(Kn(e,{...it(n,s,{...r,...Qa},i),...f(eo,s)}),a)}else o=W(o,a),ze(i);return{epochNanoseconds:ae(o)}}function rt(e,n,t,r){const[i,a]=ot(n,t);return ie({...it(e,n,{...t,...Qa,days:t.days+a},r),...i})}function it(e,n,t,r){if(t.years||t.months||t.weeks)return e.P(n,t,r);ze(r);const i=t.days+wt(t,5)[0];return i?re(st(n,i)):n}function at(e,n,t=1){return st(n,t-e.day(n))}function ot(e,n){const[t,r]=wt(n,5),[i,a]=se(oe(e)+r);return[i,t+a]}function st(e,n){return n?{...e,...Me(ce(e)+n*ca)}:e}function ut(e,n,t){const r=e(t.calendar);return mt(t)?[t,r,n(t.timeZone)]:[{...t,...oo},r]}function ct(e){return e?an:le}function lt(e){return e?g(tt,e):rt}function dt(e){return e?g(sr,e):ur}function mt(e){return e&&e.epochNanoseconds}function ft(e,n){return e<=6-(mt(n)?1:0)}function ht(e,n,t,r,i,a,o){const s=e(Ze(o).relativeTo),u=Math.max(Tt(i),Tt(a));if(ft(u,s))return tn(pt(((e,n,t,r)=>{const i=W(wt(e),wt(n),r?-1:1);if(!Number.isFinite(i[0]))throw new RangeError(Wi);return{...Ja,...bt(i,t)}})(i,a,u,r)));if(!s)throw new RangeError($i);r&&(a=Mt(a));const[c,l,d]=ut(n,t,s),m=lt(d),f=dt(d),h=m(l,c,i);return tn(f(l,c,m(l,h,a),u))}function yt(e){return tn(Mt(e))}function Mt(e){const n={};for(const t of Ya)n[t]=-1*e[t]||0;return n}function gt(e,n=Ya){let t=0;for(const r of n){const n=Math.sign(e[r]);if(n){if(t&&t!==n)throw new RangeError(Vi);t=n}}return t}function pt(e){for(const n of Va)t(n,e[n],-us,us,1);return vt(ee(wt(e),fa)),e}function vt(e){if(!Number.isSafeInteger(e))throw new RangeError(Ki)}function wt(e,n=6){return C(e,n,Ya)}function bt(e,n=6){const[t,r]=e,i=P(r,n,Ya);if(i[Ya[n]]+=t*(Ma/ga[n]),!Number.isFinite(i[Ya[n]]))throw new RangeError(Wi);return i}function _t(e,n=5){return P(e,n,Ya)}function Et(e){return Boolean(gt(e,Ka))}function Tt(e){let n=9;for(;n>0&&!e[Ya[n]];n--);return n}function Dt(e,n){return[e,n]}function St(e){const n=Math.floor(e/rs)*rs;return[n,n+rs]}function At(e){const n=Lt(e);if(void 0===n)throw new RangeError(ea(e));return n}function kt(e,n,t){let r=It(ja(e));if(!r||r.j)throw new RangeError(ea(e));return n?r.calendar===Oa&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...oo}:{...r,isoDay:1,...oo}):t&&r.calendar===Oa&&(r={...r,isoYear:po}),Qe(r.C?Nt(r):zt(r))}function Ct(e){if(e.calendar!==Oa)throw new RangeError(na(e.calendar))}function Pt(e,n,t=0,r=0){const i=Yt(e.timeZone),a=cs(i);let o;return Ae(e),o=e.C?Wn(a,e,n,t,r,!a.$,e.j):Vn(a,e),$e(o,i,Zr(e.calendar))}function Nt(e){return Ht(ie(Ae(e)))}function zt(e){return Ht(re(ke(e)))}function Ht(e){return{...e,calendar:Zr(e.calendar)}}function It(e){const n=_s.exec(e);return n?(e=>{const n=e[10],t="Z"===(n||"").toUpperCase();return{isoYear:Gt(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Bt(e.slice(5)),...xt(e[16]),C:Boolean(e[6]),j:t,offset:t?void 0:n}})(n):void 0}function Ft(e){const n=ws.exec(e);return n?(e=>({isoYear:Gt(e),isoMonth:parseInt(e[4]),isoDay:1,...xt(e[5])}))(n):void 0}function Ot(e){const n=bs.exec(e);return n?(e=>({isoYear:po,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...xt(e[3])}))(n):void 0}function Lt(e,n){const t=Ts.exec(e);return t?((e,n)=>{const t=e[4]||e[5];if(n&&t)throw new RangeError(na(t));return(e=>{if(Math.abs(e)>=Ma)throw new RangeError(Zi);return e})((Ut(e[2])*ya+Ut(e[3])*ha+Ut(e[4])*fa+Rt(e[5]||""))*Zt(e[1]))})(t,n):void 0}function Gt(e){const n=Zt(e[1]),t=parseInt(e[2]||e[3]);if(n<0&&!t)throw new RangeError(na(-0));return n*t}function Bt(e){const n=Ut(e[3]);return{...se(Rt(e[4]||""))[0],isoHour:Ut(e[1]),isoMinute:Ut(e[2]),isoSecond:60===n?59:n}}function xt(e){let n,t;const r=[];if(e.replace(Ds,(e,i,a)=>{const o=Boolean(i),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),n||(n=o);else if(o||/[A-Z]/.test(u))throw new RangeError(na(e))}else{if(t)throw new RangeError(na(e));t=s}return""}),r.length>1&&n)throw new RangeError(na(e));return{timeZone:t,calendar:r[0]||Oa}}function Rt(e){return parseInt(e.padEnd(9,"0"))}function jt(e){return new RegExp(`^${e}$`,"i")}function Zt(e){return e&&"+"!==e?-1:1}function Ut(e){return void 0===e?0:parseInt(e)}function Yt(e){const n=Wt(e);return"number"==typeof n?xn(n):n?(e=>{if(Cs.test(e))throw new RangeError(xi(e));if(ks.test(e))throw new RangeError(ji);return e.toLowerCase().split("/").map((e,n)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,t)=>e.length<=2&&!n||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!t?p(e).replace(/island|noronha|murdo|rivadavia|urville/,p):e)).join("/")})(e):ts}function qt(e){const n=Wt(e);return"number"==typeof n?n:n?n.resolvedOptions().timeZone:ts}function Wt(e){const n=Lt(e=e.toUpperCase(),1);return void 0!==n?n:e!==ts?As(e):void 0}function Kt(e,n){return $(e.epochNanoseconds,n.epochNanoseconds)}function Vt(e,n){return $(e.epochNanoseconds,n.epochNanoseconds)}function $t(e,n){return Jt(e,n)||Qt(e,n)}function Jt(e,n){return b(ce(e),ce(n))}function Qt(e,n){return b(oe(e),oe(n))}function Xt(e,n){if(e===n)return 1;try{return qt(e)===qt(n)}catch(e){}}function er(e,n,t,r){const i=Ie(e,r,3,5),a=dr(n.epochNanoseconds,t.epochNanoseconds,...i);return tn(e?Mt(a):a)}function nr(e,n,t,r,i,a){const o=Mr(r.calendar,i.calendar),[s,u,c,l]=Ie(t,a,5),d=r.epochNanoseconds,m=i.epochNanoseconds,f=$(m,d);let h;if(f)if(s<6)h=dr(d,m,s,u,c,l);else{const t=n(((e,n)=>{if(!Xt(e,n))throw new RangeError(Ri);return e})(r.timeZone,i.timeZone)),d=e(o);h=cr(d,t,r,i,f,s,a),h=gn(h,m,s,u,c,l,d,r,an,g(tt,t))}else h=Ja;return tn(t?Mt(h):h)}function tr(e,n,t,r,i){const a=Mr(t.calendar,r.calendar),[o,s,u,c]=Ie(n,i,6),l=le(t),d=le(r),m=$(d,l);let f;if(m)if(o<=6)f=dr(l,d,o,s,u,c);else{const n=e(a);f=lr(n,t,r,m,o,i),f=gn(f,d,o,s,u,c,n,t,le,rt)}else f=Ja;return tn(n?Mt(f):f)}function rr(e,n,t,r,i){const a=Mr(t.calendar,r.calendar);return ar(n,()=>e(a),t,r,...Ie(n,i,6,9,6))}function ir(e,n,t,r,i){const a=Mr(t.calendar,r.calendar),o=Ie(n,i,9,9,8),s=e(a),u=at(s,t),c=at(s,r);return u.isoYear===c.isoYear&&u.isoMonth===c.isoMonth&&u.isoDay===c.isoDay?tn(Ja):ar(n,()=>s,re(u),re(c),...o,8)}function ar(e,n,t,r,i,a,o,s,u=6){const c=le(t),l=le(r);if(void 0===c||void 0===l)throw new RangeError(Wi);let d;if($(l,c))if(6===i)d=dr(c,l,i,a,o,s);else{const e=n();d=e.N(t,r,i),a===u&&1===o||(d=gn(d,l,i,a,o,s,e,t,le,it))}else d=Ja;return tn(e?Mt(d):d)}function or(e,n,t,r){const[i,a,o,s]=Ie(e,r,5,5),u=wn(yr(n,t),fn(a,o),s),c={...Ja,..._t(u,i)};return tn(e?Mt(c):c)}function sr(e,n,t,r,i,a){const o=$(r.epochNanoseconds,t.epochNanoseconds);return o?i<6?mr(t.epochNanoseconds,r.epochNanoseconds,i):cr(n,e,t,r,o,i,a):Ja}function ur(e,n,t,r,i){const a=le(n),o=le(t),s=$(o,a);return s?r<=6?mr(a,o,r):lr(e,n,t,s,r,i):Ja}function cr(e,n,t,r,i,a,o){const[s,u,c]=((e,n,t,r)=>{function i(){return d={...st(s,c++*-r),...o},m=Kn(e,d),$(u,m)===-r}const a=ss(n,e),o=f(eo,a),s=ss(t,e),u=t.epochNanoseconds;let c=0;const l=yr(a,s);let d,m;if(Math.sign(l)===-r&&c++,i()&&(-1===r||i()))throw new RangeError(Li);const h=ee(V(m,u));return[a,d,h]})(n,t,r,i);var l,d;return{...6===a?(l=s,d=u,{...Ja,days:fr(l,d)}):e.N(s,u,a,o),..._t(c)}}function lr(e,n,t,r,i,a){const[o,s,u]=((e,n,t)=>{let r=n,i=yr(e,n);return Math.sign(i)===-t&&(r=st(n,-t),i+=Ma*t),[e,r,i]})(n,t,r);return{...e.N(o,s,i,a),..._t(u)}}function dr(e,n,t,r,i,a){return{...Ja,...bt(pn(V(e,n),r,i,a),t)}}function mr(e,n,t){return{...Ja,...bt(V(e,n),t)}}function fr(e,n){return hr(ce(e),ce(n))}function hr(e,n){return Math.trunc((n-e)/ca)}function yr(e,n){return oe(n)-oe(e)}function Mr(e,n){if(e!==n)throw new RangeError(Bi);return e}function gr(e){return this.m(e)[0]}function pr(e){return this.m(e)[1]}function vr(e){const[n]=this.v(e);return hr(this.p(n),ce(e))+1}function wr(e){const n=Ps.exec(e);if(!n)throw new RangeError(Hi(e));return[parseInt(n[1]),Boolean(n[2])]}function br(e,n){return"M"+oa(e)+(n?"L":"")}function _r(e,n,t){return e+(n||t&&e>=t?1:0)}function Er(e,n){return e-(n&&e>=n?1:0)}function Tr(e,n){return(n+e)*(Math.sign(n)||1)||0}function Dr(e){return Ba[Ar(e)]}function Sr(e){return Ra[Ar(e)]}function Ar(e){return Ur(e.id||Oa)}function kr(e){function n(e){return((e,n)=>({...Nr(e,n),o:e.month,day:parseInt(e.day)}))(ge(t,e),r)}const t=zs(e),r=Ur(e);return{id:e,h:Cr(n),l:Pr(n)}}function Cr(e){return i(n=>{const t=ce(n);return e(t)},WeakMap)}function Pr(e){const n=e(0).year-go;return i(t=>{let r,i=fe(t-n),a=0;const o=[],s=[];do{i+=400*ca}while((r=e(i)).year<=t);do{if(i+=(1-r.day)*ca,r.year===t&&(o.push(i),s.push(r.o)),i-=ca,++a>100||i<-co)throw new RangeError(Li)}while((r=e(i)).year>=t);return{i:o.reverse(),u:ia(s.reverse())}})}function Nr(e,n){let t,r,i=zr(e);if(e.era){const a=Ba[n],o=xa[n]||{};void 0!==a&&(t="islamic"===n?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===t||"b"===t?t="bce":"ad"===t||"a"===t?t="ce":"beforeroc"===t&&(t="broc"),t=o[t]||t,r=i,i=Tr(r,a[t]||0))}return{era:t,eraYear:r,year:i}}function zr(e){return parseInt(e.relatedYear||e.year)}function Hr(e){const{year:n,o:t,day:r}=this.h(e),{u:i}=this.l(n);return[n,i[t]+1,r]}function Ir(e,n=1,t=1){return this.l(e).i[n-1]+(t-1)*ca}function Fr(e,n){const t=Or.call(this,e);return[Er(n,t),t===n]}function Or(e){const n=Rr(this,e),t=Rr(this,e-1),r=n.length;if(r>t.length){const e=Sr(this);if(e<0)return-e;for(let e=0;e<r;e++)if(n[e]!==t[e])return e+1}}function Lr(e){return hr(Ir.call(this,e),Ir.call(this,e+1))}function Gr(e,n){const{i:t}=this.l(e);let r=n+1,i=t;return r>t.length&&(r=1,i=this.l(e+1).i),hr(t[n-1],i[r-1])}function Br(e){return this.l(e).i.length}function xr(e){const n=this.h(e);return[n.era,n.eraYear]}function Rr(e,n){return Object.keys(e.l(n).u)}function jr(e){return Zr(ja(e))}function Zr(e){if((e=e.toLowerCase())!==Oa&&e!==La){const n=zs(e).resolvedOptions().calendar;if(Ur(e)!==Ur(n))throw new RangeError(Gi(e));return n}return e}function Ur(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function Yr(e,n){return t=>t===Oa?e:t===La||t===Ga?Object.assign(Object.create(e),{id:t}):Object.assign(Object.create(n),Ns(t))}function qr(e,n,t,r){const i=Wr(t,r,za,[],Ea);if(void 0!==i.timeZone){const r=t.F(i),a=Vr(i),o=e(i.timeZone);return{epochNanoseconds:Wn(n(o),{...r,...a},void 0!==i.offset?At(i.offset):void 0),timeZone:o}}return{...t.F(i),...oo}}function Wr(e,n,t,r=[],i=[]){return Kr(n,[...e.fields(t),...i].sort(),r)}function Kr(e,n,t,r=!t){const i={};let a,o=0;for(const r of n){if(r===a)throw new RangeError(Ti(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ei(r));let n=e[r];if(void 0!==n)o=1,Zs[r]&&(n=Zs[r](n,r)),i[r]=n;else if(t){if(t.includes(r))throw new TypeError(_i(r));i[r]=Fa[r]}a=r}if(r&&!o)throw new TypeError(Di(n));return i}function Vr(e,n){return Ne(Us({...Fa,...e}),n)}function $r(e,n,t,r,i){n=f(t=e.fields(t),n),r=Kr(r,i=e.fields(i),[]);let a=e.k(n,r);return a=Kr(a,[...t,...i].sort(),[]),e.F(a)}function Jr(e,n){const t=Dr(e),r=xa[e.id||""]||{};let{era:i,eraYear:a,year:o}=n;if(void 0!==i||void 0!==a){if(void 0===i||void 0===a)throw new TypeError(Ci);if(!t)throw new RangeError(ki);const e=t[r[i]||i];if(void 0===e)throw new RangeError(Ni(i));const n=Tr(a,e);if(void 0!==o&&o!==n)throw new RangeError(Pi);o=n}else if(void 0===o)throw new TypeError(zi(t));return o}function Qr(e,n,r,i){let{month:a,monthCode:o}=n;if(void 0!==o){const n=((e,n,t,r)=>{const i=e.L(t),[a,o]=wr(n);let s=_r(a,o,i);if(o){const n=Sr(e);if(void 0===n)throw new RangeError(Oi);if(n>0){if(s>n)throw new RangeError(Oi);if(void 0===i){if(1===r)throw new RangeError(Oi);s--}}else{if(s!==-n)throw new RangeError(Oi);if(void 0===i&&1===r)throw new RangeError(Oi)}}return s})(e,o,r,i);if(void 0!==a&&a!==n)throw new RangeError(Ii);a=n,i=1}else if(void 0===a)throw new TypeError(Fi);return t("month",a,1,e.B(r),i)}function Xr(e,t,r,i,a){return n(t,"day",1,e.U(i,r),a)}function ei(e,n,t,r){let i=0;const a=[];for(const e of t)void 0!==n[e]?i=1:a.push(e);if(Object.assign(e,n),i)for(const n of r||a)delete e[n]}function ni(e){const n=Rs(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{year:t,monthCode:br(a,o),day:i}}function ti(e,n){return Je(ss(n,e))}function ri(e,n){return Qe(ss(n,e))}function ii(e,n){return nn(ss(n,e))}function ai(e,n,t){const r=new Set(t);return(i,a)=>{const o=t&&h(i,t);if(!h(i=((e,n)=>{const t={};for(const r in n)e.has(r)||(t[r]=n[r]);return t})(r,i),e)){if(a&&o)throw new TypeError("Invalid formatting options");i={...n,...i}}return t&&(i.timeZone=ts,["full","long"].includes(i.J)&&(i.J="medium")),i}}function oi(e,n=si,t=0){const[r,,,i]=e;return(a,o=bu,...s)=>{const u=n(i&&i(...s),a,o,r,t),c=u.resolvedOptions();return[u,...ui(e,c,s)]}}function si(e,n,t,r,i){if(t=r(t,i),e){if(void 0!==t.timeZone)throw new TypeError(ra);t.timeZone=e}return new yo(n,t)}function ui(e,n,t){const[,r,i]=e;return t.map(e=>(e.calendar&&((e,n,t)=>{if((t||e!==Oa)&&e!==n)throw new RangeError(Bi)})(e.calendar,n.calendar,i),r(e,n)))}function ci(e,n){return{...e,calendar:n}}function li(e){const n=di();return ye(n,e.R(n))}function di(){return X(Date.now(),ma)}function mi(){return Pu||(Pu=(new yo).resolvedOptions().timeZone)}const fi=(e,n)=>`Non-integer ${e}: ${n}`,hi=(e,n)=>`Non-positive ${e}: ${n}`,yi=(e,n)=>`Non-finite ${e}: ${n}`,Mi=e=>`Cannot convert bigint to ${e}`,gi=e=>`Invalid bigint: ${e}`,pi="Cannot convert Symbol to string",vi="Invalid object",wi=(e,n,t,r,i)=>i?wi(e,i[n],i[t],i[r]):bi(e,n)+`; must be between ${t}-${r}`,bi=(e,n)=>`Invalid ${e}: ${n}`,_i=e=>`Missing ${e}`,Ei=e=>`Invalid field ${e}`,Ti=e=>`Duplicate field ${e}`,Di=e=>"No valid fields: "+e.join(),Si=(e,n,t)=>bi(e,n)+"; must be "+Object.keys(t).join(),Ai="Invalid calling context",ki="Forbidden era/eraYear",Ci="Mismatching era/eraYear",Pi="Mismatching year/eraYear",Ni=e=>`Invalid era: ${e}`,zi=e=>"Missing year"+(e?"/era/eraYear":""),Hi=e=>`Invalid monthCode: ${e}`,Ii="Mismatching month/monthCode",Fi="Missing month/monthCode",Oi="Invalid leap month",Li="Invalid protocol results",Gi=e=>bi("Calendar",e),Bi="Mismatching Calendars",xi=e=>bi("TimeZone",e),Ri="Mismatching TimeZones",ji="Forbidden ICU TimeZone",Zi="Out-of-bounds offset",Ui="Out-of-bounds TimeZone gap",Yi="Invalid TimeZone offset",qi="Ambiguous offset",Wi="Out-of-bounds date",Ki="Out-of-bounds duration",Vi="Cannot mix duration signs",$i="Missing relativeTo",Ji="Cannot use large units",Qi="Required smallestUnit or largestUnit",Xi="smallestUnit > largestUnit",ea=e=>`Cannot parse: ${e}`,na=e=>`Invalid substring: ${e}`,ta="Mismatching types for formatting",ra="Cannot specify TimeZone",ia=g(d,(e,n)=>n),aa=g(d,(e,n,t)=>t),oa=g(w,2),sa={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},ua=Object.keys(sa),ca=864e5,la=1e3,da=1e3,ma=1e6,fa=1e9,ha=6e10,ya=36e11,Ma=864e11,ga=[1,da,ma,fa,ha,ya,Ma],pa=ua.slice(0,6),va=v(pa),wa=["offset"],ba=["timeZone"],_a=pa.concat(wa),Ea=_a.concat(ba),Ta=["era","eraYear"],Da=Ta.concat(["year"]),Sa=["year"],Aa=["monthCode"],ka=["month"].concat(Aa),Ca=["day"],Pa=ka.concat(Sa),Na=Aa.concat(Sa),za=Ca.concat(Pa),Ha=Ca.concat(ka),Ia=Ca.concat(Aa),Fa=aa(pa,0),Oa="iso8601",La="gregory",Ga="japanese",Ba={[La]:{"gregory-inverse":-1,gregory:0},[Ga]:{"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}},xa={[La]:{bce:"gregory-inverse",ce:"gregory"},[Ga]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Ra={chinese:13,dangi:13,hebrew:-6},ja=g(O,"string"),Za=g(O,"boolean"),Ua=g(O,"number"),Ya=ua.map(e=>e+"s"),qa=v(Ya),Wa=Ya.slice(0,6),Ka=Ya.slice(6),Va=Ka.slice(1),$a=ia(Ya),Ja=aa(Ya,0),Qa=aa(Wa,0),Xa=g(M,Ya),eo=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],no=["isoDay","isoMonth","isoYear"],to=eo.concat(no),ro=v(no),io=v(eo),ao=v(to),oo=aa(io,0),so=g(M,to),uo=1e8,co=uo*ca,lo=[uo,0],mo=[-uo,0],fo=275760,ho=-271821,yo=Intl.DateTimeFormat,Mo="en-GB",go=1970,po=1972,vo=12,wo=fe(1868,9,8),bo=i(Se,WeakMap),_o="smallestUnit",Eo="unit",To="roundingIncrement",Do="fractionalSecondDigits",So="relativeTo",Ao="direction",ko={constrain:0,reject:1},Co=Object.keys(ko),Po={compatible:0,reject:1,earlier:2,later:3},No={reject:0,use:1,prefer:2,ignore:3},zo={auto:0,never:1,critical:2,always:3},Ho={auto:0,never:1,critical:2},Io={auto:0,never:1},Fo={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Oo={previous:-1,next:1},Lo=g(qe,_o),Go=g(qe,"largestUnit"),Bo=g(qe,Eo),xo=g(We,"overflow",ko),Ro=g(We,"disambiguation",Po),jo=g(We,"offset",No),Zo=g(We,"calendarName",zo),Uo=g(We,"timeZoneName",Ho),Yo=g(We,"offset",Io),qo=g(We,"roundingMode",Fo),Wo="PlainYearMonth",Ko="PlainMonthDay",Vo="PlainDate",$o="PlainDateTime",Jo="PlainTime",Qo="ZonedDateTime",Xo="Instant",es="Duration",ns=[Math.floor,e=>k(e)?Math.floor(e):Math.round(e),Math.ceil,e=>k(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>k(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=>k(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ts="UTC",rs=5184e3,is=me(1847),as=me((new Date).getUTCFullYear()+10),os=/0+$/,ss=i(qn,WeakMap),us=2**32-1,cs=i(e=>{const n=Wt(e);return"object"==typeof n?new ds(n):new ls(n||0)});class ls{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const n=le({...e,...oo});if(!n||Math.abs(n[0])>1e8)throw new RangeError(Wi)})(e),[de(e,this.$)]}O(){}}class ds{constructor(e){this.nn=(e=>{function n(e){const n=_(e,o,s),[i,u]=St(n),c=r(i),l=r(u);return c===l?c:t(a(i,u),c,l,e)}function t(n,t,r,i){let a,o;for(;(void 0===i||void 0===(a=i<n[0]?t:i>=n[1]?r:void 0))&&(o=n[1]-n[0]);){const t=n[0]+Math.floor(o/2);e(t)===r?n[1]=t:n[0]=t+1}return a}const r=i(e),a=i(Dt);let o=is,s=as;return{tn(e){const t=n(e-86400),r=n(e+86400),i=e-t,a=e-r;if(t===r)return[i];const o=n(i);return o===n(a)?[e-o]:t>r?[i,a]:[]},rn:n,O(e,n){const i=_(e,o,s);let[u,c]=St(i);const l=rs*n,d=n<0?()=>c>o||(o=i,0):()=>u<s||(s=i,0);for(;d();){const i=r(u),o=r(c);if(i!==o){const r=a(u,c);t(r,i,o);const s=r[0];if((b(s,e)||1)===n)return s}u+=l,c+=l}}}})((e=>n=>{const t=ge(e,n*la);return me(zr(t),parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second))-n})(e))}R(e){return this.nn.rn((e=>ue(e)[0])(e))*fa}I(e){const[n,t]=[me((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*ma+r.isoMicrosecond*da+r.isoNanosecond];var r;return this.nn.tn(n).map(e=>ae(K(X(e,fa),t)))}O(e,n){const[t,r]=ue(e),i=this.nn.O(t+(n>0||r?1:0),n);if(void 0!==i)return X(i,fa)}}const ms="([+-])",fs="(?:[.,](\\d{1,9}))?",hs=`(?:(?:${ms}(\\d{6}))|(\\d{4}))-?(\\d{2})`,ys="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+fs+")?)?",Ms=ms+ys,gs=hs+"-?(\\d{2})(?:[T ]"+ys+"(Z|"+Ms+")?)?",ps="\\[(!?)([^\\]]*)\\]",vs=`((?:${ps}){0,9})`,ws=jt(hs+vs),bs=jt("(?:--)?(\\d{2})-?(\\d{2})"+vs),_s=jt(gs+vs),Es=jt("T?"+ys+"(?:"+Ms+")?"+vs),Ts=jt(Ms),Ds=new RegExp(ps,"g"),Ss=jt(`${ms}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${fs}H)?(?:(\\d+)${fs}M)?(?:(\\d+)${fs}S)?)?`),As=i(e=>new yo(Mo,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),ks=/^(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$/,Cs=/[^\w\/:+-]+/,Ps=/^M(\d{2})(L?)$/,Ns=i(kr),zs=i(e=>new yo(Mo,{calendar:e,timeZone:ts,era:"short",year:"numeric",month:"short",day:"numeric"})),Hs={P(e,n,r){const i=ze(r);let a,{years:o,months:s,weeks:u,days:c}=n;if(c+=wt(n,5)[0],o||s)a=((e,n,r,i,a)=>{let[o,s,u]=e.v(n);if(r){const[n,i]=e.q(o,s);o+=r,s=_r(n,i,e.L(o)),s=t("month",s,1,e.B(o),a)}return i&&([o,s]=e.un(o,s,i)),u=t("day",u,1,e.U(o,s),a),e.p(o,s,u)})(this,e,o,s,i);else{if(!u&&!c)return e;a=ce(e)}if(void 0===a)throw new RangeError(Wi);return a+=(7*u+c)*ca,re(Me(a))},N(e,n,t){if(t<=7){let r=0,i=fr({...e,...oo},{...n,...oo});return 7===t&&([r,i]=D(i,7)),{...Ja,weeks:r,days:i}}const r=this.v(e),i=this.v(n);let[a,o,s]=((e,n,t,r,i,a,o)=>{let s=i-n,u=a-t,c=o-r;if(s||u){const l=Math.sign(s||u);let d=e.U(i,a),m=0;if(Math.sign(c)===-l){const r=d;[i,a]=e.un(i,a,-l),s=i-n,u=a-t,d=e.U(i,a),m=l<0?-r:d}if(c=o-Math.min(r,d)+m,s){const[r,o]=e.q(n,t),[c,d]=e.q(i,a);if(u=c-r||Number(d)-Number(o),Math.sign(u)===-l){const t=l<0&&-e.B(i);s=(i-=l)-n,u=a-_r(r,o,e.L(i))+(t||e.B(i))}}}return[s,u,c]})(this,...r,...i);return 8===t&&(o+=this.cn(a,r[0]),a=0),{...Ja,years:a,months:o,days:s}},F(e,n){const t=ze(n),r=Jr(this,e),i=Qr(this,e,r,t),a=Xr(this,e,i,r,t);return Qe(re(this.V(r,i,a)),this.id||Oa)},K(e,n){const t=ze(n),r=Jr(this,e),i=Qr(this,e,r,t);return Xe(te(this.V(r,i,1)),this.id||Oa)},_(e,n){const t=ze(n);let r,i,a,o=void 0!==e.eraYear||void 0!==e.year?Jr(this,e):void 0;const s=!this.id;if(void 0===o&&s&&(o=po),void 0!==o){const n=Qr(this,e,o,t);r=Xr(this,e,n,o,t);const s=this.L(o);i=Er(n,s),a=n===s}else{if(void 0===e.monthCode)throw new TypeError(Fi);if([i,a]=wr(e.monthCode),this.id&&this.id!==La&&this.id!==Ga)if(this.id&&"coptic"===Ur(this.id)&&0===t){const n=a||13!==i?30:6;r=e.day,r=_(r,1,n)}else if(this.id&&"chinese"===Ur(this.id)&&0===t){const n=!a||1!==i&&9!==i&&10!==i&&11!==i&&12!==i?30:29;r=e.day,r=_(r,1,n)}else r=e.day;else r=Xr(this,e,Qr(this,e,po,t),po,t)}const u=this.G(i,a,r);if(!u)throw new RangeError("Cannot guess year");const[c,l]=u;return en(re(this.V(c,l,r)),this.id||Oa)},fields(e){return Dr(this)&&e.includes("year")?[...e,...Ta]:e},k(e,n){const t=Object.assign(Object.create(null),e);return ei(t,n,ka),Dr(this)&&(ei(t,n,Da),this.id===Ga&&ei(t,n,Ha,Ta)),t},inLeapYear(e){const[n]=this.v(e);return this.sn(n)},monthsInYear(e){const[n]=this.v(e);return this.B(n)},daysInMonth(e){const[n,t]=this.v(e);return this.U(n,t)},daysInYear(e){const[n]=this.v(e);return this.fn(n)},dayOfYear:vr,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[n,t]=this.v(e),[r,i]=this.q(n,t);return br(r,i)},dayOfWeek:Te,daysInWeek:()=>7},Is={v:pe,hn:De,q:ve},Fs={dayOfYear:vr,v:pe,p:fe},Os=Object.assign({},Fs,{weekOfYear:gr,yearOfWeek:pr,m(e){function n(e){return(7-e<r?7:0)-e}function t(e){const t=_e(m+e),r=e||1,i=n(T(u+t*r,7));return l=(t+(i-c)*r)/7}const r=this.id?1:4,i=Te(e),a=this.dayOfYear(e),o=T(i-1,7),s=a-1,u=T(o-s,7),c=n(u);let l,d=Math.floor((s-c)/7)+1,m=e.isoYear;return d?d>t(0)&&(d=1,m++):(d=t(-1),m--),[d,m,l]}}),Ls=Object.assign({},Hs,Os,{v:pe,hn:De,q:ve,G(e,n){if(!n)return[po,e]},sn:Ee,L(){},B:we,cn:e=>e*vo,U:be,fn:_e,V:(e,n,t)=>({isoYear:e,isoMonth:n,isoDay:t}),p:fe,un:(e,n,t)=>(e+=S(t,vo),(n+=A(t,vo))<1?(e--,n+=vo):n>vo&&(e++,n-=vo),[e,n]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Gs={v:Hr,hn:xr,q:Fr},Bs={dayOfYear:vr,v:Hr,p:Ir,weekOfYear:gr,yearOfWeek:pr,m:()=>[]},xs=Object.assign({},Hs,Bs,{v:Hr,hn:xr,q:Fr,G(e,n,t){const r=this.id&&"chinese"===Ur(this.id)?((e,n,t)=>{if(n)switch(e){case 1:return 1651;case 2:return t<30?1947:1765;case 3:return t<30?1966:1955;case 4:return t<30?1963:1944;case 5:return t<30?1971:1952;case 6:return t<30?1960:1941;case 7:return t<30?1968:1938;case 8:return t<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,n,t):po;let[i,a,o]=Hr.call(this,{isoYear:r,isoMonth:vo,isoDay:31});const s=Or.call(this,i),u=a===s;1===(b(e,Er(a,s))||b(Number(n),Number(u))||b(t,o))&&i--;for(let r=0;r<100;r++){const a=i-r,o=Or.call(this,a),s=_r(e,n,o);if(n===(s===o)&&t<=Gr.call(this,a,s))return[a,s]}},sn(e){const n=Lr.call(this,e);return n>Lr.call(this,e-1)&&n>Lr.call(this,e+1)},L:Or,B:Br,cn(e,n){const t=n+e,r=Math.sign(e),i=r<0?-1:0;let a=0;for(let e=n;e!==t;e+=r)a+=Br.call(this,e+i);return a},U:Gr,fn:Lr,V(e,n,t){return Me(Ir.call(this,e,n,t))},p:Ir,un(e,n,t){if(t){if(n+=t,!Number.isSafeInteger(n))throw new RangeError(Wi);if(t<0)for(;n<1;)n+=Br.call(this,--e);else{let t;for(;n>(t=Br.call(this,e));)n-=t,e++}}return[e,n]},year(e){return this.h(e).year},month(e){const{year:n,o:t}=this.h(e),{u:r}=this.l(n);return r[t]+1},day(e){return this.h(e).day}}),Rs=Yr(Is,Gs),js=Yr(Ls,xs),Zs={...{era:x,eraYear:Z,year:Z,month:Y,monthCode(e){const n=x(e);return wr(n),n},day:Y},...aa(pa,Z),...aa(Ya,U),offset(e){const n=x(e);return At(n),n}},Us=g(m,pa,eo),Ys=g(m,eo,pa),qs="numeric",Ws=["timeZoneName"],Ks={month:qs,day:qs},Vs={year:qs,month:qs},$s=Object.assign({},Vs,{day:qs}),Js={hour:qs,minute:qs,second:qs},Qs=Object.assign({},$s,Js),Xs=Object.assign({},Qs,{timeZoneName:"short"}),eu=Object.keys(Vs),nu=Object.keys(Ks),tu=Object.keys($s),ru=Object.keys(Js),iu=["dateStyle"],au=eu.concat(iu),ou=nu.concat(iu),su=tu.concat(iu,["weekday"]),uu=ru.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),cu=su.concat(uu),lu=Ws.concat(uu),du=Ws.concat(su),mu=Ws.concat(["day","weekday"],uu),fu=Ws.concat(["year","weekday"],uu),hu=ai(cu,Qs),yu=ai(cu,Xs),Mu=ai(cu,Qs,Ws),gu=ai(su,$s,lu),pu=ai(uu,Js,du),vu=ai(au,Vs,mu),wu=ai(ou,Ks,fu),bu={},_u=new yo(void 0,{calendar:Oa}).resolvedOptions().calendar===Oa,Eu=[hu,rn],Tu=[yu,rn,0,(e,n)=>{const t=e.timeZone;if(n&&n.timeZone!==t)throw new RangeError(Ri);return t}],Du=[Mu,ce],Su=[gu,ce],Au=[pu,e=>oe(e)/ma],ku=[vu,ce,_u],Cu=[wu,ce,_u];let Pu;function Nu(e,n,t,r,i){function c(...e){if(!(this instanceof c))throw new TypeError(Ai);rc(this,n(...e))}function d(e,n){return Object.defineProperties(function(...n){return e.call(this,m(this),...n)},a(n))}function m(n){const t=tc(n);if(!t||t.branding!==e)throw new TypeError(Ai);return t}return Object.defineProperties(c.prototype,{...s(l(d,t)),...o(l(d,r)),...u("Temporal."+e)}),Object.defineProperties(c,{...o(i),...a(e)}),[c,e=>{const n=Object.create(c.prototype);return rc(n,e),n},m]}function zu(e){if(tc(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Hu(e){return Iu(e)||Oa}function Iu(e){const{calendar:n}=e;if(void 0!==n)return Fu(n)}function Fu(e){if(r(e)){const{calendar:n}=tc(e)||{};if(!n)throw new TypeError(Gi(e));return n}return(e=>Zr(function(e){const n=It(e)||Ft(e)||Ot(e);return n?n.calendar:e}(ja(e))))(e)}function Ou(e){const n={};for(const t in e)n[t]=e=>{const{calendar:n}=e;return js(n)[t](e)};return n}function Lu(){throw new TypeError("Cannot use valueOf")}function Gu(e){if(r(e)){const{timeZone:n}=tc(e)||{};if(!n)throw new TypeError(xi(e));return n}return(e=>Yt(function(e){const n=It(e);return n&&(n.timeZone||n.j&&ts||n.offset)||e}(ja(e))))(e)}function Bu(e){if(r(e)){const n=tc(e);return n&&n.branding===es?n:function(e){const n=Kr(e,qa);return tn(pt({...Ja,...n}))}(e)}return function(e){const n=(e=>{const n=Ss.exec(e);return n?(e=>{function n(e,n,a){let o=0,s=0;if(a&&([o,i]=E(i,ga[a])),void 0!==e){if(r)throw new RangeError(na(e));s=(e=>{const n=parseInt(e);if(!Number.isFinite(n))throw new RangeError(na(e));return n})(e),t=1,n&&(i=Rt(n)*(ga[a]/fa),r=1)}return o+s}let t=0,r=0,i=0,a={...c(Ya,[n(e[2]),n(e[3]),n(e[4]),n(e[5]),n(e[6],e[7],5),n(e[8],e[9],4),n(e[10],e[11],3)]),...P(i,2,Ya)};if(!t)throw new RangeError(Di(Ya));return Zt(e[1])<0&&(a=Mt(a)),a})(n):void 0})(ja(e));if(!n)throw new RangeError(ea(e));return tn(pt(n))}(e)}function xu(e){if(void 0!==e){if(r(e)){const n=tc(e)||{};switch(n.branding){case Qo:case Vo:return n;case $o:return Qe(n)}const t=Hu(e);return{...qr(Gu,cs,js(t),e),calendar:t}}return function(e){const n=It(ja(e));if(!n)throw new RangeError(ea(e));if(n.timeZone)return Pt(n,n.offset?At(n.offset):void 0);if(n.j)throw new RangeError(ea(e));return zt(n)}(e)}}function Ru(e,n){if(r(e)){const t=tc(e)||{};switch(t.branding){case Jo:return ze(n),t;case $o:return ze(n),nn(t);case Qo:return ze(n),ii(cs,t)}return function(e,n){return nn(Vr(Kr(e,va,[],1),ze(n)))}(e,n)}const t=function(e){let n,t=(e=>{const n=Es.exec(e);return n?(xt(n[10]),Bt(n)):void 0})(ja(e));if(!t){if(t=It(e),!t)throw new RangeError(ea(e));if(!t.C)throw new RangeError(ea(e));if(t.j)throw new RangeError(na("Z"));Ct(t)}if((n=Ft(e))&&Ce(n))throw new RangeError(ea(e));if((n=Ot(e))&&Ce(n))throw new RangeError(ea(e));return nn(Ne(t,1))}(e);return ze(n),t}function ju(e){return void 0===e?void 0:Ru(e)}function Zu(e,n){if(r(e)){const t=tc(e)||{};switch(t.branding){case $o:return ze(n),t;case Vo:return ze(n),Je({...t,...oo});case Qo:return ze(n),ti(cs,t)}return function(e,n,t){const r=Wr(e,n,za,[],pa),i=ze(t);return Je(ie({...e.F(r,Ye(i)),...Vr(r,i)}))}(js(Hu(e)),e,n)}const t=function(e){const n=It(ja(e));if(!n||n.j)throw new RangeError(ea(e));return Je(Nt(n))}(e);return ze(n),t}function Uu(e,n){if(r(e)){const t=tc(e);if(t&&t.branding===Ko)return ze(n),t;const r=Iu(e);return function(e,n,t,r){const i=Wr(e,t,za,Ca);return n&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=po),e._(i,r)}(js(r||Oa),!r,e,n)}const t=function(e,n){const t=Ot(ja(n));if(t)return Ct(t),en(ke(t));const r=kt(n,0,1),{calendar:i}=r,a=e(i),[o,s,u]=a.v(r),[c,l]=a.q(o,s),[d,m]=a.G(c,l,u);return en(re(a.V(d,m,u)),i)}(js,e);return ze(n),t}function Yu(e,n){if(r(e)){const t=tc(e);return t&&t.branding===Wo?(ze(n),t):function(e,n,t,r){const i=Wr(e,n,Pa,r);return e.K(i,t)}(js(Hu(e)),e,n)}const t=function(e,n){const t=Ft(ja(n));if(t)return Ct(t),Xe(te(ke(t)));const r=kt(n,1);return Xe(at(e(r.calendar),r))}(js,e);return ze(n),t}function qu(e,n){if(r(e)){const t=tc(e)||{};switch(t.branding){case Vo:return ze(n),t;case $o:return ze(n),Qe(t);case Qo:return ze(n),ri(cs,t)}return function(e,n,t,r=[]){const i=Wr(e,n,za,r);return e.F(i,t)}(js(Hu(e)),e,n)}const t=kt(e);return ze(n),t}function Wu(e,n){if(r(e)){const t=tc(e);if(t&&t.branding===Qo)return He(n),t;const r=Hu(e);return function(e,n,t,r,i,a){const o=Wr(t,i,za,ba,Ea),s=e(o.timeZone),[u,c,l]=He(a),d=t.F(o,Ye(u)),m=Vr(o,u);return $e(Wn(n(s),{...d,...m},void 0!==o.offset?At(o.offset):void 0,c,l),s,r)}(Gu,cs,js(r),r,e,n)}return function(e,n){const t=It(ja(e));if(!t||!t.timeZone)throw new RangeError(ea(e));const{offset:r}=t,i=r?At(r):void 0,[,a,o]=He(n);return Pt(t,i,a,o)}(e,n)}function Ku(e){return l(e=>n=>e(Vu(n)),e)}function Vu(e){return ss(e,cs)}function $u(e){if(r(e)){const n=tc(e);if(n)switch(n.branding){case Xo:return n;case Qo:return Ve(n.epochNanoseconds)}}return function(e){const n=It(e=x(e));if(!n)throw new RangeError(ea(e));let t;if(n.j)t=0;else{if(!n.offset)throw new RangeError(ea(e));t=At(n.offset)}return n.timeZone&&Lt(n.timeZone,1),Ve(de(Ae(n),t))}(e)}function Ju(){function e(e,t){return new n(e,t)}function n(e,n=Object.create(null)){jc.set(this,((e,n)=>{const t=new yo(e,n),r=t.resolvedOptions(),a=r.locale,o=f(Object.keys(n),r),s=i(ec),u=(e,...n)=>{if(e){if(2!==n.length)throw new TypeError(ta);for(const e of n)if(void 0===e)throw new TypeError(ta)}e||void 0!==n[0]||(n=[]);const r=n.map(e=>tc(e)||Number(e));let i,u=0;for(const e of r){const n="object"==typeof e?e.branding:void 0;if(u++&&n!==i)throw new TypeError(ta);i=n}return i?s(i)(a,o,...r):[t,...r]};return u.X=t,u})(e,n))}const t=yo.prototype,r=Object.getOwnPropertyDescriptors(t),o=Object.getOwnPropertyDescriptors(yo);for(const n in r){const t=r[n],i=n.startsWith("format")&&Qu(n);"function"==typeof t.value?t.value="constructor"===n?e:i||Xu(n):i&&(t.get=function(){if(!jc.has(this))throw new TypeError(Ai);return(...e)=>i.apply(this,e)},Object.defineProperties(t.get,a(`get ${n}`)))}return o.prototype.value=n.prototype=Object.create({},r),Object.defineProperties(e,o),e}function Qu(e){return Object.defineProperties(function(...n){const t=jc.get(this),[r,...i]=t(e.includes("Range"),...n);return r[e](...i)},a(e))}function Xu(e){return Object.defineProperties(function(...n){return jc.get(this).X[e](...n)},a(e))}function ec(e){const n=gc[e];if(!n)throw new TypeError((e=>`Cannot format ${e}`)(e));return oi(n,i(si),1)}const nc=new WeakMap,tc=nc.get.bind(nc),rc=nc.set.bind(nc),ic={era:function(e){if(void 0!==e)return ja(e)},eraYear:N,year:H,month:z,daysInMonth:z,daysInYear:z,inLeapYear:Za,monthsInYear:z},ac={monthCode:ja},oc={day:z},sc={dayOfWeek:z,dayOfYear:z,weekOfYear:function(e){if(void 0!==e)return z(e)},yearOfWeek:N,daysInWeek:z},uc=Ou(Object.assign({},ic,ac,oc,sc)),cc=Ou({...ic,...ac}),lc=Ou({...ac,...oc}),dc={calendarId:e=>e.calendar},mc=d(e=>n=>n[e],Ya.concat("sign")),fc=d((e,n)=>e=>e[eo[n]],pa),hc={epochMilliseconds:rn,epochNanoseconds:function(e){return((e,n=1)=>{const[t,r]=e,i=Math.floor(r/n),a=Ma/n;return BigInt(t)*BigInt(a)+BigInt(i)})(e.epochNanoseconds)}},[yc,Mc]=Nu(es,function(e=0,n=0,t=0,r=0,i=0,a=0,o=0,s=0,u=0,d=0){return tn(pt(l(U,c(Ya,[e,n,t,r,i,a,o,s,u,d]))))},{...mc,blank:function(e){return!e.sign}},{with:(e,n)=>Mc(function(e,n){return tn((t=e,r=n,pt({...t,...Kr(r,qa)})));var t,r}(e,n)),negated:e=>Mc(yt(e)),abs:e=>Mc(function(e){return-1===e.sign?yt(e):e}(e)),add:(e,n,t)=>Mc(ht(xu,js,cs,0,e,Bu(n),t)),subtract:(e,n,t)=>Mc(ht(xu,js,cs,1,e,Bu(n),t)),round:(e,n)=>Mc(function(e,n,t,r,i){const a=Tt(r),[o,s,u,c,l]=((e,n,t)=>{e=Ue(e,_o);let r=Go(e);const i=t(e[So]);let a=xe(e);const o=qo(e,7);let s=Lo(e);if(void 0===r&&void 0===s)throw new RangeError(Qi);if(null==s&&(s=0),null==r&&(r=Math.max(s,n)),Ke(r,s),a=Re(a,s,1),a>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,a,o,i]})(i,a,e),d=Math.max(a,o);if(!l&&d<=6)return tn(pt(((e,n,t,r,i)=>{const a=pn(wt(e),t,r,i);return{...Ja,...bt(a,n)}})(r,o,s,u,c)));if(!mt(l)&&!r.sign)return r;if(!l)throw new RangeError($i);const[m,f,h]=ut(n,t,l),y=ct(h),M=lt(h),g=dt(h),p=M(f,m,r);mt(l)||(ie(m),ie(p));let v=g(f,m,p,o);const w=r.sign,b=gt(v);if(w&&b&&w!==b)throw new RangeError(Li);return v=gn(v,y(p),o,s,u,c,f,m,y,M),tn(v)}(xu,js,cs,e,n)),total:(e,n)=>function(e,n,t,r,i){const a=Tt(r),[o,s]=((e,n)=>{const t=n((e=Ue(e,Eo))[So]);let r=Bo(e);return r=I(Eo,r),[r,t]})(i,e),u=Math.max(o,a);if(!s&&ft(u,s))return on(r,o);if(!s)throw new RangeError($i);if(!r.sign)return 0;const[c,l,d]=ut(n,t,s),m=ct(d),f=lt(d),h=dt(d),y=f(l,c,r);mt(s)||(ie(c),ie(y));const M=h(l,c,y,o);return ft(o,s)?on(M,o):((e,n,t,r,i,a,o)=>{const s=gt(e),[u,c]=sn(r,Xa(t,e),t,s,i,a,o),l=un(n,u,c);return e[Ya[t]]+l*s})(M,m(y),o,l,c,m,f)}(xu,js,cs,e,n),toLocaleString(e,n,t){return Intl.DurationFormat?new Intl.DurationFormat(n,t).format(this):zn(e)},toString:zn,toJSON:e=>zn(e),valueOf:Lu},{from:e=>Mc(Bu(e)),compare:(e,n,t)=>function(e,n,t,r,i,a){const o=e(Ze(a).relativeTo),s=Math.max(Tt(r),Tt(i));if(y(Ya,r,i))return 0;if(ft(s,o))return $(wt(r),wt(i));if(!o)throw new RangeError($i);const[u,c,l]=ut(n,t,o),d=ct(l),m=lt(l);return $(d(m(c,u,r)),d(m(c,u,i)))}(xu,js,cs,Bu(e),Bu(n),t)}),gc={Instant:Eu,PlainDateTime:Du,PlainDate:Su,PlainTime:Au,PlainYearMonth:ku,PlainMonthDay:Cu},pc=oi(Eu),vc=oi(Tu),wc=oi(Du),bc=oi(Su),_c=oi(Au),Ec=oi(ku),Tc=oi(Cu),[Dc,Sc]=Nu(Jo,function(e=0,n=0,t=0,r=0,i=0,a=0){return nn(Ne(l(Z,c(eo,[e,n,t,r,i,a])),1))},fc,{with(e,n,t){return Sc(function(e,n,t){return nn(((e,n,t)=>Vr({...f(va,e),...Kr(n,va)},ze(t)))(e,n,t))}(this,zu(n),t))},add:(e,n)=>Sc(nt(0,e,Bu(n))),subtract:(e,n)=>Sc(nt(1,e,Bu(n))),until:(e,n,t)=>Mc(or(0,e,Ru(n),t)),since:(e,n,t)=>Mc(or(1,e,Ru(n),t)),round:(e,n)=>Sc(function(e,n){const[t,r,i]=Fe(n,5);var a;return nn((a=i,dn(e,fn(t,r),a)[0]))}(e,n)),equals:(e,n)=>function(e,n){return!Qt(e,n)}(e,Ru(n)),toLocaleString(e,n,t){const[r,i]=_c(n,t,e);return r.format(i)},toString:Nn,toJSON:e=>Nn(e),valueOf:Lu},{from:(e,n)=>Sc(Ru(e,n)),compare:(e,n)=>Qt(Ru(e),Ru(n))}),[Ac,kc]=Nu($o,g(function(e,n,t,r,i=0,a=0,o=0,s=0,u=0,d=0,m=Oa){return Je(ie(Ae(l(Z,c(to,[n,t,r,i,a,o,s,u,d])))),e(m))},jr),{...dc,...uc,...fc},{with:(e,n,t)=>kc(function(e,n,t,r){const i=e(n.calendar),a=[...i.fields(za),...pa].sort(),o={...ni(s=n),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const u=Kr(t,a),c=ze(r),l=i.k(o,u),d={...o,...u};return Je(ie({...i.F(l,Ye(c)),...Ne(Us(d),c)}))}(js,e,zu(n),t)),withCalendar:(e,n)=>kc(ci(e,Fu(n))),withPlainTime:(e,n)=>kc(function(e,n=oo){return Je(ie({...e,...n}))}(e,ju(n))),add:(e,n,t)=>kc(Qn(js,0,e,Bu(n),t)),subtract:(e,n,t)=>kc(Qn(js,1,e,Bu(n),t)),until:(e,n,t)=>Mc(tr(js,0,e,Zu(n),t)),since:(e,n,t)=>Mc(tr(js,1,e,Zu(n),t)),round:(e,n)=>kc(function(e,n){return Je(cn(e,...Fe(n)),e.calendar)}(e,n)),equals:(e,n)=>function(e,n){return!$t(e,n)&&e.calendar===n.calendar}(e,Zu(n)),toZonedDateTime:(e,n,t)=>Oc(function(e,n,t,r){const i=((e,n,t,r)=>{const i=(e=>Ro(Ze(e)))(r);return Kn(e(n),t,i)})(e,t,n,r);return $e(ae(i),t,n.calendar)}(cs,e,Gu(n),t)),toPlainDate:e=>Ic(Qe(e)),toPlainTime:e=>Sc(nn(e)),toLocaleString(e,n,t){const[r,i]=wc(n,t,e);return r.format(i)},toString:An,toJSON:e=>An(e),valueOf:Lu},{from:(e,n)=>kc(Zu(e,n)),compare:(e,n)=>$t(Zu(e),Zu(n))}),[Cc,Pc]=Nu(Ko,g(function(e,n,t,r=Oa,i=po){const a=Z(n),o=Z(t),s=e(r);return en(re(ke({isoYear:Z(i),isoMonth:a,isoDay:o})),s)},jr),{...dc,...lc},{with:(e,n,t)=>Pc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(za).sort(),o=(e=>{const n=Rs(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{monthCode:br(a,o),day:i}})(n),s=Kr(t,a),u=i.k(o,s);return i._(u,r)}(js,e,zu(n),t)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,Uu(n)),toPlainDate(e,n){return Ic(function(e,n,t,r){return((e,n,t)=>$r(e,n,Ia,F(t),Sa))(e(n.calendar),t,r)}(js,e,this,n))},toLocaleString(e,n,t){const[r,i]=Tc(n,t,e);return r.format(i)},toString:Pn,toJSON:e=>Pn(e),valueOf:Lu},{from:(e,n)=>Pc(Uu(e,n))}),[Nc,zc]=Nu(Wo,g(function(e,n,t,r=Oa,i=1){const a=Z(n),o=Z(t),s=e(r);return Xe(te(ke({isoYear:a,isoMonth:o,isoDay:Z(i)})),s)},jr),{...dc,...cc},{with:(e,n,t)=>zc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Pa).sort(),o=(e=>{const n=Rs(e.calendar),[t,r]=n.v(e),[i,a]=n.q(t,r);return{year:t,monthCode:br(i,a)}})(n),s=Kr(t,a),u=i.k(o,s);return i.K(u,r)}(js,e,zu(n),t)),add:(e,n,t)=>zc(et(js,0,e,Bu(n),t)),subtract:(e,n,t)=>zc(et(js,1,e,Bu(n),t)),until:(e,n,t)=>Mc(ir(js,0,e,Yu(n),t)),since:(e,n,t)=>Mc(ir(js,1,e,Yu(n),t)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,Yu(n)),toPlainDate(e,n){return Ic(function(e,n,t,r){return((e,n,t)=>$r(e,n,Na,F(t),Ca))(e(n.calendar),t,r)}(js,e,this,n))},toLocaleString(e,n,t){const[r,i]=Ec(n,t,e);return r.format(i)},toString:Cn,toJSON:e=>Cn(e),valueOf:Lu},{from:(e,n)=>zc(Yu(e,n)),compare:(e,n)=>Jt(Yu(e),Yu(n))}),[Hc,Ic]=Nu(Vo,g(function(e,n,t,r,i=Oa){return Qe(re(ke(l(Z,{isoYear:n,isoMonth:t,isoDay:r}))),e(i))},jr),{...dc,...uc},{with:(e,n,t)=>Ic(function(e,n,t,r){const i=e(n.calendar),a=i.fields(za).sort(),o=ni(n),s=Kr(t,a),u=i.k(o,s);return i.F(u,r)}(js,e,zu(n),t)),withCalendar:(e,n)=>Ic(ci(e,Fu(n))),add:(e,n,t)=>Ic(Xn(js,0,e,Bu(n),t)),subtract:(e,n,t)=>Ic(Xn(js,1,e,Bu(n),t)),until:(e,n,t)=>Mc(rr(js,0,e,qu(n),t)),since:(e,n,t)=>Mc(rr(js,1,e,qu(n),t)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,qu(n)),toZonedDateTime(e,n){const t=r(n)?n:{timeZone:n};return Oc(function(e,n,t,r,i){const a=e(i.timeZone),o=i.plainTime,s=void 0!==o?n(o):void 0,u=t(a);let c;return c=s?Kn(u,{...r,...s}):Vn(u,{...r,...oo}),$e(c,a,r.calendar)}(Gu,Ru,cs,e,t))},toPlainDateTime:(e,n)=>kc(function(e,n=oo){return Je(ie({...e,...n}))}(e,ju(n))),toPlainYearMonth(e){return zc(function(e,n,t){return((e,n)=>{const t=Wr(e,n,Na);return e.K(t,void 0)})(e(n.calendar),t)}(js,e,this))},toPlainMonthDay(e){return Pc(function(e,n,t){return((e,n)=>{const t=Wr(e,n,Ia);return e._(t)})(e(n.calendar),t)}(js,e,this))},toLocaleString(e,n,t){const[r,i]=bc(n,t,e);return r.format(i)},toString:kn,toJSON:e=>kn(e),valueOf:Lu},{from:(e,n)=>Ic(qu(e,n)),compare:(e,n)=>Jt(qu(e),qu(n))}),[Fc,Oc]=Nu(Qo,g(function(e,n,t,r,i=Oa){return $e(ae(Q(R(t))),n(r),e(i))},jr,function(e){return Yt(ja(e))}),{...hc,...dc,...Ku(uc),...Ku(fc),offset:e=>xn(Vu(e).offsetNanoseconds),offsetNanoseconds:e=>Vu(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,n){const t=e(n.timeZone),r=ss(n,t),[i,a]=hn(r),o=ee(V(Vn(t,i),Vn(t,a)),ya,1);if(o<=0)throw new RangeError(Li);return o}(cs,e)},{with:(e,n,t)=>Oc(function(e,n,t,r,i){const{calendar:a,timeZone:o}=t,s=e(a),u=n(o),c=[...s.fields(za),..._a].sort(),l=(e=>{const n=ss(e,cs),t=xn(n.offsetNanoseconds),r=Rs(e.calendar),[i,a,o]=r.v(n),[s,u]=r.q(i,a),c=br(s,u);return{...Ys(n),year:i,monthCode:c,day:o,offset:t}})(t),d=Kr(r,c),m=s.k(l,d),f={...l,...d},[h,y,M]=He(i,2);return $e(Wn(u,{...s.F(m,Ye(h)),...Ne(Us(f),h)},At(f.offset),y,M),o,a)}(js,cs,e,zu(n),t)),withCalendar:(e,n)=>Oc(ci(e,Fu(n))),withTimeZone:(e,n)=>Oc(function(e,n){return{...e,timeZone:n}}(e,Gu(n))),withPlainTime:(e,n)=>Oc(function(e,n,t){const r=n.timeZone,i=e(r),a={...ss(n,i),...t||oo};let o;return o=t?Wn(i,a,a.offsetNanoseconds,2):Vn(i,a),$e(o,r,n.calendar)}(cs,e,ju(n))),add:(e,n,t)=>Oc(Jn(js,cs,0,e,Bu(n),t)),subtract:(e,n,t)=>Oc(Jn(js,cs,1,e,Bu(n),t)),until:(e,n,t)=>Mc(tn(nr(js,cs,0,e,Wu(n),t))),since:(e,n,t)=>Mc(tn(nr(js,cs,1,e,Wu(n),t))),round:(e,n)=>Oc(function(e,n,t){let{epochNanoseconds:r,timeZone:i,calendar:a}=n;const[o,s,u]=Fe(t);if(0===o&&1===s)return n;const c=e(i);if(6===o)r=((e,n,t,r)=>{const i=ss(t,n),[a,o]=e(i),s=t.epochNanoseconds,u=Vn(n,a),c=Vn(n,o);if(J(s,u,c))throw new RangeError(Li);return bn(un(s,u,c),r)?c:u})(hn,c,n,u);else{const e=c.R(r);r=Wn(c,cn(ye(r,e),o,s,u),e,2,0,1)}return $e(r,i,a)}(cs,e,n)),startOfDay:e=>Oc(function(e,n){const{timeZone:t,calendar:r}=n,i=((e,n,t)=>Vn(n,e(ss(t,n))))(yn,e(t),n);return $e(i,t,r)}(cs,e)),equals:(e,n)=>function(e,n){return!Vt(e,n)&&!!Xt(e.timeZone,n.timeZone)&&e.calendar===n.calendar}(e,Wu(n)),toInstant:e=>Gc(function(e){return Ve(e.epochNanoseconds)}(e)),toPlainDateTime:e=>kc(ti(cs,e)),toPlainDate:e=>Ic(ri(cs,e)),toPlainTime:e=>Sc(ii(cs,e)),toLocaleString(e,n,t={}){const[r,i]=vc(n,t,e);return r.format(i)},toString:(e,n)=>Sn(cs,e,n),toJSON:e=>Sn(cs,e),valueOf:Lu,getTimeZoneTransition(e,n){const{timeZone:t,epochNanoseconds:r}=e,i=function(e){const n=Ue(e,Ao),t=We(Ao,Oo,n,0);if(!t)throw new RangeError(bi(Ao,t));return t}(n),a=cs(t).O(r,i);return a?Oc({...e,epochNanoseconds:a}):null}},{from:(e,n)=>Oc(Wu(e,n)),compare:(e,n)=>Vt(Wu(e),Wu(n))}),[Lc,Gc]=Nu(Xo,function(e){return Ve(ae(Q(R(e))))},hc,{add:(e,n)=>Gc($n(0,e,Bu(n))),subtract:(e,n)=>Gc($n(1,e,Bu(n))),until:(e,n,t)=>Mc(er(0,e,$u(n),t)),since:(e,n,t)=>Mc(er(1,e,$u(n),t)),round:(e,n)=>Gc(function(e,n){const[t,r,i]=Fe(n,5,1);return Ve(pn(e.epochNanoseconds,t,r,i,1))}(e,n)),equals:(e,n)=>function(e,n){return!Kt(e,n)}(e,$u(n)),toZonedDateTimeISO:(e,n)=>Oc(function(e,n,t=Oa){return $e(e.epochNanoseconds,n,t)}(e,Gu(n))),toLocaleString(e,n,t){const[r,i]=pc(n,t,e);return r.format(i)},toString:(e,n)=>Dn(Gu,cs,e,n),toJSON:e=>Dn(Gu,cs,e),valueOf:Lu},{from:e=>Gc($u(e)),fromEpochMilliseconds:e=>Gc(function(e){return Ve(ae(X(U(e),ma)))}(e)),fromEpochNanoseconds:e=>Gc(function(e){return Ve(ae(Q(R(e))))}(e)),compare:(e,n)=>Kt($u(e),$u(n))}),Bc=Object.defineProperties({},{...u("Temporal.Now"),...o({timeZoneId:()=>mi(),instant:()=>Gc(Ve(di())),zonedDateTimeISO:(e=mi())=>Oc($e(di(),Gu(e),Oa)),plainDateTimeISO:(e=mi())=>kc(Je(li(cs(Gu(e))),Oa)),plainDateISO:(e=mi())=>Ic(Qe(li(cs(Gu(e))),Oa)),plainTimeISO:(e=mi())=>Sc(nn(li(cs(Gu(e)))))})}),xc=Object.defineProperties({},{...u("Temporal"),...o({PlainYearMonth:Nc,PlainMonthDay:Cc,PlainDate:Hc,PlainTime:Dc,PlainDateTime:Ac,ZonedDateTime:Fc,Instant:Lc,Duration:yc,Now:Bc})}),Rc=Ju(),jc=new WeakMap;function Zc(e,...n){let t=bbn.lng[e]||e;if(n.length){let e=0;return t.replace(/\%([d|s])/g,(t,r)=>{let i=n[e++];i||(i="d"===r?0:"");const a=typeof i;return"d"===r&&"number"!==a?(i=parseFloat(i),isNaN(i)&&(i=0)):"s"===r&&"string"!==a&&(i=""+i),i})}return t}Object.create(Intl),o({DateTimeFormat:Rc});var Uc,Yc,qc,Wc,Kc,Vc,$c={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}},Jc={siteTitle:null===(Uc=globalThis.document)||void 0===Uc?void 0:Uc.title,logging:!1,cdn:"",lang:"en",host:(null===(Yc=globalThis.location)||void 0===Yc?void 0:Yc.protocol)+"//"+(null===(qc=globalThis.location)||void 0===qc?void 0:qc.hostname),url:null===(Wc=globalThis.location)||void 0===Wc?void 0:Wc.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===(Kc=globalThis.document)||void 0===Kc?void 0:Kc.hidden),timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax",online:null===(Vc=globalThis.navigator)||void 0===Vc?void 0:Vc.onLine},Qc=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};class Xc extends Error{constructor(e){super(e||"Request canceled"),this.name="Cancel",this.__BBN_CANCEL__=!0}}const el=["POST","PUT","PATCH","DELETE"],nl=(e,n,t={},r)=>{const i=new XMLHttpRequest,a=el.includes(e.toUpperCase()),o=new Promise((r,o)=>{i.open(e.toUpperCase(),n,!0);const{body:s,headers:u}=((e,n)=>{const t=new Headers(n||{});let r=e;return null==e||e instanceof FormData||"object"!=typeof e||(t.set("Content-Type","application/json"),r=JSON.stringify(e)),{body:r,headers:t}})(t.data,t.headers);u.forEach((e,n)=>{i.setRequestHeader(n,e)}),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e=>{const n=e.lengthComputable?e.total:void 0;t.onUploadProgress({loaded:e.loaded,total:n,progress:n?e.loaded/n:void 0})}),i.onreadystatechange=()=>{if(4!==i.readyState)return;const e=(e=>{const n={};return e?(e.trim().split(/[\r\n]+/).forEach(e=>{const t=e.split(": "),r=t.shift(),i=t.join(": ");r&&(n[r.toLowerCase()]=i)}),n):n})(i.getAllResponseHeaders()),n=1223===i.status?204:i.status,a=i.statusText||"";let s=i.responseText;if((e["content-type"]||"").includes("application/json"))try{s=JSON.parse(i.responseText)}catch(e){}const u={data:s,status:n,statusText:a,headers:e,config:t,request:i};if(n>=200&&n<300)r(u);else{const e=new Error("Request failed with status code "+n);e.response=u,e.config=t,e.request=i,o(e)}},i.onerror=()=>{const e=new Error("Network Error");e.config=t,e.request=i,o(e)},i.onabort=()=>{o(new Xc("Request canceled"))},a?i.send(s):i.send()});return o.cancel=()=>i.abort(),o};var tl={isCancel:e=>!(!e||!0!==e.__BBN_CANCEL__),run:(e,n,t={},r)=>{t.baseURL&&!/^https?:\/\//i.test(n)&&(n=t.baseURL.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,"")),n=((e,n)=>{if(!n)return e;const t=new URLSearchParams(n).toString();return t?e+(e.includes("?")?"&":"?")+t:e})(n,t.params);return"function"==typeof t.onUploadProgress&&el.includes(e.toUpperCase())?nl(e,n,t):((e,n,t={},r)=>{const i={method:e,headers:new Headers(t.headers||{}),signal:null==r?void 0:r.signal},a=el.includes(e.toUpperCase());if(null!=t.data&&a&&("object"!=typeof t.data||t.data instanceof FormData?i.body=t.data:(i.headers.set("Content-Type","application/json"),i.body=JSON.stringify(t.data))),t.params){const e=new URLSearchParams(t.params).toString();n+=(n.includes("?")?"&":"?")+e}const o=fetch(n,i).then(e=>Qc(void 0,void 0,void 0,function*(){let n;const r=e.headers.get("content-type")||"";try{n=r.includes("application/json")?yield e.json():r.startsWith("text/")?yield e.text():r.includes("multipart/")?yield e.arrayBuffer():yield e.blob()}catch(t){n=yield e.text()}const i={data:n,status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries()),config:t,request:e};if(!e.ok){const n=new Error("Request failed with status code "+e.status);throw n.response=i,n.config=t,n.request=e,n}return i})).catch(e=>{if("AbortError"===e.name)throw new Xc("Request canceled");throw e});return o.cancel=()=>r.abort(),o})(e,n,t,r)}};function rl(...e){if(!e.length)return!1;for(let n of e)if("[object String]"!=={}.toString.apply(n))return!1;return!0}function il(...e){if(!e.length)return!1;for(let n of e)if(!Number.isInteger(n))return!1;return!0}function al(...e){if(!e.length)return!1;for(let n of e)if(!(n&&n.constructor&&n.call&&n.apply))return!1;return!0}function ol(...e){var n,t,r,i;if((null===(t=null===(n=globalThis.bbn)||void 0===n?void 0:n.env)||void 0===t?void 0:t.logging)&&void 0!==globalThis.console){let n,t=5,a="log";e[0]&&"object"==typeof e[0]&&e[0]._bbn_console_style&&(e[0]._bbn_console_mode&&al(globalThis.console[e[0]._bbn_console_mode])?a=e[0]._bbn_console_mode:(n=e[0]._bbn_console_style,t=e[0]._bbn_console_level),e.shift());const o=globalThis.console[a];if((null===(i=null===(r=globalThis.bbn)||void 0===r?void 0:r.env)||void 0===i?void 0:i.loggingLevel)>=t){let t=0;for(;t<e.length;){let r=typeof e[t],i=[e[t]];"string"!==r&&"number"!==r||i.unshift("%c %s ",n),o.apply(globalThis.console,i),t++}}}}function sl(e,n,t){if(!rl(e)||!il(n))throw ol(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return n<0&&(n=e.length+n),il(t)?e.substring(n,(t<0?e.length:n)+t):e.substring(n)}function ul(e,n=!1){let t=null;if("object"==typeof e)for(var r in t={},e)sl(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(n&&"object"==typeof e[r]?t[r]=ul(e[r],!0):t[r]=e[r]);return t||!1}function cl(e,n,t=!1,r=!1){if(null!==e&&"object"==typeof e){let i=Object.keys(t?ul(e):e);r&&i.reverse();for(let t of i)if(!1===n(e[t],t))break}return e}function ll(...e){if(!e.length)return!1;for(let n of e)if("[object Object]"!=={}.toString.apply(n))return!1;return!0}function dl(...e){if(!e.length)return!1;for(let n of e)if(!Array.isArray(n))return!1;return!0}function ml(...e){if(!e.length)return!1;for(let n of e)if(["boolean","object","symbol"].includes(typeof n)||""===n||isNaN(n))return!1;return!0}function fl(...e){if(!e.length)return!1;for(let n of e)if(!n||"object"!=typeof n||!(Symbol.iterator in Object(n)))return!1;return!0}function hl(e,n){if(!(ml(e)&&e>0)){if(fl(e)){for(let t=0;t<e.length;t++)if(!1===n(e[t],t))return;return e}return cl(e,n)}for(let t=0;t<e;t++)if(!1===n(t,t))return}function yl(...e){let n=!1,t=[];for(let r=0;r<e.length;r++)if(!0===e[r])n=!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]);t.push(e[r])}if(!t.length)throw new Error("No argument given");let r,i=t[0];for(let e=1;e<t.length;e++)cl(t[e],(e,t)=>{n?dl(e)?(i[t]=dl(i[t])?i[t]:[],hl(e,(e,n)=>{if(e&&"object"==typeof e){let r=i[t][n];dl(e)?dl(r)||(r=[]):ll(r)||(r={}),i[t][n]=yl(!0,r,e)}else i[t][n]=e})):ll(e)?i[t]=yl(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:(i[t]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(i,[t]))&&(i[t]=e)}),r||(r=!!t[e].__bbnNoData);return r&&"bbnData"in window&&(i.__bbnData&&i.__bbnData.unset(),Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1})),i}var Ml=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};const gl=globalThis.indexedDB||globalThis.webkitIndexedDB||globalThis.mozIndexedDB||globalThis.OIndexedDB||globalThis.msIndexedDB,pl=(e,n)=>{if(e){if(null==n?void 0:n.length){const t={};return cl(e,(e,r)=>{n.includes(r)&&(t[r]=e)}),t}return e}},vl=(e,n=[])=>{var t;return(null===(t=null==e?void 0:e.conditions)||void 0===t?void 0:t.length)?e.conditions.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&vl(e,n)}):ll(e)?cl(e,(e,t)=>{n.includes(t)||n.push(t)}):dl(e)&&e.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&vl(e,n)}),n},wl=e=>{const n=e.keys.PRIMARY.columns;return n.length>1?n:n[0]},bl=e=>new Promise((n,t)=>{e.onsuccess=()=>n(e.result),e.onerror=()=>t(e.error)}),_l=e=>new Promise((n,t)=>{e.oncomplete=()=>n(),e.onabort=()=>t(e.error),e.onerror=()=>t(e.error)});class El{constructor(e){this.lastErr=null,this.dbName=e}hasMissingStores(e,n){const t=Tl._structures[e]||{};return Object.keys(t).some(e=>!n.objectStoreNames.contains(e))}getConnection(){return Ml(this,arguments,void 0,function*(e=""){let n=Tl._connections[e||this.dbName];if(!n){if(yield Tl.open(e||this.dbName),!Tl._connections[e||this.dbName])throw new Error(Zc("The database %s is not open",this.dbName));n=Tl._connections[e||this.dbName]}return n})}get structure(){const e=Tl._structures[this.dbName];if(!e)throw new Error(Zc("No structure defined for database %s",this.dbName));return e}getStore(e,n){return Ml(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!this.structure[e])throw new Error(Zc("Table %s is not defined in database structure %s",e,this.dbName));if(!t.objectStoreNames.contains(e))throw new Error(Zc("Table %s does not exist in database %s. Schema upgrade required.",e,this.dbName));const r=t.transaction([e],n);return r.onabort=()=>{this.lastErr=r.error,ol(r.error)},r.onerror=()=>{this.lastErr=r.error,ol(r.error)},[r,r.objectStore(e)]})}lastError(){return this.lastErr}close(){const e=Tl._connections[this.dbName];e&&(e.close(),delete Tl._connections[this.dbName])}insert(e,n){return Ml(this,void 0,void 0,function*(){const t=Array.isArray(n)?n:[n];if(!t.length)return 0;const[r,i]=yield this.getStore(e,"readwrite");let a=0;for(const e of t){const n=i.put(e);n.onsuccess=()=>{a++},n.onerror=()=>{this.lastErr=n.error,ol(n.error)}}return yield _l(r),a})}update(e,n,t){return Ml(this,arguments,void 0,function*(e,n,t,r=!1){const i=yield this.selectAll(e,[],t);if(!i.length)return 0;const a=this.structure[e],o=wl(a);if(Array.isArray(o))throw new Error(Zc("Composite primary keys are not supported by this update implementation"));const[s,u]=yield this.getStore(e,"readwrite");let c=0;for(const e of i){const t=yl({},r?{[o]:e[o]}:e,n);if(!(o in t))throw new Error(Zc("No primary key in the data"));const i=u.put(t);i.onsuccess=()=>{c++},i.onerror=()=>{this.lastErr=i.error,ol(i.error)}}return yield _l(s),c})}delete(e,n){return Ml(this,void 0,void 0,function*(){const t=this.structure[e],r=wl(t);if(Array.isArray(r))throw new Error(Zc("Composite primary keys are not supported by this delete implementation"));if(!(r in n))throw new Error(Zc("No primary key in the filter"));const[i,a]=yield this.getStore(e,"readwrite");return a.delete(n[r]),yield _l(i),1})}selectOne(e,n){return Ml(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=1){var o;const s=yield this.selectAll(e,[n],t,r,i,a);return null===(o=null==s?void 0:s[0])||void 0===o?void 0:o[n]})}select(e){return Ml(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0){const a=yield this.selectAll(e,n,t,r,i,1);return a.length?a[0]:null})}selectAll(e){return Ml(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0,a=null){const[o,s]=yield this.getStore(e,"readonly"),u=this.structure[e],c=wl(u),l=[],d=ll(t)?Object.keys(t)[0]:!t||dl(t)?null:c;if(!Array.isArray(c)&&d===c){if(Array.isArray(null==t?void 0:t[c])){const e=t[c],r=Math.min(e.length-i,null!=a?a:e.length),u=e.slice(i,i+r);for(const e of u){const t=yield bl(s.get(e)),r=pl(t,n);r&&l.push(r)}return yield _l(o),l}const e=ll(t)?t[c]:t,r=yield bl(s.get(e)),u=pl(r,n);return u&&l.push(u),yield _l(o),l}return yield new Promise((e,r)=>{const o=s.openCursor();let u=0;o.onsuccess=r=>{var o,s;const c=r.target.result;if(!c)return void e();if(!t||!(null===(s=null===(o=globalThis.bbn)||void 0===o?void 0:o.fn)||void 0===s?void 0:s.search)||0===globalThis.bbn.fn.search([c.value],t)){if(u>=i){const t=pl(c.value,n);if(t&&l.push(t),null!==a&&l.length>=a)return void e()}u++}c.continue()},o.onerror=()=>{this.lastErr=o.error,ol(o.error),r(o.error)}}),yield _l(o),l})}getColumnValues(e,n){return Ml(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=null){return(yield this.selectAll(e,vl(t,[n]),t,r,i,a)).map(e=>e[n]).filter(e=>void 0!==e)})}copyTable(e,n){return Ml(this,arguments,void 0,function*(e,n,t=[],r=null,i=null,a=0,o=null){if(!this.structure[n])throw new Error(Zc("Source table %s does not exist in structure",n));let s=yield this.getConnection();if(s.objectStoreNames.contains(e)||(yield Tl.add(this.dbName,e,this.structure[n]),s=yield this.getConnection()),!s.objectStoreNames.contains(e))throw new Error(Zc("The target table %s does not exist",e));const u=yield this.selectAll(n,t,r,i,a,o);return u.length?this.insert(e,u):0})}deleteTable(e){return Ml(this,void 0,void 0,function*(){return yield Tl.remove(this.dbName,e),!0})}}const Tl={_structures:{},_connections:{},_stores:{},ok:void 0!==gl,close(e){const n=this._connections[e];n&&(n.close(),delete this._connections[e])},updateStructure(e,n,t){const r=wl(n);if(!t.objectStoreNames.contains(e)){const i=t.createObjectStore(e,{keyPath:r});cl(n.keys,(e,n)=>{"PRIMARY"!==n&&i.createIndex(n,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})})}},importStructure(e,n){return Ml(this,void 0,void 0,function*(){this._structures[e]||(this._structures[e]={});for(const t in n)this._structures[e].hasOwnProperty(t)||(this._structures[e][t]=n[t]);yield this.reopenWithUpgrade(e),this.close(e)})},getExistingVersion(e){return Ml(this,void 0,void 0,function*(){const n=this._connections[e];return n?n.version:new Promise((n,t)=>{if(!gl)return void t(new Error(Zc("IndexedDB is not available")));const r=gl.open(e);r.onsuccess=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onupgradeneeded=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onerror=()=>t(r.error)})})},reopenWithUpgrade(e){return Ml(this,void 0,void 0,function*(){if(!this._structures[e])throw new Error(Zc("Impossible to find a structure for the database %s",e));const n=yield this.getExistingVersion(e),t=n+1;return ol(Zc("Going from version %s to version %s for database %s",n,t,e)),this._connections[e]&&this.close(e),yield this.open(e,t)})},open(e,n){return Ml(this,void 0,void 0,function*(){if(!gl)throw new Error(Zc("IndexedDB is not available"));if(!this._structures[e])throw new Error(Zc("Impossible to find a structure for the database %s",e));return this._connections[e]||(yield new Promise((t,r)=>{const i=n?gl.open(e,n):gl.open(e);i.onupgradeneeded=()=>{const n=i.result;cl(this._structures[e]||{},(e,t)=>{n.objectStoreNames.contains(t)||this.updateStructure(t,e,n)})},i.onsuccess=()=>{this._connections[e]=i.result,t(i.result)},i.onerror=()=>r(i.error),i.onblocked=n=>{r(Zc("open: Upgrade blocked for database %s. Please close other connections to proceed.",e))}})),new El(e)})},add(e,n,t){return Ml(this,void 0,void 0,function*(){var r;if(!(null===(r=null==t?void 0:t.keys)||void 0===r?void 0:r.PRIMARY)||!(null==t?void 0:t.fields))throw new Error(Zc("The database structure for %s is not valid (missing keys, fields, or primary key)",n));this._structures[e]||(this._structures[e]={}),this._structures[e][n]=t;const i=!!this._connections[e];let a;i||(yield this.open(e)),a=this._connections[e];if(!a.objectStoreNames.contains(n)){if(yield this.reopenWithUpgrade(e),!this._connections[e])throw new Error(Zc("The database %s is not open after upgrade",e));a=this._connections[e]}return i||this.close(e),!0})},openRaw:(e,n)=>new Promise((t,r)=>{if(!gl)return void r(new Error(Zc("IndexedDB is not available")));const i=n?gl.open(e,n):gl.open(e);i.onsuccess=()=>t(i.result),i.onerror=()=>r(i.error),i.onblocked=()=>r(new Error(Zc("IndexedDB open blocked for database %s",e)))}),remove(e,n){return Ml(this,void 0,void 0,function*(){const t=this._structures[e];if(!(null==t?void 0:t[n]))return;const r=t[n];delete t[n];try{const t=this._connections[e];if(!t)return;const r=t.version+1;this.close(e),yield new Promise((t,i)=>{if(!gl)return void i(new Error(Zc("IndexedDB is not available")));const a=gl.open(e,r);a.onupgradeneeded=()=>{const e=a.result;e.objectStoreNames.contains(n)&&(e.deleteObjectStore(n),e.close())},a.onsuccess=()=>{a.result.close(),t()},a.onerror=()=>i(a.error),a.onblocked=()=>i(new Error(Zc("Remove blocked for database %s",e)))})}catch(e){throw t[n]=r,e}})}};function Dl(e,n,t){let r=(new Date).getTime(),i={key:e,url:sl(e,0,e.length-33),loader:n,aborter:t,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(i),bbn.env.loadersHistory.unshift(i);let a=bbn.env.loadersHistory.length;for(;a&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)a--,bbn.env.loading||bbn.env.loadersHistory.splice(a,1);return r}function Sl(e,...n){if("object"==typeof e){const t=[];return 1===n.length&&"string"==typeof n[0]?t.push(...n[0].split(".")):t.push(...n),t.reduce((e,n)=>{if(e)return e[e instanceof Array?parseInt(n):n]},e)}}function Al(e){if(!rl(e)){if(!e.toString)throw ol(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function kl(...e){if(!e.length)return!1;for(let n of e)if("[object Date]"!=={}.toString.apply(n))return!1;return!0}function Cl(e,n,t,r="asc"){let i=Sl(e,t),a=Sl(n,t),o=(typeof i).toLowerCase(),s=(typeof a).toLowerCase();if("asc"!==r&&rl(r)&&"desc"===r.toLowerCase()&&(r="desc"),o!==s)i=o,a=s;else switch(o){case"string":i=Al(i).toLowerCase(),a=Al(a).toLowerCase();break;case"boolean":i=i?1:0,a=a?1:0;break;case"object":kl(i)&&(i=i.getTime(),a=kl(a)?a.getTime():0)}return i<a?"desc"===r?1:-1:i>a?"desc"===r?-1:1:0}function Pl(e){return e&&"object"==typeof e?Object.keys(e).length:0}function Nl(e){return!e||(dl(e)?!e.length:"object"==typeof e&&!Pl(e))}function zl(...e){if(!e.length)return!1;for(let n of e)if("[object Null]"!=={}.toString.apply(n))return!1;return!0}function Hl(e){let n=0;for(let t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t),n|=0}return Math.abs(n).toString(16)}function Il(e){let n=0;for(let t=0;t<e.length;t++){n=e.charCodeAt(t)+(n<<6)+(n<<16)-n,n|=0}return Math.abs(n).toString(16)}function Fl(e){return Hl(e).padStart(8,"0")+Il(e).padStart(8,"0")}function Ol(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLElement))return!1;return!0}function Ll(e){let n="",t=e;if(e.id)return"#"+e.id;for(;t&&t!==document.body;){let e=t,r=e.localName,i=0;if(!r)break;if(e===document.body)break;e.id&&(n="#"+e.id+">"+n,i=1);let a=t.parentNode,o=Array.from(a.children).filter(n=>n.tagName===e.tagName);if(!i&&o.length>1){let n=Array.from(a.children).indexOf(e)+1;n>1&&(r+=":nth-child("+n+")")}n=r+(n?">"+n:""),t=a}return n}function Gl(...e){var n;if(!e.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(let t of e){if(!bbn.cp.isComponent(t)||Ol(t)||!(null===(n=t.$el)||void 0===n?void 0:n.bbnCid))return!1}return!0}function Bl(e,n=null,t=0,r=null,i=null){if(t||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)||n&&n<t)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);let a="";for(let o=0;o<e.length;o++)a+="__BBN_ITEM"+o.toString()+"__"+i(e[o],n,t+1,r,i);e="__BBN_ARRAY__"+a}else if("object"==typeof e)if(r.has(e)||n&&n<t)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);let a="";for(let o in e){let s=o;"string"!=typeof s&&(s=i(s,i,1,1)),a+="__BBN_PROP_"+s+"__"+i(e[o],n,t+1,r,i)}e="__BBN_OBJECT__"+a}}else e=Ol(e)?Gl(e)?"__BBN_CP__"+e.$cid:e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+Ll(e):"__BBN_UNKNOWN_OBJECT__"+e.constructor.toString();return e}function xl(...e){let n="",t=null;2===e.length&&"number"==typeof e[1]&&(t=e[1],e=[e[0]]);for(let r in e)n+=Bl(e[r],t,0,null,Bl);return Fl(n)}function Rl(e){var n="0123456789abcdef";function t(e){var t,r="";for(t=0;t<=3;t++)r+=n.charAt(e>>8*t+4&15)+n.charAt(e>>8*t&15);return r}function r(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function i(e,n,t,i,a,o){return r(function(e,n){return e<<n|e>>>32-n}(r(r(n,e),r(i,o)),a),t)}function a(e,n,t,r,a,o,s){return i(n&t|~n&r,e,n,a,o,s)}function o(e,n,t,r,a,o,s){return i(n&r|t&~r,e,n,a,o,s)}function s(e,n,t,r,a,o,s){return i(n^t^r,e,n,a,o,s)}function u(e,n,t,r,a,o,s){return i(t^(n|~r),e,n,a,o,s)}var c,l,d,m,f,h=function(e){var n,t=1+(e.length+8>>6),r=new Array(16*t);for(n=0;n<16*t;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<n%4*8;return r[n>>2]|=128<<n%4*8,r[16*t-2]=8*e.length,r}(e),y=1732584193,M=-271733879,g=-1732584194,p=271733878;for(c=0;c<h.length;c+=16)l=y,d=M,m=g,f=p,y=a(y,M,g,p,h[c+0],7,-680876936),p=a(p,y,M,g,h[c+1],12,-389564586),g=a(g,p,y,M,h[c+2],17,606105819),M=a(M,g,p,y,h[c+3],22,-1044525330),y=a(y,M,g,p,h[c+4],7,-176418897),p=a(p,y,M,g,h[c+5],12,1200080426),g=a(g,p,y,M,h[c+6],17,-1473231341),M=a(M,g,p,y,h[c+7],22,-45705983),y=a(y,M,g,p,h[c+8],7,1770035416),p=a(p,y,M,g,h[c+9],12,-1958414417),g=a(g,p,y,M,h[c+10],17,-42063),M=a(M,g,p,y,h[c+11],22,-1990404162),y=a(y,M,g,p,h[c+12],7,1804603682),p=a(p,y,M,g,h[c+13],12,-40341101),g=a(g,p,y,M,h[c+14],17,-1502002290),y=o(y,M=a(M,g,p,y,h[c+15],22,1236535329),g,p,h[c+1],5,-165796510),p=o(p,y,M,g,h[c+6],9,-1069501632),g=o(g,p,y,M,h[c+11],14,643717713),M=o(M,g,p,y,h[c+0],20,-373897302),y=o(y,M,g,p,h[c+5],5,-701558691),p=o(p,y,M,g,h[c+10],9,38016083),g=o(g,p,y,M,h[c+15],14,-660478335),M=o(M,g,p,y,h[c+4],20,-405537848),y=o(y,M,g,p,h[c+9],5,568446438),p=o(p,y,M,g,h[c+14],9,-1019803690),g=o(g,p,y,M,h[c+3],14,-187363961),M=o(M,g,p,y,h[c+8],20,1163531501),y=o(y,M,g,p,h[c+13],5,-1444681467),p=o(p,y,M,g,h[c+2],9,-51403784),g=o(g,p,y,M,h[c+7],14,1735328473),y=s(y,M=o(M,g,p,y,h[c+12],20,-1926607734),g,p,h[c+5],4,-378558),p=s(p,y,M,g,h[c+8],11,-2022574463),g=s(g,p,y,M,h[c+11],16,1839030562),M=s(M,g,p,y,h[c+14],23,-35309556),y=s(y,M,g,p,h[c+1],4,-1530992060),p=s(p,y,M,g,h[c+4],11,1272893353),g=s(g,p,y,M,h[c+7],16,-155497632),M=s(M,g,p,y,h[c+10],23,-1094730640),y=s(y,M,g,p,h[c+13],4,681279174),p=s(p,y,M,g,h[c+0],11,-358537222),g=s(g,p,y,M,h[c+3],16,-722521979),M=s(M,g,p,y,h[c+6],23,76029189),y=s(y,M,g,p,h[c+9],4,-640364487),p=s(p,y,M,g,h[c+12],11,-421815835),g=s(g,p,y,M,h[c+15],16,530742520),y=u(y,M=s(M,g,p,y,h[c+2],23,-995338651),g,p,h[c+0],6,-198630844),p=u(p,y,M,g,h[c+7],10,1126891415),g=u(g,p,y,M,h[c+14],15,-1416354905),M=u(M,g,p,y,h[c+5],21,-57434055),y=u(y,M,g,p,h[c+12],6,1700485571),p=u(p,y,M,g,h[c+3],10,-1894986606),g=u(g,p,y,M,h[c+10],15,-1051523),M=u(M,g,p,y,h[c+1],21,-2054922799),y=u(y,M,g,p,h[c+8],6,1873313359),p=u(p,y,M,g,h[c+15],10,-30611744),g=u(g,p,y,M,h[c+6],15,-1560198380),M=u(M,g,p,y,h[c+13],21,1309151649),y=u(y,M,g,p,h[c+4],6,-145523070),p=u(p,y,M,g,h[c+11],10,-1120210379),g=u(g,p,y,M,h[c+2],15,718787259),M=u(M,g,p,y,h[c+9],21,-343485551),y=r(y,l),M=r(M,d),g=r(g,m),p=r(p,f);return t(y)+t(M)+t(g)+t(p)}function jl(e){const n="function"==typeof e?e.toString():e;if("string"!=typeof n)throw Error("Unexpected type "+typeof e+" while parsing function");let t,r="",i=!1,a=!1,o=!1,s="",u=0,c=0,l=[],d={},m="",f=['"',"'","`"],h=!1,y=!1,M=!1,g=!1,p=!1,v=!1,w="";for(let e=0;e<n.length;e++)if(M||"/"!==n[e]||"*"!==n[e+1])if("/"===n[e]&&"*"===n[e-1])M=!1;else if(g||"/"!==n[e]||"/"!==n[e+1])if("\n"===n[e])g=!1;else{if(M||g)continue;if(n[e]===m&&!h&&m)m="",r+=n[e];else if(m)h="\\"===n[e]&&!h,r+=n[e];else if(f.includes(n[e])&&!h)m=n[e],r+=n[e];else if("("===n[e]){if(u++,""!==r.trim()){if("function"===r.trim())o=!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(")"===n[e])u===c+1&&(y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""),c++;else if(p&&"}"!==n[e])r+=n[e];else{if(u&&u===c&&":"===n[e]){const r=n.substring(e+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!r)throw Error("Unexpected ':' while parsing function");w=r[1],t=n.substring(e+r[0].length).trim();break}if(!(r||"="!==n[e]||">"!==n[e+1]||u!==c||c||i)){d.name=n.slice(0,e).trim(),l.push(d),d={},i=!0,t=bbn.fn.substr(n,e+2).trim();break}if(u===c&&"="===n[e]&&">"===n[e+1]){""!==r.trim()&&(d.name=r.trim(),l.push(d),d={},r=""),i=!0,e++;continue}if("="===n[e]&&u>c&&!y)d.name=r.trim(),r="",y=!0;else if(","===n[e])if(p)r+=n[e];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""}else if("{"===n[e]||"}"===n[e]){if(u===c){t=n.substring(e).trim();break}u>c?"{"!==n[e]||p?"}"===n[e]&&p&&(p=!1,r+=n[e]):(p=!0,r=n[e]):r=""}else{if(i){t=n.substring(n.indexOf("=>")+2).trim();break}" "===n[e]?""!==r.trim()&&("async"===r.trim()&&(a=!0),u>c?r+=n[e]:r=""):r+=n[e]}}}else g=!0,r="";else M=!0,r="";if(!t){if(!i)throw Error("Unexpected end of function while parsing function");t=r}t.substr(0,25).indexOf("[native code]")>-1&&(v=!0);const b=l.map(e=>e.name+(e.default?" = "+e.default:"")).join(", ");return{body:t,args:l,argString:b,isArrow:i,hasFunction:o,name:s,isAsync:a,isBinary:v,hash:Rl(t+(s?"-"+s:"")+(b?"-"+b:"")),returnType:w}}function Zl(e,n,t){if(t||(t=[]),e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(![void 0,Object,Array,null].includes(null==e?void 0:e.constructor)||![void 0,Object,Array,null].includes(null==n?void 0:n.constructor))return!1;let r=Object.keys(e).sort(),i=Object.keys(n).sort();if(xl(r)!==xl(i))return!1;let a=!0;if(e&&"object"==typeof e){if(t.includes(e))return a;t.push(e)}return hl(r,t=>{if(!Zl(e[t],n[t]))return a=!1,!1}),a}if(e&&n&&"function"==typeof e&&"function"==typeof n){let t=jl(e),r=jl(n),i=t.hash===r.hash;return i&&t.isBinary&&(i=!1),i}return!1}function Ul(e,n,t){switch(t){case"===":case"=":case"equal":case"eq":case"is":return e===n;case"!==":case"notequal":case"neq":case"isnot":return e!==n;case"!=":case"different":return e!=n;case"contains":case"contain":case"icontains":case"icontain":return!Nl(e)&&!Nl(n)&&-1!==Al(e).toLowerCase().indexOf(Al(n).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!zl(e)&&!zl(n))||-1===Al(e.toLowerCase()).indexOf(Al(n.toLowerCase()));case"starts":case"start":return!zl(e)&&!zl(n)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof n&&(n=n.toString()||""),0===e.indexOf(n));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!zl(e)&&!zl(n)&&0===Al(e).toLowerCase().indexOf(Al(n).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!zl(e)&&!zl(n)&&e.lastIndexOf(n)===e.length-n.length;case"like":return!zl(e)&&!zl(n)&&Al(e).toLowerCase()===Al(n).toLowerCase();case"gt":case">":return e>n;case"gte":case">=":return e>=n;case"lt":case"<":return e<n;case"lte":case"<=":return e<=n;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(ll(e,n))return Zl(e,n);default:return e==n}}function Yl(e,n){if(!n.conditions||!n.logic||!dl(n.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 t="AND"===n.logic;return hl(n.conditions,r=>{let i;if(r.conditions&&dl(r.conditions))i=Yl(e,r);else if(i=Ul(Sl(e,r.field),r.value,r.operator),i){let n=r.field.split("."),t=n.pop();n.length&&hl(n,n=>e=e[n]),void 0===Sl(e,t)&&void 0!==r.value&&(i=!1)}if(i){if("OR"===n.logic)return t=!0,!1}else if("AND"===n.logic)return t=!1,!1}),t}function ql(e,n="="){if(!ll(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!dl(e.conditions)){let t=[];cl(e,(e,r)=>{ll(e)&&"object"==typeof e.conditions?t.push(ql(e)):t.push({field:r,operator:n,value:e})}),e={conditions:t}}return e.logic||(e.logic="AND"),e}function Wl(e,n,t=null,r="=",i=0,a=!1){if(!fl(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;let o,s,u=!1;if(n)if("string"==typeof n)o={conditions:[{field:n,value:t,operator:r||"="}]};else if(a=!0===r,i="number"==typeof t?t:a?e.length-1:0,"function"==typeof n)u=!0,s=n;else if(ll(n))if("field"in n&&"value"in n)o={conditions:[n],logic:"AND"};else if("conditions"in n)o=n;else{const e=[];for(let t in n)e.push({field:t,value:n[t],operator:"="});o={conditions:e,logic:"AND"}}else dl(n)&&(o={conditions:n,logic:"AND"});else u=!0,s=e=>Yl({value:e},ql({logic:"AND",conditions:[{field:"value",operator:r||"=",value:t}]}));if(u||o){if("number"!=typeof i&&(i=a?e.length-1:0),!s){const e=ql(o);s=n=>Yl(n,e)}if(a)for(let n=i;n>=0;n--){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}else for(let n=i;n<e.length;n++){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}}return-1}function Kl(e,n,t=null,r="=",i=0,a=!1,o=!1){let s=Wl(e,n,t,r,i,a);return s>-1?e[s]:n&&["object","function"].includes(typeof n)&&5 in arguments?a:o}function Vl(e,n=null,t=!1){let r=Wl(bbn.env.loaders,{key:e});if(r>-1){let i=bbn.env.loaders.splice(r,1)[0],a=Kl(bbn.env.loadersHistory,{key:e,start:i.start});return a&&(a.loading=!1,a.duration=(new Date).getTime()-i.start,"string"==typeof n?(a.errorMessage=n,a.error=!t,a.abort=t):ll(n)&&(a.success=!0)),!0}return!1}function $l(e){let n=Wl(bbn.env.loaders,{key:e});return n>-1?bbn.env.loaders[n]:null}function Jl(e,n,t=null,r="=",i=0){if(!dl(e))try{e=Array.from(e)}catch(n){throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array")}let a={};const o=[],s="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)a=n;else if("string"==typeof n)a[n]=t;else if(!s)throw new Error("Search function error: The prop argument should be a string or an object");let u;u="function"==typeof n?n:(e,n)=>Yl(e,a);for(let n=0;n<e.length&&(bbn.env._enumerated.push(!0),!(u(e[n],n)&&(bbn.env._enumerated.pop(),o.push(e[n]),bbn.env._enumerated.push(!0),i&&o.length>=i)));n++)bbn.env._enumerated.pop();return o}function Ql(e){if(Pl(e)){bbn.var.colors||(bbn.var.colors={});let n=document.createElement("style");document.head.appendChild(n);let t=n.sheet,r=0;cl(e,(e,n)=>{bbn.var.colors[n]=e,t.insertRule(".bbn-"+n+", .bbn-color-text-"+n+" {color: "+e+" !important;}",r),t.insertRule("svg.bbn-"+n+", .bbn-"+n+" svg, svg.bbn-color-text-"+n+", .bbn-color-text-"+n+" svg {fill: "+e+";}",r),t.insertRule(".bbn-bg-"+n+", .bbn-color-bg-"+n+", .bbn-color-background-"+n+" {background-color: "+e+" !important;}",r),t.insertRule(".bbn-border-"+n+", .bbn-color-border-"+n+" {border-color: "+e+" !important;}",r),t.insertRule(".bbn-color-"+n+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",r)})}}function Xl(e,n=null,t=""){if(e&&"FORM"===e.tagName){let r=(n,t)=>{let r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",n),r.setAttribute("value",t),e.appendChild(r)};n=JSON.parse(JSON.stringify(n||{})),t=t||"",n&&cl(n,(n,i)=>{let a=t?`${t}[${i}]`:i;n instanceof Date?r(a,n.toISOString()):n instanceof Array?n.forEach((n,t)=>{const i=`${a}[${t}]`;"object"==typeof n?Xl(e,n,i):r(i,n.toString())}):"object"!=typeof n||n instanceof File?r(a,n.toString()):Xl(e,n,a)})}}function ed(e,n){let t=0;hl(n,n=>{n.style[e]="auto"}),hl(n,(n,r)=>{let i=n.getBoundingClientRect(),a=i[e]%1?i[e]-i[e]%1+1:i[e];a>t&&(t=a)}),hl(n,(n,r)=>{t&&(n.style[e]=t+"px")})}function nd(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function td(e,n,t,r=""){return t.toString().replace(ll(e)?e:new RegExp(nd(e),"g"+r),n)}function rd(e,n,t){let r={};return n&&cl(n,(e,n)=>{-1===n.indexOf("_bbn")&&(r[n]=e)}),e+":"+Rl((t||"json")+JSON.stringify(r))}function id(e,n=null,t=null,r=null,i=null,a=null){if(null===n&&e&&"object"==typeof e&&e.url&&(e.abort&&(a=e.abort),e.failure&&(i=e.failure),e.success&&(r=e.success),e.data&&(t=e.data),e.datatype&&(n=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=td("//","/",e)),n||(n="json");let o=rd(e,t,n),s=$l(o);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&yl(t||{},{_bbn_token:bbn.env.token});const u=new AbortController;let c={responseType:n,signal:u.signal};"text"===n?c.headers={accept:"text/javascript","Content-Type":"text/javascript"}:"json"===n?c.headers={accept:"application/json","Content-Type":"application/json"}:"html"===n&&(c.headers={accept:"text/html","Content-Type":"text/html"});let l="get";ll(t)&&Pl(t)>0&&(c.data=t,l="post");let d=tl.run(l,e,c).then(n=>{if(Vl(o,n),bbn.fn.defaultEndLoadingFunction(e,m,t,n),200===n.status)al(r)&&r(n.data,n.headers);else{let e=1;al(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n)}return n}).catch(n=>{let r=tl.isCancel(n);if(Vl(o,n.message||n.response.data,r),bbn.fn.defaultEndLoadingFunction(e,m,t,n),r){let t=1;al(a)&&(t=a(n.message,e)),t&&bbn.fn.defaultAjaxAbortFunction(n.message,e)}else{let e=1;al(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n.response)}return n.response}),m=Dl(o,d,u);return bbn.fn.defaultStartLoadingFunction(e,m,t,o),d}}const ad=new TextDecoder;function od(e){return ad.decode(e)}function sd(e,n){if(e&&rl(e)){let t=e.split("/").pop();if(!n)return t;let r=n.length;if(t&&sl(t,-r)===n)return sl(t,0,t.length-r)}return""}const ud=[["y","year",31536e6],["m","month",2592e6],["w","week",6048e5],["d","day",864e5],["h","hour",36e5],["i","minute",6e4],["s","second",1e3],["x","millisecond",1]],cd={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"},ld={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 n of e)if(null!==n&&("object"==typeof n||"function"==typeof n))return!1;return!0}var md,fd,hd,yd,Md=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},gd=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};const pd=xc.ZonedDateTime.from("1970-01-01T00:00Z[UTC]");class vd{static fromUnit(e,n){const t=cd[n]||"ms",r=["y"===t?e:0,"m"===t?e:0,"w"===t?e:0,"d"===t?e:0,"h"===t?e:0,"i"===t?e:0,"s"===t?e:0,["y","m","w","d","h","i","s"].includes(t)?0:e],i=new xc.Duration(...r);return new vd(i)}constructor(e,n,t,r,i,a,o,s,u){md.add(this),fd.set(this,void 0),hd.set(this,void 0),e instanceof xc.Duration?Md(this,fd,e,"f"):Md(this,fd,"object"==typeof e?new xc.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 xc.Duration(e||0,n||0,t||0,r||0,i||0,a||0,o||0,s||0,0,0),"f");const c=cd[u||""]||u;Md(this,hd,c||"ms","f"),Kl(ud,e=>e[0]===c),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,fd,"f")}years(e=!1){return gd(this,md,"m",yd).call(this,"year",e)}months(e=!1){return gd(this,md,"m",yd).call(this,"month",e)}weeks(e=!1){return gd(this,md,"m",yd).call(this,"week",e)}days(e=!1){return gd(this,md,"m",yd).call(this,"day",e)}hours(e=!1){return gd(this,md,"m",yd).call(this,"hour",e)}minutes(e=!1){return gd(this,md,"m",yd).call(this,"minute",e)}seconds(e=!1){return gd(this,md,"m",yd).call(this,"second",e)}toJSON(){return this.value.toJSON()}asYears(){return gd(this,fd,"f").total({unit:"year",relativeTo:pd})}asMonths(){return gd(this,fd,"f").total({unit:"month",relativeTo:pd})}asWeeks(){return gd(this,fd,"f").total({unit:"week",relativeTo:pd})}asDays(){return gd(this,fd,"f").total({unit:"day",relativeTo:pd})}asHours(){return gd(this,fd,"f").total({unit:"hour",relativeTo:pd})}asMinutes(){return gd(this,fd,"f").total({unit:"minute",relativeTo:pd})}asSeconds(){return gd(this,fd,"f").total({unit:"second",relativeTo:pd})}add(e,n){let t=gd(this,hd,"f");if(n)if(cd[n]){const e=Kl(ud,e=>e[0]===cd[n]);e&&(t=e[1])}else t=n;const r=t+"s";if(!["years","months","weeks","days","hours","minutes","seconds","milliseconds"].includes(r))throw new Error("Invalid unit for duration: "+(null!=n?n:t));const i={[r]:e},a=gd(this,fd,"f").add(i);return new vd(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gd(this,hd,"f"))}subtract(e,n){return this.add(-e,n)}toMilliseconds(){const e=gd(this,fd,"f");return e.years||e.months||e.weeks||e.days?e.total({unit:"millisecond",relativeTo:pd}):e.total({unit:"millisecond"})}}fd=new WeakMap,hd=new WeakMap,md=new WeakSet,yd=function(e,n){const t=gd(this,fd,"f");if(n)switch(e){case"year":return t.years;case"month":return t.months;case"week":return t.weeks;case"day":return t.days;case"hour":return t.hours;case"minute":return t.minutes;case"second":return t.seconds}const r=t.total({unit:e,relativeTo:pd});return Math.floor(r)};var wd,bd=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},_d=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};class Ed{constructor(e){this.__bbnNoData=!0,this.__isBbnDt=!0,wd.set(this,void 0),this.getWeekdayIndex=(e,n)=>{const t=n||bbn.env.lang,r=e.trim().toLowerCase(),i=[t,...navigator.languages];for(let e=0;e<i.length;e++){if(!i[e])continue;const n=new Intl.DateTimeFormat(i[e],{weekday:"long"});for(let e=0;e<7;e++){const t=new Date(2023,0,1+e);if(n.format(t).toLowerCase()===r)return e}}throw new Error(`Unknown weekday name '${e}' for locale '${t}'`)},Object.defineProperty(this,"isValid",{value:!0,writable:!1,configurable:!0}),bd(this,wd,e,"f");const n=new Date;Object.defineProperty(this,"defaultValue",{value:{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()},writable:!1,configurable:!1})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return _d(this,wd,"f")}get hasFullDate(){return!!this.value&&"year"in this.value&&"month"in this.value&&"day"in this.value}toEpochMs(){if("zoned"===this.kind){return this.value.toInstant().epochMilliseconds}const e=Ed.systemTimeZoneId;let n;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 t=this.value;n=`${xc.Now.plainDateISO().toString()}T${t.toString()}[${e}]`}case"yearMonth":n=`${this.value.toPlainDate({day:1}).toString()}T00:00[${e}]`;case"monthDay":{const t=this.value,r=xc.Now.plainDateISO();n=`${t.toPlainDate({year:r.year}).toString()}T00:00[${e}]`}}if(n){return xc.ZonedDateTime.from(n).toInstant().epochMilliseconds}throw new Error(`Unsupported kind '${this.kind}' in toEpochMs`)}static nowForKind(e){switch(e){case"zoned":return xc.Now.zonedDateTimeISO();case"dateTime":return xc.Now.plainDateTimeISO();case"date":return xc.Now.plainDateISO();case"time":return xc.Now.plainTimeISO();case"yearMonth":{const e=xc.Now.plainDateISO();return new xc.PlainYearMonth(e.year,e.month)}case"monthDay":{const e=xc.Now.plainDateISO();return new xc.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,n,t){if(!e||!n)throw new TypeError("Both arguments must be Temporal values");const r=xc.Now.timeZoneId();let i=t&&cd[t]?Kl(ud,e=>e[0]===cd[t])[1]:void 0;i=i?i+"s":void 0;const a=e=>e instanceof Ed,o=e=>a(e)?e.value:e,s=e=>{if(a(e))switch(e.kind){case"zoned":return e.value;case"dateTime":{const n=`${e.value.toString()}[${r}]`;return xc.ZonedDateTime.from(n)}case"date":{const n=`${e.value.toString()}T00:00[${r}]`;return xc.ZonedDateTime.from(n)}case"yearMonth":{const n=`${e.value.toPlainDate({day:1}).toString()}T00:00[${r}]`;return xc.ZonedDateTime.from(n)}default:throw new TypeError(`Cannot convert kind '${e.kind}' to ZonedDateTime for comparison`)}if(e instanceof xc.ZonedDateTime)return e;throw new TypeError("toZdt expects a bbnDt wrapper or ZonedDateTime")},u=o(e),c=o(n);if(u.constructor===c.constructor){const e=u.constructor,n=e.compare(u,c);if(void 0===i){if("function"!=typeof e.compare)throw new TypeError("This Temporal type has no static compare");return n}if("function"!=typeof u.until||"function"!=typeof u.since)throw new TypeError("This Temporal type does not support until/since");return u[1===n?"since":"until"](c,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}const l=new Set(["zoned","dateTime","date","yearMonth"]);if(a(e)&&a(n)&&l.has(e.kind)&&l.has(n.kind)){const t=s(e),r=s(n),a=xc.ZonedDateTime.compare(t,r);if(void 0===i)return a;if("function"!=typeof t.until||"function"!=typeof t.since)throw new TypeError("ZonedDateTime does not support until/since");return t[1===a?"since":"until"](r,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}throw new TypeError("Cannot compare different Temporal or bbnDt types")}static parse(e,n,t="auto",r){return bbn.dt(e,n,t,r)}parse(e,n,t){return Ed.parse(e,n,t||this.kind)}compare(e,n){return e instanceof Ed||(e=bbn.dt(e,null,this.kind)),Ed.compare(this,e,n)}add(e,n){if(this.value){if(this.value instanceof xc.PlainMonthDay||"function"!=typeof this.value.add)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof vd){const n=this.value.add(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new vd(e),t=this.value.add(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=vd.fromUnit(e,n),r=this.value.add(t.value);return new this.constructor(r)}}}subtract(e,n){if(this.value){if(this.value instanceof xc.PlainMonthDay||"function"!=typeof this.value.subtract)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof vd){const n=this.value.subtract(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new vd(e),t=this.value.subtract(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=vd.fromUnit(e,n),r=this.value.subtract(t.value);return new this.constructor(r)}}}duration(e,n){return vd.fromUnit(e,n)}isBefore(e,n){return this.compare(e,n)<0}isBeforeOrSame(e,n){return this.compare(e,n)<=0}isAfter(e,n){return this.compare(e,n)>0}isAfterOrSame(e,n){return this.compare(e,n)>=0}isSame(e,n){return 0===this.compare(e,n)}equals(e){return this.isSame(e)}toJSON(){if(_d(this,wd,"f")&&"toZonedDateTime"in _d(this,wd,"f")){const e=_d(this,wd,"f").toZonedDateTime(Ed.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 n=this.value.withTimeZone(e);return bbn.dt(n)}case"dateTime":if(void 0===e){const e=`${this.value.toString()}[${Ed.systemTimeZoneId}]`;return xc.ZonedDateTime.from(e).timeZoneId}{const n=`${this.value.toString()}[${e}]`,t=xc.ZonedDateTime.from(n);return bbn.dt(t)}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)&&parseInt(e)){const n=this.value.with({year:e});return new this.constructor(n)}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)&&parseInt(e)){const n=this.value.with({month:e});return new this.constructor(n)}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 n=this.value.with({day:e});return new this.constructor(n)}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 n=this.value.with({hour:e});return new this.constructor(n)}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 n=this.value.with({minute:e});return new this.constructor(n)}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 n=this.value.with({second:e});return new this.constructor(n)}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 n=this.value.with({millisecond:e});return new this.constructor(n)}return this.value.millisecond}}weekday(e,n){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,n)}}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,n=!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(),n=new Date(Date.UTC(e,this.month()-1,this.day())),t=new Date(Date.UTC(e,0,1)),r=Math.floor((n.getTime()-t.getTime())/864e5),i=t.getUTCDay();let a=(bbn.dt.locales.firstDayOfWeek-i+7)%7;const o=0===a?7:a;if(r<o)return 1;const s=r-o;return 2+Math.floor(s/7)}get YYYY(){if(this.value&&"year"in this.value)return this.year().toString()}get YY(){if(this.value&&"year"in this.value)return sl(this.year().toString(),2,2)}get MMMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsLong[this.month()-1]}get MMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsShort[this.month()-1]}get MM(){if(this.value&&"month"in this.value){const e=parseInt(this.month().toString());return e<10?"0"+e.toString():e.toString()}}get M(){if(this.value&&"month"in this.value)return this.month().toString()}get EE(){if(this.value&&"dayOfWeek"in this.value)return this.value.dayOfWeek.toString()}get DD(){if(this.value&&"day"in this.value){const e=parseInt(this.day().toString());return e<10?"0"+e.toString():e.toString()}}get d(){if(this.value&&"day"in this.value)return this.day().toString()}get dddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"long")}get ddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"short")}get D(){if(this.value&&"day"in this.value)return this.day().toString()}get HH(){if(this.value&&"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 this.value&&"hour"in this.value?this.hour().toString():this.hasFullDate?"0":void 0}get II(){if(this.value&&"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(this.value&&"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 this.value&&"minute"in this.value?this.minute().toString():this.hasFullDate?"0":void 0}get SS(){if(this.value&&"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(this.value&&"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 this.value&&"second"in this.value?this.second().toString():this.hasFullDate?"0":void 0}get WW(){if(this.value&&"weekOfYear"in this.value)return this.value.weekOfYear.toString().padStart(2,"0")}get W(){if(this.value&&"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 n="";if(e){const t=new RegExp("([|]|"+Object.keys(cd).join("|")+")","g");let r=0;hl(e.split(t),e=>{if("["!==e)if("]"!==e)if(r>0)n+=e;else if(e in cd)if(e in this&&dd(this[e]))n+=this[e];else{n+=this[ld[cd[e]]]||""}else n+=e;else r--;else r++})}return n}calendar(e){const n=new this.constructor,t=this.startOf("day"),r=n.startOf("day"),i=t.diff(r,"day"),a={numeric:"auto"};e&&(a.style="short");const o=new Intl.RelativeTimeFormat(bbn.env.lang,a);let s="",u=[],c="";if(i>=-1&&i<=1)u=o.formatToParts(i,"day");else if(i>=-6&&i<-1)c=this.dddd+", ",u=o.formatToParts(i,"day");else{if(!(i<=6&&i>1))return this.fdate();c=this.dddd,u=[]}return bbn.fn.each(u,e=>{s+=e.value}),`${c}${s} ${this.ftime()}`}matchFormat(e,n){try{return this.parse(e,n),!0}catch(e){return!1}}getWeekday(e,n="long",t){if(!n){const n=this.getWeekday(e,"narrow",t),r=this.getWeekday(e,"short",t),i=this.getWeekday(e,"long",t);return{letter:n,abbr:r,full:i,long:i,short:r,narrow:n}}let r;if("letter"===n)r="narrow";else if("abbr"===n)r="short";else if("full"===n)r="long";else{if(!["long","short","narrow"].includes(n))throw new Error("Invalid mode for getWeekDay: "+n+'. Allowed values are "long", "short", "narrow", "letter", "abbr", "full".');r=n}return new Date(2023,0,1+e).toLocaleDateString([t||bbn.env.lang,...navigator.languages],{weekday:r})}setWeekday(e,n=!1,t){let r;if("string"==typeof e&&(e=this.getWeekdayIndex(e,t)),"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 i=this.weekday();let a;return n?(a=(i-r+7)%7,0===a&&(a=7),a=-a):(a=(r-i+7)%7,0===a&&(a=7)),this.add(a,"d")}diff(e,n="",t=!1){let r;if(e instanceof Ed)r=e.toEpochMs();else if(e instanceof xc.ZonedDateTime||e instanceof xc.PlainDateTime||e instanceof xc.PlainDate||e instanceof xc.PlainTime||e instanceof xc.PlainYearMonth||e instanceof xc.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 i=this.toEpochMs()-r;if(t&&(i=Math.abs(i)),!n)return i;const a=cd[n]||n,o=Kl(ud,e=>e[0]===a);if(!o)throw new Error("Invalid unit for diff: "+n);const[,,s]=o,u=i/s;return u<0?Math.ceil(u):Math.floor(u)}guessUnit(e){const n=Math.abs(e);for(const[e,t,r]of ud)if(n>=r||"millisecond"===t)return e;return null}fromNow(e=""){Ed.nowForKind(this.kind);const n=bbn.dt(void 0,null,this.kind),t=this.diff(n),r=cd[e]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromNow");let i=this.diff(n,r);const a=new Intl.RelativeTimeFormat([bbn.env.lang,...navigator.languages],{numeric:"auto"}),o=Kl(ud,e=>e[0]===r);if(!o)throw new Error("Invalid unit for fromNow: "+e);let[,s]=o;return"millisecond"===s&&(s="second",i=Math.round(i/1e3)),bbn.fn.log("FROM NOW",i,s,a),a.format(i,s)}from(e,n=""){const t=this.diff(e),r=cd[n]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromDate");const i=this.diff(e,r),a=r;return i>0?Zc("%d %s before",i,a):i<0?Zc("%d %s after",-i,a):Zc("The same %s",a)}startOf(e="d"){var n,t;const r=cd[e]||e;if(!r)throw new Error("Invalid unit for startOf: "+e);let i=this.value;const a=e=>{const n={};return"hour"in e?(Object.assign(n,{hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),e.with(n)):e};switch(r){case"y":if(!("year"in i))throw new Error('startOf("y") only valid for year-based types');i=a(i.with({month:1,day:1}));break;case"m":if(!("month"in i))throw new Error('startOf("m") only valid for month-based types');i=a(i.with({day:1}));break;case"w":{const e="toPlainDate"in i?i.toPlainDate():i,r=e.dayOfWeek-1,o=e.subtract({days:r});i="toPlainDateTime"in i?a(o.toPlainDateTime(null!==(t=null===(n=i.toPlainTime)||void 0===n?void 0:n.call(i))&&void 0!==t?t:xc.PlainTime.from("00:00"))):o;break}case"d":i=a(i);break;case"h":i=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"i":i=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"s":i=i.with({millisecond:0,microsecond:0,nanosecond:0});break;default:throw new Error("Invalid unit for startOf: "+e)}return this.withValue(i)}endOf(e="d"){const n=xc.Now.timeZoneId(),t=cd[e]||e;let r,i=(()=>{switch(this.kind){case"zoned":return this.value;case"dateTime":{const e=`${this.value.toString()}[${n}]`;return xc.ZonedDateTime.from(e)}case"date":{const e=`${this.value.toString()}T00:00[${n}]`;return xc.ZonedDateTime.from(e)}case"time":{const e=this.value,t=`${xc.Now.plainDateISO().toString()}T${e.toString()}[${n}]`;return xc.ZonedDateTime.from(t)}case"yearMonth":{const e=`${this.value.toPlainDate({day:1}).toString()}T00:00[${n}]`;return xc.ZonedDateTime.from(e)}case"monthDay":{const e=this.value,t=xc.Now.plainDateISO(),r=`${e.toPlainDate({year:t.year}).toString()}T00:00[${n}]`;return xc.ZonedDateTime.from(r)}default:throw new Error("Unsupported kind in endOf")}})(this.value);switch(t){case"y":r=i.with({month:1,day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({years:1});break;case"m":r=i.with({day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({months:1});break;case"w":{const e=-(i.toPlainDate().dayOfWeek-1);r=i.add({days:e}).with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({weeks:1});break}case"d":r=i.with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({days:1});break;case"h":r=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({hours:1});break;case"i":case"n":case"min":r=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0}).add({minutes:1});break;case"s":r=i.with({millisecond:0,microsecond:0,nanosecond:0}).add({seconds:1});break;default:throw new Error("Invalid unit for endOf: "+e)}const a=r.subtract({milliseconds:1});switch(this.kind){case"zoned":return this.withValue(a);case"dateTime":return this.withValue(a.toPlainDateTime());case"date":return this.withValue(a.toPlainDate());case"time":return this.withValue(a.toPlainTime());case"yearMonth":{const e=a.toPlainDate();return this.withValue(new xc.PlainYearMonth(e.year,e.month))}case"monthDay":{const e=a.toPlainDate();return this.withValue(new xc.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}return 0}valueOf(){return this.unix(!0)}}wd=new WeakMap,Ed.systemTimeZoneId=xc.Now.timeZoneId();class Td extends Ed{constructor(e,n,t,r,i,a,o){let s;if(e)if(void 0===n)if(e instanceof xc.PlainDateTime)s=e;else if(e instanceof Date)s=new xc.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=xc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Ed.systemTimeZoneId).toPlainDateTime()}else s=new xc.PlainDateTime(e,n,t||1,r||0,i||0,a||0,o||0);else s=xc.PlainDateTime.from(xc.Now.plainDateTimeISO());super(s),this.kind="dateTime"}format(e){return[!0,"long","full"].includes(e)&&(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long",hour:"2-digit",minute:"2-digit",second:void 0}).pattern),e||(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:void 0}).pattern),Ed.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"2-digit",day:"2-digit"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class Dd extends Ed{constructor(e,n,t){let r;if(e)if(void 0===n)if(e instanceof xc.PlainDate)r=e;else if(e instanceof Date)r=new xc.PlainDate(e.getFullYear(),e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);r=new xc.PlainDate(n.getFullYear(),n.getMonth()+1,n.getDate())}}else r=new xc.PlainDate(e,n,t||1);else r=xc.PlainDate.from(xc.Now.plainDateISO());super(r),this.kind="date"}compareSameKind(e){const n=xc.PlainDate.compare(this.value,e.value);return n<0?-1:n>0?1:0}format(e){return!0===e&&(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long"}).pattern),e||(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric"}).pattern),Ed.prototype.format.call(this,e)}ftime(e=!1){return"00:00"+(e?":00":"")}fdate(e=!1,n=!1){const t=new Date(this.year(),this.month()-1,this.day()),r=Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},n?{weekday:e?"long":"short"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],r).format(t)}}class Sd extends Ed{constructor(e,n,t,r,i,a,o,s){let u;if(e)if(void 0===n)if(e instanceof xc.ZonedDateTime)u=e;else if(e instanceof Date)u=function(e,n=!1,t=xc.Now.timeZoneId()){const r=xc.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(t);return n?r:r.toPlainDateTime()}(e,!0);else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtZoned");u=xc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone)}else{u=new xc.PlainDateTime(n,t,r||1,i||0,a||0,o||0,s||0).toZonedDateTime(e||xc.Now.timeZoneId())}else u=xc.Now.zonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone);super(u),this.kind="zoned"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class Ad extends Ed{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof xc.PlainYearMonth)t=e;else if(e instanceof Date)t=new xc.PlainYearMonth(e.getFullYear(),e.getMonth()+1);else{if("number"!=typeof n)throw new Error("Invalid value for bbnDtDateTime");{const e=new Date(n);t=new xc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}}else t=new xc.PlainYearMonth(e,n);else{const e=new Date;t=new xc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}super(t),this.kind="yearMonth"}format(e){return!0===e&&(e=Kl(bbn.dt.locales.date,e=>"numeric"===e.year&&"long"===e.month&&!("day"in e)).pattern),e||(e=Kl(bbn.dt.locales.date,e=>"numeric"===e.year&&"numeric"===e.month&&!("day"in e)).pattern),Ed.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1),i={year:"numeric",month:e?"long":"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}class kd extends Ed{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof xc.PlainMonthDay)t=e;else if(e instanceof Date)t=new xc.PlainMonthDay(e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);t=new xc.PlainMonthDay(n.getMonth()+1,n.getDate())}}else t=new xc.PlainMonthDay(e,n);else{const e=new Date;t=new xc.PlainMonthDay(e.getMonth()+1,e.getDate())}super(t),this.kind="monthDay"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(2e3,this.month()-1,this.day()),i={month:e?"long":"numeric",day:"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}function Cd(e,n,t){let r="";const i=e.some(e=>"dayPeriod"===e.type),a=i||"h12"===n||"h11"===n,o=!!t.weekday,s="short"===t.month||"long"===t.month,u="numeric"===t.year&&"numeric"===t.month&&"numeric"===t.day&&!o&&!s;for(const n of e)switch(n.type){case"year":"2-digit"===t.year?r+="YY":r+="YYYY";break;case"month":if("short"===t.month){r+="MMM";break}if("long"===t.month){r+="MMMM";break}if(u){r+="M";break}/^\d+$/.test(n.value)?r+=2===n.value.length?"MM":"M":r+=n.value.length>3?"MMMM":"MMM";break;case"day":if(u){r+="D";break}r+=2===n.value.length?"DD":"D";break;case"weekday":"short"===t.weekday||"narrow"===t.weekday?r+="ddd":"long"===t.weekday?r+="dddd":r+=n.value.length>3?"dddd":"ddd";break;case"hour":r+=a?2===n.value.length?"hh":"h":2===n.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(!n.value)break;if(/[A-Za-zÀ-ÖØ-öø-ÿ]/.test(n.value)){r+=`[${n.value.replace(/]/g,"\\]")}]`}else r+=n.value;break;default:r+=n.value}return r}const Pd=()=>{if(Object.keys(bbn.dt.locales).length)return;const e=[bbn.env.lang,...navigator.languages],n=new Intl.DateTimeFormat(e,{month:"long"}),t=new Intl.DateTimeFormat(e,{month:"short"}),r=new Intl.DateTimeFormat(e,{weekday:"long"}),i=new Intl.DateTimeFormat(e,{weekday:"short"}),a=new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"short"}),o=new Intl.DateTimeFormat(e,{dateStyle:"long",timeStyle:"long"}),s=new Intl.DateTimeFormat(e,{year:"numeric",month:"numeric",day:"numeric"}),u=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),c=new Intl.Locale(e[0]),l=[],d=[];for(let e=0;e<12;e++){const r=new Date(2020,e,1);l.push(n.format(r)),d.push(t.format(r))}const m=new Date(2020,1,2),f=[],h=[];for(let e=0;e<7;e++){const n=new Date(m.getTime()+864e5*e);f.push(r.format(n)),h.push(i.format(n))}const{date:y,time:M,datetime:g}=(e=>{e||(e=[bbn.env.lang,...navigator.languages]);const n=new Date(Date.UTC(2e3,0,2,13,45,30)),t=[],r=[],i=[],a=new Set,o=new Set,s=new Set,u=[{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"}],c=[];for(const r of u){const i=new Intl.DateTimeFormat(e,r),o=Cd(i.formatToParts(n),i.resolvedOptions().hourCycle,r);a.has(o)||(a.add(o),t.push({pattern:o,sample:i.format(n),options:r})),r.year&&r.month&&r.day&&c.push(r)}const l=[{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 t of l){const i=new Intl.DateTimeFormat(e,t),a=Cd(i.formatToParts(n),i.resolvedOptions().hourCycle,t);o.has(a)||(o.add(a),r.push({pattern:a,sample:i.format(n),options:t}))}for(const t of c)for(const r of l){const a=Object.assign(Object.assign({},t),r),o=new Intl.DateTimeFormat(e,a),u=Cd(o.formatToParts(n),o.resolvedOptions().hourCycle,a);s.has(u)||(s.add(u),i.push({pattern:u,sample:o.format(n),options:a}))}return{date:t,time:r,datetime:i}})(e),p=c.getWeekInfo?c.getWeekInfo():{firstDay:1};yl(bbn.dt.locales,{formatters:{short:a,long:o,numeric:s,relative:u},firstDayOfWeek:p.firstDay,monthsLong:l,monthsShort:d,weekdaysLong:f,weekdaysShort:h,locale:c,date:y,time:M,datetime:g})};class Nd extends Ed{constructor(e,n,t,r){let i;if(e)if(void 0===e)if(e instanceof xc.PlainTime)i=e;else if(e instanceof Date)i=new xc.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!==n)i=new xc.PlainTime(e,n,t||0,r||0);else{const n=new Date(e);i=new xc.PlainTime(n.getHours(),n.getMinutes(),n.getSeconds(),1e6*n.getMilliseconds())}}else i=new xc.PlainTime(e,n||0,t||0,r||0);else{const e=new Date;i=new xc.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds())}super(i),this.kind="time"}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}const zd=function(e,n){try{return n?e.toLocaleLowerCase(n):e.toLowerCase()}catch(n){return e.toLowerCase()}};function Hd(e,n,t="auto",r,i){var a,o,s,u,c,l,d;Pd();const m=xc;if(!m)throw new Error("Temporal API is required (load @js-temporal/polyfill)");let f=!0;i||(i=(null===(a=null===bbn||void 0===bbn?void 0:bbn.dt)||void 0===a?void 0:a.locales)||{});const h={monthsLong:null!==(o=null==i?void 0:i.monthsLong)&&void 0!==o?o:bbn.dt.locales.monthsLong,monthsShort:null!==(s=null==i?void 0:i.monthsShort)&&void 0!==s?s:bbn.dt.locales.monthsShort,weekdaysLong:null!==(u=null==i?void 0:i.weekdaysLong)&&void 0!==u?u:bbn.dt.locales.weekdaysLong,weekdaysShort:null!==(c=null==i?void 0:i.weekdaysShort)&&void 0!==c?c:bbn.dt.locales.weekdaysShort},y=(null===bbn||void 0===bbn?void 0:bbn.env)&&(null===(l=bbn.env)||void 0===l?void 0:l.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,M=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function g(n,t="auto"){var i;const a=new Td,o={year:a.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"===t,u="zoned"===t.toLowerCase(),c="datetime"===t.toLowerCase(),l="date"===t.toLowerCase(),d="time"===t.toLowerCase(),g="yearmonth"===t.toLowerCase(),p="monthday"===t.toLowerCase(),v=[{token:"YYYY",regex:"\\d{4}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"YY",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);n.year=t>=70?1900+t:2e3+t,n.hasYear=!0}},{token:"Y",regex:"[+-]?\\d{1,6}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"MMMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.monthsLong.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.monthsShort.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid short month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MM",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"mm",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"M",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"m",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"DD",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"D",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"d",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"dddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.weekdaysLong.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid weekday name: "+e);n.weekday=r}},{token:"ddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.weekdaysShort.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid short weekday name: "+e);n.weekday=r}},{token:"EE",regex:"\\d{1}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>7)throw new Error("Invalid weekday number: "+t);n.weekday=t}},{token:"hh",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid 12-hour clock hour: "+t);n.hour=t,n.hasHour=!0,n.uses12Hour=!0}},{token:"HH",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"H",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"h",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"II",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"I",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"i",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"SS",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"S",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ss",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"s",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ms",regex:"\\d{1,3}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>999)throw new Error("Invalid millisecond: "+t);n.ms=t,n.hasMs=!0}},{token:"WWWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"W",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"ZZ",regex:"(?:Z?[+-]\\d{2}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),i=parseInt(r.slice(0,2),10),a=parseInt(r.slice(2),10);if(i<0||i>23||a<0||a>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*i+a)}},{token:"Z",regex:"(?:Z?[+-]\\d{2}\\:{1}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),[i,a]=r.split(":");let o=parseInt(i,10),s=parseInt(a,10);if(o<0||o>23||s<0||s>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*o+s)}},{token:"z",regex:"[A-Za-z_\\/]+",apply:(e,n)=>{n.timeZone=e}},{token:"A",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}},{token:"a",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}}],w=[...v].sort((e,n)=>n.token.length-e.token.length);let b="";const _=[];let E=0,T=0;for(;E<n.length;){if("["===n[E]){let e=E+1,t="";for(;e<n.length&&"]"!==n[e];)t+=n[e],e++;if(e<n.length&&"]"===n[e]){const n=t.replace(/\\]/g,"]");b+=M(n),E=e+1;continue}}let e=null;for(const t of w)if(n.startsWith(t.token,E)){e=t;break}e?(b+=`(${e.regex})`,T=b.length,e.apply?_.push(n=>e.apply(n,o)):_.push(()=>{}),E+=e.token.length):(b+=M(n[E]),E+=1)}const D=new RegExp("^"+bbn.fn.substr(b,0,T));let S=D.exec(e);if(!S){if(!r)throw new Error(`Date string "${e}" does not match format "${n}"`);{const t=new Td(a.year(),1,1,0,0,0,0);e=t.format(n),f=!1,S=D.exec(e)}}if(S)for(let e=1;e<S.length;e++){const n=S[e],t=_[e-1];null!=n&&t&&t(n)}if(o.uses12Hour){if(!o.hasAmPm)throw new Error("AM/PM marker (A or a) is required with 12-hour format (hh)");let e=o.hour;o.isPM?e<12&&(e+=12):12===e&&(e=0),o.hour=e}const A=o.hasYear||o.hasMonth||o.hasDay,k=o.hasYear&&o.hasMonth&&o.hasDay,C=o.hasYear&&o.hasMonth&&!o.hasDay,P=!o.hasYear&&o.hasMonth&&o.hasDay,N=o.hasHour||o.hasMinute||o.hasSecond||o.hasMs,z=null!=o.timeZone||null!=o.offsetMinutes;let H;if(u||z&&s){let e;try{e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms)}catch(e){throw new Error("Invalid date/time components")}if(o.timeZone){const n=m.TimeZone.from(o.timeZone),t=e.toZonedDateTime(n);H=new Sd(t)}else{const e=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.ms)-6e4*(null!==(i=o.offsetMinutes)&&void 0!==i?i:0);H=new Sd(m.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(m.Now.timeZoneId()))}}else if(c||s&&(f||A&&N)){if(!k&&!f)throw new Error("PlainDateTime requires year, month and day");const e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms);H=new Td(e)}else if(l||g||p||s&&A&&!N)if(l||k&&s){const e=new m.PlainDate(o.year,o.month,o.day);H=new Dd(e)}else if(g||C&&s){const e=new m.PlainYearMonth(o.year,o.month);H=new Ad(e)}else if(p||P&&s){const e=new m.PlainMonthDay(o.month,o.day,1972);H=new kd(e)}else{if(!s||!o.hasYear)throw new Error("Not enough date components for a known Temporal type");{const e=new m.PlainDate(o.year,1,1);H=new Dd(e)}}else{if(!(d||s&&!A&&N))throw new Error("No date or time information found in input");{const e=new m.PlainTime(o.hour,o.minute,o.second,1e6*o.ms);H=new Nd(e)}}return H.setValid(f),H}if(Array.isArray(n)){let e=null;for(const r of n)try{return g(r,t)}catch(n){e=n}throw null!=e?e:new Error("No format matched")}return g(n,t)}const Id=["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 Fd(e,n,t){const r=e.trim();if(!r)return null;Pd();const i=e=>{for(const n of e)try{return Hd(r,n),n}catch(e){}return null};if(n){return i(Array.isArray(n)?n:[n])}const a=new Set,o=Id.filter(e=>!a.has(e)&&(a.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=>!a.has(e)&&(a.add(e),!0)),u=i([...o,...s]);return u||null}const Od=(e,n=null,t="auto")=>{if(void 0===e)return new Td;if(!e){const e=new Td;return e.setValid(!1),e}if("string"==typeof e){if(n)return Hd(e,n,t,!0);{const n=Fd(e);if(n)return Hd(e,n,t);throw new Error(Zc("Could not guess the date format for value: %s",e))}}if("number"==typeof e)return new Td(Math.floor(Math.abs(e)<99999999999?1e3*e:e));if(e.__isBbnDt)return e;if(e instanceof Date){const n=e;return new Td(n.getFullYear(),n.getMonth()+1,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}if(e instanceof xc.PlainDateTime)return new Td(e);if(e instanceof xc.PlainDate)return new Dd(e);if(e instanceof xc.PlainTime)return new Sd(e);if(e instanceof xc.PlainYearMonth)return new Ad(e);if(e instanceof xc.PlainMonthDay)return new kd(e);if(e instanceof xc.ZonedDateTime)return new Sd(e);if(e instanceof xc.Duration)return new vd(e);throw bbn.fn.log("Invalid date value",e),new Error(Zc("Invalid date value"))};function Ld(e){if(arguments.length>1){const e=[];for(let n=1;n<arguments.length;n++)e.push(arguments[n]);e.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),ol.apply(this,e)}throw new Error(e)}function Gd(e,n=null,t=null,r=null,i=null){let a=!1;if(n){a=!0;let o,s="object"===(typeof n).toLowerCase();if(s&&n.prescript)try{new Function(n.prescript)()}catch(e){Ld(e.message||"")}if(s&&void 0===n.url&&(n.url=e),a=t&&al(t)?t(n,i):bbn.fn.defaultLinkFunction(n,i),i&&s&&void 0!==n.content&&("value"in i?i.value=n.content:i.innerHTML=n.content),a&&s&&n.script&&(a="function"==typeof n.script?n.script(n.data?n.data:{},i||null):((e,t)=>{let r=null;try{r=new Function(n.script)(),al(r)&&(r=r(e,t))}catch(e){ol(e,n),Ld(al(e.getMessage)?e.getMessage():null)}return r})(n.data?n.data:{},i||!1)),a&&r&&al(r)?r(n):s&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(n,i),a&&s&&n.postscript){new Function(n.postscript)(n.postscript)}s&&n.error&&(o=n.errorTitle||bbn.lng.server_response,bbn.fn.defaultErrorFunction(n.error,o))}else bbn.fn.defaultErrorFunction(bbn.lng.errorText,bbn.lng.error);return a}function Bd(e,n,t=!1){let r={error:!1,result:!0};if("string"==typeof n&&(n=[n]),dl(n)||(r.error=bbn._("checkProps must receive a string or an array as props argument")),ll(e)||(r.error=bbn._("checkProps must receive an object as obj argument")),!r.error){let i;hl(n,n=>{let a=(n=n.trim().split(":"))[1]||!1;if(n=n[0],void 0===e[n]?r.error=n+" "+bbn._("is not defined"):a?(i="is"+sl(a,0,1).toUpperCase()+sl(a,1).toLowerCase(),void 0===bbn.fn[i]?r.error=a+" "+bbn._("is not a valid type"):bbn.fn[i](e[n])||(r.error=n+" "+bbn._("is not a")+" "+a)):t&&!e[n]&&(r.error=n+" "+bbn._("is empty")),r.error)return!1})}return r.error&&(r.result=!1),r}function xd(e){return e.replace(/[A-z]{1}/,e=>e.toUpperCase())}function Rd(e,n,t,...r){let i=!1;dl(n)||(n=[n]);const a=[];if(hl(n,n=>{var t;if(n===String?n="string":n===Number?n="number":n===Array?n="array":n===Boolean?n="boolean":n===Object?n="object":n===Function&&(n="function"),al(n)){if(a.push(n.name||(null===(t=n.constructor)||void 0===t?void 0:t.name)||n.toString()),e instanceof n)return i=!0,!1}else if(rl(n)&&al(bbn.fn["is"+xd(n)])){if(bbn.fn["is"+xd(n)](e))return i=!0,!1;a.push(n)}else Ld(`The type ${n} is not recognized`)}),!i)throw ol(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&ol(r),new Error((t?t+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function jd(e){if(dl(e))return e.slice().map(e=>"object"==typeof e?jd(e):e);if(ll(e)){return yl(!0,Object.create(Object.getPrototypeOf(e)),e)}return e}Od.locales=Object.create(null),Od.parse=Hd,Od.guessFormat=Fd,Od.time=()=>{},Od.date=()=>{},Od.dateTime=()=>{},Od.duration=(e,n)=>e instanceof xc.Duration?new vd(e):vd.fromUnit(e,n||"ms"),Od.zoned=()=>{},Od.monthDay=()=>{},Od.yearMonth=()=>{};const Zd=(e,n="text/plain")=>{const t=new DataTransfer;t.setData(n,e);const r=new ClipboardEvent("copy",{bubbles:!0,cancelable:!0,clipboardData:t});document.dispatchEvent(r)};function Ud(e,n,t=null,r="="){if(!dl(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");let i={};const a=[],o="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)r=t,i=n;else if("string"==typeof n)i[n]=t;else if(!o)throw new Error("Search function error: The prop argument should be a string or an object");if("function"==typeof n)for(let t=0;t<e.length;t++)n(e[t],t)&&a.push(e[t]);else if(i=ql(i,r),i.conditions&&i.logic)for(let n=0;n<e.length;n++)Yl(e[n],i)&&a.push(e[n]);return a}const Yd=[];for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;Yd.push(n)}function qd(...e){const n=Object.create(null);return e.length&&yl(n,...e),n}function Wd(e){let n=typeof e;if(void 0===e)return new Date;if("number"===n||ml(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===n){if(10===e.length)return new Date(parseInt(sl(e,0,4)),parseInt(sl(e,5,2))-1,parseInt(sl(e,8,2)),12);if(19===e.length)return new Date(parseInt(sl(e,0,4)),parseInt(sl(e,5,2))-1,parseInt(sl(e,8,2)),parseInt(sl(e,11,2)),parseInt(sl(e,14,2)),parseInt(sl(e,17,2)))}else if(kl(e))return e;return!1}function Kd(e,n=""){ol(e)}function Vd(e,n=null,t=null){ol(n,t)}function $d(e,n,t=null,r=null){return!0}function Jd(...e){if(!e.length)return!1;for(let n of e)if("object"==typeof n&&!zl(n))return!1;return!0}let Qd=[];function Xd(e){if(rl(e)&&e){for(;"/"===sl(e,e.length-1);)e=sl(e,0,e.length-1);let n=e.lastIndexOf("/");if(n>0)return sl(e,0,n);if(0===n)return"/"}return""}function em(...e){if(!e.length)return!1;for(let n of e)if("[object Blob]"!=={}.toString.apply(n))return!1;return!0}function nm(e){if(e&&rl(e)){let n=e.split(".");if(n[0]&&n.length>1)return n[n.length-1].toLowerCase()}return""}function tm(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLCanvasElement))return!1;return!0}function rm(e,n,t=null){if(tm(n))return void n.toBlob(n=>{let t=document.createElement("a");t.download=e,t.href=window.URL.createObjectURL(n),t.className="bbn-no",t.click(),window.URL.revokeObjectURL(t.href)},t||"image/png");t?-1===t.indexOf("/")&&(t="text/"+t):t=ll(n)&&n.type?n.type:"octet/stream";let r=window.document.createElement("a");r.className="bbn-no";let i=null;if(rl(n))i=new Blob([n],{type:t});else try{i=n}catch(e){ol(e)}r.href=window.URL.createObjectURL(i),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}var im=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function am(){return im(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 om=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function sm(e){let n;return"checkbox"===e.type?e.checked?(n=e.value,n||(n=1)):n=0:"radio"===e.type?e.checked&&(n=e.value):n=e.value,n}function um(e){let n,t,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),i={};return hl(r,(e,r)=>{if(t=sm(e),void 0!==t&&!e.disabled){let r=e.name;if(-1===r.indexOf("[]")&&r.indexOf("[")>-1&&r.indexOf("]")>-1&&r.lastIndexOf("]")===r.length-1&&(r=td("][",".",r),r=td("[",".",r),r=td("]","",r)),r.length>2&&r.indexOf("[]")===r.length-2)n=sl(r,0,r.length-2),void 0===i[n]&&(i[n]=[]),i[n].push(t);else if(r.indexOf(".")>-1){let e,n=r.split(".");e=i;for(let r=0;r<n.length;r++)void 0===i[n[r]]&&(r<n.length-1?e[n[r]]={}:e[n[r]]=t),e=e[n[r]]}else i[r]=t}}),i}function cm(e){return e.filter((e,n,t)=>n===t.indexOf(e))}function lm(e,n=null){let t=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof n)for(;e=e.parentElement.closest(n);)t.push(e);else for(!0===n&&t.push(e);e=e.parentElement;)t.push(e);return t}function dm(e){0!==e.indexOf("--")&&(e="--"+e);let n=getComputedStyle(document.documentElement).getPropertyValue(e);return"string"==typeof n&&(n=n.trim()),n}function mm(){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 fm(){let e,n=window.getSelection();if(n.rangeCount>0){e=n.getRangeAt(0),ol("RANGE",e);let t=e.cloneContents();ol("clonedSelection",t);let r=document.createElement("div");return r.appendChild(t),r.innerHTML}return""}function hm(e){return rl(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function ym(e){let n=document.createElement("div");return n.innerHTML=e,e=n.innerText}function Mm(e){let n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),n}function gm(e){let n,t={};if(ll(e[0])&&1===e.length)return e[0];for(let r=0;r<e.length;r++)n=typeof e[r],n=n.toLowerCase(),al(e[r])?(t.errorFn&&!t.abortFn&&(t.abortFn=e[r]),t.successFn&&!t.errorFn?t.errorFn=e[r]:t.successFn||(t.successFn=e[r])):1===e[r]||!0===e[r]?t.force=!0:"string"===n?t.url?t.datatype=e[r]:(t.url=e[r],0===t.url.indexOf(bbn.env.root)&&(t.url=sl(t.url,bbn.env.root.length))):e[r]&&"object"===n&&(e[r]instanceof Event?t.e=e[r]:t.ele||1!==e[r].nodeType?"object"===n.toLowerCase()&&(t.obj=e[r]):t.ele=e[r]);return!t.url&&Pl(t)&&(t.url=bbn.env.path),void 0===t.obj&&(t.obj={_bbn:"public"}),t.datatype||(t.datatype="json"),t}function pm(e,n,t=null,r=!1){bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(sl(e,0,7))?e:bbn.env.root+e,bbn.env.path=sl(bbn.env.url,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e);let i=window.history;if(i){let e=i.state,a={url:bbn.env.path,old_path:bbn.env.old_path||null,data:t||{},reload:!1};e&&e.url===bbn.env.path&&(e.data&&yl(a.data,e.data),e.title&&!n&&(n=e.title),r=!0),n=n?ym(n):bbn.env.siteTitle,r?(a.reload=!0,i.replaceState(a,n,bbn.env.url)):i.pushState(a,n,bbn.env.url)}}function vm(...e){let n=gm(e),t=1;if(n){if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return n.e&&n.e.preventDefault(),document.location.hash=n.url.substring(1),!1;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout(()=>{bbn.env.ignoreUnload=!1},0),!1;if($l(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.e&&n.e.preventDefault(),n.successFn)t=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){let e=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==e.data?(yl(n.obj,e.data),t=1):t=e}if(t){1!==t&&"string"==typeof t&&(n.url=t);let e=bbn._("The Ajax call to")+" "+n.url+" ";return id(n.url,n.datatype,n.obj,t=>{t||ol(e+bbn._("returned no answer")),ll(t)&&(0===Object.keys(t).length&&ol(e+bbn._("returned an empty object")),t.new_url?(t.old_path=n.url,n.url=t.new_url):t.url&&n.url!==t.url&&(t.old_path=n.url)),Gd(n.url,t,n.successFn,null,n.ele)&&void 0===t.noNav&&0!==bbn.env.path.indexOf(n.url)&&pm(n.url,(t.title?t.title+" - ":"")+bbn.env.siteTitle)},n.errorFn||null)}}return!0}}function wm(){let e=bbn.env.width!==window.innerWidth,n=bbn.env.height!==window.innerHeight;if(e||n){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),n&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));let t=parseInt(dm("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<t?"small":"regular"),i=(document.body.className||"").split(" "),a=!1;hl(i,(e,n)=>{if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return a=!0,e!==r&&i.splice(n,1,r),!1}),a||i.push(r),bbn.fn.defaultResizeFunction(),document.body.className=i.join(" ")}}function bm(){return"mobile"===mm()}function _m(){return"tablet"===mm()}function Em(){return bm()||_m()}function Tm(e=!1){let n=(new Date).getTime();return e?Math.round(n/1e3):n}function Dm(e){const n=String(null!=e?e:"").split("-").filter(Boolean);if(!n.length)return{language:"und"};let t,r,i=n[0].toLowerCase();for(let e=1;e<n.length;e++){const i=n[e];t||4!==i.length?r||2!==i.length&&3!==i.length||(r=i.toUpperCase()):t=i[0].toUpperCase()+i.slice(1).toLowerCase()}return{language:i,script:t,region:r}}const Sm=globalThis.document?Promise.resolve().then(function(){return qm}):{};function Am(e){var n,t,r;const i=null!==(r=null!==(n=e.baseName)&&void 0!==n?n:null===(t=e.toString)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"und",{region:a}=Dm(i),o=a&&Sm[a]||{firstDay:1,weekend:[6,7],minimalDays:4};return{firstDay:o.firstDay,weekend:o.weekend.slice(),minimalDays:o.minimalDays}}function km(){!function(){if("undefined"==typeof Intl)return;if("function"!=typeof Intl.Locale){class e{constructor(e){const n=Array.isArray(e)?e[0]:e,t=String(null!=n?n:"und"),r=Dm(t);this._tag=t,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 Am(this)}get weekInfo(){return Am(this)}}Intl.Locale=e}const e=Intl.Locale.prototype;"function"!=typeof e.getWeekInfo&&(e.getWeekInfo=function(){return Am(this)}),Object.getOwnPropertyDescriptor(e,"weekInfo")||Object.defineProperty(e,"weekInfo",{configurable:!0,enumerable:!0,get(){return"function"==typeof this.getWeekInfo?this.getWeekInfo():Am(this)}})}()}var Cm=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function Pm(){return Cm(this,void 0,void 0,function*(){const e=[];"undefined"!=typeof Intl&&"function"==typeof Intl.RelativeTimeFormat||e.push((()=>Cm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return kg}),yield Promise.resolve().then(function(){return Pg})}))()),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((()=>Cm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Bp}),yield Promise.resolve().then(function(){return xp})}))()),e.length>0&&(yield Promise.all(e)),km()})}const Nm=()=>{bbn.env.last_focus=bbn.dt().unix()},zm=e=>{if(Nm(),"ajax"!==bbn.env.nav)return;let n=e.target;if(n instanceof HTMLElement&&"A"!==n.tagName){let e=n;for(;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentElement;n=e&&"A"===e.tagName?e:null}n instanceof HTMLElement&&n.hasAttribute("href")&&!n.hasAttribute("target")&&!n.classList.contains("bbn-no")&&(ol("Link clicked: "+n.getAttribute("href")),vm(n.getAttribute("href"),e))};function Hm(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||ml(sl(e,0,1)))){let n=document.createElement("div");n.style.width=e;let t=!!n.style.width.length;return n.remove(),t}return!1}function Im(...e){if(!e.length)return!1;for(let n of e)if(!rl(n)||!bbn.var.regexp.ip.test(n))return!1;return!0}function Fm(...e){if(!e.length)return!1;for(let n of e)if("[object Symbol]"!=={}.toString.apply(n))return!1;return!0}function Om(e){const n=["BBN: "+e];n.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),ol.apply(this,n)}function Lm(e,n="",t=null){let r=new FormData,i=(e,n="")=>{(!t||dl(t)&&!t.includes(n))&&(e instanceof File?r.append(n,e):dl(e)?hl(e,(e,t)=>{i(e,n+"["+t+"]")}):ll(e)&&Object.keys(e).length?cl(e,(t,r)=>{r in e&&i(t,n?n+"["+r+"]":r)}):zl(e)||void 0===e||r.append(n,e))};return i(e,n),r}function Gm(e){return"string"==typeof e?document.querySelector(e):e}function Bm(...e){let n=gm(e);if(n.url)return id(n.url,n.datatype,n.obj,e=>{Gd(n.url,e,n.successFn,n.errorFn,n.ele)},n.errorFn,n.abortFn)}function xm(e,n,t,r){if("object"==typeof e&&"string"==typeof n){let i=e;const a=n.split(".");hl(a,(e,n)=>{if(!i){if(!r)throw new Error(bbn._("The object is invalid"));i={}}a.length-1===n?i[e]=t:i=i[e]})}}function Rm(e,n){return Math.floor(Math.random()*(n-e+1)+e)}function jm(e,n=" "){if(" "===n)return e.trim();if(!n)return e;if(n===e)return"";for(;0===e.indexOf(n);)e=sl(e,n.length);for(;e.lastIndexOf(n)===e.length-n.length;)e=sl(e,0,e.length-n.length);return e}function Zm(e,n,t){return"string"==typeof e.toLowerCase()&&(n||(n=bbn.var.shortenLen),void 0!==t&&rl(t)||(t="..."),e.length>n&&(e=sl(e,0,n)+t)),e}var Um={_addLoader:Dl,_compareValues:Cl,_deleteLoader:Vl,abort:function(e){let n=$l(e);(null==n?void 0:n.aborter)&&n.aborter.abort("Operation canceled by the user.")},abortURL:function(e){hl(Jl(bbn.env.loaders,{url:e}),n=>{if(!n||!n.source)throw new Error("Impossible to find the loader with URL "+e);n.source.cancel("Operation canceled by the user.")})},addColors:Ql,addInputs:Xl,addStyle:function(e,n){ll(n)&&cl(n,(n,t)=>{e.style[t]=n})},adjustHeight:function(){let e=arguments;return 1===e.length&&fl(e[0])&&(e=e[0]),ed("height",e)},adjustSize:ed,adjustWidth:function(){let e=arguments;return 1===e.length&&fl(e[0])&&(e=e[0]),ed("width",e)},ajax:id,analyzeFunction:jl,animateCss:function(e,n,t){e.classList.add("animated"),e.classList.add(n),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function e(r){r.target.removeEventListener(r.type,e),"function"==typeof t&&t.call(this),r.target.classList.remove(n)})},arrayBuffer2String:od,arrayFromProp:function(e,n){let t=[];return hl(e,(e,r)=>{t.push(Sl(e,n))}),t},autoExtend:function(e,n){bbn[e]||(bbn[e]={}),yl(bbn[e],n)},baseName:sd,br2nl:function(e){return td("<br />","\n",td("<br/>","\n",td("<br>","\n",e)))},calendar:function(e,n=!1){let t=Od(e);return t.isValid?t.calendar():n&&rl(n)?n:""},callback:Gd,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,function(e,n,t,r){return t?t.toUpperCase():n.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 n=new Image;return n.src=e.toDataURL("image/png"),n},cast:function(e){var n;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(n=e.constructor)||void 0===n?void 0:n.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){let n=e.parentNode,t=n.clientWidth,r=n.clientHeight;for(;n&&(!t||!r);)n=e.parentNode,t=n.clientWidth,r=n.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+n.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+n.scrollLeft)+"px",e},checkProps:function(e,n,t=!1){return Bd(e,n,t).result},checkPropsDetails:Bd,checkPropsOrDie:function(e,n,t=!1){let r=Bd(e,n,t);if(r.error)throw new Error(r.error);return!0},checkType:Rd,circularReplacer:function(){const e=new WeakSet;return(n,t)=>{if("object"==typeof t&&null!==t){if(e.has(t))return;e.add(t),[void 0,Object,Array,null].includes(t.constructor)||(t=Ol(t)?t.bbnId?"__BBN_DOM__"+t.tagName+"/"+t.bbnId+t.bbnHash:"__BBN_DOM__"+t.tagName+"/"+t.className:Gl(t)?"__BBN_CP__"+t.$options.name+"/"+t.$cid:t.constructor.toString())}return t}},clone:jd,colorToHex:function(e){let n=document.createElement("canvas").getContext("2d");return n.fillStyle=e,n.fillStyle},compare:Ul,compareConditions:Yl,copy:function(e,n){return new Promise(t=>{if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?(navigator.clipboard.write([new ClipboardItem({[e.type.toString()]:e})]).then(()=>{t(!0)}),n||Zd(e,e.type.toString())):ll(e)&&al(e.toBlob)?e.toBlob(r=>{const i=new ClipboardItem({[r.type.toString()]:r});navigator.clipboard.write([i]).then(()=>{n||Zd(e,r.type.toString()),t(!0)})}):(navigator.clipboard.writeText(e),n||Zd(e),t(!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),n||Zd(e),t(!0)}t(!1)})},correctCase:xd,count:function(e,n,t=null,r="="){return Ud(e,n,t,r).length||0},crc32:function(e){let n=~0;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);n=n>>>8^Yd[255&(n^r)]}return(-1^n)>>>0},createObject:qd,cssExists:function(e){let n,t,r=document.styleSheets;for(let i=0;i<r.length;i++){n=1;try{t=r[i].rules||r[i].cssRules}catch(e){if(n=!1,"SecurityError"!==e.name)throw e}if(n)for(let n=0;n<t.length;n++)if(new RegExp("(^|\\s)"+nd(e)+"(\\{|\\s)","g").test(t[n].selectorText))return!0}return!1},data2Html:function e(n,t=""){const r=!dl(n);let i='<ul class="bbn-bottom-xspadding '+(t||"bbn-ul")+'">';for(let a in n)i+="<li>",r&&(i+="<em>"+a+"</em>: "),n[a]&&(dl(n[a])||ll(n[a]))?i+=e(n[a],t):i+=null===n[a]?"<em>null</em>":n[a].toString?n[a].toString():n[a],i+="</li>";return i+='</ul><div class="bbn-bottom-xspadding '+(t||"bbn-div")+'"></div>',i},date:Wd,dateSQL:function(e,n){let t=Od(e);if(t)return t.format("YYYY-MM-DD"+(n?"":" HH:mm:ss"))},deepPath:function e(n,t,r,i=[]){let a;return(a=Wl(n,t,0))>-1?(i.push(a),i):(hl(n,(n,a)=>{if(dl(n[r])){let o=i.slice();o.push(a);let s=e(n[r],t,r,o);if(!1!==s)return s}}),!1)},defaultAjaxAbortFunction:Kd,defaultAjaxErrorFunction:Vd,defaultAlertFunction:function(e,n=null){alert(e)},defaultConfirmFunction:function(e,n,t=null){let r=0;confirm(e)&&al(n)&&(n(),r=1),!r&&al(t)&&t()},defaultEndLoadingFunction:$d,defaultErrorFunction:function(e){ol(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,n){return!0},defaultPostLinkFunction:function(e,n=null){return!0},defaultPreLinkFunction:function(e,n=!1,t=null){return ol("defaultPreLinkFunction",e,n,t),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,n,t,r){return!0},deleteProp:function(e,n){Rd(e,"object",bbn._("The obj must be an object in setProp")),Rd(n,"string",bbn._("The prop must be a string in setProp")),delete e[n]},diffObj:function e(n,t,r=!1,i=!1){i||(Qd=[]);let a="unchanged";void 0===i&&(i=!1);let o=qd();if(!al(n)&&!al(t)){if(Jd(n)||Jd(t)){let e=(s=n)===(u=t)||kl(s)&&kl(u)&&s.getTime()===u.getTime()?a:void 0===s?"created":void 0===u?"deleted":"updated";if(r||e!==a){let r=qd();return Object.defineProperty(r,"type",{value:e,enumerable:!1}),Object.defineProperty(r,"data",{value:void 0===n?t:n,enumerable:!1}),Object.defineProperty(r,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==n&&Object.defineProperty(r,"newData",{value:t,enumerable:!1}),r}return!1}if(Ol(n)||Ol(t))return!1;if(Qd.includes(n)||Qd.includes(t))return!1;Qd.push(n,t);for(let i in n){if(al(n[i]))continue;let a;void 0!==t[i]&&(a=t[i]);let s=e(n[i],a,r,!0);s&&(o[i]=s)}for(let i in t){if(al(t[i])||void 0!==n[i])continue;let a=e(void 0,t[i],r,!0);a&&(o[i]=a)}}var s,u;return!(i&&!r&&!Pl(o))&&o},dirName:Xd,download:function(e,n="",t=null){return n&&"object"==typeof n&&(t=n,n=""),id(e,"blob",t||{_bbn_download:1},(t,r)=>{if(!n){let t="content-disposition",i="attachment; filename=";n=(null==r?void 0:r[t])&&0===r[t].indexOf(i)?sl(r[t],i.length+1,r[t].length-i.length-2):sd(e)}if(em(t)){let e=nm(n),r=["php","html"];if("string"==typeof n&&("type"in t&&"text/html"!==t.type||r.includes(e)))return void rm(n,t)}},e=>{bbn.fn.defaultAjaxErrorFunction(e)})},downloadContent:rm,each:hl,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Ld,escapeDquotes:function(e){return rl(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:nd,escapeSquotes:function(e){return rl(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return rl(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,n){let t="";e.match("^(http|https)://")&&(t+="http","s"===(e=e.substring(4)).substr(0,1)&&(t+="s",e=e.substring(1)),t+="://",e=e.substring(3)),hl(Xd(e).split("/"),e=>{t+=encodeURIComponent(e)+"/"});let r=sd(e),i="?",a="";if(r.indexOf(i)){let e=r.split("?");i="&",a="?"+e[1],r=e[0]}return n&&rl(n)?(n.match("^(\\&|\\?)")&&(n=n.substring(1)),n=i+n):n="",t+encodeURIComponent(r)+a+n},executeSlowly:function(e,n){return om(this,void 0,void 0,function*(){for(let t=0;t<e.length;t++){yield am();let r=n(e[t],t);if(r instanceof Promise&&(r=yield r),!1===r)return!1}return!0})},extend:yl,extendOut:function e(...n){let t=null;for(let r of n){if(!ll(r))throw new Error("Each argument for extendOut must be an object, "+typeof r+" given");if(null===t)t=r;else for(let n in r)ll(t[n],r[n])?e(t[n],r[n]):void 0===t[n]&&(t[n]=r[n])}return t},fdate:function(e,n=!1){let t=Od(e),r=!1;return!0===n&&(r=!0),t.isValid?t.fdate(!1,r):n&&rl(n)?n:""},fdatetime:function(e,n=!1){let t=Od(e);return t.isValid?t.fdate(!1,!0):n&&rl(n)?n:""},fieldValue:sm,fileExt:nm,filter:Ud,filterToConditions:ql,findAll:function e(n,t,r,i=[]){let a,o=0;for(;(a=Wl(n,t,o))>-1;)i.push(n[a]),o=a+1;return hl(n,n=>{dl(n[r])&&e(n[r],t,r,i)}),i},firstVarElement:function(e){const n=e.indexOf("["),t=e.indexOf(".");return-1===n&&-1===t?e:-1===n?e.substring(0,t):-1===t?e.substring(0,n):e.substring(0,Math.min(n,t))},fori:function(e,n,t=e.length-1,r=0){if(dl(e)){let i=e.length-1;ml(t)&&0<t&&t<=i||(t=i),(!ml(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=r;i<=t;i++)if(!1===n(e[i],i))return}},forir:function(e,n,t=e.length-1,r=0){if(dl(e)){let i=e.length-1;ml(t)&&0<t&&t<=i||(t=i),(!ml(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=t;i>=r;i--)if(!1===n(e[i],i))return}},format:function(e){let n=Array.prototype.slice.call(arguments,1);if(n.length){let t=0;return e.replace(/\%([d|s])/g,(e,r)=>{let i=n[t++];return Rd(i,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),i})}return e},formatBytes:function(e,n=2){if(!e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(n<0?0:n))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},formatDate:function(e,n){const t=Od(e);return t.isValid?t.format(n):""},formatSize:function(e,n){return ml(e)?e+"px":rl(e)?e:!n&&"auto"},formdata:um,fphone:function(e){var n;if(ml(e)&&(e=e.toString()),rl(e)){const t=(null===(n=bbn.var)||void 0===n?void 0:n.phoneCodes)||[];let r="",i="",a="";if(t.length&&hl(t,n=>{e.startsWith(n.prefix)&&n.prefix.length>i.length&&(i=n.prefix,a=n.mask||"")}),!a.length&&e.startsWith("+")){i.length||(i=e.substr(0,3));const n=e.slice(i.length);for(let e=0;e<n.length;e++)e+1<=n.length&&e%2==0&&(a+="0"+(n[e+1]?"0":"")+" ");a=a.trim()}if(a.length){i.length&&(r=i+" ",e=e.slice(i.length));let n=0;return r+=a.replace(/[0-9]/g,()=>e[n++]||""),r}}return e},fromXml:function(e,n){let t=null;if(window.DOMParser)t=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if(t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async=!1,!t.loadXML(e))throw t.parseError.reason+" "+t.parseError.srcText}function r(e,t){if("#text"==e.nodeName){let n=e.nodeValue;return void(n.trim()&&(t["#text"]=n))}let i={},a=t[e.nodeName];if(a?Array.isArray(a)?t[e.nodeName].push(i):t[e.nodeName]=[a,i]:n&&-1!=n.indexOf(e.nodeName)?t[e.nodeName]=[i]:t[e.nodeName]=i,e.attributes)for(let n of e.attributes)i[n.nodeName]=n.nodeValue;for(let n of e.childNodes)r(n,i)}let i={};for(let e of t.childNodes)r(e,i);return i},ftime:function(e,n){let t=Od(e);return t.isValid?t.ftime():n&&rl(n)?n:""},getAllTags:function(){return cm(Array.prototype.map.apply(document.all,[e=>e.tagName.toLowerCase()]))},getAncestors:lm,getAttributes:function(e){e.getAttributeNames||Ld("The element is not a proper HTML Element");let n=Object.create(null);return e.getAttributeNames().forEach(t=>{n[t]=e.getAttribute(t)}),n},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 n=e+"=",t=document.cookie.split(";");for(let e=0;e<t.length;e++){let r=t[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(n)){let e=r.substring(n.length,r.length);if(e)return JSON.parse(unescape(e)).value}}return null},getCssVar:dm,getDay:function(e){let n=Wd(e);if(n){let e=n.getTime(),r=n.getYear(),i=365*(r-1970);n.getMonth()<2&&r--;for(var t=1972;t<=r;t+=4)i++;return i+Math.floor(e/864e5)}return!1},getDeviceType:mm,getEventData:function(e){let n=e.dataTransfer||e.clipboardData,t=n.getData("Text"),r={raw:t,files:[],str:[]},i=new Promise((i,a)=>{let o=!(n instanceof DataTransfer);if(!t&&"copy"===e.type){let e=window.getSelection();r.raw=e.toString();let n=fm();r.str.push({type:"text/plain",data:r.raw}),n!==r.raw?r.str.push({type:"text/html",data:n}):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>"}),o=!0,i(r)}if(!o){let e=[],t=n.items.length;hl(n.items,(a,s)=>{let u=a.kind,c=a.type;if("file"===u){let u=n.files[s];if(!c&&u.name){let e=u.name.split(".");c=e[e.length-1]}let l=u?u.name:bbn._("untitled"),d=u?u.size:null,m=u?u.lastModified:null,f=a.getAsFile();f?(o=!0,t--,r.files.push({type:c,data:f,name:l,size:d,mdate:m}),e.push(l),t||(r.raw||(r.raw=e.join(", ")),i(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+l)}else o=!0,a.getAsString(n=>{t--,r.str.push({type:c,data:n}),"text/plain"===c&&e.push(name),t||(r.raw||(r.raw=e.join(", ")),i(r))})})}o||setTimeout(()=>{i(r)})});return i},getField:function(e,n,t="",r=null,i="=",a=0,o=!1,s=void 0){let u;return t&&["object","function"].includes(typeof t)&&6 in arguments&&(s=o),n?(u=Kl(e,t,r,i,a,o,void 0),void 0===u?s:u[n]):s},getFieldValues:function(e,n,t,r,i){Rd(n,"string"),t&&(e=Jl(e,t,r,i));let a=[];return hl(e,e=>-1===a.indexOf(e[n])?a.push(e[n]):null),a},getFileContent:function(){let e,n,t="",r="text";bbn.fn.each(arguments,i=>{"string"==typeof i?["binary","text"].includes(i.toLowerCase())?r=i.toLowerCase():t||(t=i,"image"===t&&(t="image/*")):bbn.fn.isFunction(i)&&(e?n||(n=i):e=i)});let i=document.createElement("input");i.type="file",t&&i.setAttribute("accept",t),i.onchange=function(t){var a;const o=null===(a=i.files)||void 0===a?void 0:a[0];if(!o)return;const s=new FileReader;"binary"===r?s.readAsArrayBuffer(o):s.readAsText(o,"UTF-8"),s.onload=function({target:n}){e&&e(null==n?void 0:n.result)},s.onerror=function(){n&&n("error reading file")}},i.click()},getIndex:function(e,n=""){return e.parentElement?(n||Array.from(e.parentElement.children).indexOf(e),Array.from(e.parentElement.children).filter(e=>e.matches(n)).indexOf(e)):-1},getHtml:function(e,n=!1){let t=e.innerHTML();return n&&(t=hm(t)),t.trim()},getHTMLOfSelection:fm,getLoader:$l,getPath:Ll,getProp:function(e,n){return Rd(e,"object",bbn._("The obj must be an object in setProp")),Rd(n,"string",bbn._("The prop must be a string in setProp")),e[n]},getProperty:Sl,getRequestId:rd,getRow:Kl,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 n=e.offsetWidth;e.style.overflow="scroll";let t=document.createElement("div");t.style.width="100%",e.appendChild(t);let r=t.offsetWidth;e.parentNode.removeChild(e);let i=n-r;bbn.env.scrollBarSize=i?i+1:0}return bbn.env.scrollBarSize},getSortingMoves:function(e,n){if(e.length!==n.length)throw new Error("Lengths must match.");const t=new Set(n);if(t.size!==n.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!==t.size||Array.from(r).some(e=>!t.has(e)))throw new Error("Arrays must contain the same unique values.");const i=new Map(n.map((e,n)=>[e,n])),a=e.map(e=>i.get(e)),o=(e=>{const n=e.length,t=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){let n=e[i],a=0,o=t.length;for(;a<o;){const r=a+o>>1;e[t[r]]<n?a=r+1:o=r}a>0&&(r[i]=t[a-1]),t[a]=i}const i=[];for(let e=t.length?t[t.length-1]:-1;-1!==e;e=r[e])i.push(e);return i.reverse()})(a),s=new Set(o.map(n=>e[n])),u=Array(n.length).fill(-1);for(let e=n.length-2;e>=0;e--)u[e]=u[e+1],s.has(n[e+1])&&(u[e]=e+1);const c=e.slice(),l=new Map(c.map((e,n)=>[e,n])),d=[];for(let e=0;e<n.length;e++){const t=n[e];if(s.has(t))continue;const r=l.get(t);if(void 0===r)throw new Error("Inconsistent state");const i=u[e],a=-1!==i?l.get(n[i]):c.length;if(void 0===a)throw new Error("Inconsistent state");const o=r<a?a-1:a;if(r!==o){const[e]=c.splice(r,1);c.splice(o,0,e),d.push({from:r,to:o,value:t}),l.clear();for(let e=0;e<c.length;e++)l.set(c[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;"}),ol.apply(this,e),this},hash:xl,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 n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},history:function(){return window.history||!1},html2text:ym,imageToCanvas:Mm,imgToBase64:function(e,n="image/png"){return Mm(e).toDataURL(n)},info:function(...e){return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),ol.apply(this,e),this},init:function(e,n){var t,r;let i;bbn.env.isInit||(bbn.env.root=(null===(r=null===(t=globalThis.document)||void 0===t?void 0:t.baseURI)||void 0===r?void 0:r.length)?globalThis.document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==sl(bbn.env.root,-1)&&(bbn.env.root+="/"),"object"==typeof e&&yl(!0,bbn,e),bbn.env.path=sl(bbn.env.url,bbn.env.root.length),i=bbn.env.path.split("/"),hl(i,e=>{""!==(e=decodeURI(e.trim()))&&bbn.env.params.push(e)}),Pm(),globalThis.document&&(bbn.var.colors&&Ql(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=Tm()}),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=Tm()}),document.addEventListener("click",zm),document.addEventListener("keydown",zm),document.addEventListener("focusin",Nm),document.addEventListener("focusout",Nm),window.addEventListener("hashchange",()=>{bbn.env.hashChanged=(new Date).getTime()},!1),window.addEventListener("resize",()=>{wm()}),window.addEventListener("orientationchange",()=>{wm()}),wm(),Em()&&(document.body.classList.add("bbn-mobile"),_m()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){let n=window.history;if(!bbn.env.historyDisabled&&n&&bbn.fn.defaultHistoryFunction(n.state)){let e=n.state;e?vm(e.url,yl({title:e.title||bbn.env.siteTitle},e.data||{})):e&&e.data&&al(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&&ol("Logging in bbn is enabled"))},isActiveInterface:function(e=600){return!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:dl,isBlob:em,isBoolean:function(...e){if(!e.length)return!1;for(let n of e)if(![!0,!1].includes(n))return!1;return!0},isCanvas:tm,isColor:function(...e){if(!e.length)return!1;var n=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 t of e){if(!rl(t))return!1;if(!n.test(t))return!1}return!0},isComment:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Comment))return!1;return!0},isCp:Gl,isDataURL:function(...e){if(!e.length)return!1;for(let n of e)if(!/^data:([a-z]+\/[a-z0-9\-\+\.]+(;[a-z\-]+\=[a-z0-9\-\.]+)?)?(;base64)?,/i.test(n))return!1;return!0},isDate:kl,isDesktopDevice:function(){return"desktop"===mm()},isDimension:function(...e){if(!e.length)return!1;for(let n of e){if("number"!=typeof n||n<0)return!1;if(!Hm(n))return!1}return!0},isDom:Ol,isEmail:function(...e){if(!e.length)return!1;let n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;for(let t of e){if(!rl(t))return!1;if(!n.test(t))return!1}return!0},isEmpty:Nl,isEvent:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Event))return!1;return!0},isFocused:function(e,n=!1){return e===document.activeElement||n&&e.contains&&e.contains(document.activeElement)},isFunction:al,isHex:function(e){return Boolean(e.match(/^(0x)?[0-9a-f]+$/i))},isHostname:function(...e){if(!e.length)return!1;for(let n of e){if(!rl(n))return!1;if(!Im(n)&&!bbn.var.regexp.hostname.test(n))return!1}return!0},isInside:function(e,n){let t=lm(e);if(t.length){if(rl(n)){let e=!1;return hl(t,t=>{if(t.matches&&t.matches(n))return e=!0,!1}),e}if(n instanceof HTMLElement)return t.indexOf(n)>-1}return!1},isInt:il,isInViewport:function(e,n=!1){const t=e.getBoundingClientRect();if(n)return t.top>=0&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight);const r=e.offsetHeight,i=e.offsetWidth;return t.top>=-r&&t.left>=-i&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Im,isIterable:fl,isMobile:Em,isMobileDevice:bm,isNotObject:Jd,isNull:zl,isNumber:ml,isObject:ll,isPercent:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^\d+(?:\.\d+)?%$/))return!1;return!0},isPrimitive:dd,isPromise:function(...e){if(!e.length)return!1;for(let n of e)if("[object Promise]"!=={}.toString.apply(n))return!1;return!0},isPropSize:function(e){let n=!1;return hl(["width","height","gap","margin","padding","top","left","right","bottom"],t=>{if(-1!==e.indexOf(t))return n=!0,!1}),n},isSame:Zl,isSQLDate:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.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:rl,isSymbol:Fm,isTabletDevice:_m,isURL:function(...e){if(!e.length)return!1;for(let n of e)if(!bbn.var.regexp.url.test(n))return!1;return!0},isUid:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^[0-9a-f]{32}$/i))return!1;return!0},isValidDimension:Hm,isValidName:function(...e){if(!e.length)return!1;for(let n of e)if(!rl(n)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(n))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 n of e)if(!n||"function"!=typeof n.render)return!1}else for(let n of e)if(!(n 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,n){let t;for(;e&&(t=Object.getOwnPropertyDescriptor(e,n),!t);)e=Object.getPrototypeOf(e);return!t||Boolean(t.writable||t.set)},iterate:cl,lightenDarkenHex:function(e,n){if(e&&n){let t="#"===e[0];e=t?e.slice(1):e;let r=parseInt(e,16),i=(r>>16)+n,a=(r>>8&255)+n,o=(255&r)+n;return i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),o>255?o=255:o<0&&(o=0),(t?"#":"")+(o|a<<8|i<<16).toString(16)}},link:vm,log:ol,makeReactive:function e(n,t,r,i){const a=(null==r?void 0:r.$cid)||"",o="__bbn_"+(a?a+"_":"");if(n&&"object"==typeof n&&[void 0,Object,Array].includes(n.constructor)){if(n.__bbnIsProxy&&n.__bbnParent===r)return n;r&&r.$options&&"bbn-loadbar"===r.$options.name&&ol(["MAKING bbn-loadbar",n]),n.__bbnWatchers||Reflect.defineProperty(n,"__bbnWatchers",{value:qd(),writable:!0,configurable:!0,enumerable:!1});return new Proxy(n,{get(s,u){const c=Reflect.get(s,u),l=s.__bbnRoot||s;if(Fm(u))return Reflect.get(l,u);const d=i?i+"."+u:u,m=o+(ml(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&dl(s))return function(...e){let n=l[u](...e);return Om("DOING ARRAY STUFF"),ol(s.__bbnParent),t(s,"length",r),n};if(al(c))return c;if("__bbnRoot"===u){let e=n;for(;e&&(null==e?void 0:e.__bbnTarget);)e=e.__bbnTarget;return e}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&dl(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(m in l||Reflect.defineProperty(l,m,{value:e(c,t,r,d),writable:!0,configurable:!0,enumerable:!1}),l[m].__bbnIsProxy&&!l.__bbnWatchers[a]&&(l.__bbnWatchers[a]=d)),l[m]):c)},set(n,s,u){if(Fm(s))return Reflect.get(n,s,u);const c=n.__bbnRoot||n,l=i?i+"."+s:s;if(Fm(s))return Reflect.get(n,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&ol(["Setting proxy prop in "+r.$options.name,n,s,u]),!Zl(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){const n=o+(ml(s)?s.toString():s);Reflect.defineProperty(c,n,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1}),c[n].__bbnIsProxy&&!c.__bbnWatchers[a]&&(c.__bbnWatchers[a]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&ol(["Setting proxy prop in "+r.$options.name+" "+(ml(s)?s.toString():s),u,n]),Reflect.set(c,s,u),t(n,s,r)}return!0},defineProperty(n,a,s){const u=n,c=i?i+"."+a:a;if("__bbnWatchers"===a||Fm(a)||0===a.indexOf("__bbn_"))Reflect.defineProperty(u,a,s);else{const n=o+(ml(a)?a.toString():a);Reflect.defineProperty(u,n,{value:e(s.value,t,r,c),writable:!0,configurable:!0,enumerable:!1})}return t(n,a,r),!0},deleteProperty(e,n){const t=e;if(0===n.indexOf("__bbn_"))Reflect.deleteProperty(t,n);else{const r=o+(ml(n)?n.toString():n);Reflect.deleteProperty(t,r),Reflect.deleteProperty(e,n)}return!0}})}return n},map:function e(n,t,r,i=0){return n.map((n,a)=>(n=t(n,a,i),r&&n[r]&&dl(n[r])&&(n[r]=e(n[r],t,r,i+1)),n))},md5:Rl,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,n,t,r,i,a,o){if(i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),t||(t=void 0===t&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),n||(n=!(void 0!==n||!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),ml(o)||(o=n?3:0),0===e&&"number"==typeof o&&o>0){let r=e.toFixed(o).replace(".",i);return t&&(r+=" "+(n?"K"+t:t)),r}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(t?" "+t:"");if("string"==typeof e&&(e=Number(e)),"number"!=typeof e)throw new Error("The value must be a number");n&&e&&(e/=1e3,t&&(t="K"+t));let s=e.toFixed(o),u=0,c=1e4;return s&&(c=s.indexOf("."),c<=0?c=1e4:u=s.length-c),s.replace(/./g,function(e,n,t){return"."===e?i:n&&(t.length-n-u)%3==0&&n<c?a+e:e})+(t?" "+t:"")},move:function(e,n,t){if(t>=e.length){let n=t-e.length;for(;1+n--;)e.push(void 0)}return e.splice(t,0,e.splice(n,1)[0]),e},multiorder:function(e,n){if(!n)return e;let t;if(Array.isArray(n)||"object"!=typeof n)t=n;else for(var r in t=[],n)t.push({field:r,dir:n[r]});if(!Array.isArray(t))throw new Error("The orders argument must be an array");return e.slice().sort((e,n)=>{let r;for(let i of t)if(r=Cl(e,n,i.field,i.dir),0!==r)return r;return 0})},mutateArray:function(e,n,t=null){if(!dl(e,n))throw new TypeError("mutateArray can only be called with arrays");t?Rd(t,"function","The hash function must be a function"):t=xl;const r=new Map(n.map(e=>[t(e),e]));let i=[];n.forEach(e=>{i.push(e)});let a=e.length;for(;a--;)r.has(t(e[a]))||e.splice(a,1);for(let n=0;n<i.length;n++)if(n>=e.length||!Zl(e[n],i[n])){const t=Wl(e,i[n]);if(-1!==t){const[r]=e.splice(t,1);e.splice(n,0,r)}else e.splice(n,0,i[n])}return e.length>i.length&&e.splice(i.length,e.length-i.length),e},mutateObject:function(e,n,t){if(!ll(e,n))throw new TypeError("mutateObject can only be called with objects parameters");t?Rd(t,"function","The hash function must be a function"):t=xl;const r=Object.keys(n);for(let n in e)r.includes(n)||delete e[n];return r.forEach(t=>{Zl(e[t],n[t])||(e[t]=n[t])}),e},nl2br:function(e,n){return td("\n","<br>"+(n?"\n":""),e)},numProperties:Pl,objectToFormData:Lm,order:function(e,n,t="asc"){return e?e.sort(function(e,r){return Cl(e,r,n,t)}):e},outerHeight:function(e){if((e=Gm(e))&&"offsetHeight"in e){let n=window.getComputedStyle(e),t=parseFloat(n.marginTop)+parseFloat(n.marginBottom);return Math.ceil(e.offsetHeight+t)}},outerWidth:function(e){e=Gm(e);let n=window.getComputedStyle(e),t=parseFloat(n.marginLeft)+parseFloat(n.marginRight);return Math.ceil(e.offsetWidth+t)},percent:function(e,n){return n/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Bm,postOut:function(e,n,t=null,r=""){let i=document.body.querySelector("form#bbn-form_out");i||(i=document.createElement("form"),i.classList.add("bbn-no"),i.setAttribute("id","bbn-form_out"),i.setAttribute("method","post"),i.setAttribute("enctype","multipart/form-data-encoded"),xm(i,"style.display","none"),document.body.appendChild(i)),i instanceof HTMLFormElement&&(i.innerHTML="",i.setAttribute("action",e),i.setAttribute("target",r||"_blank"),n||(n={}),(n=qd(n)).bbn||(n.bbn="public"),Xl(i,n),i.submit(),t&&t())},printf:function(e){var n=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,t){return void 0!==n[t]?n[t]:e})},quotes2html:function(e,n){return n&&0!==n.toLowerCase().indexOf("s")||(e=td("'","&#39;",e)),n&&0!==n.toLowerCase().indexOf("d")||(e=td('"',"&quot;",e)),e},randomInt:Rm,randomString:function(e,n,t){let r,i,a={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};t||(t="nlu"),e||(r=Rm(8,14)),"string"==typeof n?(t="n",delete a.l,delete a.u,a.n=n,r||(r=e)):"number"==typeof n&&e<n?r=Rm(e,n):e&&(r=e);let o="";for(let e=0;e<r;e++)0===e?"n"!==t&&(i=-1===t.indexOf("u")?"l":"u"):i=t[Math.floor(Math.random()*t.length)],o+=a[i][Math.floor(Math.random()*a[i].length)];return o},range:function(e,n,t){return Array.from({length:(n-e)/t+1},(n,r)=>e+r*t)},removeAccents:Al,removeEmpty:function(e){var n=[];if(dl(e))for(let t=0;t<e.length;t++){let r=!1;e[t]&&(dl(e[t])?e[t].length&&(r=!0):ll(e[t])?Pl(e[t])&&(r=!0):r=!0),r&&n.push(e[t])}return n},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:hm,removePrivateProp:ul,removeTrailingChars:function(e,n){if(n||(n=" "),n.length){for(;sl(e,-n.length)===n;)e=sl(e,0,e.length-n.length);for(;sl(e,0,n.length)===n;)e=sl(e,n.length)}return e},repeat:function(e,n){return e.repeat(n)},replaceAll:td,replaceSelection:function(e,n){let t,r,i;if(t=window.getSelection(),t.getRangeAt&&t.rangeCount){if(r=window.getSelection().getRangeAt(0),r.deleteContents(),r.createContextualFragment)i=r.createContextualFragment(e);else{const n=document.createElement("div");let t;for(n.innerHTML=e,i=document.createDocumentFragment();t=n.firstChild;)i.appendChild(t)}const a=i.firstChild,o=i.lastChild;r.insertNode(i),t.removeAllRanges(),n?(a&&(r.setStartBefore(a),r.setEndAfter(o)),t.addRange(r)):(r.setStartAfter(o),t.addRange(r))}},resize:wm,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,n,t=!1){return cl(e,n,t,!0)},roundDecimal:function(e,n){return Number(Math.round(parseFloat(e+"e"+n+"e-"+n)))},sanitize:function(e,n="_"){let t=["[","]","{","}","(",")","-","+","*","/"],r="[";for(let e=0;e<n.length;e++)t.includes(n[e])&&(r+="\\"),r+=n[e];r+="]+";let i=new RegExp(r,"g");return jm(Al(e).replace(/[^a-z0-9]/gi,n).replace(i,n),n)},search:Wl,selectElementText:function(e,n=null){if(n=n||window,e instanceof HTMLInputElement)return void e.select();let t,r,i=n.document;n.getSelection&&i.createRange?(t=n.getSelection(),r=i.createRange(),r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r)):"createTextRange"in i.body&&"function"==typeof i.body.createTextRange&&(r=i.body.createTextRange(),r.moveToElementText(e),r.select())},selector:Gm,setCookie:function(e,n,t){let r="";if(t){let e=new Date;e.setTime(e.getTime()+24*t*60*60*1e3),r="; expires="+e.toUTCString()}let i=escape(JSON.stringify({value:n}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,n){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,n)},setNavigationVars:pm,setProp:function(e,n,t,r=!0,i=!0){Object.defineProperty(e,n,{value:t,writable:r,configurable:i})},setProperty:xm,shorten:Zm,shortenObj:function e(n,t=100){let r=jd(n);return hl(r,(n,i)=>{rl(n)&&n.length>t?r[i]=Zm(n,t):n&&"object"==typeof n&&(r[i]=e(n))}),r},shuffle:function(e){let n,t=e.length;for(;0!=t;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},simpleHash:Fl,simpleHash1:Hl,simpleHash2:Il,startChrono:function(e){let n=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"]=n,e},stopChrono:function(e,n){if(this.constructor.chronos[e||"default"]){let t=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],n&&(t=Math.round(t)/1e3),t}throw Error("No chrono with name "+(e||"default"))},stream:function(e,n,t,r,i,a){const o=rd(e,t,"json"),s=$l(o);if(null==s?void 0:s.loader)return s.loader;t||(t={}),bbn.env.token&&(t._bbn_token=bbn.env.token);const u=new AbortController;let c="";const l=e=>{if(e.length){e=e.indexOf("\n")>-1?bbn.fn.removeEmpty(e.split("\n")):[e];for(let t in e)try{const r=JSON.parse(e[t]);(null==r?void 0:r.__bbn_stream_ping__)||n(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:u.signal,body:JSON.stringify(t||{})}).then(e=>{if(e.body){const r=e.body.getReader(),i=al(n);r.read().then(function e({done:s,value:u}){if(s)return Vl(o,t),c&&l(c),void(a&&a());if(i)if(c+=od(u).trim(),bbn.fn.log(["STREAM RESULT",c.length,c]),c)try{l(c),c=""}catch(e){}else n();else bbn.fn.log(["STREAM SUCCESS IS FN? "+i]);return r.read().then(e)})}}).catch(n=>{let a=!(!(s=n)||!0!==s.__BBN_CANCEL__);var s;if(Vl(o,t,a),a){let t=1;al(i)&&(t=i(n.message,e)),t&&Kd(n.message,e)}else{let e=1;al(r)&&(e=r(n.request,n)),e&&Vd(n.request,n.response?n.response.data:"",n.response?n.response.status:n)}});return Dl(o,d,u),d},string2ArrayBuffer:function(e){for(var n=new ArrayBuffer(2*e.length),t=new Uint16Array(n),r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n},submit:function(e,n,t){let r,i=e.getAttribute("action")||bbn.env.path;if(""===i&&(i="."),"string"==typeof i&&(0!==i.indexOf("http")||-1!==i.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(n&&n.preventDefault(),r=um(e),r)){e.setAttribute("action",null);const n=[i,r];!t&&e.getAttribute("data-script")&&(t=(t=new Function(e.getAttribute("data-script")))()),t&&n.push(t),Bm(...n)}},substr:sl,sum:function(e,n,t,r,i){let a=0;return hl(Ud(e,t,r,i),e=>{let t="function"==typeof n?n(e):e[n];t&&(a+=parseFloat(t)||0)}),a},timestamp:Tm,toCSV:function(e,n=",",t="",r='"'){n||(n=","),r||(r='"');let i="",a=e.length;return hl(e,(e,o)=>{let s=dl(e)?e.length:Object.values(e).length,u=0;hl(e,e=>{i+="string"==typeof e?r+td(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,u++,u<s&&(i+=n)}),o<a-1&&(i+=t+"\n")}),i},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(){wm()},0)},translate:function(e,n){let t=n?bbn.lng[0===n.indexOf("_")?n:"_"+n]:bbn.lng;cl(e,(e,n)=>{t[n]=e})},treatAjaxArguments:gm,treatForHash:Bl,trim:jm,uniqString:function(...e){for(var n="",t=0;t<e.length;t++)if(e[t])if("object"==typeof e[t])if(dl(e[t]))n+=JSON.stringify(e[t]);else{let r={};hl(Object.keys(e[t]).sort(),n=>{r[n]=e[t][n]}),n+=JSON.stringify(r)}else"string"!=typeof e[t]?n+=e[t].toString():n+=e[t];else n+="__bbn_empty__";return Rl(n)},unique:cm,upload:function(e,n,t=null,r=null,i=null){const a=()=>tl.run("post",e||bbn.env.path,{data:Lm(n),headers:{},onUploadProgress(e){if(i){let n=Math.round(100*e.loaded/e.total);i(n,e.loaded,e.total)}}});return t||r?a().then(e=>{t&&(ol("SUCCESS",e),t(e))}).catch(e=>{r&&(ol("ERROR",e),r(e))}):a()},warning:Om,yieldToBrowser:am};const Ym={version:"1.0.1",opt:{_cat:{}},app:{},_:Zc,$:function(e,n){if(null==n?void 0:n.querySelectorAll)return n.querySelectorAll(e);if(n)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:$c,dt:Od,com:tl,env:Jc,db:Tl,fn:Um,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=Ym,"Temporal"in globalThis||(globalThis.Temporal=xc));var qm=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}}});function Wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Km(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if("function"==typeof n){var t=function e(){var t=!1;try{t=this instanceof e}catch{}return t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Vm={},$m=function(e,n){return $m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},$m(e,n)};function Jm(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}$m(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Qm=function(){return Qm=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Qm.apply(this,arguments)};function Xm(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function ef(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function nf(e,n){return function(t,r){n(t,r,e)}}function tf(e,n,t,r,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!n&&e?r.static?e:e.prototype:null,d=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),m=!1,f=t.length-1;f>=0;f--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var M=(0,t[f])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===M)continue;if(null===M||"object"!=typeof M)throw new TypeError("Object expected");(s=o(M.get))&&(d.get=s),(s=o(M.set))&&(d.set=s),(s=o(M.init))&&i.unshift(s)}else(s=o(M))&&("field"===u?i.unshift(s):d[c]=s)}l&&Object.defineProperty(l,r.name,d),m=!0}function rf(e,n,t){for(var r=arguments.length>2,i=0;i<n.length;i++)t=r?n[i].call(e,t):n[i].call(e);return r?t:void 0}function af(e){return"symbol"==typeof e?e:"".concat(e)}function of(e,n,t){return"symbol"==typeof n&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:t?"".concat(t," ",n):n})}function sf(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function uf(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})}function cf(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var lf=Object.create?function(e,n,t,r){void 0===r&&(r=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,i)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]};function df(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||lf(n,e,t)}function mf(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ff(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}function hf(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(ff(arguments[n]));return e}function yf(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function Mf(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function gf(e){return this instanceof gf?(this.v=e,this):new gf(e)}function pf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(n){return Promise.resolve(n).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,n){i[e]&&(r[e]=function(n){return new Promise(function(t,r){a.push([e,n,t,r])>1||s(e,n)})},n&&(r[e]=n(r[e])))}function s(e,n){try{!function(e){e.value instanceof gf?Promise.resolve(e.value.v).then(u,c):l(a[0][2],e)}(i[e](n))}catch(e){l(a[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,n){e(n),a.shift(),a.length&&s(a[0][0],a[0][1])}}function vf(e){var n,t;return n={},r("next"),r("throw",function(e){throw e}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,i){n[r]=e[r]?function(n){return(t=!t)?{value:gf(e[r](n)),done:!1}:i?i(n):n}:i}}function wf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=mf(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){(function(e,n,t,r){Promise.resolve(r).then(function(n){e({value:n,done:t})},n)})(r,i,(n=e[t](n)).done,n.value)})}}}function bf(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var _f=Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n},Ef=function(e){return Ef=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},Ef(e)};function Tf(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=Ef(e),r=0;r<t.length;r++)"default"!==t[r]&&lf(n,e,t[r]);return _f(n,e),n}function Df(e){return e&&e.__esModule?e:{default:e}}function Sf(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}function Af(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t}function kf(e,n){if(null===n||"object"!=typeof n&&"function"!=typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?n===e:e.has(n)}function Cf(e,n,t){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],t&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}var Pf="function"==typeof SuppressedError?SuppressedError:function(e,n,t){var r=new Error(t);return r.name="SuppressedError",r.error=e,r.suppressed=n,r};function Nf(e){function n(n){e.error=e.hasError?new Pf(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}var t,r=0;return function i(){for(;t=e.stack.pop();)try{if(!t.async&&1===r)return r=0,e.stack.push(t),Promise.resolve().then(i);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(a).then(i,function(e){return n(e),i()})}else r|=1}catch(e){n(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function zf(e,n){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,t,r,i,a){return t?n?".jsx":".js":!r||i&&a?r+i+"."+a.toLowerCase()+"js":e}):e}var Hf={__extends:Jm,__assign:Qm,__rest:Xm,__decorate:ef,__param:nf,__esDecorate:tf,__runInitializers:rf,__propKey:af,__setFunctionName:of,__metadata:sf,__awaiter:uf,__generator:cf,__createBinding:lf,__exportStar:df,__values:mf,__read:ff,__spread:hf,__spreadArrays:yf,__spreadArray:Mf,__await:gf,__asyncGenerator:pf,__asyncDelegator:vf,__asyncValues:wf,__makeTemplateObject:bf,__importStar:Tf,__importDefault:Df,__classPrivateFieldGet:Sf,__classPrivateFieldSet:Af,__classPrivateFieldIn:kf,__addDisposableResource:Cf,__disposeResources:Nf,__rewriteRelativeImportExtension:zf},If=Km(Object.freeze({__proto__:null,__addDisposableResource:Cf,get __assign(){return Qm},__asyncDelegator:vf,__asyncGenerator:pf,__asyncValues:wf,__await:gf,__awaiter:uf,__classPrivateFieldGet:Sf,__classPrivateFieldIn:kf,__classPrivateFieldSet:Af,__createBinding:lf,__decorate:ef,__disposeResources:Nf,__esDecorate:tf,__exportStar:df,__extends:Jm,__generator:cf,__importDefault:Df,__importStar:Tf,__makeTemplateObject:bf,__metadata:sf,__param:nf,__propKey:af,__read:ff,__rest:Xm,__rewriteRelativeImportExtension:zf,__runInitializers:rf,__setFunctionName:of,__spread:hf,__spreadArray:Mf,__spreadArrays:yf,__values:mf,default:Hf})),Ff={};function Of(e){return Intl.getCanonicalLocales(e)}
1
+ function e(e,n){return n.forEach(function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach(function(t){if("default"!==t&&!(t in e)){var r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:function(){return n[t]}})}})}),Object.freeze(e)}function n(e,n,r,i,a){return t(n,((e,n)=>{const t=e[n];if(void 0===t)throw new TypeError(_i(n));return t})(e,n),r,i,a)}function t(e,n,t,r,i,a){const o=_(n,t,r);if(i&&n!==o)throw new RangeError(wi(e,n,t,r,a));return o}function r(e){return null!==e&&/object|function/.test(typeof e)}function i(e,n=Map){const t=new n;return(n,...r)=>{if(t.has(n))return t.get(n);const i=e(n,...r);return t.set(n,i),i}}function a(e){return o({name:e},1)}function o(e,n){return l(e=>({value:e,configurable:1,writable:!n}),e)}function s(e){return l(e=>({get:e,configurable:1}),e)}function u(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function c(e,n){const t={};let r=e.length;for(const i of n)t[e[--r]]=i;return t}function l(e,n,t){const r={};for(const i in n)r[i]=e(n[i],i,t);return r}function d(e,n,t){const r={};for(let i=0;i<n.length;i++){const a=n[i];r[a]=e(a,i,t)}return r}function m(e,n,t){const r={};for(let i=0;i<e.length;i++)r[n[i]]=t[e[i]];return r}function f(e,n){const t=Object.create(null);for(const r of e)t[r]=n[r];return t}function h(e,n){for(const t of n)if(t in e)return 1;return 0}function y(e,n,t){for(const r of e)if(n[r]!==t[r])return 0;return 1}function M(e,n,t){const r={...t};for(let t=0;t<n;t++)r[e[t]]=0;return r}function g(e,...n){return(...t)=>e(...n,...t)}function p(e){return e[0].toUpperCase()+e.substring(1)}function v(e){return e.slice().sort()}function w(e,n){return String(n).padStart(e,"0")}function b(e,n){return Math.sign(e-n)}function _(e,n,t){return Math.min(Math.max(e,n),t)}function E(e,n){return[Math.floor(e/n),T(e,n)]}function T(e,n){return(e%n+n)%n}function D(e,n){return[S(e,n),A(e,n)]}function S(e,n){return Math.trunc(e/n)||0}function A(e,n){return e%n||0}function k(e){return.5===Math.abs(e%1)}function C(e,n,t){let r=0,i=0;for(let a=0;a<=n;a++){const n=e[t[a]],o=ga[a],s=Ma/o,[u,c]=D(n,s);r+=c*o,i+=u}const[a,o]=D(r,Ma);return[i+a,o]}function P(e,n,t){const r={};for(let i=n;i>=0;i--){const n=ga[i];r[t[i]]=S(e,n),e=A(e,n)}return r}function N(e){if(void 0!==e)return H(e)}function z(e){return G(H(e))}function H(e){return L(Ua(e))}function I(e,n){if(null==n)throw new RangeError(_i(e));return n}function F(e){if(!r(e))throw new TypeError(vi);return e}function O(e,n,t=e){if(typeof n!==e)throw new TypeError(bi(t,n));return n}function L(e,n="number"){if(!Number.isInteger(e))throw new RangeError(fi(n,e));return e||0}function G(e,n="number"){if(e<=0)throw new RangeError(hi(n,e));return e}function B(e){if("symbol"==typeof e)throw new TypeError(pi);return String(e)}function x(e,n){return r(e)?String(e):ja(e,n)}function R(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(gi(e));return e}function j(e,n="number"){if("bigint"==typeof e)throw new TypeError(Mi(n));if(e=Number(e),!Number.isFinite(e))throw new RangeError(yi(n,e));return e}function Z(e,n){return Math.trunc(j(e,n))||0}function U(e,n){return L(j(e,n),n)}function Y(e,n){return G(Z(e,n),n)}function q(e,n){let[t,r]=D(n,Ma),i=e+t;const a=Math.sign(i);return a&&a===-Math.sign(r)&&(i-=a,r+=a*Ma),[i,r]}function W(e,n,t=1){return q(e[0]+n[0]*t,e[1]+n[1]*t)}function K(e,n){return q(e[0],e[1]+n)}function V(e,n){return W(n,e,-1)}function $(e,n){return b(e[0],n[0])||b(e[1],n[1])}function J(e,n,t){return-1===$(e,n)||1===$(e,t)}function Q(e,n=1){const t=BigInt(Ma/n);return[Number(e/t),Number(e%t)*n]}function X(e,n=1){const t=Ma/n,[r,i]=D(e,t);return[r,i*n]}function ee(e,n=1,t){const[r,i]=e,[a,o]=D(i,n);return r*(Ma/n)+(a+(t?o/n:0))}function ne(e,n,t=E){const[r,i]=e,[a,o]=t(i,n);return[r*(Ma/n)+a,o]}function te(e){return n(e,"isoYear",ho,fo,1),e.isoYear===ho?n(e,"isoMonth",4,12,1):e.isoYear===fo&&n(e,"isoMonth",1,9,1),e}function re(e){return ie({...e,...oo,isoHour:12}),e}function ie(e){const t=n(e,"isoYear",ho,fo,1),r=t===ho?1:t===fo?-1:0;return r&&ae(le({...e,isoDay:e.isoDay+r,isoNanosecond:e.isoNanosecond-r})),e}function ae(e){if(!e||J(e,mo,lo))throw new RangeError(Wi);return e}function oe(e){return C(e,5,eo)[1]}function se(e){const[n,t]=E(e,Ma);return[P(t,5,eo),n]}function ue(e){return ne(e,fa)}function ce(e){return fe(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function le(e){const n=ce(e);if(void 0!==n){const[t,r]=D(n,ca);return[t,r*ma+(e.isoMicrosecond||0)*da+(e.isoNanosecond||0)]}}function de(e,n){const[t,r]=se(oe(e)-n);return ae(le({...e,isoDay:e.isoDay+r,...t}))}function me(...e){return fe(...e)/la}function fe(...e){const[n,t]=he(...e),r=n.valueOf();if(!isNaN(r))return r-t*ca}function he(e,n=1,t=1,r=0,i=0,a=0,o=0){const s=e===ho?1:e===fo?-1:0,u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,n-1,t+s),[u,s]}function ye(e,n){let[t,r]=K(e,n);r<0&&(r+=Ma,t-=1);const[i,a]=E(r,ma),[o,s]=E(a,da);return Me(t*ca+i,o,s)}function Me(e,n=0,t=0){const r=Math.ceil(Math.max(0,Math.abs(e)-co)/ca)*Math.sign(e),i=new Date(e-r*ca);return c(to,[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()+r,i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds(),n,t])}function ge(e,n){if(n<-co)throw new RangeError(Wi);const t=e.formatToParts(n),r={};for(const e of t)r[e.type]=e.value;return r}function pe(e){return[e.isoYear,e.isoMonth,e.isoDay]}function ve(e,n){return[n,0]}function we(){return vo}function be(e,n){switch(n){case 2:return Ee(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function _e(e){return Ee(e)?366:365}function Ee(e){return e%4==0&&(e%100!=0||e%400==0)}function Te(e){const[n,t]=he(e.isoYear,e.isoMonth,e.isoDay);return T(n.getUTCDay()-t,7)||7}function De(e){return this.id===La?(({isoYear:e})=>e<1?["gregory-inverse",1-e]:["gregory",e])(e):this.id===Ga?bo(e):[]}function Se(e){const n=ce(e);if(n<wo){const{isoYear:n}=e;return n<1?["japanese-inverse",1-n]:["japanese",n]}const t=ge(zs(Ga),n),{era:r,eraYear:i}=Nr(t,Ga);return[r,i]}function Ae(e){return ke(e),Ne(e,1),e}function ke(e){return Pe(e,1),e}function Ce(e){return y(no,e,Pe(e))}function Pe(e,t){const{isoYear:r}=e,i=n(e,"isoMonth",1,we(),t);return{isoYear:r,isoMonth:i,isoDay:n(e,"isoDay",1,be(r,i),t)}}function Ne(e,t){return c(eo,[n(e,"isoHour",0,23,t),n(e,"isoMinute",0,59,t),n(e,"isoSecond",0,59,t),n(e,"isoMillisecond",0,999,t),n(e,"isoMicrosecond",0,999,t),n(e,"isoNanosecond",0,999,t)])}function ze(e){return void 0===e?0:xo(F(e))}function He(e,n=0){e=Ze(e);const t=Ro(e),r=jo(e,n);return[xo(e),r,t]}function Ie(e,n,t,r=9,i=0,a=4){n=Ze(n);let o=Go(n,r,i),s=xe(n),u=qo(n,a);const c=Lo(n,r,i,1);return null==o?o=Math.max(t,c):Ke(o,c),s=Re(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[o,c,s,u]}function Fe(e,n=6,t){let r=xe(e=Ue(e,_o));const i=qo(e,7);let a=Lo(e,n);return a=I(_o,a),r=Re(r,a,void 0,t),[a,r,i]}function Oe(e){return Zo(Ze(e))}function Le(e,n){return Ge(Ze(e),n)}function Ge(e,n=4){const t=je(e);return[qo(e,4),...Be(Lo(e,n),t)]}function Be(e,n){return null!=e?[ga[e],e<4?9-3*e:-1]:[void 0===n?1:10**(9-n),n]}function xe(e){const n=e[To];return void 0===n?1:Z(n,To)}function Re(e,n,r,i){const a=i?Ma:ga[n+1];if(a){const r=ga[n];if(a%((e=t(To,e,1,a/r-(i?0:1),1))*r))throw new RangeError(bi(To,e))}else e=t(To,e,1,r?10**9:1,1);return e}function je(e){let n=e[Do];if(void 0!==n){if("number"!=typeof n){if("auto"===B(n))return;throw new RangeError(bi(Do,n))}n=t(Do,Math.floor(n),0,9,1)}return n}function Ze(e){return void 0===e?{}:F(e)}function Ue(e,n){return"string"==typeof e?{[n]:e}:F(e)}function Ye(e){return{overflow:Co[e]}}function qe(e,n,r=9,i=0,a){let o=n[e];if(void 0===o)return a?i:void 0;if(o=B(o),"auto"===o)return a?i:null;let s=sa[o];if(void 0===s&&(s=$a[o]),void 0===s)throw new RangeError(Si(e,o,sa));return t(e,s,i,r,1,ua),s}function We(e,n,t,r=0){const i=t[e];if(void 0===i)return r;const a=B(i),o=n[a];if(void 0===o)throw new RangeError(Si(e,a,n));return o}function Ke(e,n){if(n>e)throw new RangeError(Xi)}function Ve(e){return{branding:Xo,epochNanoseconds:e}}function $e(e,n,t){return{branding:Qo,calendar:t,timeZone:n,epochNanoseconds:e}}function Je(e,n=e.calendar){return{branding:$o,calendar:n,...f(ao,e)}}function Qe(e,n=e.calendar){return{branding:Vo,calendar:n,...f(ro,e)}}function Xe(e,n=e.calendar){return{branding:Wo,calendar:n,...f(ro,e)}}function en(e,n=e.calendar){return{branding:Ko,calendar:n,...f(ro,e)}}function nn(e){return{branding:Jo,...f(io,e)}}function tn(e){return{branding:es,sign:gt(e),...f(qa,e)}}function rn(e){return ne(e.epochNanoseconds,ma)[0]}function an(e){return e.epochNanoseconds}function on(e,n){return ee(wt(e),ga[n],1)}function sn(e,n,t,r,i,a,o){const s=Ya[t],u={...n,[s]:n[s]+r},c=o(e,i,n),l=o(e,i,u);return[a(c),a(l)]}function un(e,n,t){const r=ee(V(n,t));if(!r)throw new RangeError(Li);return ee(V(n,e))/r}function cn(e,n,t,r){return ln(e,fn(n,t),r)}function ln(e,n,t){const[r,i]=dn(e,n,t);return ie({...st(e,i),...r})}function dn(e,n,t){return se(wn(oe(e),n,t))}function mn(e){return wn(e,ha,7)}function fn(e,n){return ga[e]*n}function hn(e){const n=yn(e);return[n,st(n,1)]}function yn(e){return so(6,e)}function Mn(e,n,t){const r=Math.min(Tt(e),6);return bt(vn(wt(e,r),n,t),r)}function gn(e,n,t,r,i,a,o,s,u,c){if(0===r&&1===i)return e;const l=ft(r,s)?mt(s)&&r<6&&t>=6?En:_n:Tn;let[d,m,f]=l(e,n,t,r,i,a,o,s,u,c);return f&&7!==r&&(d=((e,n,t,r,i,a,o,s)=>{const u=gt(e);for(let c=r+1;c<=t;c++){if(7===c&&7!==t)continue;const r=Xa(c,e);r[Ya[c]]+=u;const l=ee(V(o(s(i,a,r)),n));if(l&&Math.sign(l)!==u)break;e=r}return e})(d,m,t,Math.max(6,r),o,s,u,c)),d}function pn(e,n,t,r,i){if(6===n){const n=(e=>e[0]+e[1]/Ma)(e);return[wn(n,t,r),0]}return vn(e,fn(n,t),r,i)}function vn(e,n,t,r){let[i,a]=e;r&&a<0&&(a+=Ma,i-=1);const[o,s]=E(wn(a,n,t),Ma);return q(i+o,s)}function wn(e,n,t){return bn(e/n,t)*n}function bn(e,n){return ns[n](e)}function _n(e,n,t,r,i,a){const o=gt(e),s=wt(e),u=pn(s,r,i,a),c=V(s,u),l=Math.sign(u[0]-s[0])===o,d=bt(u,Math.min(t,6));return[{...e,...d},W(n,c),l]}function En(e,n,t,r,i,a,o,s,u,c){const l=gt(e)||1,d=ee(wt(e,5)),m=fn(r,i);let f=wn(d,m,a);const[h,y]=sn(o,{...e,...Qa},6,l,s,u,c),M=f-ee(V(h,y));let g=0;M&&Math.sign(M)!==l?n=K(h,f):(g+=l,f=wn(M,m,a),n=K(y,f));const p=_t(f);return[{...e,...p,days:e.days+g},n,Boolean(g)]}function Tn(e,n,t,r,i,a,o,s,u,c){const l=gt(e),d=Ya[r],m=Xa(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const f=S(e[d],i)*i;m[d]=f;const[h,y]=sn(o,m,r,i*l,s,u,c),M=f+un(n,h,y)*l*i,g=wn(M,i,a),p=Math.sign(g-M)===l;return m[d]=g,[m,p?y:h,p]}function Dn(e,n,t,r){const[i,a,o,s]=(e=>{const n=Ge(e=Ze(e));return[e.timeZone,...n]})(r),u=void 0!==i;return((e,n,t,r,i,a)=>{t=vn(t,i,r,1);const o=n.R(t);return Fn(ye(t,o),a)+(e?xn(mn(o)):"Z")})(u,n(u?e(i):ts),t.epochNanoseconds,a,o,s)}function Sn(e,n,t){const[r,i,a,o,s,u]=(e=>{e=Ze(e);const n=Zo(e),t=je(e),r=Yo(e),i=qo(e,4),a=Lo(e,4);return[n,Uo(e),r,i,...Be(a,t)]})(t);return((e,n,t,r,i,a,o,s,u,c)=>{r=vn(r,u,s,1);const l=e(t).R(r);return Fn(ye(r,l),c)+xn(mn(l),o)+((e,n)=>1!==n?"["+(2===n?"!":"")+e+"]":"")(t,a)+Rn(n,i)})(e,n.calendar,n.timeZone,n.epochNanoseconds,r,i,a,o,s,u)}function An(e,n){const[t,r,i,a]=(e=>(e=Ze(e),[Zo(e),...Ge(e)]))(n);return o=e.calendar,s=t,u=a,Fn(ln(e,i,r),u)+Rn(o,s);var o,s,u}function kn(e,n){return t=e.calendar,r=e,i=Oe(n),On(r)+Rn(t,i);var t,r,i}function Cn(e,n){return Hn(e.calendar,Ln,e,Oe(n))}function Pn(e,n){return Hn(e.calendar,Gn,e,Oe(n))}function Nn(e,n){const[t,r,i]=Le(n);return a=i,Bn(dn(e,r,t)[0],a);var a}function zn(e,n){const[t,r,i]=Le(n,3);return r>1&&pt(e={...e,...Mn(e,r,t)}),((e,n)=>{const{sign:t}=e,r=-1===t?Mt(e):e,{hours:i,minutes:a}=r,[o,s]=ne(wt(r,3),fa,D);vt(o);const u=Zn(s,n),c=n>=0||!t||u;return(t<0?"-":"")+"P"+In({Y:Yn(r.years),M:Yn(r.months),W:Yn(r.weeks),D:Yn(r.days)})+(i||a||o||c?"T"+In({H:Yn(i),M:Yn(a),S:Yn(o,c)+u}):"")})(e,i)}function Hn(e,n,t,r){const i=r>1||0===r&&e!==Oa;return 1===r?e===Oa?n(t):On(t):i?On(t)+jn(e,2===r):n(t)}function In(e){const n=[];for(const t in e){const r=e[t];r&&n.push(r,t)}return n.join("")}function Fn(e,n){return On(e)+"T"+Bn(e,n)}function On(e){return Ln(e)+"-"+oa(e.isoDay)}function Ln(e){const{isoYear:n}=e;return(n<0||n>9999?Un(n)+w(6,Math.abs(n)):w(4,n))+"-"+oa(e.isoMonth)}function Gn(e){return oa(e.isoMonth)+"-"+oa(e.isoDay)}function Bn(e,n){const t=[oa(e.isoHour),oa(e.isoMinute)];return-1!==n&&t.push(oa(e.isoSecond)+((e,n,t,r)=>Zn(e*ma+n*da+t,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,n)),t.join(":")}function xn(e,n=0){if(1===n)return"";const[t,r]=E(Math.abs(e),ya),[i,a]=E(r,ha),[o,s]=E(a,fa);return Un(e)+oa(t)+":"+oa(i)+(o||s?":"+oa(o)+Zn(s):"")}function Rn(e,n){return 1!==n&&(n>1||0===n&&e!==Oa)?jn(e,2===n):""}function jn(e,n){return"["+(n?"!":"")+"u-ca="+e+"]"}function Zn(e,n){let t=w(9,e);return t=void 0===n?t.replace(os,""):t.slice(0,n),t?"."+t:""}function Un(e){return e<0?"-":"+"}function Yn(e,n){return e||n?e.toLocaleString("fullwide",{useGrouping:0}):""}function qn(e,n){const{epochNanoseconds:t}=e,r=(n.R?n:n(e.timeZone)).R(t),i=ye(t,r);return{calendar:e.calendar,...i,offsetNanoseconds:r}}function Wn(e,n,t,r=0,i=0,a,o){if(void 0!==t&&1===r&&(1===r||o))return de(n,t);const s=e.I(n);if(void 0!==t&&3!==r){const e=((e,n,t,r)=>{const i=le(n);r&&(t=mn(t));for(const n of e){let e=ee(V(n,i));if(r&&(e=mn(e)),e===t)return n}})(s,n,t,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Yi)}return o?le(n):Kn(e,n,i,s)}function Kn(e,n,t=0,r=e.I(n)){if(1===r.length)return r[0];if(1===t)throw new RangeError(qi);if(r.length)return r[3===t?1:0];const i=le(n),a=((e,n)=>{const t=e.R(K(n,-Ma));return(e=>{if(e>Ma)throw new RangeError(Ui);return e})(e.R(K(n,Ma))-t)})(e,i),o=a*(2===t?-1:1);return(r=e.I(ye(i,o)))[2===t?0:r.length-1]}function Vn(e,n){const t=e.I(n);if(t.length)return t[0];const r=K(le(n),-Ma);return e.O(r,1)}function $n(e,n,t){return Ve(ae(W(n.epochNanoseconds,(e=>{if(Et(e))throw new RangeError(Ji);return wt(e,5)})(e?Mt(t):t))))}function Jn(e,n,t,r,i,a=Object.create(null)){const o=n(r.timeZone),s=e(r.calendar);return{...r,...tt(o,s,r,t?Mt(i):i,a)}}function Qn(e,n,t,r,i=Object.create(null)){const{calendar:a}=t;return Je(rt(e(a),t,n?Mt(r):r,i),a)}function Xn(e,n,t,r,i){const{calendar:a}=t;return Qe(it(e(a),t,n?Mt(r):r,i),a)}function et(e,n,t,r,i){const a=t.calendar,o=e(a);let s=re(at(o,t));n&&(r=yt(r)),r.sign<0&&(s=o.P(s,{...Ja,months:1}),s=st(s,-1));const u=o.P(s,r,i);return Xe(at(o,u),a)}function nt(e,n,t){return nn(ot(n,e?Mt(t):t)[0])}function tt(e,n,t,r,i){const a=wt(r,5);let o=t.epochNanoseconds;if(Et(r)){const s=ss(t,e);o=W(Kn(e,{...it(n,s,{...r,...Qa},i),...f(eo,s)}),a)}else o=W(o,a),ze(i);return{epochNanoseconds:ae(o)}}function rt(e,n,t,r){const[i,a]=ot(n,t);return ie({...it(e,n,{...t,...Qa,days:t.days+a},r),...i})}function it(e,n,t,r){if(t.years||t.months||t.weeks)return e.P(n,t,r);ze(r);const i=t.days+wt(t,5)[0];return i?re(st(n,i)):n}function at(e,n,t=1){return st(n,t-e.day(n))}function ot(e,n){const[t,r]=wt(n,5),[i,a]=se(oe(e)+r);return[i,t+a]}function st(e,n){return n?{...e,...Me(ce(e)+n*ca)}:e}function ut(e,n,t){const r=e(t.calendar);return mt(t)?[t,r,n(t.timeZone)]:[{...t,...oo},r]}function ct(e){return e?an:le}function lt(e){return e?g(tt,e):rt}function dt(e){return e?g(sr,e):ur}function mt(e){return e&&e.epochNanoseconds}function ft(e,n){return e<=6-(mt(n)?1:0)}function ht(e,n,t,r,i,a,o){const s=e(Ze(o).relativeTo),u=Math.max(Tt(i),Tt(a));if(ft(u,s))return tn(pt(((e,n,t,r)=>{const i=W(wt(e),wt(n),r?-1:1);if(!Number.isFinite(i[0]))throw new RangeError(Wi);return{...Ja,...bt(i,t)}})(i,a,u,r)));if(!s)throw new RangeError($i);r&&(a=Mt(a));const[c,l,d]=ut(n,t,s),m=lt(d),f=dt(d),h=m(l,c,i);return tn(f(l,c,m(l,h,a),u))}function yt(e){return tn(Mt(e))}function Mt(e){const n={};for(const t of Ya)n[t]=-1*e[t]||0;return n}function gt(e,n=Ya){let t=0;for(const r of n){const n=Math.sign(e[r]);if(n){if(t&&t!==n)throw new RangeError(Vi);t=n}}return t}function pt(e){for(const n of Va)t(n,e[n],-us,us,1);return vt(ee(wt(e),fa)),e}function vt(e){if(!Number.isSafeInteger(e))throw new RangeError(Ki)}function wt(e,n=6){return C(e,n,Ya)}function bt(e,n=6){const[t,r]=e,i=P(r,n,Ya);if(i[Ya[n]]+=t*(Ma/ga[n]),!Number.isFinite(i[Ya[n]]))throw new RangeError(Wi);return i}function _t(e,n=5){return P(e,n,Ya)}function Et(e){return Boolean(gt(e,Ka))}function Tt(e){let n=9;for(;n>0&&!e[Ya[n]];n--);return n}function Dt(e,n){return[e,n]}function St(e){const n=Math.floor(e/rs)*rs;return[n,n+rs]}function At(e){const n=Lt(e);if(void 0===n)throw new RangeError(ea(e));return n}function kt(e,n,t){let r=It(ja(e));if(!r||r.j)throw new RangeError(ea(e));return n?r.calendar===Oa&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...oo}:{...r,isoDay:1,...oo}):t&&r.calendar===Oa&&(r={...r,isoYear:po}),Qe(r.C?Nt(r):zt(r))}function Ct(e){if(e.calendar!==Oa)throw new RangeError(na(e.calendar))}function Pt(e,n,t=0,r=0){const i=Yt(e.timeZone),a=cs(i);let o;return Ae(e),o=e.C?Wn(a,e,n,t,r,!a.$,e.j):Vn(a,e),$e(o,i,Zr(e.calendar))}function Nt(e){return Ht(ie(Ae(e)))}function zt(e){return Ht(re(ke(e)))}function Ht(e){return{...e,calendar:Zr(e.calendar)}}function It(e){const n=_s.exec(e);return n?(e=>{const n=e[10],t="Z"===(n||"").toUpperCase();return{isoYear:Gt(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Bt(e.slice(5)),...xt(e[16]),C:Boolean(e[6]),j:t,offset:t?void 0:n}})(n):void 0}function Ft(e){const n=ws.exec(e);return n?(e=>({isoYear:Gt(e),isoMonth:parseInt(e[4]),isoDay:1,...xt(e[5])}))(n):void 0}function Ot(e){const n=bs.exec(e);return n?(e=>({isoYear:po,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...xt(e[3])}))(n):void 0}function Lt(e,n){const t=Ts.exec(e);return t?((e,n)=>{const t=e[4]||e[5];if(n&&t)throw new RangeError(na(t));return(e=>{if(Math.abs(e)>=Ma)throw new RangeError(Zi);return e})((Ut(e[2])*ya+Ut(e[3])*ha+Ut(e[4])*fa+Rt(e[5]||""))*Zt(e[1]))})(t,n):void 0}function Gt(e){const n=Zt(e[1]),t=parseInt(e[2]||e[3]);if(n<0&&!t)throw new RangeError(na(-0));return n*t}function Bt(e){const n=Ut(e[3]);return{...se(Rt(e[4]||""))[0],isoHour:Ut(e[1]),isoMinute:Ut(e[2]),isoSecond:60===n?59:n}}function xt(e){let n,t;const r=[];if(e.replace(Ds,(e,i,a)=>{const o=Boolean(i),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),n||(n=o);else if(o||/[A-Z]/.test(u))throw new RangeError(na(e))}else{if(t)throw new RangeError(na(e));t=s}return""}),r.length>1&&n)throw new RangeError(na(e));return{timeZone:t,calendar:r[0]||Oa}}function Rt(e){return parseInt(e.padEnd(9,"0"))}function jt(e){return new RegExp(`^${e}$`,"i")}function Zt(e){return e&&"+"!==e?-1:1}function Ut(e){return void 0===e?0:parseInt(e)}function Yt(e){const n=Wt(e);return"number"==typeof n?xn(n):n?(e=>{if(Cs.test(e))throw new RangeError(xi(e));if(ks.test(e))throw new RangeError(ji);return e.toLowerCase().split("/").map((e,n)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,t)=>e.length<=2&&!n||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!t?p(e).replace(/island|noronha|murdo|rivadavia|urville/,p):e)).join("/")})(e):ts}function qt(e){const n=Wt(e);return"number"==typeof n?n:n?n.resolvedOptions().timeZone:ts}function Wt(e){const n=Lt(e=e.toUpperCase(),1);return void 0!==n?n:e!==ts?As(e):void 0}function Kt(e,n){return $(e.epochNanoseconds,n.epochNanoseconds)}function Vt(e,n){return $(e.epochNanoseconds,n.epochNanoseconds)}function $t(e,n){return Jt(e,n)||Qt(e,n)}function Jt(e,n){return b(ce(e),ce(n))}function Qt(e,n){return b(oe(e),oe(n))}function Xt(e,n){if(e===n)return 1;try{return qt(e)===qt(n)}catch(e){}}function er(e,n,t,r){const i=Ie(e,r,3,5),a=dr(n.epochNanoseconds,t.epochNanoseconds,...i);return tn(e?Mt(a):a)}function nr(e,n,t,r,i,a){const o=Mr(r.calendar,i.calendar),[s,u,c,l]=Ie(t,a,5),d=r.epochNanoseconds,m=i.epochNanoseconds,f=$(m,d);let h;if(f)if(s<6)h=dr(d,m,s,u,c,l);else{const t=n(((e,n)=>{if(!Xt(e,n))throw new RangeError(Ri);return e})(r.timeZone,i.timeZone)),d=e(o);h=cr(d,t,r,i,f,s,a),h=gn(h,m,s,u,c,l,d,r,an,g(tt,t))}else h=Ja;return tn(t?Mt(h):h)}function tr(e,n,t,r,i){const a=Mr(t.calendar,r.calendar),[o,s,u,c]=Ie(n,i,6),l=le(t),d=le(r),m=$(d,l);let f;if(m)if(o<=6)f=dr(l,d,o,s,u,c);else{const n=e(a);f=lr(n,t,r,m,o,i),f=gn(f,d,o,s,u,c,n,t,le,rt)}else f=Ja;return tn(n?Mt(f):f)}function rr(e,n,t,r,i){const a=Mr(t.calendar,r.calendar);return ar(n,()=>e(a),t,r,...Ie(n,i,6,9,6))}function ir(e,n,t,r,i){const a=Mr(t.calendar,r.calendar),o=Ie(n,i,9,9,8),s=e(a),u=at(s,t),c=at(s,r);return u.isoYear===c.isoYear&&u.isoMonth===c.isoMonth&&u.isoDay===c.isoDay?tn(Ja):ar(n,()=>s,re(u),re(c),...o,8)}function ar(e,n,t,r,i,a,o,s,u=6){const c=le(t),l=le(r);if(void 0===c||void 0===l)throw new RangeError(Wi);let d;if($(l,c))if(6===i)d=dr(c,l,i,a,o,s);else{const e=n();d=e.N(t,r,i),a===u&&1===o||(d=gn(d,l,i,a,o,s,e,t,le,it))}else d=Ja;return tn(e?Mt(d):d)}function or(e,n,t,r){const[i,a,o,s]=Ie(e,r,5,5),u=wn(yr(n,t),fn(a,o),s),c={...Ja,..._t(u,i)};return tn(e?Mt(c):c)}function sr(e,n,t,r,i,a){const o=$(r.epochNanoseconds,t.epochNanoseconds);return o?i<6?mr(t.epochNanoseconds,r.epochNanoseconds,i):cr(n,e,t,r,o,i,a):Ja}function ur(e,n,t,r,i){const a=le(n),o=le(t),s=$(o,a);return s?r<=6?mr(a,o,r):lr(e,n,t,s,r,i):Ja}function cr(e,n,t,r,i,a,o){const[s,u,c]=((e,n,t,r)=>{function i(){return d={...st(s,c++*-r),...o},m=Kn(e,d),$(u,m)===-r}const a=ss(n,e),o=f(eo,a),s=ss(t,e),u=t.epochNanoseconds;let c=0;const l=yr(a,s);let d,m;if(Math.sign(l)===-r&&c++,i()&&(-1===r||i()))throw new RangeError(Li);const h=ee(V(m,u));return[a,d,h]})(n,t,r,i);var l,d;return{...6===a?(l=s,d=u,{...Ja,days:fr(l,d)}):e.N(s,u,a,o),..._t(c)}}function lr(e,n,t,r,i,a){const[o,s,u]=((e,n,t)=>{let r=n,i=yr(e,n);return Math.sign(i)===-t&&(r=st(n,-t),i+=Ma*t),[e,r,i]})(n,t,r);return{...e.N(o,s,i,a),..._t(u)}}function dr(e,n,t,r,i,a){return{...Ja,...bt(pn(V(e,n),r,i,a),t)}}function mr(e,n,t){return{...Ja,...bt(V(e,n),t)}}function fr(e,n){return hr(ce(e),ce(n))}function hr(e,n){return Math.trunc((n-e)/ca)}function yr(e,n){return oe(n)-oe(e)}function Mr(e,n){if(e!==n)throw new RangeError(Bi);return e}function gr(e){return this.m(e)[0]}function pr(e){return this.m(e)[1]}function vr(e){const[n]=this.v(e);return hr(this.p(n),ce(e))+1}function wr(e){const n=Ps.exec(e);if(!n)throw new RangeError(Hi(e));return[parseInt(n[1]),Boolean(n[2])]}function br(e,n){return"M"+oa(e)+(n?"L":"")}function _r(e,n,t){return e+(n||t&&e>=t?1:0)}function Er(e,n){return e-(n&&e>=n?1:0)}function Tr(e,n){return(n+e)*(Math.sign(n)||1)||0}function Dr(e){return Ba[Ar(e)]}function Sr(e){return Ra[Ar(e)]}function Ar(e){return Ur(e.id||Oa)}function kr(e){function n(e){return((e,n)=>({...Nr(e,n),o:e.month,day:parseInt(e.day)}))(ge(t,e),r)}const t=zs(e),r=Ur(e);return{id:e,h:Cr(n),l:Pr(n)}}function Cr(e){return i(n=>{const t=ce(n);return e(t)},WeakMap)}function Pr(e){const n=e(0).year-go;return i(t=>{let r,i=fe(t-n),a=0;const o=[],s=[];do{i+=400*ca}while((r=e(i)).year<=t);do{if(i+=(1-r.day)*ca,r.year===t&&(o.push(i),s.push(r.o)),i-=ca,++a>100||i<-co)throw new RangeError(Li)}while((r=e(i)).year>=t);return{i:o.reverse(),u:ia(s.reverse())}})}function Nr(e,n){let t,r,i=zr(e);if(e.era){const a=Ba[n],o=xa[n]||{};void 0!==a&&(t="islamic"===n?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===t||"b"===t?t="bce":"ad"===t||"a"===t?t="ce":"beforeroc"===t&&(t="broc"),t=o[t]||t,r=i,i=Tr(r,a[t]||0))}return{era:t,eraYear:r,year:i}}function zr(e){return parseInt(e.relatedYear||e.year)}function Hr(e){const{year:n,o:t,day:r}=this.h(e),{u:i}=this.l(n);return[n,i[t]+1,r]}function Ir(e,n=1,t=1){return this.l(e).i[n-1]+(t-1)*ca}function Fr(e,n){const t=Or.call(this,e);return[Er(n,t),t===n]}function Or(e){const n=Rr(this,e),t=Rr(this,e-1),r=n.length;if(r>t.length){const e=Sr(this);if(e<0)return-e;for(let e=0;e<r;e++)if(n[e]!==t[e])return e+1}}function Lr(e){return hr(Ir.call(this,e),Ir.call(this,e+1))}function Gr(e,n){const{i:t}=this.l(e);let r=n+1,i=t;return r>t.length&&(r=1,i=this.l(e+1).i),hr(t[n-1],i[r-1])}function Br(e){return this.l(e).i.length}function xr(e){const n=this.h(e);return[n.era,n.eraYear]}function Rr(e,n){return Object.keys(e.l(n).u)}function jr(e){return Zr(ja(e))}function Zr(e){if((e=e.toLowerCase())!==Oa&&e!==La){const n=zs(e).resolvedOptions().calendar;if(Ur(e)!==Ur(n))throw new RangeError(Gi(e));return n}return e}function Ur(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function Yr(e,n){return t=>t===Oa?e:t===La||t===Ga?Object.assign(Object.create(e),{id:t}):Object.assign(Object.create(n),Ns(t))}function qr(e,n,t,r){const i=Wr(t,r,za,[],Ea);if(void 0!==i.timeZone){const r=t.F(i),a=Vr(i),o=e(i.timeZone);return{epochNanoseconds:Wn(n(o),{...r,...a},void 0!==i.offset?At(i.offset):void 0),timeZone:o}}return{...t.F(i),...oo}}function Wr(e,n,t,r=[],i=[]){return Kr(n,[...e.fields(t),...i].sort(),r)}function Kr(e,n,t,r=!t){const i={};let a,o=0;for(const r of n){if(r===a)throw new RangeError(Ti(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ei(r));let n=e[r];if(void 0!==n)o=1,Zs[r]&&(n=Zs[r](n,r)),i[r]=n;else if(t){if(t.includes(r))throw new TypeError(_i(r));i[r]=Fa[r]}a=r}if(r&&!o)throw new TypeError(Di(n));return i}function Vr(e,n){return Ne(Us({...Fa,...e}),n)}function $r(e,n,t,r,i){n=f(t=e.fields(t),n),r=Kr(r,i=e.fields(i),[]);let a=e.k(n,r);return a=Kr(a,[...t,...i].sort(),[]),e.F(a)}function Jr(e,n){const t=Dr(e),r=xa[e.id||""]||{};let{era:i,eraYear:a,year:o}=n;if(void 0!==i||void 0!==a){if(void 0===i||void 0===a)throw new TypeError(Ci);if(!t)throw new RangeError(ki);const e=t[r[i]||i];if(void 0===e)throw new RangeError(Ni(i));const n=Tr(a,e);if(void 0!==o&&o!==n)throw new RangeError(Pi);o=n}else if(void 0===o)throw new TypeError(zi(t));return o}function Qr(e,n,r,i){let{month:a,monthCode:o}=n;if(void 0!==o){const n=((e,n,t,r)=>{const i=e.L(t),[a,o]=wr(n);let s=_r(a,o,i);if(o){const n=Sr(e);if(void 0===n)throw new RangeError(Oi);if(n>0){if(s>n)throw new RangeError(Oi);if(void 0===i){if(1===r)throw new RangeError(Oi);s--}}else{if(s!==-n)throw new RangeError(Oi);if(void 0===i&&1===r)throw new RangeError(Oi)}}return s})(e,o,r,i);if(void 0!==a&&a!==n)throw new RangeError(Ii);a=n,i=1}else if(void 0===a)throw new TypeError(Fi);return t("month",a,1,e.B(r),i)}function Xr(e,t,r,i,a){return n(t,"day",1,e.U(i,r),a)}function ei(e,n,t,r){let i=0;const a=[];for(const e of t)void 0!==n[e]?i=1:a.push(e);if(Object.assign(e,n),i)for(const n of r||a)delete e[n]}function ni(e){const n=Rs(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{year:t,monthCode:br(a,o),day:i}}function ti(e,n){return Je(ss(n,e))}function ri(e,n){return Qe(ss(n,e))}function ii(e,n){return nn(ss(n,e))}function ai(e,n,t){const r=new Set(t);return(i,a)=>{const o=t&&h(i,t);if(!h(i=((e,n)=>{const t={};for(const r in n)e.has(r)||(t[r]=n[r]);return t})(r,i),e)){if(a&&o)throw new TypeError("Invalid formatting options");i={...n,...i}}return t&&(i.timeZone=ts,["full","long"].includes(i.J)&&(i.J="medium")),i}}function oi(e,n=si,t=0){const[r,,,i]=e;return(a,o=bu,...s)=>{const u=n(i&&i(...s),a,o,r,t),c=u.resolvedOptions();return[u,...ui(e,c,s)]}}function si(e,n,t,r,i){if(t=r(t,i),e){if(void 0!==t.timeZone)throw new TypeError(ra);t.timeZone=e}return new yo(n,t)}function ui(e,n,t){const[,r,i]=e;return t.map(e=>(e.calendar&&((e,n,t)=>{if((t||e!==Oa)&&e!==n)throw new RangeError(Bi)})(e.calendar,n.calendar,i),r(e,n)))}function ci(e,n){return{...e,calendar:n}}function li(e){const n=di();return ye(n,e.R(n))}function di(){return X(Date.now(),ma)}function mi(){return Pu||(Pu=(new yo).resolvedOptions().timeZone)}const fi=(e,n)=>`Non-integer ${e}: ${n}`,hi=(e,n)=>`Non-positive ${e}: ${n}`,yi=(e,n)=>`Non-finite ${e}: ${n}`,Mi=e=>`Cannot convert bigint to ${e}`,gi=e=>`Invalid bigint: ${e}`,pi="Cannot convert Symbol to string",vi="Invalid object",wi=(e,n,t,r,i)=>i?wi(e,i[n],i[t],i[r]):bi(e,n)+`; must be between ${t}-${r}`,bi=(e,n)=>`Invalid ${e}: ${n}`,_i=e=>`Missing ${e}`,Ei=e=>`Invalid field ${e}`,Ti=e=>`Duplicate field ${e}`,Di=e=>"No valid fields: "+e.join(),Si=(e,n,t)=>bi(e,n)+"; must be "+Object.keys(t).join(),Ai="Invalid calling context",ki="Forbidden era/eraYear",Ci="Mismatching era/eraYear",Pi="Mismatching year/eraYear",Ni=e=>`Invalid era: ${e}`,zi=e=>"Missing year"+(e?"/era/eraYear":""),Hi=e=>`Invalid monthCode: ${e}`,Ii="Mismatching month/monthCode",Fi="Missing month/monthCode",Oi="Invalid leap month",Li="Invalid protocol results",Gi=e=>bi("Calendar",e),Bi="Mismatching Calendars",xi=e=>bi("TimeZone",e),Ri="Mismatching TimeZones",ji="Forbidden ICU TimeZone",Zi="Out-of-bounds offset",Ui="Out-of-bounds TimeZone gap",Yi="Invalid TimeZone offset",qi="Ambiguous offset",Wi="Out-of-bounds date",Ki="Out-of-bounds duration",Vi="Cannot mix duration signs",$i="Missing relativeTo",Ji="Cannot use large units",Qi="Required smallestUnit or largestUnit",Xi="smallestUnit > largestUnit",ea=e=>`Cannot parse: ${e}`,na=e=>`Invalid substring: ${e}`,ta="Mismatching types for formatting",ra="Cannot specify TimeZone",ia=g(d,(e,n)=>n),aa=g(d,(e,n,t)=>t),oa=g(w,2),sa={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},ua=Object.keys(sa),ca=864e5,la=1e3,da=1e3,ma=1e6,fa=1e9,ha=6e10,ya=36e11,Ma=864e11,ga=[1,da,ma,fa,ha,ya,Ma],pa=ua.slice(0,6),va=v(pa),wa=["offset"],ba=["timeZone"],_a=pa.concat(wa),Ea=_a.concat(ba),Ta=["era","eraYear"],Da=Ta.concat(["year"]),Sa=["year"],Aa=["monthCode"],ka=["month"].concat(Aa),Ca=["day"],Pa=ka.concat(Sa),Na=Aa.concat(Sa),za=Ca.concat(Pa),Ha=Ca.concat(ka),Ia=Ca.concat(Aa),Fa=aa(pa,0),Oa="iso8601",La="gregory",Ga="japanese",Ba={[La]:{"gregory-inverse":-1,gregory:0},[Ga]:{"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}},xa={[La]:{bce:"gregory-inverse",ce:"gregory"},[Ga]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Ra={chinese:13,dangi:13,hebrew:-6},ja=g(O,"string"),Za=g(O,"boolean"),Ua=g(O,"number"),Ya=ua.map(e=>e+"s"),qa=v(Ya),Wa=Ya.slice(0,6),Ka=Ya.slice(6),Va=Ka.slice(1),$a=ia(Ya),Ja=aa(Ya,0),Qa=aa(Wa,0),Xa=g(M,Ya),eo=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],no=["isoDay","isoMonth","isoYear"],to=eo.concat(no),ro=v(no),io=v(eo),ao=v(to),oo=aa(io,0),so=g(M,to),uo=1e8,co=uo*ca,lo=[uo,0],mo=[-uo,0],fo=275760,ho=-271821,yo=Intl.DateTimeFormat,Mo="en-GB",go=1970,po=1972,vo=12,wo=fe(1868,9,8),bo=i(Se,WeakMap),_o="smallestUnit",Eo="unit",To="roundingIncrement",Do="fractionalSecondDigits",So="relativeTo",Ao="direction",ko={constrain:0,reject:1},Co=Object.keys(ko),Po={compatible:0,reject:1,earlier:2,later:3},No={reject:0,use:1,prefer:2,ignore:3},zo={auto:0,never:1,critical:2,always:3},Ho={auto:0,never:1,critical:2},Io={auto:0,never:1},Fo={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Oo={previous:-1,next:1},Lo=g(qe,_o),Go=g(qe,"largestUnit"),Bo=g(qe,Eo),xo=g(We,"overflow",ko),Ro=g(We,"disambiguation",Po),jo=g(We,"offset",No),Zo=g(We,"calendarName",zo),Uo=g(We,"timeZoneName",Ho),Yo=g(We,"offset",Io),qo=g(We,"roundingMode",Fo),Wo="PlainYearMonth",Ko="PlainMonthDay",Vo="PlainDate",$o="PlainDateTime",Jo="PlainTime",Qo="ZonedDateTime",Xo="Instant",es="Duration",ns=[Math.floor,e=>k(e)?Math.floor(e):Math.round(e),Math.ceil,e=>k(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>k(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=>k(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ts="UTC",rs=5184e3,is=me(1847),as=me((new Date).getUTCFullYear()+10),os=/0+$/,ss=i(qn,WeakMap),us=2**32-1,cs=i(e=>{const n=Wt(e);return"object"==typeof n?new ds(n):new ls(n||0)});class ls{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const n=le({...e,...oo});if(!n||Math.abs(n[0])>1e8)throw new RangeError(Wi)})(e),[de(e,this.$)]}O(){}}class ds{constructor(e){this.nn=(e=>{function n(e){const n=_(e,o,s),[i,u]=St(n),c=r(i),l=r(u);return c===l?c:t(a(i,u),c,l,e)}function t(n,t,r,i){let a,o;for(;(void 0===i||void 0===(a=i<n[0]?t:i>=n[1]?r:void 0))&&(o=n[1]-n[0]);){const t=n[0]+Math.floor(o/2);e(t)===r?n[1]=t:n[0]=t+1}return a}const r=i(e),a=i(Dt);let o=is,s=as;return{tn(e){const t=n(e-86400),r=n(e+86400),i=e-t,a=e-r;if(t===r)return[i];const o=n(i);return o===n(a)?[e-o]:t>r?[i,a]:[]},rn:n,O(e,n){const i=_(e,o,s);let[u,c]=St(i);const l=rs*n,d=n<0?()=>c>o||(o=i,0):()=>u<s||(s=i,0);for(;d();){const i=r(u),o=r(c);if(i!==o){const r=a(u,c);t(r,i,o);const s=r[0];if((b(s,e)||1)===n)return s}u+=l,c+=l}}}})((e=>n=>{const t=ge(e,n*la);return me(zr(t),parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second))-n})(e))}R(e){return this.nn.rn((e=>ue(e)[0])(e))*fa}I(e){const[n,t]=[me((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*ma+r.isoMicrosecond*da+r.isoNanosecond];var r;return this.nn.tn(n).map(e=>ae(K(X(e,fa),t)))}O(e,n){const[t,r]=ue(e),i=this.nn.O(t+(n>0||r?1:0),n);if(void 0!==i)return X(i,fa)}}const ms="([+-])",fs="(?:[.,](\\d{1,9}))?",hs=`(?:(?:${ms}(\\d{6}))|(\\d{4}))-?(\\d{2})`,ys="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+fs+")?)?",Ms=ms+ys,gs=hs+"-?(\\d{2})(?:[T ]"+ys+"(Z|"+Ms+")?)?",ps="\\[(!?)([^\\]]*)\\]",vs=`((?:${ps}){0,9})`,ws=jt(hs+vs),bs=jt("(?:--)?(\\d{2})-?(\\d{2})"+vs),_s=jt(gs+vs),Es=jt("T?"+ys+"(?:"+Ms+")?"+vs),Ts=jt(Ms),Ds=new RegExp(ps,"g"),Ss=jt(`${ms}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${fs}H)?(?:(\\d+)${fs}M)?(?:(\\d+)${fs}S)?)?`),As=i(e=>new yo(Mo,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),ks=/^(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$/,Cs=/[^\w\/:+-]+/,Ps=/^M(\d{2})(L?)$/,Ns=i(kr),zs=i(e=>new yo(Mo,{calendar:e,timeZone:ts,era:"short",year:"numeric",month:"short",day:"numeric"})),Hs={P(e,n,r){const i=ze(r);let a,{years:o,months:s,weeks:u,days:c}=n;if(c+=wt(n,5)[0],o||s)a=((e,n,r,i,a)=>{let[o,s,u]=e.v(n);if(r){const[n,i]=e.q(o,s);o+=r,s=_r(n,i,e.L(o)),s=t("month",s,1,e.B(o),a)}return i&&([o,s]=e.un(o,s,i)),u=t("day",u,1,e.U(o,s),a),e.p(o,s,u)})(this,e,o,s,i);else{if(!u&&!c)return e;a=ce(e)}if(void 0===a)throw new RangeError(Wi);return a+=(7*u+c)*ca,re(Me(a))},N(e,n,t){if(t<=7){let r=0,i=fr({...e,...oo},{...n,...oo});return 7===t&&([r,i]=D(i,7)),{...Ja,weeks:r,days:i}}const r=this.v(e),i=this.v(n);let[a,o,s]=((e,n,t,r,i,a,o)=>{let s=i-n,u=a-t,c=o-r;if(s||u){const l=Math.sign(s||u);let d=e.U(i,a),m=0;if(Math.sign(c)===-l){const r=d;[i,a]=e.un(i,a,-l),s=i-n,u=a-t,d=e.U(i,a),m=l<0?-r:d}if(c=o-Math.min(r,d)+m,s){const[r,o]=e.q(n,t),[c,d]=e.q(i,a);if(u=c-r||Number(d)-Number(o),Math.sign(u)===-l){const t=l<0&&-e.B(i);s=(i-=l)-n,u=a-_r(r,o,e.L(i))+(t||e.B(i))}}}return[s,u,c]})(this,...r,...i);return 8===t&&(o+=this.cn(a,r[0]),a=0),{...Ja,years:a,months:o,days:s}},F(e,n){const t=ze(n),r=Jr(this,e),i=Qr(this,e,r,t),a=Xr(this,e,i,r,t);return Qe(re(this.V(r,i,a)),this.id||Oa)},K(e,n){const t=ze(n),r=Jr(this,e),i=Qr(this,e,r,t);return Xe(te(this.V(r,i,1)),this.id||Oa)},_(e,n){const t=ze(n);let r,i,a,o=void 0!==e.eraYear||void 0!==e.year?Jr(this,e):void 0;const s=!this.id;if(void 0===o&&s&&(o=po),void 0!==o){const n=Qr(this,e,o,t);r=Xr(this,e,n,o,t);const s=this.L(o);i=Er(n,s),a=n===s}else{if(void 0===e.monthCode)throw new TypeError(Fi);if([i,a]=wr(e.monthCode),this.id&&this.id!==La&&this.id!==Ga)if(this.id&&"coptic"===Ur(this.id)&&0===t){const n=a||13!==i?30:6;r=e.day,r=_(r,1,n)}else if(this.id&&"chinese"===Ur(this.id)&&0===t){const n=!a||1!==i&&9!==i&&10!==i&&11!==i&&12!==i?30:29;r=e.day,r=_(r,1,n)}else r=e.day;else r=Xr(this,e,Qr(this,e,po,t),po,t)}const u=this.G(i,a,r);if(!u)throw new RangeError("Cannot guess year");const[c,l]=u;return en(re(this.V(c,l,r)),this.id||Oa)},fields(e){return Dr(this)&&e.includes("year")?[...e,...Ta]:e},k(e,n){const t=Object.assign(Object.create(null),e);return ei(t,n,ka),Dr(this)&&(ei(t,n,Da),this.id===Ga&&ei(t,n,Ha,Ta)),t},inLeapYear(e){const[n]=this.v(e);return this.sn(n)},monthsInYear(e){const[n]=this.v(e);return this.B(n)},daysInMonth(e){const[n,t]=this.v(e);return this.U(n,t)},daysInYear(e){const[n]=this.v(e);return this.fn(n)},dayOfYear:vr,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[n,t]=this.v(e),[r,i]=this.q(n,t);return br(r,i)},dayOfWeek:Te,daysInWeek:()=>7},Is={v:pe,hn:De,q:ve},Fs={dayOfYear:vr,v:pe,p:fe},Os=Object.assign({},Fs,{weekOfYear:gr,yearOfWeek:pr,m(e){function n(e){return(7-e<r?7:0)-e}function t(e){const t=_e(m+e),r=e||1,i=n(T(u+t*r,7));return l=(t+(i-c)*r)/7}const r=this.id?1:4,i=Te(e),a=this.dayOfYear(e),o=T(i-1,7),s=a-1,u=T(o-s,7),c=n(u);let l,d=Math.floor((s-c)/7)+1,m=e.isoYear;return d?d>t(0)&&(d=1,m++):(d=t(-1),m--),[d,m,l]}}),Ls=Object.assign({},Hs,Os,{v:pe,hn:De,q:ve,G(e,n){if(!n)return[po,e]},sn:Ee,L(){},B:we,cn:e=>e*vo,U:be,fn:_e,V:(e,n,t)=>({isoYear:e,isoMonth:n,isoDay:t}),p:fe,un:(e,n,t)=>(e+=S(t,vo),(n+=A(t,vo))<1?(e--,n+=vo):n>vo&&(e++,n-=vo),[e,n]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Gs={v:Hr,hn:xr,q:Fr},Bs={dayOfYear:vr,v:Hr,p:Ir,weekOfYear:gr,yearOfWeek:pr,m:()=>[]},xs=Object.assign({},Hs,Bs,{v:Hr,hn:xr,q:Fr,G(e,n,t){const r=this.id&&"chinese"===Ur(this.id)?((e,n,t)=>{if(n)switch(e){case 1:return 1651;case 2:return t<30?1947:1765;case 3:return t<30?1966:1955;case 4:return t<30?1963:1944;case 5:return t<30?1971:1952;case 6:return t<30?1960:1941;case 7:return t<30?1968:1938;case 8:return t<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,n,t):po;let[i,a,o]=Hr.call(this,{isoYear:r,isoMonth:vo,isoDay:31});const s=Or.call(this,i),u=a===s;1===(b(e,Er(a,s))||b(Number(n),Number(u))||b(t,o))&&i--;for(let r=0;r<100;r++){const a=i-r,o=Or.call(this,a),s=_r(e,n,o);if(n===(s===o)&&t<=Gr.call(this,a,s))return[a,s]}},sn(e){const n=Lr.call(this,e);return n>Lr.call(this,e-1)&&n>Lr.call(this,e+1)},L:Or,B:Br,cn(e,n){const t=n+e,r=Math.sign(e),i=r<0?-1:0;let a=0;for(let e=n;e!==t;e+=r)a+=Br.call(this,e+i);return a},U:Gr,fn:Lr,V(e,n,t){return Me(Ir.call(this,e,n,t))},p:Ir,un(e,n,t){if(t){if(n+=t,!Number.isSafeInteger(n))throw new RangeError(Wi);if(t<0)for(;n<1;)n+=Br.call(this,--e);else{let t;for(;n>(t=Br.call(this,e));)n-=t,e++}}return[e,n]},year(e){return this.h(e).year},month(e){const{year:n,o:t}=this.h(e),{u:r}=this.l(n);return r[t]+1},day(e){return this.h(e).day}}),Rs=Yr(Is,Gs),js=Yr(Ls,xs),Zs={...{era:x,eraYear:Z,year:Z,month:Y,monthCode(e){const n=x(e);return wr(n),n},day:Y},...aa(pa,Z),...aa(Ya,U),offset(e){const n=x(e);return At(n),n}},Us=g(m,pa,eo),Ys=g(m,eo,pa),qs="numeric",Ws=["timeZoneName"],Ks={month:qs,day:qs},Vs={year:qs,month:qs},$s=Object.assign({},Vs,{day:qs}),Js={hour:qs,minute:qs,second:qs},Qs=Object.assign({},$s,Js),Xs=Object.assign({},Qs,{timeZoneName:"short"}),eu=Object.keys(Vs),nu=Object.keys(Ks),tu=Object.keys($s),ru=Object.keys(Js),iu=["dateStyle"],au=eu.concat(iu),ou=nu.concat(iu),su=tu.concat(iu,["weekday"]),uu=ru.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),cu=su.concat(uu),lu=Ws.concat(uu),du=Ws.concat(su),mu=Ws.concat(["day","weekday"],uu),fu=Ws.concat(["year","weekday"],uu),hu=ai(cu,Qs),yu=ai(cu,Xs),Mu=ai(cu,Qs,Ws),gu=ai(su,$s,lu),pu=ai(uu,Js,du),vu=ai(au,Vs,mu),wu=ai(ou,Ks,fu),bu={},_u=new yo(void 0,{calendar:Oa}).resolvedOptions().calendar===Oa,Eu=[hu,rn],Tu=[yu,rn,0,(e,n)=>{const t=e.timeZone;if(n&&n.timeZone!==t)throw new RangeError(Ri);return t}],Du=[Mu,ce],Su=[gu,ce],Au=[pu,e=>oe(e)/ma],ku=[vu,ce,_u],Cu=[wu,ce,_u];let Pu;function Nu(e,n,t,r,i){function c(...e){if(!(this instanceof c))throw new TypeError(Ai);rc(this,n(...e))}function d(e,n){return Object.defineProperties(function(...n){return e.call(this,m(this),...n)},a(n))}function m(n){const t=tc(n);if(!t||t.branding!==e)throw new TypeError(Ai);return t}return Object.defineProperties(c.prototype,{...s(l(d,t)),...o(l(d,r)),...u("Temporal."+e)}),Object.defineProperties(c,{...o(i),...a(e)}),[c,e=>{const n=Object.create(c.prototype);return rc(n,e),n},m]}function zu(e){if(tc(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Hu(e){return Iu(e)||Oa}function Iu(e){const{calendar:n}=e;if(void 0!==n)return Fu(n)}function Fu(e){if(r(e)){const{calendar:n}=tc(e)||{};if(!n)throw new TypeError(Gi(e));return n}return(e=>Zr(function(e){const n=It(e)||Ft(e)||Ot(e);return n?n.calendar:e}(ja(e))))(e)}function Ou(e){const n={};for(const t in e)n[t]=e=>{const{calendar:n}=e;return js(n)[t](e)};return n}function Lu(){throw new TypeError("Cannot use valueOf")}function Gu(e){if(r(e)){const{timeZone:n}=tc(e)||{};if(!n)throw new TypeError(xi(e));return n}return(e=>Yt(function(e){const n=It(e);return n&&(n.timeZone||n.j&&ts||n.offset)||e}(ja(e))))(e)}function Bu(e){if(r(e)){const n=tc(e);return n&&n.branding===es?n:function(e){const n=Kr(e,qa);return tn(pt({...Ja,...n}))}(e)}return function(e){const n=(e=>{const n=Ss.exec(e);return n?(e=>{function n(e,n,a){let o=0,s=0;if(a&&([o,i]=E(i,ga[a])),void 0!==e){if(r)throw new RangeError(na(e));s=(e=>{const n=parseInt(e);if(!Number.isFinite(n))throw new RangeError(na(e));return n})(e),t=1,n&&(i=Rt(n)*(ga[a]/fa),r=1)}return o+s}let t=0,r=0,i=0,a={...c(Ya,[n(e[2]),n(e[3]),n(e[4]),n(e[5]),n(e[6],e[7],5),n(e[8],e[9],4),n(e[10],e[11],3)]),...P(i,2,Ya)};if(!t)throw new RangeError(Di(Ya));return Zt(e[1])<0&&(a=Mt(a)),a})(n):void 0})(ja(e));if(!n)throw new RangeError(ea(e));return tn(pt(n))}(e)}function xu(e){if(void 0!==e){if(r(e)){const n=tc(e)||{};switch(n.branding){case Qo:case Vo:return n;case $o:return Qe(n)}const t=Hu(e);return{...qr(Gu,cs,js(t),e),calendar:t}}return function(e){const n=It(ja(e));if(!n)throw new RangeError(ea(e));if(n.timeZone)return Pt(n,n.offset?At(n.offset):void 0);if(n.j)throw new RangeError(ea(e));return zt(n)}(e)}}function Ru(e,n){if(r(e)){const t=tc(e)||{};switch(t.branding){case Jo:return ze(n),t;case $o:return ze(n),nn(t);case Qo:return ze(n),ii(cs,t)}return function(e,n){return nn(Vr(Kr(e,va,[],1),ze(n)))}(e,n)}const t=function(e){let n,t=(e=>{const n=Es.exec(e);return n?(xt(n[10]),Bt(n)):void 0})(ja(e));if(!t){if(t=It(e),!t)throw new RangeError(ea(e));if(!t.C)throw new RangeError(ea(e));if(t.j)throw new RangeError(na("Z"));Ct(t)}if((n=Ft(e))&&Ce(n))throw new RangeError(ea(e));if((n=Ot(e))&&Ce(n))throw new RangeError(ea(e));return nn(Ne(t,1))}(e);return ze(n),t}function ju(e){return void 0===e?void 0:Ru(e)}function Zu(e,n){if(r(e)){const t=tc(e)||{};switch(t.branding){case $o:return ze(n),t;case Vo:return ze(n),Je({...t,...oo});case Qo:return ze(n),ti(cs,t)}return function(e,n,t){const r=Wr(e,n,za,[],pa),i=ze(t);return Je(ie({...e.F(r,Ye(i)),...Vr(r,i)}))}(js(Hu(e)),e,n)}const t=function(e){const n=It(ja(e));if(!n||n.j)throw new RangeError(ea(e));return Je(Nt(n))}(e);return ze(n),t}function Uu(e,n){if(r(e)){const t=tc(e);if(t&&t.branding===Ko)return ze(n),t;const r=Iu(e);return function(e,n,t,r){const i=Wr(e,t,za,Ca);return n&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=po),e._(i,r)}(js(r||Oa),!r,e,n)}const t=function(e,n){const t=Ot(ja(n));if(t)return Ct(t),en(ke(t));const r=kt(n,0,1),{calendar:i}=r,a=e(i),[o,s,u]=a.v(r),[c,l]=a.q(o,s),[d,m]=a.G(c,l,u);return en(re(a.V(d,m,u)),i)}(js,e);return ze(n),t}function Yu(e,n){if(r(e)){const t=tc(e);return t&&t.branding===Wo?(ze(n),t):function(e,n,t,r){const i=Wr(e,n,Pa,r);return e.K(i,t)}(js(Hu(e)),e,n)}const t=function(e,n){const t=Ft(ja(n));if(t)return Ct(t),Xe(te(ke(t)));const r=kt(n,1);return Xe(at(e(r.calendar),r))}(js,e);return ze(n),t}function qu(e,n){if(r(e)){const t=tc(e)||{};switch(t.branding){case Vo:return ze(n),t;case $o:return ze(n),Qe(t);case Qo:return ze(n),ri(cs,t)}return function(e,n,t,r=[]){const i=Wr(e,n,za,r);return e.F(i,t)}(js(Hu(e)),e,n)}const t=kt(e);return ze(n),t}function Wu(e,n){if(r(e)){const t=tc(e);if(t&&t.branding===Qo)return He(n),t;const r=Hu(e);return function(e,n,t,r,i,a){const o=Wr(t,i,za,ba,Ea),s=e(o.timeZone),[u,c,l]=He(a),d=t.F(o,Ye(u)),m=Vr(o,u);return $e(Wn(n(s),{...d,...m},void 0!==o.offset?At(o.offset):void 0,c,l),s,r)}(Gu,cs,js(r),r,e,n)}return function(e,n){const t=It(ja(e));if(!t||!t.timeZone)throw new RangeError(ea(e));const{offset:r}=t,i=r?At(r):void 0,[,a,o]=He(n);return Pt(t,i,a,o)}(e,n)}function Ku(e){return l(e=>n=>e(Vu(n)),e)}function Vu(e){return ss(e,cs)}function $u(e){if(r(e)){const n=tc(e);if(n)switch(n.branding){case Xo:return n;case Qo:return Ve(n.epochNanoseconds)}}return function(e){const n=It(e=x(e));if(!n)throw new RangeError(ea(e));let t;if(n.j)t=0;else{if(!n.offset)throw new RangeError(ea(e));t=At(n.offset)}return n.timeZone&&Lt(n.timeZone,1),Ve(de(Ae(n),t))}(e)}function Ju(){function e(e,t){return new n(e,t)}function n(e,n=Object.create(null)){jc.set(this,((e,n)=>{const t=new yo(e,n),r=t.resolvedOptions(),a=r.locale,o=f(Object.keys(n),r),s=i(ec),u=(e,...n)=>{if(e){if(2!==n.length)throw new TypeError(ta);for(const e of n)if(void 0===e)throw new TypeError(ta)}e||void 0!==n[0]||(n=[]);const r=n.map(e=>tc(e)||Number(e));let i,u=0;for(const e of r){const n="object"==typeof e?e.branding:void 0;if(u++&&n!==i)throw new TypeError(ta);i=n}return i?s(i)(a,o,...r):[t,...r]};return u.X=t,u})(e,n))}const t=yo.prototype,r=Object.getOwnPropertyDescriptors(t),o=Object.getOwnPropertyDescriptors(yo);for(const n in r){const t=r[n],i=n.startsWith("format")&&Qu(n);"function"==typeof t.value?t.value="constructor"===n?e:i||Xu(n):i&&(t.get=function(){if(!jc.has(this))throw new TypeError(Ai);return(...e)=>i.apply(this,e)},Object.defineProperties(t.get,a(`get ${n}`)))}return o.prototype.value=n.prototype=Object.create({},r),Object.defineProperties(e,o),e}function Qu(e){return Object.defineProperties(function(...n){const t=jc.get(this),[r,...i]=t(e.includes("Range"),...n);return r[e](...i)},a(e))}function Xu(e){return Object.defineProperties(function(...n){return jc.get(this).X[e](...n)},a(e))}function ec(e){const n=gc[e];if(!n)throw new TypeError((e=>`Cannot format ${e}`)(e));return oi(n,i(si),1)}const nc=new WeakMap,tc=nc.get.bind(nc),rc=nc.set.bind(nc),ic={era:function(e){if(void 0!==e)return ja(e)},eraYear:N,year:H,month:z,daysInMonth:z,daysInYear:z,inLeapYear:Za,monthsInYear:z},ac={monthCode:ja},oc={day:z},sc={dayOfWeek:z,dayOfYear:z,weekOfYear:function(e){if(void 0!==e)return z(e)},yearOfWeek:N,daysInWeek:z},uc=Ou(Object.assign({},ic,ac,oc,sc)),cc=Ou({...ic,...ac}),lc=Ou({...ac,...oc}),dc={calendarId:e=>e.calendar},mc=d(e=>n=>n[e],Ya.concat("sign")),fc=d((e,n)=>e=>e[eo[n]],pa),hc={epochMilliseconds:rn,epochNanoseconds:function(e){return((e,n=1)=>{const[t,r]=e,i=Math.floor(r/n),a=Ma/n;return BigInt(t)*BigInt(a)+BigInt(i)})(e.epochNanoseconds)}},[yc,Mc]=Nu(es,function(e=0,n=0,t=0,r=0,i=0,a=0,o=0,s=0,u=0,d=0){return tn(pt(l(U,c(Ya,[e,n,t,r,i,a,o,s,u,d]))))},{...mc,blank:function(e){return!e.sign}},{with:(e,n)=>Mc(function(e,n){return tn((t=e,r=n,pt({...t,...Kr(r,qa)})));var t,r}(e,n)),negated:e=>Mc(yt(e)),abs:e=>Mc(function(e){return-1===e.sign?yt(e):e}(e)),add:(e,n,t)=>Mc(ht(xu,js,cs,0,e,Bu(n),t)),subtract:(e,n,t)=>Mc(ht(xu,js,cs,1,e,Bu(n),t)),round:(e,n)=>Mc(function(e,n,t,r,i){const a=Tt(r),[o,s,u,c,l]=((e,n,t)=>{e=Ue(e,_o);let r=Go(e);const i=t(e[So]);let a=xe(e);const o=qo(e,7);let s=Lo(e);if(void 0===r&&void 0===s)throw new RangeError(Qi);if(null==s&&(s=0),null==r&&(r=Math.max(s,n)),Ke(r,s),a=Re(a,s,1),a>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,a,o,i]})(i,a,e),d=Math.max(a,o);if(!l&&d<=6)return tn(pt(((e,n,t,r,i)=>{const a=pn(wt(e),t,r,i);return{...Ja,...bt(a,n)}})(r,o,s,u,c)));if(!mt(l)&&!r.sign)return r;if(!l)throw new RangeError($i);const[m,f,h]=ut(n,t,l),y=ct(h),M=lt(h),g=dt(h),p=M(f,m,r);mt(l)||(ie(m),ie(p));let v=g(f,m,p,o);const w=r.sign,b=gt(v);if(w&&b&&w!==b)throw new RangeError(Li);return v=gn(v,y(p),o,s,u,c,f,m,y,M),tn(v)}(xu,js,cs,e,n)),total:(e,n)=>function(e,n,t,r,i){const a=Tt(r),[o,s]=((e,n)=>{const t=n((e=Ue(e,Eo))[So]);let r=Bo(e);return r=I(Eo,r),[r,t]})(i,e),u=Math.max(o,a);if(!s&&ft(u,s))return on(r,o);if(!s)throw new RangeError($i);if(!r.sign)return 0;const[c,l,d]=ut(n,t,s),m=ct(d),f=lt(d),h=dt(d),y=f(l,c,r);mt(s)||(ie(c),ie(y));const M=h(l,c,y,o);return ft(o,s)?on(M,o):((e,n,t,r,i,a,o)=>{const s=gt(e),[u,c]=sn(r,Xa(t,e),t,s,i,a,o),l=un(n,u,c);return e[Ya[t]]+l*s})(M,m(y),o,l,c,m,f)}(xu,js,cs,e,n),toLocaleString(e,n,t){return Intl.DurationFormat?new Intl.DurationFormat(n,t).format(this):zn(e)},toString:zn,toJSON:e=>zn(e),valueOf:Lu},{from:e=>Mc(Bu(e)),compare:(e,n,t)=>function(e,n,t,r,i,a){const o=e(Ze(a).relativeTo),s=Math.max(Tt(r),Tt(i));if(y(Ya,r,i))return 0;if(ft(s,o))return $(wt(r),wt(i));if(!o)throw new RangeError($i);const[u,c,l]=ut(n,t,o),d=ct(l),m=lt(l);return $(d(m(c,u,r)),d(m(c,u,i)))}(xu,js,cs,Bu(e),Bu(n),t)}),gc={Instant:Eu,PlainDateTime:Du,PlainDate:Su,PlainTime:Au,PlainYearMonth:ku,PlainMonthDay:Cu},pc=oi(Eu),vc=oi(Tu),wc=oi(Du),bc=oi(Su),_c=oi(Au),Ec=oi(ku),Tc=oi(Cu),[Dc,Sc]=Nu(Jo,function(e=0,n=0,t=0,r=0,i=0,a=0){return nn(Ne(l(Z,c(eo,[e,n,t,r,i,a])),1))},fc,{with(e,n,t){return Sc(function(e,n,t){return nn(((e,n,t)=>Vr({...f(va,e),...Kr(n,va)},ze(t)))(e,n,t))}(this,zu(n),t))},add:(e,n)=>Sc(nt(0,e,Bu(n))),subtract:(e,n)=>Sc(nt(1,e,Bu(n))),until:(e,n,t)=>Mc(or(0,e,Ru(n),t)),since:(e,n,t)=>Mc(or(1,e,Ru(n),t)),round:(e,n)=>Sc(function(e,n){const[t,r,i]=Fe(n,5);var a;return nn((a=i,dn(e,fn(t,r),a)[0]))}(e,n)),equals:(e,n)=>function(e,n){return!Qt(e,n)}(e,Ru(n)),toLocaleString(e,n,t){const[r,i]=_c(n,t,e);return r.format(i)},toString:Nn,toJSON:e=>Nn(e),valueOf:Lu},{from:(e,n)=>Sc(Ru(e,n)),compare:(e,n)=>Qt(Ru(e),Ru(n))}),[Ac,kc]=Nu($o,g(function(e,n,t,r,i=0,a=0,o=0,s=0,u=0,d=0,m=Oa){return Je(ie(Ae(l(Z,c(to,[n,t,r,i,a,o,s,u,d])))),e(m))},jr),{...dc,...uc,...fc},{with:(e,n,t)=>kc(function(e,n,t,r){const i=e(n.calendar),a=[...i.fields(za),...pa].sort(),o={...ni(s=n),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const u=Kr(t,a),c=ze(r),l=i.k(o,u),d={...o,...u};return Je(ie({...i.F(l,Ye(c)),...Ne(Us(d),c)}))}(js,e,zu(n),t)),withCalendar:(e,n)=>kc(ci(e,Fu(n))),withPlainTime:(e,n)=>kc(function(e,n=oo){return Je(ie({...e,...n}))}(e,ju(n))),add:(e,n,t)=>kc(Qn(js,0,e,Bu(n),t)),subtract:(e,n,t)=>kc(Qn(js,1,e,Bu(n),t)),until:(e,n,t)=>Mc(tr(js,0,e,Zu(n),t)),since:(e,n,t)=>Mc(tr(js,1,e,Zu(n),t)),round:(e,n)=>kc(function(e,n){return Je(cn(e,...Fe(n)),e.calendar)}(e,n)),equals:(e,n)=>function(e,n){return!$t(e,n)&&e.calendar===n.calendar}(e,Zu(n)),toZonedDateTime:(e,n,t)=>Oc(function(e,n,t,r){const i=((e,n,t,r)=>{const i=(e=>Ro(Ze(e)))(r);return Kn(e(n),t,i)})(e,t,n,r);return $e(ae(i),t,n.calendar)}(cs,e,Gu(n),t)),toPlainDate:e=>Ic(Qe(e)),toPlainTime:e=>Sc(nn(e)),toLocaleString(e,n,t){const[r,i]=wc(n,t,e);return r.format(i)},toString:An,toJSON:e=>An(e),valueOf:Lu},{from:(e,n)=>kc(Zu(e,n)),compare:(e,n)=>$t(Zu(e),Zu(n))}),[Cc,Pc]=Nu(Ko,g(function(e,n,t,r=Oa,i=po){const a=Z(n),o=Z(t),s=e(r);return en(re(ke({isoYear:Z(i),isoMonth:a,isoDay:o})),s)},jr),{...dc,...lc},{with:(e,n,t)=>Pc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(za).sort(),o=(e=>{const n=Rs(e.calendar),[t,r,i]=n.v(e),[a,o]=n.q(t,r);return{monthCode:br(a,o),day:i}})(n),s=Kr(t,a),u=i.k(o,s);return i._(u,r)}(js,e,zu(n),t)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,Uu(n)),toPlainDate(e,n){return Ic(function(e,n,t,r){return((e,n,t)=>$r(e,n,Ia,F(t),Sa))(e(n.calendar),t,r)}(js,e,this,n))},toLocaleString(e,n,t){const[r,i]=Tc(n,t,e);return r.format(i)},toString:Pn,toJSON:e=>Pn(e),valueOf:Lu},{from:(e,n)=>Pc(Uu(e,n))}),[Nc,zc]=Nu(Wo,g(function(e,n,t,r=Oa,i=1){const a=Z(n),o=Z(t),s=e(r);return Xe(te(ke({isoYear:a,isoMonth:o,isoDay:Z(i)})),s)},jr),{...dc,...cc},{with:(e,n,t)=>zc(function(e,n,t,r){const i=e(n.calendar),a=i.fields(Pa).sort(),o=(e=>{const n=Rs(e.calendar),[t,r]=n.v(e),[i,a]=n.q(t,r);return{year:t,monthCode:br(i,a)}})(n),s=Kr(t,a),u=i.k(o,s);return i.K(u,r)}(js,e,zu(n),t)),add:(e,n,t)=>zc(et(js,0,e,Bu(n),t)),subtract:(e,n,t)=>zc(et(js,1,e,Bu(n),t)),until:(e,n,t)=>Mc(ir(js,0,e,Yu(n),t)),since:(e,n,t)=>Mc(ir(js,1,e,Yu(n),t)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,Yu(n)),toPlainDate(e,n){return Ic(function(e,n,t,r){return((e,n,t)=>$r(e,n,Na,F(t),Ca))(e(n.calendar),t,r)}(js,e,this,n))},toLocaleString(e,n,t){const[r,i]=Ec(n,t,e);return r.format(i)},toString:Cn,toJSON:e=>Cn(e),valueOf:Lu},{from:(e,n)=>zc(Yu(e,n)),compare:(e,n)=>Jt(Yu(e),Yu(n))}),[Hc,Ic]=Nu(Vo,g(function(e,n,t,r,i=Oa){return Qe(re(ke(l(Z,{isoYear:n,isoMonth:t,isoDay:r}))),e(i))},jr),{...dc,...uc},{with:(e,n,t)=>Ic(function(e,n,t,r){const i=e(n.calendar),a=i.fields(za).sort(),o=ni(n),s=Kr(t,a),u=i.k(o,s);return i.F(u,r)}(js,e,zu(n),t)),withCalendar:(e,n)=>Ic(ci(e,Fu(n))),add:(e,n,t)=>Ic(Xn(js,0,e,Bu(n),t)),subtract:(e,n,t)=>Ic(Xn(js,1,e,Bu(n),t)),until:(e,n,t)=>Mc(rr(js,0,e,qu(n),t)),since:(e,n,t)=>Mc(rr(js,1,e,qu(n),t)),equals:(e,n)=>function(e,n){return!Jt(e,n)&&e.calendar===n.calendar}(e,qu(n)),toZonedDateTime(e,n){const t=r(n)?n:{timeZone:n};return Oc(function(e,n,t,r,i){const a=e(i.timeZone),o=i.plainTime,s=void 0!==o?n(o):void 0,u=t(a);let c;return c=s?Kn(u,{...r,...s}):Vn(u,{...r,...oo}),$e(c,a,r.calendar)}(Gu,Ru,cs,e,t))},toPlainDateTime:(e,n)=>kc(function(e,n=oo){return Je(ie({...e,...n}))}(e,ju(n))),toPlainYearMonth(e){return zc(function(e,n,t){return((e,n)=>{const t=Wr(e,n,Na);return e.K(t,void 0)})(e(n.calendar),t)}(js,e,this))},toPlainMonthDay(e){return Pc(function(e,n,t){return((e,n)=>{const t=Wr(e,n,Ia);return e._(t)})(e(n.calendar),t)}(js,e,this))},toLocaleString(e,n,t){const[r,i]=bc(n,t,e);return r.format(i)},toString:kn,toJSON:e=>kn(e),valueOf:Lu},{from:(e,n)=>Ic(qu(e,n)),compare:(e,n)=>Jt(qu(e),qu(n))}),[Fc,Oc]=Nu(Qo,g(function(e,n,t,r,i=Oa){return $e(ae(Q(R(t))),n(r),e(i))},jr,function(e){return Yt(ja(e))}),{...hc,...dc,...Ku(uc),...Ku(fc),offset:e=>xn(Vu(e).offsetNanoseconds),offsetNanoseconds:e=>Vu(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,n){const t=e(n.timeZone),r=ss(n,t),[i,a]=hn(r),o=ee(V(Vn(t,i),Vn(t,a)),ya,1);if(o<=0)throw new RangeError(Li);return o}(cs,e)},{with:(e,n,t)=>Oc(function(e,n,t,r,i){const{calendar:a,timeZone:o}=t,s=e(a),u=n(o),c=[...s.fields(za),..._a].sort(),l=(e=>{const n=ss(e,cs),t=xn(n.offsetNanoseconds),r=Rs(e.calendar),[i,a,o]=r.v(n),[s,u]=r.q(i,a),c=br(s,u);return{...Ys(n),year:i,monthCode:c,day:o,offset:t}})(t),d=Kr(r,c),m=s.k(l,d),f={...l,...d},[h,y,M]=He(i,2);return $e(Wn(u,{...s.F(m,Ye(h)),...Ne(Us(f),h)},At(f.offset),y,M),o,a)}(js,cs,e,zu(n),t)),withCalendar:(e,n)=>Oc(ci(e,Fu(n))),withTimeZone:(e,n)=>Oc(function(e,n){return{...e,timeZone:n}}(e,Gu(n))),withPlainTime:(e,n)=>Oc(function(e,n,t){const r=n.timeZone,i=e(r),a={...ss(n,i),...t||oo};let o;return o=t?Wn(i,a,a.offsetNanoseconds,2):Vn(i,a),$e(o,r,n.calendar)}(cs,e,ju(n))),add:(e,n,t)=>Oc(Jn(js,cs,0,e,Bu(n),t)),subtract:(e,n,t)=>Oc(Jn(js,cs,1,e,Bu(n),t)),until:(e,n,t)=>Mc(tn(nr(js,cs,0,e,Wu(n),t))),since:(e,n,t)=>Mc(tn(nr(js,cs,1,e,Wu(n),t))),round:(e,n)=>Oc(function(e,n,t){let{epochNanoseconds:r,timeZone:i,calendar:a}=n;const[o,s,u]=Fe(t);if(0===o&&1===s)return n;const c=e(i);if(6===o)r=((e,n,t,r)=>{const i=ss(t,n),[a,o]=e(i),s=t.epochNanoseconds,u=Vn(n,a),c=Vn(n,o);if(J(s,u,c))throw new RangeError(Li);return bn(un(s,u,c),r)?c:u})(hn,c,n,u);else{const e=c.R(r);r=Wn(c,cn(ye(r,e),o,s,u),e,2,0,1)}return $e(r,i,a)}(cs,e,n)),startOfDay:e=>Oc(function(e,n){const{timeZone:t,calendar:r}=n,i=((e,n,t)=>Vn(n,e(ss(t,n))))(yn,e(t),n);return $e(i,t,r)}(cs,e)),equals:(e,n)=>function(e,n){return!Vt(e,n)&&!!Xt(e.timeZone,n.timeZone)&&e.calendar===n.calendar}(e,Wu(n)),toInstant:e=>Gc(function(e){return Ve(e.epochNanoseconds)}(e)),toPlainDateTime:e=>kc(ti(cs,e)),toPlainDate:e=>Ic(ri(cs,e)),toPlainTime:e=>Sc(ii(cs,e)),toLocaleString(e,n,t={}){const[r,i]=vc(n,t,e);return r.format(i)},toString:(e,n)=>Sn(cs,e,n),toJSON:e=>Sn(cs,e),valueOf:Lu,getTimeZoneTransition(e,n){const{timeZone:t,epochNanoseconds:r}=e,i=function(e){const n=Ue(e,Ao),t=We(Ao,Oo,n,0);if(!t)throw new RangeError(bi(Ao,t));return t}(n),a=cs(t).O(r,i);return a?Oc({...e,epochNanoseconds:a}):null}},{from:(e,n)=>Oc(Wu(e,n)),compare:(e,n)=>Vt(Wu(e),Wu(n))}),[Lc,Gc]=Nu(Xo,function(e){return Ve(ae(Q(R(e))))},hc,{add:(e,n)=>Gc($n(0,e,Bu(n))),subtract:(e,n)=>Gc($n(1,e,Bu(n))),until:(e,n,t)=>Mc(er(0,e,$u(n),t)),since:(e,n,t)=>Mc(er(1,e,$u(n),t)),round:(e,n)=>Gc(function(e,n){const[t,r,i]=Fe(n,5,1);return Ve(pn(e.epochNanoseconds,t,r,i,1))}(e,n)),equals:(e,n)=>function(e,n){return!Kt(e,n)}(e,$u(n)),toZonedDateTimeISO:(e,n)=>Oc(function(e,n,t=Oa){return $e(e.epochNanoseconds,n,t)}(e,Gu(n))),toLocaleString(e,n,t){const[r,i]=pc(n,t,e);return r.format(i)},toString:(e,n)=>Dn(Gu,cs,e,n),toJSON:e=>Dn(Gu,cs,e),valueOf:Lu},{from:e=>Gc($u(e)),fromEpochMilliseconds:e=>Gc(function(e){return Ve(ae(X(U(e),ma)))}(e)),fromEpochNanoseconds:e=>Gc(function(e){return Ve(ae(Q(R(e))))}(e)),compare:(e,n)=>Kt($u(e),$u(n))}),Bc=Object.defineProperties({},{...u("Temporal.Now"),...o({timeZoneId:()=>mi(),instant:()=>Gc(Ve(di())),zonedDateTimeISO:(e=mi())=>Oc($e(di(),Gu(e),Oa)),plainDateTimeISO:(e=mi())=>kc(Je(li(cs(Gu(e))),Oa)),plainDateISO:(e=mi())=>Ic(Qe(li(cs(Gu(e))),Oa)),plainTimeISO:(e=mi())=>Sc(nn(li(cs(Gu(e)))))})}),xc=Object.defineProperties({},{...u("Temporal"),...o({PlainYearMonth:Nc,PlainMonthDay:Cc,PlainDate:Hc,PlainTime:Dc,PlainDateTime:Ac,ZonedDateTime:Fc,Instant:Lc,Duration:yc,Now:Bc})}),Rc=Ju(),jc=new WeakMap;function Zc(e,...n){let t=bbn.lng[e]||e;if(n.length){let e=0;return t.replace(/\%([d|s])/g,(t,r)=>{let i=n[e++];i||(i="d"===r?0:"");const a=typeof i;return"d"===r&&"number"!==a?(i=parseFloat(i),isNaN(i)&&(i=0)):"s"===r&&"string"!==a&&(i=""+i),i})}return t}Object.create(Intl),o({DateTimeFormat:Rc});var Uc,Yc,qc,Wc,Kc,Vc,$c={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}},Jc={siteTitle:null===(Uc=globalThis.document)||void 0===Uc?void 0:Uc.title,logging:!1,cdn:"",lang:"en",host:(null===(Yc=globalThis.location)||void 0===Yc?void 0:Yc.protocol)+"//"+(null===(qc=globalThis.location)||void 0===qc?void 0:qc.hostname),url:null===(Wc=globalThis.location)||void 0===Wc?void 0:Wc.href,old_path:null,getParameters:{},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===(Kc=globalThis.document)||void 0===Kc?void 0:Kc.hidden),timeoff:Math.round((new Date).getTime()/1e3),loggingLevel:5,ignoreUnload:!1,historyDisabled:!1,nav:"ajax",online:null===(Vc=globalThis.navigator)||void 0===Vc?void 0:Vc.onLine},Qc=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};class Xc extends Error{constructor(e){super(e||"Request canceled"),this.name="Cancel",this.__BBN_CANCEL__=!0}}const el=["POST","PUT","PATCH","DELETE"],nl=(e,n,t={},r)=>{const i=new XMLHttpRequest,a=el.includes(e.toUpperCase()),o=new Promise((r,o)=>{i.open(e.toUpperCase(),n,!0);const{body:s,headers:u}=((e,n)=>{const t=new Headers(n||{});let r=e;return null==e||e instanceof FormData||"object"!=typeof e||(t.set("Content-Type","application/json"),r=JSON.stringify(e)),{body:r,headers:t}})(t.data,t.headers);u.forEach((e,n)=>{i.setRequestHeader(n,e)}),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e=>{const n=e.lengthComputable?e.total:void 0;t.onUploadProgress({loaded:e.loaded,total:n,progress:n?e.loaded/n:void 0})}),i.onreadystatechange=()=>{if(4!==i.readyState)return;const e=(e=>{const n={};return e?(e.trim().split(/[\r\n]+/).forEach(e=>{const t=e.split(": "),r=t.shift(),i=t.join(": ");r&&(n[r.toLowerCase()]=i)}),n):n})(i.getAllResponseHeaders()),n=1223===i.status?204:i.status,a=i.statusText||"";let s=i.responseText;if((e["content-type"]||"").includes("application/json"))try{s=JSON.parse(i.responseText)}catch(e){}const u={data:s,status:n,statusText:a,headers:e,config:t,request:i};if(n>=200&&n<300)r(u);else{const e=new Error("Request failed with status code "+n);e.response=u,e.config=t,e.request=i,o(e)}},i.onerror=()=>{const e=new Error("Network Error");e.config=t,e.request=i,o(e)},i.onabort=()=>{o(new Xc("Request canceled"))},a?i.send(s):i.send()});return o.cancel=()=>i.abort(),o};var tl={isCancel:e=>!(!e||!0!==e.__BBN_CANCEL__),run:(e,n,t={},r)=>{t.baseURL&&!/^https?:\/\//i.test(n)&&(n=t.baseURL.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,"")),n=((e,n)=>{if(!n)return e;const t=new URLSearchParams(n).toString();return t?e+(e.includes("?")?"&":"?")+t:e})(n,t.params);return"function"==typeof t.onUploadProgress&&el.includes(e.toUpperCase())?nl(e,n,t):((e,n,t={},r)=>{const i={method:e,headers:new Headers(t.headers||{}),signal:null==r?void 0:r.signal},a=el.includes(e.toUpperCase());if(null!=t.data&&a&&("object"!=typeof t.data||t.data instanceof FormData?i.body=t.data:(i.headers.set("Content-Type","application/json"),i.body=JSON.stringify(t.data))),t.params){const e=new URLSearchParams(t.params).toString();n+=(n.includes("?")?"&":"?")+e}const o=fetch(n,i).then(e=>Qc(void 0,void 0,void 0,function*(){let n;const r=e.headers.get("content-type")||"";try{n=r.includes("application/json")?yield e.json():r.startsWith("text/")?yield e.text():r.includes("multipart/")?yield e.arrayBuffer():yield e.blob()}catch(t){n=yield e.text()}const i={data:n,status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries()),config:t,request:e};if(!e.ok){const n=new Error("Request failed with status code "+e.status);throw n.response=i,n.config=t,n.request=e,n}return i})).catch(e=>{if("AbortError"===e.name)throw new Xc("Request canceled");throw e});return o.cancel=()=>r.abort(),o})(e,n,t,r)}};function rl(...e){if(!e.length)return!1;for(let n of e)if("[object String]"!=={}.toString.apply(n))return!1;return!0}function il(...e){if(!e.length)return!1;for(let n of e)if(!Number.isInteger(n))return!1;return!0}function al(...e){if(!e.length)return!1;for(let n of e)if(!(n&&n.constructor&&n.call&&n.apply))return!1;return!0}function ol(...e){var n,t,r,i;if((null===(t=null===(n=globalThis.bbn)||void 0===n?void 0:n.env)||void 0===t?void 0:t.logging)&&void 0!==globalThis.console){let n,t=5,a="log";e[0]&&"object"==typeof e[0]&&e[0]._bbn_console_style&&(e[0]._bbn_console_mode&&al(globalThis.console[e[0]._bbn_console_mode])?a=e[0]._bbn_console_mode:(n=e[0]._bbn_console_style,t=e[0]._bbn_console_level),e.shift());const o=globalThis.console[a];if((null===(i=null===(r=globalThis.bbn)||void 0===r?void 0:r.env)||void 0===i?void 0:i.loggingLevel)>=t){let t=0;for(;t<e.length;){let r=typeof e[t],i=[e[t]];"string"!==r&&"number"!==r||i.unshift("%c %s ",n),o.apply(globalThis.console,i),t++}}}}function sl(e,n,t){if(!rl(e)||!il(n))throw ol(arguments),new Error(bbn._("The substr function should be applied to a string and at least a `from` argument should be given"));return n<0&&(n=e.length+n),il(t)?e.substring(n,(t<0?e.length:n)+t):e.substring(n)}function ul(e,n=!1){let t=null;if("object"==typeof e)for(var r in t={},e)sl(r,0,1).match(/^[A-z0-9]$/)&&r in e&&(n&&"object"==typeof e[r]?t[r]=ul(e[r],!0):t[r]=e[r]);return t||!1}function cl(e,n,t=!1,r=!1){if(null!==e&&"object"==typeof e){let i=Object.keys(t?ul(e):e);r&&i.reverse();for(let t of i)if(!1===n(e[t],t))break}return e}function ll(...e){if(!e.length)return!1;for(let n of e)if("[object Object]"!=={}.toString.apply(n))return!1;return!0}function dl(...e){if(!e.length)return!1;for(let n of e)if(!Array.isArray(n))return!1;return!0}function ml(...e){if(!e.length)return!1;for(let n of e)if(["boolean","object","symbol"].includes(typeof n)||""===n||isNaN(n))return!1;return!0}function fl(...e){if(!e.length)return!1;for(let n of e)if(!n||"object"!=typeof n||!(Symbol.iterator in Object(n)))return!1;return!0}function hl(e,n){if(!(ml(e)&&e>0)){if(fl(e)){for(let t=0;t<e.length;t++)if(!1===n(e[t],t))return;return e}return cl(e,n)}for(let t=0;t<e;t++)if(!1===n(t,t))return}function yl(...e){let n=!1,t=[];for(let r=0;r<e.length;r++)if(!0===e[r])n=!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]);t.push(e[r])}if(!t.length)throw new Error("No argument given");let r,i=t[0];for(let e=1;e<t.length;e++)cl(t[e],(e,t)=>{n?dl(e)?(i[t]=dl(i[t])?i[t]:[],hl(e,(e,n)=>{if(e&&"object"==typeof e){let r=i[t][n];dl(e)?dl(r)||(r=[]):ll(r)||(r={}),i[t][n]=yl(!0,r,e)}else i[t][n]=e})):ll(e)?i[t]=yl(!0,i[t]&&"object"==typeof i[t]?i[t]:Object.create(Object.getPrototypeOf(e)),e):i[t]=e:(i[t]!==e||void 0===e&&!Object.prototype.hasOwnProperty.apply(i,[t]))&&(i[t]=e)}),r||(r=!!t[e].__bbnNoData);return r&&"bbnData"in window&&(i.__bbnData&&i.__bbnData.unset(),Object.defineProperty(i,"__bbnNoData",{value:!0,enumerable:!1,configurable:!1,writable:!1})),i}var Ml=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};const gl=globalThis.indexedDB||globalThis.webkitIndexedDB||globalThis.mozIndexedDB||globalThis.OIndexedDB||globalThis.msIndexedDB,pl=(e,n)=>{if(e){if(null==n?void 0:n.length){const t={};return cl(e,(e,r)=>{n.includes(r)&&(t[r]=e)}),t}return e}},vl=(e,n=[])=>{var t;return(null===(t=null==e?void 0:e.conditions)||void 0===t?void 0:t.length)?e.conditions.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&vl(e,n)}):ll(e)?cl(e,(e,t)=>{n.includes(t)||n.push(t)}):dl(e)&&e.forEach(e=>{e.field&&!n.includes(e.field)?n.push(e.field):e.conditions&&vl(e,n)}),n},wl=e=>{const n=e.keys.PRIMARY.columns;return n.length>1?n:n[0]},bl=e=>new Promise((n,t)=>{e.onsuccess=()=>n(e.result),e.onerror=()=>t(e.error)}),_l=e=>new Promise((n,t)=>{e.oncomplete=()=>n(),e.onabort=()=>t(e.error),e.onerror=()=>t(e.error)});class El{constructor(e){this.lastErr=null,this.dbName=e}hasMissingStores(e,n){const t=Tl._structures[e]||{};return Object.keys(t).some(e=>!n.objectStoreNames.contains(e))}getConnection(){return Ml(this,arguments,void 0,function*(e=""){let n=Tl._connections[e||this.dbName];if(!n){if(yield Tl.open(e||this.dbName),!Tl._connections[e||this.dbName])throw new Error(Zc("The database %s is not open",this.dbName));n=Tl._connections[e||this.dbName]}return n})}get structure(){const e=Tl._structures[this.dbName];if(!e)throw new Error(Zc("No structure defined for database %s",this.dbName));return e}getStore(e,n){return Ml(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!this.structure[e])throw new Error(Zc("Table %s is not defined in database structure %s",e,this.dbName));if(!t.objectStoreNames.contains(e))throw new Error(Zc("Table %s does not exist in database %s. Schema upgrade required.",e,this.dbName));const r=t.transaction([e],n);return r.onabort=()=>{this.lastErr=r.error,ol(r.error)},r.onerror=()=>{this.lastErr=r.error,ol(r.error)},[r,r.objectStore(e)]})}lastError(){return this.lastErr}close(){const e=Tl._connections[this.dbName];e&&(e.close(),delete Tl._connections[this.dbName])}insert(e,n){return Ml(this,void 0,void 0,function*(){const t=Array.isArray(n)?n:[n];if(!t.length)return 0;const[r,i]=yield this.getStore(e,"readwrite");let a=0;for(const e of t){const n=i.put(e);n.onsuccess=()=>{a++},n.onerror=()=>{this.lastErr=n.error,ol(n.error)}}return yield _l(r),a})}update(e,n,t){return Ml(this,arguments,void 0,function*(e,n,t,r=!1){const i=yield this.selectAll(e,[],t);if(!i.length)return 0;const a=this.structure[e],o=wl(a);if(Array.isArray(o))throw new Error(Zc("Composite primary keys are not supported by this update implementation"));const[s,u]=yield this.getStore(e,"readwrite");let c=0;for(const e of i){const t=yl({},r?{[o]:e[o]}:e,n);if(!(o in t))throw new Error(Zc("No primary key in the data"));const i=u.put(t);i.onsuccess=()=>{c++},i.onerror=()=>{this.lastErr=i.error,ol(i.error)}}return yield _l(s),c})}delete(e,n){return Ml(this,void 0,void 0,function*(){const t=this.structure[e],r=wl(t);if(Array.isArray(r))throw new Error(Zc("Composite primary keys are not supported by this delete implementation"));if(!(r in n))throw new Error(Zc("No primary key in the filter"));const[i,a]=yield this.getStore(e,"readwrite");return a.delete(n[r]),yield _l(i),1})}selectOne(e,n){return Ml(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=1){var o;const s=yield this.selectAll(e,[n],t,r,i,a);return null===(o=null==s?void 0:s[0])||void 0===o?void 0:o[n]})}select(e){return Ml(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0){const a=yield this.selectAll(e,n,t,r,i,1);return a.length?a[0]:null})}selectAll(e){return Ml(this,arguments,void 0,function*(e,n=[],t=null,r=null,i=0,a=null){const[o,s]=yield this.getStore(e,"readonly"),u=this.structure[e],c=wl(u),l=[],d=ll(t)?Object.keys(t)[0]:!t||dl(t)?null:c;if(!Array.isArray(c)&&d===c){if(Array.isArray(null==t?void 0:t[c])){const e=t[c],r=Math.min(e.length-i,null!=a?a:e.length),u=e.slice(i,i+r);for(const e of u){const t=yield bl(s.get(e)),r=pl(t,n);r&&l.push(r)}return yield _l(o),l}const e=ll(t)?t[c]:t,r=yield bl(s.get(e)),u=pl(r,n);return u&&l.push(u),yield _l(o),l}return yield new Promise((e,r)=>{const o=s.openCursor();let u=0;o.onsuccess=r=>{var o,s;const c=r.target.result;if(!c)return void e();if(!t||!(null===(s=null===(o=globalThis.bbn)||void 0===o?void 0:o.fn)||void 0===s?void 0:s.search)||0===globalThis.bbn.fn.search([c.value],t)){if(u>=i){const t=pl(c.value,n);if(t&&l.push(t),null!==a&&l.length>=a)return void e()}u++}c.continue()},o.onerror=()=>{this.lastErr=o.error,ol(o.error),r(o.error)}}),yield _l(o),l})}getColumnValues(e,n){return Ml(this,arguments,void 0,function*(e,n,t=null,r=null,i=0,a=null){return(yield this.selectAll(e,vl(t,[n]),t,r,i,a)).map(e=>e[n]).filter(e=>void 0!==e)})}copyTable(e,n){return Ml(this,arguments,void 0,function*(e,n,t=[],r=null,i=null,a=0,o=null){if(!this.structure[n])throw new Error(Zc("Source table %s does not exist in structure",n));let s=yield this.getConnection();if(s.objectStoreNames.contains(e)||(yield Tl.add(this.dbName,e,this.structure[n]),s=yield this.getConnection()),!s.objectStoreNames.contains(e))throw new Error(Zc("The target table %s does not exist",e));const u=yield this.selectAll(n,t,r,i,a,o);return u.length?this.insert(e,u):0})}deleteTable(e){return Ml(this,void 0,void 0,function*(){return yield Tl.remove(this.dbName,e),!0})}}const Tl={_structures:{},_connections:{},_stores:{},ok:void 0!==gl,close(e){const n=this._connections[e];n&&(n.close(),delete this._connections[e])},updateStructure(e,n,t){const r=wl(n);if(!t.objectStoreNames.contains(e)){const i=t.createObjectStore(e,{keyPath:r});cl(n.keys,(e,n)=>{"PRIMARY"!==n&&i.createIndex(n,e.columns.length>1?e.columns:e.columns[0],{unique:!!e.unique})})}},importStructure(e,n){return Ml(this,void 0,void 0,function*(){this._structures[e]||(this._structures[e]={});for(const t in n)this._structures[e].hasOwnProperty(t)||(this._structures[e][t]=n[t]);yield this.reopenWithUpgrade(e),this.close(e)})},getExistingVersion(e){return Ml(this,void 0,void 0,function*(){const n=this._connections[e];return n?n.version:new Promise((n,t)=>{if(!gl)return void t(new Error(Zc("IndexedDB is not available")));const r=gl.open(e);r.onsuccess=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onupgradeneeded=()=>{const e=r.result,t=e.version;e.close(),n(t)},r.onerror=()=>t(r.error)})})},reopenWithUpgrade(e){return Ml(this,void 0,void 0,function*(){if(!this._structures[e])throw new Error(Zc("Impossible to find a structure for the database %s",e));const n=yield this.getExistingVersion(e),t=n+1;return ol(Zc("Going from version %s to version %s for database %s",n,t,e)),this._connections[e]&&this.close(e),yield this.open(e,t)})},open(e,n){return Ml(this,void 0,void 0,function*(){if(!gl)throw new Error(Zc("IndexedDB is not available"));if(!this._structures[e])throw new Error(Zc("Impossible to find a structure for the database %s",e));return this._connections[e]||(yield new Promise((t,r)=>{const i=n?gl.open(e,n):gl.open(e);i.onupgradeneeded=()=>{const n=i.result;cl(this._structures[e]||{},(e,t)=>{n.objectStoreNames.contains(t)||this.updateStructure(t,e,n)})},i.onsuccess=()=>{this._connections[e]=i.result,t(i.result)},i.onerror=()=>r(i.error),i.onblocked=n=>{r(Zc("open: Upgrade blocked for database %s. Please close other connections to proceed.",e))}})),new El(e)})},add(e,n,t){return Ml(this,void 0,void 0,function*(){var r;if(!(null===(r=null==t?void 0:t.keys)||void 0===r?void 0:r.PRIMARY)||!(null==t?void 0:t.fields))throw new Error(Zc("The database structure for %s is not valid (missing keys, fields, or primary key)",n));this._structures[e]||(this._structures[e]={}),this._structures[e][n]=t;const i=!!this._connections[e];let a;i||(yield this.open(e)),a=this._connections[e];if(!a.objectStoreNames.contains(n)){if(yield this.reopenWithUpgrade(e),!this._connections[e])throw new Error(Zc("The database %s is not open after upgrade",e));a=this._connections[e]}return i||this.close(e),!0})},openRaw:(e,n)=>new Promise((t,r)=>{if(!gl)return void r(new Error(Zc("IndexedDB is not available")));const i=n?gl.open(e,n):gl.open(e);i.onsuccess=()=>t(i.result),i.onerror=()=>r(i.error),i.onblocked=()=>r(new Error(Zc("IndexedDB open blocked for database %s",e)))}),remove(e,n){return Ml(this,void 0,void 0,function*(){const t=this._structures[e];if(!(null==t?void 0:t[n]))return;const r=t[n];delete t[n];try{const t=this._connections[e];if(!t)return;const r=t.version+1;this.close(e),yield new Promise((t,i)=>{if(!gl)return void i(new Error(Zc("IndexedDB is not available")));const a=gl.open(e,r);a.onupgradeneeded=()=>{const e=a.result;e.objectStoreNames.contains(n)&&(e.deleteObjectStore(n),e.close())},a.onsuccess=()=>{a.result.close(),t()},a.onerror=()=>i(a.error),a.onblocked=()=>i(new Error(Zc("Remove blocked for database %s",e)))})}catch(e){throw t[n]=r,e}})}};function Dl(e,n,t){let r=(new Date).getTime(),i={key:e,url:sl(e,0,e.length-33),loader:n,aborter:t,loading:!0,error:!1,abort:!1,errorMessage:!1,success:!1,start:r};bbn.env.loaders.push(i),bbn.env.loadersHistory.unshift(i);let a=bbn.env.loadersHistory.length;for(;a&&bbn.env.loadersHistory.length>bbn.env.maxLoadersHistory;)a--,bbn.env.loading||bbn.env.loadersHistory.splice(a,1);return r}function Sl(e,...n){if("object"==typeof e){const t=[];return 1===n.length&&"string"==typeof n[0]?t.push(...n[0].split(".")):t.push(...n),t.reduce((e,n)=>{if(e)return e[e instanceof Array?parseInt(n):n]},e)}}function Al(e){if(!rl(e)){if(!e.toString)throw ol(e),new Error(bbn._("removeAccent expects a string"));e=e.toString()}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function kl(...e){if(!e.length)return!1;for(let n of e)if("[object Date]"!=={}.toString.apply(n))return!1;return!0}function Cl(e,n,t,r="asc"){let i=Sl(e,t),a=Sl(n,t),o=(typeof i).toLowerCase(),s=(typeof a).toLowerCase();if("asc"!==r&&rl(r)&&"desc"===r.toLowerCase()&&(r="desc"),o!==s)i=o,a=s;else switch(o){case"string":i=Al(i).toLowerCase(),a=Al(a).toLowerCase();break;case"boolean":i=i?1:0,a=a?1:0;break;case"object":kl(i)&&(i=i.getTime(),a=kl(a)?a.getTime():0)}return i<a?"desc"===r?1:-1:i>a?"desc"===r?-1:1:0}function Pl(e){return e&&"object"==typeof e?Object.keys(e).length:0}function Nl(e){return!e||(dl(e)?!e.length:"object"==typeof e&&!Pl(e))}function zl(...e){if(!e.length)return!1;for(let n of e)if("[object Null]"!=={}.toString.apply(n))return!1;return!0}function Hl(e){let n=0;for(let t=0;t<e.length;t++){n=(n<<5)-n+e.charCodeAt(t),n|=0}return Math.abs(n).toString(16)}function Il(e){let n=0;for(let t=0;t<e.length;t++){n=e.charCodeAt(t)+(n<<6)+(n<<16)-n,n|=0}return Math.abs(n).toString(16)}function Fl(e){return Hl(e).padStart(8,"0")+Il(e).padStart(8,"0")}function Ol(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLElement))return!1;return!0}function Ll(e){let n="",t=e;if(e.id)return"#"+e.id;for(;t&&t!==document.body;){let e=t,r=e.localName,i=0;if(!r)break;if(e===document.body)break;e.id&&(n="#"+e.id+">"+n,i=1);let a=t.parentNode,o=Array.from(a.children).filter(n=>n.tagName===e.tagName);if(!i&&o.length>1){let n=Array.from(a.children).indexOf(e)+1;n>1&&(r+=":nth-child("+n+")")}n=r+(n?">"+n:""),t=a}return n}function Gl(...e){var n;if(!e.length)return!1;if(!("cp"in bbn)||!("isComponent"in bbn.cp)||"function"!=typeof bbn.cp.isComponent)return!1;for(let t of e){if(!bbn.cp.isComponent(t)||Ol(t)||!(null===(n=t.$el)||void 0===n?void 0:n.bbnCid))return!1}return!0}function Bl(e,n=null,t=0,r=null,i=null){if(t||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)||n&&n<t)e="__BBN_ARRAY__"+e.constructor.toString();else{r.add(e);let a="";for(let o=0;o<e.length;o++)a+="__BBN_ITEM"+o.toString()+"__"+i(e[o],n,t+1,r,i);e="__BBN_ARRAY__"+a}else if("object"==typeof e)if(r.has(e)||n&&n<t)e="__BBN_OBJECT__"+(e.constructor?e.constructor.toString():"");else{r.add(e);let a="";for(let o in e){let s=o;"string"!=typeof s&&(s=i(s,i,1,1)),a+="__BBN_PROP_"+s+"__"+i(e[o],n,t+1,r,i)}e="__BBN_OBJECT__"+a}}else e=Ol(e)?Gl(e)?"__BBN_CP__"+e.$cid:e.bbnId?"__BBN_DOM__"+e.tagName+"/"+e.bbnId+e.bbnHash:"__BBN_DOM__"+Ll(e):"__BBN_UNKNOWN_OBJECT__"+e.constructor.toString();return e}function xl(...e){let n="",t=null;2===e.length&&"number"==typeof e[1]&&(t=e[1],e=[e[0]]);for(let r in e)n+=Bl(e[r],t,0,null,Bl);return Fl(n)}function Rl(e){var n="0123456789abcdef";function t(e){var t,r="";for(t=0;t<=3;t++)r+=n.charAt(e>>8*t+4&15)+n.charAt(e>>8*t&15);return r}function r(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function i(e,n,t,i,a,o){return r(function(e,n){return e<<n|e>>>32-n}(r(r(n,e),r(i,o)),a),t)}function a(e,n,t,r,a,o,s){return i(n&t|~n&r,e,n,a,o,s)}function o(e,n,t,r,a,o,s){return i(n&r|t&~r,e,n,a,o,s)}function s(e,n,t,r,a,o,s){return i(n^t^r,e,n,a,o,s)}function u(e,n,t,r,a,o,s){return i(t^(n|~r),e,n,a,o,s)}var c,l,d,m,f,h=function(e){var n,t=1+(e.length+8>>6),r=new Array(16*t);for(n=0;n<16*t;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<n%4*8;return r[n>>2]|=128<<n%4*8,r[16*t-2]=8*e.length,r}(e),y=1732584193,M=-271733879,g=-1732584194,p=271733878;for(c=0;c<h.length;c+=16)l=y,d=M,m=g,f=p,y=a(y,M,g,p,h[c+0],7,-680876936),p=a(p,y,M,g,h[c+1],12,-389564586),g=a(g,p,y,M,h[c+2],17,606105819),M=a(M,g,p,y,h[c+3],22,-1044525330),y=a(y,M,g,p,h[c+4],7,-176418897),p=a(p,y,M,g,h[c+5],12,1200080426),g=a(g,p,y,M,h[c+6],17,-1473231341),M=a(M,g,p,y,h[c+7],22,-45705983),y=a(y,M,g,p,h[c+8],7,1770035416),p=a(p,y,M,g,h[c+9],12,-1958414417),g=a(g,p,y,M,h[c+10],17,-42063),M=a(M,g,p,y,h[c+11],22,-1990404162),y=a(y,M,g,p,h[c+12],7,1804603682),p=a(p,y,M,g,h[c+13],12,-40341101),g=a(g,p,y,M,h[c+14],17,-1502002290),y=o(y,M=a(M,g,p,y,h[c+15],22,1236535329),g,p,h[c+1],5,-165796510),p=o(p,y,M,g,h[c+6],9,-1069501632),g=o(g,p,y,M,h[c+11],14,643717713),M=o(M,g,p,y,h[c+0],20,-373897302),y=o(y,M,g,p,h[c+5],5,-701558691),p=o(p,y,M,g,h[c+10],9,38016083),g=o(g,p,y,M,h[c+15],14,-660478335),M=o(M,g,p,y,h[c+4],20,-405537848),y=o(y,M,g,p,h[c+9],5,568446438),p=o(p,y,M,g,h[c+14],9,-1019803690),g=o(g,p,y,M,h[c+3],14,-187363961),M=o(M,g,p,y,h[c+8],20,1163531501),y=o(y,M,g,p,h[c+13],5,-1444681467),p=o(p,y,M,g,h[c+2],9,-51403784),g=o(g,p,y,M,h[c+7],14,1735328473),y=s(y,M=o(M,g,p,y,h[c+12],20,-1926607734),g,p,h[c+5],4,-378558),p=s(p,y,M,g,h[c+8],11,-2022574463),g=s(g,p,y,M,h[c+11],16,1839030562),M=s(M,g,p,y,h[c+14],23,-35309556),y=s(y,M,g,p,h[c+1],4,-1530992060),p=s(p,y,M,g,h[c+4],11,1272893353),g=s(g,p,y,M,h[c+7],16,-155497632),M=s(M,g,p,y,h[c+10],23,-1094730640),y=s(y,M,g,p,h[c+13],4,681279174),p=s(p,y,M,g,h[c+0],11,-358537222),g=s(g,p,y,M,h[c+3],16,-722521979),M=s(M,g,p,y,h[c+6],23,76029189),y=s(y,M,g,p,h[c+9],4,-640364487),p=s(p,y,M,g,h[c+12],11,-421815835),g=s(g,p,y,M,h[c+15],16,530742520),y=u(y,M=s(M,g,p,y,h[c+2],23,-995338651),g,p,h[c+0],6,-198630844),p=u(p,y,M,g,h[c+7],10,1126891415),g=u(g,p,y,M,h[c+14],15,-1416354905),M=u(M,g,p,y,h[c+5],21,-57434055),y=u(y,M,g,p,h[c+12],6,1700485571),p=u(p,y,M,g,h[c+3],10,-1894986606),g=u(g,p,y,M,h[c+10],15,-1051523),M=u(M,g,p,y,h[c+1],21,-2054922799),y=u(y,M,g,p,h[c+8],6,1873313359),p=u(p,y,M,g,h[c+15],10,-30611744),g=u(g,p,y,M,h[c+6],15,-1560198380),M=u(M,g,p,y,h[c+13],21,1309151649),y=u(y,M,g,p,h[c+4],6,-145523070),p=u(p,y,M,g,h[c+11],10,-1120210379),g=u(g,p,y,M,h[c+2],15,718787259),M=u(M,g,p,y,h[c+9],21,-343485551),y=r(y,l),M=r(M,d),g=r(g,m),p=r(p,f);return t(y)+t(M)+t(g)+t(p)}function jl(e){const n="function"==typeof e?e.toString():e;if("string"!=typeof n)throw Error("Unexpected type "+typeof e+" while parsing function");let t,r="",i=!1,a=!1,o=!1,s="",u=0,c=0,l=[],d={},m="",f=['"',"'","`"],h=!1,y=!1,M=!1,g=!1,p=!1,v=!1,w="";for(let e=0;e<n.length;e++)if(M||"/"!==n[e]||"*"!==n[e+1])if("/"===n[e]&&"*"===n[e-1])M=!1;else if(g||"/"!==n[e]||"/"!==n[e+1])if("\n"===n[e])g=!1;else{if(M||g)continue;if(n[e]===m&&!h&&m)m="",r+=n[e];else if(m)h="\\"===n[e]&&!h,r+=n[e];else if(f.includes(n[e])&&!h)m=n[e],r+=n[e];else if("("===n[e]){if(u++,""!==r.trim()){if("function"===r.trim())o=!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(")"===n[e])u===c+1&&(y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""),c++;else if(p&&"}"!==n[e])r+=n[e];else{if(u&&u===c&&":"===n[e]){const r=n.substring(e+1).trim().match(/^\s*([a-zA-Z0-9_]+)\s*\{/);if(!r)throw Error("Unexpected ':' while parsing function");w=r[1],t=n.substring(e+r[0].length).trim();break}if(!(r||"="!==n[e]||">"!==n[e+1]||u!==c||c||i)){d.name=n.slice(0,e).trim(),l.push(d),d={},i=!0,t=bbn.fn.substr(n,e+2).trim();break}if(u===c&&"="===n[e]&&">"===n[e+1]){""!==r.trim()&&(d.name=r.trim(),l.push(d),d={},r=""),i=!0,e++;continue}if("="===n[e]&&u>c&&!y)d.name=r.trim(),r="",y=!0;else if(","===n[e])if(p)r+=n[e];else{if(!(u>c))throw Error("Unexpected ',' while parsing function");y?(d.default=r.trim(),y=!1):r&&(d.name=r.trim()),(d.name||d.default)&&(l.push(d),d={}),r=""}else if("{"===n[e]||"}"===n[e]){if(u===c){t=n.substring(e).trim();break}u>c?"{"!==n[e]||p?"}"===n[e]&&p&&(p=!1,r+=n[e]):(p=!0,r=n[e]):r=""}else{if(i){t=n.substring(n.indexOf("=>")+2).trim();break}" "===n[e]?""!==r.trim()&&("async"===r.trim()&&(a=!0),u>c?r+=n[e]:r=""):r+=n[e]}}}else g=!0,r="";else M=!0,r="";if(!t){if(!i)throw Error("Unexpected end of function while parsing function");t=r}t.substr(0,25).indexOf("[native code]")>-1&&(v=!0);const b=l.map(e=>e.name+(e.default?" = "+e.default:"")).join(", ");return{body:t,args:l,argString:b,isArrow:i,hasFunction:o,name:s,isAsync:a,isBinary:v,hash:Rl(t+(s?"-"+s:"")+(b?"-"+b:"")),returnType:w}}function Zl(e,n,t){if(t||(t=[]),e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(![void 0,Object,Array,null].includes(null==e?void 0:e.constructor)||![void 0,Object,Array,null].includes(null==n?void 0:n.constructor))return!1;let r=Object.keys(e).sort(),i=Object.keys(n).sort();if(xl(r)!==xl(i))return!1;let a=!0;if(e&&"object"==typeof e){if(t.includes(e))return a;t.push(e)}return hl(r,t=>{if(!Zl(e[t],n[t]))return a=!1,!1}),a}if(e&&n&&"function"==typeof e&&"function"==typeof n){let t=jl(e),r=jl(n),i=t.hash===r.hash;return i&&t.isBinary&&(i=!1),i}return!1}function Ul(e,n,t){switch(t){case"===":case"=":case"equal":case"eq":case"is":return e===n;case"!==":case"notequal":case"neq":case"isnot":return e!==n;case"!=":case"different":return e!=n;case"contains":case"contain":case"icontains":case"icontain":return!Nl(e)&&!Nl(n)&&-1!==Al(e).toLowerCase().indexOf(Al(n).toLowerCase());case"doesnotcontain":case"donotcontain":return!(!zl(e)&&!zl(n))||-1===Al(e.toLowerCase()).indexOf(Al(n.toLowerCase()));case"starts":case"start":return!zl(e)&&!zl(n)&&("string"!=typeof e&&(e=e.toString()||""),"string"!=typeof n&&(n=n.toString()||""),0===e.indexOf(n));case"startswith":case"startsi":case"starti":case"istarts":case"istart":return!zl(e)&&!zl(n)&&0===Al(e).toLowerCase().indexOf(Al(n).toLowerCase());case"endswith":case"endsi":case"endi":case"iends":case"iend":return!zl(e)&&!zl(n)&&e.lastIndexOf(n)===e.length-n.length;case"like":return!zl(e)&&!zl(n)&&Al(e).toLowerCase()===Al(n).toLowerCase();case"gt":case">":return e>n;case"gte":case">=":return e>=n;case"lt":case"<":return e<n;case"lte":case"<=":return e<=n;case"isnull":return null===e;case"isnotnull":return null!==e;case"isempty":return""===e;case"isnotempty":return""!==e;case"==":if(ll(e,n))return Zl(e,n);default:return e==n}}function Yl(e,n){if(!n.conditions||!n.logic||!dl(n.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 t="AND"===n.logic;return hl(n.conditions,r=>{let i;if(r.conditions&&dl(r.conditions))i=Yl(e,r);else if(i=Ul(Sl(e,r.field),r.value,r.operator),i){let n=r.field.split("."),t=n.pop();n.length&&hl(n,n=>e=e[n]),void 0===Sl(e,t)&&void 0!==r.value&&(i=!1)}if(i){if("OR"===n.logic)return t=!0,!1}else if("AND"===n.logic)return t=!1,!1}),t}function ql(e,n="="){if(!ll(e))throw new Error("Error in filterToCondition: filter must be an object");if(!e.conditions||!dl(e.conditions)){let t=[];cl(e,(e,r)=>{ll(e)&&"object"==typeof e.conditions?t.push(ql(e)):t.push({field:r,operator:n,value:e})}),e={conditions:t}}return e.logic||(e.logic="AND"),e}function Wl(e,n,t=null,r="=",i=0,a=!1){if(!fl(e))throw new Error(bbn._("The first argument for a search should be iterable")+" "+typeof e+" "+bbn._("given"));if(!e.length)return-1;let o,s,u=!1;if(n)if("string"==typeof n)o={conditions:[{field:n,value:t,operator:r||"="}]};else if(a=!0===r,i="number"==typeof t?t:a?e.length-1:0,"function"==typeof n)u=!0,s=n;else if(ll(n))if("field"in n&&"value"in n)o={conditions:[n],logic:"AND"};else if("conditions"in n)o=n;else{const e=[];for(let t in n)e.push({field:t,value:n[t],operator:"="});o={conditions:e,logic:"AND"}}else dl(n)&&(o={conditions:n,logic:"AND"});else u=!0,s=e=>Yl({value:e},ql({logic:"AND",conditions:[{field:"value",operator:r||"=",value:t}]}));if(u||o){if("number"!=typeof i&&(i=a?e.length-1:0),!s){const e=ql(o);s=n=>Yl(n,e)}if(a)for(let n=i;n>=0;n--){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}else for(let n=i;n<e.length;n++){if(bbn.env._enumerated.push(!0),s(e[n]))return bbn.env._enumerated.pop(),e[n],n;bbn.env._enumerated.pop()}}return-1}function Kl(e,n,t=null,r="=",i=0,a=!1,o=!1){let s=Wl(e,n,t,r,i,a);return s>-1?e[s]:n&&["object","function"].includes(typeof n)&&5 in arguments?a:o}function Vl(e,n=null,t=!1){let r=Wl(bbn.env.loaders,{key:e});if(r>-1){let i=bbn.env.loaders.splice(r,1)[0],a=Kl(bbn.env.loadersHistory,{key:e,start:i.start});return a&&(a.loading=!1,a.duration=(new Date).getTime()-i.start,"string"==typeof n?(a.errorMessage=n,a.error=!t,a.abort=t):ll(n)&&(a.success=!0)),!0}return!1}function $l(e){let n=Wl(bbn.env.loaders,{key:e});return n>-1?bbn.env.loaders[n]:null}function Jl(e,n,t=null,r="=",i=0){if(!dl(e))try{e=Array.from(e)}catch(n){throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array")}let a={};const o=[],s="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)a=n;else if("string"==typeof n)a[n]=t;else if(!s)throw new Error("Search function error: The prop argument should be a string or an object");let u;u="function"==typeof n?n:(e,n)=>Yl(e,a);for(let n=0;n<e.length&&(bbn.env._enumerated.push(!0),!(u(e[n],n)&&(bbn.env._enumerated.pop(),o.push(e[n]),bbn.env._enumerated.push(!0),i&&o.length>=i)));n++)bbn.env._enumerated.pop();return o}function Ql(e){if(Pl(e)){bbn.var.colors||(bbn.var.colors={});let n=document.createElement("style");document.head.appendChild(n);let t=n.sheet,r=0;cl(e,(e,n)=>{bbn.var.colors[n]=e,t.insertRule(".bbn-"+n+", .bbn-color-text-"+n+" {color: "+e+" !important;}",r),t.insertRule("svg.bbn-"+n+", .bbn-"+n+" svg, svg.bbn-color-text-"+n+", .bbn-color-text-"+n+" svg {fill: "+e+";}",r),t.insertRule(".bbn-bg-"+n+", .bbn-color-bg-"+n+", .bbn-color-background-"+n+" {background-color: "+e+" !important;}",r),t.insertRule(".bbn-border-"+n+", .bbn-color-border-"+n+" {border-color: "+e+" !important;}",r),t.insertRule(".bbn-color-"+n+" {border-color: "+e+"; background-color: "+e+"; color: "+e+";}",r)})}}function Xl(e,n=null,t=""){if(e&&"FORM"===e.tagName){let r=(n,t)=>{let r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name",n),r.setAttribute("value",t),e.appendChild(r)};n=JSON.parse(JSON.stringify(n||{})),t=t||"",n&&cl(n,(n,i)=>{let a=t?`${t}[${i}]`:i;n instanceof Date?r(a,n.toISOString()):n instanceof Array?n.forEach((n,t)=>{const i=`${a}[${t}]`;"object"==typeof n?Xl(e,n,i):r(i,n.toString())}):"object"!=typeof n||n instanceof File?r(a,n.toString()):Xl(e,n,a)})}}function ed(e,n){let t=0;hl(n,n=>{n.style[e]="auto"}),hl(n,(n,r)=>{let i=n.getBoundingClientRect(),a=i[e]%1?i[e]-i[e]%1+1:i[e];a>t&&(t=a)}),hl(n,(n,r)=>{t&&(n.style[e]=t+"px")})}function nd(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function td(e,n,t,r=""){return t.toString().replace(ll(e)?e:new RegExp(nd(e),"g"+r),n)}function rd(e,n,t){let r={};return n&&cl(n,(e,n)=>{-1===n.indexOf("_bbn")&&(r[n]=e)}),e+":"+Rl((t||"json")+JSON.stringify(r))}function id(e,n=null,t=null,r=null,i=null,a=null){if(null===n&&e&&"object"==typeof e&&e.url&&(e.abort&&(a=e.abort),e.failure&&(i=e.failure),e.success&&(r=e.success),e.data&&(t=e.data),e.datatype&&(n=e.datatype),e=e.url),e&&e&&"string"==typeof e){-1===e.indexOf("://")&&(e=td("//","/",e)),n||(n="json");let o=rd(e,t,n),s=$l(o);if(null==s?void 0:s.loader)return s.loader;bbn.env.token&&yl(t||{},{_bbn_token:bbn.env.token});const u=new AbortController;let c={responseType:n,signal:u.signal};"text"===n?c.headers={accept:"text/javascript","Content-Type":"text/javascript"}:"json"===n?c.headers={accept:"application/json","Content-Type":"application/json"}:"html"===n&&(c.headers={accept:"text/html","Content-Type":"text/html"});let l="get";ll(t)&&Pl(t)>0&&(c.data=t,l="post");let d=tl.run(l,e,c).then(n=>{if(Vl(o,n),bbn.fn.defaultEndLoadingFunction(e,m,t,n),200===n.status)al(r)&&r(n.data,n.headers);else{let e=1;al(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n)}return n}).catch(n=>{let r=tl.isCancel(n);if(Vl(o,n.message||n.response.data,r),bbn.fn.defaultEndLoadingFunction(e,m,t,n),r){let t=1;al(a)&&(t=a(n.message,e)),t&&bbn.fn.defaultAjaxAbortFunction(n.message,e)}else{let e=1;al(i)&&(e=i(d,n.message,n)),e&&bbn.fn.defaultAjaxErrorFunction(d,n.message,n.response)}return n.response}),m=Dl(o,d,u);return bbn.fn.defaultStartLoadingFunction(e,m,t,o),d}}const ad=new TextDecoder;function od(e){return ad.decode(e)}function sd(e,n){if(e&&rl(e)){let t=e.split("/").pop();if(!n)return t;let r=n.length;if(t&&sl(t,-r)===n)return sl(t,0,t.length-r)}return""}const ud=[["y","year",31536e6],["m","month",2592e6],["w","week",6048e5],["d","day",864e5],["h","hour",36e5],["i","minute",6e4],["s","second",1e3],["x","millisecond",1]],cd={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"},ld={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 n of e)if(null!==n&&("object"==typeof n||"function"==typeof n))return!1;return!0}var md,fd,hd,yd,Md=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},gd=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};const pd=xc.ZonedDateTime.from("1970-01-01T00:00Z[UTC]");class vd{static fromUnit(e,n){const t=cd[n]||"ms",r=["y"===t?e:0,"m"===t?e:0,"w"===t?e:0,"d"===t?e:0,"h"===t?e:0,"i"===t?e:0,"s"===t?e:0,["y","m","w","d","h","i","s"].includes(t)?0:e],i=new xc.Duration(...r);return new vd(i)}constructor(e,n,t,r,i,a,o,s,u){md.add(this),fd.set(this,void 0),hd.set(this,void 0),e instanceof xc.Duration?Md(this,fd,e,"f"):Md(this,fd,"object"==typeof e?new xc.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 xc.Duration(e||0,n||0,t||0,r||0,i||0,a||0,o||0,s||0,0,0),"f");const c=cd[u||""]||u;Md(this,hd,c||"ms","f"),Kl(ud,e=>e[0]===c),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,fd,"f")}years(e=!1){return gd(this,md,"m",yd).call(this,"year",e)}months(e=!1){return gd(this,md,"m",yd).call(this,"month",e)}weeks(e=!1){return gd(this,md,"m",yd).call(this,"week",e)}days(e=!1){return gd(this,md,"m",yd).call(this,"day",e)}hours(e=!1){return gd(this,md,"m",yd).call(this,"hour",e)}minutes(e=!1){return gd(this,md,"m",yd).call(this,"minute",e)}seconds(e=!1){return gd(this,md,"m",yd).call(this,"second",e)}toJSON(){return this.value.toJSON()}asYears(){return gd(this,fd,"f").total({unit:"year",relativeTo:pd})}asMonths(){return gd(this,fd,"f").total({unit:"month",relativeTo:pd})}asWeeks(){return gd(this,fd,"f").total({unit:"week",relativeTo:pd})}asDays(){return gd(this,fd,"f").total({unit:"day",relativeTo:pd})}asHours(){return gd(this,fd,"f").total({unit:"hour",relativeTo:pd})}asMinutes(){return gd(this,fd,"f").total({unit:"minute",relativeTo:pd})}asSeconds(){return gd(this,fd,"f").total({unit:"second",relativeTo:pd})}add(e,n){let t=gd(this,hd,"f");if(n)if(cd[n]){const e=Kl(ud,e=>e[0]===cd[n]);e&&(t=e[1])}else t=n;const r=t+"s";if(!["years","months","weeks","days","hours","minutes","seconds","milliseconds"].includes(r))throw new Error("Invalid unit for duration: "+(null!=n?n:t));const i={[r]:e},a=gd(this,fd,"f").add(i);return new vd(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gd(this,hd,"f"))}subtract(e,n){return this.add(-e,n)}toMilliseconds(){const e=gd(this,fd,"f");return e.years||e.months||e.weeks||e.days?e.total({unit:"millisecond",relativeTo:pd}):e.total({unit:"millisecond"})}}fd=new WeakMap,hd=new WeakMap,md=new WeakSet,yd=function(e,n){const t=gd(this,fd,"f");if(n)switch(e){case"year":return t.years;case"month":return t.months;case"week":return t.weeks;case"day":return t.days;case"hour":return t.hours;case"minute":return t.minutes;case"second":return t.seconds}const r=t.total({unit:e,relativeTo:pd});return Math.floor(r)};var wd,bd=function(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t},_d=function(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)};class Ed{constructor(e){this.__bbnNoData=!0,this.__isBbnDt=!0,wd.set(this,void 0),this.getWeekdayIndex=(e,n)=>{const t=n||bbn.env.lang,r=e.trim().toLowerCase(),i=[t,...navigator.languages];for(let e=0;e<i.length;e++){if(!i[e])continue;const n=new Intl.DateTimeFormat(i[e],{weekday:"long"});for(let e=0;e<7;e++){const t=new Date(2023,0,1+e);if(n.format(t).toLowerCase()===r)return e}}throw new Error(`Unknown weekday name '${e}' for locale '${t}'`)},Object.defineProperty(this,"isValid",{value:!0,writable:!1,configurable:!0}),bd(this,wd,e,"f");const n=new Date;Object.defineProperty(this,"defaultValue",{value:{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()},writable:!1,configurable:!1})}setValid(e){Object.defineProperty(this,"isValid",{value:e,writable:!1,configurable:!1})}get value(){return _d(this,wd,"f")}get hasFullDate(){return!!this.value&&"year"in this.value&&"month"in this.value&&"day"in this.value}toEpochMs(){if("zoned"===this.kind){return this.value.toInstant().epochMilliseconds}const e=Ed.systemTimeZoneId;let n;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 t=this.value;n=`${xc.Now.plainDateISO().toString()}T${t.toString()}[${e}]`}case"yearMonth":n=`${this.value.toPlainDate({day:1}).toString()}T00:00[${e}]`;case"monthDay":{const t=this.value,r=xc.Now.plainDateISO();n=`${t.toPlainDate({year:r.year}).toString()}T00:00[${e}]`}}if(n){return xc.ZonedDateTime.from(n).toInstant().epochMilliseconds}throw new Error(`Unsupported kind '${this.kind}' in toEpochMs`)}static nowForKind(e){switch(e){case"zoned":return xc.Now.zonedDateTimeISO();case"dateTime":return xc.Now.plainDateTimeISO();case"date":return xc.Now.plainDateISO();case"time":return xc.Now.plainTimeISO();case"yearMonth":{const e=xc.Now.plainDateISO();return new xc.PlainYearMonth(e.year,e.month)}case"monthDay":{const e=xc.Now.plainDateISO();return new xc.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,n,t){if(!e||!n)throw new TypeError("Both arguments must be Temporal values");const r=xc.Now.timeZoneId();let i=t&&cd[t]?Kl(ud,e=>e[0]===cd[t])[1]:void 0;i=i?i+"s":void 0;const a=e=>e instanceof Ed,o=e=>a(e)?e.value:e,s=e=>{if(a(e))switch(e.kind){case"zoned":return e.value;case"dateTime":{const n=`${e.value.toString()}[${r}]`;return xc.ZonedDateTime.from(n)}case"date":{const n=`${e.value.toString()}T00:00[${r}]`;return xc.ZonedDateTime.from(n)}case"yearMonth":{const n=`${e.value.toPlainDate({day:1}).toString()}T00:00[${r}]`;return xc.ZonedDateTime.from(n)}default:throw new TypeError(`Cannot convert kind '${e.kind}' to ZonedDateTime for comparison`)}if(e instanceof xc.ZonedDateTime)return e;throw new TypeError("toZdt expects a bbnDt wrapper or ZonedDateTime")},u=o(e),c=o(n);if(u.constructor===c.constructor){const e=u.constructor,n=e.compare(u,c);if(void 0===i){if("function"!=typeof e.compare)throw new TypeError("This Temporal type has no static compare");return n}if("function"!=typeof u.until||"function"!=typeof u.since)throw new TypeError("This Temporal type does not support until/since");return u[1===n?"since":"until"](c,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}const l=new Set(["zoned","dateTime","date","yearMonth"]);if(a(e)&&a(n)&&l.has(e.kind)&&l.has(n.kind)){const t=s(e),r=s(n),a=xc.ZonedDateTime.compare(t,r);if(void 0===i)return a;if("function"!=typeof t.until||"function"!=typeof t.since)throw new TypeError("ZonedDateTime does not support until/since");return t[1===a?"since":"until"](r,{smallestUnit:i,largestUnit:i,roundingMode:"floor"}).sign}throw new TypeError("Cannot compare different Temporal or bbnDt types")}static parse(e,n,t="auto",r){return bbn.dt(e,n,t,r)}parse(e,n,t){return Ed.parse(e,n,t||this.kind)}compare(e,n){return e instanceof Ed||(e=bbn.dt(e,null,this.kind)),Ed.compare(this,e,n)}add(e,n){if(this.value){if(this.value instanceof xc.PlainMonthDay||"function"!=typeof this.value.add)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof vd){const n=this.value.add(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new vd(e),t=this.value.add(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=vd.fromUnit(e,n),r=this.value.add(t.value);return new this.constructor(r)}}}subtract(e,n){if(this.value){if(this.value instanceof xc.PlainMonthDay||"function"!=typeof this.value.subtract)throw new TypeError("This Temporal type does not support add/subtract");if(e instanceof vd){const n=this.value.subtract(e.value);return new this.constructor(n)}if("object"==typeof e){const n=new vd(e),t=this.value.subtract(n.value);return new this.constructor(t)}{if(!n)throw new Error("Unit must be specified when adding a number");const t=vd.fromUnit(e,n),r=this.value.subtract(t.value);return new this.constructor(r)}}}duration(e,n){return vd.fromUnit(e,n)}isBefore(e,n){return this.compare(e,n)<0}isBeforeOrSame(e,n){return this.compare(e,n)<=0}isAfter(e,n){return this.compare(e,n)>0}isAfterOrSame(e,n){return this.compare(e,n)>=0}isSame(e,n){return 0===this.compare(e,n)}equals(e){return this.isSame(e)}toJSON(){if(_d(this,wd,"f")&&"toZonedDateTime"in _d(this,wd,"f")){const e=_d(this,wd,"f").toZonedDateTime(Ed.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 n=this.value.withTimeZone(e);return bbn.dt(n)}case"dateTime":if(void 0===e){const e=`${this.value.toString()}[${Ed.systemTimeZoneId}]`;return xc.ZonedDateTime.from(e).timeZoneId}{const n=`${this.value.toString()}[${e}]`,t=xc.ZonedDateTime.from(n);return bbn.dt(t)}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)&&parseInt(e)){const n=this.value.with({year:e});return new this.constructor(n)}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)&&parseInt(e)){const n=this.value.with({month:e});return new this.constructor(n)}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 n=this.value.with({day:e});return new this.constructor(n)}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 n=this.value.with({hour:e});return new this.constructor(n)}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 n=this.value.with({minute:e});return new this.constructor(n)}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 n=this.value.with({second:e});return new this.constructor(n)}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 n=this.value.with({millisecond:e});return new this.constructor(n)}return this.value.millisecond}}weekday(e,n){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,n)}}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,n=!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(),n=new Date(Date.UTC(e,this.month()-1,this.day())),t=new Date(Date.UTC(e,0,1)),r=Math.floor((n.getTime()-t.getTime())/864e5),i=t.getUTCDay();let a=(bbn.dt.locales.firstDayOfWeek-i+7)%7;const o=0===a?7:a;if(r<o)return 1;const s=r-o;return 2+Math.floor(s/7)}get YYYY(){if(this.value&&"year"in this.value)return this.year().toString()}get YY(){if(this.value&&"year"in this.value)return sl(this.year().toString(),2,2)}get MMMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsLong[this.month()-1]}get MMM(){if(this.value&&"month"in this.value)return bbn.dt.locales.monthsShort[this.month()-1]}get MM(){if(this.value&&"month"in this.value){const e=parseInt(this.month().toString());return e<10?"0"+e.toString():e.toString()}}get M(){if(this.value&&"month"in this.value)return this.month().toString()}get EE(){if(this.value&&"dayOfWeek"in this.value)return this.value.dayOfWeek.toString()}get DD(){if(this.value&&"day"in this.value){const e=parseInt(this.day().toString());return e<10?"0"+e.toString():e.toString()}}get d(){if(this.value&&"day"in this.value)return this.day().toString()}get dddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"long")}get ddd(){if(this.value&&"dayOfWeek"in this.value)return this.getWeekday(this.value.dayOfWeek,"short")}get D(){if(this.value&&"day"in this.value)return this.day().toString()}get HH(){if(this.value&&"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 this.value&&"hour"in this.value?this.hour().toString():this.hasFullDate?"0":void 0}get II(){if(this.value&&"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(this.value&&"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 this.value&&"minute"in this.value?this.minute().toString():this.hasFullDate?"0":void 0}get SS(){if(this.value&&"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(this.value&&"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 this.value&&"second"in this.value?this.second().toString():this.hasFullDate?"0":void 0}get WW(){if(this.value&&"weekOfYear"in this.value)return this.value.weekOfYear.toString().padStart(2,"0")}get W(){if(this.value&&"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 n="";if(e){const t=new RegExp("([|]|"+Object.keys(cd).join("|")+")","g");let r=0;hl(e.split(t),e=>{if("["!==e)if("]"!==e)if(r>0)n+=e;else if(e in cd)if(e in this&&dd(this[e]))n+=this[e];else{n+=this[ld[cd[e]]]||""}else n+=e;else r--;else r++})}return n}calendar(e){const n=new this.constructor,t=this.startOf("day"),r=n.startOf("day"),i=t.diff(r,"day"),a={numeric:"auto"};e&&(a.style="short");const o=new Intl.RelativeTimeFormat(bbn.env.lang,a);let s="",u=[],c="";if(i>=-1&&i<=1)u=o.formatToParts(i,"day");else if(i>=-6&&i<-1)c=this.dddd+", ",u=o.formatToParts(i,"day");else{if(!(i<=6&&i>1))return this.fdate();c=this.dddd,u=[]}return bbn.fn.each(u,e=>{s+=e.value}),`${c}${s} ${this.ftime()}`}matchFormat(e,n){try{return this.parse(e,n),!0}catch(e){return!1}}getWeekday(e,n="long",t){if(!n){const n=this.getWeekday(e,"narrow",t),r=this.getWeekday(e,"short",t),i=this.getWeekday(e,"long",t);return{letter:n,abbr:r,full:i,long:i,short:r,narrow:n}}let r;if("letter"===n)r="narrow";else if("abbr"===n)r="short";else if("full"===n)r="long";else{if(!["long","short","narrow"].includes(n))throw new Error("Invalid mode for getWeekDay: "+n+'. Allowed values are "long", "short", "narrow", "letter", "abbr", "full".');r=n}return new Date(2023,0,1+e).toLocaleDateString([t||bbn.env.lang,...navigator.languages],{weekday:r})}setWeekday(e,n=!1,t){let r;if("string"==typeof e&&(e=this.getWeekdayIndex(e,t)),"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 i=this.weekday();let a;return n?(a=(i-r+7)%7,0===a&&(a=7),a=-a):(a=(r-i+7)%7,0===a&&(a=7)),this.add(a,"d")}diff(e,n="",t=!1){let r;if(e instanceof Ed)r=e.toEpochMs();else if(e instanceof xc.ZonedDateTime||e instanceof xc.PlainDateTime||e instanceof xc.PlainDate||e instanceof xc.PlainTime||e instanceof xc.PlainYearMonth||e instanceof xc.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 i=this.toEpochMs()-r;if(t&&(i=Math.abs(i)),!n)return i;const a=cd[n]||n,o=Kl(ud,e=>e[0]===a);if(!o)throw new Error("Invalid unit for diff: "+n);const[,,s]=o,u=i/s;return u<0?Math.ceil(u):Math.floor(u)}guessUnit(e){const n=Math.abs(e);for(const[e,t,r]of ud)if(n>=r||"millisecond"===t)return e;return null}fromNow(e=""){Ed.nowForKind(this.kind);const n=bbn.dt(void 0,null,this.kind),t=this.diff(n),r=cd[e]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromNow");let i=this.diff(n,r);const a=new Intl.RelativeTimeFormat([bbn.env.lang,...navigator.languages],{numeric:"auto"}),o=Kl(ud,e=>e[0]===r);if(!o)throw new Error("Invalid unit for fromNow: "+e);let[,s]=o;return"millisecond"===s&&(s="second",i=Math.round(i/1e3)),bbn.fn.log("FROM NOW",i,s,a),a.format(i,s)}from(e,n=""){const t=this.diff(e),r=cd[n]||this.guessUnit(t);if(!r)throw new Error("Cannot guess unit for fromDate");const i=this.diff(e,r),a=r;return i>0?Zc("%d %s before",i,a):i<0?Zc("%d %s after",-i,a):Zc("The same %s",a)}startOf(e="d"){var n,t;const r=cd[e]||e;if(!r)throw new Error("Invalid unit for startOf: "+e);let i=this.value;const a=e=>{const n={};return"hour"in e?(Object.assign(n,{hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),e.with(n)):e};switch(r){case"y":if(!("year"in i))throw new Error('startOf("y") only valid for year-based types');i=a(i.with({month:1,day:1}));break;case"m":if(!("month"in i))throw new Error('startOf("m") only valid for month-based types');i=a(i.with({day:1}));break;case"w":{const e="toPlainDate"in i?i.toPlainDate():i,r=e.dayOfWeek-1,o=e.subtract({days:r});i="toPlainDateTime"in i?a(o.toPlainDateTime(null!==(t=null===(n=i.toPlainTime)||void 0===n?void 0:n.call(i))&&void 0!==t?t:xc.PlainTime.from("00:00"))):o;break}case"d":i=a(i);break;case"h":i=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"i":i=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0});break;case"s":i=i.with({millisecond:0,microsecond:0,nanosecond:0});break;default:throw new Error("Invalid unit for startOf: "+e)}return this.withValue(i)}endOf(e="d"){const n=xc.Now.timeZoneId(),t=cd[e]||e;let r,i=(()=>{switch(this.kind){case"zoned":return this.value;case"dateTime":{const e=`${this.value.toString()}[${n}]`;return xc.ZonedDateTime.from(e)}case"date":{const e=`${this.value.toString()}T00:00[${n}]`;return xc.ZonedDateTime.from(e)}case"time":{const e=this.value,t=`${xc.Now.plainDateISO().toString()}T${e.toString()}[${n}]`;return xc.ZonedDateTime.from(t)}case"yearMonth":{const e=`${this.value.toPlainDate({day:1}).toString()}T00:00[${n}]`;return xc.ZonedDateTime.from(e)}case"monthDay":{const e=this.value,t=xc.Now.plainDateISO(),r=`${e.toPlainDate({year:t.year}).toString()}T00:00[${n}]`;return xc.ZonedDateTime.from(r)}default:throw new Error("Unsupported kind in endOf")}})(this.value);switch(t){case"y":r=i.with({month:1,day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({years:1});break;case"m":r=i.with({day:1,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({months:1});break;case"w":{const e=-(i.toPlainDate().dayOfWeek-1);r=i.add({days:e}).with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({weeks:1});break}case"d":r=i.with({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({days:1});break;case"h":r=i.with({minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}).add({hours:1});break;case"i":case"n":case"min":r=i.with({second:0,millisecond:0,microsecond:0,nanosecond:0}).add({minutes:1});break;case"s":r=i.with({millisecond:0,microsecond:0,nanosecond:0}).add({seconds:1});break;default:throw new Error("Invalid unit for endOf: "+e)}const a=r.subtract({milliseconds:1});switch(this.kind){case"zoned":return this.withValue(a);case"dateTime":return this.withValue(a.toPlainDateTime());case"date":return this.withValue(a.toPlainDate());case"time":return this.withValue(a.toPlainTime());case"yearMonth":{const e=a.toPlainDate();return this.withValue(new xc.PlainYearMonth(e.year,e.month))}case"monthDay":{const e=a.toPlainDate();return this.withValue(new xc.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}return 0}valueOf(){return this.unix(!0)}}wd=new WeakMap,Ed.systemTimeZoneId=xc.Now.timeZoneId();class Td extends Ed{constructor(e,n,t,r,i,a,o){let s;if(e)if(void 0===n)if(e instanceof xc.PlainDateTime)s=e;else if(e instanceof Date)s=new xc.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=xc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Ed.systemTimeZoneId).toPlainDateTime()}else s=new xc.PlainDateTime(e,n,t||1,r||0,i||0,a||0,o||0);else s=xc.PlainDateTime.from(xc.Now.plainDateTimeISO());super(s),this.kind="dateTime"}format(e){return[!0,"long","full"].includes(e)&&(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long",hour:"2-digit",minute:"2-digit",second:void 0}).pattern),e||(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:void 0}).pattern),Ed.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"2-digit",day:"2-digit"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class Dd extends Ed{constructor(e,n,t){let r;if(e)if(void 0===n)if(e instanceof xc.PlainDate)r=e;else if(e instanceof Date)r=new xc.PlainDate(e.getFullYear(),e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);r=new xc.PlainDate(n.getFullYear(),n.getMonth()+1,n.getDate())}}else r=new xc.PlainDate(e,n,t||1);else r=xc.PlainDate.from(xc.Now.plainDateISO());super(r),this.kind="date"}compareSameKind(e){const n=xc.PlainDate.compare(this.value,e.value);return n<0?-1:n>0?1:0}format(e){return!0===e&&(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"long",day:"long",weekday:"long"}).pattern),e||(e=Kl(bbn.dt.locales.date,{year:"numeric",month:"numeric",day:"numeric"}).pattern),Ed.prototype.format.call(this,e)}ftime(e=!1){return"00:00"+(e?":00":"")}fdate(e=!1,n=!1){const t=new Date(this.year(),this.month()-1,this.day()),r=Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},n?{weekday:e?"long":"short"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],r).format(t)}}class Sd extends Ed{constructor(e,n,t,r,i,a,o,s){let u;if(e)if(void 0===n)if(e instanceof xc.ZonedDateTime)u=e;else if(e instanceof Date)u=function(e,n=!1,t=xc.Now.timeZoneId()){const r=xc.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(t);return n?r:r.toPlainDateTime()}(e,!0);else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtZoned");u=xc.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone)}else{u=new xc.PlainDateTime(n,t,r||1,i||0,a||0,o||0,s||0).toZonedDateTime(e||xc.Now.timeZoneId())}else u=xc.Now.zonedDateTimeISO(Intl.DateTimeFormat().resolvedOptions().timeZone);super(u),this.kind="zoned"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1,this.day(),this.hour(),this.minute(),this.second()),i=Object.assign(Object.assign({year:"numeric",month:e?"long":"numeric",day:"numeric"},t?{weekday:e?"long":"short"}:{}),n?{hour:e?"2-digit":"numeric",minute:"2-digit"}:{});return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}class Ad extends Ed{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof xc.PlainYearMonth)t=e;else if(e instanceof Date)t=new xc.PlainYearMonth(e.getFullYear(),e.getMonth()+1);else{if("number"!=typeof n)throw new Error("Invalid value for bbnDtDateTime");{const e=new Date(n);t=new xc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}}else t=new xc.PlainYearMonth(e,n);else{const e=new Date;t=new xc.PlainYearMonth(e.getFullYear(),e.getMonth()+1)}super(t),this.kind="yearMonth"}format(e){return!0===e&&(e=Kl(bbn.dt.locales.date,e=>"numeric"===e.year&&"long"===e.month&&!("day"in e)).pattern),e||(e=Kl(bbn.dt.locales.date,e=>"numeric"===e.year&&"numeric"===e.month&&!("day"in e)).pattern),Ed.prototype.format.call(this,e)}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(this.year(),this.month()-1),i={year:"numeric",month:e?"long":"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}class kd extends Ed{constructor(e,n){let t;if(e)if(void 0===n)if(e instanceof xc.PlainMonthDay)t=e;else if(e instanceof Date)t=new xc.PlainMonthDay(e.getMonth()+1,e.getDate());else{if("number"!=typeof e)throw new Error("Invalid value for bbnDtDateTime");{const n=new Date(e);t=new xc.PlainMonthDay(n.getMonth()+1,n.getDate())}}else t=new xc.PlainMonthDay(e,n);else{const e=new Date;t=new xc.PlainMonthDay(e.getMonth()+1,e.getDate())}super(t),this.kind="monthDay"}fdate(e=!1,n=!1,t=!1){if(!this.value)return"";const r=new Date(2e3,this.month()-1,this.day()),i={month:e?"long":"numeric",day:"numeric"};return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],i).format(r)}}function Cd(e,n,t){let r="";const i=e.some(e=>"dayPeriod"===e.type),a=i||"h12"===n||"h11"===n,o=!!t.weekday,s="short"===t.month||"long"===t.month,u="numeric"===t.year&&"numeric"===t.month&&"numeric"===t.day&&!o&&!s;for(const n of e)switch(n.type){case"year":"2-digit"===t.year?r+="YY":r+="YYYY";break;case"month":if("short"===t.month){r+="MMM";break}if("long"===t.month){r+="MMMM";break}if(u){r+="M";break}/^\d+$/.test(n.value)?r+=2===n.value.length?"MM":"M":r+=n.value.length>3?"MMMM":"MMM";break;case"day":if(u){r+="D";break}r+=2===n.value.length?"DD":"D";break;case"weekday":"short"===t.weekday||"narrow"===t.weekday?r+="ddd":"long"===t.weekday?r+="dddd":r+=n.value.length>3?"dddd":"ddd";break;case"hour":r+=a?2===n.value.length?"hh":"h":2===n.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(!n.value)break;if(/[A-Za-zÀ-ÖØ-öø-ÿ]/.test(n.value)){r+=`[${n.value.replace(/]/g,"\\]")}]`}else r+=n.value;break;default:r+=n.value}return r}const Pd=()=>{if(Object.keys(bbn.dt.locales).length)return;const e=[bbn.env.lang,...navigator.languages],n=new Intl.DateTimeFormat(e,{month:"long"}),t=new Intl.DateTimeFormat(e,{month:"short"}),r=new Intl.DateTimeFormat(e,{weekday:"long"}),i=new Intl.DateTimeFormat(e,{weekday:"short"}),a=new Intl.DateTimeFormat(e,{dateStyle:"short",timeStyle:"short"}),o=new Intl.DateTimeFormat(e,{dateStyle:"long",timeStyle:"long"}),s=new Intl.DateTimeFormat(e,{year:"numeric",month:"numeric",day:"numeric"}),u=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),c=new Intl.Locale(e[0]),l=[],d=[];for(let e=0;e<12;e++){const r=new Date(2020,e,1);l.push(n.format(r)),d.push(t.format(r))}const m=new Date(2020,1,2),f=[],h=[];for(let e=0;e<7;e++){const n=new Date(m.getTime()+864e5*e);f.push(r.format(n)),h.push(i.format(n))}const{date:y,time:M,datetime:g}=(e=>{e||(e=[bbn.env.lang,...navigator.languages]);const n=new Date(Date.UTC(2e3,0,2,13,45,30)),t=[],r=[],i=[],a=new Set,o=new Set,s=new Set,u=[{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"}],c=[];for(const r of u){const i=new Intl.DateTimeFormat(e,r),o=Cd(i.formatToParts(n),i.resolvedOptions().hourCycle,r);a.has(o)||(a.add(o),t.push({pattern:o,sample:i.format(n),options:r})),r.year&&r.month&&r.day&&c.push(r)}const l=[{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 t of l){const i=new Intl.DateTimeFormat(e,t),a=Cd(i.formatToParts(n),i.resolvedOptions().hourCycle,t);o.has(a)||(o.add(a),r.push({pattern:a,sample:i.format(n),options:t}))}for(const t of c)for(const r of l){const a=Object.assign(Object.assign({},t),r),o=new Intl.DateTimeFormat(e,a),u=Cd(o.formatToParts(n),o.resolvedOptions().hourCycle,a);s.has(u)||(s.add(u),i.push({pattern:u,sample:o.format(n),options:a}))}return{date:t,time:r,datetime:i}})(e),p=c.getWeekInfo?c.getWeekInfo():{firstDay:1};yl(bbn.dt.locales,{formatters:{short:a,long:o,numeric:s,relative:u},firstDayOfWeek:p.firstDay,monthsLong:l,monthsShort:d,weekdaysLong:f,weekdaysShort:h,locale:c,date:y,time:M,datetime:g})};class Nd extends Ed{constructor(e,n,t,r){let i;if(e)if(void 0===e)if(e instanceof xc.PlainTime)i=e;else if(e instanceof Date)i=new xc.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!==n)i=new xc.PlainTime(e,n,t||0,r||0);else{const n=new Date(e);i=new xc.PlainTime(n.getHours(),n.getMinutes(),n.getSeconds(),1e6*n.getMilliseconds())}}else i=new xc.PlainTime(e,n||0,t||0,r||0);else{const e=new Date;i=new xc.PlainTime(e.getHours(),e.getMinutes(),e.getSeconds(),1e6*e.getMilliseconds())}super(i),this.kind="time"}ftime(e=!1){if(!this.value)return"";const n=new Date(2e3,1,1,this.hour(),this.minute(),this.second()),t={hour:"2-digit",minute:"2-digit"};e&&(t.second="2-digit");return new Intl.DateTimeFormat([bbn.env.lang,...navigator.languages],t).format(n)}}const zd=function(e,n){try{return n?e.toLocaleLowerCase(n):e.toLowerCase()}catch(n){return e.toLowerCase()}};function Hd(e,n,t="auto",r,i){var a,o,s,u,c,l,d;Pd();const m=xc;if(!m)throw new Error("Temporal API is required (load @js-temporal/polyfill)");let f=!0;i||(i=(null===(a=null===bbn||void 0===bbn?void 0:bbn.dt)||void 0===a?void 0:a.locales)||{});const h={monthsLong:null!==(o=null==i?void 0:i.monthsLong)&&void 0!==o?o:bbn.dt.locales.monthsLong,monthsShort:null!==(s=null==i?void 0:i.monthsShort)&&void 0!==s?s:bbn.dt.locales.monthsShort,weekdaysLong:null!==(u=null==i?void 0:i.weekdaysLong)&&void 0!==u?u:bbn.dt.locales.weekdaysLong,weekdaysShort:null!==(c=null==i?void 0:i.weekdaysShort)&&void 0!==c?c:bbn.dt.locales.weekdaysShort},y=(null===bbn||void 0===bbn?void 0:bbn.env)&&(null===(l=bbn.env)||void 0===l?void 0:l.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,M=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function g(n,t="auto"){var i;const a=new Td,o={year:a.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"===t,u="zoned"===t.toLowerCase(),c="datetime"===t.toLowerCase(),l="date"===t.toLowerCase(),d="time"===t.toLowerCase(),g="yearmonth"===t.toLowerCase(),p="monthday"===t.toLowerCase(),v=[{token:"YYYY",regex:"\\d{4}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"YY",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);n.year=t>=70?1900+t:2e3+t,n.hasYear=!0}},{token:"Y",regex:"[+-]?\\d{1,6}",apply:(e,n)=>{n.year=parseInt(e,10),n.hasYear=!0}},{token:"MMMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.monthsLong.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MMM",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.monthsShort.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid short month name: "+e);n.month=r+1,n.hasMonth=!0}},{token:"MM",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"mm",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"M",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"m",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid month: "+t);n.month=t,n.hasMonth=!0}},{token:"DD",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"D",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"d",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>31)throw new Error("Invalid day of month: "+t);n.day=t,n.hasDay=!0}},{token:"dddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.weekdaysLong.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid weekday name: "+e);n.weekday=r}},{token:"ddd",regex:"[^\\d\\s]+",apply:(e,n)=>{const t=zd(e,y),r=h.weekdaysShort.findIndex(e=>zd(e,y)===t);if(-1===r)throw new Error("Invalid short weekday name: "+e);n.weekday=r}},{token:"EE",regex:"\\d{1}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>7)throw new Error("Invalid weekday number: "+t);n.weekday=t}},{token:"hh",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>12)throw new Error("Invalid 12-hour clock hour: "+t);n.hour=t,n.hasHour=!0,n.uses12Hour=!0}},{token:"HH",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"H",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"h",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>23)throw new Error("Invalid hour: "+t);n.hour=t,n.hasHour=!0}},{token:"II",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"I",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"i",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid minute: "+t);n.minute=t,n.hasMinute=!0}},{token:"SS",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"S",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ss",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"s",regex:"\\d{2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>59)throw new Error("Invalid second: "+t);n.second=t,n.hasSecond=!0}},{token:"ms",regex:"\\d{1,3}",apply:(e,n)=>{const t=parseInt(e,10);if(t<0||t>999)throw new Error("Invalid millisecond: "+t);n.ms=t,n.hasMs=!0}},{token:"WWWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WWW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"WW",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"W",regex:"\\d{1,2}",apply:(e,n)=>{const t=parseInt(e,10);if(t<1||t>53)throw new Error("Invalid week number: "+t);n.week=t}},{token:"ZZ",regex:"(?:Z?[+-]\\d{2}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),i=parseInt(r.slice(0,2),10),a=parseInt(r.slice(2),10);if(i<0||i>23||a<0||a>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*i+a)}},{token:"Z",regex:"(?:Z?[+-]\\d{2}\\:{1}\\d{2})",apply:(e,n)=>{if("Z"===e||"z"===e)return void(n.offsetMinutes=0);const t="-"===e[0]?-1:1,r=e.slice(1),[i,a]=r.split(":");let o=parseInt(i,10),s=parseInt(a,10);if(o<0||o>23||s<0||s>59)throw new Error("Invalid timezone offset: "+e);n.offsetMinutes=t*(60*o+s)}},{token:"z",regex:"[A-Za-z_\\/]+",apply:(e,n)=>{n.timeZone=e}},{token:"A",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}},{token:"a",regex:"(?:AM|PM|am|pm)",apply:(e,n)=>{n.isPM=/pm/i.test(e),n.hasAmPm=!0}}],w=[...v].sort((e,n)=>n.token.length-e.token.length);let b="";const _=[];let E=0,T=0;for(;E<n.length;){if("["===n[E]){let e=E+1,t="";for(;e<n.length&&"]"!==n[e];)t+=n[e],e++;if(e<n.length&&"]"===n[e]){const n=t.replace(/\\]/g,"]");b+=M(n),E=e+1;continue}}let e=null;for(const t of w)if(n.startsWith(t.token,E)){e=t;break}e?(b+=`(${e.regex})`,T=b.length,e.apply?_.push(n=>e.apply(n,o)):_.push(()=>{}),E+=e.token.length):(b+=M(n[E]),E+=1)}const D=new RegExp("^"+bbn.fn.substr(b,0,T));let S=D.exec(e);if(!S){if(!r)throw new Error(`Date string "${e}" does not match format "${n}"`);{const t=new Td(a.year(),1,1,0,0,0,0);e=t.format(n),f=!1,S=D.exec(e)}}if(S)for(let e=1;e<S.length;e++){const n=S[e],t=_[e-1];null!=n&&t&&t(n)}if(o.uses12Hour){if(!o.hasAmPm)throw new Error("AM/PM marker (A or a) is required with 12-hour format (hh)");let e=o.hour;o.isPM?e<12&&(e+=12):12===e&&(e=0),o.hour=e}const A=o.hasYear||o.hasMonth||o.hasDay,k=o.hasYear&&o.hasMonth&&o.hasDay,C=o.hasYear&&o.hasMonth&&!o.hasDay,P=!o.hasYear&&o.hasMonth&&o.hasDay,N=o.hasHour||o.hasMinute||o.hasSecond||o.hasMs,z=null!=o.timeZone||null!=o.offsetMinutes;let H;if(u||z&&s){let e;try{e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms)}catch(e){throw new Error("Invalid date/time components")}if(o.timeZone){const n=m.TimeZone.from(o.timeZone),t=e.toZonedDateTime(n);H=new Sd(t)}else{const e=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.ms)-6e4*(null!==(i=o.offsetMinutes)&&void 0!==i?i:0);H=new Sd(m.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(m.Now.timeZoneId()))}}else if(c||s&&(f||A&&N)){if(!k&&!f)throw new Error("PlainDateTime requires year, month and day");const e=new m.PlainDateTime(o.year,o.month,o.day,o.hour,o.minute,o.second,1e6*o.ms);H=new Td(e)}else if(l||g||p||s&&A&&!N)if(l||k&&s){const e=new m.PlainDate(o.year,o.month,o.day);H=new Dd(e)}else if(g||C&&s){const e=new m.PlainYearMonth(o.year,o.month);H=new Ad(e)}else if(p||P&&s){const e=new m.PlainMonthDay(o.month,o.day,1972);H=new kd(e)}else{if(!s||!o.hasYear)throw new Error("Not enough date components for a known Temporal type");{const e=new m.PlainDate(o.year,1,1);H=new Dd(e)}}else{if(!(d||s&&!A&&N))throw new Error("No date or time information found in input");{const e=new m.PlainTime(o.hour,o.minute,o.second,1e6*o.ms);H=new Nd(e)}}return H.setValid(f),H}if(Array.isArray(n)){let e=null;for(const r of n)try{return g(r,t)}catch(n){e=n}throw null!=e?e:new Error("No format matched")}return g(n,t)}const Id=["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 Fd(e,n,t){const r=e.trim();if(!r)return null;Pd();const i=e=>{for(const n of e)try{return Hd(r,n),n}catch(e){}return null};if(n){return i(Array.isArray(n)?n:[n])}const a=new Set,o=Id.filter(e=>!a.has(e)&&(a.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=>!a.has(e)&&(a.add(e),!0)),u=i([...o,...s]);return u||null}const Od=(e,n=null,t="auto")=>{if(void 0===e)return new Td;if(!e){const e=new Td;return e.setValid(!1),e}if("string"==typeof e){if(n)return Hd(e,n,t,!0);{const n=Fd(e);if(n)return Hd(e,n,t);throw new Error(Zc("Could not guess the date format for value: %s",e))}}if("number"==typeof e)return new Td(Math.floor(Math.abs(e)<99999999999?1e3*e:e));if(e.__isBbnDt)return e;if(e instanceof Date){const n=e;return new Td(n.getFullYear(),n.getMonth()+1,n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}if(e instanceof xc.PlainDateTime)return new Td(e);if(e instanceof xc.PlainDate)return new Dd(e);if(e instanceof xc.PlainTime)return new Sd(e);if(e instanceof xc.PlainYearMonth)return new Ad(e);if(e instanceof xc.PlainMonthDay)return new kd(e);if(e instanceof xc.ZonedDateTime)return new Sd(e);if(e instanceof xc.Duration)return new vd(e);throw bbn.fn.log("Invalid date value",e),new Error(Zc("Invalid date value"))};function Ld(e){if(arguments.length>1){const e=[];for(let n=1;n<arguments.length;n++)e.push(arguments[n]);e.unshift({_bbn_console_mode:"error",_bbn_console_level:1,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),ol.apply(this,e)}throw new Error(e)}function Gd(e,n=null,t=null,r=null,i=null){let a=!1;if(n){a=!0;let o,s="object"===(typeof n).toLowerCase();if(s&&n.prescript)try{new Function(n.prescript)()}catch(e){Ld(e.message||"")}if(s&&void 0===n.url&&(n.url=e),a=t&&al(t)?t(n,i):bbn.fn.defaultLinkFunction(n,i),i&&s&&void 0!==n.content&&("value"in i?i.value=n.content:i.innerHTML=n.content),a&&s&&n.script&&(a="function"==typeof n.script?n.script(n.data?n.data:{},i||null):((e,t)=>{let r=null;try{r=new Function(n.script)(),al(r)&&(r=r(e,t))}catch(e){ol(e,n),Ld(al(e.getMessage)?e.getMessage():null)}return r})(n.data?n.data:{},i||!1)),a&&r&&al(r)?r(n):s&&bbn.fn.defaultPostLinkFunction&&bbn.fn.defaultPostLinkFunction(n,i),a&&s&&n.postscript){new Function(n.postscript)(n.postscript)}s&&n.error&&(o=n.errorTitle||bbn.lng.server_response,bbn.fn.defaultErrorFunction(n.error,o))}else bbn.fn.defaultErrorFunction(bbn.lng.errorText,bbn.lng.error);return a}function Bd(e,n,t=!1){let r={error:!1,result:!0};if("string"==typeof n&&(n=[n]),dl(n)||(r.error=bbn._("checkProps must receive a string or an array as props argument")),ll(e)||(r.error=bbn._("checkProps must receive an object as obj argument")),!r.error){let i;hl(n,n=>{let a=(n=n.trim().split(":"))[1]||!1;if(n=n[0],void 0===e[n]?r.error=n+" "+bbn._("is not defined"):a?(i="is"+sl(a,0,1).toUpperCase()+sl(a,1).toLowerCase(),void 0===bbn.fn[i]?r.error=a+" "+bbn._("is not a valid type"):bbn.fn[i](e[n])||(r.error=n+" "+bbn._("is not a")+" "+a)):t&&!e[n]&&(r.error=n+" "+bbn._("is empty")),r.error)return!1})}return r.error&&(r.result=!1),r}function xd(e){return e.replace(/[A-z]{1}/,e=>e.toUpperCase())}function Rd(e,n,t,...r){let i=!1;dl(n)||(n=[n]);const a=[];if(hl(n,n=>{var t;if(n===String?n="string":n===Number?n="number":n===Array?n="array":n===Boolean?n="boolean":n===Object?n="object":n===Function&&(n="function"),al(n)){if(a.push(n.name||(null===(t=n.constructor)||void 0===t?void 0:t.name)||n.toString()),e instanceof n)return i=!0,!1}else if(rl(n)&&al(bbn.fn["is"+xd(n)])){if(bbn.fn["is"+xd(n)](e))return i=!0,!1;a.push(n)}else Ld(`The type ${n} is not recognized`)}),!i)throw ol(["Value given",e,"type",typeof e,"expected",a.join(" or ")]),r.length&&ol(r),new Error((t?t+" - ":"")+bbn._("The value should be a %s",a.join(" "+bbn._("or a")+" ")))}function jd(e){if(dl(e))return e.slice().map(e=>"object"==typeof e?jd(e):e);if(ll(e)){return yl(!0,Object.create(Object.getPrototypeOf(e)),e)}return e}Od.locales=Object.create(null),Od.parse=Hd,Od.guessFormat=Fd,Od.time=()=>{},Od.date=()=>{},Od.dateTime=()=>{},Od.duration=(e,n)=>e instanceof xc.Duration?new vd(e):vd.fromUnit(e,n||"ms"),Od.zoned=()=>{},Od.monthDay=()=>{},Od.yearMonth=()=>{};const Zd=(e,n="text/plain")=>{const t=new DataTransfer;t.setData(n,e);const r=new ClipboardEvent("copy",{bubbles:!0,cancelable:!0,clipboardData:t});document.dispatchEvent(r)};function Ud(e,n,t=null,r="="){if(!dl(e))throw bbn.fn.log("NOT ARRAY",e),new Error("Error in filter: The first argument must be an array");let i={};const a=[],o="function"==typeof n;if(!n||!e.length)return e;if("object"==typeof n)r=t,i=n;else if("string"==typeof n)i[n]=t;else if(!o)throw new Error("Search function error: The prop argument should be a string or an object");if("function"==typeof n)for(let t=0;t<e.length;t++)n(e[t],t)&&a.push(e[t]);else if(i=ql(i,r),i.conditions&&i.logic)for(let n=0;n<e.length;n++)Yl(e[n],i)&&a.push(e[n]);return a}const Yd=[];for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;Yd.push(n)}function qd(...e){const n=Object.create(null);return e.length&&yl(n,...e),n}function Wd(e){let n=typeof e;if(void 0===e)return new Date;if("number"===n||ml(e)&&""!==e)return e<1e10&&(e*=1e3),new Date(e);if("string"===n){if(10===e.length)return new Date(parseInt(sl(e,0,4)),parseInt(sl(e,5,2))-1,parseInt(sl(e,8,2)),12);if(19===e.length)return new Date(parseInt(sl(e,0,4)),parseInt(sl(e,5,2))-1,parseInt(sl(e,8,2)),parseInt(sl(e,11,2)),parseInt(sl(e,14,2)),parseInt(sl(e,17,2)))}else if(kl(e))return e;return!1}function Kd(e,n=""){ol(e)}function Vd(e,n=null,t=null){ol(n,t)}function $d(e,n,t=null,r=null){return!0}function Jd(...e){if(!e.length)return!1;for(let n of e)if("object"==typeof n&&!zl(n))return!1;return!0}let Qd=[];function Xd(e){if(rl(e)&&e){for(;"/"===sl(e,e.length-1);)e=sl(e,0,e.length-1);let n=e.lastIndexOf("/");if(n>0)return sl(e,0,n);if(0===n)return"/"}return""}function em(...e){if(!e.length)return!1;for(let n of e)if("[object Blob]"!=={}.toString.apply(n))return!1;return!0}function nm(e){if(e&&rl(e)){let n=e.split(".");if(n[0]&&n.length>1)return n[n.length-1].toLowerCase()}return""}function tm(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof HTMLCanvasElement))return!1;return!0}function rm(e,n,t=null){if(tm(n))return void n.toBlob(n=>{let t=document.createElement("a");t.download=e,t.href=window.URL.createObjectURL(n),t.className="bbn-no",t.click(),window.URL.revokeObjectURL(t.href)},t||"image/png");t?-1===t.indexOf("/")&&(t="text/"+t):t=ll(n)&&n.type?n.type:"octet/stream";let r=window.document.createElement("a");r.className="bbn-no";let i=null;if(rl(n))i=new Blob([n],{type:t});else try{i=n}catch(e){ol(e)}r.href=window.URL.createObjectURL(i),r.download=e,document.body.appendChild(r),r.click(),window.URL.revokeObjectURL(r.href),document.body.removeChild(r)}var im=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function am(){return im(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 om=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function sm(e){let n;return"checkbox"===e.type?e.checked?(n=e.value,n||(n=1)):n=0:"radio"===e.type?e.checked&&(n=e.value):n=e.value,n}function um(e){let n,t,r=e.querySelectorAll("input[name],select[name],textarea[name],button[name]"),i={};return hl(r,(e,r)=>{if(t=sm(e),void 0!==t&&!e.disabled){let r=e.name;if(-1===r.indexOf("[]")&&r.indexOf("[")>-1&&r.indexOf("]")>-1&&r.lastIndexOf("]")===r.length-1&&(r=td("][",".",r),r=td("[",".",r),r=td("]","",r)),r.length>2&&r.indexOf("[]")===r.length-2)n=sl(r,0,r.length-2),void 0===i[n]&&(i[n]=[]),i[n].push(t);else if(r.indexOf(".")>-1){let e,n=r.split(".");e=i;for(let r=0;r<n.length;r++)void 0===i[n[r]]&&(r<n.length-1?e[n[r]]={}:e[n[r]]=t),e=e[n[r]]}else i[r]=t}}),i}function cm(e){return e.filter((e,n,t)=>n===t.indexOf(e))}function lm(e,n=null){let t=[];if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement&&e.parentElement)if("string"==typeof n)for(;e=e.parentElement.closest(n);)t.push(e);else for(!0===n&&t.push(e);e=e.parentElement;)t.push(e);return t}function dm(e){0!==e.indexOf("--")&&(e="--"+e);let n=getComputedStyle(document.documentElement).getPropertyValue(e);return"string"==typeof n&&(n=n.trim()),n}function mm(){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 fm(){let e,n=window.getSelection();if(n.rangeCount>0){e=n.getRangeAt(0),ol("RANGE",e);let t=e.cloneContents();ol("clonedSelection",t);let r=document.createElement("div");return r.appendChild(t),r.innerHTML}return""}function hm(e){return rl(e)?e.replace(/<!--[\s\S]*?-->/g,""):e}function ym(e){let n=document.createElement("div");return n.innerHTML=e,e=n.innerText}function Mm(e){let n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),n}function gm(e){let n,t={};if(ll(e[0])&&1===e.length)return e[0];for(let r=0;r<e.length;r++)n=typeof e[r],n=n.toLowerCase(),al(e[r])?(t.errorFn&&!t.abortFn&&(t.abortFn=e[r]),t.successFn&&!t.errorFn?t.errorFn=e[r]:t.successFn||(t.successFn=e[r])):1===e[r]||!0===e[r]?t.force=!0:"string"===n?t.url?t.datatype=e[r]:(t.url=e[r],0===t.url.indexOf(bbn.env.root)&&(t.url=sl(t.url,bbn.env.root.length))):e[r]&&"object"===n&&(e[r]instanceof Event?t.e=e[r]:t.ele||1!==e[r].nodeType?"object"===n.toLowerCase()&&(t.obj=e[r]):t.ele=e[r]);return!t.url&&Pl(t)&&(t.url=bbn.env.path),void 0===t.obj&&(t.obj={_bbn:"public"}),t.datatype||(t.datatype="json"),t}function pm(e,n,t=null,r=!1){bbn.env.old_path=bbn.env.path,bbn.env.url=["https:/","http://"].includes(sl(e,0,7))?e:bbn.env.root+e;const[i,a]=bbn.env.url.split("?"),o=a?a.split("&").reduce((e,n)=>{const[t,r]=n.split("=");return e[t]=r,e},{}):{};bbn.env.getParameters=o,bbn.env.path=sl(i,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e);let s=window.history;if(s){let e=s.state,i={url:bbn.env.path,old_path:bbn.env.old_path||null,data:t||{},reload:!1};e&&e.url===bbn.env.path&&(e.data&&yl(i.data,e.data),e.title&&!n&&(n=e.title),r=!0),n=n?ym(n):bbn.env.siteTitle,r?(i.reload=!0,s.replaceState(i,n,bbn.env.url)):s.pushState(i,n,bbn.env.url)}}function vm(...e){let n=gm(e),t=1;if(n){if(0===n.url.indexOf("javascript:"))return!0;if(0===n.url.indexOf("data:"))return!0;if(0===n.url.indexOf("#"))return n.e&&n.e.preventDefault(),document.location.hash=n.url.substring(1),!1;if(0===n.url.indexOf("mailto:"))return bbn.env.ignoreUnload=!0,window.location.href=n.url,setTimeout(()=>{bbn.env.ignoreUnload=!1},0),!1;if($l(n.url))return!1;if((0===n.url.indexOf("http://")||0===n.url.indexOf("https://"))&&0!==n.url.indexOf(bbn.env.host))return n.e&&n.e.preventDefault(),window.open(n.url),!1;if(n.url!==bbn.env.params.join("/")||1===n.force){if(n.e&&n.e.preventDefault(),n.successFn)t=n.successFn(n.url);else if(bbn.fn.defaultPreLinkFunction){let e=bbn.fn.defaultPreLinkFunction(n.url,n.force,n.ele);void 0!==e.data?(yl(n.obj,e.data),t=1):t=e}if(t){1!==t&&"string"==typeof t&&(n.url=t);let e=bbn._("The Ajax call to")+" "+n.url+" ";return id(n.url,n.datatype,n.obj,t=>{t||ol(e+bbn._("returned no answer")),ll(t)&&(0===Object.keys(t).length&&ol(e+bbn._("returned an empty object")),t.new_url?(t.old_path=n.url,n.url=t.new_url):t.url&&n.url!==t.url&&(t.old_path=n.url)),Gd(n.url,t,n.successFn,null,n.ele)&&void 0===t.noNav&&0!==bbn.env.path.indexOf(n.url)&&pm(n.url,(t.title?t.title+" - ":"")+bbn.env.siteTitle)},n.errorFn||null)}}return!0}}function wm(){let e=bbn.env.width!==window.innerWidth,n=bbn.env.height!==window.innerHeight;if(e||n){e&&(bbn.env.width=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,document.documentElement.style.setProperty("--vw",.01*bbn.env.width+"px")),n&&(bbn.env.height=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,document.documentElement.style.setProperty("--vh",.01*bbn.env.height+"px"));let t=parseInt(dm("mobile-limit"))||650,r="bbn-screen-"+(bbn.env.width<t?"small":"regular"),i=(document.body.className||"").split(" "),a=!1;hl(i,(e,n)=>{if(3===e.split("-").length&&0===e.indexOf("bbn-screen-"))return a=!0,e!==r&&i.splice(n,1,r),!1}),a||i.push(r),bbn.fn.defaultResizeFunction(),document.body.className=i.join(" ")}}function bm(){return"mobile"===mm()}function _m(){return"tablet"===mm()}function Em(){return bm()||_m()}function Tm(e=!1){let n=(new Date).getTime();return e?Math.round(n/1e3):n}function Dm(e){const n=String(null!=e?e:"").split("-").filter(Boolean);if(!n.length)return{language:"und"};let t,r,i=n[0].toLowerCase();for(let e=1;e<n.length;e++){const i=n[e];t||4!==i.length?r||2!==i.length&&3!==i.length||(r=i.toUpperCase()):t=i[0].toUpperCase()+i.slice(1).toLowerCase()}return{language:i,script:t,region:r}}const Sm=globalThis.document?Promise.resolve().then(function(){return qm}):{};function Am(e){var n,t,r;const i=null!==(r=null!==(n=e.baseName)&&void 0!==n?n:null===(t=e.toString)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"und",{region:a}=Dm(i),o=a&&Sm[a]||{firstDay:1,weekend:[6,7],minimalDays:4};return{firstDay:o.firstDay,weekend:o.weekend.slice(),minimalDays:o.minimalDays}}function km(){!function(){if("undefined"==typeof Intl)return;if("function"!=typeof Intl.Locale){class e{constructor(e){const n=Array.isArray(e)?e[0]:e,t=String(null!=n?n:"und"),r=Dm(t);this._tag=t,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 Am(this)}get weekInfo(){return Am(this)}}Intl.Locale=e}const e=Intl.Locale.prototype;"function"!=typeof e.getWeekInfo&&(e.getWeekInfo=function(){return Am(this)}),Object.getOwnPropertyDescriptor(e,"weekInfo")||Object.defineProperty(e,"weekInfo",{configurable:!0,enumerable:!0,get(){return"function"==typeof this.getWeekInfo?this.getWeekInfo():Am(this)}})}()}var Cm=function(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})};function Pm(){return Cm(this,void 0,void 0,function*(){const e=[];"undefined"!=typeof Intl&&"function"==typeof Intl.RelativeTimeFormat||e.push((()=>Cm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return kg}),yield Promise.resolve().then(function(){return Pg})}))()),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((()=>Cm(this,void 0,void 0,function*(){yield Promise.resolve().then(function(){return Bp}),yield Promise.resolve().then(function(){return xp})}))()),e.length>0&&(yield Promise.all(e)),km()})}const Nm=()=>{bbn.env.last_focus=bbn.dt().unix()},zm=e=>{if(Nm(),"ajax"!==bbn.env.nav)return;let n=e.target;if(n instanceof HTMLElement&&"A"!==n.tagName){let e=n;for(;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentElement;n=e&&"A"===e.tagName?e:null}n instanceof HTMLElement&&n.hasAttribute("href")&&!n.hasAttribute("target")&&!n.classList.contains("bbn-no")&&(ol("Link clicked: "+n.getAttribute("href")),vm(n.getAttribute("href"),e))};function Hm(e){if("string"==typeof e&&e.length>0&&(0===e.indexOf("calc")||ml(sl(e,0,1)))){let n=document.createElement("div");n.style.width=e;let t=!!n.style.width.length;return n.remove(),t}return!1}function Im(...e){if(!e.length)return!1;for(let n of e)if(!rl(n)||!bbn.var.regexp.ip.test(n))return!1;return!0}function Fm(...e){if(!e.length)return!1;for(let n of e)if("[object Symbol]"!=={}.toString.apply(n))return!1;return!0}function Om(e){const n=["BBN: "+e];n.unshift({_bbn_console_mode:"warn",_bbn_console_level:2,_bbn_console_style:"color: #E64141; background: #F7E195; font-size: 14px"}),ol.apply(this,n)}function Lm(e,n="",t=null){let r=new FormData,i=(e,n="")=>{(!t||dl(t)&&!t.includes(n))&&(e instanceof File?r.append(n,e):dl(e)?hl(e,(e,t)=>{i(e,n+"["+t+"]")}):ll(e)&&Object.keys(e).length?cl(e,(t,r)=>{r in e&&i(t,n?n+"["+r+"]":r)}):zl(e)||void 0===e||r.append(n,e))};return i(e,n),r}function Gm(e){return"string"==typeof e?document.querySelector(e):e}function Bm(...e){let n=gm(e);if(n.url)return id(n.url,n.datatype,n.obj,e=>{Gd(n.url,e,n.successFn,n.errorFn,n.ele)},n.errorFn,n.abortFn)}function xm(e,n,t,r){if("object"==typeof e&&"string"==typeof n){let i=e;const a=n.split(".");hl(a,(e,n)=>{if(!i){if(!r)throw new Error(bbn._("The object is invalid"));i={}}a.length-1===n?i[e]=t:i=i[e]})}}function Rm(e,n){return Math.floor(Math.random()*(n-e+1)+e)}function jm(e,n=" "){if(" "===n)return e.trim();if(!n)return e;if(n===e)return"";for(;0===e.indexOf(n);)e=sl(e,n.length);for(;e.lastIndexOf(n)===e.length-n.length;)e=sl(e,0,e.length-n.length);return e}function Zm(e,n,t){return"string"==typeof e.toLowerCase()&&(n||(n=bbn.var.shortenLen),void 0!==t&&rl(t)||(t="..."),e.length>n&&(e=sl(e,0,n)+t)),e}var Um={_addLoader:Dl,_compareValues:Cl,_deleteLoader:Vl,abort:function(e){let n=$l(e);(null==n?void 0:n.aborter)&&n.aborter.abort("Operation canceled by the user.")},abortURL:function(e){hl(Jl(bbn.env.loaders,{url:e}),n=>{if(!n||!n.source)throw new Error("Impossible to find the loader with URL "+e);n.source.cancel("Operation canceled by the user.")})},addColors:Ql,addInputs:Xl,addStyle:function(e,n){ll(n)&&cl(n,(n,t)=>{e.style[t]=n})},adjustHeight:function(){let e=arguments;return 1===e.length&&fl(e[0])&&(e=e[0]),ed("height",e)},adjustSize:ed,adjustWidth:function(){let e=arguments;return 1===e.length&&fl(e[0])&&(e=e[0]),ed("width",e)},ajax:id,analyzeFunction:jl,animateCss:function(e,n,t){e.classList.add("animated"),e.classList.add(n),e.addEventListener("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function e(r){r.target.removeEventListener(r.type,e),"function"==typeof t&&t.call(this),r.target.classList.remove(n)})},arrayBuffer2String:od,arrayFromProp:function(e,n){let t=[];return hl(e,(e,r)=>{t.push(Sl(e,n))}),t},autoExtend:function(e,n){bbn[e]||(bbn[e]={}),yl(bbn[e],n)},baseName:sd,br2nl:function(e){return td("<br />","\n",td("<br/>","\n",td("<br>","\n",e)))},calendar:function(e,n=!1){let t=Od(e);return t.isValid?t.calendar():n&&rl(n)?n:""},callback:Gd,camelize:function(e){return e.replace(/^([A-Z])|[\s-](\w)/g,function(e,n,t,r){return t?t.toUpperCase():n.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 n=new Image;return n.src=e.toDataURL("image/png"),n},cast:function(e){var n;return e?"object"==typeof e?bbn.fn.isArray(e)?"Array ("+e.length+")":(null===(n=e.constructor)||void 0===n?void 0:n.name)||"{}":e.toString?e.toString():"string"==typeof e?e:"":""},center:function(e){let n=e.parentNode,t=n.clientWidth,r=n.clientHeight;for(;n&&(!t||!r);)n=e.parentNode,t=n.clientWidth,r=n.clientHeight;return e.style.position="absolute",e.style.top=Math.max(0,(r-e.offsetHeight)/2+n.scrollTop)+"px",e.style.left=Math.max(0,(r-e.offsetWidth)/2+n.scrollLeft)+"px",e},checkProps:function(e,n,t=!1){return Bd(e,n,t).result},checkPropsDetails:Bd,checkPropsOrDie:function(e,n,t=!1){let r=Bd(e,n,t);if(r.error)throw new Error(r.error);return!0},checkType:Rd,circularReplacer:function(){const e=new WeakSet;return(n,t)=>{if("object"==typeof t&&null!==t){if(e.has(t))return;e.add(t),[void 0,Object,Array,null].includes(t.constructor)||(t=Ol(t)?t.bbnId?"__BBN_DOM__"+t.tagName+"/"+t.bbnId+t.bbnHash:"__BBN_DOM__"+t.tagName+"/"+t.className:Gl(t)?"__BBN_CP__"+t.$options.name+"/"+t.$cid:t.constructor.toString())}return t}},clone:jd,colorToHex:function(e){let n=document.createElement("canvas").getContext("2d");return n.fillStyle=e,n.fillStyle},compare:Ul,compareConditions:Yl,copy:function(e,n){return new Promise(t=>{if(e){if(navigator&&navigator.clipboard)return void(e instanceof Blob?(navigator.clipboard.write([new ClipboardItem({[e.type.toString()]:e})]).then(()=>{t(!0)}),n||Zd(e,e.type.toString())):ll(e)&&al(e.toBlob)?e.toBlob(r=>{const i=new ClipboardItem({[r.type.toString()]:r});navigator.clipboard.write([i]).then(()=>{n||Zd(e,r.type.toString()),t(!0)})}):(navigator.clipboard.writeText(e),n||Zd(e),t(!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),n||Zd(e),t(!0)}t(!1)})},correctCase:xd,count:function(e,n,t=null,r="="){return Ud(e,n,t,r).length||0},crc32:function(e){let n=~0;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);n=n>>>8^Yd[255&(n^r)]}return(-1^n)>>>0},createObject:qd,cssExists:function(e){let n,t,r=document.styleSheets;for(let i=0;i<r.length;i++){n=1;try{t=r[i].rules||r[i].cssRules}catch(e){if(n=!1,"SecurityError"!==e.name)throw e}if(n)for(let n=0;n<t.length;n++)if(new RegExp("(^|\\s)"+nd(e)+"(\\{|\\s)","g").test(t[n].selectorText))return!0}return!1},data2Html:function e(n,t=""){const r=!dl(n);let i='<ul class="bbn-bottom-xspadding '+(t||"bbn-ul")+'">';for(let a in n)i+="<li>",r&&(i+="<em>"+a+"</em>: "),n[a]&&(dl(n[a])||ll(n[a]))?i+=e(n[a],t):i+=null===n[a]?"<em>null</em>":n[a].toString?n[a].toString():n[a],i+="</li>";return i+='</ul><div class="bbn-bottom-xspadding '+(t||"bbn-div")+'"></div>',i},date:Wd,dateSQL:function(e,n){let t=Od(e);if(t)return t.format("YYYY-MM-DD"+(n?"":" HH:mm:ss"))},deepPath:function e(n,t,r,i=[]){let a;return(a=Wl(n,t,0))>-1?(i.push(a),i):(hl(n,(n,a)=>{if(dl(n[r])){let o=i.slice();o.push(a);let s=e(n[r],t,r,o);if(!1!==s)return s}}),!1)},defaultAjaxAbortFunction:Kd,defaultAjaxErrorFunction:Vd,defaultAlertFunction:function(e,n=null){alert(e)},defaultConfirmFunction:function(e,n,t=null){let r=0;confirm(e)&&al(n)&&(n(),r=1),!r&&al(t)&&t()},defaultEndLoadingFunction:$d,defaultErrorFunction:function(e){ol(e)},defaultHistoryFunction:function(e){return!0},defaultLinkFunction:function(e,n){return!0},defaultPostLinkFunction:function(e,n=null){return!0},defaultPreLinkFunction:function(e,n=!1,t=null){return ol("defaultPreLinkFunction",e,n,t),!0},defaultResizeFunction:function(){return!0},defaultStartLoadingFunction:function(e,n,t,r){return!0},deleteProp:function(e,n){Rd(e,"object",bbn._("The obj must be an object in setProp")),Rd(n,"string",bbn._("The prop must be a string in setProp")),delete e[n]},diffObj:function e(n,t,r=!1,i=!1){i||(Qd=[]);let a="unchanged";void 0===i&&(i=!1);let o=qd();if(!al(n)&&!al(t)){if(Jd(n)||Jd(t)){let e=(s=n)===(u=t)||kl(s)&&kl(u)&&s.getTime()===u.getTime()?a:void 0===s?"created":void 0===u?"deleted":"updated";if(r||e!==a){let r=qd();return Object.defineProperty(r,"type",{value:e,enumerable:!1}),Object.defineProperty(r,"data",{value:void 0===n?t:n,enumerable:!1}),Object.defineProperty(r,"_bbnDiffObjProof",{value:!0,enumerable:!1}),void 0!==n&&Object.defineProperty(r,"newData",{value:t,enumerable:!1}),r}return!1}if(Ol(n)||Ol(t))return!1;if(Qd.includes(n)||Qd.includes(t))return!1;Qd.push(n,t);for(let i in n){if(al(n[i]))continue;let a;void 0!==t[i]&&(a=t[i]);let s=e(n[i],a,r,!0);s&&(o[i]=s)}for(let i in t){if(al(t[i])||void 0!==n[i])continue;let a=e(void 0,t[i],r,!0);a&&(o[i]=a)}}var s,u;return!(i&&!r&&!Pl(o))&&o},dirName:Xd,download:function(e,n="",t=null){return n&&"object"==typeof n&&(t=n,n=""),id(e,"blob",t||{_bbn_download:1},(t,r)=>{if(!n){let t="content-disposition",i="attachment; filename=";n=(null==r?void 0:r[t])&&0===r[t].indexOf(i)?sl(r[t],i.length+1,r[t].length-i.length-2):sd(e)}if(em(t)){let e=nm(n),r=["php","html"];if("string"==typeof n&&("type"in t&&"text/html"!==t.type||r.includes(e)))return void rm(n,t)}},e=>{bbn.fn.defaultAjaxErrorFunction(e)})},downloadContent:rm,each:hl,eraseCookie:function(e){document.cookie=e+"=; Max-Age=-99999999;"},error:Ld,escapeDquotes:function(e){return rl(e)?e.replace(/"/g,'\\"'):e},escapeRegExp:nd,escapeSquotes:function(e){return rl(e)?e.replace(/'/g,"\\'"):e},escapeTicks:function(e){return rl(e)?e.replace(/`/g,"\\`"):e},escapeUrl:function(e,n){let t="";e.match("^(http|https)://")&&(t+="http","s"===(e=e.substring(4)).substr(0,1)&&(t+="s",e=e.substring(1)),t+="://",e=e.substring(3)),hl(Xd(e).split("/"),e=>{t+=encodeURIComponent(e)+"/"});let r=sd(e),i="?",a="";if(r.indexOf(i)){let e=r.split("?");i="&",a="?"+e[1],r=e[0]}return n&&rl(n)?(n.match("^(\\&|\\?)")&&(n=n.substring(1)),n=i+n):n="",t+encodeURIComponent(r)+a+n},executeSlowly:function(e,n){return om(this,void 0,void 0,function*(){for(let t=0;t<e.length;t++){yield am();let r=n(e[t],t);if(r instanceof Promise&&(r=yield r),!1===r)return!1}return!0})},extend:yl,extendOut:function e(...n){let t=null;for(let r of n){if(!ll(r))throw new Error("Each argument for extendOut must be an object, "+typeof r+" given");if(null===t)t=r;else for(let n in r)ll(t[n],r[n])?e(t[n],r[n]):void 0===t[n]&&(t[n]=r[n])}return t},fdate:function(e,n=!1){let t=Od(e),r=!1;return!0===n&&(r=!0),t.isValid?t.fdate(!1,r):n&&rl(n)?n:""},fdatetime:function(e,n=!1){let t=Od(e);return t.isValid?t.fdate(!1,!0):n&&rl(n)?n:""},fieldValue:sm,fileExt:nm,filter:Ud,filterToConditions:ql,findAll:function e(n,t,r,i=[]){let a,o=0;for(;(a=Wl(n,t,o))>-1;)i.push(n[a]),o=a+1;return hl(n,n=>{dl(n[r])&&e(n[r],t,r,i)}),i},firstVarElement:function(e){const n=e.indexOf("["),t=e.indexOf(".");return-1===n&&-1===t?e:-1===n?e.substring(0,t):-1===t?e.substring(0,n):e.substring(0,Math.min(n,t))},fori:function(e,n,t=e.length-1,r=0){if(dl(e)){let i=e.length-1;ml(t)&&0<t&&t<=i||(t=i),(!ml(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=r;i<=t;i++)if(!1===n(e[i],i))return}},forir:function(e,n,t=e.length-1,r=0){if(dl(e)){let i=e.length-1;ml(t)&&0<t&&t<=i||(t=i),(!ml(r)||!(0<=r&&r<i)||r>t)&&(r=0);for(let i=t;i>=r;i--)if(!1===n(e[i],i))return}},format:function(e){let n=Array.prototype.slice.call(arguments,1);if(n.length){let t=0;return e.replace(/\%([d|s])/g,(e,r)=>{let i=n[t++];return Rd(i,"d"===r?"number":"string",bbn._("The value doesn't correspond to the format")),i})}return e},formatBytes:function(e,n=2){if(!e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(n<0?0:n))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]},formatDate:function(e,n){const t=Od(e);return t.isValid?t.format(n):""},formatSize:function(e,n){return ml(e)?e+"px":rl(e)?e:!n&&"auto"},formdata:um,fphone:function(e){var n;if(ml(e)&&(e=e.toString()),rl(e)){const t=(null===(n=bbn.var)||void 0===n?void 0:n.phoneCodes)||[];let r="",i="",a="";if(t.length&&hl(t,n=>{e.startsWith(n.prefix)&&n.prefix.length>i.length&&(i=n.prefix,a=n.mask||"")}),!a.length&&e.startsWith("+")){i.length||(i=e.substr(0,3));const n=e.slice(i.length);for(let e=0;e<n.length;e++)e+1<=n.length&&e%2==0&&(a+="0"+(n[e+1]?"0":"")+" ");a=a.trim()}if(a.length){i.length&&(r=i+" ",e=e.slice(i.length));let n=0;return r+=a.replace(/[0-9]/g,()=>e[n++]||""),r}}return e},fromXml:function(e,n){let t=null;if(window.DOMParser)t=(new DOMParser).parseFromString(e,"text/xml");else{if(!window.ActiveXObject)throw new Error("cannot parse xml string!");if(t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async=!1,!t.loadXML(e))throw t.parseError.reason+" "+t.parseError.srcText}function r(e,t){if("#text"==e.nodeName){let n=e.nodeValue;return void(n.trim()&&(t["#text"]=n))}let i={},a=t[e.nodeName];if(a?Array.isArray(a)?t[e.nodeName].push(i):t[e.nodeName]=[a,i]:n&&-1!=n.indexOf(e.nodeName)?t[e.nodeName]=[i]:t[e.nodeName]=i,e.attributes)for(let n of e.attributes)i[n.nodeName]=n.nodeValue;for(let n of e.childNodes)r(n,i)}let i={};for(let e of t.childNodes)r(e,i);return i},ftime:function(e,n){let t=Od(e);return t.isValid?t.ftime():n&&rl(n)?n:""},getAllTags:function(){return cm(Array.prototype.map.apply(document.all,[e=>e.tagName.toLowerCase()]))},getAncestors:lm,getAttributes:function(e){e.getAttributeNames||Ld("The element is not a proper HTML Element");let n=Object.create(null);return e.getAttributeNames().forEach(t=>{n[t]=e.getAttribute(t)}),n},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 n=e+"=",t=document.cookie.split(";");for(let e=0;e<t.length;e++){let r=t[e];for(;" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(n)){let e=r.substring(n.length,r.length);if(e)return JSON.parse(unescape(e)).value}}return null},getCssVar:dm,getDay:function(e){let n=Wd(e);if(n){let e=n.getTime(),r=n.getYear(),i=365*(r-1970);n.getMonth()<2&&r--;for(var t=1972;t<=r;t+=4)i++;return i+Math.floor(e/864e5)}return!1},getDeviceType:mm,getEventData:function(e){let n=e.dataTransfer||e.clipboardData,t=n.getData("Text"),r={raw:t,files:[],str:[]},i=new Promise((i,a)=>{let o=!(n instanceof DataTransfer);if(!t&&"copy"===e.type){let e=window.getSelection();r.raw=e.toString();let n=fm();r.str.push({type:"text/plain",data:r.raw}),n!==r.raw?r.str.push({type:"text/html",data:n}):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>"}),o=!0,i(r)}if(!o){let e=[],t=n.items.length;hl(n.items,(a,s)=>{let u=a.kind,c=a.type;if("file"===u){let u=n.files[s];if(!c&&u.name){let e=u.name.split(".");c=e[e.length-1]}let l=u?u.name:bbn._("untitled"),d=u?u.size:null,m=u?u.lastModified:null,f=a.getAsFile();f?(o=!0,t--,r.files.push({type:c,data:f,name:l,size:d,mdate:m}),e.push(l),t||(r.raw||(r.raw=e.join(", ")),i(r))):bbn.fn.defaultErrorFunction(bbn._("Impossible to read the file")+" "+l)}else o=!0,a.getAsString(n=>{t--,r.str.push({type:c,data:n}),"text/plain"===c&&e.push(name),t||(r.raw||(r.raw=e.join(", ")),i(r))})})}o||setTimeout(()=>{i(r)})});return i},getField:function(e,n,t="",r=null,i="=",a=0,o=!1,s=void 0){let u;return t&&["object","function"].includes(typeof t)&&6 in arguments&&(s=o),n?(u=Kl(e,t,r,i,a,o,void 0),void 0===u?s:u[n]):s},getFieldValues:function(e,n,t,r,i){Rd(n,"string"),t&&(e=Jl(e,t,r,i));let a=[];return hl(e,e=>-1===a.indexOf(e[n])?a.push(e[n]):null),a},getFileContent:function(){let e,n,t="",r="text";bbn.fn.each(arguments,i=>{"string"==typeof i?["binary","text"].includes(i.toLowerCase())?r=i.toLowerCase():t||(t=i,"image"===t&&(t="image/*")):bbn.fn.isFunction(i)&&(e?n||(n=i):e=i)});let i=document.createElement("input");i.type="file",t&&i.setAttribute("accept",t),i.onchange=function(t){var a;const o=null===(a=i.files)||void 0===a?void 0:a[0];if(!o)return;const s=new FileReader;"binary"===r?s.readAsArrayBuffer(o):s.readAsText(o,"UTF-8"),s.onload=function({target:n}){e&&e(null==n?void 0:n.result)},s.onerror=function(){n&&n("error reading file")}},i.click()},getIndex:function(e,n=""){return e.parentElement?(n||Array.from(e.parentElement.children).indexOf(e),Array.from(e.parentElement.children).filter(e=>e.matches(n)).indexOf(e)):-1},getHtml:function(e,n=!1){let t=e.innerHTML();return n&&(t=hm(t)),t.trim()},getHTMLOfSelection:fm,getLoader:$l,getPath:Ll,getProp:function(e,n){return Rd(e,"object",bbn._("The obj must be an object in setProp")),Rd(n,"string",bbn._("The prop must be a string in setProp")),e[n]},getProperty:Sl,getRequestId:rd,getRow:Kl,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 n=e.offsetWidth;e.style.overflow="scroll";let t=document.createElement("div");t.style.width="100%",e.appendChild(t);let r=t.offsetWidth;e.parentNode.removeChild(e);let i=n-r;bbn.env.scrollBarSize=i?i+1:0}return bbn.env.scrollBarSize},getSortingMoves:function(e,n){if(e.length!==n.length)throw new Error("Lengths must match.");const t=new Set(n);if(t.size!==n.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!==t.size||Array.from(r).some(e=>!t.has(e)))throw new Error("Arrays must contain the same unique values.");const i=new Map(n.map((e,n)=>[e,n])),a=e.map(e=>i.get(e)),o=(e=>{const n=e.length,t=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){let n=e[i],a=0,o=t.length;for(;a<o;){const r=a+o>>1;e[t[r]]<n?a=r+1:o=r}a>0&&(r[i]=t[a-1]),t[a]=i}const i=[];for(let e=t.length?t[t.length-1]:-1;-1!==e;e=r[e])i.push(e);return i.reverse()})(a),s=new Set(o.map(n=>e[n])),u=Array(n.length).fill(-1);for(let e=n.length-2;e>=0;e--)u[e]=u[e+1],s.has(n[e+1])&&(u[e]=e+1);const c=e.slice(),l=new Map(c.map((e,n)=>[e,n])),d=[];for(let e=0;e<n.length;e++){const t=n[e];if(s.has(t))continue;const r=l.get(t);if(void 0===r)throw new Error("Inconsistent state");const i=u[e],a=-1!==i?l.get(n[i]):c.length;if(void 0===a)throw new Error("Inconsistent state");const o=r<a?a-1:a;if(r!==o){const[e]=c.splice(r,1);c.splice(o,0,e),d.push({from:r,to:o,value:t}),l.clear();for(let e=0;e<c.length;e++)l.set(c[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;"}),ol.apply(this,e),this},hash:xl,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 n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},history:function(){return window.history||!1},html2text:ym,imageToCanvas:Mm,imgToBase64:function(e,n="image/png"){return Mm(e).toDataURL(n)},info:function(...e){return e.unshift({_bbn_console_level:4,_bbn_console_style:"color: #EEE; background: blue; font-size: 12px;"}),ol.apply(this,e),this},init:function(e,n){var t,r;if(!bbn.env.isInit){bbn.env.root=(null===(r=null===(t=globalThis.document)||void 0===t?void 0:t.baseURI)||void 0===r?void 0:r.length)?globalThis.document.baseURI:bbn.env.host,bbn.env.root.length&&"/"!==sl(bbn.env.root,-1)&&(bbn.env.root+="/"),"object"==typeof e&&yl(!0,bbn,e);const[n,i]=bbn.env.url.split("?"),a=i?i.split("&").reduce((e,n)=>{const[t,r]=n.split("=");return e[t]=r,e},{}):{};bbn.env.getParameters=a,bbn.env.path=sl(n,bbn.env.root.length),bbn.env.params=bbn.env.path.split("/").filter(e=>""!==e),Pm(),globalThis.document&&(bbn.var.colors&&Ql(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=Tm()}),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=Tm()}),document.addEventListener("click",zm),document.addEventListener("keydown",zm),document.addEventListener("focusin",Nm),document.addEventListener("focusout",Nm),window.addEventListener("hashchange",()=>{bbn.env.hashChanged=(new Date).getTime()},!1),window.addEventListener("resize",()=>{wm()}),window.addEventListener("orientationchange",()=>{wm()}),wm(),Em()&&(document.body.classList.add("bbn-mobile"),_m()&&document.body.classList.add("bbn-tablet")),window.history&&(window.onpopstate=function(e){let n=window.history;if(!bbn.env.historyDisabled&&n&&bbn.fn.defaultHistoryFunction(n.state)){let e=n.state;e?vm(e.url,yl({title:e.title||bbn.env.siteTitle},e.data||{})):e&&e.data&&al(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")))}},isActiveInterface:function(e=600){return!!bbn.env.last_focus&&(new Date).getTime()-bbn.env.last_focus<1e3*e},isArray:dl,isBlob:em,isBoolean:function(...e){if(!e.length)return!1;for(let n of e)if(![!0,!1].includes(n))return!1;return!0},isCanvas:tm,isColor:function(...e){if(!e.length)return!1;var n=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 t of e){if(!rl(t))return!1;if(!n.test(t))return!1}return!0},isComment:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Comment))return!1;return!0},isCp:Gl,isDataURL:function(...e){if(!e.length)return!1;for(let n of e)if(!/^data:([a-z]+\/[a-z0-9\-\+\.]+(;[a-z\-]+\=[a-z0-9\-\.]+)?)?(;base64)?,/i.test(n))return!1;return!0},isDate:kl,isDesktopDevice:function(){return"desktop"===mm()},isDimension:function(...e){if(!e.length)return!1;for(let n of e){if("number"!=typeof n||n<0)return!1;if(!Hm(n))return!1}return!0},isDom:Ol,isEmail:function(...e){if(!e.length)return!1;let n=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;for(let t of e){if(!rl(t))return!1;if(!n.test(t))return!1}return!0},isEmpty:Nl,isEvent:function(...e){if(!e.length)return!1;for(let n of e)if(!(n instanceof Event))return!1;return!0},isFocused:function(e,n=!1){return e===document.activeElement||n&&e.contains&&e.contains(document.activeElement)},isFunction:al,isHex:function(e){return Boolean(e.match(/^(0x)?[0-9a-f]+$/i))},isHostname:function(...e){if(!e.length)return!1;for(let n of e){if(!rl(n))return!1;if(!Im(n)&&!bbn.var.regexp.hostname.test(n))return!1}return!0},isInside:function(e,n){let t=lm(e);if(t.length){if(rl(n)){let e=!1;return hl(t,t=>{if(t.matches&&t.matches(n))return e=!0,!1}),e}if(n instanceof HTMLElement)return t.indexOf(n)>-1}return!1},isInt:il,isInViewport:function(e,n=!1){const t=e.getBoundingClientRect();if(n)return t.top>=0&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight);const r=e.offsetHeight,i=e.offsetWidth;return t.top>=-r&&t.left>=-i&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r},isIP:Im,isIterable:fl,isMobile:Em,isMobileDevice:bm,isNotObject:Jd,isNull:zl,isNumber:ml,isObject:ll,isPercent:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^\d+(?:\.\d+)?%$/))return!1;return!0},isPrimitive:dd,isPromise:function(...e){if(!e.length)return!1;for(let n of e)if("[object Promise]"!=={}.toString.apply(n))return!1;return!0},isPropSize:function(e){let n=!1;return hl(["width","height","gap","margin","padding","top","left","right","bottom"],t=>{if(-1!==e.indexOf(t))return n=!0,!1}),n},isSame:Zl,isSQLDate:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.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:rl,isSymbol:Fm,isTabletDevice:_m,isURL:function(...e){if(!e.length)return!1;for(let n of e)if(!bbn.var.regexp.url.test(n))return!1;return!0},isUid:function(...e){if(!e.length)return!1;for(let n of e)if("string"!=typeof n||!n.match(/^[0-9a-f]{32}$/i))return!1;return!0},isValidDimension:Hm,isValidName:function(...e){if(!e.length)return!1;for(let n of e)if(!rl(n)||!/^[$A-Z_][0-9A-Z_$]*$/i.test(n))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 n of e)if(!n||"function"!=typeof n.render)return!1}else for(let n of e)if(!(n 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,n){let t;for(;e&&(t=Object.getOwnPropertyDescriptor(e,n),!t);)e=Object.getPrototypeOf(e);return!t||Boolean(t.writable||t.set)},iterate:cl,lightenDarkenHex:function(e,n){if(e&&n){let t="#"===e[0];e=t?e.slice(1):e;let r=parseInt(e,16),i=(r>>16)+n,a=(r>>8&255)+n,o=(255&r)+n;return i>255?i=255:i<0&&(i=0),a>255?a=255:a<0&&(a=0),o>255?o=255:o<0&&(o=0),(t?"#":"")+(o|a<<8|i<<16).toString(16)}},link:vm,log:ol,makeReactive:function e(n,t,r,i){const a=(null==r?void 0:r.$cid)||"",o="__bbn_"+(a?a+"_":"");if(n&&"object"==typeof n&&[void 0,Object,Array].includes(n.constructor)){if(n.__bbnIsProxy&&n.__bbnParent===r)return n;r&&r.$options&&"bbn-loadbar"===r.$options.name&&ol(["MAKING bbn-loadbar",n]),n.__bbnWatchers||Reflect.defineProperty(n,"__bbnWatchers",{value:qd(),writable:!0,configurable:!0,enumerable:!1});return new Proxy(n,{get(s,u){const c=Reflect.get(s,u),l=s.__bbnRoot||s;if(Fm(u))return Reflect.get(l,u);const d=i?i+"."+u:u,m=o+(ml(u)?u.toString():u);if(["fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)&&dl(s))return function(...e){let n=l[u](...e);return Om("DOING ARRAY STUFF"),ol(s.__bbnParent),t(s,"length",r),n};if(al(c))return c;if("__bbnRoot"===u){let e=n;for(;e&&(null==e?void 0:e.__bbnTarget);)e=e.__bbnTarget;return e}return"__bbnIsProxy"===u||("__bbnTarget"===u?s:"__bbnParent"===u?r:"__bbnWatchers"===u?s.__bbnWatchers:0===u.indexOf("__bbn_")?Reflect.get(s,u):"length"===u&&dl(s.__bbnRoot||s)?l.length:u in s&&c&&"object"==typeof c&&[void 0,Object,Array].includes(c.constructor)?(c.__bbnIsProxy&&c.__bbnParent===r||(m in l||Reflect.defineProperty(l,m,{value:e(c,t,r,d),writable:!0,configurable:!0,enumerable:!1}),l[m].__bbnIsProxy&&!l.__bbnWatchers[a]&&(l.__bbnWatchers[a]=d)),l[m]):c)},set(n,s,u){if(Fm(s))return Reflect.get(n,s,u);const c=n.__bbnRoot||n,l=i?i+"."+s:s;if(Fm(s))return Reflect.get(n,s);if(r&&r.$options&&"bbn-loadbar"===r.$options.name&&ol(["Setting proxy prop in "+r.$options.name,n,s,u]),!Zl(c[s],u)){if(0===s.indexOf("__bbn_"))Reflect.defineProperty(c,s,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1});else if(u&&"object"==typeof u&&[void 0,Object,Array].includes(u.constructor)){const n=o+(ml(s)?s.toString():s);Reflect.defineProperty(c,n,{value:e(u,t,r,l),writable:!0,configurable:!0,enumerable:!1}),c[n].__bbnIsProxy&&!c.__bbnWatchers[a]&&(c.__bbnWatchers[a]=l)}r&&r.$options&&"bbn-loadbar"===r.$options.name&&ol(["Setting proxy prop in "+r.$options.name+" "+(ml(s)?s.toString():s),u,n]),Reflect.set(c,s,u),t(n,s,r)}return!0},defineProperty(n,a,s){const u=n,c=i?i+"."+a:a;if("__bbnWatchers"===a||Fm(a)||0===a.indexOf("__bbn_"))Reflect.defineProperty(u,a,s);else{const n=o+(ml(a)?a.toString():a);Reflect.defineProperty(u,n,{value:e(s.value,t,r,c),writable:!0,configurable:!0,enumerable:!1})}return t(n,a,r),!0},deleteProperty(e,n){const t=e;if(0===n.indexOf("__bbn_"))Reflect.deleteProperty(t,n);else{const r=o+(ml(n)?n.toString():n);Reflect.deleteProperty(t,r),Reflect.deleteProperty(e,n)}return!0}})}return n},map:function e(n,t,r,i=0){return n.map((n,a)=>(n=t(n,a,i),r&&n[r]&&dl(n[r])&&(n[r]=e(n[r],t,r,i+1)),n))},md5:Rl,microtimestamp:function(){return window.performance.now()+performance.timeOrigin},money:function(e,n,t,r,i,a,o){if(i||(i=void 0===i&&bbn.env.money&&void 0!==bbn.env.money.decimal?bbn.env.money.decimal:"."),t||(t=void 0===t&&bbn.env.money&&void 0!==bbn.env.money.currency?bbn.env.money.currency:""),a||(a=void 0===a&&bbn.env.money&&void 0!==bbn.env.money.thousands?bbn.env.money.thousands:" "),o||(o=void 0===o&&bbn.env.money&&void 0!==bbn.env.money.precision?bbn.env.money.precision:0),n||(n=!(void 0!==n||!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),ml(o)||(o=n?3:0),0===e&&"number"==typeof o&&o>0){let r=e.toFixed(o).replace(".",i);return t&&(r+=" "+(n?"K"+t:t)),r}if((isNaN(e)||!e)&&r)return r;if(isNaN(e)||!e)return 0+(t?" "+t:"");if("string"==typeof e&&(e=Number(e)),"number"!=typeof e)throw new Error("The value must be a number");n&&e&&(e/=1e3,t&&(t="K"+t));let s=e.toFixed(o),u=0,c=1e4;return s&&(c=s.indexOf("."),c<=0?c=1e4:u=s.length-c),s.replace(/./g,function(e,n,t){return"."===e?i:n&&(t.length-n-u)%3==0&&n<c?a+e:e})+(t?" "+t:"")},move:function(e,n,t){if(t>=e.length){let n=t-e.length;for(;1+n--;)e.push(void 0)}return e.splice(t,0,e.splice(n,1)[0]),e},multiorder:function(e,n){if(!n)return e;let t;if(Array.isArray(n)||"object"!=typeof n)t=n;else for(var r in t=[],n)t.push({field:r,dir:n[r]});if(!Array.isArray(t))throw new Error("The orders argument must be an array");return e.slice().sort((e,n)=>{let r;for(let i of t)if(r=Cl(e,n,i.field,i.dir),0!==r)return r;return 0})},mutateArray:function(e,n,t=null){if(!dl(e,n))throw new TypeError("mutateArray can only be called with arrays");t?Rd(t,"function","The hash function must be a function"):t=xl;const r=new Map(n.map(e=>[t(e),e]));let i=[];n.forEach(e=>{i.push(e)});let a=e.length;for(;a--;)r.has(t(e[a]))||e.splice(a,1);for(let n=0;n<i.length;n++)if(n>=e.length||!Zl(e[n],i[n])){const t=Wl(e,i[n]);if(-1!==t){const[r]=e.splice(t,1);e.splice(n,0,r)}else e.splice(n,0,i[n])}return e.length>i.length&&e.splice(i.length,e.length-i.length),e},mutateObject:function(e,n,t){if(!ll(e,n))throw new TypeError("mutateObject can only be called with objects parameters");t?Rd(t,"function","The hash function must be a function"):t=xl;const r=Object.keys(n);for(let n in e)r.includes(n)||delete e[n];return r.forEach(t=>{Zl(e[t],n[t])||(e[t]=n[t])}),e},nl2br:function(e,n){return td("\n","<br>"+(n?"\n":""),e)},numProperties:Pl,objectToFormData:Lm,order:function(e,n,t="asc"){return e?e.sort(function(e,r){return Cl(e,r,n,t)}):e},outerHeight:function(e){if((e=Gm(e))&&"offsetHeight"in e){let n=window.getComputedStyle(e),t=parseFloat(n.marginTop)+parseFloat(n.marginBottom);return Math.ceil(e.offsetHeight+t)}},outerWidth:function(e){e=Gm(e);let n=window.getComputedStyle(e),t=parseFloat(n.marginLeft)+parseFloat(n.marginRight);return Math.ceil(e.offsetWidth+t)},percent:function(e,n){return n/100*e},pickValue:function(e){if(Array.isArray(e)&&e.length)return e[Math.floor(Math.random()*e.length)]},post:Bm,postOut:function(e,n,t=null,r=""){let i=document.body.querySelector("form#bbn-form_out");i||(i=document.createElement("form"),i.classList.add("bbn-no"),i.setAttribute("id","bbn-form_out"),i.setAttribute("method","post"),i.setAttribute("enctype","multipart/form-data-encoded"),xm(i,"style.display","none"),document.body.appendChild(i)),i instanceof HTMLFormElement&&(i.innerHTML="",i.setAttribute("action",e),i.setAttribute("target",r||"_blank"),n||(n={}),(n=qd(n)).bbn||(n.bbn="public"),Xl(i,n),i.submit(),t&&t())},printf:function(e){var n=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,t){return void 0!==n[t]?n[t]:e})},quotes2html:function(e,n){return n&&0!==n.toLowerCase().indexOf("s")||(e=td("'","&#39;",e)),n&&0!==n.toLowerCase().indexOf("d")||(e=td('"',"&quot;",e)),e},randomInt:Rm,randomString:function(e,n,t){let r,i,a={n:"0123456789",l:"abcdefghijklmnopqrstuvwxyz",u:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"};t||(t="nlu"),e||(r=Rm(8,14)),"string"==typeof n?(t="n",delete a.l,delete a.u,a.n=n,r||(r=e)):"number"==typeof n&&e<n?r=Rm(e,n):e&&(r=e);let o="";for(let e=0;e<r;e++)0===e?"n"!==t&&(i=-1===t.indexOf("u")?"l":"u"):i=t[Math.floor(Math.random()*t.length)],o+=a[i][Math.floor(Math.random()*a[i].length)];return o},range:function(e,n,t){return Array.from({length:(n-e)/t+1},(n,r)=>e+r*t)},removeAccents:Al,removeEmpty:function(e){var n=[];if(dl(e))for(let t=0;t<e.length;t++){let r=!1;e[t]&&(dl(e[t])?e[t].length&&(r=!0):ll(e[t])?Pl(e[t])&&(r=!0):r=!0),r&&n.push(e[t])}return n},removeExtraSpaces:function(e){return e.replace(/\s+/g," ").trim()},removeHtmlComments:hm,removePrivateProp:ul,removeTrailingChars:function(e,n){if(n||(n=" "),n.length){for(;sl(e,-n.length)===n;)e=sl(e,0,e.length-n.length);for(;sl(e,0,n.length)===n;)e=sl(e,n.length)}return e},repeat:function(e,n){return e.repeat(n)},replaceAll:td,replaceSelection:function(e,n){let t,r,i;if(t=window.getSelection(),t.getRangeAt&&t.rangeCount){if(r=window.getSelection().getRangeAt(0),r.deleteContents(),r.createContextualFragment)i=r.createContextualFragment(e);else{const n=document.createElement("div");let t;for(n.innerHTML=e,i=document.createDocumentFragment();t=n.firstChild;)i.appendChild(t)}const a=i.firstChild,o=i.lastChild;r.insertNode(i),t.removeAllRanges(),n?(a&&(r.setStartBefore(a),r.setEndAfter(o)),t.addRange(r)):(r.setStartAfter(o),t.addRange(r))}},resize:wm,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,n,t=!1){return cl(e,n,t,!0)},roundDecimal:function(e,n){return Number(Math.round(parseFloat(e+"e"+n+"e-"+n)))},sanitize:function(e,n="_"){let t=["[","]","{","}","(",")","-","+","*","/"],r="[";for(let e=0;e<n.length;e++)t.includes(n[e])&&(r+="\\"),r+=n[e];r+="]+";let i=new RegExp(r,"g");return jm(Al(e).replace(/[^a-z0-9]/gi,n).replace(i,n),n)},search:Wl,selectElementText:function(e,n=null){if(n=n||window,e instanceof HTMLInputElement)return void e.select();let t,r,i=n.document;n.getSelection&&i.createRange?(t=n.getSelection(),r=i.createRange(),r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r)):"createTextRange"in i.body&&"function"==typeof i.body.createTextRange&&(r=i.body.createTextRange(),r.moveToElementText(e),r.select())},selector:Gm,setCookie:function(e,n,t){let r="";if(t){let e=new Date;e.setTime(e.getTime()+24*t*60*60*1e3),r="; expires="+e.toUTCString()}let i=escape(JSON.stringify({value:n}));document.cookie=e+"="+i+r+"; path=/"},setCssVar:function(e,n){0!==e.indexOf("--")&&(e="--"+e),document.documentElement.style.setProperty(e,n)},setNavigationVars:pm,setProp:function(e,n,t,r=!0,i=!0){Object.defineProperty(e,n,{value:t,writable:r,configurable:i})},setProperty:xm,shorten:Zm,shortenObj:function e(n,t=100){let r=jd(n);return hl(r,(n,i)=>{rl(n)&&n.length>t?r[i]=Zm(n,t):n&&"object"==typeof n&&(r[i]=e(n))}),r},shuffle:function(e){let n,t=e.length;for(;0!=t;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e},simpleHash:Fl,simpleHash1:Hl,simpleHash2:Il,startChrono:function(e){let n=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"]=n,e},stopChrono:function(e,n){if(this.constructor.chronos[e||"default"]){let t=bbn.fn.microtimestamp()-this.constructor.chronos[e||"default"];return delete this.constructor.chronos[e||"default"],n&&(t=Math.round(t)/1e3),t}throw Error("No chrono with name "+(e||"default"))},stream:function(e,n,t,r,i,a){const o=rd(e,t,"json"),s=$l(o);if(null==s?void 0:s.loader)return s.loader;t||(t={}),bbn.env.token&&(t._bbn_token=bbn.env.token);const u=new AbortController;let c="";const l=e=>{if(e.length){e=e.indexOf("\n")>-1?bbn.fn.removeEmpty(e.split("\n")):[e];for(let t in e)try{const r=JSON.parse(e[t]);(null==r?void 0:r.__bbn_stream_ping__)||n(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:u.signal,body:JSON.stringify(t||{})}).then(e=>{if(e.body){const r=e.body.getReader(),i=al(n);r.read().then(function e({done:s,value:u}){if(s)return Vl(o,t),c&&l(c),void(a&&a());if(i)if(c+=od(u).trim(),bbn.fn.log(["STREAM RESULT",c.length,c]),c)try{l(c),c=""}catch(e){}else n();else bbn.fn.log(["STREAM SUCCESS IS FN? "+i]);return r.read().then(e)})}}).catch(n=>{let a=!(!(s=n)||!0!==s.__BBN_CANCEL__);var s;if(Vl(o,t,a),a){let t=1;al(i)&&(t=i(n.message,e)),t&&Kd(n.message,e)}else{let e=1;al(r)&&(e=r(n.request,n)),e&&Vd(n.request,n.response?n.response.data:"",n.response?n.response.status:n)}});return Dl(o,d,u),d},string2ArrayBuffer:function(e){for(var n=new ArrayBuffer(2*e.length),t=new Uint16Array(n),r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n},submit:function(e,n,t){let r,i=e.getAttribute("action")||bbn.env.path;if(""===i&&(i="."),"string"==typeof i&&(0!==i.indexOf("http")||-1!==i.indexOf(window.document.location.hostname))&&!e.getAttribute("target")&&(n&&n.preventDefault(),r=um(e),r)){e.setAttribute("action",null);const n=[i,r];!t&&e.getAttribute("data-script")&&(t=(t=new Function(e.getAttribute("data-script")))()),t&&n.push(t),Bm(...n)}},substr:sl,sum:function(e,n,t,r,i){let a=0;return hl(Ud(e,t,r,i),e=>{let t="function"==typeof n?n(e):e[n];t&&(a+=parseFloat(t)||0)}),a},timestamp:Tm,toCSV:function(e,n=",",t="",r='"'){n||(n=","),r||(r='"');let i="",a=e.length;return hl(e,(e,o)=>{let s=dl(e)?e.length:Object.values(e).length,u=0;hl(e,e=>{i+="string"==typeof e?r+td(r,"\\"+r,e)+r:0===e?"0":e&&e.toString?e.toString():r+r,u++,u<s&&(i+=n)}),o<a-1&&(i+=t+"\n")}),i},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(){wm()},0)},translate:function(e,n){let t=n?bbn.lng[0===n.indexOf("_")?n:"_"+n]:bbn.lng;cl(e,(e,n)=>{t[n]=e})},treatAjaxArguments:gm,treatForHash:Bl,trim:jm,uniqString:function(...e){for(var n="",t=0;t<e.length;t++)if(e[t])if("object"==typeof e[t])if(dl(e[t]))n+=JSON.stringify(e[t]);else{let r={};hl(Object.keys(e[t]).sort(),n=>{r[n]=e[t][n]}),n+=JSON.stringify(r)}else"string"!=typeof e[t]?n+=e[t].toString():n+=e[t];else n+="__bbn_empty__";return Rl(n)},unique:cm,upload:function(e,n,t=null,r=null,i=null){const a=()=>tl.run("post",e||bbn.env.path,{data:Lm(n),headers:{},onUploadProgress(e){if(i){let n=Math.round(100*e.loaded/e.total);i(n,e.loaded,e.total)}}});return t||r?a().then(e=>{t&&(ol("SUCCESS",e),t(e))}).catch(e=>{r&&(ol("ERROR",e),r(e))}):a()},warning:Om,yieldToBrowser:am};const Ym={version:"1.0.1",opt:{_cat:{}},app:{},_:Zc,$:function(e,n){if(null==n?void 0:n.querySelectorAll)return n.querySelectorAll(e);if(n)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:$c,dt:Od,com:tl,env:Jc,db:Tl,fn:Um,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=Ym,"Temporal"in globalThis||(globalThis.Temporal=xc));var qm=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}}});function Wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Km(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if("function"==typeof n){var t=function e(){var t=!1;try{t=this instanceof e}catch{}return t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Vm={},$m=function(e,n){return $m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},$m(e,n)};function Jm(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}$m(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var Qm=function(){return Qm=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},Qm.apply(this,arguments)};function Xm(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}function ef(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function nf(e,n){return function(t,r){n(t,r,e)}}function tf(e,n,t,r,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!n&&e?r.static?e:e.prototype:null,d=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),m=!1,f=t.length-1;f>=0;f--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(m)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var M=(0,t[f])("accessor"===u?{get:d.get,set:d.set}:d[c],h);if("accessor"===u){if(void 0===M)continue;if(null===M||"object"!=typeof M)throw new TypeError("Object expected");(s=o(M.get))&&(d.get=s),(s=o(M.set))&&(d.set=s),(s=o(M.init))&&i.unshift(s)}else(s=o(M))&&("field"===u?i.unshift(s):d[c]=s)}l&&Object.defineProperty(l,r.name,d),m=!0}function rf(e,n,t){for(var r=arguments.length>2,i=0;i<n.length;i++)t=r?n[i].call(e,t):n[i].call(e);return r?t:void 0}function af(e){return"symbol"==typeof e?e:"".concat(e)}function of(e,n,t){return"symbol"==typeof n&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:t?"".concat(t," ",n):n})}function sf(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function uf(e,n,t,r){return new(t||(t=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(o,s)}u((r=r.apply(e,n||[])).next())})}function cf(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}var lf=Object.create?function(e,n,t,r){void 0===r&&(r=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,i)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]};function df(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||lf(n,e,t)}function mf(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ff(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}function hf(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(ff(arguments[n]));return e}function yf(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function Mf(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i<a;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}function gf(e){return this instanceof gf?(this.v=e,this):new gf(e)}function pf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(n){return Promise.resolve(n).then(e,c)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,n){i[e]&&(r[e]=function(n){return new Promise(function(t,r){a.push([e,n,t,r])>1||s(e,n)})},n&&(r[e]=n(r[e])))}function s(e,n){try{!function(e){e.value instanceof gf?Promise.resolve(e.value.v).then(u,c):l(a[0][2],e)}(i[e](n))}catch(e){l(a[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,n){e(n),a.shift(),a.length&&s(a[0][0],a[0][1])}}function vf(e){var n,t;return n={},r("next"),r("throw",function(e){throw e}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,i){n[r]=e[r]?function(n){return(t=!t)?{value:gf(e[r](n)),done:!1}:i?i(n):n}:i}}function wf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=mf(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){(function(e,n,t,r){Promise.resolve(r).then(function(n){e({value:n,done:t})},n)})(r,i,(n=e[t](n)).done,n.value)})}}}function bf(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var _f=Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n},Ef=function(e){return Ef=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},Ef(e)};function Tf(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=Ef(e),r=0;r<t.length;r++)"default"!==t[r]&&lf(n,e,t[r]);return _f(n,e),n}function Df(e){return e&&e.__esModule?e:{default:e}}function Sf(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}function Af(e,n,t,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!i:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,t):i?i.value=t:n.set(e,t),t}function kf(e,n){if(null===n||"object"!=typeof n&&"function"!=typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?n===e:e.has(n)}function Cf(e,n,t){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,i;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],t&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}var Pf="function"==typeof SuppressedError?SuppressedError:function(e,n,t){var r=new Error(t);return r.name="SuppressedError",r.error=e,r.suppressed=n,r};function Nf(e){function n(n){e.error=e.hasError?new Pf(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}var t,r=0;return function i(){for(;t=e.stack.pop();)try{if(!t.async&&1===r)return r=0,e.stack.push(t),Promise.resolve().then(i);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(a).then(i,function(e){return n(e),i()})}else r|=1}catch(e){n(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function zf(e,n){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,t,r,i,a){return t?n?".jsx":".js":!r||i&&a?r+i+"."+a.toLowerCase()+"js":e}):e}var Hf={__extends:Jm,__assign:Qm,__rest:Xm,__decorate:ef,__param:nf,__esDecorate:tf,__runInitializers:rf,__propKey:af,__setFunctionName:of,__metadata:sf,__awaiter:uf,__generator:cf,__createBinding:lf,__exportStar:df,__values:mf,__read:ff,__spread:hf,__spreadArrays:yf,__spreadArray:Mf,__await:gf,__asyncGenerator:pf,__asyncDelegator:vf,__asyncValues:wf,__makeTemplateObject:bf,__importStar:Tf,__importDefault:Df,__classPrivateFieldGet:Sf,__classPrivateFieldSet:Af,__classPrivateFieldIn:kf,__addDisposableResource:Cf,__disposeResources:Nf,__rewriteRelativeImportExtension:zf},If=Km(Object.freeze({__proto__:null,__addDisposableResource:Cf,get __assign(){return Qm},__asyncDelegator:vf,__asyncGenerator:pf,__asyncValues:wf,__await:gf,__awaiter:uf,__classPrivateFieldGet:Sf,__classPrivateFieldIn:kf,__classPrivateFieldSet:Af,__createBinding:lf,__decorate:ef,__disposeResources:Nf,__esDecorate:tf,__exportStar:df,__extends:Jm,__generator:cf,__importDefault:Df,__importStar:Tf,__makeTemplateObject:bf,__metadata:sf,__param:nf,__propKey:af,__read:ff,__rest:Xm,__rewriteRelativeImportExtension:zf,__runInitializers:rf,__setFunctionName:of,__spread:hf,__spreadArray:Mf,__spreadArrays:yf,__values:mf,default:Hf})),Ff={};function Of(e){return Intl.getCanonicalLocales(e)}
2
2
  /*!
3
3
  * decimal.js v10.6.0
4
4
  * An arbitrary-precision Decimal type for JavaScript.