@farris/ui-vue
Version:
Farris Vue, a Farris Design based Vue3 component library.
1 lines • 368 kB
JavaScript
(function(Y,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("../dynamic-resolver/index.umd.js"),require("lodash-es"),require("../dynamic-form/index.umd.js"),require("../common/index.umd.js"),require("../designer-canvas/index.umd.js"),require("../property-panel/index.umd.js"),require("../accordion/index.umd.js"),require("../avatar/index.umd.js"),require("../../designer/button-edit/index.umd.js"),require("../button-group/index.umd.js"),require("../calendar/index.umd.js"),require("../capsule/index.umd.js"),require("../../designer/checkbox/index.umd.js"),require("../../designer/checkbox-group/index.umd.js"),require("../combo-list/index.umd.js"),require("../combo-tree/index.umd.js"),require("../component/index.umd.js"),require("../color-picker/index.umd.js"),require("../content-container/index.umd.js"),require("../date-picker/index.umd.js"),require("../../designer/data-grid/index.umd.js"),require("../dropdown/index.umd.js"),require("../events-editor/index.umd.js"),require("../filter-bar/index.umd.js"),require("../field-selector/index.umd.js"),require("../binding-selector/index.umd.js"),require("../image-cropper/index.umd.js"),require("../../designer/input-group/index.umd.js"),require("../layout/index.umd.js"),require("../list-nav/index.umd.js"),require("../list-view/index.umd.js"),require("../lookup/index.umd.js"),require("../mapping-editor/index.umd.js"),require("../nav/index.umd.js"),require("../number-range/index.umd.js"),require("../number-spinner/index.umd.js"),require("../order/index.umd.js"),require("../page-header/index.umd.js"),require("../page-footer/index.umd.js"),require("../pagination/index.umd.js"),require("../progress/index.umd.js"),require("../query-solution/index.umd.js"),require("../../designer/radio-group/index.umd.js"),require("../rate/index.umd.js"),require("../response-toolbar/index.umd.js"),require("../response-layout/index.umd.js"),require("../response-layout-editor/index.umd.js"),require("../search-box/index.umd.js"),require("../section/index.umd.js"),require("../smoke-detector/index.umd.js"),require("../splitter/index.umd.js"),require("../step/index.umd.js"),require("../switch/index.umd.js"),require("../tabs/index.umd.js"),require("../tags/index.umd.js"),require("../text/index.umd.js"),require("../time-picker/index.umd.js"),require("../transfer/index.umd.js"),require("../tree-view/index.umd.js"),require("../uploader/index.umd.js"),require("../verify-detail/index.umd.js"),require("../video/index.umd.js"),require("../textarea/index.umd.js"),require("../schema-selector/index.umd.js"),require("../tree-grid/index.umd.js"),require("../event-parameter/index.umd.js"),require("../filter-condition-editor/index.umd.js"),require("../fieldset/index.umd.js"),require("../sort-condition-editor/index.umd.js"),require("../menu-lookup/index.umd.js"),require("../drawer/index.umd.js"),require("../json-editor/index.umd.js"),require("../property-editor/index.umd.js"),require("../expression-editor/index.umd.js"),require("../code-editor/index.umd.js"),require("../html-template/index.umd.js"),require("../external-container/index.umd.js"),require("@vueuse/core"),require("../data-view/index.umd.js"),require("../modal/index.umd.js"),require("../condition/index.umd.js"),require("../checkbox/index.umd.js"),require("../tooltip/index.umd.js"),require("../button/index.umd.js"),require("../notify/index.umd.js"),require("../input-group/index.umd.js"),require("../radio-group/index.umd.js"),require("../data-grid/index.umd.js"),require("../checkbox-group/index.umd.js"),require("../condition/index.umd.js/src/condition-fields.design.component"),require("../popover/index.umd.js"),require("../button-edit/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","vue","../dynamic-resolver/index.umd.js","lodash-es","../dynamic-form/index.umd.js","../common/index.umd.js","../designer-canvas/index.umd.js","../property-panel/index.umd.js","../accordion/index.umd.js","../avatar/index.umd.js","../../designer/button-edit/index.umd.js","../button-group/index.umd.js","../calendar/index.umd.js","../capsule/index.umd.js","../../designer/checkbox/index.umd.js","../../designer/checkbox-group/index.umd.js","../combo-list/index.umd.js","../combo-tree/index.umd.js","../component/index.umd.js","../color-picker/index.umd.js","../content-container/index.umd.js","../date-picker/index.umd.js","../../designer/data-grid/index.umd.js","../dropdown/index.umd.js","../events-editor/index.umd.js","../filter-bar/index.umd.js","../field-selector/index.umd.js","../binding-selector/index.umd.js","../image-cropper/index.umd.js","../../designer/input-group/index.umd.js","../layout/index.umd.js","../list-nav/index.umd.js","../list-view/index.umd.js","../lookup/index.umd.js","../mapping-editor/index.umd.js","../nav/index.umd.js","../number-range/index.umd.js","../number-spinner/index.umd.js","../order/index.umd.js","../page-header/index.umd.js","../page-footer/index.umd.js","../pagination/index.umd.js","../progress/index.umd.js","../query-solution/index.umd.js","../../designer/radio-group/index.umd.js","../rate/index.umd.js","../response-toolbar/index.umd.js","../response-layout/index.umd.js","../response-layout-editor/index.umd.js","../search-box/index.umd.js","../section/index.umd.js","../smoke-detector/index.umd.js","../splitter/index.umd.js","../step/index.umd.js","../switch/index.umd.js","../tabs/index.umd.js","../tags/index.umd.js","../text/index.umd.js","../time-picker/index.umd.js","../transfer/index.umd.js","../tree-view/index.umd.js","../uploader/index.umd.js","../verify-detail/index.umd.js","../video/index.umd.js","../textarea/index.umd.js","../schema-selector/index.umd.js","../tree-grid/index.umd.js","../event-parameter/index.umd.js","../filter-condition-editor/index.umd.js","../fieldset/index.umd.js","../sort-condition-editor/index.umd.js","../menu-lookup/index.umd.js","../drawer/index.umd.js","../json-editor/index.umd.js","../property-editor/index.umd.js","../expression-editor/index.umd.js","../code-editor/index.umd.js","../html-template/index.umd.js","../external-container/index.umd.js","@vueuse/core","../data-view/index.umd.js","../modal/index.umd.js","../condition/index.umd.js","../checkbox/index.umd.js","../tooltip/index.umd.js","../button/index.umd.js","../notify/index.umd.js","../input-group/index.umd.js","../radio-group/index.umd.js","../data-grid/index.umd.js","../checkbox-group/index.umd.js","../condition/index.umd.js/src/condition-fields.design.component","../popover/index.umd.js","../button-edit/index.umd.js"],i):(Y=typeof globalThis<"u"?globalThis:Y||self,i(Y["query-solution"]={},Y.Vue,Y.dynamicResolver,Y.LodashES,Y.FDynamicForm,Y.common,Y.designerCanvas,Y.propertyPanel,Y.FAccordion,Y.FAvatar,Y.FButtonEdit$1,Y.FButtonGroup,Y.FCalendar,Y.FCapsule,Y.FCheckbox,Y.FCheckboxGroup,Y.FComboList,Y.FComboTree,Y.FComponent,Y.FColorPicker,Y.FContentContainer,Y.FDatePicker,Y.FDataGrid,Y.FDropdown,Y.FEventsEditor,Y.FFilterBar,Y.FFieldSelector,Y.FBindingSelector,Y.FImageCropper,Y.FInputGroup,Y.FLayout,Y.FListNav,Y.FListView,Y.FLookup,Y.FMappingEditor,Y.FNav,Y.FNumberRange,Y.FNumberSpinner,Y.FOrder,Y.FPageHeader,Y.FPageFooter,Y.FPagination,Y.FProgress,Y.FQuerySolution$1,Y.FRadioGroup,Y.FRate,Y.FResponseToolbar,Y.FResponseLayout,Y.FResponseLayoutEditorSetting,Y.FSearchBox,Y.FSection,Y.FSmokeDetector,Y.FSplitter,Y.FStep,Y.FSwitch,Y.FTabs,Y.FTags,Y.FText,Y.FTimePicker,Y.FTransfer,Y.FTreeview,Y.FUploader,Y.FVerifyDetail,Y.FVideo,Y.FTextArea,Y.FSchemaSelector,Y.FTreeGrid$1,Y.FEventParameter,Y.FFilterConditionEditor,Y.FFieldset,Y.FSortConditionEditor,Y.FMenuLookup,Y.FDrawer,Y.FJsonEditor,Y.FPropertyEditor,Y.FExpressionEditor,Y.FCodeEditor,Y.FHtmlTemplate,null,Y.VueUseCore,Y.dataView,Y.modal,Y.FConditionList$1,Y.checkbox,Y.FTooltip,Y.FButton,Y.notify,Y.inputGroup,Y.FRadioGroup$1,Y.dataGrid,Y.checkboxGroup,Y.FConditionFieldsDesign,Y.FPopover,Y.buttonEdit))})(this,function(Y,i,yt,Ce,Pn,Pe,Rn,yr,gi,yi,vi,bi,wi,Ci,vr,br,Dn,xi,Si,Ti,_i,wr,ki,Fi,Ei,Ni,un,Oi,Vi,Mi,Ii,Pi,Ri,Cr,Di,Bi,ji,Li,qi,Ai,$i,Hi,Wi,Ui,zi,Gi,Yi,Qi,Xi,Ki,Ji,Zi,ea,ta,na,ra,xr,oa,ia,dn,aa,sa,la,ca,ua,da,fa,pa,ma,ha,ga,ya,va,ba,wa,Ca,xa,Sa,hp,Sr,Me,Ta,fn,_a,Bn,ka,Tr,Fa,_r,Ea,Na,Oa,Va,Ma){"use strict";var pp=Object.defineProperty;var mp=(Y,i,yt)=>i in Y?pp(Y,i,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Y[i]=yt;var D=(Y,i,yt)=>mp(Y,typeof i!="symbol"?i+"":i,yt);const kr={},Fr={};function jn(e){const{properties:n,title:t,ignore:r}=e,o=r&&Array.isArray(r),a=Object.keys(n).reduce((s,c)=>((!o||!r.find(d=>d===c))&&(s[c]=n[c].type==="object"&&n[c].properties?jn(n[c]):Ce.cloneDeep(n[c].default)),s),{});if(t&&(!o||!r.find(s=>s==="id"))){const s=t.toLowerCase().replace(/-/g,"_");a.id=`${s}_${Math.random().toString().slice(2,6)}`}return a}function Ia(e){const{properties:n,title:t,required:r}=e;if(r&&Array.isArray(r)){const o=r.reduce((a,s)=>(a[s]=n[s].type==="object"&&n[s].properties?jn(n[s]):Ce.cloneDeep(n[s].default),a),{});if(t&&r.find(a=>a==="id")){const a=t.toLowerCase().replace(/-/g,"_");o.id=`${a}_${Math.random().toString().slice(2,6)}`}return o}return{type:t}}function Er(e,n={},t){const r=kr[e];if(r){let o=Ia(r);const a=Fr[e];return o=a?a({getSchemaByType:Er},o,n,t):o,o}return null}function Pa(e,n){const t=jn(n);return Object.keys(t).reduce((r,o)=>(Object.prototype.hasOwnProperty.call(e,o)&&(r[o]&&Ce.isPlainObject(r[o])&&Ce.isPlainObject(e[o]||!e[o])?Object.assign(r[o],e[o]||{}):r[o]=e[o]),r),t),t}function Nr(e,n){return Object.keys(e).filter(r=>e[r]!=null).reduce((r,o)=>{if(n.has(o)){const a=n.get(o);if(typeof a=="string")r[a]=e[o];else{const s=a(o,e[o],e);Object.assign(r,s)}}else r[o]=e[o];return r},{})}function Ra(e,n,t=new Map){const r=Pa(e,n);return Nr(r,t)}function Da(e={}){function n(u,f,l,h){if(typeof l=="number")return h[u].length===l;if(typeof l=="object"){const m=Object.keys(l)[0],p=l[m];if(m==="not")return Number(h[u].length)!==Number(p);if(m==="moreThan")return Number(h[u].length)>=Number(p);if(m==="lessThan")return Number(h[u].length)<=Number(p)}return!1}function t(u,f,l,h){return h[u]&&h[u].propertyValue&&String(h[u].propertyValue.value)===String(l)}const r=new Map([["length",n],["getProperty",t]]);Object.keys(e).reduce((u,f)=>(u.set(f,e[f]),u),r);function o(u,f){const l=u;return typeof f=="number"?[{target:l,operator:"length",param:null,value:Number(f)}]:typeof f=="boolean"?[{target:l,operator:"getProperty",param:u,value:!!f}]:typeof f=="object"?Object.keys(f).map(h=>{if(h==="length")return{target:l,operator:"length",param:null,value:f[h]};const m=h,p=f[h];return{target:l,operator:"getProperty",param:m,value:p}}):[]}function a(u){return Object.keys(u).reduce((l,h)=>{const m=o(h,u[h]);return l.push(...m),l},[])}function s(u,f){if(r.has(u.operator)){const l=r.get(u.operator);return l&&l(u.target,u.param,u.value,f)||!1}return!1}function c(u,f){return a(u).reduce((m,p)=>m&&s(p,f),!0)}function d(u,f){const l=Object.keys(u),h=l.includes("allOf"),m=l.includes("anyOf"),p=h||m,y=(p?u[p?h?"allOf":"anyOf":"allOf"]:[u]).map(b=>c(b,f));return h?!y.includes(!1):y.includes(!0)}return{parseValueSchema:d}}const pe={button:{type:"button",name:"按钮"},"response-toolbar":{type:"response-toolbar",name:"工具栏"},"response-toolbar-item":{type:"response-toolbar-item",name:"按钮"},"content-container":{type:"content-container",name:"容器"},"input-group":{type:"input-group",name:"文本"},textarea:{type:"textarea",name:"多行文本"},lookup:{type:"lookup",name:"帮助"},"number-spinner":{type:"number-spinner",name:"数值"},"date-picker":{type:"date-picker",name:"日期"},switch:{type:"switch",name:"开关"},"radio-group":{type:"radio-group",name:"单选组"},"check-box":{type:"check-box",name:"复选框"},"check-group":{type:"check-group",name:"复选框组"},"combo-list":{type:"combo-list",name:"下拉列表"},"response-form":{type:"response-form",name:"卡片面板"},"response-layout":{type:"response-layout",name:"布局容器",icon:"response-layout-3"},"response-layout-item":{type:"response-layout-item",name:"布局",icon:"response-layout-1"},"tree-grid":{type:"tree-grid",name:"树表格"},"tree-grid-column":{type:"tree-grid-column",name:"树表格列"},"data-grid":{type:"data-grid",name:"表格"},"data-grid-column":{type:"data-grid-column",name:"表格列"},module:{type:"Module",name:"模块"},component:{type:"component",name:"组件"},tabs:{type:"tabs",name:"标签页"},"tab-page":{type:"tab-page",name:"标签页项",dependentParentControl:"Tab"},"tab-toolbar-item":{type:"tab-toolbar-item",name:"标签页工具栏按钮"},"html-template":{type:"html-template",name:"模板容器"},"time-picker":{type:"time-picker",name:"时间选择"},section:{type:"section",name:"分组面板"},"section-toolbar":{type:"section-toolbar",name:"分组面板工具栏"},"section-toolbar-item":{type:"section-toolbar-item",name:"分组面板按钮"},splitter:{type:"splitter",name:"分栏面板"},"splitter-pane":{type:"splitter-pane",name:"分栏面板项",dependentParentControl:"Splitter"},"component-ref":{type:"component-ref",name:"组件引用节点"},uploader:{type:"uploader",name:"附件上传"},"page-header":{type:"page-header",name:"页头"},"page-footer":{type:"page-footer",name:"页脚"},"tab-toolbar":{type:"tab-toolbar",name:"标签页工具栏"},fieldset:{type:"fieldset",name:"分组"},"query-solution":{type:"query-solution",name:"筛选方案"},drawer:{type:"drawer",name:"抽屉"},"external-container":{type:"external-container",name:"外部容器",icon:"content-container"},"list-nav":{type:"list-nav",name:"列表导航"},"filter-bar":{type:"filter-bar",name:"筛选条"}},Ba={},ja={};Da();function Rt(e,n,t=new Map,r=(s,c,d,u)=>c,o={},a=s=>s){return kr[n.title]=n,Fr[n.title]=r,Ba[n.title]=o,ja[n.title]=a,(s={},c=!0)=>{if(!c)return Nr(s,t);const d=Ra(s,n,t),u=Object.keys(e).reduce((f,l)=>(f[l]=e[l].default,f),{});return Object.assign(u,d)}}function en(e,n){return{customClass:n.class,customStyle:n.style}}function La(){function e(n,t){const{dataSource:r}=n||{};return r===void 0?{}:{}}return{resolve:e}}function qa(){function e(n,t){return n.selectItemById(t)}return{selectItemById:e}}function Aa(){function e(n,t){const{columns:r}=t;return n.updateColumns(r)}return{updateColumns:e}}var pt=(e=>(e.Equal="0",e.NotEqual="1",e.Greater="2",e.GreaterOrEqual="3",e.Less="4",e.LessOrEqual="5",e.Like="6",e.LikeStartWith="7",e.LikeEndWith="8",e.In="9",e.NotIn="10",e))(pt||{});const $a=[{value:"0",name:"等于"},{value:"1",name:"不等于"},{value:"2",name:"大于"},{value:"3",name:"大于等于"},{value:"4",name:"小于"},{value:"5",name:"小于等于"},{value:"6",name:"包含"},{value:"7",name:"开始是"},{value:"8",name:"结束是"}],Ha={"button-edit":["0","1"," 6","7","8"],"check-box":["0"],"combo-list":["0","1"],"combo-lookup":["0","1"," 6","7","8"],"date-picker":["0","1","2","3","4","5"],"date-range":[],"datetime-picker":["0","1","2","3","4","5"],"datetime-range":[],"month-picker":["0","1","2","3","4","5"],"month-range":[],"year-picker":["0","1","2","3","4","5"],"year-range":[],"input-group":["0","1","6","7","8"],lookup:["0","1"],"number-range":[],"number-spinner":["0"," 1","2","3","4","5"],"radio-group":["0"],text:["0","1"," 6","7","8"]};function Wa(e,n,t){const{fieldMap:r}=t;function o(a){const s=r.get(a.fieldCode);if(!s)return[];const c=s.editor.type,d=new Set(Ha[c]);return $a.filter(f=>d.has(f.value))}return{getCompareOperators:o}}const Or={conditions:{type:Array,default:[]},fields:{type:Array,default:[]},key:{type:String,default:""},isControlInline:{type:Boolean,default:!0}};class Vr{constructor(n={value:[]}){D(this,"editorType","check-box");D(this,"value");D(this,"valueType","boolean");const r=(Array.isArray(n.value)?n.value:typeof n.value=="string"?n.value.split(","):[]).map(o=>JSON.parse(o));this.value=r}clear(){this.value=[]}setValue(n){this.value=n}getValue(){return this.value}getDisplayText(){return this.value.map(n=>n?"是":"否").join(",")}isEmpty(){return this.value.length===0}}class Mr{constructor(n={textValue:"",value:"",valueField:""}){D(this,"editorType","combo-lookup");D(this,"textValue");D(this,"value");D(this,"valueField");D(this,"valueType","text");this.textValue=n.textValue,this.value=n.value,this.valueField=n.valueField}clear(){this.value="",this.valueField="",this.textValue=""}getPropValue(n,t){if(t.length>1){const r=t.shift();return n[r]?this.getPropValue(n[r],t):null}return n[t[0]]}getTextValue(n){const t=n.split("."),r=this.value.split(",").map(o=>this.getPropValue(o,Ce.cloneDeep(t)));return r&&r.length?r.join(","):""}getValue(){const n=this.valueField.split("."),t=this.value.split(",").map(r=>this.getPropValue(r,Ce.cloneDeep(n)));return t&&t.length?t.join(","):""}getDisplayText(){return this.getValue()}setValue(n){throw new Error("Method not implemented.")}isEmpty(){return!this.valueField}}function Ke(e){const n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new e.constructor(+e):typeof e=="number"||n==="[object Number]"||typeof e=="string"||n==="[object String]"?new Date(e):new Date(NaN)}function Ue(e,n){return e instanceof Date?new e.constructor(n):new Date(n)}function Ir(e,n){const t=Ke(e);return isNaN(n)?Ue(e,NaN):(n&&t.setDate(t.getDate()+n),t)}const Pr=6048e5,Ua=864e5,za=6e4,Ga=36e5,Ya=1e3;let Qa={};function Gt(){return Qa}function Et(e,n){var c,d,u,f;const t=Gt(),r=(n==null?void 0:n.weekStartsOn)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??t.weekStartsOn??((f=(u=t.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=Ke(e),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function Yt(e){return Et(e,{weekStartsOn:1})}function Rr(e){const n=Ke(e),t=n.getFullYear(),r=Ue(e,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const o=Yt(r),a=Ue(e,0);a.setFullYear(t,0,4),a.setHours(0,0,0,0);const s=Yt(a);return n.getTime()>=o.getTime()?t+1:n.getTime()>=s.getTime()?t:t-1}function Dr(e){const n=Ke(e);return n.setHours(0,0,0,0),n}function pn(e){const n=Ke(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}function Xa(e,n){const t=Dr(e),r=Dr(n),o=+t-pn(t),a=+r-pn(r);return Math.round((o-a)/Ua)}function Ka(e){const n=Rr(e),t=Ue(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),Yt(t)}function Ja(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Za(e){if(!Ja(e)&&typeof e!="number")return!1;const n=Ke(e);return!isNaN(Number(n))}function es(e){const n=Ke(e),t=Ue(e,0);return t.setFullYear(n.getFullYear(),0,1),t.setHours(0,0,0,0),t}const ts={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ns=(e,n,t)=>{let r;const o=ts[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Ln(e){return(n={})=>{const t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const rs={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},os={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},is={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},as={date:Ln({formats:rs,defaultWidth:"full"}),time:Ln({formats:os,defaultWidth:"full"}),dateTime:Ln({formats:is,defaultWidth:"full"})},ss={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ls=(e,n,t,r)=>ss[e];function tn(e){return(n,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=t!=null&&t.width?String(t.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[c]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(n):n;return o[a]}}const cs={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},us={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ds={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fs={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ps={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ms={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},hs={ordinalNumber:(e,n)=>{const t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:tn({values:cs,defaultWidth:"wide"}),quarter:tn({values:us,defaultWidth:"wide",argumentCallback:e=>e-1}),month:tn({values:ds,defaultWidth:"wide"}),day:tn({values:fs,defaultWidth:"wide"}),dayPeriod:tn({values:ps,defaultWidth:"wide",formattingValues:ms,defaultFormattingWidth:"wide"})};function nn(e){return(n,t={})=>{const r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=n.match(o);if(!a)return null;const s=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?ys(c,l=>l.test(s)):gs(c,l=>l.test(s));let u;u=e.valueCallback?e.valueCallback(d):d,u=t.valueCallback?t.valueCallback(u):u;const f=n.slice(s.length);return{value:u,rest:f}}}function gs(e,n){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function ys(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return t}function vs(e){return(n,t={})=>{const r=n.match(e.matchPattern);if(!r)return null;const o=r[0],a=n.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const c=n.slice(o.length);return{value:s,rest:c}}}const bs=/^(\d+)(th|st|nd|rd)?/i,ws=/\d+/i,Cs={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},xs={any:[/^b/i,/^(a|c)/i]},Ss={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ts={any:[/1/i,/2/i,/3/i,/4/i]},_s={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ks={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fs={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Es={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Os={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Vs={ordinalNumber:vs({matchPattern:bs,parsePattern:ws,valueCallback:e=>parseInt(e,10)}),era:nn({matchPatterns:Cs,defaultMatchWidth:"wide",parsePatterns:xs,defaultParseWidth:"any"}),quarter:nn({matchPatterns:Ss,defaultMatchWidth:"wide",parsePatterns:Ts,defaultParseWidth:"any",valueCallback:e=>e+1}),month:nn({matchPatterns:_s,defaultMatchWidth:"wide",parsePatterns:ks,defaultParseWidth:"any"}),day:nn({matchPatterns:Fs,defaultMatchWidth:"wide",parsePatterns:Es,defaultParseWidth:"any"}),dayPeriod:nn({matchPatterns:Ns,defaultMatchWidth:"any",parsePatterns:Os,defaultParseWidth:"any"})},Br={code:"en-US",formatDistance:ns,formatLong:as,formatRelative:ls,localize:hs,match:Vs,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ms(e){const n=Ke(e);return Xa(n,es(n))+1}function jr(e){const n=Ke(e),t=+Yt(n)-+Ka(n);return Math.round(t/Pr)+1}function qn(e,n){var f,l,h,m;const t=Ke(e),r=t.getFullYear(),o=Gt(),a=(n==null?void 0:n.firstWeekContainsDate)??((l=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:l.firstWeekContainsDate)??o.firstWeekContainsDate??((m=(h=o.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,s=Ue(e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const c=Et(s,n),d=Ue(e,0);d.setFullYear(r,0,a),d.setHours(0,0,0,0);const u=Et(d,n);return t.getTime()>=c.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}function Is(e,n){var c,d,u,f;const t=Gt(),r=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??t.firstWeekContainsDate??((f=(u=t.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,o=qn(e,n),a=Ue(e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Et(a,n)}function Lr(e,n){const t=Ke(e),r=+Et(t,n)-+Is(t,n);return Math.round(r/Pr)+1}function Re(e,n){const t=e<0?"-":"",r=Math.abs(e).toString().padStart(n,"0");return t+r}const Nt={y(e,n){const t=e.getFullYear(),r=t>0?t:1-t;return Re(n==="yy"?r%100:r,n.length)},M(e,n){const t=e.getMonth();return n==="M"?String(t+1):Re(t+1,2)},d(e,n){return Re(e.getDate(),n.length)},a(e,n){const t=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,n){return Re(e.getHours()%12||12,n.length)},H(e,n){return Re(e.getHours(),n.length)},m(e,n){return Re(e.getMinutes(),n.length)},s(e,n){return Re(e.getSeconds(),n.length)},S(e,n){const t=n.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return Re(o,n.length)}},Qt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qr={G:function(e,n,t){const r=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if(n==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return Nt.y(e,n)},Y:function(e,n,t,r){const o=qn(e,r),a=o>0?o:1-o;if(n==="YY"){const s=a%100;return Re(s,2)}return n==="Yo"?t.ordinalNumber(a,{unit:"year"}):Re(a,n.length)},R:function(e,n){const t=Rr(e);return Re(t,n.length)},u:function(e,n){const t=e.getFullYear();return Re(t,n.length)},Q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Re(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Re(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){const r=e.getMonth();switch(n){case"M":case"MM":return Nt.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){const r=e.getMonth();switch(n){case"L":return String(r+1);case"LL":return Re(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){const o=Lr(e,r);return n==="wo"?t.ordinalNumber(o,{unit:"week"}):Re(o,n.length)},I:function(e,n,t){const r=jr(e);return n==="Io"?t.ordinalNumber(r,{unit:"week"}):Re(r,n.length)},d:function(e,n,t){return n==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Nt.d(e,n)},D:function(e,n,t){const r=Ms(e);return n==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Re(r,n.length)},E:function(e,n,t){const r=e.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Re(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Re(a,n.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){const r=e.getDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return Re(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){const o=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,t){const r=e.getHours();let o;switch(r===12?o=Qt.noon:r===0?o=Qt.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,t){const r=e.getHours();let o;switch(r>=17?o=Qt.evening:r>=12?o=Qt.afternoon:r>=4?o=Qt.morning:o=Qt.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,t){if(n==="ho"){let r=e.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Nt.h(e,n)},H:function(e,n,t){return n==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Nt.H(e,n)},K:function(e,n,t){const r=e.getHours()%12;return n==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Re(r,n.length)},k:function(e,n,t){let r=e.getHours();return r===0&&(r=24),n==="ko"?t.ordinalNumber(r,{unit:"hour"}):Re(r,n.length)},m:function(e,n,t){return n==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Nt.m(e,n)},s:function(e,n,t){return n==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Nt.s(e,n)},S:function(e,n){return Nt.S(e,n)},X:function(e,n,t){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return $r(r);case"XXXX":case"XX":return Dt(r);case"XXXXX":case"XXX":default:return Dt(r,":")}},x:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"x":return $r(r);case"xxxx":case"xx":return Dt(r);case"xxxxx":case"xxx":default:return Dt(r,":")}},O:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ar(r,":");case"OOOO":default:return"GMT"+Dt(r,":")}},z:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ar(r,":");case"zzzz":default:return"GMT"+Dt(r,":")}},t:function(e,n,t){const r=Math.trunc(e.getTime()/1e3);return Re(r,n.length)},T:function(e,n,t){const r=e.getTime();return Re(r,n.length)}};function Ar(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+n+Re(a,2)}function $r(e,n){return e%60===0?(e>0?"-":"+")+Re(Math.abs(e)/60,2):Dt(e,n)}function Dt(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Re(Math.trunc(r/60),2),a=Re(r%60,2);return t+o+n+a}const Hr=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Wr=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},An={p:Wr,P:(e,n)=>{const t=e.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return Hr(e,n);let a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Hr(r,n)).replace("{{time}}",Wr(o,n))}},Ps=/^D+$/,Rs=/^Y+$/,Ds=["D","DD","YY","YYYY"];function Ur(e){return Ps.test(e)}function zr(e){return Rs.test(e)}function $n(e,n,t){const r=Bs(e,n,t);if(console.warn(r),Ds.includes(e))throw new RangeError(r)}function Bs(e,n,t){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const js=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ls=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qs=/^'([^]*?)'?$/,As=/''/g,$s=/[a-zA-Z]/;function Hn(e,n,t){var f,l,h,m;const r=Gt(),o=r.locale??Br,a=r.firstWeekContainsDate??((l=(f=r.locale)==null?void 0:f.options)==null?void 0:l.firstWeekContainsDate)??1,s=r.weekStartsOn??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,c=Ke(e);if(!Za(c))throw new RangeError("Invalid time value");let d=n.match(Ls).map(p=>{const C=p[0];if(C==="p"||C==="P"){const v=An[C];return v(p,o.formatLong)}return p}).join("").match(js).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const C=p[0];if(C==="'")return{isToken:!1,value:Hs(p)};if(qr[C])return{isToken:!0,value:p};if(C.match($s))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:p}});o.localize.preprocessor&&(d=o.localize.preprocessor(c,d));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return d.map(p=>{if(!p.isToken)return p.value;const C=p.value;(zr(C)||Ur(C))&&$n(C,n,String(e));const v=qr[C[0]];return v(c,C,o.localize,u)}).join("")}function Hs(e){const n=e.match(qs);return n?n[1].replace(As,"'"):e}function Ws(){return Object.assign({},Gt())}function Us(e){let t=Ke(e).getDay();return t===0&&(t=7),t}function zs(e,n){const t=n instanceof Date?Ue(n,0):new n(0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}const Gs=10;class Gr{constructor(){D(this,"subPriority",0)}validate(n,t){return!0}}class Ys extends Gr{constructor(n,t,r,o,a){super(),this.value=n,this.validateValue=t,this.setValue=r,this.priority=o,a&&(this.subPriority=a)}validate(n,t){return this.validateValue(n,this.value,t)}set(n,t,r){return this.setValue(n,t,this.value,r)}}class Qs extends Gr{constructor(){super(...arguments);D(this,"priority",Gs);D(this,"subPriority",-1)}set(t,r){return r.timestampIsSet?t:Ue(t,zs(t,Date))}}class Ie{run(n,t,r,o){const a=this.parse(n,t,r,o);return a?{setter:new Ys(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(n,t,r){return!0}}class Xs extends Ie{constructor(){super(...arguments);D(this,"priority",140);D(this,"incompatibleTokens",["R","u","t","T"])}parse(t,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,r,o){return r.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const Ge={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},St={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ye(e,n){return e&&{value:n(e.value),rest:e.rest}}function He(e,n){const t=n.match(e);return t?{value:parseInt(t[0],10),rest:n.slice(t[0].length)}:null}function Tt(e,n){const t=n.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:n.slice(1)};const r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(o*Ga+a*za+s*Ya),rest:n.slice(t[0].length)}}function Yr(e){return He(Ge.anyDigitsSigned,e)}function ze(e,n){switch(e){case 1:return He(Ge.singleDigit,n);case 2:return He(Ge.twoDigits,n);case 3:return He(Ge.threeDigits,n);case 4:return He(Ge.fourDigits,n);default:return He(new RegExp("^\\d{1,"+e+"}"),n)}}function mn(e,n){switch(e){case 1:return He(Ge.singleDigitSigned,n);case 2:return He(Ge.twoDigitsSigned,n);case 3:return He(Ge.threeDigitsSigned,n);case 4:return He(Ge.fourDigitsSigned,n);default:return He(new RegExp("^-?\\d{1,"+e+"}"),n)}}function Wn(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Qr(e,n){const t=n>0,r=t?n:1-n;let o;if(r<=50)o=e||100;else{const a=r+50,s=Math.trunc(a/100)*100,c=e>=a%100;o=e+s-(c?100:0)}return t?o:1-o}function Xr(e){return e%400===0||e%4===0&&e%100!==0}class Ks extends Ie{constructor(){super(...arguments);D(this,"priority",130);D(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,r,o){const a=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ye(ze(4,t),a);case"yo":return Ye(o.ordinalNumber(t,{unit:"year"}),a);default:return Ye(ze(r.length,t),a)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o){const a=t.getFullYear();if(o.isTwoDigitYear){const c=Qr(o.year,a);return t.setFullYear(c,0,1),t.setHours(0,0,0,0),t}const s=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class Js extends Ie{constructor(){super(...arguments);D(this,"priority",130);D(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,r,o){const a=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ye(ze(4,t),a);case"Yo":return Ye(o.ordinalNumber(t,{unit:"year"}),a);default:return Ye(ze(r.length,t),a)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o,a){const s=qn(t,a);if(o.isTwoDigitYear){const d=Qr(o.year,s);return t.setFullYear(d,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),Et(t,a)}const c=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(c,0,a.firstWeekContainsDate),t.setHours(0,0,0,0),Et(t,a)}}class Zs extends Ie{constructor(){super(...arguments);D(this,"priority",130);D(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,r){return mn(r==="R"?4:r.length,t)}set(t,r,o){const a=Ue(t,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),Yt(a)}}class el extends Ie{constructor(){super(...arguments);D(this,"priority",130);D(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,r){return mn(r==="u"?4:r.length,t)}set(t,r,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class tl extends Ie{constructor(){super(...arguments);D(this,"priority",120);D(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"Q":case"QQ":return ze(r.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class nl extends Ie{constructor(){super(...arguments);D(this,"priority",120);D(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"q":case"qq":return ze(r.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class rl extends Ie{constructor(){super(...arguments);D(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);D(this,"priority",110)}parse(t,r,o){const a=s=>s-1;switch(r){case"M":return Ye(He(Ge.month,t),a);case"MM":return Ye(ze(2,t),a);case"Mo":return Ye(o.ordinalNumber(t,{unit:"month"}),a);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class ol extends Ie{constructor(){super(...arguments);D(this,"priority",110);D(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,r,o){const a=s=>s-1;switch(r){case"L":return Ye(He(Ge.month,t),a);case"LL":return Ye(ze(2,t),a);case"Lo":return Ye(o.ordinalNumber(t,{unit:"month"}),a);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function il(e,n,t){const r=Ke(e),o=Lr(r,t)-n;return r.setDate(r.getDate()-o*7),r}class al extends Ie{constructor(){super(...arguments);D(this,"priority",100);D(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,r,o){switch(r){case"w":return He(Ge.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return ze(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o,a){return Et(il(t,o,a),a)}}function sl(e,n){const t=Ke(e),r=jr(t)-n;return t.setDate(t.getDate()-r*7),t}class ll extends Ie{constructor(){super(...arguments);D(this,"priority",100);D(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,r,o){switch(r){case"I":return He(Ge.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return ze(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o){return Yt(sl(t,o))}}const cl=[31,28,31,30,31,30,31,31,30,31,30,31],ul=[31,29,31,30,31,30,31,31,30,31,30,31];class dl extends Ie{constructor(){super(...arguments);D(this,"priority",90);D(this,"subPriority",1);D(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"d":return He(Ge.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return ze(r.length,t)}}validate(t,r){const o=t.getFullYear(),a=Xr(o),s=t.getMonth();return a?r>=1&&r<=ul[s]:r>=1&&r<=cl[s]}set(t,r,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class fl extends Ie{constructor(){super(...arguments);D(this,"priority",90);D(this,"subpriority",1);D(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,r,o){switch(r){case"D":case"DD":return He(Ge.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return ze(r.length,t)}}validate(t,r){const o=t.getFullYear();return Xr(o)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function Un(e,n,t){var l,h,m,p;const r=Gt(),o=(t==null?void 0:t.weekStartsOn)??((h=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??0,a=Ke(e),s=a.getDay(),d=(n%7+7)%7,u=7-o,f=n<0||n>6?n-(s+u)%7:(d+u)%7-(s+u)%7;return Ir(a,f)}class pl extends Ie{constructor(){super(...arguments);D(this,"priority",90);D(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=Un(t,o,a),t.setHours(0,0,0,0),t}}class ml extends Ie{constructor(){super(...arguments);D(this,"priority",90);D(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,r,o,a){const s=c=>{const d=Math.floor((c-1)/7)*7;return(c+a.weekStartsOn+6)%7+d};switch(r){case"e":case"ee":return Ye(ze(r.length,t),s);case"eo":return Ye(o.ordinalNumber(t,{unit:"day"}),s);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,a){return t=Un(t,o,a),t.setHours(0,0,0,0),t}}class hl extends Ie{constructor(){super(...arguments);D(this,"priority",90);D(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,r,o,a){const s=c=>{const d=Math.floor((c-1)/7)*7;return(c+a.weekStartsOn+6)%7+d};switch(r){case"c":case"cc":return Ye(ze(r.length,t),s);case"co":return Ye(o.ordinalNumber(t,{unit:"day"}),s);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"}