flipflipflip/public/3rd-party/temporal-polyfill.min.js
2026-05-31 18:51:31 +02:00

9 lines
57 KiB
JavaScript

/**
* Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
* Original file: /npm/temporal-polyfill@0.3.2/index.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function n(n,r,e,o,i){return t(r,((n,t)=>{const r=n[t];if(void 0===r)throw new TypeError(jo(t));return r})(n,r),e,o,i)}function t(n,t,r,e,o,i){const c=M(t,r,e);if(o&&t!==c)throw new RangeError(Io(n,t,r,e,i));return c}function r(n){return null!==n&&/object|function/.test(typeof n)}function e(n,t=Map){const r=new t;return(t,...e)=>{if(r.has(t))return r.get(t);const o=n(t,...e);return r.set(t,o),o}}function o(n){return i({name:n},1)}function i(n,t){return a((n=>({value:n,configurable:1,writable:!t})),n)}function c(n){return a((n=>({get:n,configurable:1})),n)}function u(n){return{[Symbol.toStringTag]:{value:n,configurable:1}}}function s(n,t){const r={};let e=n.length;for(const o of t)r[n[--e]]=o;return r}function a(n,t,r){const e={};for(const o in t)e[o]=n(t[o],o,r);return e}function f(n,t,r){const e={};for(let o=0;o<t.length;o++){const i=t[o];e[i]=n(i,o,r)}return e}function l(n,t,r){const e={};for(let o=0;o<n.length;o++)e[t[o]]=r[n[o]];return e}function d(n,t){const r=Object.create(null);for(const e of n)r[e]=t[e];return r}function h(n,t){for(const r of t)if(r in n)return 1;return 0}function w(n,t,r){for(const e of n)if(t[e]!==r[e])return 0;return 1}function g(n,t,r){const e={...r};for(let r=0;r<t;r++)e[n[r]]=0;return e}function m(n,...t){return(...r)=>n(...t,...r)}function p(n){return n[0].toUpperCase()+n.substring(1)}function y(n){return n.slice().sort()}function v(n,t){return String(t).padStart(n,"0")}function b(n,t){return Math.sign(n-t)}function M(n,t,r){return Math.min(Math.max(n,t),r)}function E(n,t){return[Math.floor(n/t),O(n,t)]}function O(n,t){return(n%t+t)%t}function N(n,t){return[R(n,t),T(n,t)]}function R(n,t){return Math.trunc(n/t)||0}function T(n,t){return n%t||0}function I(n){return.5===Math.abs(n%1)}function D(n,t,r){let e=0,o=0;for(let i=0;i<=t;i++){const t=n[r[i]],c=Ni[i],u=Oi/c,[s,a]=N(t,u);e+=a*c,o+=s}const[i,c]=N(e,Oi);return[o+i,c]}function j(n,t,r){const e={};for(let o=t;o>=0;o--){const t=Ni[o];e[r[o]]=R(n,t),n=T(n,t)}return e}function Z(n){if(void 0!==n)return Y(n)}function C(n){return U(Y(n))}function Y(n){return $(zi(n))}function S(n,t){if(null==t)throw new RangeError(jo(n));return t}function P(n){if(!r(n))throw new TypeError(To);return n}function k(n,t,r=n){if(typeof t!==n)throw new TypeError(Do(r,t));return t}function $(n,t="number"){if(!Number.isInteger(n))throw new RangeError(bo(t,n));return n||0}function U(n,t="number"){if(n<=0)throw new RangeError(Mo(t,n));return n}function x(n){if("symbol"==typeof n)throw new TypeError(Ro);return String(n)}function F(n,t){return r(n)?String(n):Ki(n,t)}function L(n){if("string"==typeof n)return BigInt(n);if("bigint"!=typeof n)throw new TypeError(No(n));return n}function B(n,t="number"){if("bigint"==typeof n)throw new TypeError(Oo(t));if(n=Number(n),!Number.isFinite(n))throw new RangeError(Eo(t,n));return n}function J(n,t){return Math.trunc(B(n,t))||0}function W(n,t){return $(B(n,t),t)}function H(n,t){return U(J(n,t),t)}function q(n,t){let[r,e]=N(t,Oi),o=n+r;const i=Math.sign(o);return i&&i===-Math.sign(e)&&(o-=i,e+=i*Oi),[o,e]}function _(n,t,r=1){return q(n[0]+t[0]*r,n[1]+t[1]*r)}function A(n,t){return q(n[0],n[1]+t)}function G(n,t){return _(t,n,-1)}function K(n,t){return b(n[0],t[0])||b(n[1],t[1])}function V(n,t,r){return-1===K(n,t)||1===K(n,r)}function z(n,t=1){const r=BigInt(Oi/t);return[Number(n/r),Number(n%r)*t]}function X(n,t=1){const r=Oi/t,[e,o]=N(n,r);return[e,o*t]}function Q(n,t=1,r){const[e,o]=n,[i,c]=N(o,t);return e*(Oi/t)+(i+(r?c/t:0))}function nn(n){return n[0]+n[1]/Oi}function tn(n,t,r=E){const[e,o]=n,[i,c]=r(o,t);return[e*(Oi/t)+i,c]}function rn(t){return n(t,"isoYear",bc,vc,1),t.isoYear===bc?n(t,"isoMonth",4,12,1):t.isoYear===vc&&n(t,"isoMonth",1,9,1),t}function en(n){return on({...n,...hc,isoHour:12}),n}function on(t){const r=n(t,"isoYear",bc,vc,1),e=r===bc?1:r===vc?-1:0;return e&&cn(ln({...t,isoDay:t.isoDay+e,isoNanosecond:t.isoNanosecond-e})),t}function cn(n){if(!n||V(n,yc,pc))throw new RangeError(ni);return n}function un(n){return D(n,5,uc)[1]}function sn(n){const[t,r]=E(n,Oi);return[j(r,5,uc),t]}function an(n){return tn(n,bi)}function fn(n){return wn(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond)}function ln(n){const t=fn(n);if(void 0!==t){const[r,e]=N(t,mi);return[r,e*vi+(n.isoMicrosecond||0)*yi+(n.isoNanosecond||0)]}}function dn(n,t){const[r,e]=sn(un(n)-t);return cn(ln({...n,isoDay:n.isoDay+e,...r}))}function hn(...n){return wn(...n)/pi}function wn(...n){const[t,r]=gn(...n),e=t.valueOf();if(!isNaN(e))return e-r*mi}function gn(n,t=1,r=1,e=0,o=0,i=0,c=0){const u=n===bc?1:n===vc?-1:0,s=new Date;return s.setUTCHours(e,o,i,c),s.setUTCFullYear(n,t-1,r+u),[s,u]}function mn(n,t){let[r,e]=A(n,t);e<0&&(e+=Oi,r-=1);const[o,i]=E(e,vi),[c,u]=E(i,yi);return pn(r*mi+o,c,u)}function pn(n,t=0,r=0){const e=Math.ceil(Math.max(0,Math.abs(n)-mc)/mi)*Math.sign(n),o=new Date(n-e*mi);return s(ac,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+e,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,r])}function yn(n,t){if(t<-mc)throw new RangeError(ni);const r=n.formatToParts(t),e={};for(const n of r)e[n.type]=n.value;return e}function vn(n){return[n.isoYear,n.isoMonth,n.isoDay]}function bn(n,t){return[t,0]}function Mn(){return Nc}function En(n,t){switch(t){case 2:return Nn(n)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function On(n){return Nn(n)?366:365}function Nn(n){return n%4==0&&(n%100!=0||n%400==0)}function Rn(n){const[t,r]=gn(n.isoYear,n.isoMonth,n.isoDay);return O(t.getUTCDay()-r,7)||7}function Tn(n){return this.id===Hi?(({isoYear:n})=>n<1?["gregory-inverse",1-n]:["gregory",n])(n):this.id===qi?Tc(n):[]}function In(n){const t=fn(n);if(t<Rc){const{isoYear:t}=n;return t<1?["japanese-inverse",1-t]:["japanese",t]}const r=yn(Uu(qi),t),{era:e,eraYear:o}=Pe(r,qi);return[e,o]}function Dn(n){return jn(n),Yn(n,1),n}function jn(n){return Cn(n,1),n}function Zn(n){return w(sc,n,Cn(n))}function Cn(t,r){const{isoYear:e}=t,o=n(t,"isoMonth",1,Mn(),r);return{isoYear:e,isoMonth:o,isoDay:n(t,"isoDay",1,En(e,o),r)}}function Yn(t,r){return s(uc,[n(t,"isoHour",0,23,r),n(t,"isoMinute",0,59,r),n(t,"isoSecond",0,59,r),n(t,"isoMillisecond",0,999,r),n(t,"isoMicrosecond",0,999,r),n(t,"isoNanosecond",0,999,r)])}function Sn(n){return void 0===n?0:qc(P(n))}function Pn(n,t=0){n=Hn(n);const r=_c(n),e=Ac(n,t);return[qc(n),e,r]}function kn(n,t,r,e=9,o=0,i=4){t=Hn(t);let c=Wc(t,e,o),u=Bn(t),s=zc(t,i);const a=Jc(t,e,o,1);return null==c?c=Math.max(r,a):Kn(c,a),u=Jn(u,a,1),n&&(s=(n=>n<4?(n+2)%4:n)(s)),[c,a,u,s]}function $n(n,t=6,r){let e=Bn(n=qn(n,Ic));const o=zc(n,7);let i=Jc(n,t);return i=S(Ic,i),e=Jn(e,i,void 0,r),[i,e,o]}function Un(n){return Gc(Hn(n))}function xn(n,t){return Fn(Hn(n),t)}function Fn(n,t=4){const r=Wn(n);return[zc(n,4),...Ln(Jc(n,t),r)]}function Ln(n,t){return null!=n?[Ni[n],n<4?9-3*n:-1]:[void 0===t?1:10**(9-t),t]}function Bn(n){const t=n[jc];return void 0===t?1:J(t,jc)}function Jn(n,r,e,o){const i=o?Oi:Ni[r+1];if(i){const e=Ni[r];if(i%((n=t(jc,n,1,i/e-(o?0:1),1))*e))throw new RangeError(Do(jc,n))}else n=t(jc,n,1,e?10**9:1,1);return n}function Wn(n){let r=n[Zc];if(void 0!==r){if("number"!=typeof r){if("auto"===x(r))return;throw new RangeError(Do(Zc,r))}r=t(Zc,Math.floor(r),0,9,1)}return r}function Hn(n){return void 0===n?{}:P(n)}function qn(n,t){return"string"==typeof n?{[t]:n}:P(n)}function _n(n){return{overflow:Pc[n]}}function An(n,r,e=9,o=0,i){let c=r[n];if(void 0===c)return i?o:void 0;if(c=x(c),"auto"===c)return i?o:null;let u=wi[c];if(void 0===u&&(u=ec[c]),void 0===u)throw new RangeError(So(n,c,wi));return t(n,u,o,e,1,gi),u}function Gn(n,t,r,e=0){const o=r[n];if(void 0===o)return e;const i=x(o),c=t[i];if(void 0===c)throw new RangeError(So(n,i,t));return c}function Kn(n,t){if(t>n)throw new RangeError(ci)}function Vn(n){return{branding:ou,epochNanoseconds:n}}function zn(n,t,r){return{branding:eu,calendar:r,timeZone:t,epochNanoseconds:n}}function Xn(n,t=n.calendar){return{branding:tu,calendar:t,...d(dc,n)}}function Qn(n,t=n.calendar){return{branding:nu,calendar:t,...d(fc,n)}}function nt(n,t=n.calendar){return{branding:Xc,calendar:t,...d(fc,n)}}function tt(n,t=n.calendar){return{branding:Qc,calendar:t,...d(fc,n)}}function rt(n){return{branding:ru,...d(lc,n)}}function et(n){return{branding:iu,sign:br(n),...d(Qi,n)}}function ot(n){return tn(n.epochNanoseconds,vi)[0]}function it(n){return n.epochNanoseconds}function ct(n,t,r,e,o){const i=Ir(e),[c,u]=((n,t)=>{const r=t((n=qn(n,Dc))[Cc]);let e=Hc(n);return e=S(Dc,e),[e,r]})(o,n),s=Math.max(c,i);if(!u&&mr(s,u))return ut(e,c);if(!u)throw new RangeError(ei);if(!e.sign)return 0;const[a,f,l]=lr(t,r,u),d=dr(l),h=hr(l),w=wr(l),g=h(f,a,e);gr(u)||(on(a),on(g));const m=w(f,a,g,c);return mr(c,u)?ut(m,c):function(n,t,r,e,o,i,c){const u=br(n),[s,a]=st(e,cc(r,n),r,u,o,i,c),f=at(t,s,a);return n[Xi[r]]+f*u}(m,d(g),c,f,a,d,h)}function ut(n,t){return Q(Or(n),Ni[t],1)}function st(n,t,r,e,o,i,c){const u=Xi[r],s={...t,[u]:t[u]+e},a=c(n,o,t),f=c(n,o,s);return[i(a),i(f)]}function at(n,t,r){const e=Q(G(t,r));if(!e)throw new RangeError(Ho);return Q(G(t,n))/e}function ft(n,t,r){let{epochNanoseconds:e,timeZone:o,calendar:i}=t;const[c,u,s]=$n(r);if(0===c&&1===u)return t;const a=n(o);if(6===c)e=function(n,t,r,e){const o=du(r,t),[i,c]=n(o),u=r.epochNanoseconds,s=Xt(t,i),a=Xt(t,c);if(V(u,s,a))throw new RangeError(Ho);return Nt(at(u,s,a),e)?a:s}(pt,a,t,s);else{const n=a.N(e);e=Vt(a,dt(mn(e,n),c,u,s),n,2,0,1)}return zn(e,o,i)}function lt(n,t){const{timeZone:r,calendar:e}=t;return zn(function(n,t,r){return Xt(t,n(du(r,t)))}(yt,n(r),t),r,e)}function dt(n,t,r,e){return ht(n,mt(t,r),e)}function ht(n,t,r){const[e,o]=wt(n,t,r);return on({...fr(n,o),...e})}function wt(n,t,r){return sn(Ot(un(n),t,r))}function gt(n){return Ot(n,Mi,7)}function mt(n,t){return Ni[n]*t}function pt(n){const t=yt(n);return[t,fr(t,1)]}function yt(n){return wc(6,n)}function vt(n,t,r){const e=Math.min(Ir(n),6);return Nr(Et(Or(n,e),t,r),e)}function bt(n,t,r,e,o,i,c,u,s,a){if(0===e&&1===o)return n;const f=mr(e,u)?gr(u)&&e<6&&r>=6?Tt:Rt:It;let[l,d,h]=f(n,t,r,e,o,i,c,u,s,a);return h&&7!==e&&(l=((n,t,r,e,o,i,c,u)=>{const s=br(n);for(let a=e+1;a<=r;a++){if(7===a&&7!==r)continue;const e=cc(a,n);e[Xi[a]]+=s;const f=Q(G(c(u(o,i,e)),t));if(f&&Math.sign(f)!==s)break;n=e}return n})(l,d,r,Math.max(6,e),c,u,s,a)),l}function Mt(n,t,r,e,o){return 6===t?[Ot(nn(n),r,e),0]:Et(n,mt(t,r),e,o)}function Et(n,t,r,e){let[o,i]=n;e&&i<0&&(i+=Oi,o-=1);const[c,u]=E(Ot(i,t,r),Oi);return q(o+c,u)}function Ot(n,t,r){return Nt(n/t,r)*t}function Nt(n,t){return cu[t](n)}function Rt(n,t,r,e,o,i){const c=br(n),u=Or(n),s=Mt(u,e,o,i),a=G(u,s),f=Math.sign(s[0]-u[0])===c,l=Nr(s,Math.min(r,6));return[{...n,...l},_(t,a),f]}function Tt(n,t,r,e,o,i,c,u,s,a){const f=br(n)||1,l=Q(Or(n,5)),d=mt(e,o);let h=Ot(l,d,i);const[w,g]=st(c,{...n,...ic},6,f,u,s,a),m=h-Q(G(w,g));let p=0;m&&Math.sign(m)!==f?t=A(w,h):(p+=f,h=Ot(m,d,i),t=A(g,h));const y=Rr(h);return[{...n,...y,days:n.days+p},t,Boolean(p)]}function It(n,t,r,e,o,i,c,u,s,a){const f=br(n),l=Xi[e],d=cc(e,n);7===e&&(n={...n,weeks:n.weeks+Math.trunc(n.days/7)});const h=R(n[l],o)*o;d[l]=h;const[w,g]=st(c,d,e,o*f,u,s,a),m=h+at(t,w,g)*f*o,p=Ot(m,o,i),y=Math.sign(p-m)===f;return d[l]=p,[d,y?g:w,y]}function Dt(n,t,r,e){const[o,i,c,u]=(n=>{const t=Fn(n=Hn(n));return[n.timeZone,...t]})(e),s=void 0!==o;return((n,t,r,e,o,i)=>{r=Et(r,o,e,1);const c=t.N(r);return xt(mn(r,c),i)+(n?Wt(gt(c)):"Z")})(s,t(s?n(o):uu),r.epochNanoseconds,i,c,u)}function jt(n,t,r){const[e,o,i,c,u,s]=(n=>{n=Hn(n);const t=Gc(n),r=Wn(n),e=Vc(n),o=zc(n,4),i=Jc(n,4);return[t,Kc(n),e,o,...Ln(i,r)]})(r);return((n,t,r,e,o,i,c,u,s,a)=>{e=Et(e,s,u,1);const f=n(r).N(e);return xt(mn(e,f),a)+Wt(gt(f),c)+((n,t)=>1!==t?"["+(2===t?"!":"")+n+"]":"")(r,i)+Ht(t,o)})(n,t.calendar,t.timeZone,t.epochNanoseconds,e,o,i,c,u,s)}function Zt(n,t){const[r,e,o,i]=(n=>(n=Hn(n),[Gc(n),...Fn(n)]))(t);return c=n.calendar,u=r,s=i,xt(ht(n,o,e),s)+Ht(c,u);var c,u,s}function Ct(n,t){return r=n.calendar,e=n,o=Un(t),Ft(e)+Ht(r,o);var r,e,o}function Yt(n,t){return $t(n.calendar,Lt,n,Un(t))}function St(n,t){return $t(n.calendar,Bt,n,Un(t))}function Pt(n,t){const[r,e,o]=xn(t);return i=o,Jt(wt(n,e,r)[0],i);var i}function kt(n,t){const[r,e,o]=xn(t,3);return e>1&&Mr(n={...n,...vt(n,e,r)}),((n,t)=>{const{sign:r}=n,e=-1===r?vr(n):n,{hours:o,minutes:i}=e,[c,u]=tn(Or(e,3),bi,N);Er(c);const s=_t(u,t),a=t>=0||!r||s;return(r<0?"-":"")+"P"+Ut({Y:Gt(e.years),M:Gt(e.months),W:Gt(e.weeks),D:Gt(e.days)})+(o||i||c||a?"T"+Ut({H:Gt(o),M:Gt(i),S:Gt(c,a)+s}):"")})(n,o)}function $t(n,t,r,e){const o=e>1||0===e&&n!==Wi;return 1===e?n===Wi?t(r):Ft(r):o?Ft(r)+qt(n,2===e):t(r)}function Ut(n){const t=[];for(const r in n){const e=n[r];e&&t.push(e,r)}return t.join("")}function xt(n,t){return Ft(n)+"T"+Jt(n,t)}function Ft(n){return Lt(n)+"-"+hi(n.isoDay)}function Lt(n){const{isoYear:t}=n;return(t<0||t>9999?At(t)+v(6,Math.abs(t)):v(4,t))+"-"+hi(n.isoMonth)}function Bt(n){return hi(n.isoMonth)+"-"+hi(n.isoDay)}function Jt(n,t){const r=[hi(n.isoHour),hi(n.isoMinute)];return-1!==t&&r.push(hi(n.isoSecond)+((n,t,r,e)=>_t(n*vi+t*yi+r,e))(n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,t)),r.join(":")}function Wt(n,t=0){if(1===t)return"";const[r,e]=E(Math.abs(n),Ei),[o,i]=E(e,Mi),[c,u]=E(i,bi);return At(n)+hi(r)+":"+hi(o)+(c||u?":"+hi(c)+_t(u):"")}function Ht(n,t){return 1!==t&&(t>1||0===t&&n!==Wi)?qt(n,2===t):""}function qt(n,t){return"["+(t?"!":"")+"u-ca="+n+"]"}function _t(n,t){let r=v(9,n);return r=void 0===t?r.replace(lu,""):r.slice(0,t),r?"."+r:""}function At(n){return n<0?"-":"+"}function Gt(n,t){return n||t?n.toLocaleString("fullwide",{useGrouping:0}):""}function Kt(n,t){const{epochNanoseconds:r}=n,e=(t.N?t:t(n.timeZone)).N(r),o=mn(r,e);return{calendar:n.calendar,...o,offsetNanoseconds:e}}function Vt(n,t,r,e=0,o=0,i,c){if(void 0!==r&&1===e&&(1===e||c))return dn(t,r);const u=n.v(t);if(void 0!==r&&3!==e){const n=((n,t,r,e)=>{const o=ln(t);e&&(r=gt(r));for(const t of n){let n=Q(G(t,o));if(e&&(n=gt(n)),n===r)return t}})(u,t,r,i);if(void 0!==n)return n;if(0===e)throw new RangeError(Xo)}return c?ln(t):zt(n,t,o,u)}function zt(n,t,r=0,e=n.v(t)){if(1===e.length)return e[0];if(1===r)throw new RangeError(Qo);if(e.length)return e[3===r?1:0];const o=ln(t),i=((n,t)=>{const r=n.N(A(t,-Oi));return(n=>{if(n>Oi)throw new RangeError(zo);return n})(n.N(A(t,Oi))-r)})(n,o),c=i*(2===r?-1:1);return(e=n.v(mn(o,c)))[2===r?0:e.length-1]}function Xt(n,t){const r=n.v(t);if(r.length)return r[0];const e=A(ln(t),-Oi);return n.l(e,1)}function Qt(n,t,r){return Vn(cn(_(t.epochNanoseconds,(n=>{if(Tr(n))throw new RangeError(oi);return Or(n,5)})(n?vr(r):r))))}function nr(n,t,r,e,o,i=Object.create(null)){const c=t(e.timeZone),u=n(e.calendar);return{...e,...ir(c,u,e,r?vr(o):o,i)}}function tr(n,t,r,e,o=Object.create(null)){const{calendar:i}=r;return Xn(cr(n(i),r,t?vr(e):e,o),i)}function rr(n,t,r,e,o){const{calendar:i}=r;return Qn(ur(n(i),r,t?vr(e):e,o),i)}function er(n,t,r,e,o){const i=r.calendar,c=n(i);let u=en(sr(c,r));t&&(e=yr(e)),e.sign<0&&(u=c.P(u,{...oc,months:1}),u=fr(u,-1));const s=c.P(u,e,o);return nt(sr(c,s),i)}function or(n,t,r){return rt(ar(t,n?vr(r):r)[0])}function ir(n,t,r,e,o){const i=Or(e,5);let c=r.epochNanoseconds;if(Tr(e)){const u=du(r,n);c=_(zt(n,{...ur(t,u,{...e,...ic},o),...d(uc,u)}),i)}else c=_(c,i),Sn(o);return{epochNanoseconds:cn(c)}}function cr(n,t,r,e){const[o,i]=ar(t,r);return on({...ur(n,t,{...r,...ic,days:r.days+i},e),...o})}function ur(n,t,r,e){if(r.years||r.months||r.weeks)return n.P(t,r,e);Sn(e);const o=r.days+Or(r,5)[0];return o?en(fr(t,o)):t}function sr(n,t,r=1){return fr(t,r-n.day(t))}function ar(n,t){const[r,e]=Or(t,5),[o,i]=sn(un(n)+e);return[o,r+i]}function fr(n,t){return t?{...n,...pn(fn(n)+t*mi)}:n}function lr(n,t,r){const e=n(r.calendar);return gr(r)?[r,e,t(r.timeZone)]:[{...r,...hc},e]}function dr(n){return n?it:ln}function hr(n){return n?m(ir,n):cr}function wr(n){return n?m(fe,n):le}function gr(n){return n&&n.epochNanoseconds}function mr(n,t){return n<=6-(gr(t)?1:0)}function pr(n,t,r,e,o,i,c){const u=n(Hn(c).relativeTo),s=Math.max(Ir(o),Ir(i));if(mr(s,u))return et(Mr(((n,t,r,e)=>{const o=_(Or(n),Or(t),e?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(ni);return{...oc,...Nr(o,r)}})(o,i,s,e)));if(!u)throw new RangeError(ei);e&&(i=vr(i));const[a,f,l]=lr(t,r,u),d=hr(l),h=wr(l),w=d(f,a,o);return et(h(f,a,d(f,w,i),s))}function yr(n){return et(vr(n))}function vr(n){const t={};for(const r of Xi)t[r]=-1*n[r]||0;return t}function br(n,t=Xi){let r=0;for(const e of t){const t=Math.sign(n[e]);if(t){if(r&&r!==t)throw new RangeError(ri);r=t}}return r}function Mr(n){for(const r of rc)t(r,n[r],-hu,hu,1);return Er(Q(Or(n),bi)),n}function Er(n){if(!Number.isSafeInteger(n))throw new RangeError(ti)}function Or(n,t=6){return D(n,t,Xi)}function Nr(n,t=6){const[r,e]=n,o=j(e,t,Xi);if(o[Xi[t]]+=r*(Oi/Ni[t]),!Number.isFinite(o[Xi[t]]))throw new RangeError(ni);return o}function Rr(n,t=5){return j(n,t,Xi)}function Tr(n){return Boolean(br(n,tc))}function Ir(n){let t=9;for(;t>0&&!n[Xi[t]];t--);return t}function Dr(n,t){return[n,t]}function jr(n){const t=Math.floor(n/su)*su;return[t,t+su]}function Zr(n){const t=Lr(n);if(void 0===t)throw new RangeError(ui(n));return t}function Cr(n,t,r){let e=Ur(Ki(n));if(!e||e.C)throw new RangeError(ui(n));return t?e.calendar===Wi&&(e=-271821===e.isoYear&&4===e.isoMonth?{...e,isoDay:20,...hc}:{...e,isoDay:1,...hc}):r&&e.calendar===Wi&&(e={...e,isoYear:Oc}),Qn(e.k?Pr(e):kr(e))}function Yr(n){if(n.calendar!==Wi)throw new RangeError(si(n.calendar))}function Sr(n,t,r=0,e=0){const o=Gr(n.timeZone),i=wu(o);let c;return Dn(n),c=n.k?Vt(i,n,t,r,e,!i.j,n.C):Xt(i,n),zn(c,o,_e(n.calendar))}function Pr(n){return $r(on(Dn(n)))}function kr(n){return $r(en(jn(n)))}function $r(n){return{...n,calendar:_e(n.calendar)}}function Ur(n){const t=Iu.exec(n);return t?(n=>{const t=n[10],r="Z"===(t||"").toUpperCase();return{isoYear:Br(n),isoMonth:parseInt(n[4]),isoDay:parseInt(n[5]),...Jr(n.slice(5)),...Wr(n[16]),k:Boolean(n[6]),C:r,offset:r?void 0:t}})(t):void 0}function xr(n){const t=Ru.exec(n);return t?(n=>({isoYear:Br(n),isoMonth:parseInt(n[4]),isoDay:1,...Wr(n[5])}))(t):void 0}function Fr(n){const t=Tu.exec(n);return t?(n=>({isoYear:Oc,isoMonth:parseInt(n[1]),isoDay:parseInt(n[2]),...Wr(n[3])}))(t):void 0}function Lr(n,t){const r=ju.exec(n);return r?((n,t)=>{const r=n[4]||n[5];if(t&&r)throw new RangeError(si(r));return(n=>{if(Math.abs(n)>=Oi)throw new RangeError(Vo);return n})((Ar(n[2])*Ei+Ar(n[3])*Mi+Ar(n[4])*bi+Hr(n[5]||""))*_r(n[1]))})(r,t):void 0}function Br(n){const t=_r(n[1]),r=parseInt(n[2]||n[3]);if(t<0&&!r)throw new RangeError(si(-0));return t*r}function Jr(n){const t=Ar(n[3]);return{...sn(Hr(n[4]||""))[0],isoHour:Ar(n[1]),isoMinute:Ar(n[2]),isoSecond:60===t?59:t}}function Wr(n){let t,r;const e=[];if(n.replace(Zu,((n,o,i)=>{const c=Boolean(o),[u,s]=i.split("=").reverse();if(s){if("u-ca"===s)e.push(u),t||(t=c);else if(c||/[A-Z]/.test(s))throw new RangeError(si(n))}else{if(r)throw new RangeError(si(n));r=u}return""})),e.length>1&&t)throw new RangeError(si(n));return{timeZone:r,calendar:e[0]||Wi}}function Hr(n){return parseInt(n.padEnd(9,"0"))}function qr(n){return new RegExp(`^${n}$`,"i")}function _r(n){return n&&"+"!==n?-1:1}function Ar(n){return void 0===n?0:parseInt(n)}function Gr(n){const t=Vr(n);return"number"==typeof t?Wt(t):t?(n=>{if(Pu.test(n))throw new RangeError(Ao(n));if(Su.test(n))throw new RangeError(Ko);return n.toLowerCase().split("/").map(((n,t)=>(n.length<=3||/\d/.test(n))&&!/etc|yap/.test(n)?n.toUpperCase():n.replace(/baja|dumont|[a-z]+/g,((n,r)=>n.length<=2&&!t||"in"===n||"chat"===n?n.toUpperCase():n.length>2||!r?p(n).replace(/island|noronha|murdo|rivadavia|urville/,p):n)))).join("/")})(n):uu}function Kr(n){const t=Vr(n);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:uu}function Vr(n){const t=Lr(n=n.toUpperCase(),1);return void 0!==t?t:n!==uu?Yu(n):void 0}function zr(n,t){return K(n.epochNanoseconds,t.epochNanoseconds)}function Xr(n,t){return K(n.epochNanoseconds,t.epochNanoseconds)}function Qr(n,t){return ne(n,t)||te(n,t)}function ne(n,t){return b(fn(n),fn(t))}function te(n,t){return b(un(n),un(t))}function re(n,t){if(n===t)return 1;try{return Kr(n)===Kr(t)}catch(n){}}function ee(n,t,r,e){const o=kn(n,e,3,5),i=we(t.epochNanoseconds,r.epochNanoseconds,...o);return et(n?vr(i):i)}function oe(n,t,r,e,o,i){const c=ve(e.calendar,o.calendar),[u,s,a,f]=kn(r,i,5),l=e.epochNanoseconds,d=o.epochNanoseconds,h=K(d,l);let w;if(h)if(u<6)w=we(l,d,u,s,a,f);else{const r=t(function(n,t){if(!re(n,t))throw new RangeError(Go);return n}(e.timeZone,o.timeZone)),l=n(c);w=de(l,r,e,o,h,u,i),w=bt(w,d,u,s,a,f,l,e,it,m(ir,r))}else w=oc;return et(r?vr(w):w)}function ie(n,t,r,e,o){const i=ve(r.calendar,e.calendar),[c,u,s,a]=kn(t,o,6),f=ln(r),l=ln(e),d=K(l,f);let h;if(d)if(c<=6)h=we(f,l,c,u,s,a);else{const t=n(i);h=he(t,r,e,d,c,o),h=bt(h,l,c,u,s,a,t,r,ln,cr)}else h=oc;return et(t?vr(h):h)}function ce(n,t,r,e,o){const i=ve(r.calendar,e.calendar);return se(t,(()=>n(i)),r,e,...kn(t,o,6,9,6))}function ue(n,t,r,e,o){const i=ve(r.calendar,e.calendar),c=kn(t,o,9,9,8),u=n(i),s=sr(u,r),a=sr(u,e);return s.isoYear===a.isoYear&&s.isoMonth===a.isoMonth&&s.isoDay===a.isoDay?et(oc):se(t,(()=>u),en(s),en(a),...c,8)}function se(n,t,r,e,o,i,c,u,s=6){const a=ln(r),f=ln(e);if(void 0===a||void 0===f)throw new RangeError(ni);let l;if(K(f,a))if(6===o)l=we(a,f,o,i,c,u);else{const n=t();l=n.h(r,e,o),i===s&&1===c||(l=bt(l,f,o,i,c,u,n,r,ln,ur))}else l=oc;return et(n?vr(l):l)}function ae(n,t,r,e){const[o,i,c,u]=kn(n,e,5,5),s=Ot(ye(t,r),mt(i,c),u),a={...oc,...Rr(s,o)};return et(n?vr(a):a)}function fe(n,t,r,e,o,i){const c=K(e.epochNanoseconds,r.epochNanoseconds);return c?o<6?ge(r.epochNanoseconds,e.epochNanoseconds,o):de(t,n,r,e,c,o,i):oc}function le(n,t,r,e,o){const i=ln(t),c=ln(r),u=K(c,i);return u?e<=6?ge(i,c,e):he(n,t,r,u,e,o):oc}function de(n,t,r,e,o,i,c){const[u,s,a]=function(n,t,r,e){function o(){return l={...fr(u,a++*-e),...c},h=zt(n,l),K(s,h)===-e}const i=du(t,n),c=d(uc,i),u=du(r,n),s=r.epochNanoseconds;let a=0;const f=ye(i,u);let l,h;if(Math.sign(f)===-e&&a++,o()&&(-1===e||o()))throw new RangeError(Ho);const w=Q(G(h,s));return[i,l,w]}(t,r,e,o);var f,l;return{...6===i?(f=u,l=s,{...oc,days:me(f,l)}):n.h(u,s,i,c),...Rr(a)}}function he(n,t,r,e,o,i){const[c,u,s]=((n,t,r)=>{let e=t,o=ye(n,t);return Math.sign(o)===-r&&(e=fr(t,-r),o+=Oi*r),[n,e,o]})(t,r,e);return{...n.h(c,u,o,i),...Rr(s)}}function we(n,t,r,e,o,i){return{...oc,...Nr(Mt(G(n,t),e,o,i),r)}}function ge(n,t,r){return{...oc,...Nr(G(n,t),r)}}function me(n,t){return pe(fn(n),fn(t))}function pe(n,t){return Math.trunc((t-n)/mi)}function ye(n,t){return un(t)-un(n)}function ve(n,t){if(n!==t)throw new RangeError(_o);return n}function be(n){return this.I(n)[0]}function Me(n){return this.I(n)[1]}function Ee(n){const[t]=this.u(n);return pe(this.M(t),fn(n))+1}function Oe(n){const t=ku.exec(n);if(!t)throw new RangeError(Lo(n));return[parseInt(t[1]),Boolean(t[2])]}function Ne(n,t){return"M"+hi(n)+(t?"L":"")}function Re(n,t,r){return n+(t||r&&n>=r?1:0)}function Te(n,t){return n-(t&&n>=t?1:0)}function Ie(n,t){return(t+n)*(Math.sign(t)||1)||0}function De(n){return _i[Ze(n)]}function je(n){return Gi[Ze(n)]}function Ze(n){return Ae(n.id||Wi)}function Ce(n){function t(n){return((n,t)=>({...Pe(n,t),V:n.month,day:parseInt(n.day)}))(yn(r,n),e)}const r=Uu(n),e=Ae(n);return{id:n,_:Ye(t),J:Se(t)}}function Ye(n){return e((t=>{const r=fn(t);return n(r)}),WeakMap)}function Se(n){const t=n(0).year-Ec;return e((r=>{let e,o=wn(r-t),i=0;const c=[],u=[];do{o+=400*mi}while((e=n(o)).year<=r);do{if(o+=(1-e.day)*mi,e.year===r&&(c.push(o),u.push(e.V)),o-=mi,++i>100||o<-mc)throw new RangeError(Ho)}while((e=n(o)).year>=r);return{K:c.reverse(),X:li(u.reverse())}}))}function Pe(n,t){let r,e,o=ke(n);if(n.era){const i=_i[t],c=Ai[t]||{};void 0!==i&&(r="islamic"===t?"ah":n.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===r||"b"===r?r="bce":"ad"===r||"a"===r?r="ce":"beforeroc"===r&&(r="broc"),r=c[r]||r,e=o,o=Ie(e,i[r]||0))}return{era:r,eraYear:e,year:o}}function ke(n){return parseInt(n.relatedYear||n.year)}function $e(n){const{year:t,V:r,day:e}=this._(n),{X:o}=this.J(t);return[t,o[r]+1,e]}function Ue(n,t=1,r=1){return this.J(n).K[t-1]+(r-1)*mi}function xe(n,t){const r=Fe.call(this,n);return[Te(t,r),r===t]}function Fe(n){const t=He(this,n),r=He(this,n-1),e=t.length;if(e>r.length){const n=je(this);if(n<0)return-n;for(let n=0;n<e;n++)if(t[n]!==r[n])return n+1}}function Le(n){return pe(Ue.call(this,n),Ue.call(this,n+1))}function Be(n,t){const{K:r}=this.J(n);let e=t+1,o=r;return e>r.length&&(e=1,o=this.J(n+1).K),pe(r[t-1],o[e-1])}function Je(n){return this.J(n).K.length}function We(n){const t=this._(n);return[t.era,t.eraYear]}function He(n,t){return Object.keys(n.J(t).X)}function qe(n){return _e(Ki(n))}function _e(n){if((n=n.toLowerCase())!==Wi&&n!==Hi){const t=Uu(n).resolvedOptions().calendar;if(Ae(n)!==Ae(t))throw new RangeError(qo(n));return t}return n}function Ae(n){return"islamicc"===n&&(n="islamic"),n.split("-")[0]}function Ge(n,t){return r=>r===Wi?n:r===Hi||r===qi?Object.assign(Object.create(n),{id:r}):Object.assign(Object.create(t),$u(r))}function Ke(n,t,r,e){const o=Ve(r,e,Fi,[],Zi);if(void 0!==o.timeZone){const e=r.ee(o),i=Xe(o),c=n(o.timeZone);return{epochNanoseconds:Vt(t(c),{...e,...i},void 0!==o.offset?Zr(o.offset):void 0),timeZone:c}}return{...r.ee(o),...hc}}function Ve(n,t,r,e=[],o=[]){return ze(t,[...n.fields(r),...o].sort(),e)}function ze(n,t,r,e=!r){const o={};let i,c=0;for(const e of t){if(e===i)throw new RangeError(Co(e));if("constructor"===e||"__proto__"===e)throw new RangeError(Zo(e));let t=n[e];if(void 0!==t)c=1,ns[e]&&(t=ns[e](t,e)),o[e]=t;else if(r){if(r.includes(e))throw new TypeError(jo(e));o[e]=Ji[e]}i=e}if(e&&!c)throw new TypeError(Yo(t));return o}function Xe(n,t){return Yn(ts({...Ji,...n}),t)}function Qe(n,t,r,e,o){t=d(r=n.fields(r),t),e=ze(e,o=n.fields(o),[]);let i=n.oe(t,e);return i=ze(i,[...r,...o].sort(),[]),n.ee(i)}function no(n,t){const r=De(n),e=Ai[n.id||""]||{};let{era:o,eraYear:i,year:c}=t;if(void 0!==o||void 0!==i){if(void 0===o||void 0===i)throw new TypeError($o);if(!r)throw new RangeError(ko);const n=r[e[o]||o];if(void 0===n)throw new RangeError(xo(o));const t=Ie(i,n);if(void 0!==c&&c!==t)throw new RangeError(Uo);c=t}else if(void 0===c)throw new TypeError(Fo(r));return c}function to(n,r,e,o){let{month:i,monthCode:c}=r;if(void 0!==c){const t=((n,t,r,e)=>{const o=n.F(r),[i,c]=Oe(t);let u=Re(i,c,o);if(c){const t=je(n);if(void 0===t)throw new RangeError(Wo);if(t>0){if(u>t)throw new RangeError(Wo);if(void 0===o){if(1===e)throw new RangeError(Wo);u--}}else{if(u!==-t)throw new RangeError(Wo);if(void 0===o&&1===e)throw new RangeError(Wo)}}return u})(n,c,e,o);if(void 0!==i&&i!==t)throw new RangeError(Bo);i=t,o=1}else if(void 0===i)throw new TypeError(Jo);return t("month",i,1,n.O(e),o)}function ro(t,r,e,o,i){return n(r,"day",1,t.B(o,e),i)}function eo(n,t,r,e){let o=0;const i=[];for(const n of r)void 0!==t[n]?o=1:i.push(n);if(Object.assign(n,t),o)for(const t of e||i)delete n[t]}function oo(n){const t=Gu(n.calendar),[r,e,o]=t.u(n),[i,c]=t.m(r,e);return{year:r,monthCode:Ne(i,c),day:o}}function io(n,t){return Xn(du(t,n))}function co(n,t){return Qn(du(t,n))}function uo(n,t){return rt(du(t,n))}function so(n,t,r){return function(n,t,r){const e=Ve(n,t,xi);return n.ne(e,r)}(n(t.calendar),r)}function ao(n,t,r){return function(n,t){const r=Ve(n,t,Bi);return n.te(r)}(n(t.calendar),r)}function fo(n,t,r){const e=new Set(r);return(o,i)=>{const c=r&&h(o,r);if(!h(o=((n,t)=>{const r={};for(const e in t)n.has(e)||(r[e]=t[e]);return r})(e,o),n)){if(i&&c)throw new TypeError("Invalid formatting options");o={...t,...o}}return r&&(o.timeZone=uu,["full","long"].includes(o.ie)&&(o.ie="medium")),o}}function lo(n,t=ho,r=0){const[e,,,o]=n;return(i,c=Ys,...u)=>{const s=t(o&&o(...u),i,c,e,r),a=s.resolvedOptions();return[s,...go(n,a,u)]}}function ho(n,t,r,e,o){if(r=e(r,o),n){if(void 0!==r.timeZone)throw new TypeError(fi);r.timeZone=n}return new Mc(t,r)}function wo(){return new Mc(void 0,{calendar:Wi}).resolvedOptions().calendar===Wi}function go(n,t,r){const[,e,o]=n;return r.map((n=>(n.calendar&&((n,t,r)=>{if((r||n!==Wi)&&n!==t)throw new RangeError(_o)})(n.calendar,t.calendar,o),e(n,t))))}function mo(n,t){return{...n,calendar:t}}function po(n){const t=yo();return mn(t,n.N(t))}function yo(){return X(Date.now(),vi)}function vo(){return(new Mc).resolvedOptions().timeZone}const bo=(n,t)=>`Non-integer ${n}: ${t}`,Mo=(n,t)=>`Non-positive ${n}: ${t}`,Eo=(n,t)=>`Non-finite ${n}: ${t}`,Oo=n=>`Cannot convert bigint to ${n}`,No=n=>`Invalid bigint: ${n}`,Ro="Cannot convert Symbol to string",To="Invalid object",Io=(n,t,r,e,o)=>o?Io(n,o[t],o[r],o[e]):Do(n,t)+`; must be between ${r}-${e}`,Do=(n,t)=>`Invalid ${n}: ${t}`,jo=n=>`Missing ${n}`,Zo=n=>`Invalid field ${n}`,Co=n=>`Duplicate field ${n}`,Yo=n=>"No valid fields: "+n.join(),So=(n,t,r)=>Do(n,t)+"; must be "+Object.keys(r).join(),Po="Invalid calling context",ko="Forbidden era/eraYear",$o="Mismatching era/eraYear",Uo="Mismatching year/eraYear",xo=n=>`Invalid era: ${n}`,Fo=n=>"Missing year"+(n?"/era/eraYear":""),Lo=n=>`Invalid monthCode: ${n}`,Bo="Mismatching month/monthCode",Jo="Missing month/monthCode",Wo="Invalid leap month",Ho="Invalid protocol results",qo=n=>Do("Calendar",n),_o="Mismatching Calendars",Ao=n=>Do("TimeZone",n),Go="Mismatching TimeZones",Ko="Forbidden ICU TimeZone",Vo="Out-of-bounds offset",zo="Out-of-bounds TimeZone gap",Xo="Invalid TimeZone offset",Qo="Ambiguous offset",ni="Out-of-bounds date",ti="Out-of-bounds duration",ri="Cannot mix duration signs",ei="Missing relativeTo",oi="Cannot use large units",ii="Required smallestUnit or largestUnit",ci="smallestUnit > largestUnit",ui=n=>`Cannot parse: ${n}`,si=n=>`Invalid substring: ${n}`,ai="Mismatching types for formatting",fi="Cannot specify TimeZone",li=m(f,((n,t)=>t)),di=m(f,((n,t,r)=>r)),hi=m(v,2),wi={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},gi=Object.keys(wi),mi=864e5,pi=1e3,yi=1e3,vi=1e6,bi=1e9,Mi=6e10,Ei=36e11,Oi=864e11,Ni=[1,yi,vi,bi,Mi,Ei,Oi],Ri=gi.slice(0,6),Ti=y(Ri),Ii=["offset"],Di=["timeZone"],ji=Ri.concat(Ii),Zi=ji.concat(Di),Ci=["era","eraYear"],Yi=Ci.concat(["year"]),Si=["year"],Pi=["monthCode"],ki=["month"].concat(Pi),$i=["day"],Ui=ki.concat(Si),xi=Pi.concat(Si),Fi=$i.concat(Ui),Li=$i.concat(ki),Bi=$i.concat(Pi),Ji=di(Ri,0),Wi="iso8601",Hi="gregory",qi="japanese",_i={[Hi]:{"gregory-inverse":-1,gregory:0},[qi]:{"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}},Ai={[Hi]:{bce:"gregory-inverse",ce:"gregory"},[qi]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Gi={chinese:13,dangi:13,hebrew:-6},Ki=m(k,"string"),Vi=m(k,"boolean"),zi=m(k,"number"),Xi=gi.map((n=>n+"s")),Qi=y(Xi),nc=Xi.slice(0,6),tc=Xi.slice(6),rc=tc.slice(1),ec=li(Xi),oc=di(Xi,0),ic=di(nc,0),cc=m(g,Xi),uc=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],sc=["isoDay","isoMonth","isoYear"],ac=uc.concat(sc),fc=y(sc),lc=y(uc),dc=y(ac),hc=di(lc,0),wc=m(g,ac),gc=1e8,mc=gc*mi,pc=[gc,0],yc=[-gc,0],vc=275760,bc=-271821,Mc=Intl.DateTimeFormat,Ec=1970,Oc=1972,Nc=12,Rc=wn(1868,9,8),Tc=e(In,WeakMap),Ic="smallestUnit",Dc="unit",jc="roundingIncrement",Zc="fractionalSecondDigits",Cc="relativeTo",Yc="direction",Sc={constrain:0,reject:1},Pc=Object.keys(Sc),kc={compatible:0,reject:1,earlier:2,later:3},$c={reject:0,use:1,prefer:2,ignore:3},Uc={auto:0,never:1,critical:2,always:3},xc={auto:0,never:1,critical:2},Fc={auto:0,never:1},Lc={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Bc={previous:-1,next:1},Jc=m(An,Ic),Wc=m(An,"largestUnit"),Hc=m(An,Dc),qc=m(Gn,"overflow",Sc),_c=m(Gn,"disambiguation",kc),Ac=m(Gn,"offset",$c),Gc=m(Gn,"calendarName",Uc),Kc=m(Gn,"timeZoneName",xc),Vc=m(Gn,"offset",Fc),zc=m(Gn,"roundingMode",Lc),Xc="PlainYearMonth",Qc="PlainMonthDay",nu="PlainDate",tu="PlainDateTime",ru="PlainTime",eu="ZonedDateTime",ou="Instant",iu="Duration",cu=[Math.floor,n=>I(n)?Math.floor(n):Math.round(n),Math.ceil,n=>I(n)?Math.ceil(n):Math.round(n),Math.trunc,n=>I(n)?Math.trunc(n)||0:Math.round(n),n=>n<0?Math.floor(n):Math.ceil(n),n=>Math.sign(n)*Math.round(Math.abs(n))||0,n=>I(n)?(n=Math.trunc(n)||0)+n%2:Math.round(n)],uu="UTC",su=5184e3,au=hn(1847),fu=hn((()=>{const n=new Date;return(0===n.getTime()?2040:n.getUTCFullYear())+10})()),lu=/0+$/,du=e(Kt,WeakMap),hu=2**32-1,wu=e((n=>{const t=Vr(n);return"object"==typeof t?new mu(t):new gu(t||0)}));class gu{constructor(n){this.j=n}N(){return this.j}v(n){return(n=>{const t=ln({...n,...hc});if(!t||Math.abs(t[0])>1e8)throw new RangeError(ni)})(n),[dn(n,this.j)]}l(){}}class mu{constructor(n){this.ae=(n=>{function t(n){const t=M(n,c,u),[e,s]=jr(t),a=o(e),f=o(s);return a===f?a:r(i(e,s),a,f,n)}function r(t,r,e,o){let i,c;for(;(void 0===o||void 0===(i=o<t[0]?r:o>=t[1]?e:void 0))&&(c=t[1]-t[0]);){const r=t[0]+Math.floor(c/2);n(r)===e?t[1]=r:t[0]=r+1}return i}const o=e(n),i=e(Dr);let c=au,u=fu;return{se(n){const r=t(n-86400),e=t(n+86400),o=n-r,i=n-e;if(r===e)return[o];const c=t(o);return c===t(i)?[n-c]:r>e?[o,i]:[]},ue:t,l(n,t){const e=M(n,c,u);let[s,a]=jr(e);const f=su*t,l=t<0?()=>a>c||(c=e,0):()=>s<u||(u=e,0);for(;l();){const e=o(s),c=o(a);if(e!==c){const o=i(s,a);r(o,e,c);const u=o[0];if((b(u,n)||1)===t)return u}s+=f,a+=f}}}})((n=>t=>{const r=yn(n,t*pi);return hn(ke(r),parseInt(r.month),parseInt(r.day),parseInt(r.hour),parseInt(r.minute),parseInt(r.second))-t})(n))}N(n){return this.ae.ue(function(n){return an(n)[0]}(n))*bi}v(n){const[t,r]=[hn((e=n).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond),e.isoMillisecond*vi+e.isoMicrosecond*yi+e.isoNanosecond];var e;return this.ae.se(t).map((n=>cn(A(X(n,bi),r))))}l(n,t){const[r,e]=an(n),o=this.ae.l(r+(t>0||e?1:0),t);if(void 0!==o)return X(o,bi)}}const pu="([+-])",yu="(?:[.,](\\d{1,9}))?",vu=`(?:(?:${pu}(\\d{6}))|(\\d{4}))-?(\\d{2})`,bu="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+yu+")?)?",Mu=pu+bu,Eu=vu+"-?(\\d{2})(?:[T ]"+bu+"(Z|"+Mu+")?)?",Ou="\\[(!?)([^\\]]*)\\]",Nu=`((?:${Ou}){0,9})`,Ru=qr(vu+Nu),Tu=qr("(?:--)?(\\d{2})-?(\\d{2})"+Nu),Iu=qr(Eu+Nu),Du=qr("T?"+bu+"(?:"+Mu+")?"+Nu),ju=qr(Mu),Zu=new RegExp(Ou,"g"),Cu=qr(`${pu}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${yu}H)?(?:(\\d+)${yu}M)?(?:(\\d+)${yu}S)?)?`),Yu=e((n=>new Mc("en",{calendar:Wi,timeZone:n,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:0}))),Su=/^(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$/,Pu=/[^\w\/:+-]+/,ku=/^M(\d{2})(L?)$/,$u=e(Ce),Uu=e((n=>new Mc("en",{calendar:n,timeZone:uu,era:"short",year:"numeric",month:"short",day:"numeric",hour12:0}))),xu={P:function(n,r,e){const o=Sn(e);let i,{years:c,months:u,weeks:s,days:a}=r;if(a+=Or(r,5)[0],c||u)i=function(n,r,e,o,i){let[c,u,s]=n.u(r);if(e){const[r,o]=n.m(c,u);c+=e,u=Re(r,o,n.F(c)),u=t("month",u,1,n.O(c),i)}return o&&([c,u]=n.p(c,u,o)),s=t("day",s,1,n.B(c,u),i),n.M(c,u,s)}(this,n,c,u,o);else{if(!s&&!a)return n;i=fn(n)}if(void 0===i)throw new RangeError(ni);return i+=(7*s+a)*mi,en(pn(i))},h:function(n,t,r){if(r<=7){let e=0,o=me({...n,...hc},{...t,...hc});return 7===r&&([e,o]=N(o,7)),{...oc,weeks:e,days:o}}const e=this.u(n),o=this.u(t);let[i,c,u]=((n,t,r,e,o,i,c)=>{let u=o-t,s=i-r,a=c-e;if(u||s){const f=Math.sign(u||s);let l=n.B(o,i),d=0;if(Math.sign(a)===-f){const e=l;[o,i]=n.p(o,i,-f),u=o-t,s=i-r,l=n.B(o,i),d=f<0?-e:l}if(a=c-Math.min(e,l)+d,u){const[e,c]=n.m(t,r),[a,l]=n.m(o,i);if(s=a-e||Number(l)-Number(c),Math.sign(s)===-f){const r=f<0&&-n.O(o);u=(o-=f)-t,s=i-Re(e,c,n.F(o))+(r||n.O(o))}}}return[u,s,a]})(this,...e,...o);return 8===r&&(c+=this.q(i,e[0]),i=0),{...oc,years:i,months:c,days:u}},ee:function(n,t){const r=Sn(t),e=no(this,n),o=to(this,n,e,r),i=ro(this,n,o,e,r);return Qn(en(this.U(e,o,i)),this.id||Wi)},ne:function(n,t){const r=Sn(t),e=no(this,n),o=to(this,n,e,r);return nt(rn(this.U(e,o,1)),this.id||Wi)},te:function(n,t){const r=Sn(t);let e,o,i,c=void 0!==n.eraYear||void 0!==n.year?no(this,n):void 0;const u=!this.id;if(void 0===c&&u&&(c=Oc),void 0!==c){const t=to(this,n,c,r);e=ro(this,n,t,c,r);const u=this.F(c);o=Te(t,u),i=t===u}else{if(void 0===n.monthCode)throw new TypeError(Jo);if([o,i]=Oe(n.monthCode),this.id&&this.id!==Hi&&this.id!==qi)if(this.id&&"coptic"===Ae(this.id)&&0===r){const t=i||13!==o?30:6;e=n.day,e=M(e,1,t)}else if(this.id&&"chinese"===Ae(this.id)&&0===r){const t=!i||1!==o&&9!==o&&10!==o&&11!==o&&12!==o?30:29;e=n.day,e=M(e,1,t)}else e=n.day;else e=ro(this,n,to(this,n,Oc,r),Oc,r)}const s=this.R(o,i,e);if(!s)throw new RangeError("Cannot guess year");const[a,f]=s;return tt(en(this.U(a,f,e)),this.id||Wi)},fields:function(n){return De(this)&&n.includes("year")?[...n,...Ci]:n},oe:function(n,t){const r=Object.assign(Object.create(null),n);return eo(r,t,ki),De(this)&&(eo(r,t,Yi),this.id===qi&&eo(r,t,Li,Ci)),r},inLeapYear:function(n){const[t]=this.u(n);return this.L(t)},monthsInYear:function(n){const[t]=this.u(n);return this.O(t)},daysInMonth:function(n){const[t,r]=this.u(n);return this.B(t,r)},daysInYear:function(n){const[t]=this.u(n);return this.G(t)},dayOfYear:Ee,era(n){return this.$(n)[0]},eraYear(n){return this.$(n)[1]},monthCode(n){const[t,r]=this.u(n),[e,o]=this.m(t,r);return Ne(e,o)},dayOfWeek:Rn,daysInWeek:function(){return 7}},Fu={u:vn,$:Tn,m:bn},Lu={dayOfYear:Ee,u:vn,M:wn},Bu=Object.assign({},Lu,{weekOfYear:be,yearOfWeek:Me,I(n){function t(n){return(7-n<e?7:0)-n}function r(n){const r=On(d+n),e=n||1,o=t(O(s+r*e,7));return f=(r+(o-a)*e)/7}const e=this.id?1:4,o=Rn(n),i=this.dayOfYear(n),c=O(o-1,7),u=i-1,s=O(c-u,7),a=t(s);let f,l=Math.floor((u-a)/7)+1,d=n.isoYear;return l?l>r(0)&&(l=1,d++):(l=r(-1),d--),[l,d,f]}}),Ju=Object.assign({},xu,Bu,{u:vn,$:Tn,m:bn,R:function(n,t){if(!t)return[Oc,n]},L:Nn,F:function(){},O:Mn,q:function(n){return n*Nc},B:En,G:On,U:function(n,t,r){return{isoYear:n,isoMonth:t,isoDay:r}},M:wn,p:function(n,t,r){return n+=R(r,Nc),(t+=T(r,Nc))<1?(n--,t+=Nc):t>Nc&&(n++,t-=Nc),[n,t]},year:n=>n.isoYear,month:n=>n.isoMonth,day:function(n){return n.isoDay}}),Wu={u:$e,$:We,m:xe},Hu={dayOfYear:Ee,u:$e,M:Ue},qu={I:()=>[]},_u=Object.assign({},Hu,qu,{weekOfYear:be,yearOfWeek:Me}),Au=Object.assign({},xu,_u,{u:$e,$:We,m:xe,R:function(n,t,r){const e=this.id&&"chinese"===Ae(this.id)?((n,t,r)=>{if(t)switch(n){case 1:return 1651;case 2:return r<30?1947:1765;case 3:return r<30?1966:1955;case 4:return r<30?1963:1944;case 5:return r<30?1971:1952;case 6:return r<30?1960:1941;case 7:return r<30?1968:1938;case 8:return r<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(n,t,r):Oc;let[o,i,c]=$e.call(this,{isoYear:e,isoMonth:Nc,isoDay:31});const u=Fe.call(this,o),s=i===u;1===(b(n,Te(i,u))||b(Number(t),Number(s))||b(r,c))&&o--;for(let e=0;e<100;e++){const i=o-e,c=Fe.call(this,i),u=Re(n,t,c);if(t===(u===c)&&r<=Be.call(this,i,u))return[i,u]}},L:function(n){const t=Le.call(this,n);return t>Le.call(this,n-1)&&t>Le.call(this,n+1)},F:Fe,O:Je,q:function(n,t){const r=t+n,e=Math.sign(n),o=e<0?-1:0;let i=0;for(let n=t;n!==r;n+=e)i+=Je.call(this,n+o);return i},B:Be,G:Le,U:function(n,t,r){return pn(Ue.call(this,n,t,r))},M:Ue,p:function(n,t,r){if(r){if(t+=r,!Number.isSafeInteger(t))throw new RangeError(ni);if(r<0)for(;t<1;)t+=Je.call(this,--n);else{let r;for(;t>(r=Je.call(this,n));)t-=r,n++}}return[n,t]},year(n){return this._(n).year},month(n){const{year:t,V:r}=this._(n),{X:e}=this.J(t);return e[r]+1},day:function(n){return this._(n).day}}),Gu=Ge(Fu,Wu),Ku=Ge(Ju,Au),Vu={era:F,eraYear:J,year:J,month:H,monthCode(n){const t=F(n);return Oe(t),t},day:H},zu=di(Ri,J),Xu=di(Xi,W),Qu={offset(n){const t=F(n);return Zr(t),t}},ns=Object.assign({},Vu,zu,Xu,Qu),ts=m(l,Ri,uc),rs=m(l,uc,Ri),es="numeric",os=["timeZoneName"],is={month:es,day:es},cs={year:es,month:es},us=Object.assign({},cs,{day:es}),ss={hour:es,minute:es,second:es},as=Object.assign({},us,ss),fs=Object.assign({},as,{timeZoneName:"short"}),ls=Object.keys(cs),ds=Object.keys(is),hs=Object.keys(us),ws=Object.keys(ss),gs=["dateStyle"],ms=ls.concat(gs),ps=ds.concat(gs),ys=hs.concat(gs,["weekday"]),vs=ws.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),bs=ys.concat(vs),Ms=os.concat(vs),Es=os.concat(ys),Os=os.concat(["day","weekday"],vs),Ns=os.concat(["year","weekday"],vs),Rs=fo(bs,as),Ts=fo(bs,fs),Is=fo(bs,as,os),Ds=fo(ys,us,Ms),js=fo(vs,ss,Es),Zs=fo(ms,cs,Os),Cs=fo(ps,is,Ns),Ys={},Ss=wo(),Ps=[Rs,ot],ks=[Ts,ot,0,(n,t)=>{const r=n.timeZone;if(t&&t.timeZone!==r)throw new RangeError(Go);return r}],$s=[Is,fn],Us=[Ds,fn],xs=[js,n=>un(n)/vi],Fs=[Zs,fn,Ss],Ls=[Cs,fn,Ss];function Bs(n,t,r,e,s,f){function l(...n){if(!(this instanceof l))throw new TypeError(Po);{const r=t(...n);ga(this,r),Ws(this,r,f)}}function d(n,t){return Object.defineProperties((function(...t){return n.call(this,h(this),...t)}),o(t))}function h(t){const r=wa(t);if(!r||r.branding!==n)throw new TypeError(Po);return r}return Object.defineProperties(l.prototype,{...c(a(d,r)),...i(a(d,e)),...u("Temporal."+n)}),Object.defineProperties(l,{...i(s),...o(n)}),[l,n=>{const t=Object.create(l.prototype);return ga(t,n),Ws(t,n,f),t},h]}function Js(n){if(wa(n)||void 0!==n.calendar||void 0!==n.timeZone)throw new TypeError("Invalid bag");return n}function Ws(n,t,r){"dbg"===Ws.name&&Object.defineProperty(n,"o",{value:r(t),writable:0,enumerable:0,configurable:0})}function Hs(n){return qs(n)||Wi}function qs(n){const{calendar:t}=n;if(void 0!==t)return _s(t)}function _s(n){if(r(n)){const{calendar:t}=wa(n)||{};if(!t)throw new TypeError(qo(n));return t}return(n=>_e(function(n){const t=Ur(n)||xr(n)||Fr(n);return t?t.calendar:n}(Ki(n))))(n)}function As(n){const t={};for(const r in n)t[r]=n=>{const{calendar:t}=n;return Ku(t)[r](n)};return t}function Gs(){throw new TypeError("Cannot use valueOf")}function Ks(n){if(r(n)){const{timeZone:t}=wa(n)||{};if(!t)throw new TypeError(Ao(n));return t}return(n=>Gr(function(n){const t=Ur(n);return t&&(t.timeZone||t.C&&uu||t.offset)||n}(Ki(n))))(n)}function Vs(n){if(r(n)){const t=wa(n);return t&&t.branding===iu?t:function(n){const t=ze(n,Qi);return et(Mr({...oc,...t}))}(n)}return function(n){const t=(n=>{const t=Cu.exec(n);return t?(n=>{function t(n,t,i){let c=0,u=0;if(i&&([c,o]=E(o,Ni[i])),void 0!==n){if(e)throw new RangeError(si(n));u=(n=>{const t=parseInt(n);if(!Number.isFinite(t))throw new RangeError(si(n));return t})(n),r=1,t&&(o=Hr(t)*(Ni[i]/bi),e=1)}return c+u}let r=0,e=0,o=0,i={...s(Xi,[t(n[2]),t(n[3]),t(n[4]),t(n[5]),t(n[6],n[7],5),t(n[8],n[9],4),t(n[10],n[11],3)]),...j(o,2,Xi)};if(!r)throw new RangeError(Yo(Xi));return _r(n[1])<0&&(i=vr(i)),i})(t):void 0})(Ki(n));if(!t)throw new RangeError(ui(n));return et(Mr(t))}(n)}function zs(n){if(void 0!==n){if(r(n)){const t=wa(n)||{};switch(t.branding){case eu:case nu:return t;case tu:return Qn(t)}const r=Hs(n);return{...Ke(Ks,wu,Ku(r),n),calendar:r}}return function(n){const t=Ur(Ki(n));if(!t)throw new RangeError(ui(n));if(t.timeZone)return Sr(t,t.offset?Zr(t.offset):void 0);if(t.C)throw new RangeError(ui(n));return kr(t)}(n)}}function Xs(n,t){if(r(n)){const r=wa(n)||{};switch(r.branding){case ru:return Sn(t),r;case tu:return Sn(t),rt(r);case eu:return Sn(t),uo(wu,r)}return function(n,t){return rt(Xe(ze(n,Ti,[],1),Sn(t)))}(n,t)}const e=function(n){let t,r=(n=>{const t=Du.exec(n);return t?(Wr(t[10]),Jr(t)):void 0})(Ki(n));if(!r){if(r=Ur(n),!r)throw new RangeError(ui(n));if(!r.k)throw new RangeError(ui(n));if(r.C)throw new RangeError(si("Z"));Yr(r)}if((t=xr(n))&&Zn(t))throw new RangeError(ui(n));if((t=Fr(n))&&Zn(t))throw new RangeError(ui(n));return rt(Yn(r,1))}(n);return Sn(t),e}function Qs(n){return void 0===n?void 0:Xs(n)}function na(n,t){if(r(n)){const r=wa(n)||{};switch(r.branding){case tu:return Sn(t),r;case nu:return Sn(t),Xn({...r,...hc});case eu:return Sn(t),io(wu,r)}return function(n,t,r){const e=Ve(n,t,Fi,[],Ri),o=Sn(r);return Xn(on({...n.ee(e,_n(o)),...Xe(e,o)}))}(Ku(Hs(n)),n,t)}const e=function(n){const t=Ur(Ki(n));if(!t||t.C)throw new RangeError(ui(n));return Xn(Pr(t))}(n);return Sn(t),e}function ta(n,t){if(r(n)){const r=wa(n);if(r&&r.branding===Qc)return Sn(t),r;const e=qs(n);return function(n,t,r,e){const o=Ve(n,r,Fi,$i);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Oc),n.te(o,e)}(Ku(e||Wi),!e,n,t)}const e=function(n,t){const r=Fr(Ki(t));if(r)return Yr(r),tt(jn(r));const e=Cr(t,0,1),{calendar:o}=e,i=n(o),[c,u,s]=i.u(e),[a,f]=i.m(c,u),[l,d]=i.R(a,f,s);return tt(en(i.U(l,d,s)),o)}(Ku,n);return Sn(t),e}function ra(n,t){if(r(n)){const r=wa(n);return r&&r.branding===Xc?(Sn(t),r):function(n,t,r,e){const o=Ve(n,t,Ui,e);return n.ne(o,r)}(Ku(Hs(n)),n,t)}const e=function(n,t){const r=xr(Ki(t));if(r)return Yr(r),nt(rn(jn(r)));const e=Cr(t,1);return nt(sr(n(e.calendar),e))}(Ku,n);return Sn(t),e}function ea(n,t){if(r(n)){const r=wa(n)||{};switch(r.branding){case nu:return Sn(t),r;case tu:return Sn(t),Qn(r);case eu:return Sn(t),co(wu,r)}return function(n,t,r,e=[]){const o=Ve(n,t,Fi,e);return n.ee(o,r)}(Ku(Hs(n)),n,t)}const e=Cr(n);return Sn(t),e}function oa(n,t){if(r(n)){const r=wa(n);if(r&&r.branding===eu)return Pn(t),r;const e=Hs(n);return function(n,t,r,e,o,i){const c=Ve(r,o,Fi,Di,Zi),u=n(c.timeZone),[s,a,f]=Pn(i),l=r.ee(c,_n(s)),d=Xe(c,s);return zn(Vt(t(u),{...l,...d},void 0!==c.offset?Zr(c.offset):void 0,a,f),u,e)}(Ks,wu,Ku(e),e,n,t)}return function(n,t){const r=Ur(Ki(n));if(!r||!r.timeZone)throw new RangeError(ui(n));const{offset:e}=r,o=e?Zr(e):void 0,[,i,c]=Pn(t);return Sr(r,o,i,c)}(n,t)}function ia(n){return a((n=>t=>n(ca(t))),n)}function ca(n){return du(n,wu)}function ua(n){if(r(n)){const t=wa(n);if(t)switch(t.branding){case ou:return t;case eu:return Vn(t.epochNanoseconds)}}return function(n){const t=Ur(n=F(n));if(!t)throw new RangeError(ui(n));let r;if(t.C)r=0;else{if(!t.offset)throw new RangeError(ui(n));r=Zr(t.offset)}return t.timeZone&&Lr(t.timeZone,1),Vn(dn(Dn(t),r))}(n)}function sa(){const n=Date.prototype.valueOf.call(this);return nf(Vn(X($(n),vi)))}function aa(){function n(n,r){return new t(n,r)}function t(n,t=Object.create(null)){cf.set(this,((n,t)=>{const r=new Mc(n,t),o=r.resolvedOptions(),i=o.locale,c=d(Object.keys(t),o),u=e(da),s=(n,...t)=>{if(n){if(2!==t.length)throw new TypeError(ai);for(const n of t)if(void 0===n)throw new TypeError(ai)}n||void 0!==t[0]||(t=[]);const e=t.map((n=>wa(n)||Number(n)));let o,s=0;for(const n of e){const t="object"==typeof n?n.branding:void 0;if(s++&&t!==o)throw new TypeError(ai);o=t}return o?u(o)(i,c,...e):[r,...e]};return s.i=r,s})(n,t))}const r=Mc.prototype,i=Object.getOwnPropertyDescriptors(r),c=Object.getOwnPropertyDescriptors(Mc);for(const t in i){const r=i[t],e=t.startsWith("format")&&fa(t);"function"==typeof r.value?r.value="constructor"===t?n:e||la(t):e&&(r.get=function(){if(!cf.has(this))throw new TypeError(Po);return(...n)=>e.apply(this,n)},Object.defineProperties(r.get,o(`get ${t}`)))}return c.prototype.value=t.prototype=Object.create({},i),Object.defineProperties(n,c),n}function fa(n){return Object.defineProperties((function(...t){const r=cf.get(this),[e,...o]=r(n.includes("Range"),...t);return e[n](...o)}),o(n))}function la(n){return Object.defineProperties((function(...t){return cf.get(this).i[n](...t)}),o(n))}function da(n){const t=Za[n];if(!t)throw new TypeError((n=>`Cannot format ${n}`)(n));return lo(t,e(ho),1)}const ha=new WeakMap,wa=ha.get.bind(ha),ga=ha.set.bind(ha),ma={era:function(n){if(void 0!==n)return Ki(n)},eraYear:Z,year:Y,month:C,daysInMonth:C,daysInYear:C,inLeapYear:Vi,monthsInYear:C},pa={monthCode:Ki},ya={day:C},va={dayOfWeek:C,dayOfYear:C,weekOfYear:function(n){if(void 0!==n)return C(n)},yearOfWeek:Z,daysInWeek:C},ba=As(Object.assign({},ma,pa,ya,va)),Ma=As({...ma,...pa}),Ea=As({...pa,...ya}),Oa={calendarId:n=>n.calendar},Na=f((n=>t=>t[n]),Xi.concat("sign")),Ra=f(((n,t)=>n=>n[uc[t]]),Ri),Ta={epochMilliseconds:ot,epochNanoseconds:function(n){return function(n,t=1){const[r,e]=n,o=Math.floor(e/t),i=Oi/t;return BigInt(r)*BigInt(i)+BigInt(o)}(n.epochNanoseconds)}},[Ia,Da,ja]=Bs(iu,(function(n=0,t=0,r=0,e=0,o=0,i=0,c=0,u=0,f=0,l=0){return et(Mr(a(W,s(Xi,[n,t,r,e,o,i,c,u,f,l]))))}),{...Na,blank:function(n){return!n.sign}},{with:(n,t)=>Da(function(n,t){return et((r=n,e=t,Mr({...r,...ze(e,Qi)})));var r,e}(n,t)),negated:n=>Da(yr(n)),abs:n=>Da(function(n){return-1===n.sign?yr(n):n}(n)),add:(n,t,r)=>Da(pr(zs,Ku,wu,0,n,Vs(t),r)),subtract:(n,t,r)=>Da(pr(zs,Ku,wu,1,n,Vs(t),r)),round:(n,t)=>Da(function(n,t,r,e,o){const i=Ir(e),[c,u,s,a,f]=((n,t,r)=>{n=qn(n,Ic);let e=Wc(n);const o=r(n[Cc]);let i=Bn(n);const c=zc(n,7);let u=Jc(n);if(void 0===e&&void 0===u)throw new RangeError(ii);if(null==u&&(u=0),null==e&&(e=Math.max(u,t)),Kn(e,u),i=Jn(i,u,1),i>1&&u>5&&e!==u)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[e,u,i,c,o]})(o,i,n),l=Math.max(i,c);if(!f&&l<=6)return et(Mr(((n,t,r,e,o)=>{const i=Mt(Or(n),r,e,o);return{...oc,...Nr(i,t)}})(e,c,u,s,a)));if(!gr(f)&&!e.sign)return e;if(!f)throw new RangeError(ei);const[d,h,w]=lr(t,r,f),g=dr(w),m=hr(w),p=wr(w),y=m(h,d,e);gr(f)||(on(d),on(y));let v=p(h,d,y,c);const b=e.sign,M=br(v);if(b&&M&&b!==M)throw new RangeError(Ho);return v=bt(v,g(y),c,u,s,a,h,d,g,m),et(v)}(zs,Ku,wu,n,t)),total:(n,t)=>ct(zs,Ku,wu,n,t),toLocaleString(n,t,r){return Intl.DurationFormat?new Intl.DurationFormat(t,r).format(this):kt(n)},toString:kt,toJSON:n=>kt(n),valueOf:Gs},{from:n=>Da(Vs(n)),compare:(n,t,r)=>function(n,t,r,e,o,i){const c=n(Hn(i).relativeTo),u=Math.max(Ir(e),Ir(o));if(w(Xi,e,o))return 0;if(mr(u,c))return K(Or(e),Or(o));if(!c)throw new RangeError(ei);const[s,a,f]=lr(t,r,c),l=dr(f),d=hr(f);return K(l(d(a,s,e)),l(d(a,s,o)))}(zs,Ku,wu,Vs(n),Vs(t),r)},kt),Za={Instant:Ps,PlainDateTime:$s,PlainDate:Us,PlainTime:xs,PlainYearMonth:Fs,PlainMonthDay:Ls},Ca=lo(Ps),Ya=lo(ks),Sa=lo($s),Pa=lo(Us),ka=lo(xs),$a=lo(Fs),Ua=lo(Ls),[xa,Fa]=Bs(ru,(function(n=0,t=0,r=0,e=0,o=0,i=0){return rt(Yn(a(J,s(uc,[n,t,r,e,o,i])),1))}),Ra,{with(n,t,r){return Fa(function(n,t,r){return rt(((n,t,r)=>Xe({...d(Ti,n),...ze(t,Ti)},Sn(r)))(n,t,r))}(this,Js(t),r))},add:(n,t)=>Fa(or(0,n,Vs(t))),subtract:(n,t)=>Fa(or(1,n,Vs(t))),until:(n,t,r)=>Da(ae(0,n,Xs(t),r)),since:(n,t,r)=>Da(ae(1,n,Xs(t),r)),round:(n,t)=>Fa(function(n,t){const[r,e,o]=$n(t,5);var i;return rt((i=o,wt(n,mt(r,e),i)[0]))}(n,t)),equals:(n,t)=>function(n,t){return!te(n,t)}(n,Xs(t)),toLocaleString(n,t,r){const[e,o]=ka(t,r,n);return e.format(o)},toString:Pt,toJSON:n=>Pt(n),valueOf:Gs},{from:(n,t)=>Fa(Xs(n,t)),compare:(n,t)=>te(Xs(n),Xs(t))},Pt),[La,Ba]=Bs(tu,m((function(n,t,r,e,o=0,i=0,c=0,u=0,f=0,l=0,d=Wi){return Xn(on(Dn(a(J,s(ac,[t,r,e,o,i,c,u,f,l])))),n(d))}),qe),{...Oa,...ba,...Ra},{with:(n,t,r)=>Ba(function(n,t,r,e){const o=n(t.calendar),i=[...o.fields(Fi),...Ri].sort(),c={...oo(u=t),hour:u.isoHour,minute:u.isoMinute,second:u.isoSecond,millisecond:u.isoMillisecond,microsecond:u.isoMicrosecond,nanosecond:u.isoNanosecond};var u;const s=ze(r,i),a=Sn(e),f=o.oe(c,s),l={...c,...s};return Xn(on({...o.ee(f,_n(a)),...Yn(ts(l),a)}))}(Ku,n,Js(t),r)),withCalendar:(n,t)=>Ba(mo(n,_s(t))),withPlainTime:(n,t)=>Ba(function(n,t=hc){return Xn(on({...n,...t}))}(n,Qs(t))),add:(n,t,r)=>Ba(tr(Ku,0,n,Vs(t),r)),subtract:(n,t,r)=>Ba(tr(Ku,1,n,Vs(t),r)),until:(n,t,r)=>Da(ie(Ku,0,n,na(t),r)),since:(n,t,r)=>Da(ie(Ku,1,n,na(t),r)),round:(n,t)=>Ba(function(n,t){return Xn(dt(n,...$n(t)),n.calendar)}(n,t)),equals:(n,t)=>function(n,t){return!Qr(n,t)&&n.calendar===t.calendar}(n,na(t)),toZonedDateTime:(n,t,r)=>Xa(function(n,t,r,e){const o=((n,t,r,e)=>{const o=(n=>_c(Hn(n)))(e);return zt(n(t),r,o)})(n,r,t,e);return zn(cn(o),r,t.calendar)}(wu,n,Ks(t),r)),toPlainDate:n=>Ka(Qn(n)),toPlainTime:n=>Fa(rt(n)),toLocaleString(n,t,r){const[e,o]=Sa(t,r,n);return e.format(o)},toString:Zt,toJSON:n=>Zt(n),valueOf:Gs},{from:(n,t)=>Ba(na(n,t)),compare:(n,t)=>Qr(na(n),na(t))},Zt),[Ja,Wa,Ha]=Bs(Qc,m((function(n,t,r,e=Wi,o=Oc){const i=J(t),c=J(r),u=n(e);return tt(en(jn({isoYear:J(o),isoMonth:i,isoDay:c})),u)}),qe),{...Oa,...Ea},{with:(n,t,r)=>Wa(function(n,t,r,e){const o=n(t.calendar),i=o.fields(Fi).sort(),c=(n=>{const t=Gu(n.calendar),[r,e,o]=t.u(n),[i,c]=t.m(r,e);return{monthCode:Ne(i,c),day:o}})(t),u=ze(r,i),s=o.oe(c,u);return o.te(s,e)}(Ku,n,Js(t),r)),equals:(n,t)=>function(n,t){return!ne(n,t)&&n.calendar===t.calendar}(n,ta(t)),toPlainDate(n,t){return Ka(function(n,t,r,e){return((n,t,r)=>Qe(n,t,Bi,P(r),Si))(n(t.calendar),r,e)}(Ku,n,this,t))},toLocaleString(n,t,r){const[e,o]=Ua(t,r,n);return e.format(o)},toString:St,toJSON:n=>St(n),valueOf:Gs},{from:(n,t)=>Wa(ta(n,t))},St),[qa,_a,Aa]=Bs(Xc,m((function(n,t,r,e=Wi,o=1){const i=J(t),c=J(r),u=n(e);return nt(rn(jn({isoYear:i,isoMonth:c,isoDay:J(o)})),u)}),qe),{...Oa,...Ma},{with:(n,t,r)=>_a(function(n,t,r,e){const o=n(t.calendar),i=o.fields(Ui).sort(),c=(n=>{const t=Gu(n.calendar),[r,e]=t.u(n),[o,i]=t.m(r,e);return{year:r,monthCode:Ne(o,i)}})(t),u=ze(r,i),s=o.oe(c,u);return o.ne(s,e)}(Ku,n,Js(t),r)),add:(n,t,r)=>_a(er(Ku,0,n,Vs(t),r)),subtract:(n,t,r)=>_a(er(Ku,1,n,Vs(t),r)),until:(n,t,r)=>Da(ue(Ku,0,n,ra(t),r)),since:(n,t,r)=>Da(ue(Ku,1,n,ra(t),r)),equals:(n,t)=>function(n,t){return!ne(n,t)&&n.calendar===t.calendar}(n,ra(t)),toPlainDate(n,t){return Ka(function(n,t,r,e){return((n,t,r)=>Qe(n,t,xi,P(r),$i))(n(t.calendar),r,e)}(Ku,n,this,t))},toLocaleString(n,t,r){const[e,o]=$a(t,r,n);return e.format(o)},toString:Yt,toJSON:n=>Yt(n),valueOf:Gs},{from:(n,t)=>_a(ra(n,t)),compare:(n,t)=>ne(ra(n),ra(t))},Yt),[Ga,Ka,Va]=Bs(nu,m((function(n,t,r,e,o=Wi){return Qn(en(jn(a(J,{isoYear:t,isoMonth:r,isoDay:e}))),n(o))}),qe),{...Oa,...ba},{with:(n,t,r)=>Ka(function(n,t,r,e){const o=n(t.calendar),i=o.fields(Fi).sort(),c=oo(t),u=ze(r,i),s=o.oe(c,u);return o.ee(s,e)}(Ku,n,Js(t),r)),withCalendar:(n,t)=>Ka(mo(n,_s(t))),add:(n,t,r)=>Ka(rr(Ku,0,n,Vs(t),r)),subtract:(n,t,r)=>Ka(rr(Ku,1,n,Vs(t),r)),until:(n,t,r)=>Da(ce(Ku,0,n,ea(t),r)),since:(n,t,r)=>Da(ce(Ku,1,n,ea(t),r)),equals:(n,t)=>function(n,t){return!ne(n,t)&&n.calendar===t.calendar}(n,ea(t)),toZonedDateTime(n,t){const e=r(t)?t:{timeZone:t};return Xa(function(n,t,r,e,o){const i=n(o.timeZone),c=o.plainTime,u=void 0!==c?t(c):void 0,s=r(i);let a;return a=u?zt(s,{...e,...u}):Xt(s,{...e,...hc}),zn(a,i,e.calendar)}(Ks,Xs,wu,n,e))},toPlainDateTime:(n,t)=>Ba(function(n,t=hc){return Xn(on({...n,...t}))}(n,Qs(t))),toPlainYearMonth(n){return _a(so(Ku,n,this))},toPlainMonthDay(n){return Wa(ao(Ku,n,this))},toLocaleString(n,t,r){const[e,o]=Pa(t,r,n);return e.format(o)},toString:Ct,toJSON:n=>Ct(n),valueOf:Gs},{from:(n,t)=>Ka(ea(n,t)),compare:(n,t)=>ne(ea(n),ea(t))},Ct),[za,Xa]=Bs(eu,m((function(n,t,r,e,o=Wi){return zn(cn(z(L(r))),t(e),n(o))}),qe,(function(n){return Gr(Ki(n))})),{...Ta,...Oa,...ia(ba),...ia(Ra),offset:n=>Wt(ca(n).offsetNanoseconds),offsetNanoseconds:n=>ca(n).offsetNanoseconds,timeZoneId:n=>n.timeZone,hoursInDay:n=>function(n,t){const r=n(t.timeZone),e=du(t,r),[o,i]=pt(e),c=Q(G(Xt(r,o),Xt(r,i)),Ei,1);if(c<=0)throw new RangeError(Ho);return c}(wu,n)},{with:(n,t,r)=>Xa(function(n,t,r,e,o){const{calendar:i,timeZone:c}=r,u=n(i),s=t(c),a=[...u.fields(Fi),...ji].sort(),f=(n=>{const t=du(n,wu),r=Wt(t.offsetNanoseconds),e=Gu(n.calendar),[o,i,c]=e.u(t),[u,s]=e.m(o,i),a=Ne(u,s);return{...rs(t),year:o,monthCode:a,day:c,offset:r}})(r),l=ze(e,a),d=u.oe(f,l),h={...f,...l},[w,g,m]=Pn(o,2);return zn(Vt(s,{...u.ee(d,_n(w)),...Yn(ts(h),w)},Zr(h.offset),g,m),c,i)}(Ku,wu,n,Js(t),r)),withCalendar:(n,t)=>Xa(mo(n,_s(t))),withTimeZone:(n,t)=>Xa(function(n,t){return{...n,timeZone:t}}(n,Ks(t))),withPlainTime:(n,t)=>Xa(function(n,t,r){const e=t.timeZone,o=n(e),i={...du(t,o),...r||hc};let c;return c=r?Vt(o,i,i.offsetNanoseconds,2):Xt(o,i),zn(c,e,t.calendar)}(wu,n,Qs(t))),add:(n,t,r)=>Xa(nr(Ku,wu,0,n,Vs(t),r)),subtract:(n,t,r)=>Xa(nr(Ku,wu,1,n,Vs(t),r)),until:(n,t,r)=>Da(et(oe(Ku,wu,0,n,oa(t),r))),since:(n,t,r)=>Da(et(oe(Ku,wu,1,n,oa(t),r))),round:(n,t)=>Xa(ft(wu,n,t)),startOfDay:n=>Xa(lt(wu,n)),equals:(n,t)=>function(n,t){return!Xr(n,t)&&!!re(n.timeZone,t.timeZone)&&n.calendar===t.calendar}(n,oa(t)),toInstant:n=>nf(function(n){return Vn(n.epochNanoseconds)}(n)),toPlainDateTime:n=>Ba(io(wu,n)),toPlainDate:n=>Ka(co(wu,n)),toPlainTime:n=>Fa(uo(wu,n)),toLocaleString(n,t,r={}){const[e,o]=Ya(t,r,n);return e.format(o)},toString:(n,t)=>jt(wu,n,t),toJSON:n=>jt(wu,n),valueOf:Gs,getTimeZoneTransition(n,t){const{timeZone:r,epochNanoseconds:e}=n,o=function(n){const t=qn(n,Yc),r=Gn(Yc,Bc,t,0);if(!r)throw new RangeError(Do(Yc,r));return r}(t),i=wu(r).l(e,o);return i?Xa({...n,epochNanoseconds:i}):null}},{from:(n,t)=>Xa(oa(n,t)),compare:(n,t)=>Xr(oa(n),oa(t))},(n=>jt(wu,n))),[Qa,nf,tf]=Bs(ou,(function(n){return Vn(cn(z(L(n))))}),Ta,{add:(n,t)=>nf(Qt(0,n,Vs(t))),subtract:(n,t)=>nf(Qt(1,n,Vs(t))),until:(n,t,r)=>Da(ee(0,n,ua(t),r)),since:(n,t,r)=>Da(ee(1,n,ua(t),r)),round:(n,t)=>nf(function(n,t){const[r,e,o]=$n(t,5,1);return Vn(Mt(n.epochNanoseconds,r,e,o,1))}(n,t)),equals:(n,t)=>function(n,t){return!zr(n,t)}(n,ua(t)),toZonedDateTimeISO:(n,t)=>Xa(function(n,t,r=Wi){return zn(n.epochNanoseconds,t,r)}(n,Ks(t))),toLocaleString(n,t,r){const[e,o]=Ca(t,r,n);return e.format(o)},toString:(n,t)=>Dt(Ks,wu,n,t),toJSON:n=>Dt(Ks,wu,n),valueOf:Gs},{from:n=>nf(ua(n)),fromEpochMilliseconds:n=>nf(function(n){return Vn(cn(X(W(n),vi)))}(n)),fromEpochNanoseconds:n=>nf(function(n){return Vn(cn(z(L(n))))}(n)),compare:(n,t)=>zr(ua(n),ua(t))},(n=>Dt(Ks,wu,n))),rf=Object.defineProperties({},{...u("Temporal.Now"),...i({timeZoneId:()=>vo(),instant:()=>nf(Vn(yo())),zonedDateTimeISO:(n=vo())=>Xa(zn(yo(),Ks(n),Wi)),plainDateTimeISO:(n=vo())=>Ba(Xn(po(wu(Ks(n))),Wi)),plainDateISO:(n=vo())=>Ka(Qn(po(wu(Ks(n))),Wi)),plainTimeISO:(n=vo())=>Fa(rt(po(wu(Ks(n)))))})}),ef=Object.defineProperties({},{...u("Temporal"),...i({PlainYearMonth:qa,PlainMonthDay:Ja,PlainDate:Ga,PlainTime:xa,PlainDateTime:La,ZonedDateTime:za,Instant:Qa,Duration:Ia,Now:rf})}),of=aa(),cf=new WeakMap,uf=Object.defineProperties(Object.create(Intl),i({DateTimeFormat:of}));export { uf as Intl, ef as Temporal, sa as toTemporalInstant };
export default null;