import{az as D,c as I,aA as g,g as d}from"../index.js";var S={exports:{}};(function(z){//! moment-timezone-utils.js
//! version : 0.5.43
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(l,u){z.exports?z.exports=u(D.exports):u(l.moment)})(I,function(l){if(!l.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var u="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX",M=1e-6;function j(n,i){for(var t=".",r="",e;i>0;)i-=1,n*=60,e=Math.floor(n+M),t+=u[e],n-=e,e&&(r+=t,t="");return r}function h(n,i){for(var t="",r=Math.abs(n),e=Math.floor(r),a=j(r-e,Math.min(~~i,10));e>0;)t=u[e%60]+t,e=Math.floor(e/60);return n<0&&(t="-"+t),t&&a?t+a:!a&&t==="-"?"0":t||a||"0"}function E(n){var i=[],t=0,r;for(r=0;r<n.length-1;r++)i[r]=h(Math.round((n[r]-t)/1e3)/60,1),t=n[r];return i.join(" ")}function A(n){var i=0,t=[],r=[],e=[],a={},o,f;for(o=0;o<n.abbrs.length;o++)f=n.abbrs[o]+"|"+n.offsets[o],a[f]===void 0&&(a[f]=i,t[i]=n.abbrs[o],r[i]=h(Math.round(n.offsets[o]*60)/60,1),i++),e[o]=h(a[f],0);return t.join(" ")+"|"+r.join(" ")+"|"+e.join("")}function y(n){if(!n)return"";if(n<1e3)return n;var i=String(n|0).length-2,t=Math.round(n/Math.pow(10,i));return t+"e"+i}function P(n){if(!n.name)throw new Error("Missing name");if(!n.abbrs)throw new Error("Missing abbrs");if(!n.untils)throw new Error("Missing untils");if(!n.offsets)throw new Error("Missing offsets");if(n.offsets.length!==n.untils.length||n.offsets.length!==n.abbrs.length)throw new Error("Mismatched array lengths")}function b(n){return P(n),[n.name,A(n),E(n.untils),y(n.population)].join("|")}function v(n){return[n.name,n.zones.join(" ")].join("|")}function c(n,i){var t;if(n.length!==i.length)return!1;for(t=0;t<n.length;t++)if(n[t]!==i[t])return!1;return!0}function x(n,i){return c(n.offsets,i.offsets)&&c(n.abbrs,i.abbrs)&&c(n.untils,i.untils)}function L(n,i,t,r){var e,a,o,f,s,k,p=[];for(e=0;e<n.length;e++){for(k=!1,o=n[e],a=0;a<p.length;a++)s=p[a],f=s[0],x(o,f)&&(o.population>f.population||o.population===f.population&&r&&r[o.name]?s.unshift(o):s.push(o),k=!0);k||p.push([o])}for(e=0;e<p.length;e++)for(s=p[e],i.push(s[0]),a=1;a<s.length;a++)t.push(s[0].name+"|"+s[a].name)}function w(n,i){var t=[],r=[];return n.links&&(r=n.links.slice()),L(n.zones,t,r,i),{version:n.version,zones:t,links:r.sort()}}function B(n,i,t){var r=0,e=n.length+1,a,o;for(t||(t=i),i>t&&(o=i,i=t,t=o),o=0;o<n.length;o++)n[o]!=null&&(a=new Date(n[o]).getUTCFullYear(),a<i&&(r=o+1),a>t&&(e=Math.min(e,o+1)));return[r,e]}function m(n,i,t){var r=Array.prototype.slice,e=B(n.untils,i,t),a=r.apply(n.untils,e);return a[a.length-1]=null,{name:n.name,abbrs:r.apply(n.abbrs,e),untils:a,offsets:r.apply(n.offsets,e),population:n.population,countries:n.countries}}function C(n,i,t,r){var e,a=n.zones,o=[],f;for(e=0;e<a.length;e++)o[e]=m(a[e],i,t);for(f=w({zones:o,links:n.links.slice(),version:n.version},r),e=0;e<f.zones.length;e++)f.zones[e]=b(f.zones[e]);return f.countries=n.countries?n.countries.map(function(s){return v(s)}):[],f}return l.tz.pack=b,l.tz.packBase60=h,l.tz.createLinks=w,l.tz.filterYears=m,l.tz.filterLinkPack=C,l.tz.packCountry=v,l})})(S);g.locale(d("wp","locale"));g.tz.add(g.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[-d("wp","gmt_offset")*60||0]}));g.tz.setDefault("WP");
