diff --git a/build/index.html b/build/index.html index 8c78e0b..e2a52c0 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/build/main.8f38c17ce5bbc03fa35d.js b/build/main.8f38c17ce5bbc03fa35d.js new file mode 100644 index 0000000..f7c1b9e --- /dev/null +++ b/build/main.8f38c17ce5bbc03fa35d.js @@ -0,0 +1,84 @@ +(()=>{var e={43375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AutoScrollActivator:()=>u,DndContext:()=>eV,DragOverlay:()=>e9,KeyboardCode:()=>i,KeyboardSensor:()=>es,MeasuringFrequency:()=>c,MeasuringStrategy:()=>d,MouseSensor:()=>eg,PointerSensor:()=>em,TouchSensor:()=>eb,TraversalOrder:()=>s,applyModifiers:()=>eB,closestCenter:()=>N,closestCorners:()=>L,defaultAnnouncements:()=>k,defaultCoordinates:()=>O,defaultDropAnimation:()=>e4,defaultDropAnimationSideEffects:()=>e2,defaultScreenReaderInstructions:()=>x,getClientRect:()=>U,getFirstCollision:()=>T,getScrollableAncestors:()=>$,pointerWithin:()=>z,rectIntersection:()=>R,useDndContext:()=>eY,useDndMonitor:()=>w,useDraggable:()=>eq,useDroppable:()=>eK,useSensor:()=>A,useSensors:()=>D});var r,a,o,i,l,u,s,d,c,f,p=n(96540),m=n(40961),h=n(74979);let g={display:"none"};function v(e){let{id:t,value:n}=e;return p.createElement("div",{id:t,style:g},n)}function b(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return p.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}let y=(0,p.createContext)(null);function w(e){let t=(0,p.useContext)(y);(0,p.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of ");let n=t(e);return n},[e,t])}let x={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},k={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function P(e){let{announcements:t=k,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=x}=e,{announce:o,announcement:i}=function(){let[e,t]=(0,p.useState)(""),n=(0,p.useCallback)(e=>{null!=e&&t(e)},[]);return{announce:n,announcement:e}}(),l=(0,h.YG)("DndLiveRegion"),[u,s]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{s(!0)},[]),w((0,p.useMemo)(()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&o(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;o(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;o(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;o(t.onDragCancel({active:n,over:r}))}}),[o,t])),!u)return null;let d=p.createElement(p.Fragment,null,p.createElement(v,{id:r,value:a.draggable}),p.createElement(b,{id:l,announcement:i}));return n?(0,m.createPortal)(d,n):d}function E(){}function A(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function D(){for(var e=arguments.length,t=Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(r||(r={}));let O=Object.freeze({x:0,y:0});function C(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function M(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function S(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function j(e){let{left:t,top:n,height:r,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+r},{x:t+a,y:n+r}]}function T(e,t){if(!e||0===e.length)return null;let[n]=e;return t?n[t]:n}function _(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}let N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,a=_(t,t.left,t.top),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=C(_(r),a);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(M)},L=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,a=j(t),o=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=j(r),i=a.reduce((e,t,r)=>e+C(n[r],t),0),l=Number((i/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:l}})}}return o.sort(M)},R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,a=[];for(let e of r){let{id:r}=e,o=n.get(r);if(o){let n=function(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(r0&&a.push({id:r,data:{droppableContainer:e,value:n}})}}return a.sort(S)},z=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let a=[];for(let e of t){let{id:t}=e,o=n.get(t);if(o&&function(e,t){let{top:n,left:r,bottom:a,right:o}=t;return n<=e.y&&e.y<=a&&r<=e.x&&e.x<=o}(r,o)){let n=j(o),i=n.reduce((e,t)=>e+C(r,t),0),l=Number((i/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(M)};function I(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:O}let F=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1);function W(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let B={ignoreTransform:!1};function U(e,t){void 0===t&&(t=B);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=(0,h.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){let r=W(t);if(!r)return e;let{scaleX:a,scaleY:o,x:i,y:l}=r,u=e.left-i-(1-a)*parseFloat(n),s=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,c=o?e.height/o:e.height;return{width:d,height:c,top:s,right:u+d,bottom:s+c,left:u}}(n,t,r))}let{top:r,left:a,width:o,height:i,bottom:l,right:u}=n;return{top:r,left:a,width:o,height:i,bottom:l,right:u}}function V(e){return U(e,{ignoreTransform:!0})}function $(e,t){let n=[];return e?function r(a){var o;if(null!=t&&n.length>=t||!a)return n;if((0,h.wz)(a)&&null!=a.scrollingElement&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!(0,h.sb)(a)||(0,h.xZ)(a)||n.includes(a))return n;let i=(0,h.zk)(e).getComputedStyle(a);return(a!==e&&function(e,t){void 0===t&&(t=(0,h.zk)(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let r=t[e];return"string"==typeof r&&n.test(r)})}(a,i)&&n.push(a),void 0===(o=i)&&(o=(0,h.zk)(a).getComputedStyle(a)),"fixed"===o.position)?n:r(a.parentNode)}(e):n}function H(e){let[t]=$(e,1);return null!=t?t:null}function q(e){return h.Sw&&e?(0,h.l6)(e)?e:(0,h.Ll)(e)?(0,h.wz)(e)||e===(0,h.TW)(e).scrollingElement?window:(0,h.sb)(e)?e:null:null:null}function Y(e){return(0,h.l6)(e)?e.scrollX:e.scrollLeft}function G(e){return(0,h.l6)(e)?e.scrollY:e.scrollTop}function K(e){return{x:Y(e),y:G(e)}}function X(e){return!!h.Sw&&!!e&&e===document.scrollingElement}function Q(e){let t={x:0,y:0},n=X(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:l,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(a||(a={}));let J={x:.2,y:.2};function Z(e){return e.reduce((e,t)=>(0,h.WQ)(e,K(t)),O)}function ee(e,t){if(void 0===t&&(t=U),!e)return;let{top:n,left:r,bottom:a,right:o}=t(e),i=H(e);i&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let et=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Y(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+G(t),0)}]];class en{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=$(t),r=Z(n);for(let[t,a,o]of(this.rect={...e},this.width=e.width,this.height=e.height,et))for(let e of a)Object.defineProperty(this,e,{get:()=>{let a=o(n),i=r[t]-a;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class er{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ea(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}function eo(e){e.preventDefault()}function ei(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(o||(o={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(i||(i={}));let el={start:[i.Space,i.Enter],cancel:[i.Esc],end:[i.Space,i.Enter]},eu=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case i.Right:return{...n,x:n.x+25};case i.Left:return{...n,x:n.x-25};case i.Down:return{...n,y:n.y+25};case i.Up:return{...n,y:n.y-25}}};class es{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new er((0,h.TW)(t)),this.windowListeners=new er((0,h.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ee(n),t(O)}handleKeyDown(e){if((0,h.kx)(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:a=el,coordinateGetter:o=eu,scrollBehavior:l="smooth"}=r,{code:u}=e;if(a.end.includes(u)){this.handleEnd(e);return}if(a.cancel.includes(u)){this.handleCancel(e);return}let{collisionRect:s}=n.current,d=s?{x:s.left,y:s.top}:O;this.referenceCoordinates||(this.referenceCoordinates=d);let c=o(e,{active:t,context:n.current,currentCoordinates:d});if(c){let t=(0,h.Re)(c,d),r={x:0,y:0},{scrollableAncestors:a}=n.current;for(let n of a){let a=e.code,{isTop:o,isRight:u,isLeft:s,isBottom:d,maxScroll:f,minScroll:p}=Q(n),m=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}(n),h={x:Math.min(a===i.Right?m.right-m.width/2:m.right,Math.max(a===i.Right?m.left:m.left+m.width/2,c.x)),y:Math.min(a===i.Down?m.bottom-m.height/2:m.bottom,Math.max(a===i.Down?m.top:m.top+m.height/2,c.y))},g=a===i.Right&&!u||a===i.Left&&!s,v=a===i.Down&&!d||a===i.Up&&!o;if(g&&h.x!==c.x){let e=n.scrollLeft+t.x,o=a===i.Right&&e<=f.x||a===i.Left&&e>=p.x;if(o&&!t.y){n.scrollTo({left:e,behavior:l});return}o?r.x=n.scrollLeft-e:r.x=a===i.Right?n.scrollLeft-f.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(v&&h.y!==c.y){let e=n.scrollTop+t.y,o=a===i.Down&&e<=f.y||a===i.Up&&e>=p.y;if(o&&!t.x){n.scrollTo({top:e,behavior:l});return}o?r.y=n.scrollTop-e:r.y=a===i.Down?n.scrollTop-f.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,h.WQ)((0,h.Re)(c,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ed(e){return!!(e&&"distance"in e)}function ec(e){return!!(e&&"delay"in e)}es.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=el,onActivation:a}=t,{active:o}=n,{code:i}=e.nativeEvent;if(r.start.includes(i)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class ef{constructor(e,t,n){var r;void 0===n&&(n=function(e){let{EventTarget:t}=(0,h.zk)(e);return e instanceof t?e:(0,h.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:a}=e,{target:o}=a;this.props=e,this.events=t,this.document=(0,h.TW)(o),this.documentListeners=new er(this.document),this.listeners=new er(n),this.windowListeners=new er((0,h.zk)(o)),this.initialCoordinates=null!=(r=(0,h.e_)(a))?r:O,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,eo),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,eo),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(ed(t))return;if(ec(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,ei,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:n,initialCoordinates:r,props:a}=this,{onMove:o,options:{activationConstraint:i}}=a;if(!r)return;let l=null!=(t=(0,h.e_)(e))?t:O,u=(0,h.Re)(r,l);if(!n&&i){if(ec(i))return ea(u,i.tolerance)?this.handleCancel():void 0;if(ed(i))return null!=i.tolerance&&ea(u,i.tolerance)?this.handleCancel():ea(u,i.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){let{onEnd:e}=this.props;this.detach(),e()}handleCancel(){let{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===i.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let ep={move:{name:"pointermove"},end:{name:"pointerup"}};class em extends ef{constructor(e){let{event:t}=e,n=(0,h.TW)(t.target);super(e,ep,n)}}em.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!!n.isPrimary&&0===n.button&&(null==r||r({event:n}),!0)}}];let eh={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(l||(l={}));class eg extends ef{constructor(e){super(e,eh,(0,h.TW)(e.event.target))}}eg.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==l.RightClick&&(null==r||r({event:n}),!0)}}];let ev={move:{name:"touchmove"},end:{name:"touchend"}};class eb extends ef{constructor(e){super(e,ev)}static setup(){return window.addEventListener(ev.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ev.move.name,e)};function e(){}}}eb.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:a}=n;return!(a.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(u||(u={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(s||(s={}));let ey={x:{[a.Backward]:!1,[a.Forward]:!1},y:{[a.Backward]:!1,[a.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(d||(d={})),(c||(c={})).Optimized="optimized";let ew=new Map;function ex(e,t){return(0,h.KG)(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function ek(e){let{callback:t,disabled:n}=e,r=(0,h._q)(t),a=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,p.useEffect)(()=>()=>null==a?void 0:a.disconnect(),[a]),a}function eP(e){return new en(U(e),e)}function eE(e,t,n){void 0===t&&(t=eP);let[r,a]=(0,p.useReducer)(function(r){if(!e)return null;if(!1===e.isConnected){var a;return null!=(a=null!=r?r:n)?a:null}let o=t(e);return JSON.stringify(r)===JSON.stringify(o)?r:o},null),o=function(e){let{callback:t,disabled:n}=e,r=(0,h._q)(t),a=(0,p.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,p.useEffect)(()=>()=>null==a?void 0:a.disconnect(),[a]),a}({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),i=ek({callback:a});return(0,h.Es)(()=>{a(),e?(null==i||i.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==i||i.disconnect(),null==o||o.disconnect())},[e]),r}let eA=[];function eD(e,t){void 0===t&&(t=[]);let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n.current=null},t),(0,p.useEffect)(()=>{let t=e!==O;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,h.Re)(e,n.current):O}function eO(e){return(0,p.useMemo)(()=>e?function(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}let eC=[];function eM(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,h.sb)(t)?t:e}let eS=[{sensor:em,options:{}},{sensor:es,options:{}}],ej={current:{}},eT={draggable:{measure:V},droppable:{measure:V,strategy:d.WhileDragging,frequency:c.Optimized},dragOverlay:{measure:U}};class e_ extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}let eN={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new e_,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:E},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eT,measureDroppableContainers:E,windowRect:null,measuringScheduled:!1},eL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:E,draggableNodes:new Map,over:null,measureDroppableContainers:E},eR=(0,p.createContext)(eL),ez=(0,p.createContext)(eN);function eI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new e_}}}function eF(e,t){switch(t.type){case r.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case r.DragMove:if(!e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case r.DragEnd:case r.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case r.RegisterDroppable:{let{element:n}=t,{id:r}=n,a=new e_(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case r.SetDroppableDisabled:{let{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new e_(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case r.UnregisterDroppable:{let{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new e_(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function eW(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:a}=(0,p.useContext)(eR),o=(0,h.ZC)(r),i=(0,h.ZC)(null==n?void 0:n.id);return(0,p.useEffect)(()=>{if(!t&&!r&&o&&null!=i){if(!(0,h.kx)(o)||document.activeElement===o.target)return;let e=a.get(i);if(!e)return;let{activatorNode:t,node:n}=e;(t.current||n.current)&&requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=(0,h.ag)(e);if(t){t.focus();break}}})}},[r,t,a,i,o]),null}function eB(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}let eU=(0,p.createContext)({...O,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(f||(f={}));let eV=(0,p.memo)(function(e){var t,n,o,i,l;let{id:c,accessibility:g,autoScroll:v=!0,children:b,sensors:w=eS,collisionDetection:x=R,measuring:k,modifiers:E,...A}=e,D=(0,p.useReducer)(eF,void 0,eI),[C,M]=D,[S,j]=function(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,p.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]);return[n,t]}(),[_,N]=(0,p.useState)(f.Uninitialized),L=_===f.Initialized,{draggable:{active:z,nodes:W,translate:B},droppable:{containers:V}}=C,Y=z?W.get(z):null,G=(0,p.useRef)({initial:null,translated:null}),ee=(0,p.useMemo)(()=>{var e;return null!=z?{id:z,data:null!=(e=null==Y?void 0:Y.data)?e:ej,rect:G}:null},[z,Y]),et=(0,p.useRef)(null),[er,ea]=(0,p.useState)(null),[eo,ei]=(0,p.useState)(null),el=(0,h.YN)(A,Object.values(A)),eu=(0,h.YG)("DndDescribedBy",c),es=(0,p.useMemo)(()=>V.getEnabled(),[V]),ed=(0,p.useMemo)(()=>({draggable:{...eT.draggable,...null==k?void 0:k.draggable},droppable:{...eT.droppable,...null==k?void 0:k.droppable},dragOverlay:{...eT.dragOverlay,...null==k?void 0:k.dragOverlay}}),[null==k?void 0:k.draggable,null==k?void 0:k.droppable,null==k?void 0:k.dragOverlay]),{droppableRects:ec,measureDroppableContainers:ef,measuringScheduled:ep}=function(e,t){let{dragging:n,dependencies:r,config:a}=t,[o,i]=(0,p.useState)(null),{frequency:l,measure:u,strategy:s}=a,c=(0,p.useRef)(e),f=function(){switch(s){case d.Always:return!1;case d.BeforeDragging:return n;default:return!n}}(),m=(0,h.YN)(f),g=(0,p.useCallback)(function(e){void 0===e&&(e=[]),m.current||i(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[m]),v=(0,p.useRef)(null),b=(0,h.KG)(t=>{if(f&&!n)return ew;if(!t||t===ew||c.current!==e||null!=o){let t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new en(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,o,n,f,u]);return(0,p.useEffect)(()=>{c.current=e},[e]),(0,p.useEffect)(()=>{f||g()},[n,f]),(0,p.useEffect)(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),(0,p.useEffect)(()=>{f||"number"!=typeof l||null!==v.current||(v.current=setTimeout(()=>{g(),v.current=null},l))},[l,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:null!=o}}(es,{dragging:L,dependencies:[B.x,B.y],config:ed.droppable}),em=function(e,t){let n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,h.KG)(e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(W,z),eh=(0,p.useMemo)(()=>eo?(0,h.e_)(eo):null,[eo]),eg=function(){let e=(null==er?void 0:er.autoScrollEnabled)===!1,t="object"==typeof v?!1===v.enabled:!1===v,n=L&&!e&&!t;return"object"==typeof v?{...v,enabled:n}:{enabled:n}}(),ev=ex(em,ed.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e,o=(0,p.useRef)(!1),{x:i,y:l}="boolean"==typeof a?{x:a,y:a}:a;(0,h.Es)(()=>{let e=!i&&!l;if(e||!t){o.current=!1;return}if(o.current||!r)return;let a=null==t?void 0:t.node.current;if(!a||!1===a.isConnected)return;let u=n(a),s=I(u,r);if(i||(s.x=0),l||(s.y=0),o.current=!0,Math.abs(s.x)>0||Math.abs(s.y)>0){let e=H(a);e&&e.scrollBy({top:s.y,left:s.x})}},[t,i,l,r,n])}({activeNode:z?W.get(z):null,config:eg.layoutShiftCompensation,initialRect:ev,measure:ed.draggable.measure});let eb=eE(em,ed.draggable.measure,ev),eP=eE(em?em.parentElement:null),e_=(0,p.useRef)({activatorEvent:null,active:null,activeNode:em,collisionRect:null,collisions:null,droppableRects:ec,draggableNodes:W,draggingNode:null,draggingNodeRect:null,droppableContainers:V,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eN=V.getNodeFor(null==(t=e_.current.over)?void 0:t.id),eL=function(e){let{measure:t}=e,[n,r]=(0,p.useState)(null),a=(0,p.useCallback)(e=>{for(let{target:n}of e)if((0,h.sb)(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),o=ek({callback:a}),i=(0,p.useCallback)(e=>{let n=eM(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)},[t,o]),[l,u]=(0,h.lk)(i);return(0,p.useMemo)(()=>({nodeRef:l,rect:n,setRef:u}),[n,l,u])}({measure:ed.dragOverlay.measure}),eV=null!=(n=eL.nodeRef.current)?n:em,e$=L?null!=(o=eL.rect)?o:eb:null,eH=!!(eL.nodeRef.current&&eL.rect),eq=function(e){let t=ex(e);return I(e,t)}(eH?null:eb),eY=eO(eV?(0,h.zk)(eV):null),eG=function(e){let t=(0,p.useRef)(e),n=(0,h.KG)(n=>e?n&&n!==eA&&e&&t.current&&e.parentNode===t.current.parentNode?n:$(e):eA,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),n}(L?null!=eN?eN:em:null),eK=function(e,t){void 0===t&&(t=U);let[n]=e,r=eO(n?(0,h.zk)(n):null),[a,o]=(0,p.useReducer)(function(){return e.length?e.map(e=>X(e)?r:new en(t(e),e)):eC},eC),i=ek({callback:o});return e.length>0&&a===eC&&o(),(0,h.Es)(()=>{e.length?e.forEach(e=>null==i?void 0:i.observe(e)):(null==i||i.disconnect(),o())},[e]),a}(eG),eX=eB(E,{transform:{x:B.x-eq.x,y:B.y-eq.y,scaleX:1,scaleY:1},activatorEvent:eo,active:ee,activeNodeRect:eb,containerNodeRect:eP,draggingNodeRect:e$,over:e_.current.over,overlayNodeRect:eL.rect,scrollableAncestors:eG,scrollableAncestorRects:eK,windowRect:eY}),eQ=eh?(0,h.WQ)(eh,B):null,eJ=function(e){let[t,n]=(0,p.useState)(null),r=(0,p.useRef)(e),a=(0,p.useCallback)(e=>{let t=q(e.target);t&&n(e=>e?(e.set(t,K(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=r.current;if(e!==t){o(t);let i=e.map(e=>{let t=q(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,K(t)]):null}).filter(e=>null!=e);n(i.length?new Map(i):null),r.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=q(e);null==t||t.removeEventListener("scroll",a)})}},[a,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,h.WQ)(e,t),O):Z(e):O,[e,t])}(eG),eZ=eD(eJ),e0=eD(eJ,[eb]),e1=(0,h.WQ)(eX,eZ),e2=e$?F(e$,eX):null,e4=ee&&e2?x({active:ee,collisionRect:e2,droppableRects:ec,droppableContainers:es,pointerCoordinates:eQ}):null,e3=T(e4,"id"),[e9,e5]=(0,p.useState)(null),e6=eH?eX:(0,h.WQ)(eX,e0),e8=(l=null!=(i=null==e9?void 0:e9.rect)?i:null,{...e6,scaleX:l&&eb?l.width/eb.width:1,scaleY:l&&eb?l.height/eb.height:1}),e7=(0,p.useCallback)((e,t)=>{let{sensor:n,options:a}=t;if(null==et.current)return;let o=W.get(et.current);if(!o)return;let i=e.nativeEvent,l=new n({active:et.current,activeNode:o,event:i,options:a,context:e_,onStart(e){let t=et.current;if(null==t)return;let n=W.get(t);if(!n)return;let{onDragStart:a}=el.current,o={active:{id:t,data:n.data,rect:G}};(0,m.unstable_batchedUpdates)(()=>{null==a||a(o),N(f.Initializing),M({type:r.DragStart,initialCoordinates:e,active:t}),S({type:"onDragStart",event:o})})},onMove(e){M({type:r.DragMove,coordinates:e})},onEnd:u(r.DragEnd),onCancel:u(r.DragCancel)});function u(e){return async function(){let{active:t,collisions:n,over:a,scrollAdjustedTranslate:o}=e_.current,l=null;if(t&&o){let{cancelDrop:u}=el.current;if(l={activatorEvent:i,active:t,collisions:n,delta:o,over:a},e===r.DragEnd&&"function"==typeof u){let t=await Promise.resolve(u(l));t&&(e=r.DragCancel)}}et.current=null,(0,m.unstable_batchedUpdates)(()=>{M({type:e}),N(f.Uninitialized),e5(null),ea(null),ei(null);let t=e===r.DragEnd?"onDragEnd":"onDragCancel";if(l){let e=el.current[t];null==e||e(l),S({type:t,event:l})}})}}(0,m.unstable_batchedUpdates)(()=>{ea(l),ei(e.nativeEvent)})},[W]),te=(0,p.useCallback)((e,t)=>(n,r)=>{let a=n.nativeEvent,o=W.get(r);if(null!==et.current||!o||a.dndKit||a.defaultPrevented)return;let i=e(n,t.options,{active:o});!0===i&&(a.dndKit={capturedBy:t.sensor},et.current=r,e7(n,t))},[W,e7]),tt=(0,p.useMemo)(()=>w.reduce((e,t)=>{let{sensor:n}=t,r=n.activators.map(e=>({eventName:e.eventName,handler:te(e.handler,t)}));return[...e,...r]},[]),[w,te]);(0,p.useEffect)(()=>{if(!h.Sw)return;let e=w.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},w.map(e=>{let{sensor:t}=e;return t})),(0,h.Es)(()=>{eb&&_===f.Initializing&&N(f.Initialized)},[eb,_]),(0,p.useEffect)(()=>{let{onDragMove:e}=el.current,{active:t,activatorEvent:n,collisions:r,over:a}=e_.current;if(!t||!n)return;let o={active:t,activatorEvent:n,collisions:r,delta:{x:e1.x,y:e1.y},over:a};(0,m.unstable_batchedUpdates)(()=>{null==e||e(o),S({type:"onDragMove",event:o})})},[e1.x,e1.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:a}=e_.current;if(!e||null==et.current||!t||!a)return;let{onDragOver:o}=el.current,i=r.get(e3),l=i&&i.rect.current?{id:i.id,rect:i.rect.current,data:i.data,disabled:i.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:a.x,y:a.y},over:l};(0,m.unstable_batchedUpdates)(()=>{e5(l),null==o||o(u),S({type:"onDragOver",event:u})})},[e3]),(0,h.Es)(()=>{e_.current={activatorEvent:eo,active:ee,activeNode:em,collisionRect:e2,collisions:e4,droppableRects:ec,draggableNodes:W,draggingNode:eV,draggingNodeRect:e$,droppableContainers:V,over:e9,scrollableAncestors:eG,scrollAdjustedTranslate:e1},G.current={initial:e$,translated:e2}},[ee,em,e4,e2,W,eV,e$,ec,V,e9,eG,e1]),function(e){let{acceleration:t,activator:n=u.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:l=5,order:d=s.TreeOrder,pointerCoordinates:c,scrollableAncestors:f,scrollableAncestorRects:m,delta:g,threshold:v}=e,b=function(e){let{delta:t,disabled:n}=e,r=(0,h.ZC)(t);return(0,h.KG)(e=>{if(n||!r||!e)return ey;let o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[a.Backward]:e.x[a.Backward]||-1===o.x,[a.Forward]:e.x[a.Forward]||1===o.x},y:{[a.Backward]:e.y[a.Backward]||-1===o.y,[a.Forward]:e.y[a.Forward]||1===o.y}}},[n,t,r])}({delta:g,disabled:!i}),[y,w]=(0,h.$$)(),x=(0,p.useRef)({x:0,y:0}),k=(0,p.useRef)({x:0,y:0}),P=(0,p.useMemo)(()=>{switch(n){case u.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case u.DraggableRect:return o}},[n,o,c]),E=(0,p.useRef)(null),A=(0,p.useCallback)(()=>{let e=E.current;if(!e)return;let t=x.current.x*k.current.x,n=x.current.y*k.current.y;e.scrollBy(t,n)},[]),D=(0,p.useMemo)(()=>d===s.TreeOrder?[...f].reverse():f,[d,f]);(0,p.useEffect)(()=>{if(!i||!f.length||!P){w();return}for(let e of D){if((null==r?void 0:r(e))===!1)continue;let n=f.indexOf(e),o=m[n];if(!o)continue;let{direction:i,speed:u}=function(e,t,n,r,o){let{top:i,left:l,right:u,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=J);let{isTop:d,isBottom:c,isLeft:f,isRight:p}=Q(e),m={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!d&&i<=t.top+g.height?(m.y=a.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!c&&s>=t.bottom-g.height&&(m.y=a.Forward,h.y=r*Math.abs((t.bottom-g.height-s)/g.height)),!p&&u>=t.right-g.width?(m.x=a.Forward,h.x=r*Math.abs((t.right-g.width-u)/g.width)):!f&&l<=t.left+g.width&&(m.x=a.Backward,h.x=r*Math.abs((t.left+g.width-l)/g.width)),{direction:m,speed:h}}(e,o,P,t,v);for(let e of["x","y"])b[e][i[e]]||(u[e]=0,i[e]=0);if(u.x>0||u.y>0){w(),E.current=e,y(A,l),x.current=u,k.current=i;return}}x.current={x:0,y:0},k.current={x:0,y:0},w()},[t,A,r,w,i,l,JSON.stringify(P),JSON.stringify(b),y,f,D,m,JSON.stringify(v)])}({...eg,delta:B,draggingRect:e2,pointerCoordinates:eQ,scrollableAncestors:eG,scrollableAncestorRects:eK});let tn=(0,p.useMemo)(()=>({active:ee,activeNode:em,activeNodeRect:eb,activatorEvent:eo,collisions:e4,containerNodeRect:eP,dragOverlay:eL,draggableNodes:W,droppableContainers:V,droppableRects:ec,over:e9,measureDroppableContainers:ef,scrollableAncestors:eG,scrollableAncestorRects:eK,measuringConfiguration:ed,measuringScheduled:ep,windowRect:eY}),[ee,em,eb,eo,e4,eP,eL,W,V,ec,e9,ef,eG,eK,ed,ep,eY]),tr=(0,p.useMemo)(()=>({activatorEvent:eo,activators:tt,active:ee,activeNodeRect:eb,ariaDescribedById:{draggable:eu},dispatch:M,draggableNodes:W,over:e9,measureDroppableContainers:ef}),[eo,tt,ee,eb,M,eu,W,e9,ef]);return p.createElement(y.Provider,{value:j},p.createElement(eR.Provider,{value:tr},p.createElement(ez.Provider,{value:tn},p.createElement(eU.Provider,{value:e8},b)),p.createElement(eW,{disabled:(null==g?void 0:g.restoreFocus)===!1})),p.createElement(P,{...g,hiddenTextDescribedById:eu}))}),e$=(0,p.createContext)(null),eH="button";function eq(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e,o=(0,h.YG)("Droppable"),{activators:i,activatorEvent:l,active:u,activeNodeRect:s,ariaDescribedById:d,draggableNodes:c,over:f}=(0,p.useContext)(eR),{role:m=eH,roleDescription:g="draggable",tabIndex:v=0}=null!=a?a:{},b=(null==u?void 0:u.id)===t,y=(0,p.useContext)(b?eU:e$),[w,x]=(0,h.lk)(),[k,P]=(0,h.lk)(),E=(0,p.useMemo)(()=>i.reduce((e,n)=>{let{eventName:r,handler:a}=n;return e[r]=e=>{a(e,t)},e},{}),[i,t]),A=(0,h.YN)(n);(0,h.Es)(()=>(c.set(t,{id:t,key:o,node:w,activatorNode:k,data:A}),()=>{let e=c.get(t);e&&e.key===o&&c.delete(t)}),[c,t]);let D=(0,p.useMemo)(()=>({role:m,tabIndex:v,"aria-disabled":r,"aria-pressed":!!b&&m===eH||void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[r,m,v,b,g,d.draggable]);return{active:u,activatorEvent:l,activeNodeRect:s,attributes:D,isDragging:b,listeners:r?void 0:E,node:w,over:f,setNodeRef:x,setActivatorNodeRef:P,transform:y}}function eY(){return(0,p.useContext)(ez)}let eG={timeout:25};function eK(e){let{data:t,disabled:n=!1,id:a,resizeObserverConfig:o}=e,i=(0,h.YG)("Droppable"),{active:l,dispatch:u,over:s,measureDroppableContainers:d}=(0,p.useContext)(eR),c=(0,p.useRef)({disabled:n}),f=(0,p.useRef)(!1),m=(0,p.useRef)(null),g=(0,p.useRef)(null),{disabled:v,updateMeasurementsFor:b,timeout:y}={...eG,...o},w=(0,h.YN)(null!=b?b:a),x=(0,p.useCallback)(()=>{if(!f.current){f.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{d(Array.isArray(w.current)?w.current:[w.current]),g.current=null},y)},[y]),k=ek({callback:x,disabled:v||!l}),P=(0,p.useCallback)((e,t)=>{k&&(t&&(k.unobserve(t),f.current=!1),e&&k.observe(e))},[k]),[E,A]=(0,h.lk)(P),D=(0,h.YN)(t);return(0,p.useEffect)(()=>{k&&E.current&&(k.disconnect(),f.current=!1,k.observe(E.current))},[E,k]),(0,h.Es)(()=>(u({type:r.RegisterDroppable,element:{id:a,key:i,disabled:n,node:E,rect:m,data:D}}),()=>u({type:r.UnregisterDroppable,key:i,id:a})),[a]),(0,p.useEffect)(()=>{n!==c.current.disabled&&(u({type:r.SetDroppableDisabled,id:a,key:i,disabled:n}),c.current.disabled=n)},[a,i,n,u]),{active:l,rect:m,isOver:(null==s?void 0:s.id)===a,node:E,over:s,setNodeRef:A}}function eX(e){let{animation:t,children:n}=e,[r,a]=(0,p.useState)(null),[o,i]=(0,p.useState)(null),l=(0,h.ZC)(n);return n||r||!l||a(l),(0,h.Es)(()=>{if(!o)return;let e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;if(null==e||null==n){a(null);return}Promise.resolve(t(n,o)).then(()=>{a(null)})},[t,r,o]),p.createElement(p.Fragment,null,n,r?(0,p.cloneElement)(r,{ref:i}):null)}let eQ={x:0,y:0,scaleX:1,scaleY:1};function eJ(e){let{children:t}=e;return p.createElement(eR.Provider,{value:eL},p.createElement(eU.Provider,{value:eQ},t))}let eZ={position:"fixed",touchAction:"none"},e0=e=>{let t=(0,h.kx)(e);return t?"transform 250ms ease":void 0},e1=(0,p.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:o,className:i,rect:l,style:u,transform:s,transition:d=e0}=e;if(!l)return null;let c=a?s:{...s,scaleX:1,scaleY:1},f={...eZ,width:l.width,height:l.height,top:l.top,left:l.left,transform:h.Ks.Transform.toString(c),transformOrigin:a&&r?function(e,t){let n=(0,h.e_)(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}(r,l):void 0,transition:"function"==typeof d?d(r):d,...u};return p.createElement(n,{className:i,style:f,ref:t},o)}),e2=e=>t=>{let{active:n,dragOverlay:r}=t,a={},{styles:o,className:i}=e;if(null!=o&&o.active)for(let[e,t]of Object.entries(o.active))void 0!==t&&(a[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(let[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=i&&i.active&&n.node.classList.add(i.active),null!=i&&i.dragOverlay&&r.node.classList.add(i.dragOverlay),function(){for(let[e,t]of Object.entries(a))n.node.style.setProperty(e,t);null!=i&&i.active&&n.node.classList.remove(i.active)}},e4={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:h.Ks.Transform.toString(t)},{transform:h.Ks.Transform.toString(n)}]},sideEffects:e2({styles:{active:{opacity:"0"}}})},e3=0,e9=p.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:o,modifiers:i,wrapperElement:l="div",className:u,zIndex:s=999}=e,{activatorEvent:d,active:c,activeNodeRect:f,containerNodeRect:m,draggableNodes:g,droppableContainers:v,dragOverlay:b,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:k,windowRect:P}=eY(),E=(0,p.useContext)(eU),A=function(e){return(0,p.useMemo)(()=>{if(null!=e)return++e3},[e])}(null==c?void 0:c.id),D=eB(i,{activatorEvent:d,active:c,activeNodeRect:f,containerNodeRect:m,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:k,transform:E,windowRect:P}),O=ex(f),C=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return(0,h._q)((e,o)=>{if(null===t)return;let i=n.get(e);if(!i)return;let l=i.node.current;if(!l)return;let u=eM(o);if(!u)return;let{transform:s}=(0,h.zk)(o).getComputedStyle(o),d=W(s);if(!d)return;let c="function"==typeof t?t:function(e){let{duration:t,easing:n,sideEffects:r,keyframes:a}={...e4,...e};return e=>{let{active:o,dragOverlay:i,transform:l,...u}=e;if(!t)return;let s={x:i.rect.left-o.rect.left,y:i.rect.top-o.rect.top},d={scaleX:1!==l.scaleX?o.rect.width*l.scaleX/i.rect.width:1,scaleY:1!==l.scaleY?o.rect.height*l.scaleY/i.rect.height:1},c={x:l.x-s.x,y:l.y-s.y,...d},f=a({...u,active:o,dragOverlay:i,transform:{initial:l,final:c}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=null==r?void 0:r({active:o,dragOverlay:i,...u}),g=i.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{g.onfinish=()=>{null==h||h(),e()}})}}(t);return ee(l,a.draggable.measure),c({active:{id:e,data:i.data,node:l,rect:a.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}({config:r,draggableNodes:g,droppableContainers:v,measuringConfiguration:w}),M=O?b.setRef:void 0;return p.createElement(eJ,null,p.createElement(eX,{animation:C},c&&A?p.createElement(e1,{key:A,id:c.id,ref:M,as:l,activatorEvent:d,adjustScale:t,className:u,transition:o,rect:O,style:{zIndex:s,...a},transform:D},n):null))})},43627:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SortableContext:()=>v,arrayMove:()=>i,arraySwap:()=>l,defaultAnimateLayoutChanges:()=>y,defaultNewIndexGetter:()=>b,hasSortableData:()=>A,horizontalListSortingStrategy:()=>d,rectSortingStrategy:()=>c,rectSwappingStrategy:()=>f,sortableKeyboardCoordinates:()=>O,useSortable:()=>E,verticalListSortingStrategy:()=>m});var r=n(96540),a=n(43375),o=n(74979);function i(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t,n){let r=e.slice();return r[t]=e[n],r[n]=e[t],r}function u(e){return null!==e&&e>=0}let s={scaleX:1,scaleY:1},d=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:a,overIndex:o,index:i}=e,l=null!=(t=n[a])?t:r;if(!l)return null;let u=function(e,t,n){let r=e[t],a=e[t-1],o=e[t+1];return r&&(a||o)?na&&i<=o?{x:-l.width-u,y:0,...s}:i=o?{x:l.width+u,y:0,...s}:{x:0,y:0,...s}},c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e,o=i(t,r,n),l=t[a],u=o[a];return u&&l?{x:u.left-l.left,y:u.top-l.top,scaleX:u.width/l.width,scaleY:u.height/l.height}:null},f=e=>{let t,n,{activeIndex:r,index:a,rects:o,overIndex:i}=e;return(a===r&&(t=o[a],n=o[i]),a===i&&(t=o[a],n=o[r]),n&&t)?{x:n.left-t.left,y:n.top-t.top,scaleX:n.width/t.width,scaleY:n.height/t.height}:null},p={scaleX:1,scaleY:1},m=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e,l=null!=(t=o[n])?t:r;if(!l)return null;if(a===n){let e=o[i];return e?{x:0,y:nn&&a<=i?{x:0,y:-l.height-u,...p}:a=i?{x:0,y:l.height+u,...p}:{x:0,y:0,...p}},h="Sortable",g=r.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:i,strategy:l=c,disabled:u=!1}=e,{active:s,dragOverlay:d,droppableRects:f,over:p,measureDroppableContainers:m}=(0,a.useDndContext)(),v=(0,o.YG)(h,n),b=null!==d.rect,y=(0,r.useMemo)(()=>i.map(e=>"object"==typeof e&&"id"in e?e.id:e),[i]),w=null!=s,x=s?y.indexOf(s.id):-1,k=p?y.indexOf(p.id):-1,P=(0,r.useRef)(y),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{E&&w&&m(y)},[E,y,w,m]),(0,r.useEffect)(()=>{P.current=y},[y]);let O=(0,r.useMemo)(()=>({activeIndex:x,containerId:v,disabled:D,disableTransforms:A,items:y,overIndex:k,useDragOverlay:b,sortedRects:y.reduce((e,t,n)=>{let r=f.get(t);return r&&(e[n]=r),e},Array(y.length)),strategy:l}),[x,v,D.draggable,D.droppable,A,y,k,f,b,l]);return r.createElement(g.Provider,{value:O},t)}let b=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return i(n,r,a).indexOf(t)},y=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:l,previousContainerId:u,transition:s}=e;return!!s&&!!r&&(l===o||a!==i)&&(!!n||i!==a&&t===u)},w={duration:200,easing:"ease"},x="transform",k=o.Ks.Transition.toString({property:x,duration:0,easing:"linear"}),P={roleDescription:"sortable"};function E(e){var t,n;let{animateLayoutChanges:i=y,attributes:l,disabled:s,data:d,getNewIndex:c=b,id:f,strategy:p,resizeObserverConfig:m,transition:h=w}=e,{items:v,containerId:E,activeIndex:A,disabled:D,disableTransforms:O,sortedRects:C,overIndex:M,useDragOverlay:S,strategy:j}=(0,r.useContext)(g),T="boolean"==typeof s?{draggable:s,droppable:!1}:{draggable:null!=(t=null==s?void 0:s.draggable)?t:D.draggable,droppable:null!=(n=null==s?void 0:s.droppable)?n:D.droppable},_=v.indexOf(f),N=(0,r.useMemo)(()=>({sortable:{containerId:E,index:_,items:v},...d}),[E,d,_,v]),L=(0,r.useMemo)(()=>v.slice(v.indexOf(f)),[v,f]),{rect:R,node:z,isOver:I,setNodeRef:F}=(0,a.useDroppable)({id:f,data:N,disabled:T.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...m}}),{active:W,activatorEvent:B,activeNodeRect:U,attributes:V,setNodeRef:$,listeners:H,isDragging:q,over:Y,setActivatorNodeRef:G,transform:K}=(0,a.useDraggable)({id:f,data:N,attributes:{...P,...l},disabled:T.draggable}),X=(0,o.jn)(F,$),Q=!!W,J=Q&&!O&&u(A)&&u(M),Z=!S&&q,ee=Z&&J?K:null,et=J?null!=ee?ee:(null!=p?p:j)({rects:C,activeNodeRect:U,activeIndex:A,overIndex:M,index:_}):null,en=u(A)&&u(M)?c({id:f,items:v,activeIndex:A,overIndex:M}):_,er=null==W?void 0:W.id,ea=(0,r.useRef)({activeId:er,items:v,newIndex:en,containerId:E}),eo=v!==ea.current.items,ei=i({active:W,containerId:E,isDragging:q,isSorting:Q,id:f,index:_,items:v,newIndex:ea.current.newIndex,previousItems:ea.current.items,previousContainerId:ea.current.containerId,transition:h,wasDragging:null!=ea.current.activeId}),el=function(e){let{disabled:t,index:n,node:i,rect:l}=e,[u,s]=(0,r.useState)(null),d=(0,r.useRef)(n);return(0,o.Es)(()=>{if(!t&&n!==d.current&&i.current){let e=l.current;if(e){let t=(0,a.getClientRect)(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==d.current&&(d.current=n)},[t,n,i,l]),(0,r.useEffect)(()=>{u&&s(null)},[u]),u}({disabled:!ei,index:_,node:z,rect:R});return(0,r.useEffect)(()=>{Q&&ea.current.newIndex!==en&&(ea.current.newIndex=en),E!==ea.current.containerId&&(ea.current.containerId=E),v!==ea.current.items&&(ea.current.items=v)},[Q,en,E,v]),(0,r.useEffect)(()=>{if(er===ea.current.activeId)return;if(er&&!ea.current.activeId){ea.current.activeId=er;return}let e=setTimeout(()=>{ea.current.activeId=er},50);return()=>clearTimeout(e)},[er]),{active:W,activeIndex:A,attributes:V,data:N,rect:R,index:_,newIndex:en,items:v,isOver:I,isSorting:Q,isDragging:q,listeners:H,node:z,overIndex:M,over:Y,setNodeRef:X,setActivatorNodeRef:G,setDroppableNodeRef:F,setDraggableNodeRef:$,transform:null!=el?el:et,transition:el||eo&&ea.current.newIndex===_?k:(!Z||(0,o.kx)(B))&&h&&(Q||ei)?o.Ks.Transition.toString({...h,property:x}):void 0}}function A(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let D=[a.KeyboardCode.Down,a.KeyboardCode.Right,a.KeyboardCode.Up,a.KeyboardCode.Left],O=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:l,over:u,scrollableAncestors:s}}=t;if(D.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];l.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let o=i.get(n.id);if(o)switch(e.code){case a.KeyboardCode.Down:r.topo.top&&t.push(n);break;case a.KeyboardCode.Left:r.left>o.left&&t.push(n);break;case a.KeyboardCode.Right:r.left1&&(c=d[1].id),null!=c){let e=l.get(n.id),t=l.get(c),u=t?i.get(t.id):null,d=null==t?void 0:t.node.current;if(d&&u&&e&&t){let n=(0,a.getScrollableAncestors)(d),i=n.some((e,t)=>s[t]!==e),l=C(e,t),c=function(e,t){return!!(A(e)&&A(t)&&C(e,t))&&e.data.current.sortable.index{"use strict";n.d(t,{$$:()=>h,Es:()=>p,KG:()=>v,Ks:()=>O,Ll:()=>l,Re:()=>E,Sw:()=>o,TW:()=>f,WQ:()=>P,YG:()=>x,YN:()=>g,ZC:()=>y,_q:()=>m,ag:()=>M,e_:()=>D,jn:()=>a,kx:()=>A,l6:()=>i,lk:()=>b,sb:()=>d,wz:()=>s,xZ:()=>c,zk:()=>u});var r=n(96540);function a(){for(var e=arguments.length,t=Array(e),n=0;ne=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function i(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function u(e){var t,n;return e?i(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){let{Document:t}=u(e);return e instanceof t}function d(e){return!i(e)&&e instanceof u(e).HTMLElement}function c(e){return e instanceof u(e).SVGElement}function f(e){return e?i(e)?e.document:l(e)?s(e)?e:d(e)||c(e)?e.ownerDocument:document:document:document}let p=o?r.useLayoutEffect:r.useEffect;function m(e){let t=(0,r.useRef)(e);return p(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{e.current=setInterval(t,n)},[]),n=(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function g(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return p(()=>{n.current!==e&&(n.current=e)},t),n}function v(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function b(e){let t=m(e),n=(0,r.useRef)(null),a=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,a]}function y(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n},[e,t])}function k(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a{let r=Object.entries(n);for(let[n,a]of r){let r=t[n];null!=r&&(t[n]=r+e*a)}return t},{...t})}}let P=k(1),E=k(-1);function A(e){if(!e)return!1;let{KeyboardEvent:t}=u(e.target);return t&&e instanceof t}function D(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=u(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let O=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[O.Translate.toString(e),O.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),C="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(C)?e:e.querySelector(C)}},84300:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?h[x]+" "+k:l(k,/&\f/g,h[x])).trim())&&(c[w++]=P);return y(e,t,n,0===o?S:s,c,f,p)}function R(e,t,n,r){return y(e,t,n,j,d(e,0,r),d(e,r+1,-1),r)}var z=function(e,t,n){for(var r=0,a=0;r=a,a=k(),38===r&&12===a&&(t[n]=1),!P(a);)x();return d(b,e,g)},I=function(e,t){var n=-1,r=44;do switch(P(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=z(g-1,t,n);break;case 2:e[n]+=A(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=x());return e},F=function(e,t){var n;return n=I(E(e),t),b="",n},W=new WeakMap,B=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||W.get(n))&&!r){W.set(e,!0);for(var a=[],o=F(t,a),i=n.props,l=0,u=0;l-1&&!e.return)switch(e.type){case j:e.return=function e(t,n){switch(45^s(t,0)?(((n<<2^s(t,0))<<2^s(t,1))<<2^s(t,2))<<2^s(t,3):0){case 5103:return C+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return C+t+O+t+D+t+t;case 6828:case 4268:return C+t+D+t+t;case 6165:return C+t+D+"flex-"+t+t;case 5187:return C+t+l(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+D+"flex-$1$2")+t;case 5443:return C+t+D+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return C+t+D+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return C+t+D+l(t,"shrink","negative")+t;case 5292:return C+t+D+l(t,"basis","preferred-size")+t;case 6060:return C+"box-"+l(t,"-grow","")+C+t+D+l(t,"grow","positive")+t;case 4554:return C+l(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,C+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(c(t)-1-n>6)switch(s(t,n+1)){case 109:if(45!==s(t,n+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+O+(108==s(t,n+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(l(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==s(t,n+1))break;case 6444:switch(s(t,c(t)-3-(~u(t,"!important")&&10))){case 107:return l(t,":",":"+C)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===s(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+D+"$2box$3")+t}break;case 5936:switch(s(t,n+11)){case 114:return C+t+D+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return C+t+D+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+D+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return C+t+D+t+t}return t}(e.value,e.length);break;case T:return _([w(e,{value:l(e.value,"@","@"+C)})],r);case S:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return _([w(e,{props:[l(t,/:(read-\w+)/,":"+O+"$1")]})],r);case"::placeholder":return _([w(e,{props:[l(t,/:(plac\w+)/,":"+C+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":"+O+"$1")]}),w(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}).join("")}}],$=function(e){var t,n,a,i,h,w=e.key;if("css"===w){var D=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(D,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var O=e.stylisPlugins||V,C={},S=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||P(v)>3?"":" "}(N);break;case 92:H+=function(e,t){for(var n;--t&&x()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==k()&&32==x()),d(b,e,n)}(g-1,7);continue;case 47:switch(k()){case 42:case 47:f(y(O=function(e,t){for(;x();)if(e+v===57)break;else if(e+v===84&&47===k())break;return"/*"+d(b,t,g-1)+"*"+o(47===e?e:x())}(x(),g),n,r,M,o(v),d(O,2,-2),0),D);break;default:H+="/"}break;case 123*z:E[C++]=c(H)*F;case 125*z:case 59:case 0:switch(W){case 0:case 125:I=0;case 59+S:-1==F&&(H=l(H,/\f/g,"")),_>0&&c(H)-j&&f(_>32?R(H+";",a,r,j-1):R(l(H," ","")+";",a,r,j-2),D);break;case 59:H+=";";default:if(f($=L(H,n,r,C,S,i,E,B,U=[],V=[],j),h),123===W){if(0===S)e(H,n,$,$,U,h,j,E,V);else switch(99===T&&110===s(H,3)?100:T){case 100:case 108:case 109:case 115:e(t,$,$,a&&f(L(t,$,$,0,0,i,E,B,i,U=[],j),V),i,V,j,E,a?U:V);break;default:e(H,$,$,$,[""],V,0,E,V)}}}C=S=_=0,z=F=1,B=H="",j=w;break;case 58:j=1+c(H),_=N;default:if(z<1){if(123==W)--z;else if(125==W&&0==z++&&125==(v=g>0?s(b,--g):0,m--,10===v&&(m=1,p--),v))continue}switch(H+=o(W),W*z){case 38:F=S>0?1:(H+="\f",-1);break;case 44:E[C++]=(c(H)-1)*F,F=1;break;case 64:45===k()&&(H+=A(x())),T=k(),S=j=c(B=H+=function(e){for(;!P(k());)x();return d(b,e,g)}(g)),W++;break;case 45:45===N&&2==c(H)&&(z=0)}}return h}("",null,null,null,[""],t=E(t=e),0,[0],t),b="",n),j)},z={key:w,sheet:new r({key:w,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:C,registered:{},insert:function(e,t,n,r){h=n,T(e?e+"{"+t.styles+"}":t.styles),r&&(z.inserted[t.name]=!0)}};return z.sheet.hydrate(S),z}},32196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cache:()=>y,css:()=>v,cx:()=>f,flush:()=>d,getRegisteredStyles:()=>m,hydrate:()=>c,injectGlobal:()=>h,keyframes:()=>g,merge:()=>p,sheet:()=>b});var r=n(84300),a=n(61244),o=n(52422);function i(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function l(e,t,n){var r=[],a=(0,o.Rk)(e,r,n);return r.length<2?n:a+t(r)}var u=function e(t){for(var n="",r=0;r{"use strict";n.d(t,{C:()=>c,E:()=>g,c:()=>m,h:()=>s});var r,a=n(96540),o=n(84300),i=n(52422),l=n(61244),u=n(71287),s={}.hasOwnProperty,d=a.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),c=d.Provider,f=a.createContext({}),p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,i.SF)(t,n,r),(0,u.s)(function(){return(0,i.sk)(t,n,r)}),null},g=(r=function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[p],u=[r],d="";"string"==typeof e.className?d=(0,i.Rk)(t.registered,u,e.className):null!=e.className&&(d=e.className+" ");var c=(0,l.J)(u,void 0,a.useContext(f));d+=t.key+"-"+c.name;var m={};for(var g in e)s.call(e,g)&&"css"!==g&&g!==p&&(m[g]=e[g]);return m.ref=n,m.className=d,a.createElement(a.Fragment,null,a.createElement(h,{cache:t,serialized:c,isStringTag:"string"==typeof o}),a.createElement(o,m))},(0,a.forwardRef)(function(e,t){return r(e,(0,a.useContext)(d),t)}))},17437:(e,t,n)=>{"use strict";n.d(t,{AH:()=>l,Y:()=>i,i7:()=>u});var r=n(85684),a=n(96540);n(71287);var o=n(61244);n(84300),n(4146);var i=function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return a.createElement.apply(void 0,n);var o=n.length,i=Array(o);i[0]=r.E,i[1]=(0,r.c)(e,t);for(var l=2;l{"use strict";n.d(t,{J:()=>p});var r,a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},s=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return l(e)?e:e.replace(o,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(i,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===a[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function c(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)r={name:a.name,styles:a.styles,next:r},a=a.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=4;++r,a-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(i)+s,styles:i,next:r}}},71287:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r,a=n(96540),o=!!(r||(r=n.t(a,2))).useInsertionEffect&&(r||(r=n.t(a,2))).useInsertionEffect,i=o||function(e){return e()};o||a.useLayoutEffect},52422:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{Rk:()=>r,SF:()=>a,sk:()=>o});var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},88805:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(n(96540)),u=i(n(65605));t.default=(0,u.default)(function(e){var t=e.children;return t?"function"==typeof t?l.default.createElement(l.Fragment,null,t(e)):l.default.createElement(l.Fragment,null,t):null})},74368:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.containerBaseClass=void 0;var i=o(n(96540)),l=n(27875),u=o(n(55304)),s=o(n(44044));t.containerBaseClass="modal-container",t.default=function(e){var n=(0,u.default)(),o=n.oneModalIsOpen,d=n.classPrefix,c=n.transTime,f=n.setContainerRef,p=n.containerRef,m=n.closeAllModals,h=n.closeOnBlur,g=e.className,v=e.htmlElement,b=void 0===v?"div":v,y=e.children,w=e.onClick,x=a(e,["className","htmlElement","children","onClick"]),k=d?"".concat(d,"__").concat(t.containerBaseClass):t.containerBaseClass,P=[k,g].filter(Boolean).join(" "),E=r(r({},x),{onClick:function(e){h&&m(),"function"==typeof w&&w(e)}});return i.default.createElement(l.CSSTransition,{nodeRef:p,in:o,timeout:c,classNames:(0,s.default)(k),appear:!0},i.default.createElement(b,r({},r({className:P,ref:f},E)),y&&y))}},15903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalContext=void 0;var r=n(96540);t.ModalContext=(0,r.createContext)({}),t.default=t.ModalContext},55054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74368),a=n(65605);t.default=function(e){var t=e.classPrefix,n=e.zIndex,o=t?"".concat(t,"__"):"";return"\n .".concat(o).concat(r.containerBaseClass," {\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n position: fixed;\n pointer-events: none;\n visibility: hidden;\n z-index: -1;\n }\n\n .").concat(o).concat(r.containerBaseClass,"--appear,\n .").concat(o).concat(r.containerBaseClass,"--appearDone,\n .").concat(o).concat(r.containerBaseClass,"--enter,\n .").concat(o).concat(r.containerBaseClass,"--enterDone,\n .").concat(o).concat(r.containerBaseClass,"--exit {\n pointer-events: all;\n visibility: visible;\n z-index: ").concat(n,";\n }\n\n .").concat(o).concat(a.itemBaseClass," {\n position: absolute;\n visibility: hidden;\n }\n\n .").concat(o).concat(a.itemBaseClass,"--appear,\n .").concat(o).concat(a.itemBaseClass,"--appearDone,\n .").concat(o).concat(a.itemBaseClass,"--enter,\n .").concat(o).concat(a.itemBaseClass,"--enterDone,\n .").concat(o).concat(a.itemBaseClass,"--exit {\n visibility: visible;\n }\n ")}},44044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?{appear:"".concat(e,"--appear"),appearActive:"".concat(e,"--appearActive"),appearDone:"".concat(e,"--appearDone"),enter:"".concat(e,"--enter"),enterActive:"".concat(e,"--enterActive"),enterDone:"".concat(e,"--enterDone"),exit:"".concat(e,"--exit"),exitActive:"".concat(e,"--exitActive"),exitDone:"".concat(e,"--exitDone")}:{}}},35004:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.openedOn)?n:e},void 0);u&&(r[u.slug]=n(n({},r[u.slug]),{isOpen:!1,openedOn:void 0}));break;case"CLOSE_ALL_MODALS":r=Object.entries(r).reduce(function(e,t){var r=t[0],a=t[1];return e[r]=n(n({},a),{isOpen:!1,openedOn:void 0}),e},{})}return r}},38989:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.togglerBaseClass=void 0;var i=o(n(96540)),l=o(n(55304));t.togglerBaseClass="modal-toggler",t.default=function(e){var n=e.slug,o=e.htmlElement,u=void 0===o?"button":o,s=e.children,d=e.onClick,c=e.className,f=a(e,["slug","htmlElement","children","onClick","className"]),p=(0,l.default)(),m=p.modalState,h=p.toggleModal,g=p.classPrefix,v=g?"".concat(g,"__").concat(t.togglerBaseClass):t.togglerBaseClass,b=m[n]&&m[n].isOpen;return i.default.createElement(u,r({},r(r({className:[v,"".concat(v,"--slug-").concat(n),b&&"".concat(v,"--slug-").concat(n,"--is-open"),c].filter(Boolean).join(" "),role:"button","aria-expanded":b?"true":"false","aria-controls":n,"aria-label":"".concat(b?"Close":"Open"," modal ").concat(n)},f),{onClick:function(e){h(n),"function"==typeof d&&d(e)}})),s&&s)}},65605:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.itemBaseClass=void 0;var s=i(n(96540)),d=u(n(40961)),c=n(27875),f=u(n(55304)),p=u(n(44044)),m=i(n(92216));t.itemBaseClass="modal-item",t.default=function(e,n){return function(a){var o=(0,f.default)(),i=(0,s.useRef)(null),u=(0,s.useState)(!1),h=u[0],g=u[1],v=(0,s.useRef)(!1),b=(0,s.useState)(null),y=b[0],w=b[1],x=o.modalState,k=o.classPrefix,P=o.containerRef,E=o.transTime,A=o.setCloseOnBlur,D=o.setBodyScrollLock,O=o.openModal,C=a.className,M=a.htmlElement,S=void 0===M?"dialog":M,j=a.slug,T=a.closeOnBlur,_=void 0===T||T,N=a.lockBodyScroll,L=void 0===N||N,R=a.classPrefix,z=a.onEnter,I=a.onEntering,F=a.onEntered,W=a.onExit,B=a.onExiting,U=a.onExited,V=a.openOnInit,$=a.trapFocus,H=void 0===$||$,q=a.focusTrapOptions,Y=void 0===q?{}:q,G=l(a,["className","htmlElement","slug","closeOnBlur","lockBodyScroll","classPrefix","onEnter","onEntering","onEntered","onExit","onExiting","onExited","openOnInit","trapFocus","focusTrapOptions"]),K=R||k,X=n||(void 0===j?"":j),Q=x[X]&&x[X].isOpen;(0,s.useEffect)(function(){if(H){var e=i.current;!1===v.current&&e&&(w(m.createFocusTrap(e,r(r({},Y),{fallbackFocus:(null==Y?void 0:Y.fallbackFocus)||e,allowOutsideClick:void 0===Y.allowOutsideClick||Y.allowOutsideClick}))),v.current=!0)}},[H,h,Y]),(0,s.useEffect)(function(){g(!0)},[]),(0,s.useEffect)(function(){return y&&(Q?y.activate():y.deactivate()),function(){y&&y.deactivate()}},[Q,y]),(0,s.useEffect)(function(){Q&&A(_)},[Q,_,A]),(0,s.useEffect)(function(){var e=i.current;return e&&(Q&&L?D(!0,e):D(!1,e)),function(){e&&D(!1,e)}},[Q,L,D]);var J=(0,s.useState)(Q),Z=J[0],ee=J[1];if((0,s.useEffect)(function(){Q?ee(Q):setTimeout(function(){return ee(!1)},E)},[Q,E]),(0,s.useEffect)(function(){V&&O(X)},[X,V,O]),P.current){var et=K?"".concat(K,"__").concat(t.itemBaseClass):t.itemBaseClass,en=[et,"".concat(et,"--slug-").concat(X),C].filter(Boolean).join(" "),er=r({role:"dialog"!==S?"dialog":void 0,open:"dialog"===S?Z||Q:void 0,"aria-modal":!0,"aria-label":G["aria-labelledby"]?void 0:X},G);return d.default.createPortal(s.default.createElement(c.CSSTransition,r({},{nodeRef:i,timeout:E,in:Q,classNames:(0,p.default)(et),appear:!0,onEnter:z,onEntering:I,onEntered:F,onExit:W,onExiting:B,onExited:U}),s.default.createElement(S,r({},r({ref:i,id:(null==G?void 0:G.id)||X,className:en},er)),s.default.createElement(e,r({},r(r({},a),{isOpen:Q,modal:o}))))),P.current)}return null}}},95767:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useModal=t.ModalToggler=t.ModalProvider=t.ModalContext=t.ModalContainer=t.Modal=t.asModal=void 0;var a=n(65605);Object.defineProperty(t,"asModal",{enumerable:!0,get:function(){return r(a).default}});var o=n(88805);Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return r(o).default}});var i=n(74368);Object.defineProperty(t,"ModalContainer",{enumerable:!0,get:function(){return r(i).default}});var l=n(15903);Object.defineProperty(t,"ModalContext",{enumerable:!0,get:function(){return r(l).default}});var u=n(35004);Object.defineProperty(t,"ModalProvider",{enumerable:!0,get:function(){return r(u).default}});var s=n(38989);Object.defineProperty(t,"ModalToggler",{enumerable:!0,get:function(){return r(s).default}});var d=n(55304);Object.defineProperty(t,"useModal",{enumerable:!0,get:function(){return r(d).default}})},55304:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(96540),o=r(n(15903));t.default=function(){return(0,a.useContext)(o.default)}},70369:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearAllBodyScrollLocks:()=>v,disableBodyScroll:()=>g,enableBodyScroll:()=>b});var r=!1;if("undefined"!=typeof window){var a={get passive(){r=!0;return}};window.addEventListener("testPassive",null,a),window.removeEventListener("testPassive",null,a)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),i=[],l=!1,u=-1,s=void 0,d=void 0,c=function(e){return i.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},f=function(e){var t=e||window.event;return!!c(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},p=function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(d=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow="hidden")},m=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)},h=function(e,t){var n=e.targetTouches[0].clientY-u;return!c(e.target)&&(t&&0===t.scrollTop&&n>0?f(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&n<0?f(e):(e.stopPropagation(),!0))},g=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!i.some(function(t){return t.targetElement===e})&&(i=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(96540).createContext)({});t.default=r},9773:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?"right":c<0?"left":o,yDirection:f>0?"down":f<0?"up":i,xPercentage:p,yPercentage:m,totalPercentage:(p+m)/2,eventsFired:u?l+1:l,hasScrolled:u}};t.default=function(e){var t=e.children,n=(0,u.useRef)(null),a=(0,u.useReducer)(d,{x:0,y:0,xDifference:0,yDifference:0,xDirection:void 0,yDirection:void 0,xPercentage:0,yPercentage:0,totalPercentage:0,eventsFired:0,hasScrolled:!1}),o=a[0],i=a[1],l=(0,u.useCallback)(function(e){n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(function(t){i({e:e,timestamp:t,animationRef:n})})},[]);return(0,u.useEffect)(function(){return window.addEventListener("scroll",l),function(){window.removeEventListener("scroll",l)}},[l]),u.default.createElement(s.default.Provider,{value:r({},o)},t&&t)}},85504:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withScrollInfo=t.useScrollInfo=t.ScrollInfoProvider=t.ScrollInfoContext=t.ScrollInfo=void 0;var a=n(40408);Object.defineProperty(t,"ScrollInfo",{enumerable:!0,get:function(){return r(a).default}});var o=n(88122);Object.defineProperty(t,"ScrollInfoContext",{enumerable:!0,get:function(){return r(o).default}});var i=n(9773);Object.defineProperty(t,"ScrollInfoProvider",{enumerable:!0,get:function(){return r(i).default}});var l=n(56773);Object.defineProperty(t,"useScrollInfo",{enumerable:!0,get:function(){return r(l).default}});var u=n(49028);Object.defineProperty(t,"withScrollInfo",{enumerable:!0,get:function(){return r(u).default}})},56773:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(96540),o=r(n(88122));t.default=function(){return(0,a.useContext)(o.default)}},49028:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n(96540).createContext)({});t.default=r},60963:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{webpackBundler:function(){return n},default:function(){return r}});let n=()=>{},r=()=>{}},82776:(e,t)=>{"use strict";Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n}});let n=()=>e=>e},79175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=(e,t={})=>({name:"breadcrumbs",type:"array",localized:!0,fields:[{name:"doc",type:"relationship",relationTo:e,maxDepth:0,admin:{disabled:!0}},{type:"row",fields:[{name:"url",label:"URL",type:"text",admin:{width:"50%"}},{name:"label",type:"text",admin:{width:"50%"}}]},...t?.fields||[]],admin:{readOnly:!0,...t?.admin||{}},...t||{}})},65913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=(e,t)=>({name:"parent",relationTo:e,type:"relationship",maxDepth:1,filterOptions:({id:e})=>e?{id:{not_equals:e},"breadcrumbs.doc":{not_in:[e]}}:null,admin:{position:"sidebar",...t?.admin||{}},...t||{}})},12313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(45720)),a=(e,t)=>async({doc:n,req:{locale:a,payload:o},req:i})=>{let l=async()=>{let l=await o.find({collection:t.slug,depth:0,locale:a,req:i,where:{parent:{equals:n.id}}});try{l.docs.forEach(async n=>{let l="object"==typeof t.versions&&t.versions.drafts&&"published"!==n._status;await o.update({id:n.id,collection:t.slug,data:{...n,breadcrumbs:await (0,r.default)(i,e,t,n)},depth:0,draft:l,locale:a,req:i})})}catch(e){o.logger.error("Nested Docs plugin has had an error while re-saving a child document."),o.logger.error(e)}};await l()}},78728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=e=>async({doc:t,operation:n,req:r})=>{let{locale:a,payload:o}=r,{breadcrumbs:i=[]}=t;if("create"===n){let n=await o.findByID({id:t.id,collection:e.slug,depth:0,req:r}),l="object"==typeof e.versions&&e.versions.drafts&&"published"!==t._status;try{await o.update({id:t.id,collection:e.slug,data:{...n,breadcrumbs:i?.map((e,n)=>({...e,doc:i.length===n+1?t.id:e.doc}))||[]},depth:0,draft:l,locale:a,req:r})}catch(e){o.logger.error("Nested Docs plugin has had an error while adding breadcrumbs during document creation."),o.logger.error(e)}}}},50643:(e,t,n)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});let r=u(n(79175)),a=u(n(65913)),o=u(n(12313)),i=u(n(78728)),l=u(n(45720));function u(e){return e&&e.__esModule?e:{default:e}}let s=e=>t=>({...t,collections:(t.collections||[]).map(t=>{if(e.collections.indexOf(t.slug)>-1){let n=[...t?.fields||[]];return e.parentFieldSlug||n.push((0,a.default)(t.slug)),e.breadcrumbsFieldSlug||n.push((0,r.default)(t.slug)),{...t,hooks:{...t.hooks||{},beforeChange:[async({req:n,data:r,originalDoc:a})=>(0,l.default)(n,e,t,r,a),...t?.hooks?.beforeChange||[]],afterChange:[(0,o.default)(e,t),(0,i.default)(t),...t?.hooks?.afterChange||[]]},fields:n}}return t})})},67064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=(e,t,n)=>{let r,a;let o=n[n.length-1];if("function"==typeof e?.generateURL&&(a=e.generateURL(n,o)),"function"==typeof e?.generateLabel)r=e.generateLabel(n,o);else{let e=t?.admin?.useAsTitle||"id";r=o[e]}return{label:r,url:a,doc:o.id}}},53023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let n=async(e,t,r,a,o=[])=>{let i;let l=a[t?.parentFieldSlug||"parent"];return l&&(("string"==typeof l||"number"==typeof l)&&(i=await e.payload.findByID({req:e,id:l,collection:r.slug,depth:0,disableErrors:!0})),"object"==typeof l&&(i=l),i)?i.parent?n(e,t,r,i,[i,...o]):[i,...o]:o},r=n},45720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(67064)),a=o(n(53023));function o(e){return e&&e.__esModule?e:{default:e}}let i=async(e,t,n,o,i)=>{let l=[...await (0,a.default)(e,t,n,{...i,...o})],u={...i,...o};i?.id&&(u.id=i?.id),l.push(u);let s=l.map((e,a)=>(0,r.default)(t,n,l.slice(0,a+1)));return{...o,[t?.breadcrumbsFieldSlug||"breadcrumbs"]:s}},l=i},39685:function(e,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let n=async({doc:e,req:{payload:t},req:n})=>{try{let r=await t.find({collection:"search",depth:0,req:n,where:{"doc.value":{equals:e.id}}});r?.docs?.[0]&&await t.delete({id:r?.docs?.[0]?.id,collection:"search",req:n})}catch(e){t.logger.error({err:`Error deleting search doc: ${e}`})}return e},r=n},60497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let n=async e=>{let{collection:t,doc:n,operation:r,req:{payload:a},req:o,searchConfig:i}=e,{id:l,_status:u,title:s}=n||{},{beforeSync:d,defaultPriorities:c,deleteDrafts:f,syncDrafts:p}=i,m={doc:{relationTo:t,value:l},title:s};"function"==typeof d&&(m=await d({originalDoc:n,payload:a,req:o,searchDoc:m}));let h=0;if(c){let{[t]:e}=c;if("function"==typeof e)try{h=await e(n)}catch(e){a.logger.error(e),a.logger.error(`Error gathering default priority for search documents related to ${t}`)}else h=e}let g=p||!p&&"draft"!==u;try{if("create"===r&&g&&await a.create({collection:"search",data:{...m,priority:h},req:o}),"update"===r)try{let e=await a.find({collection:"search",depth:0,req:o,where:{"doc.value":{equals:l}}}),t=e?.docs||[],[n,...r]=t;if(r.length>0)try{let e=r.map(({id:e})=>e);await a.delete({collection:"search",req:o,where:{id:{in:e}}})}catch(e){a.logger.error("Error deleting duplicative search documents.")}if(n){let{id:e}=n;if(g)try{await a.update({id:e,collection:"search",data:{...m,priority:n.priority||h},req:o})}catch(e){a.logger.error("Error updating search document.")}if(f&&"draft"===u)try{await a.delete({id:e,collection:"search",req:o})}catch(e){a.logger.error(`Error deleting search document: ${e}`)}}else if(g)try{await a.create({collection:"search",data:{...m,priority:h},req:o})}catch(e){a.logger.error(`Error creating search document: ${e}`)}}catch(e){a.logger.error(`Error finding search document: ${e}`)}}catch(e){a.logger.error(`Error syncing search document related to ${t} with id: '${l}': ${e}`)}return n},r=n},30991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"generateSearchCollection",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(34468)),a=n(36154),o=e=>(0,r.default)({access:{create:()=>!1,read:()=>!0},admin:{defaultColumns:["title"],description:"This is a collection of automatically created search results. These results are used by the global site search and will be updated automatically as documents in the CMS are created or updated.",enableRichTextRelationship:!1,useAsTitle:"title"},fields:[{name:"title",admin:{readOnly:!0},type:"text"},{name:"priority",admin:{position:"sidebar"},type:"number"},{name:"doc",admin:{position:"sidebar",readOnly:!0},index:!0,maxDepth:0,relationTo:e?.collections||[],required:!0,type:"relationship"},{name:"docUrl",admin:{components:{Field:a.LinkToDoc},position:"sidebar"},type:"ui"}],labels:{plural:"Search Results",singular:"Search Result"},slug:"search"},e?.searchOverrides||{})},36154:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LinkToDoc",{enumerable:!0,get:function(){return i}});let r=n(60741),a=n(69962),o=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),i=()=>{let e=(0,r.useWatchForm)(),t=e.fields,{doc:{value:{relationTo:n,value:i}}}=t,l=(0,a.useConfig)(),{routes:{admin:u}={},serverURL:s}=l,d=`${s}${u}/collections/${n}/${i}`;return o.default.createElement("div",null,o.default.createElement("div",null,o.default.createElement("span",{className:"label",style:{color:"#9A9A9A"}},"Doc URL")),o.default.createElement("div",{style:{fontWeight:"600",overflow:"hidden",textOverflow:"ellipsis"}},o.default.createElement("a",{href:d},d)))}},76690:(e,t,n)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return l}});let r=n(30991),a=i(n(66073)),o=i(n(60497));function i(e){return e&&e.__esModule?e:{default:e}}let l=e=>t=>{let{collections:n}=t;if(n){let n={...e,deleteDrafts:!0,syncDrafts:!1},i=t?.collections?.map(e=>{let{hooks:t}=e,r=n.collections||[],i=r.indexOf(e.slug)>-1;return i?{...e,hooks:{...e.hooks,afterChange:[...t?.afterChange||[],async t=>{await o.default({...t,collection:e.slug,searchConfig:n})}],afterDelete:[...t?.afterDelete||[],a.default]}}:e}).filter(Boolean);return{...t,collections:[...i||[],(0,r.generateSearchCollection)(n)]}}return t}},75473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=void 0,t.defaults={title:{minLength:50,maxLength:60},description:{minLength:100,maxLength:150}}},58832:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1].9?(p("Almost there"),d({backgroundColor:"orange",color:"white"})):(p("Too short"),d({backgroundColor:"orangered",color:"white"})),g(a)}n>=0&&n<=1&&(p("Good"),d({backgroundColor:"green",color:"white"}),g(n)),n>1&&(p("Too long"),d({backgroundColor:"red",color:"white"}),g(1))}},[r,o,t]);var v=(null==t?void 0:t.length)||0,b=o-v,y=r-v;return i.default.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center"}},i.default.createElement(l.Pill,{label:f,color:s.color,backgroundColor:s.backgroundColor}),i.default.createElement("div",{style:{marginRight:"10px",whiteSpace:"nowrap",flexShrink:0,lineHeight:1}},i.default.createElement("small",null,"".concat((null==t?void 0:t.length)||0,"/").concat(r,"-").concat(o," chars, "),(0===v||y>0)&&i.default.createElement(i.Fragment,null,"".concat(y," to go")),y<=0&&b>=0&&i.default.createElement(i.Fragment,null,"".concat(b," left over")),b<0&&i.default.createElement(i.Fragment,null,"".concat(-1*b," too many")))),i.default.createElement("div",{style:{height:"2px",width:"100%",backgroundColor:"#F3F3F3",position:"relative"}},i.default.createElement("div",{style:{height:"100%",width:"".concat(100*h,"%"),backgroundColor:s.backgroundColor,position:"absolute",left:0,top:0}})))}},49267:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Overview=void 0;var i=o(n(96540)),l=n(60741),u=n(75473),s=u.defaults.title,d=s.minLength,c=s.maxLength,f=u.defaults.description,p=f.minLength,m=f.maxLength;t.Overview=function(){var e=(0,l.useForm)(),t=(e.dispatchFields,e.getFields),n=(0,l.useAllFormFields)()[0],r=n["meta.title"],a=(void 0===r?{}:r).value,o=n["meta.description"],u=(void 0===o?{}:o).value,s=n["meta.image"],f=(void 0===s?{}:s).value,h=(0,i.useState)(),g=h[0],v=h[1],b=(0,i.useState)(),y=b[0],w=b[1],x=(0,i.useState)(),k=x[0],P=x[1];(0,i.useCallback)(function(){var e=t();e["meta.title"].value="",e["meta.description"].value="",e["meta.image"].value=""},[t]),(0,i.useEffect)(function(){"string"==typeof a&&v(a.length>=d&&a.length<=c),"string"==typeof u&&w(u.length>=p&&u.length<=m),P(!!f)},[a,u,f]);var E=[g,y,k],A=E.filter(Boolean).length;return i.default.createElement("div",{style:{marginBottom:"20px"}},i.default.createElement("div",null,"".concat(A,"/").concat(E.length," checks are passing")))}},38503:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pill=void 0;var a=r(n(96540));t.Pill=function(e){var t=e.backgroundColor,n=e.color,r=e.label;return a.default.createElement("div",{style:{padding:"4px 6px",backgroundColor:t,color:n,borderRadius:"2px",marginRight:"10px",whiteSpace:"nowrap",flexShrink:0,lineHeight:1}},a.default.createElement("small",null,r))}},44654:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=({data:e})=>{let t=e?.map(e=>e?.children?.map(e=>e.text)).join(" ");return r.default.createElement("span",null,t)}},35066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaultRichTextValue",{enumerable:!0,get:function(){return n}});let n=[{children:[{text:""}]}]},73706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"populate",{enumerable:!0,get:function(){return n}});let n=async({id:e,collection:t,currentDepth:n,data:r,depth:a,key:o,overrideAccess:i,req:l,showHiddenFields:u})=>{let s=await l.payloadDataLoader.load(JSON.stringify([l.transactionID,t.config.slug,e,a,n+1,l.locale,l.fallbackLocale,void 0!==i&&i,u]));s?r[o]=s:r[o]=null}},93221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"recurseNestedFields",{enumerable:!0,get:function(){return i}});let r=n(180),a=n(73706),o=n(81834),i=({currentDepth:e=0,data:t,depth:n,fields:l,overrideAccess:u=!1,promises:s,req:d,showHiddenFields:c})=>{l.forEach(l=>{if("relationship"===l.type||"upload"===l.type){if("relationship"===l.type){if(l.hasMany&&Array.isArray(t[l.name]))Array.isArray(l.relationTo)?t[l.name].forEach(({relationTo:r,value:o},i)=>{let f=d.payload.collections[r];f&&s.push((0,a.populate)({id:o,collection:f,currentDepth:e,data:t[l.name],depth:n,field:l,key:i,overrideAccess:u,req:d,showHiddenFields:c}))}):t[l.name].forEach((r,o)=>{let i=d.payload.collections[l.relationTo];i&&s.push((0,a.populate)({id:r,collection:i,currentDepth:e,data:t[l.name],depth:n,field:l,key:o,overrideAccess:u,req:d,showHiddenFields:c}))});else if(Array.isArray(l.relationTo)&&t[l.name]?.value&&t[l.name]?.relationTo&&(!("hasMany"in l)||!l.hasMany)){let r=d.payload.collections[t[l.name].relationTo];s.push((0,a.populate)({id:t[l.name].value,collection:r,currentDepth:e,data:t[l.name],depth:n,field:l,key:"value",overrideAccess:u,req:d,showHiddenFields:c}))}}if(void 0!==t[l.name]&&"string"==typeof l.relationTo){let r=d.payload.collections[l.relationTo];s.push((0,a.populate)({id:t[l.name],collection:r,currentDepth:e,data:t,depth:n,field:l,key:l.name,overrideAccess:u,req:d,showHiddenFields:c}))}}else(0,r.fieldHasSubFields)(l)&&!(0,r.fieldIsArrayType)(l)?(0,r.fieldAffectsData)(l)&&"object"==typeof t[l.name]?i({currentDepth:e,data:t[l.name],depth:n,fields:l.fields,overrideAccess:u,promises:s,req:d,showHiddenFields:c}):i({currentDepth:e,data:t,depth:n,fields:l.fields,overrideAccess:u,promises:s,req:d,showHiddenFields:c}):"tabs"===l.type?l.tabs.forEach(r=>{i({currentDepth:e,data:t,depth:n,fields:r.fields,overrideAccess:u,promises:s,req:d,showHiddenFields:c})}):Array.isArray(t[l.name])&&("blocks"===l.type&&t[l.name].forEach((r,a)=>{let o=l.blocks.find(({slug:e})=>e===r?.blockType);o&&i({currentDepth:e,data:t[l.name][a],depth:n,fields:o.fields,overrideAccess:u,promises:s,req:d,showHiddenFields:c})}),"array"===l.type&&t[l.name].forEach((r,a)=>{i({currentDepth:e,data:t[l.name][a],depth:n,fields:l.fields,overrideAccess:u,promises:s,req:d,showHiddenFields:c})}));"richText"===l.type&&Array.isArray(t[l.name])&&t[l.name].forEach(t=>{Array.isArray(t.children)&&(0,o.recurseRichText)({children:t.children,currentDepth:e,depth:n,field:l,overrideAccess:u,promises:s,req:d,showHiddenFields:c})})})}},81834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{recurseRichText:function(){return o},richTextRelationshipPromise:function(){return i}});let r=n(73706),a=n(93221),o=({children:e,currentDepth:t=0,depth:n,field:i,overrideAccess:l=!1,promises:u,req:s,showHiddenFields:d})=>{!(n<=0)&&!(t>n)&&Array.isArray(e)&&e.forEach(e=>{if(("relationship"===e.type||"upload"===e.type)&&e?.value?.id){let o=s.payload.collections[e?.relationTo];o&&u.push((0,r.populate)({id:e.value.id,collection:o,currentDepth:t,data:e,depth:n,field:i,key:"value",overrideAccess:l,req:s,showHiddenFields:d})),"upload"===e.type&&Array.isArray(i.admin?.upload?.collections?.[e?.relationTo]?.fields)&&(0,a.recurseNestedFields)({currentDepth:t,data:e.fields||{},depth:n,fields:i.admin.upload.collections[e.relationTo].fields,overrideAccess:l,promises:u,req:s,showHiddenFields:d})}if("link"===e.type){if(e?.doc?.value&&e?.doc?.relationTo){let a=s.payload.collections[e?.doc?.relationTo];a&&u.push((0,r.populate)({id:e.doc.value,collection:a,currentDepth:t,data:e.doc,depth:n,field:i,key:"value",overrideAccess:l,req:s,showHiddenFields:d}))}Array.isArray(i.admin?.link?.fields)&&(0,a.recurseNestedFields)({currentDepth:t,data:e.fields||{},depth:n,fields:i.admin?.link?.fields,overrideAccess:l,promises:u,req:s,showHiddenFields:d})}e?.children&&o({children:e.children,currentDepth:t,depth:n,field:i,overrideAccess:l,promises:u,req:s,showHiddenFields:d})})},i=async({currentDepth:e,depth:t,field:n,overrideAccess:r,req:a,showHiddenFields:i,siblingDoc:l})=>{let u=[];o({children:l[n.name],currentDepth:e,depth:t,field:n,overrideAccess:r,promises:u,req:a,showHiddenFields:i}),await Promise.all(u)}},94903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"richTextValidate",{enumerable:!0,get:function(){return a}});let r=n(35066),a=(e,{required:t,t:n})=>{if(t){let t=JSON.stringify(r.defaultRichTextValue);return!!e&&JSON.stringify(e)!==t||n("validation:required")}return!0}},28601:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});let r=P(n(57746)),a=n(60741),o=n(69962),i=n(3605),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),u=n(43992),s=n(67752),d=n(59184),c=n(40554),f=n(35066),p=n(94903),m=P(n(7382)),h=P(n(53523)),g=P(n(59683)),v=P(n(17377));n(75676);let b=P(n(37683)),y=P(n(93443)),w=P(n(68724)),x=P(n(25370)),k=P(n(81440));function P(e){return e&&e.__esModule?e:{default:e}}function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}let A=["h1","h2","h3","h4","h5","h6","ul","ol","indent","link","relationship","upload"],D=["bold","italic","underline","strikethrough","code"],O="rich-text",C=(0,a.withCondition)(e=>{let{name:t,admin:{className:n,condition:P,description:E,hideGutter:C,placeholder:M,readOnly:S,style:j,width:T}={className:void 0,condition:void 0,description:void 0,hideGutter:void 0,placeholder:void 0,readOnly:void 0,style:void 0,width:void 0},admin:_,defaultValue:N,label:L,path:R,required:z,validate:I=p.richTextValidate}=e,F=_?.elements||A,W=_?.leaves||D,B=R||t,{i18n:U}=(0,u.useTranslation)(),[V,$]=(0,l.useState)(!1),[H,q]=(0,l.useState)({}),[Y,G]=(0,l.useState)({}),K=(0,l.useRef)(null),X=(0,l.useRef)(null),Q=(0,o.useEditDepth)(),J=(0,l.useCallback)(({attributes:t,children:n,element:r})=>{let a=H[r.type],o=a?.Element,i={...t};if(r.textAlign){if("relationship"===r.type||"upload"===r.type)switch(r.textAlign){case"left":i={...i,style:{marginRight:"auto"}};break;case"right":i={...i,style:{marginLeft:"auto"}};break;case"center":i={...i,style:{marginLeft:"auto",marginRight:"auto"}};break;default:i={...i,style:{textAlign:r.textAlign}}}else if("li"===r.type)switch(r.textAlign){case"right":i={...i,style:{listStylePosition:"inside",textAlign:"right"}};break;case"center":i={...i,style:{listStylePosition:"inside",textAlign:"center"}};break;default:i={...i,style:{listStylePosition:"outside",textAlign:"left"}}}else i={...i,style:{textAlign:r.textAlign}}}if(o){let t=l.default.createElement(o,{attributes:i,editorRef:K,element:r,fieldProps:e,path:B},n);return t}return l.default.createElement("div",i,n)},[H,B,e]),Z=(0,l.useCallback)(({attributes:t,children:n,leaf:r})=>{let a=Object.entries(Y).filter(([e])=>r[e]);return a.length>0?a.reduce((t,[n],a)=>{if(Y[n]?.Leaf){let o=Y[n]?.Leaf;return l.default.createElement(o,{editorRef:K,fieldProps:e,key:a,leaf:r,path:B},t)}return t},l.default.createElement("span",t,n)):l.default.createElement("span",t,n)},[Y,B,e]),ee=(0,l.useCallback)((e,t)=>I(e,{...t,required:z}),[I,z]),et=(0,a.useField)({condition:P,path:B,validate:ee}),{errorMessage:en,initialValue:er,setValue:ea,showError:eo,value:ei}=et,el=[O,"field-type",n,eo&&"error",S&&`${O}--read-only`,!C&&`${O}--gutter`].filter(Boolean).join(" "),eu=(0,l.useMemo)(()=>{let e=(0,x.default)((0,d.withHistory)((0,c.withReact)((0,s.createEditor)())));return e=(0,k.default)(e),e=(0,g.default)(e,F),e=(0,g.default)(e,W)},[F,W,B]),es=(0,l.useCallback)(e=>{let t=eu.operations.filter(e=>!!e&&"set_selection"!==e.type);t&&Array.isArray(t)&&t.length>0&&!S&&e!==f.defaultRichTextValue&&e!==ei&&ea(e)},[eu.operations,S,ea,ei]);if((0,l.useEffect)(()=>{if(!V){let e=(0,w.default)(F,m.default),t=(0,w.default)(W,b.default);q(e),G(t),$(!0)}},[V,F,W]),(0,l.useEffect)(()=>{function e(e){let t=X.current?.querySelectorAll('button, a, [role="button"]');(t||[]).forEach(t=>{let n="BUTTON"===t.tagName,r="disabled"===e;t.setAttribute("tabIndex",r?"-1":"0"),n&&t.setAttribute("disabled",r?"disabled":null)})}return V&&S&&e("disabled"),()=>{V&&S&&e("enabled")}},[V,S]),!V)return null;let ed=ei;if("string"==typeof ed)try{let e=JSON.parse(ed);ed=e}catch(e){ed=null}return ed||(ed=N||f.defaultRichTextValue),l.default.createElement("div",{className:el,style:{...j,width:T}},l.default.createElement("div",{className:`${O}__wrap`},l.default.createElement(a.Error,{message:en,showError:eo}),l.default.createElement(a.Label,{htmlFor:`field-${B.replace(/\./g,"__")}`,label:L,required:z}),l.default.createElement(c.Slate,{editor:eu,key:JSON.stringify({initialValue:er,path:B}),onChange:es,value:ed},l.default.createElement("div",{className:`${O}__wrapper`},F?.length+W?.length>0&&l.default.createElement("div",{className:[`${O}__toolbar`,Q>1&&`${O}__drawerIsOpen`].filter(Boolean).join(" "),ref:X},l.default.createElement("div",{className:`${O}__toolbar-wrap`},F.map((t,n)=>{let r;"object"==typeof t&&t?.name&&(r=t.name),"string"==typeof t&&(r=t);let a=H[r],o=a?.Button;return o?l.default.createElement(o,{fieldProps:e,key:n,path:B}):null}),W.map((t,n)=>{let r;"object"==typeof t&&t?.name&&(r=t.name),"string"==typeof t&&(r=t);let a=Y[r],o=a?.Button;return o?l.default.createElement(o,{fieldProps:e,key:n,path:B}):null}))),l.default.createElement("div",{className:`${O}__editor`,ref:K},l.default.createElement(c.Editable,{className:`${O}__input`,id:`field-${B.replace(/\./g,"__")}`,onKeyDown:e=>{if("Enter"===e.key){if(e.shiftKey)e.preventDefault(),eu.insertText("\n");else{let t=s.Node.descendant(eu,eu.selection.anchor.path.slice(0,-1));if(s.Element.isElement(t)&&eu.shouldBreakOutOnEnter(t)){e.preventDefault();let t=s.Node.descendant(eu,eu.selection.anchor.path);s.Text.isText(t)&&String(t.text).length===eu.selection.anchor.offset?s.Transforms.insertNodes(eu,{children:[{text:""}]}):(s.Transforms.splitNodes(eu),s.Transforms.setNodes(eu,{}))}}}if("Backspace"===e.key){let t=s.Node.descendant(eu,eu.selection.anchor.path.slice(0,-1));if(s.Element.isElement(t)&&"li"===t.type){let t=s.Node.descendant(eu,eu.selection.anchor.path);s.Text.isText(t)&&0===String(t.text).length&&(e.preventDefault(),s.Transforms.unwrapNodes(eu,{match:e=>s.Element.isElement(e)&&h.default.includes(e.type),mode:"lowest",split:!0}),s.Transforms.setNodes(eu,{type:void 0}))}else eu.isVoid(t)&&s.Transforms.removeNodes(eu)}Object.keys(v.default).forEach(t=>{if((0,r.default)(t,e)){e.preventDefault();let n=v.default[t];(0,y.default)(eu,n)}})},placeholder:(0,i.getTranslation)(M,U),readOnly:S,renderElement:J,renderLeaf:Z,spellCheck:!0})))),l.default.createElement(a.FieldDescription,{description:E,path:B,value:ei})))})},87524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{baseClass:function(){return d},default:function(){return c}});let r=n(46701),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(40554);n(48041);let i=u(n(10790)),l=u(n(680));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let d="rich-text__button",c=e=>{let{children:t,className:n,el:u="button",format:s,onClick:c,tooltip:f,type:p="type"}=e,m=(0,o.useSlate)(),[h,g]=(0,a.useState)(!1),v=(0,a.useCallback)(e=>{e.preventDefault(),g(!1),(0,l.default)(m,s,p)},[m,s,p]);return a.default.createElement(u,{..."button"===u&&{type:"button"},className:[d,n,(0,i.default)(m,s,p)&&`${d}__button--active`].filter(Boolean).join(" "),onClick:c||v,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1)},f&&a.default.createElement(r.Tooltip,{show:h},f),t)}},17275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"EnabledRelationshipsCondition",{enumerable:!0,get:function(){return l}});let r=n(69962),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}let i=(e,t)=>e.filter(({admin:{enableRichTextRelationship:e},upload:n})=>t?.uploads?e&&!0==!!n:!n&&e),l=e=>{let{children:t,uploads:n=!1,...o}=e,{collections:l}=(0,r.useConfig)(),[u]=a.useState(()=>i(l,{uploads:n}).map(({slug:e})=>e));return u.length?a.cloneElement(t,{...o,enabledCollectionSlugs:u}):null}},28972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{baseClass:function(){return s},default:function(){return d}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(40554);n(48041);let o=l(n(29758)),i=l(n(42576));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}let s="rich-text__button",d=({children:e,className:t,format:n,onClick:l})=>{let u=(0,a.useSlate)(),d=(0,r.useCallback)(e=>{e.preventDefault(),(0,i.default)(u,n)},[u,n]);return r.default.createElement("button",{className:[s,t,(0,o.default)(u,n)&&`${s}__button--active`].filter(Boolean).join(" "),onClick:l||d,type:"button"},e)}},27147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"areAllChildrenElements",{enumerable:!0,get:function(){return a}});let r=n(67752),a=e=>Array.isArray(e.children)&&e.children.every(e=>r.Element.isElement(e))},26676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(86091)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}n(75038);let l={Button:()=>r.default.createElement(o.default,{format:"blockquote"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("blockquote",{className:"rich-text-blockquote",...e},t)}},98026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCommonBlock",{enumerable:!0,get:function(){return o}});let r=n(67752),a=n(9651),o=(e,t)=>{let n=r.Editor.unhangRange(e,e.selection,{voids:!0}),[o,i]=r.Node.common(e,n.anchor.path,n.focus.path);return(0,a.isBlockElement)(e,o)||r.Editor.isEditor(o)?[o,i]:r.Editor.above(e,{at:i,match:t||(t=>(0,a.isBlockElement)(e,t)||r.Editor.isEditor(t))})}},15372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(38227)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"h1"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("h1",e,t)}},62549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(40174)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"h2"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("h2",e,t)}},83982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(3989)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"h3"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("h3",e,t)}},91815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(79872)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"h4"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("h4",e,t)}},25888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(51892)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"h5"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("h5",e,t)}},9497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(1570)),o=i(n(87524));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"h6"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("h6",e,t)}},33757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(67752),o=n(40554),i=m(n(2307)),l=m(n(9120)),u=n(87524),s=n(98026),d=m(n(10790)),c=n(9651),f=m(n(53523)),p=n(9723);function m(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}let g="indent",v={Button:()=>{let e=(0,o.useSlate)(),t=(0,r.useCallback)((t,n)=>{if(t.preventDefault(),"left"===n){if((0,d.default)(e,"li")){let[,t]=(0,s.getCommonBlock)(e,e=>a.Element.isElement(e)&&f.default.includes(e.type)),n=a.Editor.above(e,{at:t,match:t=>!a.Editor.isEditor(t)&&(0,c.isBlockElement)(e,t)});if(n){let[t,r]=n;if(t.children.length>1){a.Transforms.unwrapNodes(e,{at:r,match:(e,t)=>{let n=!a.Editor.isEditor(e)&&a.Element.isElement(e)&&f.default.includes(e.type)&&t.length===r.length+1;return n}}),a.Transforms.setNodes(e,{type:"li"},{at:r,match:(e,t)=>{let n=!a.Editor.isEditor(e)&&a.Element.isElement(e)&&"li"!==e.type&&t.length===r.length+1;return n}});let[t]=a.Editor.node(e,r);a.Element.isElement(t)&&"li"===t.type&&a.Transforms.liftNodes(e,{at:r,match:(e,t)=>{let n=!a.Editor.isEditor(e)&&a.Element.isElement(e)&&t.length===r.length+1&&"li"===e.type;return n}})}else a.Transforms.unwrapNodes(e,{at:r,match:(e,t)=>a.Element.isElement(e)&&"li"===e.type&&t.length===r.length}),a.Transforms.unwrapNodes(e,{match:e=>a.Element.isElement(e)&&f.default.includes(e.type)})}else(0,p.unwrapList)(e,t)}else a.Transforms.unwrapNodes(e,{match:e=>a.Element.isElement(e)&&e.type===g,mode:"lowest",split:!0})}if("right"===n){let t=(0,d.default)(e,"ol"),n=(0,d.default)(e,"ul");if(t||n){let[[,n]]=Array.from(a.Editor.nodes(e,{match:e=>a.Element.isElement(e)&&"li"===e.type,mode:"lowest"})),r=n[n.length-1]>0;if(r){let[,r]=a.Editor.previous(e,{at:n}),[o]=a.Editor.node(e,[...r,0]),i=a.Text.isText(o);i&&a.Transforms.wrapNodes(e,{children:[]},{at:[...r,0]}),a.Transforms.moveNodes(e,{match:e=>a.Element.isElement(e)&&"li"===e.type,mode:"lowest",to:[...r,1]}),a.Transforms.wrapNodes(e,{children:[],type:t?"ol":"ul"},{match:e=>a.Element.isElement(e)&&"li"===e.type,mode:"lowest"})}else a.Transforms.wrapNodes(e,{children:[{children:[],type:"li"}],type:t?"ol":"ul"},{match:e=>a.Element.isElement(e)&&"li"===e.type,mode:"lowest"})}else a.Transforms.wrapNodes(e,{children:[],type:g})}o.ReactEditor.focus(e)},[e]),n=(0,d.default)(e,"li")||(0,d.default)(e,g);return r.default.createElement(r.default.Fragment,null,r.default.createElement("button",{className:[u.baseClass,!n&&`${u.baseClass}--disabled`].filter(Boolean).join(" "),onClick:n?e=>t(e,"left"):void 0,type:"button"},r.default.createElement(i.default,null)),r.default.createElement("button",{className:u.baseClass,onClick:e=>t(e,"right"),type:"button"},r.default.createElement(l.default,null)))},Element:({attributes:e,children:t})=>r.default.createElement("div",{style:{paddingLeft:25},...e},t)}},7382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=b(n(26676)),a=b(n(15372)),o=b(n(62549)),i=b(n(83982)),l=b(n(91815)),u=b(n(25888)),s=b(n(9497)),d=b(n(33757)),c=b(n(22016)),f=b(n(26783)),p=b(n(56852)),m=b(n(43149)),h=b(n(43181)),g=b(n(61242)),v=b(n(15598));function b(e){return e&&e.__esModule?e:{default:e}}let y={blockquote:r.default,h1:a.default,h2:o.default,h3:i.default,h4:l.default,h5:u.default,h6:s.default,indent:d.default,li:c.default,link:f.default,ol:p.default,relationship:m.default,textAlign:h.default,ul:g.default,upload:v.default},w=y},73211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"injectVoidElement",{enumerable:!0,get:function(){return o}});let r=n(67752),a=n(47852),o=(e,t)=>{let n=(0,a.isLastSelectedElementEmpty)(e),o=r.Editor.previous(e);n?(o?.[0]&&r.Editor.isVoid(e,o[0])&&r.Transforms.insertNodes(e,{children:[{text:""}]}),r.Transforms.setNodes(e,t)):r.Transforms.insertNodes(e,t),r.Transforms.insertNodes(e,{children:[{text:""}]})}},10790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(67752),a=(e,t,n="type")=>{if(!e.selection)return!1;let[a]=Array.from(r.Editor.nodes(e,{at:r.Editor.unhangRange(e,e.selection),match:e=>!r.Editor.isEditor(e)&&r.Element.isElement(e)&&e[n]===t}));return!!a}},9651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBlockElement",{enumerable:!0,get:function(){return o}});let r=n(67752),a=(e,t)=>!r.Editor.isEditor(e)&&!!r.Element.isElement(e)&&(void 0===t||("string"==typeof t?e.type===t:t.includes(e.type))),o=(e,t)=>r.Editor.isBlock(e,t)&&a(t)},47852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLastSelectedElementEmpty",{enumerable:!0,get:function(){return o}});let r=n(67752),a=n(81152),o=e=>{if(!e.selection)return!1;let t=Array.from(r.Editor.nodes(e,{at:r.Editor.unhangRange(e,e.selection),match:e=>!r.Editor.isEditor(e)&&r.Element.isElement(e)&&(!e.type||"p"===e.type)})),n=t?.[t?.length-1];return n&&r.Element.isElement(n[0])&&(!n[0].type||"p"===n[0].type)&&(0,a.nodeIsTextNode)(n[0].children?.[0])&&n[0].children?.[0].text===""}},29758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(67752),a=n(98026),o=(e,t)=>{if(!e.selection)return!1;let[n,o]=(0,a.getCommonBlock)(e);if(r.Editor.isEditor(n))return!1;let[i]=Array.from(r.Editor.nodes(e,{at:o,match:(e,n)=>!r.Editor.isEditor(e)&&r.Element.isElement(e)&&e.type===t&&n.length>=o.length-2,mode:"lowest"}));return!!i}},68767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isWithinListItem",{enumerable:!0,get:function(){return a}});let r=n(67752),a=e=>{let t;try{t=r.Editor.parent(e,e.selection)}catch(e){}return!!r.Element.isElement(t?.[0])&&t?.[0]?.type==="li"}},22016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=o(n(96540)),a=o(n(53523));function o(e){return e&&e.__esModule?e:{default:e}}let i={Element:e=>{let{attributes:t,children:n,element:o}=e,i=o.children.length>=1&&a.default.includes(o.children?.[0]?.type);return r.default.createElement("li",{style:{listStyle:i?"none":void 0,listStylePosition:i?"outside":void 0},...t},n)}}},99120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LinkButton",{enumerable:!0,get:function(){return w}});let r=n(95767),a=n(31657),o=n(60741),i=n(69962),l=n(2079),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),s=n(43992),d=n(67752),c=n(40554),f=v(n(69356)),p=v(n(87524)),m=v(n(10790)),h=n(4065),g=n(38367);function v(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}let y=(e,t)=>{let n=e.selection&&d.Range.isCollapsed(e.selection),r=(0,o.reduceFieldsToValues)(t,!0),a={children:[],doc:r.doc,fields:r.fields,linkType:r.linkType,newTab:r.newTab,type:"link",url:r.url};n||!e.selection?d.Transforms.insertNodes(e,{...a,children:[{text:String(r.text)}]}):e.selection&&(d.Transforms.wrapNodes(e,a,{split:!0}),d.Transforms.delete(e,{at:e.selection.focus.path,unit:"word"}),d.Transforms.move(e,{distance:1,unit:"offset"}),d.Transforms.insertText(e,String(r.text),{at:e.selection.focus.path})),c.ReactEditor.focus(e)},w=({fieldProps:e})=>{let t=e?.admin?.link?.fields,{user:n}=(0,i.useAuth)(),{code:o}=(0,i.useLocale)(),[v,b]=(0,u.useState)({}),{i18n:w,t:x}=(0,s.useTranslation)(["upload","general"]),k=(0,c.useSlate)(),P=(0,i.useConfig)(),[E]=(0,u.useState)(()=>{let e=(0,g.transformExtraFields)(t,P,w),n=P.collections.map(e=>e.slug)||[],r=(0,l.sanitizeFields)({config:P,fields:e,validRelationships:n});return r}),{closeModal:A,openModal:D}=(0,r.useModal)(),O=(0,a.useDrawerSlug)("rich-text-link"),{getDocPreferences:C}=(0,i.useDocumentInfo)();return u.default.createElement(u.Fragment,null,u.default.createElement(p.default,{className:"link",format:"link",onClick:async()=>{if((0,m.default)(k,"link"))(0,g.unwrapLink)(k);else{D(O);let e=k.selection&&d.Range.isCollapsed(k.selection);if(!e){let e={text:k.selection?d.Editor.string(k,k.selection):""},t=await C(),r=await (0,i.buildStateFromSchema)({config:P,data:e,fieldSchema:E,locale:o,operation:"create",preferences:t,t:x,user:n});b(r)}}},tooltip:x("fields:addLink")},u.default.createElement(f.default,null)),u.default.createElement(h.LinkDrawer,{drawerSlug:O,fieldSchema:E,handleClose:()=>{A(O)},handleModalSubmit:e=>{y(k,e),A(O)},initialState:v}))}},99132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LinkElement",{enumerable:!0,get:function(){return y}});let r=n(95767),a=n(46701),o=n(31657),i=n(60741),l=n(69962),u=n(2079),s=n(3605),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),c=n(43992),f=n(67752),p=n(40554),m=n(4065),h=n(38367);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(24186);let v="rich-text-link",b=(e,t,n)=>{let r=(0,i.reduceFieldsToValues)(t,!0),[,a]=f.Editor.above(e),o={doc:r.doc,linkType:r.linkType,newTab:r.newTab,url:r.url};n&&(o.fields=r.fields),f.Transforms.setNodes(e,o,{at:a}),f.Transforms.delete(e,{at:e.selection.focus.path,unit:"block"}),f.Transforms.move(e,{distance:1,unit:"offset"}),f.Transforms.insertText(e,String(r.text),{at:e.selection.focus.path}),p.ReactEditor.focus(e)},y=e=>{let{attributes:t,children:n,editorRef:i,element:g,fieldProps:y}=e,w=y?.admin?.link?.fields,x=(0,p.useSlate)(),k=(0,l.useConfig)(),{user:P}=(0,l.useAuth)(),{code:E}=(0,l.useLocale)(),{i18n:A,t:D}=(0,c.useTranslation)("fields"),{closeModal:O,openModal:C,toggleModal:M}=(0,r.useModal)(),[S,j]=(0,d.useState)(!1),[T,_]=(0,d.useState)(!1),[N,L]=(0,d.useState)({}),{getDocPreferences:R}=(0,l.useDocumentInfo)(),[z]=(0,d.useState)(()=>{let e=(0,h.transformExtraFields)(w,k,A),t=k.collections.map(e=>e.slug)||[],n=(0,u.sanitizeFields)({config:k,fields:e,validRelationships:t});return n}),I=(0,o.useDrawerSlug)("rich-text-link"),F=(0,d.useCallback)(e=>{e||_(e)},[]);return(0,d.useEffect)(()=>{let e=async()=>{let e={doc:g.doc,fields:(0,s.deepCopyObject)(g.fields),linkType:g.linkType,newTab:g.newTab,text:f.Node.string(g),url:g.url},t=await R(),n=await (0,l.buildStateFromSchema)({config:k,data:e,fieldSchema:z,locale:E,operation:"update",preferences:t,t:D,user:P});L(n)};e()},[S,g,z,P,E,D,R,k]),d.default.createElement("span",{className:v,...t},d.default.createElement("span",{contentEditable:!1,style:{userSelect:"none"}},S&&d.default.createElement(m.LinkDrawer,{drawerSlug:I,fieldSchema:z,handleClose:()=>{M(I),j(!1)},handleModalSubmit:e=>{b(x,e,w),O(I)},initialState:N}),d.default.createElement(a.Popup,{boundingRef:i,buttonType:"none",forceOpen:T,horizontalAlign:"left",onToggleOpen:F,render:()=>d.default.createElement("div",{className:`${v}__popup`},"internal"===g.linkType&&g.doc?.relationTo&&g.doc?.value&&d.default.createElement(c.Trans,{i18nKey:"fields:linkedTo",values:{label:(0,s.getTranslation)(k.collections.find(({slug:e})=>e===g.doc.relationTo)?.labels?.singular,A)}},d.default.createElement("a",{className:`${v}__link-label`,href:`${k.routes.admin}/collections/${g.doc.relationTo}/${g.doc.value}`,rel:"noreferrer",target:"_blank",title:`${k.routes.admin}/collections/${g.doc.relationTo}/${g.doc.value}`},"label")),("custom"===g.linkType||!g.linkType)&&d.default.createElement("a",{className:`${v}__link-label`,href:g.url,rel:"noreferrer",target:"_blank",title:g.url},g.url),d.default.createElement(a.Button,{buttonStyle:"icon-label",className:`${v}__link-edit`,icon:"edit",onClick:e=>{e.preventDefault(),_(!1),C(I),j(!0)},round:!0,tooltip:D("general:edit")}),d.default.createElement(a.Button,{buttonStyle:"icon-label",className:`${v}__link-close`,icon:"x",onClick:e=>{e.preventDefault(),(0,h.unwrapLink)(x)},round:!0,tooltip:D("general:remove")})),size:"fit-content",verticalAlign:"bottom"})),d.default.createElement("span",{className:[`${v}__popup-toggler`].filter(Boolean).join(" "),onClick:()=>_(!0),onKeyDown:e=>{"Enter"===e.key&&_(!0)},role:"button",tabIndex:0},n))}},4425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getBaseFields",{enumerable:!0,get:function(){return o}});let r=n(3605),a=(0,r.extractTranslations)(["fields:textToDisplay","fields:linkType","fields:chooseBetweenCustomTextOrDocument","fields:customURL","fields:internalLink","fields:enterURL","fields:chooseDocumentToLink","fields:openInNewTab"]),o=e=>[{name:"text",label:a["fields:textToDisplay"],required:!0,type:"text"},{name:"linkType",admin:{description:a["fields:chooseBetweenCustomTextOrDocument"]},defaultValue:"custom",label:a["fields:linkType"],options:[{label:a["fields:customURL"],value:"custom"},{label:a["fields:internalLink"],value:"internal"}],required:!0,type:"radio"},{name:"url",admin:{condition:({linkType:e})=>"internal"!==e},label:a["fields:enterURL"],required:!0,type:"text"},{name:"doc",admin:{condition:({linkType:e})=>"internal"===e},label:a["fields:chooseDocumentToLink"],relationTo:e.collections.filter(({admin:{enableRichTextLink:e}})=>e).map(({slug:e})=>e),required:!0,type:"relationship"},{name:"newTab",label:a["fields:openInNewTab"],type:"checkbox"}]},4065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LinkDrawer",{enumerable:!0,get:function(){return d}});let r=n(31657),a=n(60741),o=n(54722),i=n(69962),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),u=n(43992);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(82361);let d=({drawerSlug:e,fieldSchema:t,handleModalSubmit:n,initialState:o})=>{let{t:i}=(0,u.useTranslation)("fields");return l.default.createElement(r.Drawer,{className:"rich-text-link-edit-modal",slug:e,title:i("editLink")},l.default.createElement(a.Form,{fields:t,initialState:o,onSubmit:n},l.default.createElement(a.RenderFields,{fieldSchema:t,fieldTypes:a.fieldTypes,forceRender:!0,readOnly:!1}),l.default.createElement(c,null)))},c=()=>{let{t:e}=(0,u.useTranslation)("fields"),t=(0,l.useRef)(null),n=(0,i.useEditDepth)();return(0,o.useHotkey)({cmdCtrlKey:!0,editDepth:n,keyCodes:["s"]},e=>{e.preventDefault(),e.stopPropagation(),t?.current&&t.current.click()}),l.default.createElement(a.FormSubmit,{ref:t},e("general:submit"))}},26783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(99120),a=n(99132),o=n(38367),i={Button:r.LinkButton,Element:a.LinkElement,plugins:[o.withLinks]},l=i},38367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{unwrapLink:function(){return o},wrapLink:function(){return i},withLinks:function(){return l},transformExtraFields:function(){return u}});let r=n(67752),a=n(4425),o=e=>{r.Transforms.unwrapNodes(e,{match:e=>r.Element.isElement(e)&&"link"===e.type})},i=e=>{let{selection:t}=e,n=t&&r.Range.isCollapsed(t),a={children:n?[{text:""}]:[],newTab:!1,type:"link",url:void 0};n?r.Transforms.insertNodes(e,a):(r.Transforms.wrapNodes(e,a,{split:!0}),r.Transforms.collapse(e,{edge:"end"}))},l=e=>{let{isInline:t}=e;return e.isInline=e=>"link"===e.type||t(e),e};function u(e,t,n){let r=(0,a.getBaseFields)(t),o="function"==typeof e?e({config:t,defaultFields:r,i18n:n}):r,i=[];for(let e=o.length-1;e>=0;e--){let t=o[e];"name"in t&&!r.find(e=>!("name"in e)||e.name===t.name)&&"fields"!==t.name&&"group"!==t.type&&(i.push(t),o.splice(o.indexOf(t),1))}return(Array.isArray(e)||o.length>0)&&o.push({name:"fields",admin:{style:{borderBottom:0,borderTop:0,margin:0,padding:0}},fields:Array.isArray(e)?e.concat(i):i,type:"group"}),o}},53523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=["ol","ul"]},56852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(78505)),o=i(n(28972));function i(e){return e&&e.__esModule?e:{default:e}}n(6342);let l={Button:()=>r.default.createElement(o.default,{format:"ol"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("ol",{className:"rich-text-ol",...e},t)}},434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(31657),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(40554),l=c(n(38086)),u=c(n(87524)),s=n(17275),d=n(73211);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(50958);let p=(e,{relationTo:t,value:n})=>{(0,d.injectVoidElement)(e,{children:[{text:" "}],relationTo:t,type:"relationship",value:n}),i.ReactEditor.focus(e)},m=({enabledCollectionSlugs:e})=>{let{t}=(0,o.useTranslation)("fields"),n=(0,i.useSlate)(),[s,d]=(0,a.useState)(()=>e[0]),[c,f,{closeDrawer:m,isDrawerOpen:h}]=(0,r.useListDrawer)({collectionSlugs:e,selectedCollection:s}),g=(0,a.useCallback)(({collectionConfig:e,docID:t})=>{p(n,{relationTo:e.slug,value:{id:t}}),m()},[n,m]);return(0,a.useEffect)(()=>{d(e[0])},[h,e]),a.default.createElement(a.Fragment,null,a.default.createElement(f,null,a.default.createElement(u.default,{className:"relationship-rich-text-button",el:"div",format:"relationship",onClick:()=>{},tooltip:t("addRelationship")},a.default.createElement(l.default,null))),a.default.createElement(c,{onSelect:g}))},h=e=>a.default.createElement(s.EnabledRelationshipsCondition,e,a.default.createElement(m,e))},64194:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=n(46701),a=n(31657),o=n(54722),i=n(69962),l=n(3605),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),s=n(43992),d=n(67752),c=n(40554),f=n(17275);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(23836);let m="rich-text-relationship",h={depth:0},g=e=>{let{attributes:t,children:n,element:f,element:{relationTo:p,value:g},fieldProps:v}=e,{collections:b,routes:{api:y},serverURL:w}=(0,i.useConfig)(),[x]=(0,u.useState)(()=>b.filter(({admin:{enableRichTextRelationship:e}})=>e).map(({slug:e})=>e)),[k,P]=(0,u.useState)(()=>b.find(e=>e.slug===p)),E=(0,c.useSelected)(),A=(0,c.useFocused)(),{i18n:D,t:O}=(0,s.useTranslation)(["fields","general"]),C=(0,c.useSlateStatic)(),[M,S]=(0,u.useReducer)(e=>e+1,0),[{data:j},{setParams:T}]=(0,o.usePayloadAPI)(`${w}${y}/${k.slug}/${g?.id}`,{initialParams:h}),[_,N,{closeDrawer:L}]=(0,a.useDocumentDrawer)({id:g?.id,collectionSlug:k.slug}),[R,z,{closeDrawer:I}]=(0,a.useListDrawer)({collectionSlugs:x,selectedCollection:k.slug}),F=(0,u.useCallback)(()=>{let e=c.ReactEditor.findPath(C,f);d.Transforms.removeNodes(C,{at:e})},[C,f]),W=u.default.useCallback(({doc:e})=>{let t=c.ReactEditor.findPath(C,f);d.Transforms.setNodes(C,{children:[{text:" "}],relationTo:k.slug,type:"relationship",value:{id:e.id}},{at:t}),T({...h,cacheBust:M}),L(),S()},[C,f,k,M,T,L]),B=u.default.useCallback(({collectionConfig:e,docID:t})=>{let n=c.ReactEditor.findPath(C,f);d.Transforms.setNodes(C,{children:[{text:" "}],relationTo:e.slug,type:"relationship",value:{id:t}},{at:n}),P(b.find(t=>t.slug===e.slug)),T({...h,cacheBust:M}),I(),S()},[I,C,f,M,T,b]);return u.default.createElement("div",{className:[m,E&&A&&`${m}--selected`].filter(Boolean).join(" "),contentEditable:!1,...t},u.default.createElement("div",{className:`${m}__wrap`},u.default.createElement("p",{className:`${m}__label`},O("labelRelationship",{label:(0,l.getTranslation)(k.labels.singular,D)})),u.default.createElement(N,{className:`${m}__doc-drawer-toggler`},u.default.createElement("p",{className:`${m}__title`},j[k?.admin?.useAsTitle||"id"]))),u.default.createElement("div",{className:`${m}__actions`},u.default.createElement(z,{className:`${m}__list-drawer-toggler`,disabled:v?.admin?.readOnly},u.default.createElement(r.Button,{buttonStyle:"icon-label",disabled:v?.admin?.readOnly,el:"div",icon:"swap",onClick:()=>{},round:!0,tooltip:O("swapRelationship")})),u.default.createElement(r.Button,{buttonStyle:"icon-label",className:`${m}__removeButton`,disabled:v?.admin?.readOnly,icon:"x",onClick:e=>{e.preventDefault(),F()},round:!0,tooltip:O("fields:removeRelationship")})),g?.id&&u.default.createElement(_,{onSave:W}),u.default.createElement(R,{onSelect:B}),n)},v=e=>u.default.createElement(f.EnabledRelationshipsCondition,e,u.default.createElement(g,e))},43149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(434)),a=i(n(64194)),o=i(n(3434));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:r.default,Element:a.default,plugins:[o.default]}},3434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=e=>{let{isVoid:t}=e;return e.isVoid=e=>"relationship"===e.type||t(e),e}},43181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=u(n(96540)),a=u(n(72976)),o=u(n(88980)),i=u(n(29969)),l=u(n(87524));function u(e){return e&&e.__esModule?e:{default:e}}let s={name:"alignment",Button:()=>r.default.createElement(r.default.Fragment,null,r.default.createElement(l.default,{format:"left",type:"textAlign"},r.default.createElement(o.default,null)),r.default.createElement(l.default,{format:"center",type:"textAlign"},r.default.createElement(a.default,null)),r.default.createElement(l.default,{format:"right",type:"textAlign"},r.default.createElement(i.default,null)))}},680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(67752),a=n(40554),o=function(e){return e&&e.__esModule?e:{default:e}}(n(10790)),i=n(68767),l=(e,t,n="type")=>{let l=(0,o.default)(e,t,n),u={[n]:t},s=(0,i.isWithinListItem)(e);l&&(u[n]=void 0),!l&&s&&"textAlign"!==n&&r.Transforms.wrapNodes(e,{children:[],type:"li"},{at:r.Editor.unhangRange(e,e.selection)}),r.Transforms.setNodes(e,{[n]:u[n]},{at:r.Editor.unhangRange(e,e.selection)}),a.ReactEditor.focus(e)}},42576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=n(67752),a=n(40554),o=n(98026),i=s(n(29758)),l=s(n(53523)),u=n(9723);function s(e){return e&&e.__esModule?e:{default:e}}let d=(e,t)=>{let n;if((0,i.default)(e,"ol")&&(n="ol"),(0,i.default)(e,"ul")&&(n="ul"),n===t){let n=r.Node.descendant(e,e.selection.anchor.path);if(r.Text.isText(n)&&0===String(n.text).length)r.Transforms.unwrapNodes(e,{match:e=>r.Element.isElement(e)&&l.default.includes(e.type),mode:"lowest",split:!0}),r.Transforms.setNodes(e,{type:void 0});else{let[,n]=(0,o.getCommonBlock)(e,e=>r.Element.isElement(e)&&e.type===t);(0,u.unwrapList)(e,n)}}else if(n&&n!==t)r.Transforms.setNodes(e,{type:t},{match:e=>r.Element.isElement(e)&&l.default.includes(e.type),mode:"lowest"});else{r.Transforms.wrapNodes(e,{children:[],type:t});let[,n]=(0,o.getCommonBlock)(e,e=>r.Element.isElement(e)&&e.type===t);r.Transforms.setNodes(e,{type:"li"},{match:(e,t)=>{let a=r.Element.isElement(e)&&void 0===e.type&&t.length===n.length+1;return a},voids:!0});let a=Array.from(r.Editor.nodes(e,{match:(e,t)=>{let a=r.Element.isElement(e)&&void 0!==e.type&&"li"!==e.type&&t.length===n.length+1;return a}}));a.forEach(([,t])=>{r.Transforms.wrapNodes(e,{children:[],type:"li"},{at:t})})}a.ReactEditor.focus(e)}},61242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(44216)),o=i(n(28972));function i(e){return e&&e.__esModule?e:{default:e}}n(31168);let l={Button:()=>r.default.createElement(o.default,{format:"ul"},r.default.createElement(a.default,null)),Element:({attributes:e,children:t})=>r.default.createElement("ul",{className:"rich-text-ul",...e},t)}},9723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unwrapList",{enumerable:!0,get:function(){return i}});let r=n(67752),a=n(27147),o=function(e){return e&&e.__esModule?e:{default:e}}(n(53523)),i=(e,t)=>{r.Transforms.setNodes(e,{type:void 0},{at:t,match:(e,n)=>{let o=(0,a.areAllChildrenElements)(e),i=!r.Editor.isEditor(e)&&r.Element.isElement(e)&&!o&&"li"===e.type&&n.length===t.length+1;return i}}),r.Transforms.unwrapNodes(e,{at:t,match:(e,n)=>{let o=(0,a.areAllChildrenElements)(e),i=!r.Editor.isEditor(e)&&r.Element.isElement(e)&&o&&"li"===e.type&&n.length===t.length+1;return i}}),r.Transforms.unwrapNodes(e,{match:e=>r.Element.isElement(e)&&o.default.includes(e.type),mode:"lowest"})}},29843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(31657),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(40554),l=c(n(29277)),u=c(n(87524)),s=n(17275),d=n(73211);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(66195);let p=(e,{relationTo:t,value:n})=>{(0,d.injectVoidElement)(e,{children:[{text:" "}],relationTo:t,type:"upload",value:n}),i.ReactEditor.focus(e)},m=({enabledCollectionSlugs:e})=>{let{t}=(0,o.useTranslation)(["upload","general"]),n=(0,i.useSlate)(),[s,d,{closeDrawer:c}]=(0,r.useListDrawer)({collectionSlugs:e,uploads:!0}),f=(0,a.useCallback)(({collectionConfig:e,docID:t})=>{p(n,{relationTo:e.slug,value:{id:t}}),c()},[n,c]);return a.default.createElement(a.Fragment,null,a.default.createElement(d,null,a.default.createElement(u.default,{className:"upload-rich-text-button",el:"div",format:"upload",onClick:()=>{},tooltip:t("fields:addUpload")},a.default.createElement(l.default,null))),a.default.createElement(s,{onSelect:f}))},h=e=>a.default.createElement(s.EnabledRelationshipsCondition,{...e,uploads:!0},a.default.createElement(m,e))},88578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"UploadDrawer",{enumerable:!0,get:function(){return m}});let r=n(95767),a=n(31657),o=n(60741),i=n(69962),l=n(2079),u=n(3605),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),d=n(43992),c=n(67752),f=n(40554);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}let m=e=>{let t=(0,f.useSlateStatic)(),{drawerSlug:n,element:p,fieldProps:m,relatedCollection:h}=e,{i18n:g,t:v}=(0,d.useTranslation)(),{code:b}=(0,i.useLocale)(),{user:y}=(0,i.useAuth)(),{closeModal:w}=(0,r.useModal)(),{getDocPreferences:x}=(0,i.useDocumentInfo)(),[k,P]=(0,s.useState)({}),E=m?.admin?.upload?.collections?.[h.slug]?.fields,A=(0,i.useConfig)(),D=A.collections.map(e=>e.slug)||[],O=(0,l.sanitizeFields)({config:A,fields:E,validRelationships:D}),C=(0,s.useCallback)((e,r)=>{let a=f.ReactEditor.findPath(t,p);c.Transforms.setNodes(t,{fields:r},{at:a}),w(n)},[w,t,p,n]);return(0,s.useEffect)(()=>{let e=A.collections.map(e=>e.slug)||[],t=(0,l.sanitizeFields)({config:A,fields:E,validRelationships:e}),n=async()=>{let e=await x(),n=await (0,i.buildStateFromSchema)({config:A,data:(0,u.deepCopyObject)(p?.fields||{}),fieldSchema:t,locale:b,operation:"update",preferences:e,t:v,user:y});P(n)};n()},[E,A,p.fields,y,b,v,x]),s.default.createElement(a.Drawer,{slug:n,title:v("general:editLabel",{label:(0,u.getTranslation)(h.labels.singular,g)})},s.default.createElement(o.Form,{initialState:k,onSubmit:C},s.default.createElement(o.RenderFields,{fieldSchema:O,fieldTypes:o.fieldTypes,readOnly:!1}),s.default.createElement(o.FormSubmit,null,v("fields:saveChanges"))))}},39665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(46701),a=n(31657),o=n(47605),i=n(54722),l=n(69962),u=n(3605),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),d=n(43992),c=n(67752),f=n(40554),p=n(17275),m=n(88578);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}n(76987);let g="rich-text-upload",v={depth:0},b=e=>{let{attributes:t,children:n,element:{relationTo:p,value:h},element:b,enabledCollectionSlugs:y,fieldProps:w}=e,{collections:x,routes:{api:k},serverURL:P}=(0,l.useConfig)(),{i18n:E,t:A}=(0,d.useTranslation)("fields"),[D,O]=(0,s.useReducer)(e=>e+1,0),[C,M]=(0,s.useState)(()=>x.find(e=>e.slug===p)),S=(0,a.useDrawerSlug)("upload-drawer"),[j,T,{closeDrawer:_}]=(0,a.useListDrawer)({collectionSlugs:y,selectedCollection:C.slug}),[N,L,{closeDrawer:R}]=(0,a.useDocumentDrawer)({id:h?.id,collectionSlug:C.slug}),z=(0,f.useSlateStatic)(),I=(0,f.useSelected)(),F=(0,f.useFocused)(),[{data:W},{setParams:B}]=(0,i.usePayloadAPI)(`${P}${k}/${C.slug}/${h?.id}`,{initialParams:v}),U=(0,i.useThumbnail)(C,W),V=(0,s.useCallback)(()=>{let e=f.ReactEditor.findPath(z,b);c.Transforms.removeNodes(z,{at:e})},[z,b]),$=(0,s.useCallback)(e=>{let{doc:t}=e,n=f.ReactEditor.findPath(z,b);c.Transforms.setNodes(z,{fields:t},{at:n}),B({...v,cacheBust:D}),O(),R()},[z,b,B,D,R]),H=s.default.useCallback(({collectionConfig:e,docID:t})=>{let n={children:[{text:" "}],relationTo:e.slug,type:"upload",value:{id:t}},r=f.ReactEditor.findPath(z,b);M(x.find(t=>t.slug===e.slug)),c.Transforms.setNodes(z,n,{at:r}),O(),_()},[_,z,b,x]),q=w?.admin?.upload?.collections?.[C.slug]?.fields;return s.default.createElement("div",{className:[g,I&&F&&`${g}--selected`].filter(Boolean).join(" "),contentEditable:!1,...t},s.default.createElement("div",{className:`${g}__card`},s.default.createElement("div",{className:`${g}__topRow`},s.default.createElement("div",{className:`${g}__thumbnail`},U?s.default.createElement("img",{alt:W?.filename,src:U}):s.default.createElement(o.FileGraphic,null)),s.default.createElement("div",{className:`${g}__topRowRightPanel`},s.default.createElement("div",{className:`${g}__collectionLabel`},(0,u.getTranslation)(C.labels.singular,E)),s.default.createElement("div",{className:`${g}__actions`},q?.length>0&&s.default.createElement(a.DrawerToggler,{className:`${g}__upload-drawer-toggler`,disabled:w?.admin?.readOnly,slug:S},s.default.createElement(r.Button,{buttonStyle:"icon-label",el:"div",icon:"edit",onClick:e=>{e.preventDefault()},round:!0,tooltip:A("fields:editRelationship")})),s.default.createElement(T,{className:`${g}__list-drawer-toggler`,disabled:w?.admin?.readOnly},s.default.createElement(r.Button,{buttonStyle:"icon-label",disabled:w?.admin?.readOnly,el:"div",icon:"swap",onClick:()=>{},round:!0,tooltip:A("swapUpload")})),s.default.createElement(r.Button,{buttonStyle:"icon-label",className:`${g}__removeButton`,disabled:w?.admin?.readOnly,icon:"x",onClick:e=>{e.preventDefault(),V()},round:!0,tooltip:A("removeUpload")})))),s.default.createElement("div",{className:`${g}__bottomRow`},s.default.createElement(L,{className:`${g}__doc-drawer-toggler`},s.default.createElement("strong",null,W?.filename)))),n,h?.id&&s.default.createElement(N,{onSave:$}),s.default.createElement(j,{onSelect:H}),s.default.createElement(m.UploadDrawer,{drawerSlug:S,relatedCollection:C,...e}))},y=e=>s.default.createElement(p.EnabledRelationshipsCondition,{...e,uploads:!0},s.default.createElement(b,e))},15598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(29843)),a=i(n(39665)),o=i(n(28339));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:r.default,Element:a.default,plugins:[o.default]}},28339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=e=>{let{isVoid:t}=e;return e.isVoid=e=>"upload"===e.type||t(e),e}},59683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(7382)),a=o(n(37683));function o(e){return e&&e.__esModule?e:{default:e}}let i=(e,t)=>"function"==typeof t?t(e):e,l=(e,t)=>t.reduce((e,t)=>{if("object"==typeof t&&Array.isArray(t.plugins))return t.plugins.reduce(i,e);if("string"==typeof t){if(r.default[t]&&r.default[t].plugins)return r.default[t].plugins.reduce(i,e);if(a.default[t]&&a.default[t].plugins)return a.default[t].plugins.reduce(i,e)}return e},e)},17377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n={"mod+`":"code","mod+b":"bold","mod+i":"italic","mod+u":"underline"}},72976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{fill:"currentColor",height:"1em",viewBox:"0 0 1024 1024",width:"1em"},r.default.createElement("path",{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}))},88980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{fill:"currentColor",height:"1em",viewBox:"0 0 1024 1024",width:"1em"},r.default.createElement("path",{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}))},29969:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{fill:"currentColor",height:"1em",viewBox:"0 0 1024 1024",width:"1em"},r.default.createElement("path",{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}))},86091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic blockquote-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},83107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic bold-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},43561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic inline-code-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M7.375 16.781l1.25-1.562L4.601 12l4.024-3.219-1.25-1.562-5 4a1 1 0 000 1.562l5 4zm9.25-9.562l-1.25 1.562L19.399 12l-4.024 3.219 1.25 1.562 5-4a1 1 0 000-1.562l-5-4zM14.976 3.216l-4 18-1.953-.434 4-18z"}))},2307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(53459);let a=()=>r.default.createElement("svg",{className:"icon icon--indent-left",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M16.005 9.61502L21.005 13.1864L21.005 6.04361L16.005 9.61502Z"}),r.default.createElement("rect",{className:"fill",height:"2.15625",width:"9.0675",x:"5",y:"5.68199"}),r.default.createElement("rect",{className:"fill",height:"2.15625",width:"9.0675",x:"5",y:"11.4738"}),r.default.createElement("rect",{className:"fill",height:"2.15625",width:"16.005",x:"5",y:"17.2656"}))},9120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(48618);let a=()=>r.default.createElement("svg",{className:"icon icon--indent-right",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M10 9.61502L5 6.04361L5 13.1864L10 9.61502Z"}),r.default.createElement("rect",{className:"fill",height:"2.15625",width:"9.0675",x:"11.9375",y:"5.68199"}),r.default.createElement("rect",{className:"fill",height:"2.15625",width:"9.0675",x:"11.9375",y:"11.4738"}),r.default.createElement("rect",{className:"fill",height:"2.15625",width:"16.005",x:"5",y:"17.2656"}))},41548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic italic-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}))},69356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(27488);let a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic link icon icon--link",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}))},78505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic ordered-list-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},38086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(7702);let a=()=>r.default.createElement("svg",{className:"icon icon--relationship",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"stroke",d:"M19.0597 14.9691L19.0597 19.0946L6.01681 19.0946L6.01681 6.03028L10.0948 6.03028",strokeWidth:"2"}),r.default.createElement("path",{className:"stroke",d:"M19.0597 11.0039L19.0597 6.00387L14.0597 6.00387",strokeWidth:"2"}),r.default.createElement("line",{className:"stroke",strokeWidth:"2",x1:"18.7061",x2:"13.0493",y1:"6.40767",y2:"12.0645"}))},35491:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic strikethrough-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"}))},97312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic underline-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"}))},44216:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic unordered-list-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"}),r.default.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}))},29277:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(5049);let a=()=>r.default.createElement("svg",{className:"icon icon--upload",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"fill",d:"M20.06,5.12h-15v15h15Zm-2,2v7L15.37,11l-3.27,4.1-2-1.58-3,3.74V7.12Z"}),r.default.createElement("circle",{className:"fill",cx:"9.69",cy:"9.47",r:"0.97"}))},38227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic h1-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"}))},40174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic h2-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8a2 2 0 01-2 2h-2v2h4v2H9v-4a2 2 0 012-2h2V9H9V7h4a2 2 0 012 2v2z"}))},3989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic h3-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M.01 0h24v24h-24z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15a2 2 0 01-2 2h-4v-2h4v-2h-2v-2h2V9h-4V7h4a2 2 0 012 2v1.5z"}))},79872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic h4-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 14h-2v-4H9V7h2v4h2V7h2v10z"}))},51892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic h5-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2a2 2 0 012 2v2a2 2 0 01-2 2H9v-2h4v-2H9V7h6v2z"}))},1570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic h6-icon",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M11 15h2v-2h-2v2zm8-12H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V9a2 2 0 012-2h4v2z"}))},2098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(46701),a=i(n(96540));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let l=(0,a.lazy)(()=>Promise.resolve().then(()=>i(n(28601)))),u=e=>a.default.createElement(a.Suspense,{fallback:a.default.createElement(r.ShimmerEffect,{height:"35vh"})},a.default.createElement(l,e))},96627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=l(n(96540)),a=n(40554);n(48041);let o=l(n(16909)),i=l(n(93443));function l(e){return e&&e.__esModule?e:{default:e}}let u="rich-text__button",s=({children:e,format:t})=>{let n=(0,a.useSlate)();return r.default.createElement("button",{className:[u,(0,o.default)(n,t)&&`${u}__button--active`].filter(Boolean).join(" "),onMouseDown:e=>{e.preventDefault(),(0,i.default)(n,t)},type:"button"},e)}},92935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(83107)),o=i(n(96627));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"bold"},r.default.createElement(a.default,null)),Leaf:({attributes:e,children:t})=>r.default.createElement("strong",e,t)}},58669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(43561)),o=i(n(96627));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"code"},r.default.createElement(a.default,null)),Leaf:({attributes:e,children:t})=>r.default.createElement("code",e,t)}},37683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=u(n(92935)),a=u(n(58669)),o=u(n(88744)),i=u(n(84631)),l=u(n(56220));function u(e){return e&&e.__esModule?e:{default:e}}let s={bold:r.default,code:a.default,italic:o.default,strikethrough:i.default,underline:l.default}},16909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(67752),a=(e,t)=>{let n=r.Editor.marks(e);return!!n&&!0===n[t]}},88744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(41548)),o=i(n(96627));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"italic"},r.default.createElement(a.default,null)),Leaf:({attributes:e,children:t})=>r.default.createElement("em",e,t)}},84631:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(35491)),o=i(n(96627));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"strikethrough"},r.default.createElement(a.default,null)),Leaf:({attributes:e,children:t})=>r.default.createElement("del",e,t)}},93443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(67752),a=function(e){return e&&e.__esModule?e:{default:e}}(n(16909)),o=(e,t)=>{let n=(0,a.default)(e,t);n?r.Editor.removeMark(e,t):r.Editor.addMark(e,t,!0)}},56220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(96540)),a=i(n(97312)),o=i(n(96627));function i(e){return e&&e.__esModule?e:{default:e}}let l={Button:()=>r.default.createElement(o.default,{format:"underline"},r.default.createElement(a.default,null)),Leaf:({attributes:e,children:t})=>r.default.createElement("u",e,t)}},68724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=(e,t)=>{let n=[...e];return(e.indexOf("ul")>-1||e.indexOf("ol")>-1)&&n.push("li"),n.reduce((e,n)=>"object"==typeof n&&n.name?{...e,[n.name]:n}:"string"==typeof n&&t[n]?{...e,[n]:t[n]}:e,{})}},25370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let n=["h1","h2","h3","h4","h5","h6","link"],r=e=>(e.shouldBreakOutOnEnter=e=>n.includes(String(e.type)),e)},81440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(67752),a=n(20265),o={A:e=>({newTab:"_blank"===e.getAttribute("target"),type:"link",url:e.getAttribute("href")}),BLOCKQUOTE:()=>({type:"blockquote"}),H1:()=>({type:"h1"}),H2:()=>({type:"h2"}),H3:()=>({type:"h3"}),H4:()=>({type:"h4"}),H5:()=>({type:"h5"}),H6:()=>({type:"h6"}),LI:()=>({type:"li"}),OL:()=>({type:"ol"}),P:()=>({}),PRE:()=>({type:"code"}),UL:()=>({type:"ul"})},i={CODE:()=>({code:!0}),DEL:()=>({strikethrough:!0}),EM:()=>({italic:!0}),I:()=>({italic:!0}),S:()=>({strikethrough:!0}),STRONG:()=>({bold:!0}),U:()=>({underline:!0})},l=e=>{if(3===e.nodeType)return e.textContent;if(1!==e.nodeType)return null;if("BR"===e.nodeName)return"\n";let{nodeName:t}=e,n=e;"PRE"===t&&e.childNodes[0]&&"CODE"===e.childNodes[0].nodeName&&([n]=e.childNodes);let r=Array.from(n.childNodes).map(l).flat();if(0===r.length&&(r=[{text:""}]),"BODY"===e.nodeName)return(0,a.jsx)("fragment",{},r);if(o[t]){let n=o[t](e);return(0,a.jsx)("element",n,r)}if(i[t]){let n=i[t](e);return r.map(e=>(0,a.jsx)("text",n,e))}return r},u=e=>{let{insertData:t}=e;return e.insertData=n=>{if(!n.types.includes("application/x-slate-fragment")){let t=n.getData("text/html");if(t){let n=new DOMParser().parseFromString(t,"text/html"),a=l(n.body);r.Transforms.insertFragment(e,a);return}}t(n)},e}},18641:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{slateEditor:function(){return p},ElementButton:function(){return u.default},toggleElement:function(){return s.default},LeafButton:function(){return d.default},nodeIsTextNode:function(){return c.nodeIsTextNode}});let r=n(3605),a=f(n(69590)),o=n(81834),i=n(94903),l=f(n(2098)),u=f(n(87524)),s=f(n(680)),d=f(n(96627)),c=n(81152);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return{CellComponent:(0,r.withMergedProps)({Component:a.default,toMergeIntoProps:e}),FieldComponent:(0,r.withMergedProps)({Component:l.default,toMergeIntoProps:e}),outputSchema:({isRequired:e})=>({items:{type:"object"},type:(0,r.withNullableJSONSchemaType)("array",e)}),populationPromise:({context:e,currentDepth:t,depth:n,field:r,findMany:a,flattenLocales:i,overrideAccess:l,populationPromises:u,req:s,showHiddenFields:d,siblingDoc:c})=>r.admin?.elements?.includes("relationship")||r.admin?.elements?.includes("upload")||r.admin?.elements?.includes("link")||!r?.admin?.elements?(0,o.richTextRelationshipPromise)({context:e,currentDepth:t,depth:n,field:r,findMany:a,flattenLocales:i,overrideAccess:l,populationPromises:u,req:s,showHiddenFields:d,siblingDoc:c}):null,validate:i.richTextValidate}}},81152:(e,t)=>{"use strict";function n(e){return"text"in e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"nodeIsTextNode",{enumerable:!0,get:function(){return n}})},19511:(e,t,n)=>{"use strict";var r=n(38075)("ArrayBuffer.prototype.byteLength",!0),a=n(84670);e.exports=function(e){return a(e)?r?r(e):e.byteLength:NaN}},24208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearAllBodyScrollLocks:()=>y,disableBodyScroll:()=>b,enableBodyScroll:()=>w});var r=!1;if("undefined"!=typeof window){var a={get passive(){r=!0;return}};window.addEventListener("testPassive",null,a),window.removeEventListener("testPassive",null,a)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),i=[],l=!1,u=-1,s=void 0,d=void 0,c=void 0,f=function(e){return i.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},p=function(e){var t=e||window.event;return!!f(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},m=function(e){if(void 0===c){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);c=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow="hidden")},h=function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)},g=function(){if(void 0!==d){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=d.position,document.body.style.top=d.top,document.body.style.left=d.left,window.scrollTo(t,e),d=void 0}},v=function(e,t){var n=e.targetTouches[0].clientY-u;return!f(e.target)&&(t&&0===t.scrollTop&&n>0?p(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&n<0?p(e):(e.stopPropagation(),!0))},b=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!i.some(function(t){return t.targetElement===e})&&(i=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t=r&&(document.body.style.top=-(t+e))})},300)}}):m(t),o&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(u=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&v(t,e)},l||(document.addEventListener("touchmove",p,r?{passive:!1}:void 0),l=!0)))},y=function(){o&&(i.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),l&&(document.removeEventListener("touchmove",p,r?{passive:!1}:void 0),l=!1),u=-1),o?g():h(),i=[]},w=function(e){if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}i=i.filter(function(t){return t.targetElement!==e}),o&&(e.ontouchstart=null,e.ontouchmove=null,l&&0===i.length&&(document.removeEventListener("touchmove",p,r?{passive:!1}:void 0),l=!1)),o?g():h()}},82808:(e,t,n)=>{for(var r=n(65606),a=Math.floor(16777215*Math.random()),o=p.index=parseInt(16777215*Math.random(),10),i=(void 0===r||"number"!=typeof r.pid?Math.floor(1e5*Math.random()):r.pid)%65535,l=(()=>{try{return _Buffer}catch(e){try{return Buffer}catch(e){return null}}})(),u=function(e){return!!(null!=e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},s=[],d=0;d<256;d++)s[d]=(d<=15?"0":"")+d.toString(16);var c=RegExp("^[0-9a-fA-F]{24}$"),f=[];for(d=0;d<10;)f[48+d]=d++;for(;d<16;)f[55+d]=f[87+d]=d++;function p(e){if(!(this instanceof p))return new p(e);if(e&&(e instanceof p||"ObjectID"===e._bsontype))return e;if(this._bsontype="ObjectID",null==e||"number"==typeof e){this.id=this.generate(e);return}var t=p.isValid(e);if(t||null==e){if(t&&"string"==typeof e&&24===e.length)return p.createFromHexString(e);if(null!=e&&12===e.length)this.id=e;else if(null!=e&&"function"==typeof e.toHexString)return e;else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters")}else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters")}e.exports=p,p.default=p,p.createFromTime=function(e){var t;return e=parseInt(e,10)%4294967295,new p((8===(t=(t=e).toString(16)).length?t:"00000000".substring(t.length,8)+t)+"0000000000000000")},p.createFromHexString=function(e){if(void 0===e||null!=e&&24!==e.length)throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");for(var t="",n=0;n<24;)t+=String.fromCharCode(f[e.charCodeAt(n++)]<<4|f[e.charCodeAt(n++)]);return new p(t)},p.isValid=function(e){return null!=e&&("number"==typeof e||("string"==typeof e?12===e.length||24===e.length&&c.test(e):e instanceof p||(u(e)?p.isValid(e.toString("hex")):"function"==typeof e.toHexString&&!!l&&(e.id instanceof l||"string"==typeof e.id)&&(12===e.id.length||24===e.id.length&&c.test(e.id)))))},p.prototype={constructor:p,toHexString:function(){if(!this.id||!this.id.length)throw Error("invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is ["+JSON.stringify(this.id)+"]");if(24===this.id.length)return this.id;if(u(this.id))return this.id.toString("hex");for(var e="",t=0;t>24&255,e>>16&255,e>>8&255,255&e,a>>16&255,a>>8&255,255&a,i>>8&255,255&i,t>>16&255,t>>8&255,255&t)}};var m=Symbol&&Symbol.for&&Symbol.for("nodejs.util.inspect.custom")||"inspect";p.prototype[m]=function(){return"ObjectID("+this+")"},p.prototype.toJSON=p.prototype.toHexString,p.prototype.toString=p.prototype.toHexString},38075:(e,t,n)=>{"use strict";var r=n(70453),a=n(10487),o=a(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?a(n):n}},10487:(e,t,n)=>{"use strict";var r=n(66743),a=n(70453),o=n(96897),i=a("%TypeError%"),l=a("%Function.prototype.apply%"),u=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||r.call(u,l),d=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(d)try{d({},"a",{value:1})}catch(e){d=null}e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=s(r,u,arguments);return o(t,1+c(0,e.length-(arguments.length-1)),!0)};var f=function(){return s(r,l,arguments)};d?d(e.exports,"apply",{value:f}):e.exports.apply=f},92151:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n{var n;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t{!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],r=0,a=0;r>>6-2*a);return n}};e.exports=n}()},66631:(e,t,n)=>{"use strict";function r(e,t){for(var n=Math.abs(e).toString();n.lengthr})},37426:(e,t,n)=>{"use strict";function r(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}n.d(t,{A:()=>r})},36014:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(91964);let a=r.A},71858:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,q:()=>a});var r={};function a(){return r}function o(e){r=e}},91536:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(66631);let a={y:function(e,t){var n=e.getUTCFullYear(),a=n>0?n:1-n;return(0,r.A)("yy"===t?a%100:a,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,r.A)(n+1,2)},d:function(e,t){return(0,r.A)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,r.A)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,r.A)(e.getUTCHours(),t.length)},m:function(e,t){return(0,r.A)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,r.A)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,a=e.getUTCMilliseconds();return(0,r.A)(Math.floor(a*Math.pow(10,n-3)),t.length)}}},91788:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},a=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};let o={p:a,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],i=o[1],l=o[2];if(!l)return r(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(i,t)).replace("{{time}}",a(l,t))}}},67044:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:()=>r})},31053:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(10123),a=n(9411),o=n(24127),i=n(70551);function l(e){(0,i.A)(1,arguments);var t=(0,r.default)(e);return Math.round(((0,a.A)(t).getTime()-(function(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,a.A)(n)})(t).getTime())/6048e5)+1}},24127:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),a=n(70551),o=n(9411);function i(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var l=(0,o.A)(i),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var s=(0,o.A)(u);return t.getTime()>=l.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}},96894:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(10123),a=n(89742),o=n(50464),i=n(70551),l=n(94188),u=n(71858);function s(e,t){(0,i.A)(1,arguments);var n=(0,r.default)(e);return Math.round(((0,a.A)(n,t).getTime()-(function(e,t){(0,i.A)(1,arguments);var n,r,s,d,c,f,p,m,h=(0,u.q)(),g=(0,l.A)(null!==(n=null!==(r=null!==(s=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:h.firstWeekContainsDate)&&void 0!==r?r:null===(p=h.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,o.A)(e,t),b=new Date(0);return b.setUTCFullYear(v,0,g),b.setUTCHours(0,0,0,0),(0,a.A)(b,t)})(n,t).getTime())/6048e5)+1}},50464:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(10123),a=n(70551),o=n(89742),i=n(94188),l=n(71858);function u(e,t){(0,a.A)(1,arguments);var n,u,s,d,c,f,p,m,h=(0,r.default)(e),g=h.getUTCFullYear(),v=(0,l.q)(),b=(0,i.A)(null!==(n=null!==(u=null!==(s=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:v.firstWeekContainsDate)&&void 0!==u?u:null===(p=v.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(g+1,0,b),y.setUTCHours(0,0,0,0);var w=(0,o.A)(y,t),x=new Date(0);x.setUTCFullYear(g,0,b),x.setUTCHours(0,0,0,0);var k=(0,o.A)(x,t);return h.getTime()>=w.getTime()?g+1:h.getTime()>=k.getTime()?g:g-1}},41109:(e,t,n)=>{"use strict";n.d(t,{ef:()=>o,lJ:()=>l,xM:()=>i});var r=["D","DD"],a=["YY","YYYY"];function o(e){return -1!==r.indexOf(e)}function i(e){return -1!==a.indexOf(e)}function l(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},70551:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})},9411:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}},89742:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(10123),a=n(70551),o=n(94188),i=n(71858);function l(e,t){(0,a.A)(1,arguments);var n,l,u,s,d,c,f,p,m=(0,i.q)(),h=(0,o.A)(null!==(n=null!==(l=null!==(u=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==u?u:m.weekStartsOn)&&void 0!==l?l:null===(f=m.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getUTCDay();return g.setUTCDate(g.getUTCDate()-((v{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},92998:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,r.A)(t);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}},21524:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(7767),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.A)(e,36e5*n)}},7767:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e).getTime(),i=(0,r.A)(t);return new Date(n+i)}},92890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(7767),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.A)(e,6e4*n)}},2118:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,r.A)(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var l=n.getDate(),u=new Date(n.getTime());return(u.setMonth(n.getMonth()+i+1,0),l>=u.getDate())?u:(n.setFullYear(u.getFullYear(),u.getMonth(),l),n)}},29852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(2118),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,3*n)}},82238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(92998),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,7*n)}},49317:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(2118),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,12*n)}},57499:(e,t,n)=>{"use strict";n.d(t,{BM:()=>y,Cg:()=>i,GW:()=>o,Ki:()=>a,Mf:()=>b,Z7:()=>w,_m:()=>u,bF:()=>h,e8:()=>f,gs:()=>p,h:()=>r,hq:()=>v,l5:()=>d,pe:()=>g,rI:()=>c,s0:()=>l,tF:()=>m,uL:()=>s});var r=7,a=365.2425,o=864e13,i=6e4,l=36e5,u=1e3,s=-864e13,d=60,c=3,f=12,p=4,m=3600,h=60,g=86400,v=604800,b=31556952,y=2629746,w=7889238},40063:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(67044),a=n(31127),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,a.default)(t);return Math.round((n.getTime()-(0,r.A)(n)-(i.getTime()-(0,r.A)(i)))/864e5)}},60667:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}},82002:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()-o.getFullYear()}},66212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},19312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},36462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(71858),a=n(10123),o=n(94188),i=n(70551);function l(e,t){(0,i.A)(1,arguments);var n,l,u,s,d,c,f,p,m=(0,r.q)(),h=(0,o.A)(null!==(n=null!==(l=null!==(u=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==u?u:m.weekStartsOn)&&void 0!==l?l:null===(f=m.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.default)(e),v=g.getDay();return g.setDate(g.getDate()+((v{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},30978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r=n(86828),a=n(25654),o=n(10123),i=n(70551),l=n(31053),u=n(24127),s=n(96894),d=n(50464),c=n(66631),f=n(91536),p={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+(t||"")+(0,c.A)(o,2)}function h(e,t){return e%60==0?(e>0?"-":"+")+(0,c.A)(Math.abs(e)/60,2):g(e,t)}function g(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+(0,c.A)(Math.floor(r/60),2)+(t||"")+(0,c.A)(r%60,2)}let v={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return f.A.y(e,t)},Y:function(e,t,n,r){var a=(0,d.A)(e,r),o=a>0?a:1-a;if("YY"===t){var i=o%100;return(0,c.A)(i,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,c.A)(o,t.length)},R:function(e,t){var n=(0,u.A)(e);return(0,c.A)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,c.A)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,c.A)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,c.A)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f.A.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,c.A)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=(0,s.A)(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):(0,c.A)(a,t.length)},I:function(e,t,n){var r=(0,l.A)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,c.A)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f.A.d(e,t)},D:function(e,t,n){var r=function(e){(0,i.A)(1,arguments);var t=(0,o.default)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,c.A)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,c.A)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,c.A)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return(0,c.A)(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?p.noon:0===a?p.midnight:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?p.evening:a>=12?p.afternoon:a>=4?p.morning:p.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f.A.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f.A.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.A)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):(0,c.A)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f.A.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f.A.s(e,t)},S:function(e,t){return f.A.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return h(a);case"XXXX":case"XX":return g(a);default:return g(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return h(a);case"xxxx":case"xx":return g(a);default:return g(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(a,":");default:return"GMT"+g(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(a,":");default:return"GMT"+g(a,":")}},t:function(e,t,n,r){var a=Math.floor((r._originalDate||e).getTime()/1e3);return(0,c.A)(a,t.length)},T:function(e,t,n,r){var a=(r._originalDate||e).getTime();return(0,c.A)(a,t.length)}};var b=n(91788),y=n(67044),w=n(41109),x=n(94188),k=n(71858),P=n(36014),E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,D=/^'([^]*?)'?$/,O=/''/g,C=/[a-zA-Z]/;function M(e,t,n){(0,i.A)(2,arguments);var l,u,s,d,c,f,p,m,h,g,M,S,j,T,_,N,L,R,z=String(t),I=(0,k.q)(),F=null!==(l=null!==(u=null==n?void 0:n.locale)&&void 0!==u?u:I.locale)&&void 0!==l?l:P.A,W=(0,x.A)(null!==(s=null!==(d=null!==(c=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n?void 0:null===(p=n.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==c?c:I.firstWeekContainsDate)&&void 0!==d?d:null===(h=I.locale)||void 0===h?void 0:null===(g=h.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==s?s:1);if(!(W>=1&&W<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,x.A)(null!==(M=null!==(S=null!==(j=null!==(T=null==n?void 0:n.weekStartsOn)&&void 0!==T?T:null==n?void 0:null===(_=n.locale)||void 0===_?void 0:null===(N=_.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==j?j:I.weekStartsOn)&&void 0!==S?S:null===(L=I.locale)||void 0===L?void 0:null===(R=L.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==M?M:0);if(!(B>=0&&B<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw RangeError("locale must contain localize property");if(!F.formatLong)throw RangeError("locale must contain formatLong property");var U=(0,o.default)(e);if(!(0,r.default)(U))throw RangeError("Invalid time value");var V=(0,y.A)(U),$=(0,a.A)(U,V),H={firstWeekContainsDate:W,weekStartsOn:B,locale:F,_originalDate:U};return z.match(A).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,b.A[t])(e,F.formatLong):e}).join("").match(E).map(function(r){if("''"===r)return"'";var a,o=r[0];if("'"===o)return(a=r.match(D))?a[1].replace(O,"'"):r;var i=v[o];if(i)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,w.xM)(r)&&(0,w.lJ)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,w.ef)(r)&&(0,w.lJ)(r,t,String(e)),i($,r,F.localize,H);if(o.match(C))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r}).join("")}},50274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getDate()}},17512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getDay()}},18852:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),o=t.getMonth(),i=new Date(0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}},68089:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getHours()}},20863:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(10123),a=n(28504),o=n(32889),i=n(70551);function l(e){(0,i.A)(1,arguments);var t=(0,r.default)(e);return Math.round(((0,a.A)(t).getTime()-(0,o.A)(t).getTime())/6048e5)+1}},45042:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),a=n(28504),o=n(70551);function i(e){(0,o.A)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var l=(0,a.A)(i),u=new Date(0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);var s=(0,a.A)(u);return t.getTime()>=l.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}},12563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getMinutes()}},32044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getMonth()}},34158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),Math.floor((0,r.default)(e).getMonth()/3)+1}},9251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getSeconds()}},68519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getTime()}},72379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e).getFullYear()}},55707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{add:()=>s,addBusinessDays:()=>p,addDays:()=>a.default,addHours:()=>m.default,addISOWeekYears:()=>y,addMilliseconds:()=>w.A,addMinutes:()=>x.default,addMonths:()=>o.default,addQuarters:()=>k.default,addSeconds:()=>P,addWeeks:()=>E.default,addYears:()=>A.default,areIntervalsOverlapping:()=>D,clamp:()=>M,closestIndexTo:()=>S,closestTo:()=>j,compareAsc:()=>T,compareDesc:()=>_,daysInWeek:()=>N.h,daysInYear:()=>N.Ki,daysToWeeks:()=>L,differenceInBusinessDays:()=>I,differenceInCalendarDays:()=>v.default,differenceInCalendarISOWeekYears:()=>F,differenceInCalendarISOWeeks:()=>U,differenceInCalendarMonths:()=>V.default,differenceInCalendarQuarters:()=>H,differenceInCalendarWeeks:()=>Y,differenceInCalendarYears:()=>G.default,differenceInDays:()=>X,differenceInHours:()=>ee,differenceInISOWeekYears:()=>en,differenceInMilliseconds:()=>Q,differenceInMinutes:()=>er,differenceInMonths:()=>el,differenceInQuarters:()=>eu,differenceInSeconds:()=>es,differenceInWeeks:()=>ed,differenceInYears:()=>ec,eachDayOfInterval:()=>ef,eachHourOfInterval:()=>ep,eachMinuteOfInterval:()=>eh,eachMonthOfInterval:()=>eg,eachQuarterOfInterval:()=>eb,eachWeekOfInterval:()=>ey,eachWeekendOfInterval:()=>ew,eachWeekendOfMonth:()=>ek,eachWeekendOfYear:()=>eA,eachYearOfInterval:()=>eD,endOfDay:()=>ea.default,endOfDecade:()=>eO,endOfHour:()=>eC,endOfISOWeek:()=>eS,endOfISOWeekYear:()=>ej,endOfMinute:()=>eT,endOfMonth:()=>eo.default,endOfQuarter:()=>e_,endOfSecond:()=>eN,endOfToday:()=>eL,endOfTomorrow:()=>eR,endOfWeek:()=>eM.default,endOfYear:()=>eP.default,endOfYesterday:()=>ez,format:()=>eI.default,formatDistance:()=>eU,formatDistanceStrict:()=>eV,formatDistanceToNow:()=>e$,formatDistanceToNowStrict:()=>eH,formatDuration:()=>eY,formatISO:()=>eK,formatISO9075:()=>eX,formatISODuration:()=>eQ,formatRFC3339:()=>eJ,formatRFC7231:()=>e1,formatRelative:()=>e4,fromUnixTime:()=>e3,getDate:()=>e9.default,getDay:()=>e5.default,getDayOfYear:()=>e6,getDaysInMonth:()=>e8.A,getDaysInYear:()=>te,getDecade:()=>tt,getDefaultOptions:()=>tn,getHours:()=>tr.default,getISODay:()=>ta,getISOWeek:()=>to.default,getISOWeekYear:()=>h.A,getISOWeeksInYear:()=>ti,getMilliseconds:()=>tl,getMinutes:()=>tu.default,getMonth:()=>ts.default,getOverlappingDaysInIntervals:()=>td,getQuarter:()=>$.default,getSeconds:()=>tc.default,getTime:()=>tf.default,getUnixTime:()=>tp,getWeek:()=>tg,getWeekOfMonth:()=>tv,getWeekYear:()=>tm,getWeeksInMonth:()=>ty,getYear:()=>tw.default,hoursToMilliseconds:()=>tx,hoursToMinutes:()=>tk,hoursToSeconds:()=>tP,intervalToDuration:()=>tE,intlFormat:()=>tA,intlFormatDistance:()=>tD,isAfter:()=>tO.default,isBefore:()=>tC.default,isDate:()=>tM.default,isEqual:()=>tS.default,isExists:()=>tj,isFirstDayOfMonth:()=>tT,isFriday:()=>t_,isFuture:()=>tN,isLastDayOfMonth:()=>ei,isLeapYear:()=>e7,isMatch:()=>tR,isMonday:()=>tz,isPast:()=>tI,isSameDay:()=>R.default,isSameHour:()=>tW,isSameISOWeek:()=>tU,isSameISOWeekYear:()=>tV,isSameMinute:()=>t$,isSameMonth:()=>tH.default,isSameQuarter:()=>tq.default,isSameSecond:()=>tG,isSameWeek:()=>tB,isSameYear:()=>tK.default,isSaturday:()=>f,isSunday:()=>c,isThisHour:()=>tX,isThisISOWeek:()=>tQ,isThisMinute:()=>tJ,isThisMonth:()=>tZ,isThisQuarter:()=>t0,isThisSecond:()=>t1,isThisWeek:()=>t2,isThisYear:()=>t4,isThursday:()=>t3,isToday:()=>t9,isTomorrow:()=>t5,isTuesday:()=>t6,isValid:()=>z.default,isWednesday:()=>t8,isWeekend:()=>d,isWithinInterval:()=>t7.default,isYesterday:()=>nt,lastDayOfDecade:()=>nn,lastDayOfISOWeek:()=>na,lastDayOfISOWeekYear:()=>no,lastDayOfMonth:()=>tb,lastDayOfQuarter:()=>ni,lastDayOfWeek:()=>nr,lastDayOfYear:()=>nl,lightFormat:()=>np,max:()=>O.default,maxTime:()=>N.GW,milliseconds:()=>nm,millisecondsInHour:()=>N.s0,millisecondsInMinute:()=>N.Cg,millisecondsInSecond:()=>N._m,millisecondsToHours:()=>nh,millisecondsToMinutes:()=>ng,millisecondsToSeconds:()=>nv,min:()=>C.default,minTime:()=>N.uL,minutesInHour:()=>N.l5,minutesToHours:()=>nb,minutesToMilliseconds:()=>ny,minutesToSeconds:()=>nw,monthsInQuarter:()=>N.rI,monthsInYear:()=>N.e8,monthsToQuarters:()=>nx,monthsToYears:()=>nk,nextDay:()=>nP,nextFriday:()=>nE,nextMonday:()=>nA,nextSaturday:()=>nD,nextSunday:()=>nO,nextThursday:()=>nC,nextTuesday:()=>nM,nextWednesday:()=>nS,parse:()=>tL.default,parseISO:()=>nj.default,parseJSON:()=>nT,previousDay:()=>n_,previousFriday:()=>nN,previousMonday:()=>nL,previousSaturday:()=>nR,previousSunday:()=>nz,previousThursday:()=>nI,previousTuesday:()=>nF,previousWednesday:()=>nW,quartersInYear:()=>N.gs,quartersToMonths:()=>nB,quartersToYears:()=>nU,roundToNearestMinutes:()=>nV,secondsInDay:()=>N.pe,secondsInHour:()=>N.tF,secondsInMinute:()=>N.bF,secondsInMonth:()=>N.BM,secondsInQuarter:()=>N.Z7,secondsInWeek:()=>N.hq,secondsInYear:()=>N.Mf,secondsToHours:()=>n$,secondsToMilliseconds:()=>nH,secondsToMinutes:()=>nq,set:()=>nY.default,setDate:()=>nG,setDay:()=>nK,setDayOfYear:()=>nX,setDefaultOptions:()=>nQ,setHours:()=>nJ.default,setISODay:()=>nZ,setISOWeek:()=>n0,setISOWeekYear:()=>b,setMilliseconds:()=>n1,setMinutes:()=>n2.default,setMonth:()=>n4.default,setQuarter:()=>n3.default,setSeconds:()=>n9.default,setWeek:()=>n5,setWeekYear:()=>n6,setYear:()=>n8.default,startOfDay:()=>n7.default,startOfDecade:()=>re,startOfHour:()=>tF,startOfISOWeek:()=>B.A,startOfISOWeekYear:()=>g.A,startOfMinute:()=>em,startOfMonth:()=>ex.default,startOfQuarter:()=>ev.default,startOfSecond:()=>tY,startOfToday:()=>rt,startOfTomorrow:()=>rn,startOfWeek:()=>q.default,startOfWeekYear:()=>th,startOfYear:()=>eE.default,startOfYesterday:()=>rr,sub:()=>ro,subBusinessDays:()=>ri,subDays:()=>ne.default,subHours:()=>rl,subISOWeekYears:()=>et,subMilliseconds:()=>e2.A,subMinutes:()=>ru,subMonths:()=>ra.default,subQuarters:()=>rs.default,subSeconds:()=>rd,subWeeks:()=>rc.default,subYears:()=>rf.default,toDate:()=>i.default,weeksToDays:()=>rp,yearsToMonths:()=>rm,yearsToQuarters:()=>rh});var r=n(82284),a=n(92998),o=n(2118),i=n(10123),l=n(70551),u=n(94188);function s(e,t){if((0,l.A)(2,arguments),!t||"object"!==(0,r.A)(t))return new Date(NaN);var n=t.years?(0,u.A)(t.years):0,s=t.months?(0,u.A)(t.months):0,d=t.weeks?(0,u.A)(t.weeks):0,c=t.days?(0,u.A)(t.days):0,f=t.hours?(0,u.A)(t.hours):0,p=t.minutes?(0,u.A)(t.minutes):0,m=t.seconds?(0,u.A)(t.seconds):0,h=(0,i.default)(e),g=s||n?(0,o.default)(h,s+12*n):h,v=c||d?(0,a.default)(g,c+7*d):g;return new Date(v.getTime()+1e3*(m+60*(p+60*f)))}function d(e){(0,l.A)(1,arguments);var t=(0,i.default)(e).getDay();return 0===t||6===t}function c(e){return(0,l.A)(1,arguments),0===(0,i.default)(e).getDay()}function f(e){return(0,l.A)(1,arguments),6===(0,i.default)(e).getDay()}function p(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=d(n),a=(0,u.A)(t);if(isNaN(a))return new Date(NaN);var o=n.getHours(),s=a<0?-1:1,p=(0,u.A)(a/5);n.setDate(n.getDate()+7*p);for(var m=Math.abs(a%5);m>0;)n.setDate(n.getDate()+s),d(n)||(m-=1);return r&&d(n)&&0!==a&&(f(n)&&n.setDate(n.getDate()+(s<0?2:-1)),c(n)&&n.setDate(n.getDate()+(s<0?1:-2))),n.setHours(o),n}var m=n(21524),h=n(45042),g=n(32889),v=n(40063);function b(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,u.A)(t),a=(0,v.default)(n,(0,g.A)(n)),o=new Date(0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),(n=(0,g.A)(o)).setDate(n.getDate()+a),n}function y(e,t){(0,l.A)(2,arguments);var n=(0,u.A)(t);return b(e,(0,h.A)(e)+n)}var w=n(7767),x=n(92890),k=n(29852);function P(e,t){(0,l.A)(2,arguments);var n=(0,u.A)(t);return(0,w.A)(e,1e3*n)}var E=n(82238),A=n(49317);function D(e,t,n){(0,l.A)(2,arguments);var r=(0,i.default)(null==e?void 0:e.start).getTime(),a=(0,i.default)(null==e?void 0:e.end).getTime(),o=(0,i.default)(null==t?void 0:t.start).getTime(),u=(0,i.default)(null==t?void 0:t.end).getTime();if(!(r<=a&&o<=u))throw RangeError("Invalid interval");return null!=n&&n.inclusive?r<=u&&o<=a:r0?1:a}function _(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,i.default)(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}var N=n(57499);function L(e){return(0,l.A)(1,arguments),Math.floor(e/N.h)}var R=n(81810),z=n(86828);function I(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,i.default)(t);if(!(0,z.default)(n)||!(0,z.default)(r))return NaN;var o=(0,v.default)(n,r),s=o<0?-1:1,c=(0,u.A)(o/7),f=5*c;for(r=(0,a.default)(r,7*c);!(0,R.default)(n,r);)f+=d(r)?0:s,r=(0,a.default)(r,s);return 0===f?0:f}function F(e,t){return(0,l.A)(2,arguments),(0,h.A)(e)-(0,h.A)(t)}var W=n(67044),B=n(28504);function U(e,t){(0,l.A)(2,arguments);var n=(0,B.A)(e),r=(0,B.A)(t);return Math.round((n.getTime()-(0,W.A)(n)-(r.getTime()-(0,W.A)(r)))/6048e5)}var V=n(60667),$=n(34158);function H(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,i.default)(t);return 4*(n.getFullYear()-r.getFullYear())+((0,$.default)(n)-(0,$.default)(r))}var q=n(27827);function Y(e,t,n){(0,l.A)(2,arguments);var r=(0,q.default)(e,n),a=(0,q.default)(t,n);return Math.round((r.getTime()-(0,W.A)(r)-(a.getTime()-(0,W.A)(a)))/6048e5)}var G=n(82002);function K(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function X(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,i.default)(t),a=K(n,r),o=Math.abs((0,v.default)(n,r));n.setDate(n.getDate()-a*o);var u=Number(K(n,r)===-a),s=a*(o-u);return 0===s?0:s}function Q(e,t){return(0,l.A)(2,arguments),(0,i.default)(e).getTime()-(0,i.default)(t).getTime()}var J={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Z(e){return e?J[e]:J.trunc}function ee(e,t,n){(0,l.A)(2,arguments);var r=Q(e,t)/N.s0;return Z(null==n?void 0:n.roundingMethod)(r)}function et(e,t){return(0,l.A)(2,arguments),y(e,-(0,u.A)(t))}function en(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,i.default)(t),a=T(n,r),o=Math.abs(F(n,r)),u=Number(T(n=et(n,a*o),r)===-a),s=a*(o-u);return 0===s?0:s}function er(e,t,n){(0,l.A)(2,arguments);var r=Q(e,t)/N.Cg;return Z(null==n?void 0:n.roundingMethod)(r)}var ea=n(66212),eo=n(19312);function ei(e){(0,l.A)(1,arguments);var t=(0,i.default)(e);return(0,ea.default)(t).getTime()===(0,eo.default)(t).getTime()}function el(e,t){(0,l.A)(2,arguments);var n,r=(0,i.default)(e),a=(0,i.default)(t),o=T(r,a),u=Math.abs((0,V.default)(r,a));if(u<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*u);var s=T(r,a)===-o;ei((0,i.default)(e))&&1===u&&1===T(e,a)&&(s=!1),n=o*(u-Number(s))}return 0===n?0:n}function eu(e,t,n){(0,l.A)(2,arguments);var r=el(e,t)/3;return Z(null==n?void 0:n.roundingMethod)(r)}function es(e,t,n){(0,l.A)(2,arguments);var r=Q(e,t)/1e3;return Z(null==n?void 0:n.roundingMethod)(r)}function ed(e,t,n){(0,l.A)(2,arguments);var r=X(e,t)/7;return Z(null==n?void 0:n.roundingMethod)(r)}function ec(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,i.default)(t),a=T(n,r),o=Math.abs((0,G.default)(n,r));n.setFullYear(1584),r.setFullYear(1584);var u=T(n,r)===-a,s=a*(o-Number(u));return 0===s?0:s}function ef(e,t){(0,l.A)(1,arguments);var n,r=e||{},a=(0,i.default)(r.start),o=(0,i.default)(r.end).getTime();if(!(a.getTime()<=o))throw RangeError("Invalid interval");var u=[];a.setHours(0,0,0,0);var s=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(s<1||isNaN(s))throw RangeError("`options.step` must be a number greater than 1");for(;a.getTime()<=o;)u.push((0,i.default)(a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return u}function ep(e,t){(0,l.A)(1,arguments);var n,r=e||{},a=(0,i.default)(r.start),o=(0,i.default)(r.end),u=a.getTime(),s=o.getTime();if(!(u<=s))throw RangeError("Invalid interval");var d=[],c=a;c.setMinutes(0,0,0);var f=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(f<1||isNaN(f))throw RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=s;)d.push((0,i.default)(c)),c=(0,m.default)(c,f);return d}function em(e){(0,l.A)(1,arguments);var t=(0,i.default)(e);return t.setSeconds(0,0),t}function eh(e,t){(0,l.A)(1,arguments);var n,r=em((0,i.default)(e.start)),a=(0,i.default)(e.end),o=r.getTime(),u=a.getTime();if(o>=u)throw RangeError("Invalid interval");var s=[],d=r,c=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(c<1||isNaN(c))throw RangeError("`options.step` must be a number equal to or greater than 1");for(;d.getTime()<=u;)s.push((0,i.default)(d)),d=(0,x.default)(d,c);return s}function eg(e){(0,l.A)(1,arguments);var t=e||{},n=(0,i.default)(t.start),r=(0,i.default)(t.end).getTime(),a=[];if(!(n.getTime()<=r))throw RangeError("Invalid interval");for(n.setHours(0,0,0,0),n.setDate(1);n.getTime()<=r;)a.push((0,i.default)(n)),n.setMonth(n.getMonth()+1);return a}var ev=n(66757);function eb(e){(0,l.A)(1,arguments);var t=e||{},n=(0,i.default)(t.start),r=(0,i.default)(t.end),a=r.getTime();if(!(n.getTime()<=a))throw RangeError("Invalid interval");var o=(0,ev.default)(n);a=(0,ev.default)(r).getTime();for(var u=[],s=o;s.getTime()<=a;)u.push((0,i.default)(s)),s=(0,k.default)(s,1);return u}function ey(e,t){(0,l.A)(1,arguments);var n=e||{},r=(0,i.default)(n.start),a=(0,i.default)(n.end),o=a.getTime();if(!(r.getTime()<=o))throw RangeError("Invalid interval");var u=(0,q.default)(r,t),s=(0,q.default)(a,t);u.setHours(15),s.setHours(15),o=s.getTime();for(var d=[],c=u;c.getTime()<=o;)c.setHours(0),d.push((0,i.default)(c)),(c=(0,E.default)(c,1)).setHours(15);return d}function ew(e){(0,l.A)(1,arguments);for(var t=ef(e),n=[],r=0;r0?(o=(0,i.default)(t),u=(0,i.default)(e)):(o=(0,i.default)(e),u=(0,i.default)(t));var m=es(u,o),h=Math.round((m-((0,W.A)(u)-(0,W.A)(o))/1e3)/60);if(h<2){if(null!=n&&n.includeSeconds){if(m<5)return c.formatDistance("lessThanXSeconds",5,p);if(m<10)return c.formatDistance("lessThanXSeconds",10,p);if(m<20)return c.formatDistance("lessThanXSeconds",20,p);if(m<40)return c.formatDistance("halfAMinute",0,p);else if(m<60)return c.formatDistance("lessThanXMinutes",1,p);else return c.formatDistance("xMinutes",1,p)}return 0===h?c.formatDistance("lessThanXMinutes",1,p):c.formatDistance("xMinutes",h,p)}if(h<45)return c.formatDistance("xMinutes",h,p);if(h<90)return c.formatDistance("aboutXHours",1,p);if(h<1440){var g=Math.round(h/60);return c.formatDistance("aboutXHours",g,p)}if(h<2520)return c.formatDistance("xDays",1,p);if(h<43200){var v=Math.round(h/1440);return c.formatDistance("xDays",v,p)}if(h<86400)return s=Math.round(h/43200),c.formatDistance("aboutXMonths",s,p);if((s=el(u,o))<12){var b=Math.round(h/43200);return c.formatDistance("xMonths",b,p)}var y=s%12,w=Math.floor(s/12);return y<3?c.formatDistance("aboutXYears",w,p):y<9?c.formatDistance("overXYears",w,p):c.formatDistance("almostXYears",w+1,p)}function eV(e,t,n){(0,l.A)(2,arguments);var r,a,o,u,s,d,c,f=(0,eF.q)(),p=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:f.locale)&&void 0!==r?r:eW.A;if(!p.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var m=T(e,t);if(isNaN(m))throw RangeError("Invalid time value");var h=(0,eB.A)((0,eB.A)({},n),{addSuffix:!!(null==n?void 0:n.addSuffix),comparison:m});m>0?(u=(0,i.default)(t),s=(0,i.default)(e)):(u=(0,i.default)(e),s=(0,i.default)(t));var g=String(null!==(o=null==n?void 0:n.roundingMethod)&&void 0!==o?o:"round");if("floor"===g)d=Math.floor;else if("ceil"===g)d=Math.ceil;else if("round"===g)d=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=s.getTime()-u.getTime(),b=v/6e4,y=(v-((0,W.A)(s)-(0,W.A)(u)))/6e4,w=null==n?void 0:n.unit;if("second"===(c=w?String(w):b<1?"second":b<60?"minute":b<1440?"hour":y<43200?"day":y<525600?"month":"year")){var x=d(v/1e3);return p.formatDistance("xSeconds",x,h)}if("minute"===c){var k=d(b);return p.formatDistance("xMinutes",k,h)}if("hour"===c){var P=d(b/60);return p.formatDistance("xHours",P,h)}if("day"===c){var E=d(y/1440);return p.formatDistance("xDays",E,h)}if("month"===c){var A=d(y/43200);return 12===A&&"month"!==w?p.formatDistance("xYears",1,h):p.formatDistance("xMonths",A,h)}if("year"===c){var D=d(y/525600);return p.formatDistance("xYears",D,h)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function e$(e,t){return(0,l.A)(1,arguments),eU(e,Date.now(),t)}function eH(e,t){return(0,l.A)(1,arguments),eV(e,Date.now(),t)}var eq=["years","months","weeks","days","hours","minutes","seconds"];function eY(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only ".concat(arguments.length," present"));var n,r,a,o,i,l=(0,eF.q)(),u=null!==(n=null!==(r=null==t?void 0:t.locale)&&void 0!==r?r:l.locale)&&void 0!==n?n:eW.A,s=null!==(a=null==t?void 0:t.format)&&void 0!==a?a:eq,d=null!==(o=null==t?void 0:t.zero)&&void 0!==o&&o,c=null!==(i=null==t?void 0:t.delimiter)&&void 0!==i?i:" ";return u.formatDistance?s.reduce(function(t,n){var r="x".concat(n.replace(/(^.)/,function(e){return e.toUpperCase()})),a=e[n];return"number"==typeof a&&(d||e[n])?t.concat(u.formatDistance(r,a)):t},[]).join(c):""}var eG=n(66631);function eK(e,t){(0,l.A)(1,arguments);var n,r,a=(0,i.default)(e);if(isNaN(a.getTime()))throw RangeError("Invalid time value");var o=String(null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"extended"),u=String(null!==(r=null==t?void 0:t.representation)&&void 0!==r?r:"complete");if("extended"!==o&&"basic"!==o)throw RangeError("format must be 'extended' or 'basic'");if("date"!==u&&"time"!==u&&"complete"!==u)throw RangeError("representation must be 'date', 'time', or 'complete'");var s="",d="",c="extended"===o?"-":"";if("time"!==u){var f=(0,eG.A)(a.getDate(),2),p=(0,eG.A)(a.getMonth()+1,2),m=(0,eG.A)(a.getFullYear(),4);s="".concat(m).concat(c).concat(p).concat(c).concat(f)}if("date"!==u){var h=a.getTimezoneOffset();if(0!==h){var g=Math.abs(h),v=(0,eG.A)(Math.floor(g/60),2),b=(0,eG.A)(g%60,2);d="".concat(h<0?"+":"-").concat(v,":").concat(b)}else d="Z";var y=(0,eG.A)(a.getHours(),2),w=(0,eG.A)(a.getMinutes(),2),x=(0,eG.A)(a.getSeconds(),2),k=""===s?"":"T",P=[y,w,x].join("extended"===o?":":"");s="".concat(s).concat(k).concat(P).concat(d)}return s}function eX(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only ".concat(arguments.length," present"));var n,r,a=(0,i.default)(e);if(!(0,z.default)(a))throw RangeError("Invalid time value");var o=String(null!==(n=null==t?void 0:t.format)&&void 0!==n?n:"extended"),l=String(null!==(r=null==t?void 0:t.representation)&&void 0!==r?r:"complete");if("extended"!==o&&"basic"!==o)throw RangeError("format must be 'extended' or 'basic'");if("date"!==l&&"time"!==l&&"complete"!==l)throw RangeError("representation must be 'date', 'time', or 'complete'");var u="",s="extended"===o?"-":"",d="extended"===o?":":"";if("time"!==l){var c=(0,eG.A)(a.getDate(),2),f=(0,eG.A)(a.getMonth()+1,2),p=(0,eG.A)(a.getFullYear(),4);u="".concat(p).concat(s).concat(f).concat(s).concat(c)}if("date"!==l){var m=(0,eG.A)(a.getHours(),2),h=(0,eG.A)(a.getMinutes(),2),g=(0,eG.A)(a.getSeconds(),2),v=""===u?"":" ";u="".concat(u).concat(v).concat(m).concat(d).concat(h).concat(d).concat(g)}return u}function eQ(e){if((0,l.A)(1,arguments),"object"!==(0,r.A)(e))throw Error("Duration must be an object");var t=e.years,n=e.months,a=void 0===n?0:n,o=e.days,i=void 0===o?0:o,u=e.hours,s=void 0===u?0:u,d=e.minutes,c=void 0===d?0:d,f=e.seconds,p=void 0===f?0:f;return"P".concat(void 0===t?0:t,"Y").concat(a,"M").concat(i,"DT").concat(s,"H").concat(c,"M").concat(p,"S")}function eJ(e,t){if(arguments.length<1)throw TypeError("1 arguments required, but only ".concat(arguments.length," present"));var n,r=(0,i.default)(e);if(!(0,z.default)(r))throw RangeError("Invalid time value");var a=Number(null!==(n=null==t?void 0:t.fractionDigits)&&void 0!==n?n:0);if(!(a>=0&&a<=3))throw RangeError("fractionDigits must be between 0 and 3 inclusively");var o=(0,eG.A)(r.getDate(),2),l=(0,eG.A)(r.getMonth()+1,2),s=r.getFullYear(),d=(0,eG.A)(r.getHours(),2),c=(0,eG.A)(r.getMinutes(),2),f=(0,eG.A)(r.getSeconds(),2),p="";if(a>0){var m=Math.floor(r.getMilliseconds()*Math.pow(10,a-3));p="."+(0,eG.A)(m,a)}var h="",g=r.getTimezoneOffset();if(0!==g){var v=Math.abs(g),b=(0,eG.A)((0,u.A)(v/60),2),y=(0,eG.A)(v%60,2);h="".concat(g<0?"+":"-").concat(b,":").concat(y)}else h="Z";return"".concat(s,"-").concat(l,"-").concat(o,"T").concat(d,":").concat(c,":").concat(f).concat(p).concat(h)}var eZ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function e1(e){if(arguments.length<1)throw TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=(0,i.default)(e);if(!(0,z.default)(t))throw RangeError("Invalid time value");var n=eZ[t.getUTCDay()],r=(0,eG.A)(t.getUTCDate(),2),a=e0[t.getUTCMonth()],o=t.getUTCFullYear(),l=(0,eG.A)(t.getUTCHours(),2),u=(0,eG.A)(t.getUTCMinutes(),2),s=(0,eG.A)(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(o," ").concat(l,":").concat(u,":").concat(s," GMT")}var e2=n(25654);function e4(e,t,n){(0,l.A)(2,arguments);var r,a,o,s,d,c,f,p,m,h,g=(0,i.default)(e),b=(0,i.default)(t),y=(0,eF.q)(),w=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:y.locale)&&void 0!==r?r:eW.A,x=(0,u.A)(null!==(o=null!==(s=null!==(d=null!==(c=null==n?void 0:n.weekStartsOn)&&void 0!==c?c:null==n?void 0:null===(f=n.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==d?d:y.weekStartsOn)&&void 0!==s?s:null===(m=y.locale)||void 0===m?void 0:null===(h=m.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==o?o:0);if(!w.localize)throw RangeError("locale must contain localize property");if(!w.formatLong)throw RangeError("locale must contain formatLong property");if(!w.formatRelative)throw RangeError("locale must contain formatRelative property");var k=(0,v.default)(g,b);if(isNaN(k))throw RangeError("Invalid time value");var P=(0,e2.A)(g,(0,W.A)(g)),E=(0,e2.A)(b,(0,W.A)(b)),A=w.formatRelative(k<-6?"other":k<-1?"lastWeek":k<0?"yesterday":k<1?"today":k<2?"tomorrow":k<7?"nextWeek":"other",P,E,{locale:w,weekStartsOn:x});return(0,eI.default)(g,A,{locale:w,weekStartsOn:x})}function e3(e){(0,l.A)(1,arguments);var t=(0,u.A)(e);return(0,i.default)(1e3*t)}var e9=n(50274),e5=n(17512);function e6(e){(0,l.A)(1,arguments);var t=(0,i.default)(e);return(0,v.default)(t,(0,eE.default)(t))+1}var e8=n(18852);function e7(e){(0,l.A)(1,arguments);var t=(0,i.default)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}function te(e){(0,l.A)(1,arguments);var t=(0,i.default)(e);return"Invalid Date"===String(new Date(t))?NaN:e7(t)?366:365}function tt(e){return(0,l.A)(1,arguments),10*Math.floor((0,i.default)(e).getFullYear()/10)}function tn(){return(0,eB.A)({},(0,eF.q)())}var tr=n(68089);function ta(e){(0,l.A)(1,arguments);var t=(0,i.default)(e).getDay();return 0===t&&(t=7),t}var to=n(20863);function ti(e){(0,l.A)(1,arguments);var t=(0,g.A)(e);return Math.round(((0,g.A)((0,E.default)(t,60)).valueOf()-t.valueOf())/6048e5)}function tl(e){return(0,l.A)(1,arguments),(0,i.default)(e).getMilliseconds()}var tu=n(12563),ts=n(32044);function td(e,t){(0,l.A)(2,arguments);var n=e||{},r=t||{},a=(0,i.default)(n.start).getTime(),o=(0,i.default)(n.end).getTime(),u=(0,i.default)(r.start).getTime(),s=(0,i.default)(r.end).getTime();if(!(a<=o&&u<=s))throw RangeError("Invalid interval");return ao?o:s)-(u=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(m+1,0,g),v.setHours(0,0,0,0);var b=(0,q.default)(v,t),y=new Date(0);y.setFullYear(m,0,g),y.setHours(0,0,0,0);var w=(0,q.default)(y,t);return p.getTime()>=b.getTime()?m+1:p.getTime()>=w.getTime()?m:m-1}function th(e,t){(0,l.A)(1,arguments);var n,r,a,o,i,s,d,c,f=(0,eF.q)(),p=(0,u.A)(null!==(n=null!==(r=null!==(a=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t?void 0:null===(i=t.locale)||void 0===i?void 0:null===(s=i.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:f.firstWeekContainsDate)&&void 0!==r?r:null===(d=f.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),m=tm(e,t),h=new Date(0);return h.setFullYear(m,0,p),h.setHours(0,0,0,0),(0,q.default)(h,t)}function tg(e,t){(0,l.A)(1,arguments);var n=(0,i.default)(e);return Math.round(((0,q.default)(n,t).getTime()-th(n,t).getTime())/6048e5)+1}function tv(e,t){(0,l.A)(1,arguments);var n,r,a,o,i,s,d,c,f=(0,eF.q)(),p=(0,u.A)(null!==(n=null!==(r=null!==(a=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t?void 0:null===(i=t.locale)||void 0===i?void 0:null===(s=i.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==r?r:null===(d=f.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,e9.default)(e);if(isNaN(m))return NaN;var h=p-(0,e5.default)((0,ex.default)(e));return h<=0&&(h+=7),Math.ceil((m-h)/7)+1}function tb(e){(0,l.A)(1,arguments);var t=(0,i.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function ty(e,t){return(0,l.A)(1,arguments),Y(tb(e),(0,ex.default)(e),t)+1}var tw=n(72379);function tx(e){return(0,l.A)(1,arguments),Math.floor(e*N.s0)}function tk(e){return(0,l.A)(1,arguments),Math.floor(e*N.l5)}function tP(e){return(0,l.A)(1,arguments),Math.floor(e*N.tF)}function tE(e){(0,l.A)(1,arguments);var t=(0,i.default)(e.start),n=(0,i.default)(e.end);if(isNaN(t.getTime()))throw RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw RangeError("End Date is invalid");var r={};r.years=Math.abs(ec(n,t));var a=T(n,t),o=s(t,{years:a*r.years});r.months=Math.abs(el(n,o));var u=s(o,{months:a*r.months});r.days=Math.abs(X(n,u));var d=s(u,{days:a*r.days});r.hours=Math.abs(ee(n,d));var c=s(d,{hours:a*r.hours});r.minutes=Math.abs(er(n,c));var f=s(c,{minutes:a*r.minutes});return r.seconds=Math.abs(es(n,f)),r}function tA(e,t,n){var r,a;return(0,l.A)(1,arguments),void 0===t||"locale"in t?n=t:a=t,new Intl.DateTimeFormat(null===(r=n)||void 0===r?void 0:r.locale,a).format(e)}function tD(e,t,n){(0,l.A)(2,arguments);var r,a=0,o=(0,i.default)(e),u=(0,i.default)(t);if(null!=n&&n.unit)"second"===(r=null==n?void 0:n.unit)?a=es(o,u):"minute"===r?a=er(o,u):"hour"===r?a=ee(o,u):"day"===r?a=(0,v.default)(o,u):"week"===r?a=Y(o,u):"month"===r?a=(0,V.default)(o,u):"quarter"===r?a=H(o,u):"year"===r&&(a=(0,G.default)(o,u));else{var s=es(o,u);Math.abs(s)Math.abs((0,v.default)(o,u))?(a=ee(o,u),r="hour"):Math.abs(s)Math.abs(a)?r="day":Math.abs(s)H(o,u)?(a=H(o,u),r="quarter"):(a=(0,G.default)(o,u),r="year")}return new Intl.RelativeTimeFormat(null==n?void 0:n.locale,{localeMatcher:null==n?void 0:n.localeMatcher,numeric:(null==n?void 0:n.numeric)||"auto",style:null==n?void 0:n.style}).format(a,r)}var tO=n(79672),tC=n(27813),tM=n(15290),tS=n(25010);function tj(e,t,n){if(arguments.length<3)throw TypeError("3 argument required, but only "+arguments.length+" present");var r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}function tT(e){return(0,l.A)(1,arguments),1===(0,i.default)(e).getDate()}function t_(e){return(0,l.A)(1,arguments),5===(0,i.default)(e).getDay()}function tN(e){return(0,l.A)(1,arguments),(0,i.default)(e).getTime()>Date.now()}var tL=n(36657);function tR(e,t,n){return(0,l.A)(2,arguments),(0,z.default)((0,tL.default)(e,t,new Date,n))}function tz(e){return(0,l.A)(1,arguments),1===(0,i.default)(e).getDay()}function tI(e){return(0,l.A)(1,arguments),(0,i.default)(e).getTime()=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6");var h=(0,i.default)(e),g=h.getDay();return h.setHours(0,0,0,0),h.setDate(h.getDate()+((g30)throw RangeError("`options.nearestTo` must be between 1 and 30");var a=(0,i.default)(e),o=a.getSeconds(),l=a.getMinutes()+o/60,s=Z(null==t?void 0:t.roundingMethod)(l/r)*r,d=Math.round(l%r/r)*r;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),s+d)}function n$(e){return(0,l.A)(1,arguments),Math.floor(e/N.tF)}function nH(e){return(0,l.A)(1,arguments),e*N._m}function nq(e){return(0,l.A)(1,arguments),Math.floor(e/N.bF)}var nY=n(94074);function nG(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,u.A)(t);return n.setDate(r),n}function nK(e,t,n){(0,l.A)(2,arguments);var r,o,s,d,c,f,p,m,h=(0,eF.q)(),g=(0,u.A)(null!==(r=null!==(o=null!==(s=null!==(d=null==n?void 0:n.weekStartsOn)&&void 0!==d?d:null==n?void 0:null===(c=n.locale)||void 0===c?void 0:null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==o?o:null===(p=h.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,i.default)(e),b=(0,u.A)(t),y=v.getDay(),w=7-g;return(0,a.default)(v,b<0||b>6?b-(y+w)%7:((b%7+7)%7+w)%7-(y+w)%7)}function nX(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,u.A)(t);return n.setMonth(0),n.setDate(r),n}function nQ(e){(0,l.A)(1,arguments);var t={},n=(0,eF.q)();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(void 0===e[a]?delete t[a]:t[a]=e[a]);(0,eF.E)(t)}var nJ=n(67901);function nZ(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,u.A)(t),o=ta(n);return(0,a.default)(n,r-o)}function n0(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,u.A)(t),a=(0,to.default)(n)-r;return n.setDate(n.getDate()-7*a),n}function n1(e,t){(0,l.A)(2,arguments);var n=(0,i.default)(e),r=(0,u.A)(t);return n.setMilliseconds(r),n}var n2=n(67375),n4=n(61328),n3=n(56090),n9=n(41591);function n5(e,t,n){(0,l.A)(2,arguments);var r=(0,i.default)(e),a=(0,u.A)(t),o=tg(r,n)-a;return r.setDate(r.getDate()-7*o),r}function n6(e,t,n){(0,l.A)(2,arguments);var r,a,o,s,d,c,f,p,m=(0,eF.q)(),h=(0,u.A)(null!==(r=null!==(a=null!==(o=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n?void 0:null===(d=n.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==a?a:null===(f=m.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),g=(0,i.default)(e),b=(0,u.A)(t),y=(0,v.default)(g,th(g,n)),w=new Date(0);return w.setFullYear(b,0,h),w.setHours(0,0,0,0),(g=th(w,n)).setDate(g.getDate()+y),g}var n8=n(18895),n7=n(31127);function re(e){(0,l.A)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear();return t.setFullYear(10*Math.floor(n/10),0,1),t.setHours(0,0,0,0),t}function rt(){return(0,n7.default)(Date.now())}function rn(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function rr(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}var ra=n(44327);function ro(e,t){if((0,l.A)(2,arguments),!t||"object"!==(0,r.A)(t))return new Date(NaN);var n=t.years?(0,u.A)(t.years):0,a=t.months?(0,u.A)(t.months):0,o=t.weeks?(0,u.A)(t.weeks):0,i=t.days?(0,u.A)(t.days):0,s=t.hours?(0,u.A)(t.hours):0,d=t.minutes?(0,u.A)(t.minutes):0,c=t.seconds?(0,u.A)(t.seconds):0,f=(0,ra.default)(e,a+12*n),p=(0,ne.default)(f,i+7*o);return new Date(p.getTime()-1e3*(c+60*(d+60*s)))}function ri(e,t){return(0,l.A)(2,arguments),p(e,-(0,u.A)(t))}function rl(e,t){(0,l.A)(2,arguments);var n=(0,u.A)(t);return(0,m.default)(e,-n)}function ru(e,t){(0,l.A)(2,arguments);var n=(0,u.A)(t);return(0,x.default)(e,-n)}var rs=n(12657);function rd(e,t){return(0,l.A)(2,arguments),P(e,-(0,u.A)(t))}var rc=n(33337),rf=n(49326);function rp(e){return(0,l.A)(1,arguments),Math.floor(e*N.h)}function rm(e){return(0,l.A)(1,arguments),Math.floor(e*N.e8)}function rh(e){return(0,l.A)(1,arguments),Math.floor(e*N.gs)}},79672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()>o.getTime()}},27813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime(){"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82284),a=n(70551);function o(e){return(0,a.A)(1,arguments),e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},25010:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},81810:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31127),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},2702:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},60992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(66757),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},24125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()}},86828:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(15290),a=n(10123),o=n(70551);function i(e){return(0,o.A)(1,arguments),(!!(0,r.default)(e)||"number"==typeof e)&&!isNaN(Number((0,a.default)(e)))}},13652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e,t){(0,a.A)(2,arguments);var n=(0,r.default)(e).getTime(),o=(0,r.default)(t.start).getTime(),i=(0,r.default)(t.end).getTime();if(!(o<=i))throw RangeError("Invalid interval");return n>=o&&n<=i}},95047:(e,t,n)=>{"use strict";function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{A:()=>r})},14797:(e,t,n)=>{"use strict";function r(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var i=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{A:()=>r})},13091:(e,t,n)=>{"use strict";function r(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.width,o=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var l=i[0],u=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?function(e,t){for(var n=0;nr})},46171:(e,t,n)=>{"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},59475:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r={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"}};let a=function(e,t,n){var a,o=r[e];return(a="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+a:a+" ago":a}},18860:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};let a=function(e,t,n,a){return r[e]}},71412:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(14797),a={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.A)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.A)({values:{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"]},defaultWidth:"wide"}),day:(0,r.A)({values:{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"]},defaultWidth:"wide"}),dayPeriod:(0,r.A)({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};let o=a},79028:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(13091),a={ordinalNumber:(0,n(46171).A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,r.A)({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,r.A)({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:(0,r.A)({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:(0,r.A)({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};let o=a},91964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(59475),a=n(95047),o={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i=n(18860),l=n(71412),u=n(79028),s={code:"en-US",formatDistance:r.A,formatLong:o,formatRelative:i.A,localize:l.A,match:u.A,options:{weekStartsOn:0,firstWeekContainsDate:1}};let d=s},64123:(e,t,n)=>{"use strict";n.r(t),n.d(t,{af:()=>f,ar:()=>b,arDZ:()=>E,arEG:()=>S,arMA:()=>R,arSA:()=>U,arTN:()=>G,az:()=>en,be:()=>eg,beTarask:()=>eD,bg:()=>eL,bn:()=>eV,bs:()=>eK,ca:()=>e2,cs:()=>e7,cy:()=>to,da:()=>tc,de:()=>tx,deAT:()=>tA,el:()=>tj,enAU:()=>tI,enCA:()=>tB,enGB:()=>t$,enIE:()=>tq,enIN:()=>tK,enNZ:()=>tJ,enUS:()=>tZ.A,enZA:()=>t2,eo:()=>t8,es:()=>no,et:()=>np,eu:()=>nw,faIR:()=>nD,fi:()=>nU,fr:()=>nX,frCA:()=>nJ,frCH:()=>n1,fy:()=>n6,gd:()=>rr,gl:()=>rd,gu:()=>rg,he:()=>rP,hi:()=>rj,hr:()=>rz,ht:()=>rV,hu:()=>rZ,hy:()=>r9,id:()=>at,is:()=>al,it:()=>av,itCH:()=>ay,ja:()=>aA,jaHira:()=>aj,ka:()=>az,kk:()=>aY,km:()=>aZ,kn:()=>a5,ko:()=>on,lb:()=>op,lt:()=>oA,lv:()=>o_,mk:()=>oB,mn:()=>oY,ms:()=>oZ,mt:()=>o9,nb:()=>it,nl:()=>iu,nlBE:()=>ih,nn:()=>ik,oc:()=>iC,pl:()=>iW,pt:()=>iq,ptBR:()=>iJ,ro:()=>i3,ru:()=>la,sk:()=>lh,sl:()=>lx,sq:()=>lO,sr:()=>l_,srLatn:()=>lF,sv:()=>lq,ta:()=>lJ,te:()=>l3,th:()=>ue,tr:()=>ui,ug:()=>uf,uk:()=>uk,uz:()=>uC,uzCyrl:()=>uN,vi:()=>uW,zhCN:()=>uY,zhHK:()=>uZ,zhTW:()=>u9});var r={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},a=n(95047),o={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'m\xf4re om' p",nextWeek:"eeee 'om' p",other:"P"},l=n(14797),u={ordinalNumber:function(e){var t=Number(e),n=t%100;if(n<20)switch(n){case 1:case 8:break;default:return t+"de"}return t+"ste"},era:(0,l.A)({values:{narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},defaultFormattingWidth:"wide"})},s=n(13091),d=n(46171),c={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(ste|de)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},defaultMatchWidth:"wide",parsePatterns:{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:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},defaultParseWidth:"any"})};let f={code:"af",formatDistance:function(e,t,n){var a,o=r[e];return(a="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"oor "+a:a+" gelede":a},formatLong:o,formatRelative:function(e,t,n,r){return i[e]},localize:u,match:c,options:{weekStartsOn:0,firstWeekContainsDate:1}};var p={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانيتان",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتان",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريبا",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتان",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومان",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريبا",two:"أسبوعين تقريبا",threeToTen:"{{count}} أسابيع تقريبا",other:"{{count}} أسبوعا تقريبا"},xWeeks:{one:"أسبوع واحد",two:"أسبوعان",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوعا"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريبا",threeToTen:"{{count}} أشهر تقريبا",other:"{{count}} شهرا تقريباً"},xMonths:{one:"شهر واحد",two:"شهران",threeToTen:"{{count}} أشهر",other:"{{count}} شهرا"},aboutXYears:{one:"سنة واحدة تقريباً",two:"سنتين تقريبا",threeToTen:"{{count}} سنوات تقريباً",other:"{{count}} سنة تقريباً"},xYears:{one:"سنة واحد",two:"سنتان",threeToTen:"{{count}} سنوات",other:"{{count}} سنة"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنوات",other:"أكثر من {{count}} سنة"},almostXYears:{one:"ما يقارب سنة واحدة",two:"ما يقارب سنتين",threeToTen:"ما يقارب {{count}} سنوات",other:"ما يقارب {{count}} سنة"}},m={date:(0,a.A)({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'عند الساعة' {{time}}",long:"{{date}} 'عند الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},h={lastWeek:"eeee 'الماضي عند الساعة' p",yesterday:"'الأمس عند الساعة' p",today:"'اليوم عند الساعة' p",tomorrow:"'غدا عند الساعة' p",nextWeek:"eeee 'القادم عند الساعة' p",other:"P"},g={ordinalNumber:function(e){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"}},defaultFormattingWidth:"wide"})},v={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:"wide",parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[أيفمسند]/,abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^يناير/i,/^فبراير/i,/^مارس/i,/^أبريل/i,/^مايو/i,/^يونيو/i,/^يوليو/i,/^أغسطس/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/منتصف الليل/,noon:/الظهر/,afternoon:/بعد الظهر/,morning:/في الصباح/,evening:/في المساء/,night:/في الليل/}},defaultParseWidth:"any"})};let b={code:"ar",formatDistance:function(e,t,n){var r,a=p[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:t<=10?a.threeToTen.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"خلال "+r:"منذ "+r:r},formatLong:m,formatRelative:function(e){return h[e]},localize:g,match:v,options:{weekStartsOn:6,firstWeekContainsDate:1}};var y={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},w={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},x={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},k={ordinalNumber:function(e){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},P={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return Number(e)+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};let E={code:"ar-DZ",formatDistance:function(e,t,n){n=n||{};var r,a=y[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:t<=10?a.threeToTen.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),n.addSuffix)?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r},formatLong:w,formatRelative:function(e,t,n,r){return x[e]},localize:k,match:P,options:{weekStartsOn:0,firstWeekContainsDate:1}};var A={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"ثانيتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"حوالي ساعة",two:"حوالي ساعتين",threeToTen:"حوالي {{count}} ساعات",other:"حوالي {{count}} ساعة"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"حوالي أسبوع",two:"حوالي أسبوعين",threeToTen:"حوالي {{count}} أسابيع",other:"حوالي {{count}} أسبوع"},xWeeks:{one:"أسبوع",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"حوالي شهر",two:"حوالي شهرين",threeToTen:"حوالي {{count}} أشهر",other:"حوالي {{count}} شهر"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"حوالي سنة",two:"حوالي سنتين",threeToTen:"حوالي {{count}} سنين",other:"حوالي {{count}} سنة"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنين",other:"أكثر من {{count}} سنة"},almostXYears:{one:"عام تقريبًا",two:"عامين تقريبًا",threeToTen:"{{count}} أعوام تقريبًا",other:"{{count}} عام تقريبًا"}},D={date:(0,a.A)({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"dd/MMM/y",short:"d/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'الساعة' {{time}}",long:"{{date}} 'الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={lastWeek:"eeee 'اللي جاي الساعة' p",yesterday:"'إمبارح الساعة' p",today:"'النهاردة الساعة' p",tomorrow:"'بكرة الساعة' p",nextWeek:"eeee 'الساعة' p",other:"P"},C={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م","ب.م"],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",morning:"في الصباح",noon:"ظهراً",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},M={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)/,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ق|ب)/g,abbreviated:/^(ق.م|ب.م)/g,wide:/^(قبل الميلاد|بعد الميلاد)/g},defaultMatchWidth:"wide",parsePatterns:{any:[/^ق/g,/^ب/g]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/,abbreviated:/^ر[1234]/,wide:/^الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{wide:[/الربع الأول/,/الربع الثاني/,/الربع الثالث/,/الربع الرابع/],any:[/1/,/2/,/3/,/4/]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(ي|ف|م|أ|س|ن|د)/,abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/,/^ف/,/^م/,/^أ/,/^م/,/^ي/,/^ي/,/^أ/,/^س/,/^أ/,/^ن/,/^د/],any:[/^ينا/,/^فبر/,/^مارس/,/^أبريل/,/^مايو/,/^يون/,/^يول/,/^أغس/,/^سبت/,/^أكت/,/^نوف/,/^ديس/]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(ح|ن|ث|ر|خ|ج|س)/,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/,/^ن/,/^ث/,/^ر/,/^خ/,/^ج/,/^س/],any:[/أحد/,/اثنين/,/ثلاثاء/,/أربعاء/,/خميس/,/جمعة/,/سبت/]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,any:/^(ص|م|صباح|ظهر|مساء|ليل)/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^م/,midnight:/^ن/,noon:/^ظ/,morning:/^ص/,afternoon:/^بعد/,evening:/^م/,night:/^ل/}},defaultParseWidth:"any"})};let S={code:"ar-EG",formatDistance:function(e,t,n){var r,a=A[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:t<=10?a.threeToTen.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"في خلال ".concat(r):"منذ ".concat(r):r},formatLong:D,formatRelative:function(e,t,n,r){return O[e]},localize:C,match:M,options:{weekStartsOn:0,firstWeekContainsDate:1}};var j={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},T={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},N={ordinalNumber:function(e){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["ي","ف","م","أ","م","ي","ي","غ","ش","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","ماي","يونـ","يولـ","غشت","شتنـ","أكتـ","نونـ","دجنـ"],wide:["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},L={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return Number(e)+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^غ/i,/^ش/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^فب/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^غشت/i,/^ش/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الإثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^إث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};let R={code:"ar-MA",formatDistance:function(e,t,n){n=n||{};var r,a=j[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:t<=10?a.threeToTen.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),n.addSuffix)?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r},formatLong:T,formatRelative:function(e,t,n,r){return _[e]},localize:N,match:L,options:{weekStartsOn:1,firstWeekContainsDate:1}};var z={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},I={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},F={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},W={ordinalNumber:function(e){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},defaultFormattingWidth:"wide"})},B={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})};let U={code:"ar-SA",formatDistance:function(e,t,n){var r,a=z[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:t<=10?a.threeToTen.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"في خلال "+r:"منذ "+r:r},formatLong:I,formatRelative:function(e,t,n,r){return F[e]},localize:W,match:B,options:{weekStartsOn:0,firstWeekContainsDate:1}};var V={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من زوز ثواني",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"زوز ثواني",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة تقريب",two:"ساعتين تقريب",threeToTen:"{{count}} سوايع تقريب",other:"{{count}} ساعة تقريب"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} سوايع",other:"{{count}} ساعة"},xDays:{one:"نهار",two:"نهارين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"جمعة تقريب",two:"جمعتين تقريب",threeToTen:"{{count}} جماع تقريب",other:"{{count}} جمعة تقريب"},xWeeks:{one:"جمعة",two:"جمعتين",threeToTen:"{{count}} جماع",other:"{{count}} جمعة"},aboutXMonths:{one:"شهر تقريب",two:"شهرين تقريب",threeToTen:"{{count}} أشهرة تقريب",other:"{{count}} شهر تقريب"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهرة",other:"{{count}} شهر"},aboutXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"}},$={date:(0,a.A)({formats:{full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'مع' {{time}}",long:"{{date}} 'مع' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},H={lastWeek:"eeee 'إلي فات مع' p",yesterday:"'البارح مع' p",today:"'اليوم مع' p",tomorrow:"'غدوة مع' p",nextWeek:"eeee 'الجمعة الجاية مع' p 'نهار'",other:"P"},q={ordinalNumber:function(e){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["د","ن","أ","س","أ","ج","ج","م","أ","م","ف","ج"],abbreviated:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"}},defaultFormattingWidth:"wide"})},Y={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},defaultMatchWidth:"wide",parsePatterns:{any:[/قبل/,/بعد/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[جفمأسند]/,abbreviated:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جانفي/i,/^فيفري/i,/^مارس/i,/^أفريل/i,/^ماي/i,/^جوان/i,/^جويلية/i,/^أوت/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/,any:/^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ص/,pm:/^ع/,midnight:/نص الليل/,noon:/قايلة/,afternoon:/بعد القايلة/,morning:/صباح/,evening:/عشية/,night:/ليل/}},defaultParseWidth:"any"})};let G={code:"ar-TN",formatDistance:function(e,t,n){var r,a=V[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:t<=10?a.threeToTen.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"في "+r:"عندو "+r:r},formatLong:$,formatRelative:function(e){return H[e]},localize:q,match:Y,options:{weekStartsOn:1,firstWeekContainsDate:1}};var K={lessThanXSeconds:{one:"bir saniyədən az",other:"{{count}} bir saniyədən az"},xSeconds:{one:"1 saniyə",other:"{{count}} saniyə"},halfAMinute:"yarım dəqiqə",lessThanXMinutes:{one:"bir dəqiqədən az",other:"{{count}} bir dəqiqədən az"},xMinutes:{one:"bir dəqiqə",other:"{{count}} dəqiqə"},aboutXHours:{one:"təxminən 1 saat",other:"təxminən {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xfcn",other:"{{count}} g\xfcn"},aboutXWeeks:{one:"təxminən 1 həftə",other:"təxminən {{count}} həftə"},xWeeks:{one:"1 həftə",other:"{{count}} həftə"},aboutXMonths:{one:"təxminən 1 ay",other:"təxminən {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"təxminən 1 il",other:"təxminən {{count}} il"},xYears:{one:"1 il",other:"{{count}} il"},overXYears:{one:"1 ildən \xe7ox",other:"{{count}} ildən \xe7ox"},almostXYears:{one:"demək olar ki 1 il",other:"demək olar ki {{count}} il"}},X={date:(0,a.A)({formats:{full:"EEEE, do MMMM y 'il'",long:"do MMMM y 'il'",medium:"d MMM y 'il'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}} - 'də'",long:"{{date}} {{time}} - 'də'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Q={lastWeek:"'sonuncu' eeee p -'də'",yesterday:"'d\xfcnən' p -'də'",today:"'bug\xfcn' p -'də'",tomorrow:"'sabah' p -'də'",nextWeek:"eeee p -'də'",other:"P"},J={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},Z=function(e){if(0===e)return e+"-ıncı";var t=e%10,n=e%100-t,r=e>=100?100:null;return J[t]?J[t]:J[n]?J[n]:null!==r?J[r]:""},ee={ordinalNumber:function(e,t){var n=Number(e),r=Z(n);return n+r},era:(0,l.A)({values:{narrow:["e.ə","b.e"],abbreviated:["e.ə","b.e"],wide:["eramızdan əvvəl","bizim era"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ci kvartal","2ci kvartal","3c\xfc kvartal","4c\xfc kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Y","F","M","A","M","İ","İ","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","İyun","İyul","Avq","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["B.","B.e","\xc7.a","\xc7.","C.a","C.","Ş."],short:["B.","B.e","\xc7.a","\xc7.","C.a","C.","Ş."],abbreviated:["Baz","Baz.e","\xc7ər.a","\xc7ər","C\xfcm.a","C\xfcm","Şə"],wide:["Bazar","Bazar ertəsi","\xc7ərşənbə axşamı","\xc7ərşənbə","C\xfcmə axşamı","C\xfcmə","Şənbə"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"am",pm:"pm",midnight:"gecəyarı",noon:"g\xfcn",morning:"səhər",afternoon:"g\xfcnd\xfcz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"g\xfcn",morning:"səhər",afternoon:"g\xfcnd\xfcz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"g\xfcn",morning:"səhər",afternoon:"g\xfcnd\xfcz",evening:"axşam",night:"gecə"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"gecəyarı",noon:"g\xfcn",morning:"səhər",afternoon:"g\xfcnd\xfcz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"g\xfcn",morning:"səhər",afternoon:"g\xfcnd\xfcz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"g\xfcn",morning:"səhər",afternoon:"g\xfcnd\xfcz",evening:"axşam",night:"gecə"}},defaultFormattingWidth:"wide"})},et={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan əvvəl|bizim era)$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b$/i,/^(a|c)$/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},defaultParseWidth:"narrow"}),day:(0,s.A)({matchPatterns:{narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i,wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^Çər\.a$/i,/^Çər$/i,/^Cüm\.a$/i,/^Cüm$/i,/^Şə$/i],wide:[/^Bazar$/i,/^Bazar ertəsi$/i,/^Çərşənbə axşamı$/i,/^Çərşənbə$/i,/^Cümə axşamı$/i,/^Cümə$/i,/^Şənbə$/i],any:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a$/i,pm:/^p$/i,midnight:/^gecəyarı$/i,noon:/^gün$/i,morning:/səhər$/i,afternoon:/gündüz$/i,evening:/axşam$/i,night:/gecə$/i}},defaultParseWidth:"any"})};let en={code:"az",formatDistance:function(e,t,n){var r,a=K[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" sonra":r+" əvvəl":r},formatLong:X,formatRelative:function(e,t,n,r){return Q[e]},localize:ee,match:et,options:{weekStartsOn:1,firstWeekContainsDate:1}};function er(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function ea(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?er(e.future,t):"праз "+er(e.regular,t):e.past?er(e.past,t):er(e.regular,t)+" таму":er(e.regular,t)}}var eo={lessThanXSeconds:ea({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:ea({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны"},lessThanXMinutes:ea({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:ea({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:ea({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:ea({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:ea({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:ea({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xWeeks:ea({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXMonths:ea({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:ea({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:ea({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:ea({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:ea({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:ea({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},ei={date:(0,a.A)({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},el=n(10123),eu=n(70551),es=n(89742);function ed(e,t,n){(0,eu.A)(2,arguments);var r=(0,es.A)(e,n),a=(0,es.A)(t,n);return r.getTime()===a.getTime()}var ec=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function ef(e){return"'у "+ec[e]+" а' p"}var ep={lastWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?ef(a):function(e){var t=ec[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}(a)},yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?ef(a):function(e){var t=ec[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}(a)},other:"P"},em={ordinalNumber:function(e,t){var n=String(null==t?void 0:t.unit),r=Number(e);return r+("date"===n?"-га":"hour"===n||"minute"===n||"second"===n?"-я":(r%10==2||r%10==3)&&r%100!=12&&r%100!=13?"-і":"-ы")},era:(0,l.A)({values:{narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},defaultFormattingWidth:"wide"})},eh={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})};let eg={code:"be",formatDistance:function(e,t,n){return n=n||{},eo[e](t,n)},formatLong:ei,formatRelative:function(e,t,n,r){var a=ep[e];return"function"==typeof a?a(t,n,r):a},localize:em,match:eh,options:{weekStartsOn:1,firstWeekContainsDate:1}};function ev(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function eb(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?ev(e.future,t):"праз "+ev(e.regular,t):e.past?ev(e.past,t):ev(e.regular,t)+" таму":ev(e.regular,t)}}var ey={lessThanXSeconds:eb({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:eb({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны"},lessThanXMinutes:eb({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:eb({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:eb({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:eb({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:eb({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:eb({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xWeeks:eb({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXMonths:eb({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:eb({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:eb({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:eb({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:eb({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:eb({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},ew={date:(0,a.A)({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},ex=["нядзелю","панядзелак","аўторак","сераду","чацьвер","пятніцу","суботу"];function ek(e){return"'у "+ex[e]+" а' p"}var eP={lastWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?ek(a):function(e){var t=ex[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}(a)},yesterday:"'учора а' p",today:"'сёньня а' p",tomorrow:"'заўтра а' p",nextWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?ek(a):function(e){var t=ex[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}(a)},other:"P"},eE={ordinalNumber:function(e,t){var n=String(null==t?void 0:t.unit),r=Number(e);return r+("date"===n?"-га":"hour"===n||"minute"===n||"second"===n?"-я":(r%10==2||r%10==3)&&r%100!=12&&r%100!=13?"-і":"-ы")},era:(0,l.A)({values:{narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","сьнежань"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзеня","лютага","сакавіка","красавіка","траўня","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","сьнежня"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чаць","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацьвер","пятніца","субота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},defaultFormattingWidth:"wide"})},eA={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^тр/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})};let eD={code:"be-tarask",formatDistance:function(e,t,n){return n=n||{},ey[e](t,n)},formatLong:ew,formatRelative:function(e,t,n,r){var a=eP[e];return"function"==typeof a?a(t,n,r):a},localize:eE,match:eA,options:{weekStartsOn:1,firstWeekContainsDate:1}};var eO={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},eC={date:(0,a.A)({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},eM=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function eS(e){var t=eM[e];return 2===e?"'във "+t+" в' p":"'в "+t+" в' p"}var ej={lastWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?eS(a):function(e){var t=eM[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}(a)},yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?eS(a):function(e){var t=eM[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}(a)},other:"P"};function eT(e,t,n,r,a){return e+"-"+("quarter"===t?a:"year"===t||"week"===t||"minute"===t||"second"===t?r:n)}var e_={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if(0===n)return eT(0,r,"ев","ева","ево");if(n%1e3==0)return eT(n,r,"ен","на","но");if(n%100==0)return eT(n,r,"тен","тна","тно");var a=n%100;if(a>20||a<10)switch(a%10){case 1:return eT(n,r,"ви","ва","во");case 2:return eT(n,r,"ри","ра","ро");case 7:case 8:return eT(n,r,"ми","ма","мо")}return eT(n,r,"ти","та","то")},era:(0,l.A)({values:{narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}},defaultWidth:"wide"})},eN={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},defaultParseWidth:"any"})};let eL={code:"bg",formatDistance:function(e,t,n){var r,a=eO[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"след "+r:"преди "+r:r},formatLong:eC,formatRelative:function(e,t,n,r){var a=ej[e];return"function"==typeof a?a(t,n,r):a},localize:e_,match:eN,options:{weekStartsOn:1,firstWeekContainsDate:1}};var eR={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}};function ez(e){return e.toString().replace(/\d/g,function(e){return eR.locale[e]})}var eI={ordinalNumber:function(e,t){var n=Number(e),r=ez(n);if("date"===(null==t?void 0:t.unit))return function(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}(n,r);if(n>10||0===n)return r+"তম";switch(n%10){case 2:case 3:return r+"য়";case 4:return r+"র্থ";case 6:return r+"ষ্ঠ";default:return r+"ম"}},era:(0,l.A)({values:{narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},defaultWidth:"wide",formattingValues:{narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},defaultFormattingWidth:"wide"})},eF={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},eW={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eB={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},eU={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},defaultParseWidth:"wide"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},defaultMatchWidth:"wide",parsePatterns:{any:[/১/i,/২/i,/৩/i,/৪/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},defaultParseWidth:"wide"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},defaultParseWidth:"any"})};let eV={code:"bn",formatDistance:function(e,t,n){var r,a=eF[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",ez(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" এর মধ্যে":r+" আগে":r},formatLong:eW,formatRelative:function(e,t,n,r){return eB[e]},localize:eI,match:eU,options:{weekStartsOn:0,firstWeekContainsDate:1}};var e$={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 sedmicu",withPrepositionAgo:"oko 1 sedmicu",withPrepositionIn:"oko 1 sedmicu"},dual:"oko {{count}} sedmice",other:"oko {{count}} sedmice"},xWeeks:{one:{standalone:"1 sedmicu",withPrepositionAgo:"1 sedmicu",withPrepositionIn:"1 sedmicu"},dual:"{{count}} sedmice",other:"{{count}} sedmice"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},eH={date:(0,a.A)({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},eq={lastWeek:function(e){switch(e.getUTCDay()){case 0:return"'prošle nedjelje u' p";case 3:return"'prošle srijede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(e){switch(e.getUTCDay()){case 0:return"'sljedeće nedjelje u' p";case 3:return"'sljedeću srijedu u' p";case 6:return"'sljedeću subotu u' p";default:return"'sljedeći' EEEE 'u' p"}},other:"P"},eY={ordinalNumber:function(e,t){return String(Number(e))+"."},era:(0,l.A)({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Prije Hrista","Poslije Hrista"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},defaultFormattingWidth:"wide"})},eG={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})};let eK={code:"bs",formatDistance:function(e,t,n){var r,a=e$[e];return(r="string"==typeof a?a:1===t?null!=n&&n.addSuffix?n.comparison&&n.comparison>0?a.one.withPrepositionIn:a.one.withPrepositionAgo:a.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?a.dual.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},formatLong:eH,formatRelative:function(e,t,n,r){var a=eq[e];return"function"==typeof a?a(t):a},localize:eY,match:eG,options:{weekStartsOn:1,firstWeekContainsDate:4}};var eX={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"m\xe9s d'un any",eleven:"m\xe9s d'onze anys",other:"m\xe9s de {{count}} anys"},almostXYears:{one:"gaireb\xe9 un any",other:"gaireb\xe9 {{count}} anys"}},eQ={date:(0,a.A)({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eJ={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'dem\xe0 a la' p",nextWeek:"eeee 'a la' p",other:"P"},eZ={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'dem\xe0 a les' p",nextWeek:"eeee 'a les' p",other:"P"},e0={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 3:return n+"r";case 2:return n+"n";case 4:return n+"t"}return n+"\xe8"},era:(0,l.A)({values:{narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","despr\xe9s de Crist"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["GN","FB","M\xc7","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","mar\xe7","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","mar\xe7","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"mat\xed",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"mat\xed",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"mat\xed",afternoon:"tarda",evening:"vespre",night:"nit"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del mat\xed",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del mat\xed",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del mat\xed",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},defaultFormattingWidth:"wide"})},e1={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(è|r|n|r|t)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},defaultParseWidth:"wide"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},defaultParseWidth:"wide"}),day:(0,s.A)({matchPatterns:{narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},defaultParseWidth:"wide"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},defaultParseWidth:"any"})};let e2={code:"ca",formatDistance:function(e,t,n){var r,a=eX[e];return(r="string"==typeof a?a:1===t?a.one:11===t&&a.eleven?a.eleven:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"en "+r:"fa "+r:r},formatLong:eQ,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?eZ[e]:eJ[e]},localize:e0,match:e1,options:{weekStartsOn:1,firstWeekContainsDate:4}};var e4={lessThanXSeconds:{one:{regular:"m\xe9ně než sekunda",past:"před m\xe9ně než sekundou",future:"za m\xe9ně než sekundu"},few:{regular:"m\xe9ně než {{count}} sekundy",past:"před m\xe9ně než {{count}} sekundami",future:"za m\xe9ně než {{count}} sekundy"},many:{regular:"m\xe9ně než {{count}} sekund",past:"před m\xe9ně než {{count}} sekundami",future:"za m\xe9ně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"m\xe9ně než minuta",past:"před m\xe9ně než minutou",future:"za m\xe9ně než minutu"},few:{regular:"m\xe9ně než {{count}} minuty",past:"před m\xe9ně než {{count}} minutami",future:"za m\xe9ně než {{count}} minuty"},many:{regular:"m\xe9ně než {{count}} minut",past:"před m\xe9ně než {{count}} minutami",future:"za m\xe9ně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xed",past:"před {{count}} dny",future:"za {{count}} dn\xed"}},aboutXWeeks:{one:{regular:"přibližně t\xfdden",past:"přibližně před t\xfddnem",future:"přibližně za t\xfdden"},few:{regular:"přibližně {{count}} t\xfddny",past:"přibližně před {{count}} t\xfddny",future:"přibližně za {{count}} t\xfddny"},many:{regular:"přibližně {{count}} t\xfddnů",past:"přibližně před {{count}} t\xfddny",future:"přibližně za {{count}} t\xfddnů"}},xWeeks:{one:{regular:"t\xfdden",past:"před t\xfddnem",future:"za t\xfdden"},few:{regular:"{{count}} t\xfddny",past:"před {{count}} t\xfddny",future:"za {{count}} t\xfddny"},many:{regular:"{{count}} t\xfddnů",past:"před {{count}} t\xfddny",future:"za {{count}} t\xfddnů"}},aboutXMonths:{one:{regular:"přibližně měs\xedc",past:"přibližně před měs\xedcem",future:"přibližně za měs\xedc"},few:{regular:"přibližně {{count}} měs\xedce",past:"přibližně před {{count}} měs\xedci",future:"přibližně za {{count}} měs\xedce"},many:{regular:"přibližně {{count}} měs\xedců",past:"přibližně před {{count}} měs\xedci",future:"přibližně za {{count}} měs\xedců"}},xMonths:{one:{regular:"měs\xedc",past:"před měs\xedcem",future:"za měs\xedc"},few:{regular:"{{count}} měs\xedce",past:"před {{count}} měs\xedci",future:"za {{count}} měs\xedce"},many:{regular:"{{count}} měs\xedců",past:"před {{count}} měs\xedci",future:"za {{count}} měs\xedců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"v\xedce než rok",past:"před v\xedce než rokem",future:"za v\xedce než rok"},few:{regular:"v\xedce než {{count}} roky",past:"před v\xedce než {{count}} roky",future:"za v\xedce než {{count}} roky"},many:{regular:"v\xedce než {{count}} roků",past:"před v\xedce než {{count}} roky",future:"za v\xedce než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},e3={date:(0,a.A)({formats:{full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},e9=["neděli","ponděl\xed","\xfater\xfd","středu","čtvrtek","p\xe1tek","sobotu"],e5={lastWeek:"'posledn\xed' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'z\xedtra v' p",nextWeek:function(e){return"'v "+e9[e.getUTCDay()]+" o' p"},other:"P"},e6={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naš\xedm letopočtem","našeho letopočtu"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1. čtvrtlet\xed","2. čtvrtlet\xed","3. čtvrtlet\xed","4. čtvrtlet\xed"],wide:["1. čtvrtlet\xed","2. čtvrtlet\xed","3. čtvrtlet\xed","4. čtvrtlet\xed"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["L","\xda","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","\xfano","bře","dub","kvě","čvn","čvc","srp","z\xe1ř","ř\xedj","lis","pro"],wide:["leden","\xfanor","březen","duben","květen","červen","červenec","srpen","z\xe1ř\xed","ř\xedjen","listopad","prosinec"]},defaultWidth:"wide",formattingValues:{narrow:["L","\xda","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","\xfano","bře","dub","kvě","čvn","čvc","srp","z\xe1ř","ř\xedj","lis","pro"],wide:["ledna","\xfanora","března","dubna","května","června","července","srpna","z\xe1ř\xed","ř\xedjna","listopadu","prosince"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["ne","po","\xfat","st","čt","p\xe1","so"],short:["ne","po","\xfat","st","čt","p\xe1","so"],abbreviated:["ned","pon","\xfate","stř","čtv","p\xe1t","sob"],wide:["neděle","ponděl\xed","\xfater\xfd","středa","čtvrtek","p\xe1tek","sobota"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"večer",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"večer",night:"noc"}},defaultFormattingWidth:"wide"})},e8={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p[řr]/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},defaultParseWidth:"any"})};let e7={code:"cs",formatDistance:function(e,t,n){var r,a=e4[e];r="other"===a.type?a.other:1===t?a.one:t>1&&t<5?a.few:a.many;var o=(null==n?void 0:n.addSuffix)===!0,i=null==n?void 0:n.comparison;return(o&&-1===i?r.past:o&&1===i?r.future:r.regular).replace("{{count}}",String(t))},formatLong:e3,formatRelative:function(e,t){var n=e5[e];return"function"==typeof n?n(t):n},localize:e6,match:e8,options:{weekStartsOn:1,firstWeekContainsDate:4}};var te={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},tt={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tn={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},tr={ordinalNumber:function(e,t){var n=Number(e);if(n<20)switch(n){case 0:case 7:case 8:case 9:case 10:case 12:case 15:case 18:return n+"fed";case 1:return n+"af";case 2:return n+"ail";case 3:case 4:return n+"ydd";case 5:case 6:return n+"ed";case 11:case 13:case 14:case 16:case 17:case 19:return n+"eg"}else if(n>=50&&n<=60||80===n||n>=100)return n+"fed";return n+"ain"},era:(0,l.A)({values:{narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar \xf4l Crist"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},defaultWidth:"wide",formattingValues:{narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},defaultFormattingWidth:"wide"})},ta={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},defaultParseWidth:"any"})};let to={code:"cy",formatDistance:function(e,t,n){var r,a=te[e];return(r="string"==typeof a?a:1===t?a.one:2===t&&a.two?a.two:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"mewn "+r:r+" yn \xf4l":r},formatLong:tt,formatRelative:function(e,t,n,r){return tn[e]},localize:tr,match:ta,options:{weekStartsOn:0,firstWeekContainsDate:1}};var ti={lessThanXSeconds:{one:"mindre end \xe9t sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"\xe9t halvt minut",lessThanXMinutes:{one:"mindre end \xe9t minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 m\xe5ned",other:"cirka {{count}} m\xe5neder"},xMonths:{one:"1 m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"cirka 1 \xe5r",other:"cirka {{count}} \xe5r"},xYears:{one:"1 \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over 1 \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"n\xe6sten 1 \xe5r",other:"n\xe6sten {{count}} \xe5r"}},tl={date:(0,a.A)({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},tu={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'p\xe5' eeee 'kl.' p",other:"P"},ts={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["f\xf8r vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n.","man.","tir.","ons.","tor.","fre.","l\xf8r."],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},td={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})};let tc={code:"da",formatDistance:function(e,t,n){var r,a=ti[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},formatLong:tl,formatRelative:function(e,t,n,r){return tu[e]},localize:ts,match:td,options:{weekStartsOn:1,firstWeekContainsDate:4}};var tf={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}};let tp=function(e,t,n){var r,a=null!=n&&n.addSuffix?tf[e].withPreposition:tf[e].standalone;return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r};var tm={date:(0,a.A)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},th={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"};let tg=function(e,t,n,r){return th[e]};var tv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},tb={narrow:tv.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:tv.wide},ty={ordinalNumber:function(e){return Number(e)+"."},era:(0,l.A)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:tv,formattingValues:tb,defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},tw={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,s.A)({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{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:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})};let tx={code:"de",formatDistance:tp,formatLong:tm,formatRelative:tg,localize:ty,match:tw,options:{weekStartsOn:1,firstWeekContainsDate:4}};var tk={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["J\xe4n","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["J\xe4nner","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},tP={narrow:tk.narrow,abbreviated:["J\xe4n.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:tk.wide},tE={ordinalNumber:function(e){return Number(e)+"."},era:(0,l.A)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:tk,formattingValues:tP,defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})};let tA={code:"de-AT",formatDistance:tp,formatLong:tm,formatRelative:tg,localize:tE,match:tw,options:{weekStartsOn:1,firstWeekContainsDate:4}};var tD={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},tO={date:(0,a.A)({formats:{full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tC={lastWeek:function(e){return 6===e.getUTCDay()?"'το προηγούμενο' eeee 'στις' p":"'την προηγούμενη' eeee 'στις' p"},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},tM={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;return n+("year"===r||"month"===r?"ος":"week"===r||"dayOfYear"===r||"day"===r||"hour"===r||"date"===r?"η":"ο")},era:(0,l.A)({values:{narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},defaultWidth:"wide",formattingValues:{narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},defaultWidth:"wide"})},tS={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(ος|η|ο)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^π/i,/^(μ|κ)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},defaultParseWidth:"any"})};let tj={code:"el",formatDistance:function(e,t,n){var r,a=tD[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"σε "+r:r+" πριν":r},formatLong:tO,formatRelative:function(e,t){var n=tC[e];return"function"==typeof n?n(t):n},localize:tM,match:tS,options:{weekStartsOn:1,firstWeekContainsDate:4}};var tT=n(59475),t_={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tN=n(18860),tL=n(71412),tR=n(79028),tz={code:"en-AU",formatDistance:tT.A,formatLong:t_,formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:1,firstWeekContainsDate:4}};let tI=tz;var tF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},tW={code:"en-CA",formatDistance:function(e,t,n){var r,a=tF[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:{date:(0,a.A)({formats:{full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:0,firstWeekContainsDate:1}};let tB=tW;var tU={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tV={code:"en-GB",formatDistance:tT.A,formatLong:tU,formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:1,firstWeekContainsDate:4}};let t$=tV;var tH={code:"en-IE",formatDistance:tT.A,formatLong:tU,formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:1,firstWeekContainsDate:4}};let tq=tH;var tY={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM, yyyy",medium:"d MMM, yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tG={code:"en-IN",formatDistance:tT.A,formatLong:tY,formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:1,firstWeekContainsDate:4}};let tK=tG;var tX={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},tQ={code:"en-NZ",formatDistance:tT.A,formatLong:tX,formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:1,firstWeekContainsDate:4}};let tJ=tQ;var tZ=n(91964),t0={date:(0,a.A)({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},t1={code:"en-ZA",formatDistance:tT.A,formatLong:t0,formatRelative:tN.A,localize:tL.A,match:tR.A,options:{weekStartsOn:0,firstWeekContainsDate:1}};let t2=t1;var t4={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},t3={date:(0,a.A)({formats:{full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},t9={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},t5={ordinalNumber:function(e){return Number(e)+"-a"},era:(0,l.A)({values:{narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},defaultWidth:"wide"})},t6={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?a)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^[kp]/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})};let t8={code:"eo",formatDistance:function(e,t,n){var r,a=t4[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?null!=n&&n.comparison&&n.comparison>0?"post "+r:"antaŭ "+r:r},formatLong:t3,formatRelative:function(e,t,n,r){return t9[e]},localize:t5,match:t6,options:{weekStartsOn:1,firstWeekContainsDate:4}};var t7={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},ne={date:(0,a.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nt={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},nn={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},nr={ordinalNumber:function(e,t){return Number(e)+"\xba"},era:(0,l.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","s\xe1"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},na={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})};let no={code:"es",formatDistance:function(e,t,n){var r,a=t7[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},formatLong:ne,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?nn[e]:nt[e]},localize:nr,match:na,options:{weekStartsOn:1,firstWeekContainsDate:1}};var ni={lessThanXSeconds:{standalone:{one:"v\xe4hem kui \xfcks sekund",other:"v\xe4hem kui {{count}} sekundit"},withPreposition:{one:"v\xe4hem kui \xfche sekundi",other:"v\xe4hem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"\xfcks sekund",other:"{{count}} sekundit"},withPreposition:{one:"\xfche sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"v\xe4hem kui \xfcks minut",other:"v\xe4hem kui {{count}} minutit"},withPreposition:{one:"v\xe4hem kui \xfche minuti",other:"v\xe4hem kui {{count}} minuti"}},xMinutes:{standalone:{one:"\xfcks minut",other:"{{count}} minutit"},withPreposition:{one:"\xfche minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes \xfcks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes \xfche tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"\xfcks tund",other:"{{count}} tundi"},withPreposition:{one:"\xfche tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"\xfcks p\xe4ev",other:"{{count}} p\xe4eva"},withPreposition:{one:"\xfche p\xe4eva",other:"{{count}} p\xe4eva"}},aboutXWeeks:{standalone:{one:"umbes \xfcks n\xe4dal",other:"umbes {{count}} n\xe4dalat"},withPreposition:{one:"umbes \xfche n\xe4dala",other:"umbes {{count}} n\xe4dala"}},xWeeks:{standalone:{one:"\xfcks n\xe4dal",other:"{{count}} n\xe4dalat"},withPreposition:{one:"\xfche n\xe4dala",other:"{{count}} n\xe4dala"}},aboutXMonths:{standalone:{one:"umbes \xfcks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes \xfche kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"\xfcks kuu",other:"{{count}} kuud"},withPreposition:{one:"\xfche kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes \xfcks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes \xfche aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"\xfcks aasta",other:"{{count}} aastat"},withPreposition:{one:"\xfche aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui \xfcks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui \xfche aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu \xfcks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu \xfche aasta",other:"peaaegu {{count}} aasta"}}},nl={date:(0,a.A)({formats:{full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},defaultWidth:"full"})},nu={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'t\xe4na kell' p",tomorrow:"'homme kell' p",nextWeek:"'j\xe4rgmine' eeee 'kell' p",other:"P"},ns={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","m\xe4rts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","m\xe4rts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},nd={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["p\xfchap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["p\xfchap\xe4ev","esmasp\xe4ev","teisip\xe4ev","kolmap\xe4ev","neljap\xe4ev","reede","laup\xe4ev"]},nc={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise j\xe4rgi"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:ns,defaultWidth:"wide",formattingValues:ns,defaultFormattingWidth:"wide"}),day:(0,l.A)({values:nd,defaultWidth:"wide",formattingValues:nd,defaultFormattingWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6",noon:"keskp\xe4ev",morning:"hommik",afternoon:"p\xe4rastl\xf5una",evening:"\xf5htu",night:"\xf6\xf6"},abbreviated:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6",noon:"keskp\xe4ev",morning:"hommik",afternoon:"p\xe4rastl\xf5una",evening:"\xf5htu",night:"\xf6\xf6"},wide:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6",noon:"keskp\xe4ev",morning:"hommik",afternoon:"p\xe4rastl\xf5una",evening:"\xf5htu",night:"\xf6\xf6"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6l",noon:"keskp\xe4eval",morning:"hommikul",afternoon:"p\xe4rastl\xf5unal",evening:"\xf5htul",night:"\xf6\xf6sel"},abbreviated:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6l",noon:"keskp\xe4eval",morning:"hommikul",afternoon:"p\xe4rastl\xf5unal",evening:"\xf5htul",night:"\xf6\xf6sel"},wide:{am:"AM",pm:"PM",midnight:"kesk\xf6\xf6l",noon:"keskp\xe4eval",morning:"hommikul",afternoon:"p\xe4rastl\xf5unal",evening:"\xf5htul",night:"\xf6\xf6sel"}},defaultFormattingWidth:"wide"})},nf={ordinalNumber:(0,d.A)({matchPattern:/^\d+\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^(m|p)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},defaultParseWidth:"any"})};let np={code:"et",formatDistance:function(e,t,n){var r,a=null!=n&&n.addSuffix?ni[e].withPreposition:ni[e].standalone;return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" p\xe4rast":r+" eest":r},formatLong:nl,formatRelative:function(e,t,n,r){return nu[e]},localize:nc,match:nf,options:{weekStartsOn:1,firstWeekContainsDate:4}};var nm={lessThanXSeconds:{one:"segundo bat baino gutxiago",other:"{{count}} segundo baino gutxiago"},xSeconds:{one:"1 segundo",other:"{{count}} segundo"},halfAMinute:"minutu erdi",lessThanXMinutes:{one:"minutu bat baino gutxiago",other:"{{count}} minutu baino gutxiago"},xMinutes:{one:"1 minutu",other:"{{count}} minutu"},aboutXHours:{one:"1 ordu gutxi gorabehera",other:"{{count}} ordu gutxi gorabehera"},xHours:{one:"1 ordu",other:"{{count}} ordu"},xDays:{one:"1 egun",other:"{{count}} egun"},aboutXWeeks:{one:"aste 1 inguru",other:"{{count}} aste inguru"},xWeeks:{one:"1 aste",other:"{{count}} astean"},aboutXMonths:{one:"1 hilabete gutxi gorabehera",other:"{{count}} hilabete gutxi gorabehera"},xMonths:{one:"1 hilabete",other:"{{count}} hilabete"},aboutXYears:{one:"1 urte gutxi gorabehera",other:"{{count}} urte gutxi gorabehera"},xYears:{one:"1 urte",other:"{{count}} urte"},overXYears:{one:"1 urte baino gehiago",other:"{{count}} urte baino gehiago"},almostXYears:{one:"ia 1 urte",other:"ia {{count}} urte"}},nh={date:(0,a.A)({formats:{full:"EEEE, y'ko' MMMM'ren' d'a' y'ren'",long:"y'ko' MMMM'ren' d'a'",medium:"y MMM d",short:"yy/MM/dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'tan' {{time}}",long:"{{date}} 'tan' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ng={lastWeek:"'joan den' eeee, LT",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},nv={lastWeek:"'joan den' eeee, p",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},nb={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["k.a.","k.o."],abbreviated:["k.a.","k.o."],wide:["kristo aurretik","kristo ondoren"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1H","2H","3H","4H"],wide:["1. hiruhilekoa","2. hiruhilekoa","3. hiruhilekoa","4. hiruhilekoa"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["u","o","m","a","m","e","u","a","i","u","a","a"],abbreviated:["urt","ots","mar","api","mai","eka","uzt","abu","ira","urr","aza","abe"],wide:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["i","a","a","a","o","o","l"],short:["ig","al","as","az","og","or","lr"],abbreviated:["iga","ast","ast","ast","ost","ost","lar"],wide:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"}},defaultFormattingWidth:"wide"})},ny={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},defaultParseWidth:"wide"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},defaultParseWidth:"wide"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},defaultParseWidth:"any"})};let nw={code:"eu",formatDistance:function(e,t,n){var r,a=nm[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"en "+r:"duela "+r:r},formatLong:nh,formatRelative:function(e,t){return 1!==t.getUTCHours()?nv[e]:ng[e]},localize:nb,match:ny,options:{weekStartsOn:1,firstWeekContainsDate:1}};var nx={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},nk={date:(0,a.A)({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nP={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},nE={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultFormattingWidth:"wide"})},nA={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:"any"})};let nD={code:"fa-IR",formatDistance:function(e,t,n){var r,a=nx[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"در "+r:r+" قبل":r},formatLong:nk,formatRelative:function(e,t,n,r){return nP[e]},localize:nE,match:nA,options:{weekStartsOn:6,firstWeekContainsDate:1}};function nO(e){return e.replace(/sekuntia?/,"sekunnin")}function nC(e){return e.replace(/minuuttia?/,"minuutin")}function nM(e){return e.replace(/tuntia?/,"tunnin")}function nS(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function nj(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function nT(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var n_={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:nO},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:nO},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(e){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:nC},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:nC},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:nM},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:nM},xDays:{one:"p\xe4iv\xe4",other:"{{count}} p\xe4iv\xe4\xe4",futureTense:function(e){return e.replace(/päivää?/,"p\xe4iv\xe4n")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:nS},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:nS},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:nj},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:nj},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:nT},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:nT},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:nT},almostXYears:{one:"l\xe4hes vuosi",other:"l\xe4hes {{count}} vuotta",futureTense:nT}},nN={date:(0,a.A)({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},nL={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'t\xe4n\xe4\xe4n klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},nR={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kes\xe4","hein\xe4","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xe4kuu","hein\xe4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},nz={narrow:nR.narrow,abbreviated:nR.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kes\xe4kuuta","hein\xe4kuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},nI={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},nF={narrow:nI.narrow,short:nI.short,abbreviated:nI.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},nW={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","j\xe4lkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:nR,defaultWidth:"wide",formattingValues:nz,defaultFormattingWidth:"wide"}),day:(0,l.A)({values:nI,defaultWidth:"wide",formattingValues:nF,defaultFormattingWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiy\xf6",noon:"keskip\xe4iv\xe4",morning:"ap",afternoon:"ip",evening:"illalla",night:"y\xf6ll\xe4"},wide:{am:"ap",pm:"ip",midnight:"keskiy\xf6ll\xe4",noon:"keskip\xe4iv\xe4ll\xe4",morning:"aamup\xe4iv\xe4ll\xe4",afternoon:"iltap\xe4iv\xe4ll\xe4",evening:"illalla",night:"y\xf6ll\xe4"}},defaultWidth:"wide"})},nB={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})};let nU={code:"fi",formatDistance:function(e,t,n){var r=n_[e],a=1===t?r.one:r.other.replace("{{count}}",String(t));return null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r.futureTense(a)+" kuluttua":a+" sitten":a},formatLong:nN,formatRelative:function(e,t,n,r){return nL[e]},localize:nW,match:nB,options:{weekStartsOn:1,firstWeekContainsDate:4}};var nV={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};let n$=function(e,t,n){var r,a=nV[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r};var nH={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nq={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd’hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"};let nY=function(e,t,n,r){return nq[e]};var nG={ordinalNumber:function(e,t){var n,r=Number(e),a=null==t?void 0:t.unit;return 0===r?"0":(n=1===r?a&&["year","week","hour","minute","second"].includes(a)?"\xe8re":"er":"\xe8me",r+n)},era:(0,l.A)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},nK={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:(0,s.A)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})};let nX={code:"fr",formatDistance:n$,formatLong:nH,formatRelative:nY,localize:nG,match:nK,options:{weekStartsOn:1,firstWeekContainsDate:4}};var nQ={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};let nJ={code:"fr-CA",formatDistance:n$,formatLong:nQ,formatRelative:nY,localize:nG,match:nK,options:{weekStartsOn:0,firstWeekContainsDate:1}};var nZ={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},n0={lastWeek:"eeee 'la semaine derni\xe8re \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd’hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'la semaine prochaine \xe0' p",other:"P"};let n1={code:"fr-CH",formatDistance:n$,formatLong:nZ,formatRelative:function(e,t,n,r){return n0[e]},localize:nG,match:nK,options:{weekStartsOn:1,firstWeekContainsDate:4}};var n2={lessThanXSeconds:{one:"minder as 1 sekonde",other:"minder as {{count}} sekonden"},xSeconds:{one:"1 sekonde",other:"{{count}} sekonden"},halfAMinute:"oardel min\xfat",lessThanXMinutes:{one:"minder as 1 min\xfat",other:"minder as {{count}} minuten"},xMinutes:{one:"1 min\xfat",other:"{{count}} minuten"},aboutXHours:{one:"sawat 1 oere",other:"sawat {{count}} oere"},xHours:{one:"1 oere",other:"{{count}} oere"},xDays:{one:"1 dei",other:"{{count}} dagen"},aboutXWeeks:{one:"sawat 1 wike",other:"sawat {{count}} wiken"},xWeeks:{one:"1 wike",other:"{{count}} wiken"},aboutXMonths:{one:"sawat 1 moanne",other:"sawat {{count}} moannen"},xMonths:{one:"1 moanne",other:"{{count}} moannen"},aboutXYears:{one:"sawat 1 jier",other:"sawat {{count}} jier"},xYears:{one:"1 jier",other:"{{count}} jier"},overXYears:{one:"mear as 1 jier",other:"mear as {{count}}s jier"},almostXYears:{one:"hast 1 jier",other:"hast {{count}} jier"}},n4={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},n3={lastWeek:"'\xf4fr\xfbne' eeee 'om' p",yesterday:"'juster om' p",today:"'hjoed om' p",tomorrow:"'moarn om' p",nextWeek:"eeee 'om' p",other:"P"},n9={ordinalNumber:function(e,t){return Number(e)+"e"},era:(0,l.A)({values:{narrow:["f.K.","n.K."],abbreviated:["f.Kr.","n.Kr."],wide:["foar Kristus","nei Kristus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e fearnsjier","2e fearnsjier","3e fearnsjier","4e fearnsjier"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mrt.","apr.","mai.","jun.","jul.","aug.","sep.","okt.","nov.","des."],wide:["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["s","m","t","w","t","f","s"],short:["si","mo","ti","wo","to","fr","so"],abbreviated:["snein","moa","tii","woa","ton","fre","sneon"],wide:["snein","moandei","tiisdei","woansdei","tongersdei","freed","sneon"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"j\xfbns",night:"nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"j\xfbns",night:"nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"j\xfbns",night:"nachts"}},defaultWidth:"wide"})},n5={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/,/^n/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},defaultMatchWidth:"wide",parsePatterns:{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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},defaultParseWidth:"any"})};let n6={code:"fy",formatDistance:function(e,t,n){var r,a=n2[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"oer "+r:r+" lyn":r},formatLong:n4,formatRelative:function(e,t,n,r){return n3[e]},localize:n9,match:n5,options:{weekStartsOn:1,firstWeekContainsDate:4}};var n8={lessThanXSeconds:{one:"nas lugha na diog",other:"nas lugha na {{count}} diogan"},xSeconds:{one:"1 diog",two:"2 dhiog",twenty:"20 diog",other:"{{count}} diogan"},halfAMinute:"leth mhionaid",lessThanXMinutes:{one:"nas lugha na mionaid",other:"nas lugha na {{count}} mionaidean"},xMinutes:{one:"1 mionaid",two:"2 mhionaid",twenty:"20 mionaid",other:"{{count}} mionaidean"},aboutXHours:{one:"mu uair de th\xecde",other:"mu {{count}} uairean de th\xecde"},xHours:{one:"1 uair de th\xecde",two:"2 uair de th\xecde",twenty:"20 uair de th\xecde",other:"{{count}} uairean de th\xecde"},xDays:{one:"1 l\xe0",other:"{{count}} l\xe0"},aboutXWeeks:{one:"mu 1 seachdain",other:"mu {{count}} seachdainean"},xWeeks:{one:"1 seachdain",other:"{{count}} seachdainean"},aboutXMonths:{one:"mu mh\xecos",other:"mu {{count}} m\xecosan"},xMonths:{one:"1 m\xecos",other:"{{count}} m\xecosan"},aboutXYears:{one:"mu bhliadhna",other:"mu {{count}} bliadhnaichean"},xYears:{one:"1 bhliadhna",other:"{{count}} bliadhna"},overXYears:{one:"c\xf2rr is bliadhna",other:"c\xf2rr is {{count}} bliadhnaichean"},almostXYears:{one:"cha mh\xf2r bliadhna",other:"cha mh\xf2r {{count}} bliadhnaichean"}},n7={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'aig' {{time}}",long:"{{date}} 'aig' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},re={lastWeek:"'mu dheireadh' eeee 'aig' p",yesterday:"'an-d\xe8 aig' p",today:"'an-diugh aig' p",tomorrow:"'a-m\xe0ireach aig' p",nextWeek:"eeee 'aig' p",other:"P"},rt={ordinalNumber:function(e){var t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"d";case 2:return t+"na"}return 12===n?t+"na":t+"mh"},era:(0,l.A)({values:{narrow:["R","A"],abbreviated:["RC","AD"],wide:["ro Chr\xecosta","anno domini"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["C1","C2","C3","C4"],wide:["a' chiad chairteal","an d\xe0rna cairteal","an treas cairteal","an ceathramh cairteal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["F","G","M","G","C","\xd2","I","L","S","D","S","D"],abbreviated:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],wide:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","L","M","C","A","H","S"],short:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],abbreviated:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],wide:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan l\xe0",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"}},defaultFormattingWidth:"wide"})},rn={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(d|na|tr|mh)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},defaultParseWidth:"any"})};let rr={code:"gd",formatDistance:function(e,t,n){var r,a=n8[e];return(r="string"==typeof a?a:1===t?a.one:2===t&&a.two?a.two:20===t&&a.twenty?a.twenty:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"ann an "+r:"o chionn "+r:r},formatLong:n7,formatRelative:function(e,t,n,r){return re[e]},localize:rt,match:rn,options:{weekStartsOn:0,firstWeekContainsDate:1}};var ra={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"m\xe1is dun ano",other:"m\xe1is de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},ro={date:(0,a.A)({formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} '\xe1s' {{time}}",long:"{{date}} '\xe1s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ri={lastWeek:"'o' eeee 'pasado \xe1' LT",yesterday:"'onte \xe1' p",today:"'hoxe \xe1' p",tomorrow:"'ma\xf1\xe1 \xe1' p",nextWeek:"eeee '\xe1' p",other:"P"},rl={lastWeek:"'o' eeee 'pasado \xe1s' p",yesterday:"'onte \xe1s' p",today:"'hoxe \xe1s' p",tomorrow:"'ma\xf1\xe1 \xe1s' p",nextWeek:"eeee '\xe1s' p",other:"P"},ru={ordinalNumber:function(e,t){return Number(e)+"\xba"},era:(0,l.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xu\xf1o","xullo","agosto","setembro","outubro","novembro","decembro"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","m\xe9rcores","xoves","venres","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1\xe1",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediod\xeda",morning:"ma\xf1\xe1",afternoon:"tarde",evening:"tardi\xf1a",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediod\xeda",morning:"ma\xf1\xe1",afternoon:"tarde",evening:"tardi\xf1a",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da ma\xf1\xe1",afternoon:"da tarde",evening:"da tardi\xf1a",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediod\xeda",morning:"da ma\xf1\xe1",afternoon:"da tarde",evening:"da tardi\xf1a",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediod\xeda",morning:"da ma\xf1\xe1",afternoon:"da tarde",evening:"da tardi\xf1a",night:"da noite"}},defaultFormattingWidth:"wide"})},rs={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},defaultParseWidth:"any"})};let rd={code:"gl",formatDistance:function(e,t,n){var r,a=ra[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"en "+r:"hai "+r:r},formatLong:ro,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?rl[e]:ri[e]},localize:ru,match:rs,options:{weekStartsOn:1,firstWeekContainsDate:1}};var rc={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},rf={date:(0,a.A)({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rp={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},rm={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},defaultFormattingWidth:"wide"})},rh={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ઈસપૂ/i,/^ઈસ/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},defaultParseWidth:"any"})};let rg={code:"gu",formatDistance:function(e,t,n){var r,a=rc[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"માં":r+" પહેલાં":r},formatLong:rf,formatRelative:function(e,t,n,r){return rp[e]},localize:rm,match:rh,options:{weekStartsOn:1,firstWeekContainsDate:4}};var rv={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},rb={date:(0,a.A)({formats:{full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ry={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},rw={ordinalNumber:function(e,t){var n=Number(e);if(n<=0||n>10)return String(n);var r=["year","hour","minute","second"].indexOf(String(null==t?void 0:t.unit))>=0,a=n-1;return r?["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"][a]:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"][a]},era:(0,l.A)({values:{narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},defaultWidth:"wide",formattingValues:{narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},defaultFormattingWidth:"wide"})},rx=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],rk={ordinalNumber:(0,d.A)({matchPattern:/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,parsePattern:/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,valueCallback:function(e){var t=parseInt(e,10);return isNaN(t)?rx.indexOf(e)+1:t}}),era:(0,s.A)({matchPatterns:{narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^לפ/i,/^לס/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},defaultMatchWidth:"wide",parsePatterns:{abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},defaultParseWidth:"any"})};let rP={code:"he",formatDistance:function(e,t,n){if("xDays"===e&&null!=n&&n.addSuffix&&t<=2)return n.comparison&&n.comparison>0?1===t?"מחר":"מחרתיים":1===t?"אתמול":"שלשום";var r,a=rv[e];return(r="string"==typeof a?a:1===t?a.one:2===t?a.two:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"בעוד "+r:"לפני "+r:r},formatLong:rb,formatRelative:function(e,t,n,r){return ry[e]},localize:rw,match:rk,options:{weekStartsOn:0,firstWeekContainsDate:1}};var rE={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}};function rA(e){return e.toString().replace(/\d/g,function(e){return rE.locale[e]})}var rD={ordinalNumber:function(e,t){return rA(Number(e))},era:(0,l.A)({values:{narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},defaultWidth:"wide",formattingValues:{narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},defaultFormattingWidth:"wide"})},rO={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},rC={date:(0,a.A)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rM={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},rS={ordinalNumber:(0,d.A)({matchPattern:/^[०१२३४५६७८९]+/i,parsePattern:/^[०१२३४५६७८९]+/i,valueCallback:function(e){return Number(e.toString().replace(/[१२३४५६७८९०]/g,function(e){return rE.number[e]}))}}),era:(0,s.A)({matchPatterns:{narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},defaultParseWidth:"any"})};let rj={code:"hi",formatDistance:function(e,t,n){var r,a=rO[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",rA(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"मे ":r+" पहले":r},formatLong:rC,formatRelative:function(e,t,n,r){return rM[e]},localize:rD,match:rS,options:{weekStartsOn:0,firstWeekContainsDate:4}};var rT={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},r_={date:(0,a.A)({formats:{full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rN={lastWeek:function(e){switch(e.getUTCDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(e){switch(e.getUTCDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},rL={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},defaultFormattingWidth:"wide"})},rR={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},defaultParseWidth:"wide"}),day:(0,s.A)({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})};let rz={code:"hr",formatDistance:function(e,t,n){var r,a=rT[e];return(r="string"==typeof a?a:1===t?null!=n&&n.addSuffix?n.comparison&&n.comparison>0?a.one.withPrepositionIn:a.one.withPrepositionAgo:a.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?a.dual.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"za "+r:"prije "+r:r},formatLong:r_,formatRelative:function(e,t,n,r){var a=rN[e];return"function"==typeof a?a(t):a},localize:rL,match:rR,options:{weekStartsOn:1,firstWeekContainsDate:1}};var rI={lessThanXSeconds:{one:"mwens pase yon segond",other:"mwens pase {{count}} segond"},xSeconds:{one:"1 segond",other:"{{count}} segond"},halfAMinute:"30 segond",lessThanXMinutes:{one:"mwens pase yon minit",other:"mwens pase {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"anviwon in\xe8",other:"anviwon {{count}} \xe8"},xHours:{one:"1 l\xe8",other:"{{count}} l\xe8"},xDays:{one:"1 jou",other:"{{count}} jou"},aboutXWeeks:{one:"anviwon 1 sem\xe8n",other:"anviwon {{count}} sem\xe8n"},xWeeks:{one:"1 sem\xe8n",other:"{{count}} sem\xe8n"},aboutXMonths:{one:"anviwon 1 mwa",other:"anviwon {{count}} mwa"},xMonths:{one:"1 mwa",other:"{{count}} mwa"},aboutXYears:{one:"anviwon 1 an",other:"anviwon {{count}} an"},xYears:{one:"1 an",other:"{{count}} an"},overXYears:{one:"plis pase 1 an",other:"plis pase {{count}} an"},almostXYears:{one:"pr\xe8ske 1 an",other:"pr\xe8ske {{count}} an"}},rF={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'nan l\xe8' {{time}}",long:"{{date}} 'nan l\xe8' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rW={lastWeek:"eeee 'pase nan l\xe8' p",yesterday:"'y\xe8 nan l\xe8' p",today:"'jodi a' p",tomorrow:"'demen nan l\xe8' p'",nextWeek:"eeee 'pwochen nan l\xe8' p",other:"P"},rB={ordinalNumber:function(e,t){var n=Number(e);return 0===n?String(n):n+(1===n?"ye":"y\xe8m")},era:(0,l.A)({values:{narrow:["av. J.-K","ap. J.-K"],abbreviated:["av. J.-K","ap. J.-K"],wide:["anvan Jezi Kris","apre Jezi Kris"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1ye trim.","2y\xe8m trim.","3y\xe8m trim.","4y\xe8m trim."],wide:["1ye trim\xe8s","2y\xe8m trim\xe8s","3y\xe8m trim\xe8s","4y\xe8m trim\xe8s"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["janv.","fevr.","mas","avr.","me","jen","jiy\xe8","out","sept.","okt.","nov.","des."],wide:["janvye","fevrye","mas","avril","me","jen","jiy\xe8","out","septanm","okt\xf2b","novanm","desanm"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","le","ma","m\xe8","je","va","sa"],abbreviated:["dim.","len.","mad.","m\xe8k.","jed.","van.","sam."],wide:["dimanch","lendi","madi","m\xe8kredi","jedi","vandredi","samdi"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"swa",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"maten",afternoon:"apr\xe8midi",evening:"swa",night:"maten"},wide:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"nan maten",afternoon:"nan apr\xe8midi",evening:"nan asw\xe8",night:"nan maten"}},defaultWidth:"wide"})},rU={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(ye|yèm)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},defaultParseWidth:"any"})};let rV={code:"ht",formatDistance:function(e,t,n){var r,a=rI[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"nan "+r:"sa f\xe8 "+r:r},formatLong:rF,formatRelative:function(e,t,n,r){return rW[e]},localize:rB,match:rU,options:{weekStartsOn:1,firstWeekContainsDate:4}};var r$={about:"k\xf6r\xfclbel\xfcl",over:"t\xf6bb mint",almost:"majdnem",lessthan:"kevesebb mint"},rH={xseconds:" m\xe1sodperc",halfaminute:"f\xe9l perc",xminutes:" perc",xhours:" \xf3ra",xdays:" nap",xweeks:" h\xe9t",xmonths:" h\xf3nap",xyears:" \xe9v"},rq={xseconds:{"-1":" m\xe1sodperccel ezelőtt",1:" m\xe1sodperc m\xfalva",0:" m\xe1sodperce"},halfaminute:{"-1":"f\xe9l perccel ezelőtt",1:"f\xe9l perc m\xfalva",0:"f\xe9l perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc m\xfalva",0:" perce"},xhours:{"-1":" \xf3r\xe1val ezelőtt",1:" \xf3ra m\xfalva",0:" \xf3r\xe1ja"},xdays:{"-1":" nappal ezelőtt",1:" nap m\xfalva",0:" napja"},xweeks:{"-1":" h\xe9ttel ezelőtt",1:" h\xe9t m\xfalva",0:" hete"},xmonths:{"-1":" h\xf3nappal ezelőtt",1:" h\xf3nap m\xfalva",0:" h\xf3napja"},xyears:{"-1":" \xe9vvel ezelőtt",1:" \xe9v m\xfalva",0:" \xe9ve"}},rY={date:(0,a.A)({formats:{full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rG=["vas\xe1rnap","h\xe9tfőn","kedden","szerd\xe1n","cs\xfct\xf6rt\xf6k\xf6n","p\xe9nteken","szombaton"];function rK(e){return function(t){var n=rG[t.getUTCDay()];return"".concat(e?"":"'m\xfalt' ","'").concat(n,"' p'-kor'")}}var rX={lastWeek:rK(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:rK(!0),other:"P"},rQ={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","idősz\xe1m\xedt\xe1sunk szerint"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. n.\xe9v","2. n.\xe9v","3. n.\xe9v","4. n.\xe9v"],wide:["1. negyed\xe9v","2. negyed\xe9v","3. negyed\xe9v","4. negyed\xe9v"]},defaultWidth:"wide",argumentCallback:function(e){return e-1},formattingValues:{narrow:["I.","II.","III.","IV."],abbreviated:["I. n.\xe9v","II. n.\xe9v","III. n.\xe9v","IV. n.\xe9v"],wide:["I. negyed\xe9v","II. negyed\xe9v","III. negyed\xe9v","IV. negyed\xe9v"]},defaultFormattingWidth:"wide"}),month:(0,l.A)({values:{narrow:["J","F","M","\xc1","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","m\xe1rc.","\xe1pr.","m\xe1j.","j\xfan.","j\xfal.","aug.","szept.","okt.","nov.","dec."],wide:["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vas\xe1rnap","h\xe9tfő","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},abbreviated:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"du.",evening:"este",night:"\xe9jjel"},wide:{am:"de.",pm:"du.",midnight:"\xe9jf\xe9l",noon:"d\xe9l",morning:"reggel",afternoon:"d\xe9lut\xe1n",evening:"este",night:"\xe9jjel"}},defaultWidth:"wide"})},rJ={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},defaultParseWidth:"any"})};let rZ={code:"hu",formatDistance:function(e,t,n){var r=e.match(/about|over|almost|lessthan/i),a=r?e.replace(r[0],""):e,o=(null==n?void 0:n.addSuffix)===!0,i=a.toLowerCase(),l=(null==n?void 0:n.comparison)||0,u=o?rq[i][l]:rH[i],s="halfaminute"===i?u:t+u;return r&&(s=r$[r[0].toLowerCase()]+" "+s),s},formatLong:rY,formatRelative:function(e,t){var n=rX[e];return"function"==typeof n?n(t):n},localize:rQ,match:rJ,options:{weekStartsOn:1,firstWeekContainsDate:4}};var r0={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},r1={date:(0,a.A)({formats:{full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},r2={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},r4={ordinalNumber:function(e,t){var n=Number(e),r=n%100;return r<10&&r%10==1?n+"֊ին":n+"֊րդ"},era:(0,l.A)({values:{narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},defaultFormattingWidth:"wide"})},r3={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)((-|֊)?(ին|րդ))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ք/i,/^մ/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},defaultParseWidth:"wide"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},defaultParseWidth:"any"})};let r9={code:"hy",formatDistance:function(e,t,n){var r,a=r0[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" հետո":r+" առաջ":r},formatLong:r1,formatRelative:function(e,t,n,r){return r2[e]},localize:r4,match:r3,options:{weekStartsOn:1,firstWeekContainsDate:1}};var r5={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},r6={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},r8={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},r7={ordinalNumber:function(e,t){return"ke-"+Number(e)},era:(0,l.A)({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},defaultFormattingWidth:"wide"})},ae={ordinalNumber:(0,d.A)({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:"any"})};let at={code:"id",formatDistance:function(e,t,n){var r,a=r5[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"dalam waktu "+r:r+" yang lalu":r},formatLong:r6,formatRelative:function(e,t,n,r){return r8[e]},localize:r7,match:ae,options:{weekStartsOn:1,firstWeekContainsDate:1}};var an={lessThanXSeconds:{one:"minna en 1 sek\xfanda",other:"minna en {{count}} sek\xfandur"},xSeconds:{one:"1 sek\xfanda",other:"{{count}} sek\xfandur"},halfAMinute:"h\xe1lf m\xedn\xfata",lessThanXMinutes:{one:"minna en 1 m\xedn\xfata",other:"minna en {{count}} m\xedn\xfatur"},xMinutes:{one:"1 m\xedn\xfata",other:"{{count}} m\xedn\xfatur"},aboutXHours:{one:"u.\xfe.b. 1 klukkustund",other:"u.\xfe.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.\xfe.b. 1 m\xe1nu\xf0ur",other:"u.\xfe.b. {{count}} m\xe1nu\xf0ir"},xMonths:{one:"1 m\xe1nu\xf0ur",other:"{{count}} m\xe1nu\xf0ir"},aboutXYears:{one:"u.\xfe.b. 1 \xe1r",other:"u.\xfe.b. {{count}} \xe1r"},xYears:{one:"1 \xe1r",other:"{{count}} \xe1r"},overXYears:{one:"meira en 1 \xe1r",other:"meira en {{count}} \xe1r"},almostXYears:{one:"n\xe6stum 1 \xe1r",other:"n\xe6stum {{count}} \xe1r"}},ar={date:(0,a.A)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},aa={lastWeek:"'s\xed\xf0asta' dddd 'kl.' p",yesterday:"'\xed g\xe6r kl.' p",today:"'\xed dag kl.' p",tomorrow:"'\xe1 morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},ao={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fj\xf3r\xf0ungur","2. fj\xf3r\xf0ungur","3. fj\xf3r\xf0ungur","4. fj\xf3r\xf0ungur"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","\xc1","S","\xd3","N","D"],abbreviated:["jan.","feb.","mars","apr\xedl","ma\xed","j\xfan\xed","j\xfal\xed","\xe1g\xfast","sept.","okt.","n\xf3v.","des."],wide:["jan\xfaar","febr\xfaar","mars","apr\xedl","ma\xed","j\xfan\xed","j\xfal\xed","\xe1g\xfast","september","okt\xf3ber","n\xf3vember","desember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","\xde","M","F","F","L"],short:["Su","M\xe1","\xder","Mi","Fi","F\xf6","La"],abbreviated:["sun.","m\xe1n.","\xferi.","mi\xf0.","fim.","f\xf6s.","lau."],wide:["sunnudagur","m\xe1nudagur","\xferi\xf0judagur","mi\xf0vikudagur","fimmtudagur","f\xf6studagur","laugardagur"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"f",pm:"e",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"},wide:{am:"fyrir h\xe1degi",pm:"eftir h\xe1degi",midnight:"mi\xf0n\xe6tti",noon:"h\xe1degi",morning:"morgunn",afternoon:"s\xed\xf0degi",evening:"kv\xf6ld",night:"n\xf3tt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"f",pm:"e",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"},wide:{am:"fyrir h\xe1degi",pm:"eftir h\xe1degi",midnight:"\xe1 mi\xf0n\xe6tti",noon:"\xe1 h\xe1degi",morning:"a\xf0 morgni",afternoon:"s\xed\xf0degis",evening:"um kv\xf6ld",night:"um n\xf3tt"}},defaultFormattingWidth:"wide"})},ai={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+(\.)?/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},defaultParseWidth:"any"})};let al={code:"is",formatDistance:function(e,t,n){var r,a=an[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"\xed "+r:r+" s\xed\xf0an":r},formatLong:ar,formatRelative:function(e,t,n,r){return aa[e]},localize:ao,match:ai,options:{weekStartsOn:1,firstWeekContainsDate:4}};var au={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xf9 di un anno",other:"pi\xf9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}};let as=function(e,t,n){var r,a=au[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r};var ad={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ac=["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"];function af(e){return"'"+ac[e]+" alle' p"}var ap={lastWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?af(r):0===r?"'domenica scorsa alle' p":"'"+ac[r]+" scorso alle' p"},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?af(r):0===r?"'domenica prossima alle' p":"'"+ac[r]+" prossimo alle' p"},other:"P"};let am=function(e,t,n,r){var a=ap[e];return"function"==typeof a?a(t,n,r):a};var ah={ordinalNumber:function(e,t){return String(Number(e))},era:(0,l.A)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},ag={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})};let av={code:"it",formatDistance:as,formatLong:ad,formatRelative:am,localize:ah,match:ag,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ab={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};let ay={code:"it-CH",formatDistance:as,formatLong:ab,formatRelative:am,localize:ah,match:ag,options:{weekStartsOn:1,firstWeekContainsDate:4}};var aw={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},ax={date:(0,a.A)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ak={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},aP={ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},era:(0,l.A)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},aE={ordinalNumber:(0,d.A)({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})};let aA={code:"ja",formatDistance:function(e,t,n){n=n||{};var r,a=aw[e];return(r="string"==typeof a?a:1===t?n.addSuffix&&a.oneWithSuffix?a.oneWithSuffix:a.one:n.addSuffix&&a.otherWithSuffix?a.otherWithSuffix.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),n.addSuffix)?n.comparison&&n.comparison>0?r+"後":r+"前":r},formatLong:ax,formatRelative:function(e,t,n,r){return ak[e]},localize:aP,match:aE,options:{weekStartsOn:0,firstWeekContainsDate:1}};var aD={lessThanXSeconds:{one:"1びょうみまん",other:"{{count}}びょうみまん",oneWithSuffix:"やく1びょう",otherWithSuffix:"やく{{count}}びょう"},xSeconds:{one:"1びょう",other:"{{count}}びょう"},halfAMinute:"30びょう",lessThanXMinutes:{one:"1ぷんみまん",other:"{{count}}ふんみまん",oneWithSuffix:"やく1ぷん",otherWithSuffix:"やく{{count}}ふん"},xMinutes:{one:"1ぷん",other:"{{count}}ふん"},aboutXHours:{one:"やく1じかん",other:"やく{{count}}じかん"},xHours:{one:"1じかん",other:"{{count}}じかん"},xDays:{one:"1にち",other:"{{count}}にち"},aboutXWeeks:{one:"やく1しゅうかん",other:"やく{{count}}しゅうかん"},xWeeks:{one:"1しゅうかん",other:"{{count}}しゅうかん"},aboutXMonths:{one:"やく1かげつ",other:"やく{{count}}かげつ"},xMonths:{one:"1かげつ",other:"{{count}}かげつ"},aboutXYears:{one:"やく1ねん",other:"やく{{count}}ねん"},xYears:{one:"1ねん",other:"{{count}}ねん"},overXYears:{one:"1ねんいじょう",other:"{{count}}ねんいじょう"},almostXYears:{one:"1ねんちかく",other:"{{count}}ねんちかく"}},aO={date:(0,a.A)({formats:{full:"yねんMがつdにちEEEE",long:"yねんMがつdにち",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"Hじmmふんssびょう zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},aC={lastWeek:"せんしゅうのeeeeのp",yesterday:"きのうのp",today:"きょうのp",tomorrow:"あしたのp",nextWeek:"よくしゅうのeeeeのp",other:"P"},aM={ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(n,"ねん");case"quarter":return"だい".concat(n,"しはんき");case"month":return"".concat(n,"がつ");case"week":return"だい".concat(n,"しゅう");case"date":return"".concat(n,"にち");case"hour":return"".concat(n,"じ");case"minute":return"".concat(n,"ふん");case"second":return"".concat(n,"びょう");default:return"".concat(n)}},era:(0,l.A)({values:{narrow:["BC","AC"],abbreviated:["きげんぜん","せいれき"],wide:["きげんぜん","せいれき"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["だい1しはんき","だい2しはんき","だい3しはんき","だい4しはんき"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"],wide:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["にち","げつ","か","すい","もく","きん","ど"],short:["にち","げつ","か","すい","もく","きん","ど"],abbreviated:["にち","げつ","か","すい","もく","きん","ど"],wide:["にちようび","げつようび","かようび","すいようび","もくようび","きんようび","どようび"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},defaultFormattingWidth:"wide"})},aS={ordinalNumber:(0,d.A)({matchPattern:/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},defaultMatchWidth:"wide",parsePatterns:{any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|ごぜん)/i,pm:/^(P|ごご)/i,midnight:/^しんや|まよなか/i,noon:/^しょうご/i,morning:/^あさ/i,afternoon:/^ごご/i,evening:/^よる/i,night:/^しんや/i}},defaultParseWidth:"any"})};let aj={code:"ja-Hira",formatDistance:function(e,t,n){n=n||{};var r,a=aD[e];return(r="string"==typeof a?a:1===t?n.addSuffix&&a.oneWithSuffix?a.oneWithSuffix:a.one:n.addSuffix&&a.otherWithSuffix?a.otherWithSuffix.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),n.addSuffix)?n.comparison&&n.comparison>0?r+"あと":r+"まえ":r},formatLong:aO,formatRelative:function(e,t,n,r){return aC[e]},localize:aM,match:aS,options:{weekStartsOn:0,firstWeekContainsDate:1}};var aT={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},a_={date:(0,a.A)({formats:{full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},aN={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},aL={ordinalNumber:function(e){var t=Number(e);return 1===t?t+"-ლი":t+"-ე"},era:(0,l.A)({values:{narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},defaultFormattingWidth:"wide"})},aR={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-ლი|-ე)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},defaultMatchWidth:"any",parsePatterns:{any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},defaultParseWidth:"any"})};let az={code:"ka",formatDistance:function(e,t,n){var r=aT[e];return"string"==typeof r?r:null!=n&&n.addSuffix&&n.comparison&&n.comparison>0?r.future.replace("{{count}}",String(t)):null!=n&&n.addSuffix?r.past.replace("{{count}}",String(t)):r.present.replace("{{count}}",String(t))},formatLong:a_,formatRelative:function(e,t,n,r){return aN[e]},localize:aL,match:aR,options:{weekStartsOn:1,firstWeekContainsDate:1}};var aI={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:function(e){return null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут"},lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function aF(e,t){if(e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}var aW={date:(0,a.A)({formats:{full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},aB=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function aU(e){return"'"+aB[e]+" сағат' p'-де'"}var aV={lastWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?aU(r):"'өткен "+aB[r]+" сағат' p'-де'"},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?aU(r):"'келесі "+aB[r]+" сағат' p'-де'"},other:"P"},a$={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},aH={ordinalNumber:function(e,t){var n=Number(e),r=n>=100?100:null,a=a$[n]||a$[n%10]||r&&a$[r]||"";return n+a},era:(0,l.A)({values:{narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},defaultWidth:"wide",formattingValues:{narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},defaultWidth:"any",formattingValues:{narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},defaultFormattingWidth:"wide"})},aq={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?(ші|шы))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^б/i,/^з/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},defaultParseWidth:"any"})};let aY={code:"kk",formatDistance:function(e,t,n){var r=aI[e];return"function"==typeof r?r(n):"weeks"===r.type?1===t?r.one:r.other.replace("{{count}}",String(t)):null!=n&&n.addSuffix?n.comparison&&n.comparison>0?r.future?aF(r.future,t):aF(r.regular,t)+" кейін":r.past?aF(r.past,t):aF(r.regular,t)+" бұрын":aF(r.regular,t)},formatLong:aW,formatRelative:function(e,t,n,r){var a=aV[e];return"function"==typeof a?a(t,n,r):a},localize:aH,match:aq,options:{weekStartsOn:1,firstWeekContainsDate:1}};var aG={lessThanXSeconds:"តិចជាង {{count}} វិនាទី",xSeconds:"{{count}} វិនាទី",halfAMinute:"កន្លះនាទី",lessThanXMinutes:"តិចជាង {{count}} នាទី",xMinutes:"{{count}} នាទី",aboutXHours:"ប្រហែល {{count}} ម៉ោង",xHours:"{{count}} ម៉ោង",xDays:"{{count}} ថ្ងៃ",aboutXWeeks:"ប្រហែល {{count}} សប្តាហ៍",xWeeks:"{{count}} សប្តាហ៍",aboutXMonths:"ប្រហែល {{count}} ខែ",xMonths:"{{count}} ខែ",aboutXYears:"ប្រហែល {{count}} ឆ្នាំ",xYears:"{{count}} ឆ្នាំ",overXYears:"ជាង {{count}} ឆ្នាំ",almostXYears:"ជិត {{count}} ឆ្នាំ"},aK={date:(0,a.A)({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a",long:"h:mm:ss a",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'ម៉ោង' {{time}}",long:"{{date}} 'ម៉ោង' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},aX={lastWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p",yesterday:"'ម្សិលមិញនៅម៉ោង' p",today:"'ថ្ងៃនេះម៉ោង' p",tomorrow:"'ថ្ងៃស្អែកម៉ោង' p",nextWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p",other:"P"},aQ={ordinalNumber:function(e,t){return Number(e).toString()},era:(0,l.A)({values:{narrow:["ម.គស","គស"],abbreviated:["មុនគ.ស","គ.ស"],wide:["មុនគ្រិស្តសករាជ","នៃគ្រិស្តសករាជ"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ត្រីមាសទី 1","ត្រីមាសទី 2","ត្រីមាសទី 3","ត្រីមាសទី 4"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ម.ក","ក.ម","មិ","ម.ស","ឧ.ស","ម.ថ","ក.ដ","សី","កញ","តុ","វិ","ធ"],abbreviated:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],wide:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["អា","ច","អ","ព","ព្រ","សុ","ស"],short:["អា","ច","អ","ព","ព្រ","សុ","ស"],abbreviated:["អា","ច","អ","ព","ព្រ","សុ","ស"],wide:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},defaultFormattingWidth:"wide"})},aJ={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ម\.)?គស/i,abbreviated:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ម\.ក/i,/^ក\.ម/i,/^មិ/i,/^ម\.ស/i,/^ឧ\.ស/i,/^ម\.ថ/i,/^ក\.ដ/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិ/i,/^ធ/i],any:[/^មក/i,/^កុ/i,/^មីន/i,/^មេ/i,/^ឧស/i,/^មិថ/i,/^កក/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិច/i,/^ធ/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^ស/i],any:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^សៅ/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ព្រឹក/i,pm:/^ល្ងាច/i,midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i,noon:/^ពេលថ្ងៃត្រង់/i,morning:/ពេលព្រឹក/i,afternoon:/ពេលរសៀល/i,evening:/ពេលល្ងាច/i,night:/ពេលយប់/i}},defaultParseWidth:"any"})};let aZ={code:"km",formatDistance:function(e,t,n){var r=aG[e];return("number"==typeof t&&(r=r.replace("{{count}}",t.toString())),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"ក្នុងរយៈពេល "+r:r+"មុន":r},formatLong:aK,formatRelative:function(e,t,n,r){return aX[e]},localize:aQ,match:aJ,options:{weekStartsOn:0,firstWeekContainsDate:1}};var a0={lessThanXSeconds:{one:{default:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"}},xSeconds:{one:{default:"1 ಸೆಕೆಂಡ್",future:"1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ",past:"1 ಸೆಕೆಂಡ್ ಹಿಂದೆ"},other:{default:"{{count}} ಸೆಕೆಂಡುಗಳು",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ",past:"{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ"}},halfAMinute:{other:{default:"ಅರ್ಧ ನಿಮಿಷ",future:"ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ",past:"ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ"}},lessThanXMinutes:{one:{default:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"}},xMinutes:{one:{default:"1 ನಿಮಿಷ",future:"1 ನಿಮಿಷದಲ್ಲಿ",past:"1 ನಿಮಿಷದ ಹಿಂದೆ"},other:{default:"{{count}} ನಿಮಿಷಗಳು",future:"{{count}} ನಿಮಿಷಗಳಲ್ಲಿ",past:"{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ"}},aboutXHours:{one:{default:"ಸುಮಾರು 1 ಗಂಟೆ",future:"ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ",past:"ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳು",future:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xHours:{one:{default:"1 ಗಂಟೆ",future:"1 ಗಂಟೆಯಲ್ಲಿ",past:"1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"{{count}} ಗಂಟೆಗಳು",future:"{{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xDays:{one:{default:"1 ದಿನ",future:"1 ದಿನದಲ್ಲಿ",past:"1 ದಿನದ ಹಿಂದೆ"},other:{default:"{{count}} ದಿನಗಳು",future:"{{count}} ದಿನಗಳಲ್ಲಿ",past:"{{count}} ದಿನಗಳ ಹಿಂದೆ"}},aboutXMonths:{one:{default:"ಸುಮಾರು 1 ತಿಂಗಳು",future:"ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ",past:"ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ತಿಂಗಳು",future:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},xMonths:{one:{default:"1 ತಿಂಗಳು",future:"1 ತಿಂಗಳಲ್ಲಿ",past:"1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"{{count}} ತಿಂಗಳು",future:"{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},aboutXYears:{one:{default:"ಸುಮಾರು 1 ವರ್ಷ",future:"ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ",past:"ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ವರ್ಷಗಳು",future:"ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},xYears:{one:{default:"1 ವರ್ಷ",future:"1 ವರ್ಷದಲ್ಲಿ",past:"1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"{{count}} ವರ್ಷಗಳು",future:"{{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"{{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},overXYears:{one:{default:"1 ವರ್ಷದ ಮೇಲೆ",future:"1 ವರ್ಷದ ಮೇಲೆ",past:"1 ವರ್ಷದ ಮೇಲೆ"},other:{default:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",future:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",past:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ"}},almostXYears:{one:{default:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",future:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",past:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ"},other:{default:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",future:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ"}}};function a1(e,t){return null!=t&&t.addSuffix?t.comparison&&t.comparison>0?e.future:e.past:e.default}var a2={date:(0,a.A)({formats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"d/M/yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a4={lastWeek:"'ಕಳೆದ' eeee p 'ಕ್ಕೆ'",yesterday:"'ನಿನ್ನೆ' p 'ಕ್ಕೆ'",today:"'ಇಂದು' p 'ಕ್ಕೆ'",tomorrow:"'ನಾಳೆ' p 'ಕ್ಕೆ'",nextWeek:"eeee p 'ಕ್ಕೆ'",other:"P"},a3={ordinalNumber:function(e,t){return Number(e)+"ನೇ"},era:(0,l.A)({values:{narrow:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],abbreviated:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],wide:["ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["ತ್ರೈ 1","ತ್ರೈ 2","ತ್ರೈ 3","ತ್ರೈ 4"],wide:["1ನೇ ತ್ರೈಮಾಸಿಕ","2ನೇ ತ್ರೈಮಾಸಿಕ","3ನೇ ತ್ರೈಮಾಸಿಕ","4ನೇ ತ್ರೈಮಾಸಿಕ"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ"],abbreviated:["ಜನ","ಫೆಬ್ರ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ"],wide:["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ಭಾ","ಸೋ","ಮಂ","ಬು","ಗು","ಶು","ಶ"],short:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],abbreviated:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],wide:["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾಹ್ನ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾಹ್ನ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ಪೂ",pm:"ಅ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},defaultFormattingWidth:"wide"})},a9={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(ನೇ|ನೆ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i,wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i,abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i,wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ಜ$/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂ/i,/^ಜು$/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i],any:[/^ಜನ/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂನ್/i,/^ಜುಲೈ/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i,short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i],any:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i,any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ಪೂ/i,pm:/^ಅ/i,midnight:/ಮಧ್ಯರಾತ್ರಿ/i,noon:/ಮಧ್ಯಾನ್ಹ/i,morning:/ಬೆಳಗ್ಗೆ/i,afternoon:/ಮಧ್ಯಾನ್ಹ/i,evening:/ಸಂಜೆ/i,night:/ರಾತ್ರಿ/i}},defaultParseWidth:"any"})};let a5={code:"kn",formatDistance:function(e,t,n){var r=a0[e];return(r.one&&1===t?a1(r.one,n):a1(r.other,n)).replace("{{count}}",String(t))},formatLong:a2,formatRelative:function(e,t,n,r){return a4[e]},localize:a3,match:a9,options:{weekStartsOn:1,firstWeekContainsDate:1}};var a6={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},a8={date:(0,a.A)({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a7={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},oe={ordinalNumber:function(e,t){var n=Number(e);switch(String(null==t?void 0:t.unit)){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},era:(0,l.A)({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},ot={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})};let on={code:"ko",formatDistance:function(e,t,n){var r,a=a6[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" 후":r+" 전":r},formatLong:a8,formatRelative:function(e,t,n,r){return a7[e]},localize:oe,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}};var or={lessThanXSeconds:{standalone:{one:"manner w\xe9i eng Sekonn",other:"manner w\xe9i {{count}} Sekonnen"},withPreposition:{one:"manner w\xe9i enger Sekonn",other:"manner w\xe9i {{count}} Sekonnen"}},xSeconds:{standalone:{one:"eng Sekonn",other:"{{count}} Sekonnen"},withPreposition:{one:"enger Sekonn",other:"{{count}} Sekonnen"}},halfAMinute:{standalone:"eng hallef Minutt",withPreposition:"enger hallwer Minutt"},lessThanXMinutes:{standalone:{one:"manner w\xe9i eng Minutt",other:"manner w\xe9i {{count}} Minutten"},withPreposition:{one:"manner w\xe9i enger Minutt",other:"manner w\xe9i {{count}} Minutten"}},xMinutes:{standalone:{one:"eng Minutt",other:"{{count}} Minutten"},withPreposition:{one:"enger Minutt",other:"{{count}} Minutten"}},aboutXHours:{standalone:{one:"ongef\xe9ier eng Stonn",other:"ongef\xe9ier {{count}} Stonnen"},withPreposition:{one:"ongef\xe9ier enger Stonn",other:"ongef\xe9ier {{count}} Stonnen"}},xHours:{standalone:{one:"eng Stonn",other:"{{count}} Stonnen"},withPreposition:{one:"enger Stonn",other:"{{count}} Stonnen"}},xDays:{standalone:{one:"een Dag",other:"{{count}} Deeg"},withPreposition:{one:"engem Dag",other:"{{count}} Deeg"}},aboutXWeeks:{standalone:{one:"ongef\xe9ier eng Woch",other:"ongef\xe9ier {{count}} Wochen"},withPreposition:{one:"ongef\xe9ier enger Woche",other:"ongef\xe9ier {{count}} Wochen"}},xWeeks:{standalone:{one:"eng Woch",other:"{{count}} Wochen"},withPreposition:{one:"enger Woch",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"ongef\xe9ier ee Mount",other:"ongef\xe9ier {{count}} M\xe9int"},withPreposition:{one:"ongef\xe9ier engem Mount",other:"ongef\xe9ier {{count}} M\xe9int"}},xMonths:{standalone:{one:"ee Mount",other:"{{count}} M\xe9int"},withPreposition:{one:"engem Mount",other:"{{count}} M\xe9int"}},aboutXYears:{standalone:{one:"ongef\xe9ier ee Joer",other:"ongef\xe9ier {{count}} Joer"},withPreposition:{one:"ongef\xe9ier engem Joer",other:"ongef\xe9ier {{count}} Joer"}},xYears:{standalone:{one:"ee Joer",other:"{{count}} Joer"},withPreposition:{one:"engem Joer",other:"{{count}} Joer"}},overXYears:{standalone:{one:"m\xe9i w\xe9i ee Joer",other:"m\xe9i w\xe9i {{count}} Joer"},withPreposition:{one:"m\xe9i w\xe9i engem Joer",other:"m\xe9i w\xe9i {{count}} Joer"}},almostXYears:{standalone:{one:"bal ee Joer",other:"bal {{count}} Joer"},withPreposition:{one:"bal engem Joer",other:"bal {{count}} Joer"}}},oa=["d","h","n","t","z"],oo=["a,","e","i","o","u"],oi=[0,1,2,3,8,9],ol=[40,50,60,70];function ou(e){var t=e.charAt(0).toLowerCase();if(-1!=oo.indexOf(t)||-1!=oa.indexOf(t))return!0;var n=e.split(" ")[0],r=parseInt(n);return!isNaN(r)&&-1!=oi.indexOf(r%10)&&-1==ol.indexOf(parseInt(n.substring(0,2)))}var os={date:(0,a.A)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},od={lastWeek:function(e){var t=e.getUTCDay(),n="'l\xe4schte";return(2===t||4===t)&&(n+="n"),n+="' eeee 'um' p"},yesterday:"'g\xebschter um' p",today:"'haut um' p",tomorrow:"'moien um' p",nextWeek:"eeee 'um' p",other:"P"},oc={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["viru Christus","no Christus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4e","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4erz","Abr\xebll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","D","M","D","F","S"],short:["So","M\xe9","D\xeb","M\xeb","Do","Fr","Sa"],abbreviated:["So.","M\xe9.","D\xeb.","M\xeb.","Do.","Fr.","Sa."],wide:["Sonndeg","M\xe9indeg","D\xebnschdeg","M\xebttwoch","Donneschdeg","Freideg","Samschdeg"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"mo.",pm:"nom\xeb.",midnight:"M\xebtternuecht",noon:"M\xebtteg",morning:"Moien",afternoon:"Nom\xebtteg",evening:"Owend",night:"Nuecht"},abbreviated:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"M\xebtteg",morning:"Moien",afternoon:"Nom\xebtteg",evening:"Owend",night:"Nuecht"},wide:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"M\xebtteg",morning:"Moien",afternoon:"Nom\xebtteg",evening:"Owend",night:"Nuecht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"mo.",pm:"nom.",midnight:"M\xebtternuecht",noon:"m\xebttes",morning:"moies",afternoon:"nom\xebttes",evening:"owes",night:"nuets"},abbreviated:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"m\xebttes",morning:"moies",afternoon:"nom\xebttes",evening:"owes",night:"nuets"},wide:{am:"moies",pm:"nom\xebttes",midnight:"M\xebtternuecht",noon:"m\xebttes",morning:"moies",afternoon:"nom\xebttes",evening:"owes",night:"nuets"}},defaultFormattingWidth:"wide"})},of={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},defaultParseWidth:"any"})};let op={code:"lb",formatDistance:function(e,t,n){var r,a=or[e],o=null!=n&&n.addSuffix?a.withPreposition:a.standalone;return(r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"a"+(ou(r)?"n":"")+" "+r:"viru"+(ou(r)?"n":"")+" "+r:r},formatLong:os,formatRelative:function(e,t,n,r){var a=od[e];return"function"==typeof a?a(t):a},localize:oc,match:of,options:{weekStartsOn:1,firstWeekContainsDate:4}};var om={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},oh=function(e,t,n,r){return t?r?"kelių sekundžių":"kelias sekundes":"kelios sekundės"},og=function(e,t,n,r){return t?r?oy(n)[1]:oy(n)[2]:oy(n)[0]},ov=function(e,t,n,r){var a=e+" ";return 1===e?a+og(e,t,n,r):t?r?a+oy(n)[1]:a+(ob(e)?oy(n)[1]:oy(n)[2]):a+(ob(e)?oy(n)[1]:oy(n)[0])};function ob(e){return e%10==0||e>10&&e<20}function oy(e){return om[e].split("_")}var ow={lessThanXSeconds:{one:oh,other:ov},xSeconds:{one:oh,other:ov},halfAMinute:"pusė minutės",lessThanXMinutes:{one:og,other:ov},xMinutes:{one:og,other:ov},aboutXHours:{one:og,other:ov},xHours:{one:og,other:ov},xDays:{one:og,other:ov},aboutXWeeks:{one:og,other:ov},xWeeks:{one:og,other:ov},aboutXMonths:{one:og,other:ov},xMonths:{one:og,other:ov},aboutXYears:{one:og,other:ov},xYears:{one:og,other:ov},overXYears:{one:og,other:ov},almostXYears:{one:og,other:ov}},ox={date:(0,a.A)({formats:{full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ok={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},oP={ordinalNumber:function(e,t){return Number(e)+"-oji"},era:(0,l.A)({values:{narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},defaultFormattingWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},defaultWidth:"wide",formattingValues:{narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},defaultFormattingWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},defaultWidth:"wide",formattingValues:{narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},defaultFormattingWidth:"wide"})},oE={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-oji)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},defaultParseWidth:"any"})};let oA={code:"lt",formatDistance:function(e,t,n){var r,a=e.match(/about|over|almost|lessthan/i),o=a?e.replace(a[0],""):e,i=(null==n?void 0:n.comparison)!==void 0&&n.comparison>0,l=ow[e];return(r="string"==typeof l?l:1===t?l.one(t,(null==n?void 0:n.addSuffix)===!0,o.toLowerCase()+"_one",i):l.other(t,(null==n?void 0:n.addSuffix)===!0,o.toLowerCase()+"_other",i),a&&(r=om[a[0].toLowerCase()]+" "+r),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"po "+r:"prieš "+r:r},formatLong:ox,formatRelative:function(e,t,n,r){return ok[e]},localize:oP,match:oE,options:{weekStartsOn:1,firstWeekContainsDate:4}};function oD(e){return function(t,n){if(1===t)return null!=n&&n.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);var r=t%10==1&&t%100!=11;return null!=n&&n.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}var oO={lessThanXSeconds:oD({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:oD({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:function(e,t){return null!=t&&t.addSuffix?"pusminūtes":"pusminūte"},lessThanXMinutes:oD({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:oD({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:oD({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:oD({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:oD({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:oD({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:oD({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:oD({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:oD({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:oD({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:oD({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:oD({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:oD({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},oC={date:(0,a.A)({formats:{full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},oM=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],oS={lastWeek:function(e,t,n){return ed(e,t,n)?"eeee 'plkst.' p":"'Pagājušā "+oM[e.getUTCDay()]+" plkst.' p"},yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:function(e,t,n){return ed(e,t,n)?"eeee 'plkst.' p":"'Nākamajā "+oM[e.getUTCDay()]+" plkst.' p"},other:"P"},oj={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},defaultFormattingWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},defaultWidth:"wide",formattingValues:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},defaultWidth:"wide",formattingValues:{narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},defaultFormattingWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},defaultFormattingWidth:"wide"})},oT={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^m/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},defaultParseWidth:"wide",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},defaultMatchWidth:"wide",parsePatterns:{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,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},defaultParseWidth:"any"})};let o_={code:"lv",formatDistance:function(e,t,n){var r=oO[e](t,n);return null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"pēc "+r:"pirms "+r:r},formatLong:oC,formatRelative:function(e,t,n,r){var a=oS[e];return"function"==typeof a?a(t,n,r):a},localize:oj,match:oT,options:{weekStartsOn:1,firstWeekContainsDate:4}};var oN={lessThanXSeconds:{one:"помалку од секунда",other:"помалку од {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половина минута",lessThanXMinutes:{one:"помалку од минута",other:"помалку од {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"околу 1 час",other:"околу {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дена"},aboutXWeeks:{one:"околу 1 недела",other:"околу {{count}} месеци"},xWeeks:{one:"1 недела",other:"{{count}} недели"},aboutXMonths:{one:"околу 1 месец",other:"околу {{count}} недели"},xMonths:{one:"1 месец",other:"{{count}} месеци"},aboutXYears:{one:"околу 1 година",other:"околу {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"повеќе од 1 година",other:"повеќе од {{count}} години"},almostXYears:{one:"безмалку 1 година",other:"безмалку {{count}} години"}},oL={date:(0,a.A)({formats:{full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}} {{time}}"},defaultWidth:"any"})},oR=["недела","понеделник","вторник","среда","четврток","петок","сабота"];function oz(e){var t=oR[e];switch(e){case 0:case 3:case 6:return"'ова "+t+" вo' p";case 1:case 2:case 4:case 5:return"'овој "+t+" вo' p"}}var oI={lastWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?oz(r):function(e){var t=oR[e];switch(e){case 0:case 3:case 6:return"'минатата "+t+" во' p";case 1:case 2:case 4:case 5:return"'минатиот "+t+" во' p"}}(r)},yesterday:"'вчера во' p",today:"'денес во' p",tomorrow:"'утре во' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?oz(r):function(e){var t=oR[e];switch(e){case 0:case 3:case 6:return"'следната "+t+" вo' p";case 1:case 2:case 4:case 5:return"'следниот "+t+" вo' p"}}(r)},other:"P"},oF={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"-ви";case 2:return n+"-ри";case 7:case 8:return n+"-ми"}return n+"-ти"},era:(0,l.A)({values:{narrow:["пр.н.е.","н.е."],abbreviated:["пред н. е.","н. е."],wide:["пред нашата ера","нашата ера"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-ви кв.","2-ри кв.","3-ти кв.","4-ти кв."],wide:["1-ви квартал","2-ри квартал","3-ти квартал","4-ти квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{abbreviated:["јан","фев","мар","апр","мај","јун","јул","авг","септ","окт","ноем","дек"],wide:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["не","по","вт","ср","че","пе","са"],abbreviated:["нед","пон","вто","сре","чет","пет","саб"],wide:["недела","понеделник","вторник","среда","четврток","петок","сабота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{wide:{am:"претпладне",pm:"попладне",midnight:"полноќ",noon:"напладне",morning:"наутро",afternoon:"попладне",evening:"навечер",night:"ноќе"}},defaultWidth:"wide"})},oW={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?[врмт][и])?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(пред нашата ера|нашата ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^п/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?и?)? кв.?/i,wide:/^[1234](-?[врт]?и?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ја/i,/^Ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(не|по|вт|ср|че|пе|са)/i,abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i,wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[аб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/претпладне/i,pm:/попладне/i,midnight:/полноќ/i,noon:/напладне/i,morning:/наутро/i,afternoon:/попладне/i,evening:/навечер/i,night:/ноќе/i}},defaultParseWidth:"any"})};let oB={code:"mk",formatDistance:function(e,t,n){var r,a=oN[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"за "+r:"пред "+r:r},formatLong:oL,formatRelative:function(e,t,n,r){var a=oI[e];return"function"==typeof a?a(t,n,r):a},localize:oF,match:oW,options:{weekStartsOn:1,firstWeekContainsDate:4}};var oU={lessThanXSeconds:{one:"секунд хүрэхгүй",other:"{{count}} секунд хүрэхгүй"},xSeconds:{one:"1 секунд",other:"{{count}} секунд"},halfAMinute:"хагас минут",lessThanXMinutes:{one:"минут хүрэхгүй",other:"{{count}} минут хүрэхгүй"},xMinutes:{one:"1 минут",other:"{{count}} минут"},aboutXHours:{one:"ойролцоогоор 1 цаг",other:"ойролцоогоор {{count}} цаг"},xHours:{one:"1 цаг",other:"{{count}} цаг"},xDays:{one:"1 өдөр",other:"{{count}} өдөр"},aboutXWeeks:{one:"ойролцоогоор 1 долоо хоног",other:"ойролцоогоор {{count}} долоо хоног"},xWeeks:{one:"1 долоо хоног",other:"{{count}} долоо хоног"},aboutXMonths:{one:"ойролцоогоор 1 сар",other:"ойролцоогоор {{count}} сар"},xMonths:{one:"1 сар",other:"{{count}} сар"},aboutXYears:{one:"ойролцоогоор 1 жил",other:"ойролцоогоор {{count}} жил"},xYears:{one:"1 жил",other:"{{count}} жил"},overXYears:{one:"1 жил гаран",other:"{{count}} жил гаран"},almostXYears:{one:"бараг 1 жил",other:"бараг {{count}} жил"}},oV={date:(0,a.A)({formats:{full:"y 'оны' MMMM'ын' d, EEEE 'гараг'",long:"y 'оны' MMMM'ын' d",medium:"y 'оны' MMM'ын' d",short:"y.MM.dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},o$={lastWeek:"'өнгөрсөн' eeee 'гарагийн' p 'цагт'",yesterday:"'өчигдөр' p 'цагт'",today:"'өнөөдөр' p 'цагт'",tomorrow:"'маргааш' p 'цагт'",nextWeek:"'ирэх' eeee 'гарагийн' p 'цагт'",other:"P"},oH={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["НТӨ","НТ"],abbreviated:["НТӨ","НТ"],wide:["нийтийн тооллын өмнөх","нийтийн тооллын"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["I","II","III","IV"],abbreviated:["I улирал","II улирал","III улирал","IV улирал"],wide:["1-р улирал","2-р улирал","3-р улирал","4-р улирал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долоодугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арван хоёрдугаар сар"]},defaultWidth:"wide",formattingValues:{narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["нэгдүгээр сар","хоёрдугаар сар","гуравдугаар сар","дөрөвдүгээр сар","тавдугаар сар","зургаадугаар сар","долоодугаар сар","наймдугаар сар","есдүгээр сар","аравдугаар сар","арваннэгдүгээр сар","арван хоёрдугаар сар"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"]},defaultWidth:"wide",formattingValues:{narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["ням","даваа","мягмар","лхагва","пүрэв","баасан","бямба"]},defaultFormattingWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},abbreviated:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},wide:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"}},defaultWidth:"wide"})},oq={ordinalNumber:(0,d.A)({matchPattern:/\d+/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(нтө|нт)/i,abbreviated:/^(нтө|нт)/i,wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[ндмлпбб]/i,short:/^(ня|да|мя|лх|пү|ба|бя)/i,abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i,wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^д/i,/^м/i,/^л/i,/^п/i,/^б/i,/^б/i],any:[/^ня/i,/^да/i,/^мя/i,/^лх/i,/^пү/i,/^ба/i,/^бя/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i,any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ү\.ө\./i,pm:/^ү\.х\./i,midnight:/^шөнө дунд/i,noon:/^үд дунд/i,morning:/өглөө/i,afternoon:/өдөр/i,evening:/орой/i,night:/шөнө/i}},defaultParseWidth:"any"})};let oY={code:"mn",formatDistance:function(e,t,n){var r,a=oU[e];if(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix){var o=r.split(" "),i=o.pop();switch(r=o.join(" "),i){case"секунд":r+=" секундийн";break;case"минут":r+=" минутын";break;case"цаг":r+=" цагийн";break;case"өдөр":r+=" өдрийн";break;case"сар":r+=" сарын";break;case"жил":r+=" жилийн";break;case"хоног":r+=" хоногийн";break;case"гаран":r+=" гараны";break;case"хүрэхгүй":r+=" хүрэхгүй хугацааны";break;default:r+=i+"-н"}return n.comparison&&n.comparison>0?r+" дараа":r+" өмнө"}return r},formatLong:oV,formatRelative:function(e,t,n,r){return o$[e]},localize:oH,match:oq,options:{weekStartsOn:1,firstWeekContainsDate:1}};var oG={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},oK={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},oX={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},oQ={ordinalNumber:function(e,t){return"ke-"+Number(e)},era:(0,l.A)({values:{narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},defaultFormattingWidth:"wide"})},oJ={ordinalNumber:(0,d.A)({matchPattern:/^ke-(\d+)?/i,parsePattern:/petama|\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^(m)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},defaultParseWidth:"any"})};let oZ={code:"ms",formatDistance:function(e,t,n){var r,a=oG[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"dalam masa "+r:r+" yang lalu":r},formatLong:oK,formatRelative:function(e,t,n,r){return oX[e]},localize:oQ,match:oJ,options:{weekStartsOn:1,firstWeekContainsDate:1}};var o0={lessThanXSeconds:{one:"inqas minn sekonda",other:"inqas minn {{count}} sekondi"},xSeconds:{one:"sekonda",other:"{{count}} sekondi"},halfAMinute:"nofs minuta",lessThanXMinutes:{one:"inqas minn minuta",other:"inqas minn {{count}} minuti"},xMinutes:{one:"minuta",other:"{{count}} minuti"},aboutXHours:{one:"madwar siegħa",other:"madwar {{count}} siegħat"},xHours:{one:"siegħa",other:"{{count}} siegħat"},xDays:{one:"ġurnata",other:"{{count}} ġranet"},aboutXWeeks:{one:"madwar ġimgħa",other:"madwar {{count}} ġimgħat"},xWeeks:{one:"ġimgħa",other:"{{count}} ġimgħat"},aboutXMonths:{one:"madwar xahar",other:"madwar {{count}} xhur"},xMonths:{one:"xahar",other:"{{count}} xhur"},aboutXYears:{one:"madwar sena",two:"madwar sentejn",other:"madwar {{count}} snin"},xYears:{one:"sena",two:"sentejn",other:"{{count}} snin"},overXYears:{one:"aktar minn sena",two:"aktar minn sentejn",other:"aktar minn {{count}} snin"},almostXYears:{one:"kważi sena",two:"kważi sentejn",other:"kważi {{count}} snin"}},o1={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},o2={lastWeek:"eeee 'li għadda' 'fil-'p",yesterday:"'Il-bieraħ fil-'p",today:"'Illum fil-'p",tomorrow:"'Għada fil-'p",nextWeek:"eeee 'fil-'p",other:"P"},o4={ordinalNumber:function(e,t){return Number(e)+"\xba"},era:(0,l.A)({values:{narrow:["Q","W"],abbreviated:["QK","WK"],wide:["qabel Kristu","wara Kristu"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kwart","2. kwart","3. kwart","4. kwart"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","Ġ","L","A","S","O","N","D"],abbreviated:["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Aww","Set","Ott","Nov","Diċ"],wide:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Ħ","T","T","E","Ħ","Ġ","S"],short:["Ħa","Tn","Tl","Er","Ħa","Ġi","Si"],abbreviated:["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"],wide:["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},abbreviated:{am:"AM",pm:"PM",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},abbreviated:{am:"AM",pm:"PM",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"}},defaultFormattingWidth:"wide"})},o3={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(q|b)/i,/^(w|c)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},defaultParseWidth:"any"})};let o9={code:"mt",formatDistance:function(e,t,n){var r,a=o0[e];return(r="string"==typeof a?a:1===t?a.one:2===t&&a.two?a.two:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"f'"+r:r+" ilu":r},formatLong:o1,formatRelative:function(e,t,n,r){return o2[e]},localize:o4,match:o3,options:{weekStartsOn:1,firstWeekContainsDate:4}};var o5={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en m\xe5ned",other:"omtrent {{count}} m\xe5neder"},xMonths:{one:"en m\xe5ned",other:"{{count}} m\xe5neder"},aboutXYears:{one:"omtrent ett \xe5r",other:"omtrent {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over ett \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"nesten ett \xe5r",other:"nesten {{count}} \xe5r"}},o6={date:(0,a.A)({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},o8={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},o7={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf8r Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf8","ma","ti","on","to","fr","l\xf8"],abbreviated:["s\xf8n","man","tir","ons","tor","fre","l\xf8r"],wide:["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgenen",afternoon:"p\xe5 ettermiddagen",evening:"p\xe5 kvelden",night:"p\xe5 natten"}},defaultWidth:"wide"})},ie={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})};let it={code:"nb",formatDistance:function(e,t,n){var r,a=o5[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"om "+r:r+" siden":r},formatLong:o6,formatRelative:function(e,t,n,r){return o8[e]},localize:o7,match:ie,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ir={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},ia={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},io={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},ii={ordinalNumber:function(e,t){return Number(e)+"e"},era:(0,l.A)({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},il={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})};let iu={code:"nl",formatDistance:function(e,t,n){var r,a=ir[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},formatLong:ia,formatRelative:function(e,t,n,r){return io[e]},localize:ii,match:il,options:{weekStartsOn:1,firstWeekContainsDate:4}};var is={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},id={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ic={lastWeek:"'vorige' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},ip={ordinalNumber:function(e,t){return Number(e)+"e"},era:(0,l.A)({values:{narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"}},defaultWidth:"wide"})},im={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)e?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/,/^n/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},defaultParseWidth:"any"})};let ih={code:"nl-BE",formatDistance:function(e,t,n){var r,a=is[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},formatLong:id,formatRelative:function(e,t,n,r){return ic[e]},localize:ip,match:im,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ig={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein m\xe5nad",other:"omtrent {{count}} m\xe5nader"},xMonths:{one:"ein m\xe5nad",other:"{{count}} m\xe5nader"},aboutXYears:{one:"omtrent eitt \xe5r",other:"omtrent {{count}} \xe5r"},xYears:{one:"eitt \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"over eitt \xe5r",other:"over {{count}} \xe5r"},almostXYears:{one:"nesten eitt \xe5r",other:"nesten {{count}} \xe5r"}},iv=["null","ein","to","tre","fire","fem","seks","sju","\xe5tte","ni","ti","elleve","tolv"],ib={date:(0,a.A)({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},iy={lastWeek:"'f\xf8rre' eeee 'kl.' p",yesterday:"'i g\xe5r kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},iw={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf8r Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","T","O","T","F","L"],short:["su","m\xe5","ty","on","to","fr","lau"],abbreviated:["sun","m\xe5n","tys","ons","tor","fre","laur"],wide:["sundag","m\xe5ndag","tysdag","onsdag","torsdag","fredag","laurdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 etterm.",evening:"p\xe5 kvelden",night:"p\xe5 natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgonen",afternoon:"p\xe5 ettermiddagen",evening:"p\xe5 kvelden",night:"p\xe5 natta"}},defaultWidth:"wide"})},ix={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})};let ik={code:"nn",formatDistance:function(e,t,n){var r,a=ig[e];return(r="string"==typeof a?a:1===t?a.one:n&&n.onlyNumeric?a.other.replace("{{count}}",String(t)):a.other.replace("{{count}}",t<13?iv[t]:String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"om "+r:r+" sidan":r},formatLong:ib,formatRelative:function(e,t,n,r){return iy[e]},localize:iw,match:ix,options:{weekStartsOn:1,firstWeekContainsDate:4}};var iP={lessThanXSeconds:{one:"mens d’una segonda",other:"mens de {{count}} segondas"},xSeconds:{one:"1 segonda",other:"{{count}} segondas"},halfAMinute:"30 segondas",lessThanXMinutes:{one:"mens d’una minuta",other:"mens de {{count}} minutas"},xMinutes:{one:"1 minuta",other:"{{count}} minutas"},aboutXHours:{one:"environ 1 ora",other:"environ {{count}} oras"},xHours:{one:"1 ora",other:"{{count}} oras"},xDays:{one:"1 jorn",other:"{{count}} jorns"},aboutXWeeks:{one:"environ 1 setmana",other:"environ {{count}} setmanas"},xWeeks:{one:"1 setmana",other:"{{count}} setmanas"},aboutXMonths:{one:"environ 1 mes",other:"environ {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"mai d’un an",other:"mai de {{count}} ans"},almostXYears:{one:"gaireben un an",other:"gaireben {{count}} ans"}},iE={date:(0,a.A)({formats:{full:"EEEE d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'a' {{time}}",long:"{{date}} 'a' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},iA={lastWeek:"eeee 'passat a' p",yesterday:"'i\xe8r a' p",today:"'u\xe8i a' p",tomorrow:"'deman a' p",nextWeek:"eeee 'a' p",other:"P"},iD={ordinalNumber:function(e,t){var n,r=Number(e),a=null==t?void 0:t.unit;switch(r){case 1:n="\xe8r";break;case 2:n="nd";break;default:n="en"}return("year"===a||"week"===a||"hour"===a||"minute"===a||"second"===a)&&(n+="a"),r+n},era:(0,l.A)({values:{narrow:["ab. J.C.","apr. J.C."],abbreviated:["ab. J.C.","apr. J.C."],wide:["abans J\xe8sus-Crist","apr\xe8s J\xe8sus-Crist"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1\xe8r trim.","2nd trim.","3en trim.","4en trim."],wide:["1\xe8r trim\xe8stre","2nd trim\xe8stre","3en trim\xe8stre","4en trim\xe8stre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["GN","FB","M\xc7","AB","MA","JN","JL","AG","ST","OC","NV","DC"],abbreviated:["gen.","febr.","mar\xe7","abr.","mai","junh","jul.","ag.","set.","oct.","nov.","dec."],wide:["geni\xe8r","febri\xe8r","mar\xe7","abril","mai","junh","julhet","agost","setembre","oct\xf2bre","novembre","decembre"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],short:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],wide:["dimenge","diluns","dimars","dim\xe8cres","dij\xf2us","divendres","dissabte"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"am",pm:"pm",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"matin",afternoon:"apr\xe8p-mi\xe8gjorn",evening:"v\xe8spre",night:"nu\xe8ch"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"matin",afternoon:"apr\xe8p-mi\xe8gjorn",evening:"v\xe8spre",night:"nu\xe8ch"},wide:{am:"a.m.",pm:"p.m.",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"matin",afternoon:"apr\xe8p-mi\xe8gjorn",evening:"v\xe8spre",night:"nu\xe8ch"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"del matin",afternoon:"de l’apr\xe8p-mi\xe8gjorn",evening:"del ser",night:"de la nu\xe8ch"},abbreviated:{am:"AM",pm:"PM",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"del matin",afternoon:"de l’apr\xe8p-mi\xe8gjorn",evening:"del ser",night:"de la nu\xe8ch"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mi\xe8janu\xe8ch",noon:"mi\xe8gjorn",morning:"del matin",afternoon:"de l’apr\xe8p-mi\xe8gjorn",evening:"del ser",night:"de la nu\xe8ch"}},defaultFormattingWidth:"wide"})},iO={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(èr|nd|en)?[a]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ab/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},defaultParseWidth:"any"})};let iC={code:"oc",formatDistance:function(e,t,n){var r,a=iP[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"d’aqu\xed "+r:"fa "+r:r},formatLong:iE,formatRelative:function(e,t,n,r){return iA[e]},localize:iD,match:iO,options:{weekStartsOn:1,firstWeekContainsDate:4}};var iM={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"p\xf3ł minuty",twoFour:"p\xf3ł minuty",other:"p\xf3ł minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function iS(e,t,n){var r=function(e,t){if(1===t)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}(e,t);return("string"==typeof r?r:r[n]).replace("{{count}}",String(t))}var ij={date:(0,a.A)({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},iT={masculine:"ostatni",feminine:"ostatnia"},i_={masculine:"ten",feminine:"ta"},iN={masculine:"następny",feminine:"następna"},iL={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function iR(e,t,n,r){if(ed(t,n,r))a=i_;else if("lastWeek"===e)a=iT;else if("nextWeek"===e)a=iN;else throw Error("Cannot determine adjectives for token ".concat(e));var a,o=a[iL[t.getUTCDay()]];return"'".concat(o,"' eeee 'o' p")}var iz={lastWeek:iR,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:iR,other:"P"},iI={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},defaultWidth:"wide",formattingValues:{narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},defaultWidth:"wide",formattingValues:{narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},defaultFormattingWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"p\xf3łn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"p\xf3łnoc",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wiecz\xf3r",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"p\xf3łnoc",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wiecz\xf3r",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"o p\xf3łn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o p\xf3łnocy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o p\xf3łnocy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},defaultFormattingWidth:"wide"})},iF={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^p/i,/^n/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},defaultParseWidth:"any"})};let iW={code:"pl",formatDistance:function(e,t,n){var r=iM[e];return null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"za "+iS(r,t,"future"):iS(r,t,"past")+" temu":iS(r,t,"regular")},formatLong:ij,formatRelative:function(e,t,n,r){var a=iz[e];return"function"==typeof a?a(e,t,n,r):a},localize:iI,match:iF,options:{weekStartsOn:1,firstWeekContainsDate:4}};var iB={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 m\xeas",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},iU={date:(0,a.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},iV={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},i$={ordinalNumber:function(e,t){return Number(e)+"\xba"},era:(0,l.A)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","s\xe1b"],abbreviated:["dom","seg","ter","qua","qui","sex","s\xe1b"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},iH={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})};let iq={code:"pt",formatDistance:function(e,t,n){var r,a=iB[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"daqui a "+r:"h\xe1 "+r:r},formatLong:iU,formatRelative:function(e,t,n,r){var a=iV[e];return"function"==typeof a?a(t):a},localize:i$,match:iH,options:{weekStartsOn:1,firstWeekContainsDate:4}};var iY={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},iG={date:(0,a.A)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},iK={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},iX={ordinalNumber:function(e,t){var n=Number(e);return(null==t?void 0:t.unit)==="week"?n+"\xaa":n+"\xba"},era:(0,l.A)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},iQ={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})};let iJ={code:"pt-BR",formatDistance:function(e,t,n){var r,a=iY[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"em "+r:"h\xe1 "+r:r},formatLong:iG,formatRelative:function(e,t,n,r){var a=iK[e];return"function"==typeof a?a(t):a},localize:iX,match:iQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};var iZ={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptăm\xe2nă",other:"circa {{count}} săptăm\xe2ni"},xWeeks:{one:"1 săptăm\xe2nă",other:"{{count}} săptăm\xe2ni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},i0={date:(0,a.A)({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i1={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'m\xe2ine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},i2={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["\xce","D"],abbreviated:["\xce.d.C.","D.C."],wide:["\xcenainte de Cristos","După Cristos"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","s\xe2"],abbreviated:["dum","lun","mar","mie","joi","vin","s\xe2m"],wide:["duminică","luni","marți","miercuri","joi","vineri","s\xe2mbătă"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},defaultFormattingWidth:"wide"})},i4={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},defaultParseWidth:"any"})};let i3={code:"ro",formatDistance:function(e,t,n){var r,a=iZ[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"\xeen "+r:r+" \xeen urmă":r},formatLong:i0,formatRelative:function(e,t,n,r){return i1[e]},localize:i2,match:i4,options:{weekStartsOn:1,firstWeekContainsDate:1}};function i9(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function i5(e){return function(t,n){return null!=n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?i9(e.future,t):"через "+i9(e.regular,t):e.past?i9(e.past,t):i9(e.regular,t)+" назад":i9(e.regular,t)}}var i6={lessThanXSeconds:i5({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:i5({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(e,t){return null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:i5({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:i5({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:i5({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:i5({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:i5({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:i5({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:i5({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:i5({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:i5({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:i5({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:i5({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:i5({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:i5({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},i8={date:(0,a.A)({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},i7=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function le(e){var t=i7[e];return 2===e?"'во "+t+" в' p":"'в "+t+" в' p"}var lt={lastWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?le(r):function(e){var t=i7[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?le(r):function(e){var t=i7[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}(r)},other:"P"},ln={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;return n+("date"===r?"-е":"week"===r||"minute"===r||"second"===r?"-я":"-й")},era:(0,l.A)({values:{narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},defaultWidth:"wide",formattingValues:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},defaultFormattingWidth:"wide"})},lr={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})};let la={code:"ru",formatDistance:function(e,t,n){return i6[e](t,n)},formatLong:i8,formatRelative:function(e,t,n,r){var a=lt[e];return"function"==typeof a?a(t,n,r):a},localize:ln,match:lr,options:{weekStartsOn:1,firstWeekContainsDate:1}};function lo(e,t,n){return(1===t&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other)[n].replace("{{count}}",String(t))}function li(e){var t="";return"almost"===e&&(t="takmer"),"about"===e&&(t="približne"),t.length>0?t+" ":""}function ll(e){var t="";return"lessThan"===e&&(t="menej než"),"over"===e&&(t="viac než"),t.length>0?t+" ":""}var lu={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sek\xfand",past:"{{count}} sekundami",future:"{{count}} sek\xfand"}},halfAMinute:{other:{present:"pol min\xfaty",past:"pol min\xfatou",future:"pol min\xfaty"}},xMinutes:{one:{present:"min\xfata",past:"min\xfatou",future:"min\xfatu"},twoFour:{present:"{{count}} min\xfaty",past:"{{count}} min\xfatami",future:"{{count}} min\xfaty"},other:{present:"{{count}} min\xfat",past:"{{count}} min\xfatami",future:"{{count}} min\xfat"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hod\xedn",past:"{{count}} hodinami",future:"{{count}} hod\xedn"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dn\xed",past:"{{count}} dňami",future:"{{count}} dn\xed"}},xWeeks:{one:{present:"t\xfdždeň",past:"t\xfdždňom",future:"t\xfdždeň"},twoFour:{present:"{{count}} t\xfdždne",past:"{{count}} t\xfdždňami",future:"{{count}} t\xfdždne"},other:{present:"{{count}} t\xfdždňov",past:"{{count}} t\xfdždňami",future:"{{count}} t\xfdždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},ls={date:(0,a.A)({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ld=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function lc(e){var t=ld[e];return 4===e?"'vo' eeee 'o' p":"'v "+t+" o' p"}var lf={lastWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?lc(r):function(e){var t=ld[e];switch(e){case 0:case 3:case 6:return"'minul\xfa "+t+" o' p";default:return"'minul\xfd' eeee 'o' p"}}(r)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return ed(e,t,n)?lc(r):function(e){var t=ld[e];switch(e){case 0:case 4:case 6:return"'bud\xfacu "+t+" o' p";default:return"'bud\xfaci' eeee 'o' p"}}(r)},other:"P"},lp={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1r","febru\xe1r","marec","apr\xedl","m\xe1j","j\xfan","j\xfal","august","september","okt\xf3ber","november","december"]},defaultWidth:"wide",formattingValues:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],wide:["janu\xe1ra","febru\xe1ra","marca","apr\xedla","m\xe1ja","j\xfana","j\xfala","augusta","septembra","okt\xf3bra","novembra","decembra"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"r\xe1no",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"r\xe1no",afternoon:"popoludnie",evening:"večer",night:"noc"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"r\xe1no",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"r\xe1no",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"r\xe1no",afternoon:"popoludn\xed",evening:"večer",night:"v noci"}},defaultFormattingWidth:"wide"})},lm={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|n)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{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,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},defaultParseWidth:"any"})};let lh={code:"sk",formatDistance:function(e,t,n){var r,a=["lessThan","about","over","almost"].filter(function(t){return!!e.match(RegExp("^"+t))})[0]||"",o=lu[(r=e.substring(a.length)).charAt(0).toLowerCase()+r.slice(1)];return null!=n&&n.addSuffix?n.comparison&&n.comparison>0?li(a)+"o "+ll(a)+lo(o,t,"future"):li(a)+"pred "+ll(a)+lo(o,t,"past"):li(a)+ll(a)+lo(o,t,"present")},formatLong:ls,formatRelative:function(e,t,n,r){var a=lf[e];return"function"==typeof a?a(t,n,r):a},localize:lp,match:lm,options:{weekStartsOn:1,firstWeekContainsDate:4}};var lg={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}},lv={date:(0,a.A)({formats:{full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lb={lastWeek:function(e){switch(e.getUTCDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:function(e){switch(e.getUTCDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},ly={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},defaultWidth:"wide",formattingValues:{narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},defaultFormattingWidth:"wide"})},lw={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|na[sš]em)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{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],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"wide"}),day:(0,s.A)({matchPatterns:{narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},defaultMatchWidth:"any",parsePatterns:{narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},defaultParseWidth:"any"})};let lx={code:"sl",formatDistance:function(e,t,n){var r="",a="present";null!=n&&n.addSuffix&&(n.comparison&&n.comparison>0?(a="future",r="čez "):(a="past",r="pred "));var o=lg[e];if("string"==typeof o)r+=o;else{var i=function(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}(t);void 0!==o.one?r+=o[i].replace("{{count}}",String(t)):r+=o[a][i].replace("{{count}}",String(t))}return r},formatLong:lv,formatRelative:function(e,t,n,r){var a=lb[e];return"function"==typeof a?a(t):a},localize:ly,match:lw,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lk={lessThanXSeconds:{one:"m\xeb pak se nj\xeb sekond\xeb",other:"m\xeb pak se {{count}} sekonda"},xSeconds:{one:"1 sekond\xeb",other:"{{count}} sekonda"},halfAMinute:"gjys\xebm minuti",lessThanXMinutes:{one:"m\xeb pak se nj\xeb minute",other:"m\xeb pak se {{count}} minuta"},xMinutes:{one:"1 minut\xeb",other:"{{count}} minuta"},aboutXHours:{one:"rreth 1 or\xeb",other:"rreth {{count}} or\xeb"},xHours:{one:"1 or\xeb",other:"{{count}} or\xeb"},xDays:{one:"1 dit\xeb",other:"{{count}} dit\xeb"},aboutXWeeks:{one:"rreth 1 jav\xeb",other:"rreth {{count}} jav\xeb"},xWeeks:{one:"1 jav\xeb",other:"{{count}} jav\xeb"},aboutXMonths:{one:"rreth 1 muaj",other:"rreth {{count}} muaj"},xMonths:{one:"1 muaj",other:"{{count}} muaj"},aboutXYears:{one:"rreth 1 vit",other:"rreth {{count}} vite"},xYears:{one:"1 vit",other:"{{count}} vite"},overXYears:{one:"mbi 1 vit",other:"mbi {{count}} vite"},almostXYears:{one:"pothuajse 1 vit",other:"pothuajse {{count}} vite"}},lP={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'n\xeb' {{time}}",long:"{{date}} 'n\xeb' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lE={lastWeek:"'t\xeb' eeee 'e shkuar n\xeb' p",yesterday:"'dje n\xeb' p",today:"'sot n\xeb' p",tomorrow:"'nes\xebr n\xeb' p",nextWeek:"eeee 'at' p",other:"P"},lA={ordinalNumber:function(e,t){var n=Number(e);return(null==t?void 0:t.unit)==="hour"?String(n):1===n?n+"-r\xeb":4===n?n+"t":n+"-t\xeb"},era:(0,l.A)({values:{narrow:["P","M"],abbreviated:["PK","MK"],wide:["Para Krishtit","Mbas Krishtit"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["4-mujori I","4-mujori II","4-mujori III","4-mujori IV"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","S","M","P","M","Q","K","G","S","T","N","D"],abbreviated:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xebn","Dhj"],wide:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xebntor","Dhjetor"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["D","H","M","M","E","P","S"],short:["Di","H\xeb","Ma","M\xeb","En","Pr","Sh"],abbreviated:["Die","H\xebn","Mar","M\xebr","Enj","Pre","Sht"],wide:["Diel\xeb","H\xebn\xeb","Mart\xeb","M\xebrkur\xeb","Enjte","Premte","Shtun\xeb"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"m\xebngjes",afternoon:"dite",evening:"mbr\xebmje",night:"nat\xeb"},abbreviated:{am:"PD",pm:"MD",midnight:"mesn\xebt\xeb",noon:"drek",morning:"m\xebngjes",afternoon:"mbasdite",evening:"mbr\xebmje",night:"nat\xeb"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesn\xebt\xeb",noon:"drek",morning:"m\xebngjes",afternoon:"mbasdite",evening:"mbr\xebmje",night:"nat\xeb"}},defaultWidth:"wide",formattingValues:{narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"n\xeb m\xebngjes",afternoon:"n\xeb mbasdite",evening:"n\xeb mbr\xebmje",night:"n\xeb mesnat\xeb"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnat\xeb",noon:"drek",morning:"n\xeb m\xebngjes",afternoon:"n\xeb mbasdite",evening:"n\xeb mbr\xebmje",night:"n\xeb mesnat\xeb"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnat\xeb",noon:"drek",morning:"n\xeb m\xebngjes",afternoon:"n\xeb mbasdite",evening:"n\xeb mbr\xebmje",night:"n\xeb mesnat\xeb"}},defaultFormattingWidth:"wide"})},lD={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-rë|-të|t|)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(p|m)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},defaultParseWidth:"any"})};let lO={code:"sq",formatDistance:function(e,t,n){var r,a=lk[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"n\xeb "+r:r+" m\xeb par\xeb":r},formatLong:lP,formatRelative:function(e,t,n,r){return lE[e]},localize:lA,match:lD,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lC={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},lM={date:(0,a.A)({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lS={lastWeek:function(e){switch(e.getUTCDay()){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:function(e){switch(e.getUTCDay()){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},lj={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},defaultWidth:"wide",formattingValues:{narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},defaultFormattingWidth:"wide"})},lT={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^пр/i,/^(по|нова)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},defaultParseWidth:"any"})};let l_={code:"sr",formatDistance:function(e,t,n){var r,a=lC[e];return(r="string"==typeof a?a:1===t?null!=n&&n.addSuffix?n.comparison&&n.comparison>0?a.one.withPrepositionIn:a.one.withPrepositionAgo:a.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?a.dual.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"за "+r:"пре "+r:r},formatLong:lM,formatRelative:function(e,t,n,r){var a=lS[e];return"function"==typeof a?a(t):a},localize:lj,match:lT,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lN={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},lL={date:(0,a.A)({formats:{full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lR={lastWeek:function(e){switch(e.getUTCDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(e){switch(e.getUTCDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},lz={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultWidth:"wide",formattingValues:{narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},defaultFormattingWidth:"wide"})},lI={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)\./i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^pr/i,/^(po|nova)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},defaultParseWidth:"any"})};let lF={code:"sr-Latn",formatDistance:function(e,t,n){var r,a=lN[e];return(r="string"==typeof a?a:1===t?null!=n&&n.addSuffix?n.comparison&&n.comparison>0?a.one.withPrepositionIn:a.one.withPrepositionAgo:a.one.standalone:t%10>1&&t%10<5&&"1"!==String(t).substr(-2,1)?a.dual.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"za "+r:"pre "+r:r},formatLong:lL,formatRelative:function(e,t,n,r){var a=lR[e];return"function"==typeof a?a(t):a},localize:lz,match:lI,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lW={lessThanXSeconds:{one:"mindre \xe4n en sekund",other:"mindre \xe4n {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre \xe4n en minut",other:"mindre \xe4n {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungef\xe4r en timme",other:"ungef\xe4r {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungef\xe4r en vecka",other:"ungef\xe4r {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungef\xe4r en m\xe5nad",other:"ungef\xe4r {{count}} m\xe5nader"},xMonths:{one:"en m\xe5nad",other:"{{count}} m\xe5nader"},aboutXYears:{one:"ungef\xe4r ett \xe5r",other:"ungef\xe4r {{count}} \xe5r"},xYears:{one:"ett \xe5r",other:"{{count}} \xe5r"},overXYears:{one:"\xf6ver ett \xe5r",other:"\xf6ver {{count}} \xe5r"},almostXYears:{one:"n\xe4stan ett \xe5r",other:"n\xe4stan {{count}} \xe5r"}},lB=["noll","en","tv\xe5","tre","fyra","fem","sex","sju","\xe5tta","nio","tio","elva","tolv"],lU={date:(0,a.A)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},lV={lastWeek:"'i' EEEE's kl.' p",yesterday:"'ig\xe5r kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},l$={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:case 2:return n+":a"}return n+":e"},era:(0,l.A)({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["f\xf6re Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["S","M","T","O","T","F","L"],short:["s\xf6","m\xe5","ti","on","to","fr","l\xf6"],abbreviated:["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],wide:["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kv\xe4ll",night:"natt"},wide:{am:"f\xf6rmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kv\xe4ll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morg.",afternoon:"p\xe5 efterm.",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"p\xe5 morgonen",afternoon:"p\xe5 eftermiddagen",evening:"p\xe5 kv\xe4llen",night:"p\xe5 natten"}},defaultFormattingWidth:"wide"})},lH={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{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,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:"any"})};let lq={code:"sv",formatDistance:function(e,t,n){var r,a=lW[e];return(r="string"==typeof a?a:1===t?a.one:n&&n.onlyNumeric?a.other.replace("{{count}}",String(t)):a.other.replace("{{count}}",t<13?lB[t]:String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"om "+r:r+" sedan":r},formatLong:lU,formatRelative:function(e,t,n,r){return lV[e]},localize:l$,match:lH,options:{weekStartsOn:1,firstWeekContainsDate:4}};var lY={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},lG={date:(0,a.A)({formats:{full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lK={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},lX={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},defaultWidth:"wide",formattingValues:{narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},defaultFormattingWidth:"wide"})},lQ={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(வது)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},defaultParseWidth:"any"})};let lJ={code:"ta",formatDistance:function(e,t,n){var r=null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in":"ago":"default",a=lY[e];return void 0!==a.one?1===t?a.one[r]:a.other[r].replace("{{count}}",String(t)):a[r]},formatLong:lG,formatRelative:function(e,t,n,r){return lK[e]},localize:lX,match:lQ,options:{weekStartsOn:1,firstWeekContainsDate:4}};var lZ={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},l0={date:(0,a.A)({formats:{full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},l1={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},l2={ordinalNumber:function(e,t){return Number(e)+"వ"},era:(0,l.A)({values:{narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},defaultWidth:"wide",formattingValues:{narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},defaultFormattingWidth:"wide"})},l4={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(వ)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(పూ|శ)/i,/^సా/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},defaultParseWidth:"any"})};let l3={code:"te",formatDistance:function(e,t,n){var r,a=null!=n&&n.addSuffix?lZ[e].withPreposition:lZ[e].standalone;return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"లో":r+" క్రితం":r},formatLong:l0,formatRelative:function(e,t,n,r){return l1[e]},localize:l2,match:l4,options:{weekStartsOn:0,firstWeekContainsDate:1}};var l9={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},l5={date:(0,a.A)({formats:{full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},defaultWidth:"medium"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l6={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},l8={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},defaultFormattingWidth:"wide"})},l7={ordinalNumber:(0,d.A)({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},defaultMatchWidth:"wide",parsePatterns:{wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},defaultParseWidth:"any"})};let ue={code:"th",formatDistance:function(e,t,n){var r,a=l9[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"halfAMinute"===e?"ใน"+r:"ใน "+r:r+"ที่ผ่านมา":r},formatLong:l5,formatRelative:function(e,t,n,r){return l6[e]},localize:l8,match:l7,options:{weekStartsOn:0,firstWeekContainsDate:1}};var ut={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 g\xfcn",other:"{{count}} g\xfcn"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},un={date:(0,a.A)({formats:{full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ur={lastWeek:"'ge\xe7en hafta' eeee 'saat' p",yesterday:"'d\xfcn saat' p",today:"'bug\xfcn saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},ua={ordinalNumber:function(e,t){return Number(e)+"."},era:(0,l.A)({values:{narrow:["M\xd6","MS"],abbreviated:["M\xd6","MS"],wide:["Milattan \xd6nce","Milattan Sonra"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1\xc7","2\xc7","3\xc7","4\xc7"],wide:["İlk \xe7eyrek","İkinci \xc7eyrek","\xdc\xe7\xfcnc\xfc \xe7eyrek","Son \xe7eyrek"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.A)({values:{narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eyl\xfcl","Ekim","Kasım","Aralık"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["P","P","S","\xc7","P","C","C"],short:["Pz","Pt","Sa","\xc7a","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","\xc7ar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","\xc7arşamba","Perşembe","Cuma","Cumartesi"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yarısı",noon:"\xf6ğle",morning:"sabah",afternoon:"\xf6ğleden sonra",evening:"akşam",night:"gece"},wide:{am:"\xd6.\xd6.",pm:"\xd6.S.",midnight:"gece yarısı",noon:"\xf6ğle",morning:"sabah",afternoon:"\xf6ğleden sonra",evening:"akşam",night:"gece"}},defaultWidth:"wide",formattingValues:{narrow:{am:"\xf6\xf6",pm:"\xf6s",midnight:"gy",noon:"\xf6",morning:"sa",afternoon:"\xf6s",evening:"ak",night:"ge"},abbreviated:{am:"\xd6\xd6",pm:"\xd6S",midnight:"gece yarısı",noon:"\xf6ğlen",morning:"sabahleyin",afternoon:"\xf6ğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"\xf6.\xf6.",pm:"\xf6.s.",midnight:"gece yarısı",noon:"\xf6ğlen",morning:"sabahleyin",afternoon:"\xf6ğleden sonra",evening:"akşamleyin",night:"geceleyin"}},defaultFormattingWidth:"wide"})},uo={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:"any"})};let ui={code:"tr",formatDistance:function(e,t,n){var r,a=ut[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" sonra":r+" \xf6nce":r},formatLong:un,formatRelative:function(e,t,n,r){return ur[e]},localize:ua,match:uo,options:{weekStartsOn:1,firstWeekContainsDate:1}};var ul={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},uu={date:(0,a.A)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},us={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},ud={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},defaultFormattingWidth:"wide"})},uc={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^بۇرۇن/i,/^كىيىن/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},defaultParseWidth:"any"})};let uf={code:"ug",formatDistance:function(e,t,n){var r,a=ul[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null==n||!n.addSuffix||n.comparison&&n.comparison>0)?r:r+" بولدى"},formatLong:uu,formatRelative:function(e,t,n,r){return us[e]},localize:ud,match:uc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function up(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function um(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?up(e.future,t):"за "+up(e.regular,t):e.past?up(e.past,t):up(e.regular,t)+" тому":up(e.regular,t)}}var uh={lessThanXSeconds:um({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:um({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:function(e,t){return t&&t.addSuffix?t.comparison&&t.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},lessThanXMinutes:um({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:um({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:um({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:um({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:um({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:um({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:um({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:um({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:um({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:um({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:um({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:um({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:um({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},ug={date:(0,a.A)({formats:{full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},uv=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function ub(e){return"'у "+uv[e]+" о' p"}var uy={lastWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?ub(a):function(e){var t=uv[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}(a)},yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:function(e,t,n){var r=(0,el.default)(e),a=r.getUTCDay();return ed(r,t,n)?ub(a):function(e){var t=uv[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}(a)},other:"P"},uw={ordinalNumber:function(e,t){var n=String(null==t?void 0:t.unit),r=Number(e);return r+("date"===n?3===r||23===r?"-є":"-е":"minute"===n||"second"===n||"hour"===n?"-а":"-й")},era:(0,l.A)({values:{narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},defaultWidth:"wide",formattingValues:{narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},defaultWidth:"any",formattingValues:{narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},defaultFormattingWidth:"wide"})},ux={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(-?(е|й|є|а|я))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})};let uk={code:"uk",formatDistance:function(e,t,n){return n=n||{},uh[e](t,n)},formatLong:ug,formatRelative:function(e,t,n,r){var a=uy[e];return"function"==typeof a?a(t,n,r):a},localize:uw,match:ux,options:{weekStartsOn:1,firstWeekContainsDate:1}};var uP={lessThanXSeconds:{one:"sekunddan kam",other:"{{count}} sekunddan kam"},xSeconds:{one:"1 sekund",other:"{{count}} sekund"},halfAMinute:"yarim minut",lessThanXMinutes:{one:"bir minutdan kam",other:"{{count}} minutdan kam"},xMinutes:{one:"1 minut",other:"{{count}} minut"},aboutXHours:{one:"tahminan 1 soat",other:"tahminan {{count}} soat"},xHours:{one:"1 soat",other:"{{count}} soat"},xDays:{one:"1 kun",other:"{{count}} kun"},aboutXWeeks:{one:"tahminan 1 hafta",other:"tahminan {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"tahminan 1 oy",other:"tahminan {{count}} oy"},xMonths:{one:"1 oy",other:"{{count}} oy"},aboutXYears:{one:"tahminan 1 yil",other:"tahminan {{count}} yil"},xYears:{one:"1 yil",other:"{{count}} yil"},overXYears:{one:"1 yildan ko'p",other:"{{count}} yildan ko'p"},almostXYears:{one:"deyarli 1 yil",other:"deyarli {{count}} yil"}},uE={date:(0,a.A)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"h:mm:ss zzzz",long:"h:mm:ss z",medium:"h:mm:ss",short:"h:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},uA={lastWeek:"'oldingi' eeee p 'da'",yesterday:"'kecha' p 'da'",today:"'bugun' p 'da'",tomorrow:"'ertaga' p 'da'",nextWeek:"eeee p 'da'",other:"P"},uD={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["M.A","M."],abbreviated:["M.A","M."],wide:["Miloddan Avvalgi","Milodiy"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["CH.1","CH.2","CH.3","CH.4"],wide:["1-chi chorak","2-chi chorak","3-chi chorak","4-chi chorak"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Y","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Y","D","S","CH","P","J","SH"],short:["Ya","Du","Se","Cho","Pa","Ju","Sha"],abbreviated:["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],wide:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},defaultFormattingWidth:"wide"})},uO={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(chi)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(m\.a|m\.)/i,abbreviated:/^(m\.a\.?\s?m\.?)/i,wide:/^(miloddan avval|miloddan keyin)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](chi)? chorak/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[yfmasond]/i,abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i,wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ya/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^iyun/i,/^iyul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[ydschj]/i,short:/^(ya|du|se|cho|pa|ju|sha)/i,abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i,wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^y/i,/^d/i,/^s/i,/^ch/i,/^p/i,/^j/i,/^sh/i],any:[/^ya/i,/^d/i,/^se/i,/^ch/i,/^p/i,/^j/i,/^sh/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i,any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^y\.t/i,noon:/^pe/i,morning:/ertalab/i,afternoon:/tushdan keyin/i,evening:/kechqurun/i,night:/tun/i}},defaultParseWidth:"any"})};let uC={code:"uz",formatDistance:function(e,t,n){var r,a=uP[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" dan keyin":r+" oldin":r},formatLong:uE,formatRelative:function(e,t,n,r){return uA[e]},localize:uD,match:uO,options:{weekStartsOn:1,firstWeekContainsDate:1}};var uM={lessThanXSeconds:{one:"1 сониядан кам",other:"{{count}} сониядан кам"},xSeconds:{one:"1 сония",other:"{{count}} сония"},halfAMinute:"ярим дақиқа",lessThanXMinutes:{one:"1 дақиқадан кам",other:"{{count}} дақиқадан кам"},xMinutes:{one:"1 дақиқа",other:"{{count}} дақиқа"},aboutXHours:{one:"тахминан 1 соат",other:"тахминан {{count}} соат"},xHours:{one:"1 соат",other:"{{count}} соат"},xDays:{one:"1 кун",other:"{{count}} кун"},aboutXWeeks:{one:"тахминан 1 хафта",other:"тахминан {{count}} хафта"},xWeeks:{one:"1 хафта",other:"{{count}} хафта"},aboutXMonths:{one:"тахминан 1 ой",other:"тахминан {{count}} ой"},xMonths:{one:"1 ой",other:"{{count}} ой"},aboutXYears:{one:"тахминан 1 йил",other:"тахминан {{count}} йил"},xYears:{one:"1 йил",other:"{{count}} йил"},overXYears:{one:"1 йилдан кўп",other:"{{count}} йилдан кўп"},almostXYears:{one:"деярли 1 йил",other:"деярли {{count}} йил"}},uS={date:(0,a.A)({formats:{full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},uj={lastWeek:"'ўтган' eeee p 'да'",yesterday:"'кеча' p 'да'",today:"'бугун' p 'да'",tomorrow:"'эртага' p 'да'",nextWeek:"eeee p 'да'",other:"P"},uT={ordinalNumber:function(e,t){return String(e)},era:(0,l.A)({values:{narrow:["М.А","М"],abbreviated:["М.А","М"],wide:["Милоддан Аввалги","Милодий"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-чор.","2-чор.","3-чор.","4-чор."],wide:["1-чорак","2-чорак","3-чорак","4-чорак"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],wide:["январ","феврал","март","апрел","май","июн","июл","август","сентабр","октабр","ноябр","декабр"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["Я","Д","С","Ч","П","Ж","Ш"],short:["як","ду","се","чо","па","жу","ша"],abbreviated:["якш","душ","сеш","чор","пай","жум","шан"],wide:["якшанба","душанба","сешанба","чоршанба","пайшанба","жума","шанба"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},defaultWidth:"any",formattingValues:{any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},defaultFormattingWidth:"any"})},u_={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)(чи)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(м\.а|м\.)/i,abbreviated:/^(м\.а|м\.)/i,wide:/^(милоддан аввал|милоддан кейин)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^м/i,/^а/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]-чор./i,wide:/^[1234]-чорак/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^[яфмамииасонд]/i,abbreviated:/^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i,wide:/^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^д/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[ядсчпжш]/i,short:/^(як|ду|се|чо|па|жу|ша)/i,abbreviated:/^(якш|душ|сеш|чор|пай|жум|шан)/i,wide:/^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^я/i,/^д/i,/^с/i,/^ч/i,/^п/i,/^ж/i,/^ш/i],any:[/^як/i,/^ду/i,/^се/i,/^чор/i,/^пай/i,/^жу/i,/^шан/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^п\.о\./i,pm:/^п\.к\./i,midnight:/^ярим тун/i,noon:/^пешиндан кейин/i,morning:/эрталаб/i,afternoon:/пешиндан кейин/i,evening:/кечаси/i,night:/тун/i}},defaultParseWidth:"any"})};let uN={code:"uz-Cyrl",formatDistance:function(e,t,n){var r,a=uM[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"дан кейин":r+" олдин":r},formatLong:uS,formatRelative:function(e,t,n,r){return uj[e]},localize:uT,match:u_,options:{weekStartsOn:1,firstWeekContainsDate:1}};var uL={lessThanXSeconds:{one:"dưới 1 gi\xe2y",other:"dưới {{count}} gi\xe2y"},xSeconds:{one:"1 gi\xe2y",other:"{{count}} gi\xe2y"},halfAMinute:"nửa ph\xfat",lessThanXMinutes:{one:"dưới 1 ph\xfat",other:"dưới {{count}} ph\xfat"},xMinutes:{one:"1 ph\xfat",other:"{{count}} ph\xfat"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ng\xe0y",other:"{{count}} ng\xe0y"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 th\xe1ng",other:"khoảng {{count}} th\xe1ng"},xMonths:{one:"1 th\xe1ng",other:"{{count}} th\xe1ng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},uR={date:(0,a.A)({formats:{full:"EEEE, 'ng\xe0y' d MMMM 'năm' y",long:"'ng\xe0y' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},uz={lastWeek:"eeee 'tuần trước v\xe0o l\xfac' p",yesterday:"'h\xf4m qua v\xe0o l\xfac' p",today:"'h\xf4m nay v\xe0o l\xfac' p",tomorrow:"'ng\xe0y mai v\xe0o l\xfac' p",nextWeek:"eeee 'tới v\xe0o l\xfac' p",other:"P"},uI={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;if("quarter"===r)switch(n){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if("day"===r)switch(n){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else if("week"===r)return 1===n?"thứ nhất":"thứ "+n;else if("dayOfYear"===r)return 1===n?"đầu ti\xean":"thứ "+n;return String(n)},era:(0,l.A)({values:{narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước C\xf4ng Nguy\xean","sau C\xf4ng Nguy\xean"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Qu\xfd 1","Qu\xfd 2","Qu\xfd 3","Qu\xfd 4"]},defaultWidth:"wide",formattingValues:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["qu\xfd I","qu\xfd II","qu\xfd III","qu\xfd IV"]},defaultFormattingWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Th\xe1ng Một","Th\xe1ng Hai","Th\xe1ng Ba","Th\xe1ng Tư","Th\xe1ng Năm","Th\xe1ng S\xe1u","Th\xe1ng Bảy","Th\xe1ng T\xe1m","Th\xe1ng Ch\xedn","Th\xe1ng Mười","Th\xe1ng Mười Một","Th\xe1ng Mười Hai"]},defaultWidth:"wide",formattingValues:{narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["th\xe1ng 01","th\xe1ng 02","th\xe1ng 03","th\xe1ng 04","th\xe1ng 05","th\xe1ng 06","th\xe1ng 07","th\xe1ng 08","th\xe1ng 09","th\xe1ng 10","th\xe1ng 11","th\xe1ng 12"]},defaultFormattingWidth:"wide"}),day:(0,l.A)({values:{narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ S\xe1u","Thứ Bảy"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"am",pm:"pm",midnight:"nửa đ\xeam",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đ\xeam"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đ\xeam",noon:"trưa",morning:"s\xe1ng",afternoon:"chiều",evening:"tối",night:"đ\xeam"},wide:{am:"SA",pm:"CH",midnight:"nửa đ\xeam",noon:"trưa",morning:"s\xe1ng",afternoon:"chiều",evening:"tối",night:"đ\xeam"}},defaultWidth:"wide",formattingValues:{narrow:{am:"am",pm:"pm",midnight:"nửa đ\xeam",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đ\xeam"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đ\xeam",noon:"trưa",morning:"s\xe1ng",afternoon:"chiều",evening:"tối",night:"đ\xeam"},wide:{am:"SA",pm:"CH",midnight:"nửa đ\xeam",noon:"giữa trưa",morning:"v\xe0o buổi s\xe1ng",afternoon:"v\xe0o buổi chiều",evening:"v\xe0o buổi tối",night:"v\xe0o ban đ\xeam"}},defaultFormattingWidth:"wide"})},uF={ordinalNumber:(0,d.A)({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},defaultParseWidth:"wide"}),day:(0,s.A)({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},defaultParseWidth:"wide"}),dayPeriod:(0,s.A)({matchPatterns:{narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},defaultParseWidth:"any"})};let uW={code:"vi",formatDistance:function(e,t,n){var r,a=uL[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+" nữa":r+" trước":r},formatLong:uR,formatRelative:function(e,t,n,r){return uz[e]},localize:uI,match:uF,options:{weekStartsOn:1,firstWeekContainsDate:1}};var uB={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},uU={date:(0,a.A)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function uV(e,t,n){var r="eeee p";return ed(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var u$={lastWeek:uV,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:uV,other:"PP p"},uH={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,l.A)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},uq={ordinalNumber:(0,d.A)({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})};let uY={code:"zh-CN",formatDistance:function(e,t,n){var r,a=uB[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"内":r+"前":r},formatLong:uU,formatRelative:function(e,t,n,r){var a=u$[e];return"function"==typeof a?a(t,n,r):a},localize:uH,match:uq,options:{weekStartsOn:1,firstWeekContainsDate:4}};var uG={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},uK={date:(0,a.A)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},uX={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},uQ={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},era:(0,l.A)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},defaultFormattingWidth:"wide"})},uJ={ordinalNumber:(0,d.A)({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]季/i,wide:/^第[一二三四]季度/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})};let uZ={code:"zh-HK",formatDistance:function(e,t,n){var r,a=uG[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"內":r+"前":r},formatLong:uK,formatRelative:function(e,t,n,r){return uX[e]},localize:uQ,match:uJ,options:{weekStartsOn:0,firstWeekContainsDate:1}};var u0={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},u1={date:(0,a.A)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,a.A)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,a.A)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},u2={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},u4={ordinalNumber:function(e,t){var n=Number(e);switch(null==t?void 0:t.unit){case"date":return n+"日";case"hour":return n+"時";case"minute":return n+"分";case"second":return n+"秒";default:return"第 "+n}},era:(0,l.A)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,l.A)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,l.A)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,l.A)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,l.A)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultFormattingWidth:"wide"})},u3={ordinalNumber:(0,d.A)({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,s.A)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})};let u9={code:"zh-TW",formatDistance:function(e,t,n){var r,a=u0[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?r+"內":r+"前":r},formatLong:u1,formatRelative:function(e,t,n,r){return u2[e]},localize:u4,match:u3,options:{weekStartsOn:1,firstWeekContainsDate:4}}},67440:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(82284),a=n(10123),o=n(70551);function i(e){var t,n;if((0,o.A)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,r.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,a.default)(e);(void 0===n||n{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(82284),a=n(10123),o=n(70551);function i(e){var t,n;if((0,o.A)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,r.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,a.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)}),n||new Date(NaN)}},36657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>eS});var r=n(82284),a=n(27800);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,a.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}var i=n(36014),l=n(25654),u=n(10123),s=n(37426),d=n(91788),c=n(67044),f=n(41109),p=n(94188),m=n(70551),h=n(9417),g=n(85501),v=n(52962),b=n(23029),y=n(92901),w=n(64467),x=function(){function e(){(0,b.A)(this,e),(0,w.A)(this,"priority",void 0),(0,w.A)(this,"subPriority",0)}return(0,y.A)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),k=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(e,r,a,o,i){var l;return(0,b.A)(this,n),(l=t.call(this)).value=e,l.validateValue=r,l.setValue=a,l.priority=o,i&&(l.subPriority=i),l}return(0,y.A)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(x),P=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o0,a=r?t:1-t;if(a<=50)n=e||100;else{var o=a+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function z(e){return e%400==0||e%4==0&&e%100!=0}var I=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var a=R(n.year,r);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),F=n(50464),W=n(89742),B=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o0}},{key:"set",value:function(e,t,n,r){var a=(0,F.A)(e,r);if(n.isTwoDigitYear){var o=R(n.year,a);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,W.A)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,W.A)(e,r)}}]),n}(E),U=n(9411),V=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),q=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),Y=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),G=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),K=n(96894),X=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,W.A)(function(e,t,n){(0,m.A)(2,arguments);var r=(0,u.default)(e),a=(0,p.A)(t),o=(0,K.A)(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),n}(E),Q=n(31053),J=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,U.A)(function(e,t){(0,m.A)(2,arguments);var n=(0,u.default)(e),r=(0,p.A)(t),a=(0,Q.A)(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n))}}]),n}(E),Z=[31,28,31,30,31,30,31,31,30,31,30,31],ee=[31,29,31,30,31,30,31,31,30,31,30,31],et=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=ee[r]:t>=1&&t<=Z[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(E),en=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(E),er=n(71858);function ea(e,t,n){(0,m.A)(2,arguments);var r,a,o,i,l,s,d,c,f=(0,er.q)(),h=(0,p.A)(null!==(r=null!==(a=null!==(o=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n?void 0:null===(l=n.locale)||void 0===l?void 0:null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==a?a:null===(d=f.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,u.default)(e),v=(0,p.A)(t),b=g.getUTCDay();return g.setUTCDate(g.getUTCDate()+(((v%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ea(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(E),ei=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ea(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(E),el=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ea(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(E),eu=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,m.A)(2,arguments);var n=(0,p.A)(t);n%7==0&&(n-=7);var r=(0,u.default)(e),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(E),es=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(E),ep=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(E),em=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(E),eh=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(E),eg=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(E),ev=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(E),eb=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,b.A)(this,n);for(var r=arguments.length,a=Array(r),o=0;o=1&&y<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=(0,p.A)(null!==(T=null!==(_=null!==(N=null!==(L=null==a?void 0:a.weekStartsOn)&&void 0!==L?L:null==a?void 0:null===(R=a.locale)||void 0===R?void 0:null===(z=R.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==N?N:v.weekStartsOn)&&void 0!==_?_:null===(I=v.locale)||void 0===I?void 0:null===(F=I.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==T?T:0);if(!(w>=0&&w<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===g)return""===h?(0,u.default)(n):new Date(NaN);var x,k,E,A,D,O,C,M,S,j,T,_,N,L,R,z,I,F,W,B={firstWeekContainsDate:y,weekStartsOn:w,locale:b},U=[new P],V=g.match(eA).map(function(e){var t=e[0];return t in d.A?(0,d.A[t])(e,b.formatLong):e}).join("").match(eE),$=[],H=o(V);try{for(H.s();!(W=H.n()).done;){var q=function(){var t=W.value;!(null!=a&&a.useAdditionalWeekYearTokens)&&(0,f.xM)(t)&&(0,f.lJ)(t,g,e),!(null!=a&&a.useAdditionalDayOfYearTokens)&&(0,f.ef)(t)&&(0,f.lJ)(t,g,e);var n=t[0],r=eP[n];if(r){var o=r.incompatibleTokens;if(Array.isArray(o)){var i=$.find(function(e){return o.includes(e.token)||e.token===n});if(i)throw RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&$.length>0)throw RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));$.push({token:n,fullToken:t});var l=r.run(h,t,b.match,B);if(!l)return{v:new Date(NaN)};U.push(l.setter),h=l.rest}else{if(n.match(eM))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(eD)[1].replace(eO,"'")),0!==h.indexOf(t))return{v:new Date(NaN)};h=h.slice(t.length)}}();if("object"===(0,r.A)(q))return q.v}}catch(e){H.e(e)}finally{H.f()}if(h.length>0&&eC.test(h))return new Date(NaN);var Y=U.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return U.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),G=(0,u.default)(n);if(isNaN(G.getTime()))return new Date(NaN);var K,X=(0,l.A)(G,(0,c.A)(G)),Q={},J=o(Y);try{for(J.s();!(K=J.n()).done;){var Z=K.value;if(!Z.validate(X,B))return new Date(NaN);var ee=Z.set(X,Q,B);Array.isArray(ee)?(X=ee[0],(0,s.A)(Q,ee[1])):X=ee}}catch(e){J.e(e)}finally{J.f()}return X}},1806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(57499),a=n(70551),o=n(94188);function i(e,t){(0,a.A)(1,arguments);var n,i,h,g=(0,o.A)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==g&&1!==g&&0!==g)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var v=function(e){var t,n={},r=e.split(l.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],l.timeZoneDelimiter.test(n.date)&&(n.date=e.split(l.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var a=l.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(v.date){var b=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?a:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(v.date,g);i=function(e,t){if(null===t)return new Date(NaN);var n,r,a=e.match(u);if(!a)return new Date(NaN);var o=!!a[4],i=c(a[1]),l=c(a[2])-1,s=c(a[3]),d=c(a[4]),f=c(a[5])-1;if(o)return d>=1&&d<=53&&f>=0&&f<=6?((n=new Date(0)).setUTCFullYear(t,0,4),r=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((d-1)*7+f+1-r)),n):new Date(NaN);var h=new Date(0);return l>=0&&l<=11&&s>=1&&s<=(p[l]||(m(t)?29:28))&&i>=1&&i<=(m(t)?366:365)?(h.setUTCFullYear(t,l,Math.max(i,s)),h):new Date(NaN)}(b.restDateString,b.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var y=i.getTime(),w=0;if(v.time&&isNaN(w=function(e){var t=e.match(s);if(!t)return NaN;var n=f(t[1]),a=f(t[2]),o=f(t[3]);return(24===n?0===a&&0===o:o>=0&&o<60&&a>=0&&a<60&&n>=0&&n<25)?n*r.s0+a*r.Cg+1e3*o:NaN}(v.time)))return new Date(NaN);if(v.timezone){if(isNaN(h=function(e){if("Z"===e)return 0;var t=e.match(d);if(!t)return 0;var n="+"===t[1]?-1:1,a=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return o>=0&&o<=59?n*(a*r.s0+o*r.Cg):NaN}(v.timezone)))return new Date(NaN)}else{var x=new Date(y+w),k=new Date(0);return k.setFullYear(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate()),k.setHours(x.getUTCHours(),x.getUTCMinutes(),x.getUTCSeconds(),x.getUTCMilliseconds()),k}return new Date(y+w+h)}var l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function c(e){return e?parseInt(e):1}function f(e){return e&&parseFloat(e.replace(",","."))||0}var p=[31,null,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400==0||e%4==0&&e%100!=0}},94074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(82284),a=n(10123),o=n(61328),i=n(94188),l=n(70551);function u(e,t){if((0,l.A)(2,arguments),"object"!==(0,r.A)(t)||null===t)throw RangeError("values parameter must be an object");var n=(0,a.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,o.default)(n,t.month)),null!=t.date&&n.setDate((0,i.A)(t.date)),null!=t.hours&&n.setHours((0,i.A)(t.hours)),null!=t.minutes&&n.setMinutes((0,i.A)(t.minutes)),null!=t.seconds&&n.setSeconds((0,i.A)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,i.A)(t.milliseconds)),n)}},67901:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,r.A)(t);return n.setHours(i),n}},67375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,r.A)(t);return n.setMinutes(i),n}},61328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(94188),a=n(10123),o=n(18852),i=n(70551);function l(e,t){(0,i.A)(2,arguments);var n=(0,a.default)(e),l=(0,r.A)(t),u=n.getFullYear(),s=n.getDate(),d=new Date(0);d.setFullYear(u,l,15),d.setHours(0,0,0,0);var c=(0,o.A)(d);return n.setMonth(l,Math.min(s,c)),n}},56090:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(94188),a=n(10123),o=n(61328),i=n(70551);function l(e,t){(0,i.A)(2,arguments);var n=(0,a.default)(e),l=(0,r.A)(t),u=Math.floor(n.getMonth()/3)+1;return(0,o.default)(n,n.getMonth()+3*(l-u))}},41591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,r.A)(t);return n.setSeconds(i),n}},18895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,a.default)(e),i=(0,r.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}},31127:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},28504:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(27827),a=n(70551);function o(e){return(0,a.A)(1,arguments),(0,r.default)(e,{weekStartsOn:1})}},32889:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(45042),a=n(28504),o=n(70551);function i(e){(0,o.A)(1,arguments);var t=(0,r.A)(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,a.A)(n)}},20543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},66757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setMonth(n-n%3,1),t.setHours(0,0,0,0),t}},27827:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(10123),a=n(94188),o=n(70551),i=n(71858);function l(e,t){(0,o.A)(1,arguments);var n,l,u,s,d,c,f,p,m=(0,i.q)(),h=(0,a.A)(null!==(n=null!==(l=null!==(u=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==u?u:m.weekStartsOn)&&void 0!==l?l:null===(f=m.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getDay();return g.setDate(g.getDate()-((v{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10123),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(92998),a=n(70551),o=n(94188);function i(e,t){(0,a.A)(2,arguments);var n=(0,o.A)(t);return(0,r.default)(e,-n)}},25654:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7767),a=n(70551),o=n(94188);function i(e,t){(0,a.A)(2,arguments);var n=(0,o.A)(t);return(0,r.A)(e,-n)}},44327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(2118),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,-n)}},12657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(29852),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,-n)}},33337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(82238),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,-n)}},49326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(94188),a=n(49317),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(t);return(0,a.default)(e,-n)}},10123:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82284),a=n(70551);function o(e){(0,a.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},4982:(e,t,n)=>{"use strict";var r=n(6525),a=n(38075),o=n(71589),i=n(70453),l=n(94552),u=n(920),s=n(37653),d=n(47244),c=n(64634),f=n(84670),p=n(62120),m=n(14035),h=n(37070),g=n(1189),v=n(81539),b=n(37638),y=n(25767),w=n(19511),x=a("SharedArrayBuffer.prototype.byteLength",!0),k=a("Date.prototype.getTime"),P=Object.getPrototypeOf,E=a("Object.prototype.toString"),A=i("%Set%",!0),D=a("Map.prototype.has",!0),O=a("Map.prototype.get",!0),C=a("Map.prototype.size",!0),M=a("Set.prototype.add",!0),S=a("Set.prototype.delete",!0),j=a("Set.prototype.has",!0),T=a("Set.prototype.size",!0);function _(e,t,n,r){for(var a,o=l(e);(a=o.next())&&!a.done;)if(R(t,a.value,n,r))return S(e,a.value),!0;return!1}function N(e){return void 0===e?null:"object"==typeof e?void 0:"symbol"!=typeof e&&("string"!=typeof e&&"number"!=typeof e||+e==+e)}function L(e,t,n,r,a,o){for(var i,u,s=l(e);(i=s.next())&&!i.done;)if(R(n,u=i.value,a,o)&&R(r,O(t,u),a,o))return S(e,u),!0;return!1}function R(e,t,n,a){var i,u=n||{};if(u.strict?s(e,t):e===t)return!0;if(v(e)!==v(t))return!1;if(!e||!t||"object"!=typeof e&&"object"!=typeof t)return u.strict?s(e,t):e==t;var S=a.has(e),I=a.has(t);if(S&&I){if(a.get(e)===a.get(t))return!0}else i={};return S||a.set(e,i),I||a.set(t,i),function(e,t,n,a){if(typeof e!=typeof t||null==e||null==t||E(e)!==E(t)||d(e)!==d(t)||c(e)!==c(t))return!1;var i,u,s=e instanceof Error,v=t instanceof Error;if(s!==v||(s||v)&&(e.name!==t.name||e.message!==t.message))return!1;var S=m(e),I=m(t);if(S!==I||(S||I)&&(e.source!==t.source||o(e)!==o(t)))return!1;var F=p(e),W=p(t);if(F!==W||(F||W)&&k(e)!==k(t)||n.strict&&P&&P(e)!==P(t))return!1;var B=y(e),U=y(t);if(B!==U)return!1;if(B||U){if(e.length!==t.length)return!1;for(i=0;i=0;i--)if(K[i]!=X[i])return!1;for(i=K.length-1;i>=0;i--)if(!R(e[u=K[i]],t[u],n,a))return!1;var Q=b(e),J=b(t);return Q===J&&("Set"===Q||"Set"===J?function(e,t,n,r){if(T(e)!==T(t))return!1;for(var a,o,i,u=l(e),s=l(t);(a=u.next())&&!a.done;)if(a.value&&"object"==typeof a.value)i||(i=new A),M(i,a.value);else if(!j(t,a.value)){if(n.strict||!function(e,t,n){var r=N(n);return null!=r?r:j(t,r)&&!j(e,r)}(e,t,a.value))return!1;i||(i=new A),M(i,a.value)}if(i){for(;(o=s.next())&&!o.done;)if(o.value&&"object"==typeof o.value){if(!_(i,o.value,n.strict,r))return!1}else if(!n.strict&&!j(e,o.value)&&!_(i,o.value,n.strict,r))return!1;return 0===T(i)}return!0}(e,t,n,a):"Map"!==Q||function(e,t,n,a){if(C(e)!==C(t))return!1;for(var o,i,u,s,d,c,f=l(e),p=l(t);(o=f.next())&&!o.done;)if(s=o.value[0],d=o.value[1],s&&"object"==typeof s)u||(u=new A),M(u,s);else if(void 0===(c=O(t,s))&&!D(t,s)||!R(d,c,n,a)){if(n.strict||!function(e,t,n,a,o,i){var l=N(n);if(null!=l)return l;var u=O(t,l),s=r({},o,{strict:!1});return!!((void 0!==u||D(t,l))&&R(a,u,s,i))&&!D(e,l)&&R(a,u,s,i)}(e,t,s,d,n,a))return!1;u||(u=new A),M(u,s)}if(u){for(;(i=p.next())&&!i.done;)if(s=i.value[0],c=i.value[1],s&&"object"==typeof s){if(!L(u,e,s,c,n,a))return!1}else if(!n.strict&&(!e.has(s)||!R(O(e,s),c,n,a))&&!L(u,e,s,c,r({},n,{strict:!1}),a))return!1;return 0===T(u)}return!0}(e,t,n,a))}(e,t,u,a)}function z(e){return!!e&&"object"==typeof e&&"number"==typeof e.length&&"function"==typeof e.copy&&"function"==typeof e.slice&&(!(e.length>0)||"number"==typeof e[0])&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}e.exports=function(e,t,n){return R(e,t,n,u())}},14744:e=>{"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function a(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function i(e,t){try{return t in e}catch(e){return!1}}function l(e,n,u){(u=u||{}).arrayMerge=u.arrayMerge||a,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=r;var s,d,c=Array.isArray(n);return c!==Array.isArray(e)?r(n,u):c?u.arrayMerge(e,n,u):(d={},(s=u).isMergeableObject(e)&&o(e).forEach(function(t){d[t]=r(e[t],s)}),o(n).forEach(function(t){(!i(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(i(e,t)&&s.isMergeableObject(n[t])?d[t]=(function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l})(t,s)(e[t],n[t],s):d[t]=r(n[t],s))}),d)}l.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},30041:(e,t,n)=>{"use strict";var r=n(30592)(),a=n(70453),o=r&&a("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var i=a("%SyntaxError%"),l=a("%TypeError%"),u=n(75795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,d=arguments.length>6&&arguments[6],c=!!u&&u(e,t);if(o)o(e,t,{configurable:null===s&&c?c.configurable:!s,enumerable:null===r&&c?c.enumerable:!r,value:n,writable:null===a&&c?c.writable:!a});else if(!d&&(r||a||s))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=n}},38452:(e,t,n)=>{"use strict";var r=n(1189),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,i=Array.prototype.concat,l=n(30041),u=n(30592)(),s=function(e,t,n,r){if(t in e){if(!0===r){if(e[t]===n)return}else if(!("function"==typeof r&&"[object Function]"===o.call(r))||!r())return}u?l(e,t,n,!0):l(e,t,n)},d=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);a&&(o=i.call(o,Object.getOwnPropertySymbols(t)));for(var l=0;l{"use strict";e.exports=function(e){return(e=String(e||""),r.test(e))?"rtl":a.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",r=RegExp("^[^"+n+"]*["+t+"]"),a=RegExp("^[^"+t+"]*["+n+"]")},93212:(e,t,n)=>{var r=n(87206);function a(e,t){var n=(t=t||{}).delimiter||".",a=t.maxDepth,o=t.coercion,i=t.filters,l={};return!function e(u,s,d){d=d||1,Object.keys(u).forEach(function(c){var f,p,m,h,g=u[c],v=s?s+n+c:c;let b=function(e,t){if(!o)return t;var n=t;return o.forEach(function(t){n=t.test(e,n)?t.transform(n):n}),n}(c,g);if(f=d,p=Object.prototype.toString.call(g),m=t.safe&&Array.isArray(g),h=r(g),b===g&&!m&&!h&&("[object Object]"===p||"[object Array]"===p)&&Object.keys(g).length&&(!t.maxDepth||f0&&(s=l(u.shift()),d=l(u[0]))}c[s]=e(t[r],n)}),i}},92216:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>T});/*! +* tabbable 5.3.3 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var r=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],a=r.join(","),o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!o&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},u=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(a));return t&&i.call(e,a)&&r.unshift(e),r=r.filter(n)},s=function e(t,n,r){for(var o=[],l=Array.from(t);l.length;){var u=l.shift();if("SLOT"===u.tagName){var s=u.assignedElements(),d=e(s.length?s:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scope:u,candidates:d})}else{i.call(u,a)&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var c=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),f=!r.shadowRootFilter||r.shadowRootFilter(u);if(c&&f){var p=e(!0===c?u.children:c.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scope:u,candidates:p})}else l.unshift.apply(l,u.children)}}return o},d=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},c=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},f=function(e){return"INPUT"===e.tagName},p=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(i.call(a,"details:not([open]) *"))return!0;var o=l(e).host,u=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return h(e)}else{if("function"==typeof r){for(var s=e;e;){var d=e.parentElement,c=l(e);if(d&&!d.shadowRoot&&!0===r(d))return h(e);e=e.assignedSlot?e.assignedSlot:d||c===e.ownerDocument?d:c.host}e=s}if(u)return!e.getClientRects().length}return!1},v=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nd(t))&&!!b(e,t)},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},x=function e(t){var n=[],r=[];return t.forEach(function(t,a){var o=!!t.scope,i=o?t.scope:t,l=d(i,o),u=o?e(t.candidates):i;0===l?o?n.push.apply(n,u):n.push(i):r.push({documentOrder:a,tabIndex:l,item:t,isScope:o,content:u})}),r.sort(c).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},k=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,a)&&y(t,e)},P=r.concat("iframe").join(","),E=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,P)&&b(t,e)};/*! +* focus-trap 6.9.4 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),C=function(e){return setTimeout(e,0)},M=function(e,t){var n=-1;return e.every(function(e,r){return!t(e)||(n=r,!1)}),n},S=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?n-1:0),i=1;i=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||d("fallbackFocus")}}if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},f=function(){if(o.containerGroups=o.containers.map(function(e){var t,n,r,o,i=(t=e,x((n=(n=a.tabbableOptions)||{}).getShadowRoot?s([t],n.includeContainer,{filter:y.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:w}):u(t,n.includeContainer,y.bind(null,n)))),l=(r=e,(o=(o=a.tabbableOptions)||{}).getShadowRoot?s([r],o.includeContainer,{filter:b.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):u(r,o.includeContainer,b.bind(null,o)));return{container:e,tabbableNodes:i,focusableNodes:l,firstTabbableNode:i.length>0?i[0]:null,lastTabbableNode:i.length>0?i[i.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=l.findIndex(function(t){return t===e});return n<0?void 0:t?l.slice(n+1).find(function(e){return k(e,a.tabbableOptions)}):l.slice(0,n).reverse().find(function(e){return k(e,a.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!d("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function e(t){if(!1!==t&&t!==r.activeElement){if(!t||!t.focus){e(c());return}t.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=t,t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&t.select()}},m=function(e){var t=d("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=j(e);if(!(l(t)>=0)){if(S(a.clickOutsideDeactivates,e)){n.deactivate({returnFocus:a.returnFocusOnDeactivate&&!E(t,a.tabbableOptions)});return}S(a.allowOutsideClick,e)||e.preventDefault()}},g=function(e){var t=j(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),p(o.mostRecentlyFocusedNode||c()))},v=function(e){var t=j(e);f();var n=null;if(o.tabbableGroups.length>0){var r=l(t),i=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var u=M(o.tabbableGroups,function(e){return t===e.firstTabbableNode});if(u<0&&(i.container===t||E(t,a.tabbableOptions)&&!k(t,a.tabbableOptions)&&!i.nextTabbableNode(t,!1))&&(u=r),u>=0){var s=0===u?o.tabbableGroups.length-1:u-1;n=o.tabbableGroups[s].lastTabbableNode}}else{var c=M(o.tabbableGroups,function(e){return t===e.lastTabbableNode});if(c<0&&(i.container===t||E(t,a.tabbableOptions)&&!k(t,a.tabbableOptions)&&!i.nextTabbableNode(t))&&(c=r),c>=0){var m=c===o.tabbableGroups.length-1?0:c+1;n=o.tabbableGroups[m].firstTabbableNode}}}else n=d("fallbackFocus");n&&(e.preventDefault(),p(n))},P=function(e){if(("Escape"===e.key||"Esc"===e.key||27===e.keyCode)&&!1!==S(a.escapeDeactivates,e)){e.preventDefault(),n.deactivate();return}if("Tab"===e.key||9===e.keyCode){v(e);return}},A=function(e){l(j(e))>=0||S(a.clickOutsideDeactivates,e)||S(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},T=function(){if(o.active)return O.activateTrap(n),o.delayInitialFocusTimer=a.delayInitialFocus?C(function(){p(c())}):p(c()),r.addEventListener("focusin",g,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",A,{capture:!0,passive:!1}),r.addEventListener("keydown",P,{capture:!0,passive:!1}),n},_=function(){if(o.active)return r.removeEventListener("focusin",g,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",A,!0),r.removeEventListener("keydown",P,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=i(e,"onActivate"),n=i(e,"onPostActivate"),a=i(e,"checkCanFocusTrap");a||f(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){a&&f(),T(),n&&n()};return a?a(o.containers.concat()).then(l,l):l(),this},deactivate:function(e){if(!o.active)return this;var t=D({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,_(),o.active=!1,o.paused=!1,O.deactivateTrap(n);var r=i(t,"onDeactivate"),l=i(t,"onPostDeactivate"),u=i(t,"checkCanReturnFocus"),s=i(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){C(function(){s&&p(m(o.nodeFocusedBeforeActivation)),l&&l()})};return s&&u?u(m(o.nodeFocusedBeforeActivation)).then(d,d):d(),this},pause:function(){return o.paused||!o.active||(o.paused=!0,_()),this},unpause:function(){return o.paused&&o.active&&(o.paused=!1,f(),T()),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map(function(e){return"string"==typeof e?r.querySelector(e):e}),o.active&&f(),this}}).updateContainerElements(e),n}},82682:(e,t,n)=>{"use strict";var r=n(69600),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty,i=function(e,t,n){for(var r=0,a=e.length;r=3&&(o=n),"[object Array]"===a.call(e)?i(e,t,o):"string"==typeof e?l(e,t,o):u(e,t,o)}},89353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(89353);e.exports=Function.prototype.bind||r},74462:e=>{"use strict";var t=function(){return"string"==typeof(function(){}).name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n(function(){},"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==(function(){}).bind().name},e.exports=t},70453:(e,t,n)=>{"use strict";var r,a=SyntaxError,o=Function,i=TypeError,l=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var s=function(){throw new i},d=u?function(){try{return arguments.callee,s}catch(e){try{return u(arguments,"callee").get}catch(e){return s}}}():s,c=n(64039)(),f=n(80024)(),p=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),m={},h="undefined"!=typeof Uint8Array&&p?p(Uint8Array):r,g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":c&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c&&p?p(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c&&p?p(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&p?p(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":d,"%TypedArray%":h,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(e){var v=p(p(e));g["%Error.prototype%"]=v}var b=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&p&&(n=p(a.prototype))}return g[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(66743),x=n(9957),k=w.call(Function.call,Array.prototype.concat),P=w.call(Function.apply,Array.prototype.splice),E=w.call(Function.call,String.prototype.replace),A=w.call(Function.call,String.prototype.slice),D=w.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,M=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,O,function(e,t,n,a){r[r.length]=n?E(a,C,"$1"):t||e}),r},S=function(e,t){var n,r=e;if(x(y,r)&&(r="%"+(n=y[r])[0]+"%"),x(g,r)){var o=g[r];if(o===m&&(o=b(r)),void 0===o&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new a("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=M(e),r=n.length>0?n[0]:"",o=S("%"+r+"%",t),l=o.name,s=o.value,d=!1,c=o.alias;c&&(r=c[0],P(n,k([0,1],c)));for(var f=1,p=!0;f=n.length){var b=u(s,m);s=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[m]}else p=x(s,m),s=s[m];p&&!d&&(g[l]=s)}}return s}},75795:(e,t,n)=>{"use strict";var r=n(70453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},29790:e=>{"use strict";var t="undefined"!=typeof BigInt&&BigInt;e.exports=function(){return"function"==typeof t&&"function"==typeof BigInt&&"bigint"==typeof t(42)&&"bigint"==typeof BigInt(42)}},30592:(e,t,n)=>{"use strict";var r=n(70453)("%Object.defineProperty%",!0),a=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},80024:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof n)}},64039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,a=n(41333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}},41333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},49092:(e,t,n)=>{"use strict";var r=n(41333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=n(66743);e.exports=o.call(r,a)},4146:(e,t,n)=>{"use strict";var r=n(44363),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,d=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=p(n);a&&a!==m&&e(t,a,r)}var i=d(n);c&&(i=i.concat(c(n)));for(var l=u(t),h=u(n),g=0;g{var t;t={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},e.exports={classes:t,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":t.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":t.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":t.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":t.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":t.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":t.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":t.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":t.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":t.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":t.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":t.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":t.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":t.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":t.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":t.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":t.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":t.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":t.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":t.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":t.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":t.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":t.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":t.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":t.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":t.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":t.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":t.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":t.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":t.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":t.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":t.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":t.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":t.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":t.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":t.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":t.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":t.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":t.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":t.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":t.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":t.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":'Any attempt to brew coffee with a teapot should result in the error code "418 I\'m a teapot". The resulting entity body MAY be short and stout.',"418_CLASS":t.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":t.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":t.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":t.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":t.CLIENT_ERROR,FAILED_DEPENDENCY:424,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":t.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":t.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":t.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":t.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":t.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":t.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":t.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":t.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":t.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":t.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":t.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":t.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":t.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":t.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":t.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":t.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":t.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":t.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":t.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":t.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":t.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":t.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":t.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":t.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":t.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":t.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":t.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":t.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":t.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":t.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":t.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":t.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":t.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":t.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":t.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":t.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":t.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":t.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":t.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":t.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":t.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":t.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":t.SERVER_ERROR,RAILGUN_ERROR:527}}}},74543:(e,t,n)=>{"use strict";var r=n(17383),a=n(34579);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(r),l=o(a),u=[],s=u.forEach,d=u.slice,c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,f=function(e,t,n){var r=n||{};r.path=r.path||"/";var a=encodeURIComponent(t),o="".concat(e,"=").concat(a);if(r.maxAge>0){var i=r.maxAge-0;if(Number.isNaN(i))throw Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(i))}if(r.domain){if(!c.test(r.domain))throw TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!c.test(r.path))throw TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return o},p={create:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+6e4*n)),r&&(a.domain=r),document.cookie=f(e,encodeURIComponent(t),a)},read:function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),a=0;a0&&r[a].substring(0,o)===e.lookupQuerystring&&(t=r[a].substring(o+1))}}return t}},g=null,v=function(){if(null!==g)return g;try{g="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){g=!1}return g},b={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&v()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&v()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},y=null,w=function(){if(null!==y)return y;try{y="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){y=!1}return y},x={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&w()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&w()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},k={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},P={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},E={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array){if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}}return t}},A={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}},D=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i.default(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return l.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return s.call(d.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(m),this.addDetector(h),this.addDetector(b),this.addDetector(x),this.addDetector(k),this.addDetector(P),this.addDetector(E),this.addDetector(A)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return(e.forEach(function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}}),this.services.languageUtils.getBestMatchFromCodes)?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}]),e}();D.type="languageDetector",e.exports=D},35543:(e,t,n)=>{"use strict";var r=n(73738),a=n(17383),o=n(34579),i=n(12475),l=n(29511),u=n(28452),s=n(63072),d=n(43693),c=n(8053);function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=f(r),m=f(a),h=f(o),g=f(i),v=f(l),b=f(u),y=f(s),w=f(d),x=f(c);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};m.default(this,e),this.init(t,n)}return h.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||E,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(a())return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:r(o.shift())}}function S(e,t,n){var r=M(e,t,Object);r.obj[r.k]=n}function j(e,t){var n=M(e,t),r=n.obj,a=n.k;if(r)return r[a]}function T(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function N(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return _[e]}):e}var L="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,R=[" ",",","?","!",";"];function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),a=e,o=0;oo+i;)i++,u=a[l=r.slice(o,o+i).join(n)];if(void 0===u)return;if(null===u)return null;if(t.endsWith(l)){if("string"==typeof u)return u;if(l&&"string"==typeof u[l])return u[l]}var s=r.slice(o+i).join(n);if(s)return z(u,s,n);return}a=a[r[o]]}return a}}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return m.default(this,r),t=n.call(this),L&&D.call(g.default(t)),t.data=e||{},t.options=a,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return h.default(r,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(i=e.split("."));var l=j(this.data,i);return l||!o||"string"!=typeof n?l:z(this.data&&this.data[e]&&this.data[e][t],n,a)}},{key:"addResource",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,i=[e,t];n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),S(this.data,i,r),a.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in n)("string"==typeof n[a]||"[object Array]"===Object.prototype.toString.apply(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);var l=j(this.data,i)||{};r?function e(t,n,r){for(var a in n)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof n[a]||n[a]instanceof String?r&&(t[a]=n[a]):e(t[a],n[a],r):t[a]=n[a]);return t}(l,n,a):l=F(F({},l),n),S(this.data,i,l),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?F(F({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(D),B={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,a){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,a))}),t}};function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return m.default(this,r),t=n.call(this),L&&D.call(g.default(t)),!function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,g.default(t)),t.options=a,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=A.create("translator"),t}return h.default(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,i=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=R.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var a=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!a.test(e);if(!o){var i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o}(e,n,r);if(o&&!i){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:a};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(r)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,t,n){var a=this;if("object"!==p.default(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===p.default(t)&&(t=V({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),u=l.key,s=l.namespaces,d=s[s.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var m=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(d).concat(m).concat(u),usedKey:u,exactUsedKey:u,usedLng:c,usedNS:d}:"".concat(d).concat(m).concat(u)}return o?{res:u,usedKey:u,exactUsedKey:u,usedLng:c,usedNS:d}:u}var h=this.resolve(e,t),g=h&&h.res,v=h&&h.usedKey||u,b=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(g),w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,k="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(x&&g&&k&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(y)&&!("string"==typeof w&&"[object Array]"===y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,V(V({},t),{},{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=P,h):P}if(i){var E="[object Array]"===y,A=E?[]:{},D=E?b:v;for(var O in g)if(Object.prototype.hasOwnProperty.call(g,O)){var C="".concat(D).concat(i).concat(O);A[O]=this.translate(C,V(V({},t),{joinArrays:!1,ns:s})),A[O]===C&&(A[O]=g[O])}g=A}}else if(x&&"string"==typeof w&&"[object Array]"===y)(g=g.join(w))&&(g=this.extendTranslation(g,e,t,n));else{var M=!1,S=!1,j=void 0!==t.count&&"string"!=typeof t.count,T=r.hasDefaultValue(t),_=j?this.pluralResolver.getSuffix(c,t.count,t):"",N=t["defaultValue".concat(_)]||t.defaultValue;!this.isValidLookup(g)&&T&&(M=!0,g=N),this.isValidLookup(g)||(S=!0,g=u);var L=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:g,R=T&&N!==g&&this.options.updateMissing;if(S||M||R){if(this.logger.log(R?"updateKey":"missingKey",c,d,u,R?N:g),i){var z=this.resolve(u,V(V({},t),{},{keySeparator:!1}));z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var I=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var W=0;W1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var u=i.extractFromKey(e,l),s=u.key;n=s;var d=u.namespaces;i.options.fallbackNS&&(d=d.concat(i.options.fallbackNS));var c=void 0!==l.count&&"string"!=typeof l.count,f=c&&!l.ordinal&&0===l.count&&i.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,m=l.lngs?l.lngs:i.languageUtils.toResolveHierarchy(l.lng||i.language,l.fallbackLng);d.forEach(function(e){i.isValidLookup(t)||(o=e,!$["".concat(m[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(o)&&($["".concat(m[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(n){if(!i.isValidLookup(t)){a=n;var o,u=[s];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(u,s,n,e,l);else{c&&(d=i.pluralResolver.getSuffix(n,l.count,l));var d,m="".concat(i.options.pluralSeparator,"zero");if(c&&(u.push(s+d),f&&u.push(s+m)),p){var h="".concat(s).concat(i.options.contextSeparator).concat(l.context);u.push(h),c&&(u.push(h+d),f&&u.push(h+m))}}for(;o=u.pop();)i.isValidLookup(t)||(r=o,t=i.getResource(n,e,o,l))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),r}(D);function q(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Y=function(){function e(t){m.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=A.create("languageUtils")}return h.default(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=q(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=q(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=q(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(n.isSupportedCode(e)?a.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>a.indexOf(e)&&o(n.formatLanguageCode(e))}),a}}]),e}(),G=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],K={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},X=["v1","v2","v3"],Q={zero:0,one:1,two:2,few:3,many:4,other:5},J=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m.default(this,e),this.languageUtils=t,this.options=r,this.logger=A.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},G.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:K[e.fc]}})}),n)}return h.default(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return Q[e]-Q[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),a=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!X.includes(this.options.compatibilityJSON)}}]),e}();function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=void 0!==(r=j(e,n))?r:j(t,n);return!i&&o&&"string"==typeof n&&void 0===(i=z(e,n,a))&&(i=z(t,n,a)),i}var en=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m.default(this,e),this.logger=A.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return h.default(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:N,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?T(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?T(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?T(t.nestingPrefix):t.nestingPrefixEscaped||T("$t("),this.nestingSuffix=t.nestingSuffix?T(t.nestingSuffix):t.nestingSuffixEscaped||T(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var a,o,i,l=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(l.formatSeparator)){var a=et(t,u,e,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(a,void 0,n,ee(ee(ee({},r),t),{},{interpolationkey:e})):a}var o=e.split(l.formatSeparator),i=o.shift().trim(),s=o.join(l.formatSeparator).trim();return l.format(et(t,u,i,l.options.keySeparator,l.options.ignoreJSONStructure),s,n,ee(ee(ee({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?s(l.escape(e)):s(e)}}].forEach(function(t){for(i=0;a=t.regex.exec(e);){var n=a[1].trim();if(void 0===(o=d(n))){if("function"==typeof c){var u=c(e,a,r);o="string"==typeof u?u:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else if(f){o=a[0];continue}else l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||l.useRawValueToEscape||(o=C(o));var s=t.safeValue(o);if(e=e.replace(a[0],s),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++i>=l.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,a,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function l(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var i=(o=this.interpolate(o,a)).match(/'/g),l=o.match(/"/g);(i&&i.length%2==0&&!l||l.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=ee(ee({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var u=[];(a=(a=ee({},i)).replace&&"string"!=typeof a.replace?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;var s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),u=d,s=!0}if((r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=C(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s&&(r=u.reduce(function(e,t){return o.format(e,t,i.lng,ee(ee({},i),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ea(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};m.default(this,e),this.logger=A.create("formatter"),this.options=t,this.formats={number:eo(function(e,t){var n=new Intl.NumberFormat(e,ea({},t));return function(e){return n.format(e)}}),currency:eo(function(e,t){var n=new Intl.NumberFormat(e,ea(ea({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:eo(function(e,t){var n=new Intl.DateTimeFormat(e,ea({},t));return function(e){return n.format(e)}}),relativetime:eo(function(e,t){var n=new Intl.RelativeTimeFormat(e,ea({},t));return function(e){return n.format(e,t.range||"day")}}),list:eo(function(e,t){var n=new Intl.ListFormat(e,ea({},t));return function(e){return n.format(e)}})},this.init(t)}return h.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=eo(t)}},{key:"format",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var a=r[1].substring(0,r[1].length-1);"currency"===t&&0>a.indexOf(":")?n.currency||(n.currency=a.trim()):"relativetime"===t&&0>a.indexOf(":")?n.range||(n.range=a.trim()):a.split(";").forEach(function(e){if(e){var t=e.split(":"),r=x.default(t),a=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=o),"false"===o&&(n[a.trim()]=!1),"true"===o&&(n[a.trim()]=!0),isNaN(o)||(n[a.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}}(t),i=o.formatName,l=o.formatOptions;if(r.formats[i]){var u=e;try{var s=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},d=s.locale||s.lng||a.locale||a.lng||n;u=r.formats[i](e,d,ea(ea(ea({},l),a),s))}catch(e){r.logger.warn(e)}return u}return r.logger.warn("there was no format function for ".concat(i)),e},e)}}]),e}();function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return m.default(this,r),o=n.call(this),L&&D.call(g.default(o)),o.backend=e,o.store=t,o.services=a,o.languageUtils=a.languageUtils,o.options=i,o.logger=A.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=i.maxParallelReads||10,o.readingCalls=0,o.maxRetries=i.maxRetries>=0?i.maxRetries:5,o.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,i.backend,i),o}return h.default(r,[{key:"queueLoad",value:function(e,t,n,r){var a=this,o={},i={},l={},u={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var l="".concat(e,"|").concat(t);!n.reload&&a.store.hasResourceBundle(e,t)?a.state[l]=2:a.state[l]<0||(1===a.state[l]?void 0===i[l]&&(i[l]=!0):(a.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===u[t]&&(u[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),a=r[0],o=r[1];t&&this.emit("failedLoading",a,o,t),n&&this.store.addResourceBundle(a,o,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){var r,l,u,s;(u=(l=M(n.loaded,[a],Object)).obj)[s=l.k]=u[s]||[],r&&(u[s]=u[s].concat(o)),r||u[s].push(o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:a,wait:o,callback:i});return}this.readingCalls++;var l=function(l,u){if(r.readingCalls--,r.waitingReads.length>0){var s=r.waitingReads.shift();r.read(s.lng,s.ns,s.fcName,s.tried,s.wait,s.callback)}if(l&&u&&a2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(a," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(a),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){var l,u=eu(eu({},o),{},{isUpdate:a}),s=this.backend.create.bind(this.backend);if(s.length<6)try{(l=5===s.length?s(e,t,n,r,u):s(e,t,n,r))&&"function"==typeof l.then?l.then(function(e){return i(null,e)}).catch(i):i(null,l)}catch(e){i(e)}else s(e,t,n,r,i,u)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),r}(D);function ed(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===p.default(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===p.default(e[2])||"object"===p.default(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ec(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ep(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(m.default(this,r),e=n.call(this),L&&D.call(g.default(e)),e.options=ec(t),e.services={},e.logger=A,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(g.default(e)),a&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,a),b.default(e,g.default(e));setTimeout(function(){e.init(t,a)},0)}return e}return h.default(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r=ed();function a(e){return e?"function"==typeof e?new e:e:null}if(this.options=ep(ep(ep({},r),this.options),ec(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ep(ep({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?A.init(a(this.modules.logger),this.options):A.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=ei);var o,i=new Y(this.options);this.store=new W(this.options.resources,this.options);var l=this.services;l.logger=A,l.resourceStore=this.store,l.languageUtils=i,l.pluralResolver=new J(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(l.formatter=a(o),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new en(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new es(a(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var s=O(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),s}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:em,r=n,a="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)}),this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=O();return e||(e=this.languages),t||(t=this.options.ns),n||(n=em),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&B.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=O();this.emit("languageChanging",e);var a=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(e,o){o?(a(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},i=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||a(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,a=function e(t,a){if("object"!==p.default(a)){for(var o,i,l=arguments.length,u=Array(l>2?l-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var l=n.precheck(this,i);if(void 0!==l)return l}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=O();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=O();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],a=e.filter(function(e){return 0>r.indexOf(e)});return a.length?(this.options.preload=r.concat(a),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new Y(ed())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:em,a=ep(ep(ep({},this.options),t),{isClone:!0}),o=new r(a);return(void 0!==t.debug||void 0!==t.prefix)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=ep({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new H(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eh(e,t)});var eg=eh.createInstance();eg.createInstance=eh.createInstance,e.exports=eg},20063:(e,t,n)=>{"use strict";var r=n(70453),a=n(9957),o=n(920)(),i=r("%TypeError%"),l={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");if(o.assert(e),!l.has(e,t))throw new i("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");var n=o.get(e);return n&&n["$"+t]},has:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");var n=o.get(e);return!!n&&a(n,"$"+t)},set:function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");var r=o.get(e);r||(r={},o.set(e,r)),r["$"+t]=n}};Object.freeze&&Object.freeze(l),e.exports=l},47244:(e,t,n)=>{"use strict";var r=n(49092)(),a=n(38075)("Object.prototype.toString"),o=function(e){return(!r||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===a(e)},i=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},l=function(){return o(arguments)}();o.isLegacyArguments=i,e.exports=l?o:i},84670:(e,t,n)=>{"use strict";var r=n(10487),a=n(38075),o=n(70453),i=n(35680),l=o("ArrayBuffer",!0),u=o("Float32Array",!0),s=a("ArrayBuffer.prototype.byteLength",!0),d=l&&!s&&new l().slice,c=d&&r(d);e.exports=s||c?function(e){if(!e||"object"!=typeof e)return!1;try{return s?s(e):c(e,0),!0}catch(e){return!1}}:u?function(e){try{return new u(e).buffer===e&&!i(e)}catch(t){return"object"==typeof e&&"RangeError"===t.name}}:function(e){return!1}},39803:(e,t,n)=>{"use strict";if(n(29790)()){var r=BigInt.prototype.valueOf,a=function(e){try{return r.call(e),!0}catch(e){}return!1};e.exports=function(e){return null!=e&&"boolean"!=typeof e&&"string"!=typeof e&&"number"!=typeof e&&"symbol"!=typeof e&&"function"!=typeof e&&("bigint"==typeof e||a(e))}}else e.exports=function(e){return!1}},75128:(e,t,n)=>{"use strict";var r=n(38075),a=r("Boolean.prototype.toString"),o=r("Object.prototype.toString"),i=function(e){try{return a(e),!0}catch(e){return!1}},l=n(49092)();e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(l&&Symbol.toStringTag in e?i(e):"[object Boolean]"===o(e))}},87206:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */e.exports=function(e){return null!=e&&(t(e)||"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))||!!e._isBuffer)}},69600:e=>{"use strict";var t,n,r=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},a(function(){throw 42},null,t)}catch(e){e!==n&&(a=null)}else a=null;var o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},l=function(e){try{if(i(e))return!1;return r.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),c=function(){return!1};if("object"==typeof document){var f=document.all;u.call(f)===u.call(document.all)&&(c=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(c(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==n)return!1}return!i(e)&&l(e)}:function(e){if(c(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(s)return l(e);if(i(e))return!1;var t=u.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&l(e)}},62120:(e,t,n)=>{"use strict";var r=Date.prototype.getDay,a=function(e){try{return r.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,i=n(49092)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?a(e):"[object Date]"===o.call(e))}},57746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},a={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},o={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=1;i<20;i++)o["f"+i]=111+i;function l(e,t,n){!t||"byKey"in t||(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(e){return u(e,t)}),a=function(e){return r.some(function(t){return s(t,e)})};return null==n?a:a(n)}function u(e,t){var n=t&&t.byKey,i={},l=(e=e.replace("++","+add")).split("+"),u=l.length;for(var s in r)i[r[s]]=!1;var f=!0,p=!1,m=void 0;try{for(var h,g=l[Symbol.iterator]();!(f=(h=g.next()).done);f=!0){var v=h.value,b=v.endsWith("?")&&v.length>1;b&&(v=v.slice(0,-1));var y=c(v),w=r[y];if(v.length>1&&!w&&!a[v]&&!o[y])throw TypeError('Unknown modifier: "'+v+'"');1!==u&&w||(n?i.key=y:i.which=d(v)),w&&(i[w]=!b||null)}}catch(e){p=!0,m=e}finally{try{!f&&g.return&&g.return()}finally{if(p)throw m}}return i}function s(e,t){for(var n in e){var r=e[n],a=void 0;if(null!=r&&(null!=(a="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&a!==r)return!1}return!0}function d(e){return o[e=c(e)]||e.toUpperCase().charCodeAt(0)}function c(e){return e=a[e=e.toLowerCase()]||e}t.default=l,t.isHotkey=l,t.isCodeHotkey=function(e,t){return l(e,t)},t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=u,t.compareHotkey=s,t.toKeyCode=d,t.toKeyName=c},83802:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var a=n?Map.prototype.has:null,o=r?Set.prototype.has:null;t||a||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(a.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},21703:(e,t,n)=>{"use strict";var r=Number.prototype.toString,a=function(e){try{return r.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,i=n(49092)();e.exports=function(e){return"number"==typeof e||"object"==typeof e&&(i?a(e):"[object Number]"===o.call(e))}},78682:(e,t)=>{"use strict";/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},14035:(e,t,n)=>{"use strict";var r,a,o,i,l=n(38075),u=n(49092)();if(u){r=l("Object.prototype.hasOwnProperty"),a=l("RegExp.prototype.exec"),o={};var s=function(){throw o};i={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=s)}var d=l("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor;e.exports=u?function(e){if(!e||"object"!=typeof e)return!1;var t=c(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{a(e,i)}catch(e){return e===o}}:function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===d(e)}},90256:e=>{"use strict";var t,n="function"==typeof Map&&Map.prototype?Map:null,r="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var a=n?Map.prototype.has:null,o=r?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e),a)try{a.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},37070:(e,t,n)=>{"use strict";var r=n(38075)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!=typeof e)return!1;try{return r(e),!0}catch(e){return!1}}:function(e){return!1}},4761:(e,t,n)=>{"use strict";var r=String.prototype.valueOf,a=function(e){try{return r.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,i=n(49092)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(i?a(e):"[object String]"===o.call(e))}},93612:(e,t,n)=>{"use strict";var r=Object.prototype.toString;if(n(64039)()){var a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return"symbol"==typeof e.valueOf()&&o.test(a.call(e))}catch(e){return!1}}}else e.exports=function(e){return!1}},35680:(e,t,n)=>{"use strict";var r=n(25767);e.exports=function(e){return!!r(e)}},87842:e=>{"use strict";var t,n="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,r="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(t=function(e){return!1});var a=n?n.prototype.has:null,o=r?r.prototype.has:null;t||a||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(a.call(e,a),o)try{o.call(e,o)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},12648:(e,t,n)=>{"use strict";var r=n(70453),a=n(38075),o=r("%WeakSet%",!0),i=a("WeakSet.prototype.has",!0);if(i){var l=a("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!=typeof e)return!1;try{if(i(e,i),l)try{l(e,l)}catch(e){return!0}return e instanceof o}catch(e){}return!1}}else e.exports=function(e){return!1}},64634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},51873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},72552:(e,t,n)=>{var r=n(51873),a=n(659),o=n(59350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?a(e):o(e)}},54128:(e,t,n)=>{var r=n(31800),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659:(e,t,n)=>{var r=n(51873),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=i.call(e);return r&&(t?e[l]=n:delete e[l]),a}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:(e,t,n)=>{var r=n(34840),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},38221:(e,t,n)=>{var r=n(23805),a=n(10124),o=n(99374),i=Math.max,l=Math.min;e.exports=function(e,t,n){var u,s,d,c,f,p,m=0,h=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=u,r=s;return u=s=void 0,m=t,c=e.apply(r,n)}function y(e){var n=e-p,r=e-m;return void 0===p||n>=t||n<0||g&&r>=d}function w(){var e,n,r,o=a();if(y(o))return x(o);f=setTimeout(w,(e=o-p,n=o-m,r=t-e,g?l(r,d-n):r))}function x(e){return(f=void 0,v&&u)?b(e):(u=s=void 0,c)}function k(){var e,n=a(),r=y(n);if(u=arguments,s=this,p=n,r){if(void 0===f)return m=e=p,f=setTimeout(w,t),h?b(e):c;if(g)return clearTimeout(f),f=setTimeout(w,t),b(p)}return void 0===f&&(f=setTimeout(w,t)),c}return t=o(t)||0,r(n)&&(h=!!n.leading,d=(g="maxWait"in n)?i(o(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==f&&clearTimeout(f),m=0,u=p=s=f=void 0},k.flush=function(){return void 0===f?c:x(a())},k}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},44394:(e,t,n)=>{var r=n(72552),a=n(40346);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},10124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},7350:(e,t,n)=>{var r=n(38221),a=n(23805);e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:o,maxWait:t,trailing:i})}},99374:(e,t,n)=>{var r=n(54128),a=n(23805),o=n(44394),i=0/0,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||s.test(e)?d(e.slice(2),n?2:8):l.test(e)?i:+e}},83503:(e,t,n)=>{!function(){var t=n(3939),r=n(92151).utf8,a=n(87206),o=n(92151).bin,i=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var l=t.bytesToWords(e),u=8*e.length,s=1732584193,d=-271733879,c=-1732584194,f=271733878,p=0;p>>24)&16711935|(l[p]<<24|l[p]>>>8)&4278255360;l[u>>>5]|=128<>>9<<4)+14]=u;for(var m=i._ff,h=i._gg,g=i._hh,v=i._ii,p=0;p>>0,d=d+y>>>0,c=c+w>>>0,f=f+x>>>0}return t.endian([s,d,c,f])};i._ff=function(e,t,n,r,a,o,i){var l=e+(t&n|~t&r)+(a>>>0)+i;return(l<>>32-o)+t},i._gg=function(e,t,n,r,a,o,i){var l=e+(t&r|n&~r)+(a>>>0)+i;return(l<>>32-o)+t},i._hh=function(e,t,n,r,a,o,i){var l=e+(t^n^r)+(a>>>0)+i;return(l<>>32-o)+t},i._ii=function(e,t,n,r,a,o,i){var l=e+(n^(t|~r))+(a>>>0)+i;return(l<>>32-o)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}}()},41811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function a(e,t){if(e.length!==t.length)return!1;for(var n,a,o=0;o{"use strict";/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var a={};if("abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},a)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,a){for(var o,i,l=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u{var r="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&a&&"function"==typeof a.get?a.get:null,i=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=l&&u&&"function"==typeof u.get?u.get:null,d=l&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,h=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,b=String.prototype.slice,y=String.prototype.replace,w=String.prototype.toUpperCase,x=String.prototype.toLowerCase,k=RegExp.prototype.test,P=Array.prototype.concat,E=Array.prototype.join,A=Array.prototype.slice,D=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===S?"object":"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||k.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-D(-e):D(e);if(r!==e){var a=String(r),o=b.call(t,a.length+1);return y.call(a,n,"$&_")+"."+y.call(y.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var L=n(42634),R=L.custom,z=B(R)?R:null;function I(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return"[object Array]"===$(e)&&(!j||!("object"==typeof e&&j in e))}function W(e){return"[object RegExp]"===$(e)&&(!j||!("object"==typeof e&&j in e))}function B(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,a,l){var u=r||{};if(V(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(u,"customInspect")||u.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(u,"indent")&&null!==u.indent&&" "!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(b.call(t,0,n.maxStringLength),n)+"... "+r+" more character"+(r>1?"s":"")}return I(y.call(y.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",n)}(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return w?N(t,k):k}if("bigint"==typeof t){var D=String(t)+"n";return w?N(t,D):D}var C=void 0===u.depth?5:u.depth;if(void 0===a&&(a=0),a>=C&&C>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var R=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(u,a);if(void 0===l)l=[];else if(H(l,t)>=0)return"[Circular]";function U(t,n,r){if(n&&(l=A.call(l)).push(n),r){var o={depth:u.depth};return V(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,a+1,l)}return e(t,u,a+1,l)}if("function"==typeof t&&!W(t)){var J=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Z=Q(t,U);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(Z.length>0?" { "+E.call(Z,", ")+" }":"")}if(B(t)){var ee=S?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!=typeof t||S?ee:Y(ee)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var et,en="<"+x.call(String(t.nodeName)),er=t.attributes||[],ea=0;ea"}if(F(t)){if(0===t.length)return"[]";var eo=Q(t,U);return R&&!function(e){for(var t=0;t=0)return!1;return!0}(eo)?"["+X(eo,R)+"]":"[ "+E.call(eo,", ")+" ]"}if("[object Error]"===$(t)&&(!j||!("object"==typeof t&&j in t))){var ei=Q(t,U);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ei.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ei,", ")+" }":"{ ["+String(t)+"] "+E.call(P.call("[cause]: "+U(t.cause),ei),", ")+" }"}if("object"==typeof t&&h){if(z&&"function"==typeof t[z]&&L)return L(t,{depth:C-a});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var el=[];return i&&i.call(t,function(e,n){el.push(U(n,t,!0)+" => "+U(e,t))}),K("Map",o.call(t),el,R)}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eu=[];return d&&d.call(t,function(e){eu.push(U(e,t))}),K("Set",s.call(t),eu,R)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return G("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return G("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return G("WeakRef");if("[object Number]"===$(t)&&(!j||!("object"==typeof t&&j in t)))return Y(U(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return Y(U(O.call(t)));if("[object Boolean]"===$(t)&&(!j||!("object"==typeof t&&j in t)))return Y(m.call(t));if("[object String]"===$(t)&&(!j||!("object"==typeof t&&j in t)))return Y(U(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!("[object Date]"===$(t)&&(!j||!("object"==typeof t&&j in t)))&&!W(t)){var es=Q(t,U),ed=_?_(t)===Object.prototype:t instanceof Object||t.constructor===Object,ec=t instanceof Object?"":"null prototype",ef=!ed&&j&&Object(t)===t&&j in t?b.call($(t),8,-1):ec?"Object":"",ep=(ed||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ef||ec?"["+E.call(P.call([],ef||[],ec||[]),": ")+"] ":"");return 0===es.length?ep+"{}":R?ep+"{"+X(es,R)+"}":ep+"{ "+E.call(es,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return U.call(e,t)}function $(e){return h.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:!!(e===n||t(e)&&t(n))}},37653:(e,t,n)=>{"use strict";var r=n(38452),a=n(10487),o=n(89211),i=n(9394),l=n(36576),u=a(i(),Object);r(u,{getPolyfill:i,implementation:o,shim:l}),e.exports=u},9394:(e,t,n)=>{"use strict";var r=n(89211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},36576:(e,t,n)=>{"use strict";var r=n(9394),a=n(38452);e.exports=function(){var e=r();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},28875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=n(1093),l=Object.prototype.propertyIsEnumerable,u=!l.call({toString:null},"toString"),s=l.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{c(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),m=function(e){if("undefined"==typeof window||!p)return c(e);try{return c(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=i(e),l=t&&"[object String]"===o.call(e),c=[];if(!t&&!n&&!r)throw TypeError("Object.keys called on a non-object");var f=s&&n;if(l&&e.length>0&&!a.call(e,0))for(var p=0;p0)for(var h=0;h{"use strict";var r=Array.prototype.slice,a=n(1093),o=Object.keys,i=o?function(e){return o(e)}:n(28875),l=Object.keys;i.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return a(e)?l(r.call(e)):l(e)}):Object.keys=i,Object.keys||i},e.exports=i},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},47864:e=>{function t(e){return void 0===e}function n(e){return e===Object(e)}function r(e){return Array.isArray(e)}function a(e,r){return r?n(e)&&!t(e.uri):n(e)&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice}function o(e){return!t(e)&&e}e.exports={serialize:function e(i,l,u,s){l=l||{},u=u||new FormData,l.indices=o(l.indices),l.nullsAsUndefineds=o(l.nullsAsUndefineds),l.booleansAsIntegers=o(l.booleansAsIntegers),l.allowEmptyArrays=o(l.allowEmptyArrays),l.noAttributesWithArrayNotation=o(l.noAttributesWithArrayNotation),l.noFilesWithArrayNotation=o(l.noFilesWithArrayNotation),l.dotsForObjectNotation=o(l.dotsForObjectNotation);let d="function"==typeof u.getParts;return t(i)||(null===i?l.nullsAsUndefineds||u.append(s,""):"boolean"==typeof i?l.booleansAsIntegers?u.append(s,i?1:0):u.append(s,i):r(i)?i.length?i.forEach((t,r)=>{var o;let i=s+"["+(l.indices?r:"")+"]";(l.noAttributesWithArrayNotation||l.noFilesWithArrayNotation&&a(o=t,d)&&"string"==typeof o.name&&(n(o.lastModifiedDate)||"number"==typeof o.lastModified))&&(i=s),e(t,l,u,i)}):l.allowEmptyArrays&&u.append(l.noAttributesWithArrayNotation?s:s+"[]",""):i instanceof Date?u.append(s,i.toISOString()):n(i)&&!a(i,d)?Object.keys(i).forEach(t=>{let n=i[t];if(r(n))for(;t.length>2&&t.lastIndexOf("[]")===t.length-2;)t=t.substring(0,t.length-2);let a=s?l.dotsForObjectNotation?s+"."+t:s+"["+t+"]":t;e(n,l,u,a)}):u.append(s,i)),u}}},38403:(e,t,n)=>{"use strict";var r=n(1189),a=n(41333)(),o=n(38075),i=Object,l=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),s=a?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw TypeError("target must be an object");var n=i(e);if(1==arguments.length)return n;for(var o=1;o{"use strict";var r=n(38452),a=n(10487),o=n(38403),i=n(11514),l=n(40984),u=a.apply(i()),s=function(e,t){return u(Object,arguments)};r(s,{getPolyfill:i,implementation:o,shim:l}),e.exports=s},11514:(e,t,n)=>{"use strict";var r=n(38403),a=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r{"use strict";var r=n(38452),a=n(11514);e.exports=function(){var e=a();return r(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}},57975:(e,t,n)=>{"use strict";var r=n(65606);function a(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",a=0,o=-1,i=0,l=0;l<=e.length;++l){if(l2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",a=0):a=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=l,i=0;continue}}else if(2===r.length||1===r.length){r="",a=0,o=l,i=0;continue}}t&&(r.length>0?r+="/..":r="..",a=2)}else r.length>0?r+="/"+e.slice(o+1,l):r=e.slice(o+1,l),a=l-o-1;o=l,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var i={resolve:function(){for(var e,t,n="",i=!1,l=arguments.length-1;l>=-1&&!i;l--)l>=0?t=arguments[l]:(void 0===e&&(e=r.cwd()),t=e),a(t),0!==t.length&&(n=t+"/"+n,i=47===t.charCodeAt(0));return(n=o(n,!i),i)?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(a(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return(0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t)?"/"+e:e},isAbsolute:function(e){return a(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(a(e),a(t),e===t||(e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;ns){if(47===t.charCodeAt(l+c))return t.slice(l+c+1);if(0===c)return t.slice(l+c)}else o>s&&(47===e.charCodeAt(n+c)?d=c:0===c&&(d=0));break}var f=e.charCodeAt(n+c);if(f!==t.charCodeAt(l+c))break;47===f&&(d=c)}var p="";for(c=n+d+1;c<=r;++c)(c===r||47===e.charCodeAt(c))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(l+d):(l+=d,47===t.charCodeAt(l)&&++l,t.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(a(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return -1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');a(e);var n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,u=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!i){r=n+1;break}}else -1===u&&(i=!1,u=n+1),l>=0&&(s===t.charCodeAt(l)?-1==--l&&(o=n):(l=-1,o=u))}return r===o?o=u:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){r=n+1;break}}else -1===o&&(i=!1,o=n+1);return -1===o?"":e.slice(r,o)},extname:function(e){a(e);for(var t=-1,n=0,r=-1,o=!0,i=0,l=e.length-1;l>=0;--l){var u=e.charCodeAt(l);if(47===u){if(!o){n=l+1;break}continue}-1===r&&(o=!1,r=l+1),46===u?-1===t?t=l:1!==i&&(i=1):-1!==t&&(i=-1)}return -1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){a(e);var t,n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r=e.charCodeAt(0),o=47===r;o?(n.root="/",t=1):t=0;for(var i=-1,l=0,u=-1,s=!0,d=e.length-1,c=0;d>=t;--d){if(47===(r=e.charCodeAt(d))){if(!s){l=d+1;break}continue}-1===u&&(s=!1,u=d+1),46===r?-1===i?i=d:1!==c&&(c=1):-1!==i&&(c=-1)}return -1===i||-1===u||0===c||1===c&&i===u-1&&i===l+1?-1!==u&&(0===l&&o?n.base=n.name=e.slice(1,u):n.base=n.name=e.slice(l,u)):(0===l&&o?(n.name=e.slice(1,i),n.base=e.slice(1,u)):(n.name=e.slice(l,i),n.base=e.slice(l,u)),n.ext=e.slice(i,u)),l>0?n.dir=e.slice(0,l-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i},46701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Banner:function(){return r.default},Button:function(){return a.default},ErrorPill:function(){return o.ErrorPill},Pill:function(){return i.default},Popup:function(){return l.default},ShimmerEffect:function(){return u.ShimmerEffect},Tooltip:function(){return s.default},Check:function(){return d.default},Chevron:function(){return c.default},Menu:function(){return f.default},Search:function(){return p.default},X:function(){return m.default},MinimalTemplate:function(){return h.default}});let r=g(n(87768)),a=g(n(55182)),o=n(79739),i=g(n(36669)),l=g(n(12748)),u=n(7992),s=g(n(77665)),d=g(n(83413)),c=g(n(68410)),f=g(n(93668)),p=g(n(20287)),m=g(n(88481)),h=g(n(36515));function g(e){return e&&e.__esModule?e:{default:e}}},31657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Button:function(){return r.default},Card:function(){return a.default},Collapsible:function(){return o.Collapsible},DocumentDrawer:function(){return i.DocumentDrawer},DocumentDrawerToggler:function(){return i.DocumentDrawerToggler},DocumentDrawerBaseClass:function(){return i.baseClass},useDocumentDrawer:function(){return i.useDocumentDrawer},Drawer:function(){return l.Drawer},DrawerToggler:function(){return l.DrawerToggler},formatDrawerSlug:function(){return l.formatDrawerSlug},useDrawerSlug:function(){return u.useDrawerSlug},Eyebrow:function(){return s.default},Gutter:function(){return d.Gutter},AppHeader:function(){return c.AppHeader},ListDrawer:function(){return f.ListDrawer},ListDrawerToggler:function(){return f.ListDrawerToggler},ListDrawerBaseClass:function(){return f.baseClass},formatListDrawerSlug:function(){return f.formatListDrawerSlug},useListDrawer:function(){return f.useListDrawer},Description:function(){return p.Description},DescriptionComponent:function(){return p.DescriptionComponent},DescriptionFunction:function(){return p.DescriptionFunction}});let r=m(n(55182)),a=m(n(35656)),o=n(77762),i=n(1794),l=n(27791),u=n(45074),s=m(n(2617)),d=n(11897),c=n(39999),f=n(73643),p=n(72607);function m(e){return e&&e.__esModule?e:{default:e}}},60741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Error:function(){return r.default},FieldDescription:function(){return a.default},Form:function(){return o.default},buildInitialState:function(){return i.default},useAllFormFields:function(){return l.useAllFormFields},useForm:function(){return l.useForm},useFormFields:function(){return l.useFormFields},useFormModified:function(){return l.useFormModified},useFormProcessing:function(){return l.useFormProcessing},useFormSubmitted:function(){return l.useFormSubmitted},useWatchForm:function(){return l.useWatchForm},createNestedFieldPath:function(){return u.createNestedFieldPath},getSiblingData:function(){return s.default},reduceFieldsToValues:function(){return d.default},Label:function(){return c.default},RenderFields:function(){return f.default},Submit:function(){return p.default},FormSubmit:function(){return p.default},fieldTypes:function(){return m.fieldTypes},Checkbox:function(){return h.default},Collapsible:function(){return g.default},Date:function(){return v.default},DateTimeInput:function(){return b.DateTimeInput},Group:function(){return y.default},HiddenInput:function(){return w.default},Select:function(){return x.default},SelectInput:function(){return k.default},Text:function(){return P.default},TextInput:function(){return E.default},useFieldType:function(){return A.default},useField:function(){return A.default},withCondition:function(){return D.default}});let r=O(n(25218)),a=O(n(98114)),o=O(n(8914)),i=O(n(56087)),l=n(66461),u=n(57816),s=O(n(46474)),d=O(n(69504)),c=O(n(16034)),f=O(n(13309)),p=O(n(16488)),m=n(94416),h=O(n(73824)),g=O(n(42751)),v=O(n(43192)),b=n(92712),y=O(n(24268)),w=O(n(19571)),x=O(n(1533)),k=O(n(37389)),P=O(n(85514)),E=O(n(41634)),A=O(n(27085)),D=O(n(63285));function O(e){return e&&e.__esModule?e:{default:e}}},47605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AccountGraphic:function(){return r.default},DefaultBlockImageGraphic:function(){return a.default},FileGraphic:function(){return o.default},IconGraphic:function(){return i.default},LogoGraphic:function(){return l.default},SearchGraphic:function(){return u.default}});let r=s(n(3953)),a=s(n(93409)),o=s(n(31320)),i=s(n(92487)),l=s(n(36937)),u=s(n(74922));function s(e){return e&&e.__esModule?e:{default:e}}},54722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useStepNav:function(){return r.useStepNav},useTableColumns:function(){return a.useTableColumns},useDocumentEvents:function(){return o.useDocumentEvents},useDebounce:function(){return i.default},useDebouncedCallback:function(){return l.useDebouncedCallback},useDelay:function(){return u.useDelay},useDelayedRender:function(){return s.useDelayedRender},useHotkey:function(){return d.default},useIntersect:function(){return c.default},useMountEffect:function(){return f.default},usePayloadAPI:function(){return p.default},useThrottledEffect:function(){return m.default},useThumbnail:function(){return h.default},useTitle:function(){return g.default},formatUseAsTitle:function(){return g.formatUseAsTitle}});let r=n(83949),a=n(62093),o=n(86425),i=v(n(36361)),l=n(82730),u=n(10075),s=n(45982),d=v(n(64172)),c=v(n(85541)),f=v(n(79752)),p=v(n(82472)),m=v(n(32301)),h=v(n(78248)),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(63478));function v(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}},69962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{buildStateFromSchema:function(){return r.default},useAuth:function(){return a.useAuth},useConfig:function(){return o.useConfig},useDocumentInfo:function(){return i.useDocumentInfo},useEditDepth:function(){return l.useEditDepth},useLocale:function(){return u.useLocale},Meta:function(){return s.default},withMergedProps:function(){return d.withMergedProps}});let r=c(n(68697)),a=n(7695),o=n(86919),i=n(50444),l=n(95702),u=n(62519),s=c(n(87068)),d=n(96645);function c(e){return e&&e.__esModule?e:{default:e}}},2079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{buildConfig:function(){return r.buildConfig},defaults:function(){return a.defaults},sanitizeConfig:function(){return o.sanitizeConfig},baseBlockFields:function(){return i.baseBlockFields},baseIDField:function(){return l.baseIDField},sanitizeFields:function(){return u.sanitizeFields}});let r=n(74665);!function(e,t){Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})}(n(12948),t);let a=n(20551),o=n(99754),i=n(35200),l=n(28743),u=n(86278)},61044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let r=n(95767),a=n(85504),o=n(54701),i=P(n(46978)),l=P(n(96540)),u=n(30876),s=n(77399),d=n(96612),c=n(83949),f=n(7695),p=n(86919),m=n(15843),h=n(86425),g=n(49941),v=n(52649),b=n(62519),y=n(71849),w=n(7087),x=n(88218),k=n(17993);function P(e){return e&&e.__esModule?e:{default:e}}n(16014);let E=({config:e})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(p.ConfigProvider,{config:e||i.default},l.default.createElement(g.I18n,null),l.default.createElement(o.WindowInfoProvider,{breakpoints:{l:"(max-width: 1440px)",m:"(max-width: 1024px)",s:"(max-width: 768px)",xs:"(max-width: 400px)"}},l.default.createElement(a.ScrollInfoProvider,null,l.default.createElement(u.BrowserRouter,null,l.default.createElement(r.ModalProvider,{classPrefix:"payload",transTime:0,zIndex:"var(--z-modal)"},l.default.createElement(f.AuthProvider,null,l.default.createElement(y.PreferencesProvider,null,l.default.createElement(x.ThemeProvider,null,l.default.createElement(w.SearchParamsProvider,null,l.default.createElement(b.LocaleProvider,null,l.default.createElement(c.StepNavProvider,null,l.default.createElement(v.LoadingOverlayProvider,null,l.default.createElement(h.DocumentEventsProvider,null,l.default.createElement(d.NavProvider,null,l.default.createElement(m.CustomProvider,null,l.default.createElement(k.Routes,null))))))))),l.default.createElement(r.ModalContainer,null)))))))),l.default.createElement(s.ToastContainer,{icon:!1,position:"bottom-center",transition:s.Slide}))},60146:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requests",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(55373)),a={delete:(e,t={headers:{}})=>{let n=t&&t.headers?{...t.headers}:{},r={...t,credentials:"include",headers:{...n},method:"delete"};return fetch(e,r)},get:(e,t={headers:{}})=>{let n="";return t.params&&(n=r.default.stringify(t.params,{addQueryPrefix:!0})),fetch(`${e}${n}`,{credentials:"include",...t})},patch:(e,t={headers:{}})=>{let n=t&&t.headers?{...t.headers}:{},r={...t,credentials:"include",headers:{...n},method:"PATCH"};return fetch(e,r)},post:(e,t={headers:{}})=>{let n=t&&t.headers?{...t.headers}:{},r={...t,credentials:"include",headers:{...n},method:"post"};return fetch(`${e}`,r)},put:(e,t={headers:{}})=>{let n=t&&t.headers?{...t.headers}:{},r={...t,credentials:"include",headers:{...n},method:"put"};return fetch(e,r)}}},25:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ArrayAction",{enumerable:!0,get:function(){return h}});let r=f(n(96540)),a=n(43992),o=f(n(68410)),i=f(n(65150)),l=f(n(86050)),u=f(n(29867)),s=f(n(88481)),d=f(n(12748)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96161));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(78393);let m="array-actions",h=({addRow:e,duplicateRow:t,hasMaxRows:n,index:f,moveRow:p,removeRow:h,rowCount:g})=>{let{t:v}=(0,a.useTranslation)("general");return r.default.createElement(d.default,{button:r.default.createElement(l.default,null),buttonClassName:`${m}__button`,className:m,horizontalAlign:"center",render:({close:a})=>r.default.createElement(c.ButtonGroup,{buttonSize:"small"},0!==f&&r.default.createElement(c.Button,{className:`${m}__action ${m}__move-up`,onClick:()=>{p(f,f-1),a()}},r.default.createElement("div",{className:`${m}__action-chevron`},r.default.createElement(o.default,{direction:"up"})),v("moveUp")),f{p(f,f+1),a()}},r.default.createElement("div",{className:`${m}__action-chevron`},r.default.createElement(o.default,null)),v("moveDown")),!n&&r.default.createElement(r.default.Fragment,null,r.default.createElement(c.Button,{className:`${m}__action ${m}__add`,onClick:()=>{e(f+1),a()}},r.default.createElement(u.default,null),v("addBelow")),r.default.createElement(c.Button,{className:`${m}__action ${m}__duplicate`,onClick:()=>{t(f),a()}},r.default.createElement(i.default,null),v("duplicate"))),r.default.createElement(c.Button,{className:`${m}__action ${m}__remove`,onClick:()=>{h(f),a()}},r.default.createElement(s.default,null),v("remove"))),size:"medium"})}},42480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(77399),l=m(n(36361)),u=n(26177),s=n(66461),d=m(n(69504)),c=n(86919),f=n(50444),p=n(62519);function m(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}n(17886);let g=({id:e,collection:t,global:n,publishedDocUpdatedAt:m})=>{let{routes:{admin:h,api:g},serverURL:v}=(0,c.useConfig)(),{getVersions:b,versions:y}=(0,f.useDocumentInfo)(),[w]=(0,s.useAllFormFields)(),x=(0,s.useFormModified)(),{code:k}=(0,p.useLocale)(),{replace:P}=(0,o.useHistory)(),{i18n:E,t:A}=(0,a.useTranslation)("version"),D=800;t?.versions.drafts&&t.versions?.drafts?.autosave&&(D=t.versions.drafts.autosave.interval),n?.versions.drafts&&n.versions?.drafts?.autosave&&(D=n.versions.drafts.autosave.interval);let[O,C]=(0,r.useState)(!1),[M,S]=(0,r.useState)(),j=(0,l.default)(w,D),T=(0,r.useRef)(w),_=(0,r.useRef)(x),N=(0,r.useRef)(k);T.current=w,_.current=x;let L=(0,r.useCallback)(async()=>{let e=await fetch(`${v}${g}/${t.slug}?locale=${k}&fallback-locale=null&depth=0&draft=true&autosave=true`,{body:JSON.stringify({}),credentials:"include",headers:{"Accept-Language":E.language,"Content-Type":"application/json"},method:"POST"});if(201===e.status){let n=await e.json();P(`${h}/collections/${t.slug}/${n.doc.id}`,{state:{data:n.doc}})}else i.toast.error(A("error:autosaving"))},[E,v,g,t,k,P,h,A]);return(0,r.useEffect)(()=>{!e&&t&&L()},[e,t,L]),(0,r.useEffect)(()=>{let r=async()=>{if(x){let r,a;C(!0),t&&e&&(r=`${v}${g}/${t.slug}/${e}?draft=true&autosave=true&locale=${N.current}`,a="PATCH"),n&&(r=`${v}${g}/globals/${n.slug}?draft=true&autosave=true&locale=${N.current}`,a="POST"),r&&setTimeout(async()=>{if(_.current){let e={...(0,d.default)(T.current,!0),_status:"draft"},t=await fetch(r,{body:JSON.stringify(e),credentials:"include",headers:{"Accept-Language":E.language,"Content-Type":"application/json"},method:a});200===t.status&&(S(new Date().getTime()),b())}C(!1)},1e3)}};r()},[E,j,x,v,g,t,n,e,b,N,_]),(0,r.useEffect)(()=>{y?.docs?.[0]?S(new Date(y.docs[0].updatedAt).getTime()):m&&S(new Date(m).getTime())},[m,y]),r.default.createElement("div",{className:"autosave"},O&&A("saving"),!O&&M&&r.default.createElement(r.default.Fragment,null,A("lastSavedAgo",{distance:(0,u.formatTimeToNow)(M,E.language)})))}},87768:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Banner:function(){return i},default:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(30876);n(48066);let o="banner",i=({alignIcon:e="right",children:t,className:n,icon:i,onClick:l,to:u,type:s="default"})=>{let d=[o,`${o}--type-${s}`,n&&n,u&&`${o}--has-link`,(u||l)&&`${o}--has-action`,i&&`${o}--has-icon`,i&&`${o}--align-icon-${e}`].filter(Boolean).join(" "),c="div";return l&&!u&&(c="button"),u&&(c=a.Link),r.default.createElement(c,{className:d,onClick:l,to:u||void 0},i&&"left"===e&&r.default.createElement(r.default.Fragment,null,i),r.default.createElement("span",{className:`${o}__content`},t),i&&"right"===e&&r.default.createElement(r.default.Fragment,null,i))},l=i},55182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(30876),o=f(n(68410)),i=f(n(38395)),l=f(n(82331)),u=f(n(29867)),s=f(n(41452)),d=f(n(88481)),c=f(n(77665));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(44544);let m={chevron:o.default,edit:i.default,link:l.default,plus:u.default,swap:s.default,x:d.default},h=({children:e,icon:t,showTooltip:n,tooltip:a})=>{let o=m[t];return r.default.createElement(r.Fragment,null,a&&r.default.createElement(c.default,{className:"btn__tooltip",show:n},a),r.default.createElement("span",{className:"btn__content"},e&&r.default.createElement("span",{className:"btn__label"},e),t&&r.default.createElement("span",{className:"btn__icon"},(0,r.isValidElement)(t)&&t,o&&r.default.createElement(o,null))))},g=(0,r.forwardRef)((e,t)=>{let{id:n,"aria-label":o,buttonStyle:i="primary",children:l,className:u,disabled:s,el:d="button",icon:c,iconPosition:f="right",iconStyle:p="without-border",newTab:m,onClick:g,round:v,size:b="medium",to:y,tooltip:w,type:x="button",url:k}=e,[P,E]=r.default.useState(!1),A=["btn",u&&u,i&&`btn--style-${i}`,c&&"btn--icon",p&&`btn--icon-style-${p}`,c&&!l&&"btn--icon-only",s&&"btn--disabled",v&&"btn--round",b&&`btn--size-${b}`,f&&`btn--icon-position-${f}`,w&&"btn--has-tooltip"].filter(Boolean).join(" "),D={id:n,"aria-disabled":s,"aria-label":o,className:A,disabled:s,onClick:s?void 0:function(e){E(!1),"submit"!==x&&g&&e.preventDefault(),g&&g(e)},onMouseEnter:w?()=>E(!0):void 0,onMouseLeave:w?()=>E(!1):void 0,rel:m?"noopener noreferrer":void 0,target:m?"_blank":void 0,type:x};switch(d){case"link":return r.default.createElement(a.Link,{...D,to:y||k},r.default.createElement(h,{icon:c,showTooltip:P,tooltip:w},l));case"anchor":return r.default.createElement("a",{...D,href:k,ref:t},r.default.createElement(h,{icon:c,showTooltip:P,tooltip:w},l));default:return r.default.createElement(d,{ref:t,type:"submit",...D},r.default.createElement(h,{icon:c,showTooltip:P,tooltip:w},l))}}),v=g},35656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(96540)),a=o(n(55182));function o(e){return e&&e.__esModule?e:{default:e}}n(36546);let i="card",l=e=>{let{id:t,actions:n,buttonAriaLabel:o,onClick:l,title:u,titleAs:s}=e,d=[i,t,l&&`${i}--has-onclick`].filter(Boolean).join(" "),c=s??"div";return r.default.createElement("div",{className:d,id:t},r.default.createElement(c,{className:`${i}__title`},u),n&&r.default.createElement("div",{className:`${i}__actions`},n),l&&r.default.createElement(a.default,{"aria-label":o,buttonStyle:"none",className:`${i}__click`,onClick:l}))}},49812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=l(n(58807)),a=l(n(96540)),o=n(88218),i=n(7992);function l(e){return e&&e.__esModule?e:{default:e}}n(62164);let u=e=>{let{className:t,height:n,options:l,readOnly:u,...s}=e,{theme:d}=(0,o.useTheme)(),c=["code-editor",t,s?.defaultLanguage?`language--${s.defaultLanguage}`:""].filter(Boolean).join(" ");return a.default.createElement(r.default,{className:c,height:n,loading:a.default.createElement(i.ShimmerEffect,{height:n}),options:{detectIndentation:!0,minimap:{enabled:!1},readOnly:!!u,scrollBeyondLastLine:!1,tabSize:2,wordWrap:"on",...l},theme:"dark"===d?"vs-dark":"vs",...s})}},32342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CodeEditor",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(7992);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let l=(0,r.lazy)(()=>Promise.resolve().then(()=>i(n(49812)))),u=e=>{let{height:t="35vh"}=e;return r.default.createElement(r.Suspense,{fallback:r.default.createElement(a.ShimmerEffect,{height:t})},r.default.createElement(l,{...e,height:t}))}},77762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Collapsible",{enumerable:!0,get:function(){return f}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=s(n(56650)),o=n(43992),i=s(n(68410)),l=s(n(61449));n(44806);let u=n(87381);function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}let c="collapsible",f=({actions:e,children:t,className:n,collapsed:s,collapsibleStyle:d="default",dragHandleProps:f,header:p,initCollapsed:m,onToggle:h})=>{let[g,v]=(0,r.useState)(!!m),[b,y]=(0,r.useState)(!1),w=(0,u.useCollapsible)(),{t:x}=(0,o.useTranslation)("fields"),k="boolean"==typeof s?s:g;return r.default.createElement("div",{className:[c,n,f&&`${c}--has-drag-handle`,k&&`${c}--collapsed`,w&&`${c}--nested`,b&&`${c}--hovered`,`${c}--style-${d}`].filter(Boolean).join(" ")},r.default.createElement(u.CollapsibleProvider,null,r.default.createElement("div",{className:`${c}__toggle-wrap`,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},f&&r.default.createElement("div",{className:`${c}__drag`,...f.attributes,...f.listeners},r.default.createElement(l.default,null)),r.default.createElement("button",{className:[`${c}__toggle`,`${c}__toggle--${k?"collapsed":"open"}`].filter(Boolean).join(" "),onClick:()=>{"function"==typeof h&&h(!k),v(!k)},type:"button"},r.default.createElement("span",null,x("toggleBlock"))),p&&r.default.createElement("div",{className:[`${c}__header-wrap`,f&&`${c}__header-wrap--has-drag-handle`].filter(Boolean).join(" ")},p&&p),r.default.createElement("div",{className:`${c}__actions-wrap`},e&&r.default.createElement("div",{className:`${c}__actions`},e),r.default.createElement("div",{className:`${c}__indicator`},r.default.createElement(i.default,{direction:k?void 0:"up"})))),r.default.createElement(a.default,{duration:200,height:k?0:"auto"},r.default.createElement("div",{className:`${c}__content`},t))))}},87381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{CollapsibleProvider:function(){return i},useCollapsible:function(){return l},default:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)(!1),i=({children:e,withinCollapsible:t=!0})=>r.default.createElement(o.Provider,{value:t},e),l=()=>(0,r.useContext)(o),u=o},17013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=f(n(29867)),l=f(n(88481)),u=n(95702),s=f(n(53821)),d=f(n(36669)),c=n(62093);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(92607);let m="column-selector",h=e=>{let{collection:t}=e,{columns:n,moveColumn:f,toggleColumn:p}=(0,c.useTableColumns)(),{i18n:h}=(0,a.useTranslation)(),g=(0,r.useId)(),v=(0,u.useEditDepth)();return n?r.default.createElement(s.default,{className:m,ids:n.map(e=>e.accessor),onDragEnd:({moveFromIndex:e,moveToIndex:t})=>{f({fromIndex:e,toIndex:t})}},n.map((e,n)=>{let{name:a,accessor:u,active:s,label:c}=e;return"_select"===e.accessor?null:r.default.createElement(d.default,{alignIcon:"left","aria-checked":s,className:[`${m}__column`,s&&`${m}__column--active`].filter(Boolean).join(" "),draggable:!0,icon:s?r.default.createElement(l.default,null):r.default.createElement(i.default,null),id:u,key:`${t.slug}-${e.name||n}${v?`-${v}-`:""}${g}`,onClick:()=>{p(u)}},(0,o.getTranslation)(c||a,h))})):null}},37724:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=l(n(65150)),i=l(n(77665));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}n(10808);let s=({defaultMessage:e,successMessage:t,value:n})=>{let l=(0,r.useRef)(null),[u,s]=(0,r.useState)(!1),[d,c]=(0,r.useState)(!1),{t:f}=(0,a.useTranslation)("general");return n?r.default.createElement("button",{className:"copy-to-clipboard",onClick:()=>{l&&l.current&&(l.current.select(),l.current.setSelectionRange(0,n.length+1),document.execCommand("copy"),s(!0))},onMouseEnter:()=>{c(!0),s(!1)},onMouseLeave:()=>{c(!1),s(!1)},type:"button"},r.default.createElement(o.default,null),r.default.createElement(i.default,{delay:u?0:void 0,show:d||u},u&&(t??f("copied")),!u&&(e??f("copy"))),r.default.createElement("textarea",{readOnly:!0,ref:l,tabIndex:-1,value:n})):null}},44588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=f(n(64123)),a=d(n(96540)),o=f(n(59386));n(76677);let i=n(43992),l=n(94933),u=d(n(57225)),s=d(n(88481));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}n(3918);let p="date-time-picker",m=e=>{let{displayFormat:t,maxDate:n,maxTime:d,minDate:c,minTime:f,monthsToShow:m=1,onChange:h,overrides:g,pickerAppearance:v="default",placeholder:b,readOnly:y,timeFormat:w="h:mm aa",timeIntervals:x=30,value:k}=e,{i18n:P}=(0,i.useTranslation)(),E=(0,l.getSupportedDateLocale)(P.language);try{(0,o.registerLocale)(E,r[E])}catch(e){console.warn(`Could not find DatePicker locale for ${E}`)}let A=t;t||("default"===v?A="MM/dd/yyyy":"dayAndTime"===v?A="MMM d, yyy h:mm a":"timeOnly"===v?A="h:mm a":"dayOnly"===v?A="MMM dd":"monthOnly"!==v||(A="MMMM"));let D=e=>{if(e instanceof Date&&["dayOnly","default","monthOnly"].includes(v)){let t=e.getTimezoneOffset()/60;e.setHours(12-t,0)}"function"==typeof h&&h(e)},O={customInputRef:"ref",dateFormat:A,disabled:y,maxDate:n,maxTime:d,minDate:c,minTime:f,monthsShown:Math.min(2,m),onChange:D,placeholderText:b,selected:k&&new Date(k),showMonthYearPicker:"monthOnly"===v,showPopperArrow:!1,showTimeSelect:"dayAndTime"===v||"timeOnly"===v,timeFormat:w,timeIntervals:x,...g},C=[p,`${p}__appearance--${v}`].filter(Boolean).join(" ");return a.default.createElement("div",{className:C},a.default.createElement("div",{className:`${p}__icon-wrap`},O.selected&&a.default.createElement("button",{className:`${p}__clear-button`,onClick:()=>D(null),type:"button"},a.default.createElement(s.default,null)),a.default.createElement(u.default,null)),a.default.createElement("div",{className:`${p}__input-wrapper`},a.default.createElement(o.default,{...O,dropdownMode:"select",locale:E,popperModifiers:[{name:"preventOverflow",enabled:!0}],showMonthDropdown:!0,showYearDropdown:!0})))}},69100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(7992);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let l=(0,r.lazy)(()=>Promise.resolve().then(()=>i(n(44588)))),u=e=>r.default.createElement(r.Suspense,{fallback:r.default.createElement(a.ShimmerEffect,{height:50})},r.default.createElement(l,e))},932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(95767),a=b(n(96540)),o=n(43992),i=n(30876),l=n(77399),u=n(3994),s=n(60146),d=g(n(63478)),c=n(66461),f=g(n(36515)),p=n(86919),m=g(n(55182)),h=b(n(96161));function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function b(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}n(34010);let y="delete-document",w=e=>{let{id:t,buttonId:n,collection:{labels:{singular:g}={},slug:v}={},collection:b,title:w}=e,{routes:{admin:x,api:k},serverURL:P}=(0,p.useConfig)(),{setModified:E}=(0,c.useForm)(),[A,D]=(0,a.useState)(!1),{toggleModal:O}=(0,r.useModal)(),C=(0,i.useHistory)(),{i18n:M,t:S}=(0,o.useTranslation)("general"),j=(0,d.default)({collection:b}),T=w||j||t,_=`delete-${t}`,N=(0,a.useCallback)(()=>{D(!1),l.toast.error(S("error:deletingTitle",{title:j}))},[S,j]),L=(0,a.useCallback)(async()=>{D(!0),E(!1);try{await s.requests.delete(`${P}${k}/${v}/${t}`,{headers:{"Accept-Language":M.language,"Content-Type":"application/json"}}).then(async e=>{try{let t=await e.json();if(e.status<400)return D(!1),O(_),l.toast.success(S("titleDeleted",{label:(0,u.getTranslation)(g,M),title:j})),C.push(`${x}/collections/${v}`);return O(_),t.errors?t.errors.forEach(e=>l.toast.error(e.message)):N(),!1}catch(e){return N()}})}catch(e){N()}},[E,P,k,v,t,O,_,S,g,M,j,C,x,N]);return t?a.default.createElement(a.default.Fragment,null,a.default.createElement(h.Button,{id:n,onClick:()=>{D(!1),O(_)}},S("delete")),a.default.createElement(r.Modal,{className:y,slug:_},a.default.createElement(f.default,{className:`${y}__template`},a.default.createElement("h1",null,S("confirmDeletion")),a.default.createElement("p",null,a.default.createElement(o.Trans,{i18nKey:"aboutToDelete",t:S,values:{label:(0,u.getTranslation)(g,M),title:T}},"aboutToDelete",a.default.createElement("strong",null,T))),a.default.createElement("div",{className:`${y}__actions`},a.default.createElement(m.default,{buttonStyle:"secondary",id:"confirm-cancel",onClick:A?void 0:()=>O(_),type:"button"},S("cancel")),a.default.createElement(m.default,{id:"confirm-delete",onClick:A?void 0:L},A?S("deleting"):S("confirm")))))):null}},30134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(77399),l=n(3994),u=n(60146),s=h(n(36515)),d=n(7695),c=n(86919),f=n(49041),p=h(n(55182)),m=h(n(36669));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(69407);let v="delete-documents",b=e=>{let{collection:{labels:{plural:t},slug:n}={},resetParams:h}=e,{permissions:g}=(0,d.useAuth)(),{routes:{api:b},serverURL:y}=(0,c.useConfig)(),{toggleModal:w}=(0,r.useModal)(),{count:x,getQueryParams:k,selectAll:P,toggleAll:E}=(0,f.useSelection)(),{i18n:A,t:D}=(0,o.useTranslation)("general"),[O,C]=(0,a.useState)(!1),M=g?.collections?.[n],S=M?.delete?.permission,j=`delete-${n}`,T=(0,a.useCallback)(()=>{i.toast.error(D("error:unknown"))},[D]),_=(0,a.useCallback)(()=>{C(!0),u.requests.delete(`${y}${b}/${n}${k()}`,{headers:{"Accept-Language":A.language,"Content-Type":"application/json"}}).then(async e=>{try{let t=await e.json();if(w(j),e.status<400)return i.toast.success(t.message||D("deletedSuccessfully"),{autoClose:3e3}),E(),h({page:P?1:void 0}),null;return t.errors?i.toast.error(t.message):T(),!1}catch(e){return T()}})},[T,b,k,A.language,j,h,P,y,n,D,E,w]);return P!==f.SelectAllStatus.None&&S?a.default.createElement(a.default.Fragment,null,a.default.createElement(m.default,{className:`${v}__toggle`,onClick:()=>{C(!1),w(j)}},D("delete")),a.default.createElement(r.Modal,{className:v,slug:j},a.default.createElement(s.default,{className:`${v}__template`},a.default.createElement("h1",null,D("confirmDeletion")),a.default.createElement("p",null,D("aboutToDeleteCount",{count:x,label:(0,l.getTranslation)(t,A)})),a.default.createElement(p.default,{buttonStyle:"secondary",id:"confirm-cancel",onClick:O?void 0:()=>w(j),type:"button"},D("cancel")),a.default.createElement(p.default,{id:"confirm-delete",onClick:O?void 0:_},O?D("deleting"):D("confirm"))))):null}},54609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DocumentControls",{enumerable:!0,get:function(){return P}});let r=x(n(96540)),a=n(43992),o=n(26177),i=n(86919),l=n(50444),u=y(n(42480)),s=y(n(932)),d=y(n(42386)),c=n(11897),f=y(n(12748)),p=x(n(96161)),m=y(n(45970)),h=n(37481),g=n(79363),v=n(8070),b=y(n(48852));function y(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function x(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}n(86623);let k="doc-controls",P=e=>{let{id:t,collection:n,data:y,disableActions:w,global:x,hasSavePermission:P,isAccountView:E,isEditing:A,permissions:D}=e,{publishedDoc:O}=(0,l.useDocumentInfo)(),{admin:{dateFormat:C},routes:{admin:M}}=(0,i.useConfig)(),{i18n:S,t:j}=(0,a.useTranslation)("general"),T="create"in D&&D.create?.permission,_="delete"in D&&D.delete?.permission,N=!!(n&&t&&!w&&(T||_));return r.default.createElement(c.Gutter,{className:k},r.default.createElement("div",{className:`${k}__wrapper`},r.default.createElement("div",{className:`${k}__content`},r.default.createElement("ul",{className:`${k}__meta`},n&&!A&&!E&&r.default.createElement("li",{className:`${k}__list-item`},r.default.createElement("p",{className:`${k}__value`},j("creatingNewLabel",{label:"string"==typeof n?.labels?.singular?n.labels.singular:"document"}))),(n?.versions?.drafts||x?.versions?.drafts)&&r.default.createElement(r.Fragment,null,(x||n&&A)&&r.default.createElement("li",{className:[`${k}__status`,`${k}__list-item`].filter(Boolean).join(" ")},r.default.createElement(b.default,null)),(n?.versions?.drafts&&n?.versions?.drafts?.autosave||x?.versions?.drafts&&x?.versions?.drafts?.autosave)&&P&&r.default.createElement("li",{className:`${k}__list-item`},r.default.createElement(u.default,{collection:n,global:x,id:t,publishedDocUpdatedAt:O?.updatedAt||y?.createdAt}))),n?.timestamps&&(A||E)&&r.default.createElement(r.Fragment,null,r.default.createElement("li",{className:[`${k}__list-item`,`${k}__value-wrap`].filter(Boolean).join(" "),title:y?.updatedAt?(0,o.formatDate)(y?.updatedAt,C,S?.language):""},r.default.createElement("p",{className:`${k}__label`},j("lastModified"),":\xa0"),y?.updatedAt&&r.default.createElement("p",{className:`${k}__value`},(0,o.formatDate)(y.updatedAt,C,S?.language))),r.default.createElement("li",{className:[`${k}__list-item`,`${k}__value-wrap`].filter(Boolean).join(" "),title:O?.createdAt||y?.createdAt?(0,o.formatDate)(O?.createdAt||y?.createdAt,C,S?.language):""},r.default.createElement("p",{className:`${k}__label`},j("created"),":\xa0"),(O?.createdAt||y?.createdAt)&&r.default.createElement("p",{className:`${k}__value`},(0,o.formatDate)(O?.createdAt||y?.createdAt,C,S?.language)))))),r.default.createElement("div",{className:`${k}__controls-wrapper`},r.default.createElement("div",{className:`${k}__controls`},(n?.admin?.preview||x?.admin?.preview)&&r.default.createElement(m.default,{CustomComponent:n?.admin?.components?.edit?.PreviewButton||x?.admin?.components?.elements?.PreviewButton,generatePreviewURL:n?.admin?.preview||x?.admin?.preview}),P&&r.default.createElement(r.default.Fragment,null,n?.versions?.drafts||x?.versions?.drafts?r.default.createElement(r.default.Fragment,null,(n?.versions?.drafts&&!n?.versions?.drafts?.autosave||x?.versions?.drafts&&!x?.versions?.drafts?.autosave)&&r.default.createElement(v.SaveDraft,{CustomComponent:n?.admin?.components?.edit?.SaveDraftButton||x?.admin?.components?.elements?.SaveDraftButton}),r.default.createElement(h.Publish,{CustomComponent:n?.admin?.components?.edit?.PublishButton||x?.admin?.components?.elements?.PublishButton})):r.default.createElement(g.Save,{CustomComponent:n?.admin?.components?.edit?.SaveButton||x?.admin?.components?.elements?.SaveButton}))),N&&r.default.createElement(f.default,{button:r.default.createElement("div",{className:`${k}__dots`},r.default.createElement("div",null),r.default.createElement("div",null),r.default.createElement("div",null)),className:`${k}__popup`,horizontalAlign:"right",size:"large",verticalAlign:"bottom"},r.default.createElement(p.ButtonGroup,null,T&&r.default.createElement(r.default.Fragment,null,r.default.createElement(p.Button,{id:"action-create",to:`${M}/collections/${n?.slug}/create`},j("createNew")),!n?.admin?.disableDuplicate&&A&&r.default.createElement(d.default,{collection:n,id:t,slug:n?.slug})),_&&r.default.createElement(s.default,{buttonId:"action-delete",collection:n,id:t}))))),r.default.createElement("div",{className:`${k}__divider`}))}},3112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DocumentDrawerContent",{enumerable:!0,get:function(){return C}});let r=n(95767),a=A(n(55373)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=n(43992),l=n(77399),u=n(1794),s=n(3994),d=A(n(82472)),c=A(n(68697)),f=n(94416),p=n(59244),m=A(n(88481)),h=n(7695),g=n(86919),v=n(50444),b=n(37123),y=n(62519),w=A(n(45649)),x=A(n(82748)),k=A(n(12975)),P=A(n(55182)),E=A(n(10803));function A(e){return e&&e.__esModule?e:{default:e}}function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}let O=({collectionSlug:e,customHeader:t,drawerSlug:n,onSave:A})=>{let{routes:{api:D},serverURL:O}=(0,g.useConfig)(),{closeModal:C,modalState:M,toggleModal:S}=(0,r.useModal)(),{code:j}=(0,y.useLocale)(),{user:T}=(0,h.useAuth)(),[_,N]=(0,o.useState)(),{i18n:L,t:R}=(0,i.useTranslation)(["fields","general"]),z=(0,o.useRef)(!1),[I,F]=(0,o.useState)(!1),[W]=(0,p.useRelatedCollections)(e),B=(0,g.useConfig)(),{formQueryParams:U}=(0,b.useFormQueryParams)(),V=a.default.stringify(U),{admin:{components:{views:{Edit:$}={}}={}}={}}=W,{id:H,docPermissions:q,getDocPreferences:Y}=(0,v.useDocumentInfo)(),G="function"==typeof $?$:"object"==typeof $&&"function"==typeof $.Default?$.Default:"object"==typeof $?.Default&&"Component"in $.Default&&"function"==typeof $.Default.Component?$.Default.Component:void 0,[K,X]=(0,o.useState)(()=>(0,k.default)(W,!0)),Q=(0,o.useRef)(H),[{data:J,isError:Z,isLoading:ee}]=(0,d.default)(Q.current?`${O}${D}/${e}/${Q.current}`:null,{initialParams:{depth:0,draft:"true","fallback-locale":"null"}});if((0,o.useEffect)(()=>{X((0,k.default)(W,!0))},[e,W]),(0,o.useEffect)(()=>{if(ee||z.current)return;let e=async()=>{let e=await Y(),t=await (0,c.default)({id:H,config:B,data:J,fieldSchema:K,locale:j,operation:H?"update":"create",preferences:e,t:R,user:T});N(t)};e(),z.current=!0},[J,K,H,T,j,ee,R,Y,B]),(0,o.useEffect)(()=>{F(!!M[n]?.isOpen)},[M,n]),(0,o.useEffect)(()=>{I&&!ee&&Z&&(C(n),l.toast.error(J.errors?.[0].message||R("error:unspecific")))},[Z,R,I,J,n,C,ee]),Z)return null;let et=!!H,en=H?`${O}${D}/${e}/${H}?locale=${j}`:null,er=`${O}${D}/${e}${et?`/${H}`:""}?${V}`,ea=et&&q?.update?.permission||!et&&q?.create?.permission,eo=!_||!q||ee;return o.default.createElement(w.default,{CustomComponent:G,DefaultComponent:x.default,componentProps:{id:H,action:er,apiURL:en,collection:W,customHeader:o.default.createElement("div",{className:`${u.baseClass}__header`},o.default.createElement("div",{className:`${u.baseClass}__header-content`},o.default.createElement("h2",{className:`${u.baseClass}__header-text`},t||R(H?"general:editLabel":"fields:addNewLabel",{label:(0,s.getTranslation)(W.labels.singular,L)})),o.default.createElement(P.default,{"aria-label":R("general:close"),buttonStyle:"none",className:`${u.baseClass}__header-close`,onClick:()=>S(n)},o.default.createElement(m.default,null))),H&&o.default.createElement(E.default,{id:H.toString()})),data:J,disableActions:!0,disableLeaveWithoutSaving:!0,disableRoutes:!0,fieldTypes:f.fieldTypes,hasSavePermission:ea,internalState:_,isEditing:et,isLoading:eo,me:!0,onSave:A,permissions:q}})},C=e=>{let{id:t,collectionSlug:n,onSave:r}=e,[a]=(0,p.useRelatedCollections)(n),[i,l]=(0,o.useState)(t),u=(0,o.useCallback)(e=>{l(e.doc.id),"function"==typeof r&&r({...e,collectionConfig:a})},[r,a]);return o.default.createElement(v.DocumentInfoProvider,{collection:a,id:i},o.default.createElement(O,{...e,onSave:u}))}},1794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{baseClass:function(){return f},DocumentDrawerToggler:function(){return m},DocumentDrawer:function(){return h},useDocumentDrawer:function(){return g}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(3994),l=n(59244),u=n(95702),s=n(27791),d=n(3112);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(78152);let f="doc-drawer",p=({id:e,collectionSlug:t,depth:n,uuid:r})=>`doc-drawer_${t}_${n}${e?`_${e}`:""}_${r}`,m=({id:e,children:t,className:n,collectionSlug:r,disabled:u,drawerSlug:d,...c})=>{let{i18n:p,t:m}=(0,o.useTranslation)(["fields","general"]),[h]=(0,l.useRelatedCollections)(r);return a.default.createElement(s.DrawerToggler,{"aria-label":m(e?"general:editLabel":"fields:addNewLabel",{label:(0,i.getTranslation)(h.labels.singular,p)}),className:[n,`${f}__toggler`].filter(Boolean).join(" "),disabled:u,slug:d,...c},t)},h=e=>{let{drawerSlug:t}=e;return a.default.createElement(s.Drawer,{className:f,gutter:!1,header:!1,slug:t},a.default.createElement(d.DocumentDrawerContent,e))},g=({id:e,collectionSlug:t})=>{let n=(0,u.useEditDepth)(),o=(0,a.useId)(),{closeModal:i,modalState:l,openModal:s,toggleModal:d}=(0,r.useModal)(),[c,f]=(0,a.useState)(!1),g=p({id:e,collectionSlug:t,depth:n,uuid:o});(0,a.useEffect)(()=>{f(!!l[g]?.isOpen)},[l,g]);let v=(0,a.useCallback)(()=>{d(g)},[d,g]),b=(0,a.useCallback)(()=>{i(g)},[i,g]),y=(0,a.useCallback)(()=>{s(g)},[s,g]),w=(0,a.useMemo)(()=>n=>a.default.createElement(h,{...n,collectionSlug:t,drawerSlug:g,id:e,key:g}),[e,g,t]),x=(0,a.useMemo)(()=>n=>a.default.createElement(m,{...n,collectionSlug:t,drawerSlug:g,id:e}),[e,g,t]),k=(0,a.useMemo)(()=>({closeDrawer:b,drawerDepth:n,drawerSlug:g,isDrawerOpen:c,openDrawer:y,toggleDrawer:v}),[n,g,c,v,b,y]);return[w,x,k]}},50594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DocumentFields",{enumerable:!0,get:function(){return d}});let r=u(n(96540)),a=u(n(13309)),o=n(37182),i=n(11897),l=u(n(56731));function u(e){return e&&e.__esModule?e:{default:e}}n(57584);let s="document-fields",d=e=>{let{AfterFields:t,BeforeFields:n,description:u,fieldTypes:d,fields:c,forceSidebarWrap:f,hasSavePermission:p,permissions:m}=e,h=(0,o.filterFields)({fieldSchema:c,fieldTypes:d,filter:e=>e?.admin?.position==="sidebar",permissions:m.fields,readOnly:!p}),g=h&&h.length>0;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:[s,g?`${s}--has-sidebar`:`${s}--no-sidebar`,f&&`${s}--force-sidebar-wrap`].filter(Boolean).join(" ")},r.default.createElement("div",{className:`${s}__main`},r.default.createElement(i.Gutter,{className:`${s}__edit`},r.default.createElement("header",{className:`${s}__header`},u&&r.default.createElement("div",{className:`${s}__sub-header`},r.default.createElement(l.default,{description:u}))),n||null,r.default.createElement(a.default,{className:`${s}__fields`,fieldSchema:c,fieldTypes:d,filter:e=>!e.admin.position||e.admin.position&&"sidebar"!==e.admin.position,permissions:m.fields,readOnly:!p}),t||null)),g&&r.default.createElement("div",{className:`${s}__sidebar-wrap`},r.default.createElement("div",{className:`${s}__sidebar`},r.default.createElement("div",{className:`${s}__sidebar-fields`},r.default.createElement(a.default,{fieldTypes:d,fields:h,permissions:m.fields,readOnly:!p}))))))}},78455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DocumentTab",{enumerable:!0,get:function(){return d}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(86919),l=n(50444);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}n(54715);let s="doc-tab",d=e=>{let{id:t,apiURL:n,collection:u,condition:d,global:c,href:f,isActive:p,label:m,newTab:h,pillLabel:g}=e,{t:v}=(0,a.useTranslation)("general"),b=(0,o.useLocation)(),y=(0,i.useConfig)(),w=(0,l.useDocumentInfo)(),x=(0,o.useRouteMatch)(),{routes:k}=y,{versions:P}=w,E=`${x.url}${"string"==typeof f?f:""}`;"function"==typeof f&&(E=f({id:t,apiURL:n,collection:u,global:c,match:x,routes:k}));let A="function"==typeof p?p({href:E,location:b,match:x}):"boolean"==typeof p?p:b.pathname.startsWith(E);if(!d||d&&d({collection:u,config:y,documentInfo:w,global:c})){let e="function"==typeof m?m({t:v}):m,t="function"==typeof g?g({versions:P}):g;return r.default.createElement("li",{className:[s,A&&`${s}--active`].filter(Boolean).join(" ")},r.default.createElement(o.Link,{className:`${s}__link`,to:E,...h&&{rel:"noopener noreferrer",target:"_blank"},tabIndex:A?-1:0},r.default.createElement("span",{className:`${s}__label`},e,t&&r.default.createElement(r.Fragment,null,"\xa0",r.default.createElement("span",{className:`${s}__count`},t)))))}return null}},49004:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCustomViews",{enumerable:!0,get:function(){return o}});let r=n(89953),a=n(41694),o=e=>{let t;let{collection:n,global:o}=e;if(n){let e="object"==typeof n?.admin?.components?.views?.Edit&&"function"!=typeof n?.admin?.components?.views?.Edit?n?.admin?.components?.views?.Edit:void 0,r=Object.keys(a.defaultCollectionViews);t=Object.entries(e||{}).reduce((e,[t,n])=>r.includes(t)?e:[...e,{...n,key:t}],[])}if(o){let e="object"==typeof o?.admin?.components?.views?.Edit&&"function"!=typeof o?.admin?.components?.views?.Edit?o?.admin?.components?.views?.Edit:void 0,n=Object.keys(r.defaultGlobalViews);t=Object.entries(e||{}).reduce((e,[t,r])=>n.includes(t)?e:[...e,{...r,key:t}],[])}return t}},68744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getViewConfig",{enumerable:!0,get:function(){return n}});let n=e=>{let{name:t,collection:n,global:r}=e;if(n){let e="object"==typeof n?.admin?.components?.views?.Edit&&"function"!=typeof n?.admin?.components?.views?.Edit?n?.admin?.components?.views?.Edit:void 0;return e?.[t]}if(r){let e="object"==typeof r?.admin?.components?.views?.Edit&&"function"!=typeof r?.admin?.components?.views?.Edit?r?.admin?.components?.views?.Edit:void 0;return e?.[t]}return null}},63159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DocumentTabs",{enumerable:!0,get:function(){return s}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(78455),o=n(49004),i=n(68744);n(52983);let l=n(63551),u="doc-tabs",s=e=>{let{collection:t,global:n,isEditing:s}=e,d=(0,o.getCustomViews)({collection:t,global:n});return t&&s||n?r.default.createElement("div",{className:u},r.default.createElement("div",{className:`${u}__tabs-container`},r.default.createElement("ul",{className:`${u}__tabs`},Object.entries(l.tabs)?.sort(([,e],[,t])=>void 0===e.order&&void 0===t.order?0:void 0===e.order?1:void 0===t.order?-1:e.order-t.order)?.map(([o,l],u)=>{let s=i.getViewConfig({name:o,collection:t,global:n}),d=s&&"Tab"in s?s.Tab:void 0;return r.default.createElement(a.DocumentTab,{...e,...l||{},...d||{},key:`tab-${u}`})}),d?.map((t,n)=>{if("Tab"in t){let{Tab:o,path:i}=t;return"function"==typeof o?r.default.createElement(o,{path:i,...e,key:`tab-custom-${n}`}):r.default.createElement(a.DocumentTab,{...e,...o,key:`tab-custom-${n}`})}return null})))):null}},63551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"tabs",{enumerable:!0,get:function(){return n}});let n={API:{condition:({collection:e,global:t})=>e&&!e?.admin?.hideAPIURL||t&&!t?.admin?.hideAPIURL,href:"/api",label:"API",order:1e3},Default:{href:"",isActive:({href:e,location:t})=>t.pathname===e||t.pathname===`${e}/create`,label:({t:e})=>e("edit"),order:0},LivePreview:{condition:({collection:e,config:t,global:n})=>e?!!(t?.admin?.livePreview?.collections?.includes(e.slug)||e?.admin?.livePreview):!!n&&!!(t?.admin?.livePreview?.globals?.includes(n.slug)||n?.admin?.livePreview),href:({match:e})=>`${e.url}/preview`,isActive:({href:e,location:t})=>t.pathname===e,label:({t:e})=>e("livePreview"),order:100},References:{condition:()=>!1},Relationships:{condition:()=>!1},Version:{condition:()=>!1},Versions:{condition:({collection:e,global:t})=>!!(e?.versions||t?.versions),href:"/versions",label:({t:e})=>e("version:versions"),order:200,pillLabel:({versions:e})=>"number"==typeof e?.totalDocs&&e?.totalDocs>0?e?.totalDocs.toString():""}}},67434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DocumentHeader",{enumerable:!0,get:function(){return d}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(11897),i=function(e){return e&&e.__esModule?e:{default:e}}(n(11600)),l=n(63159);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}n(85048);let s="doc-header",d=e=>{let{id:t,apiURL:n,collection:u,customHeader:d,data:c,global:f,isEditing:p}=e,{t:m}=(0,a.useTranslation)("general");return r.default.createElement(o.Gutter,{className:s},d&&d,!d&&r.default.createElement(r.Fragment,null,r.default.createElement(i.default,{className:`${s}__title`,collection:u,data:c,fallback:`[${m("untitled")}]`,global:f,useAsTitle:u?.admin?.useAsTitle}),r.default.createElement(l.DocumentTabs,{apiURL:n,collection:u,global:f,id:t,isEditing:p})))}},18430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DraggableSortableItem:function(){return i},default:function(){return l}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(24764);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}let i=e=>{let{id:t,children:n,disabled:o}=e,{attributes:i,isDragging:l,listeners:u,setNodeRef:s,transform:d}=(0,a.useDraggableSortable)({id:t,disabled:o});return r.default.createElement(r.Fragment,null,n({attributes:{...i,style:{cursor:l?"grabbing":"grab"}},listeners:u,setNodeRef:s,transform:d}))},l=i},53821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(43375),a=n(43627),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let l=e=>{let{children:t,className:n,ids:i,onDragEnd:l}=e,u=(0,o.useId)(),{setNodeRef:s}=(0,r.useDroppable)({id:u}),d=(0,r.useSensors)((0,r.useSensor)(r.PointerSensor,{activationConstraint:{distance:5}}),(0,r.useSensor)(r.KeyboardSensor,{coordinateGetter:a.sortableKeyboardCoordinates})),c=(0,o.useCallback)(e=>{let{active:t,over:n}=e;t&&n&&"function"==typeof l&&l({event:e,moveFromIndex:i.findIndex(e=>e===t.id),moveToIndex:i.findIndex(e=>e===n.id)})},[l,i]);return o.default.createElement(r.DndContext,{collisionDetection:r.closestCenter,onDragEnd:c,sensors:d},o.default.createElement(a.SortableContext,{items:i},o.default.createElement("div",{className:n,ref:s},t)))}},24764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useDraggableSortable",{enumerable:!0,get:function(){return a}});let r=n(43627),a=e=>{let{id:t,disabled:n}=e,{attributes:a,isDragging:o,listeners:i,setNodeRef:l,transform:u}=(0,r.useSortable)({id:t,disabled:n});return{attributes:{...a,style:{cursor:o?"grabbing":"grab"}},isDragging:o,listeners:i,setNodeRef:l,transform:u&&`translate3d(${u.x}px, ${u.y}px, 0)`}}},27791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatDrawerSlug:function(){return c},DrawerToggler:function(){return f},Drawer:function(){return p}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=function(e){return e&&e.__esModule?e:{default:e}}(n(88481)),l=n(95702),u=n(11897);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(38781);let d="drawer",c=({depth:e,slug:t})=>`drawer_${e}_${t}`,f=({children:e,className:t,disabled:n,onClick:o,slug:i,...l})=>{let{openModal:u}=(0,r.useModal)(),s=(0,a.useCallback)(e=>{u(i),"function"==typeof o&&o(e)},[u,i,o]);return a.default.createElement("button",{className:t,disabled:n,onClick:s,type:"button",...l},e)},p=({children:e,className:t,gutter:n=!0,header:s,hoverTitle:c,slug:f,title:p})=>{let{t:m}=(0,o.useTranslation)("general"),{closeModal:h,modalState:g}=(0,r.useModal)(),v=(0,l.useEditDepth)(),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{y(g[f]?.isOpen)},[f,g]),(0,a.useEffect)(()=>{x(b)},[b]),b)?a.default.createElement(r.Modal,{className:[t,d,w&&`${d}--is-open`,v>1&&`${d}--nested`].filter(Boolean).join(" "),slug:f,style:{zIndex:100+v}},(!v||1===v)&&a.default.createElement("div",{className:`${d}__blur-bg`}),a.default.createElement("button",{"aria-label":m("close"),className:`${d}__close`,id:`close-drawer__${f}`,onClick:()=>h(f),type:"button"}),a.default.createElement("div",{className:`${d}__content`},a.default.createElement("div",{className:`${d}__blur-bg-content`}),a.default.createElement(u.Gutter,{className:`${d}__content-children`,left:n,right:n},a.default.createElement(l.EditDepthContext.Provider,{value:v+1},s&&s,void 0===s&&a.default.createElement("div",{className:`${d}__header`},a.default.createElement("h2",{className:`${d}__header__title`,title:c?p:null},p),a.default.createElement("button",{"aria-label":m("close"),className:`${d}__header__close`,id:`close-drawer__${f}`,onClick:()=>h(f),type:"button"},a.default.createElement(i.default,null))),e)))):null}},45074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useDrawerSlug",{enumerable:!0,get:function(){return i}});let r=n(96540),a=n(27791),o=n(95702),i=e=>{let t=(0,r.useId)(),n=(0,o.useEditDepth)();return(0,a.formatDrawerSlug)({depth:n,slug:`${e}-${t}`})}},88621:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Dropzone",{enumerable:!0,get:function(){return s}});let r=i(n(96540)),a=n(43992),o=i(n(55182));function i(e){return e&&e.__esModule?e:{default:e}}n(35515);let l=e=>{e.preventDefault(),e.stopPropagation()},u="dropzone",s=({onChange:e,className:t,mimeTypes:n})=>{let i=r.default.useRef(null),[s,d]=r.default.useState(!1),c=r.default.useRef(null),{t:f}=(0,a.useTranslation)(["upload","general"]),p=r.default.useCallback(t=>{t.preventDefault(),t.stopPropagation(),t.clipboardData.files&&t.clipboardData.files.length>0&&e(t.clipboardData.files)},[e]),m=r.default.useCallback(e=>{e.preventDefault(),e.stopPropagation(),d(!0)},[]),h=r.default.useCallback(e=>{e.preventDefault(),e.stopPropagation(),d(!1)},[]),g=r.default.useCallback(t=>{t.preventDefault(),t.stopPropagation(),d(!1),t.dataTransfer.files&&t.dataTransfer.files.length>0&&(e(t.dataTransfer.files),d(!1),t.dataTransfer.clearData())},[e]),v=r.default.useCallback(t=>{t.target.files&&t.target.files.length>0&&e(t.target.files)},[e]);r.default.useEffect(()=>{let e=i.current;return e?(e.addEventListener("dragenter",m),e.addEventListener("dragleave",h),e.addEventListener("dragover",l),e.addEventListener("drop",g),e.addEventListener("paste",p),()=>{e.removeEventListener("dragenter",m),e.removeEventListener("dragleave",h),e.removeEventListener("dragover",l),e.removeEventListener("drop",g),e.removeEventListener("paste",p)}):()=>null},[m,h,g,p]);let b=[u,t,s?"dragging":""].filter(Boolean).join(" ");return r.default.createElement("div",{ref:i,className:b},r.default.createElement(o.default,{size:"small",buttonStyle:"secondary",onClick:()=>{c.current.click()},className:`${u}__file-button`},f("selectFile")),r.default.createElement("input",{ref:c,type:"file",accept:n?.join(","),onChange:v,className:`${u}__hidden-input`}),r.default.createElement("p",{className:`${u}__label`},f("general:or")," ",f("dragAndDrop")))}},42386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(95767),a=v(n(96540)),o=n(43992),i=n(30876),l=n(77399),u=n(3994),s=n(60146),d=n(66461),c=h(n(36515)),f=n(86919),p=h(n(55182)),m=v(n(96161));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}n(89542);let b="duplicate",y=({id:e,collection:t,slug:n})=>{let{push:h}=(0,i.useHistory)(),g=(0,d.useFormModified)(),{toggleModal:v}=(0,r.useModal)(),{setModified:y}=(0,d.useForm)(),{localization:w,routes:{api:x},serverURL:k}=(0,f.useConfig)(),{routes:{admin:P}}=(0,f.useConfig)(),[E,A]=(0,a.useState)(!1),{i18n:D,t:O}=(0,o.useTranslation)("general"),C=`duplicate-${e}`,M=(0,a.useCallback)(async(r=!1)=>{let a;if(A(!0),g&&!r){v(C);return}let o=async({id:e,duplicateID:r="",locale:a=""})=>{let o=await s.requests.get(`${k}${x}/${n}/${e}`,{headers:{"Accept-Language":D.language},params:{depth:0,draft:!0,"fallback-locale":"none",locale:a}}),i=await o.json();"function"==typeof t.admin.hooks?.beforeDuplicate&&(i=await t.admin.hooks.beforeDuplicate({collection:t,data:i,locale:a})),!r&&("createdAt"in i&&delete i.createdAt,"updatedAt"in i&&delete i.updatedAt);let u=await s.requests[r?"patch":"post"](`${k}${x}/${n}/${r}?locale=${a}&fallback-locale=none`,{body:JSON.stringify(i),headers:{"Accept-Language":D.language,"Content-Type":"application/json"}}),d=await u.json();return 201===u.status||200===u.status?d.doc.id:(r||d.errors.forEach(e=>l.toast.error(e.message)),null)},i=!1,d=[];w?await w.localeCodes.reduce(async(t,n)=>{if(await t,i)return;let r=await o({id:e,duplicateID:a,locale:n});(a=r||a)&&!r&&d.push(n),a||(i=!0)},Promise.resolve()):a=await o({id:e}),a&&(l.toast.success(O("successfullyDuplicated",{label:(0,u.getTranslation)(t.labels.singular,D)}),{autoClose:3e3}),d.length>0&&l.toast.error(` + ${O("error:localesNotSaved",{count:d.length})} + ${d.join(", ")} + `,{autoClose:5e3}),y(!1),setTimeout(()=>{h({pathname:`${P}/collections/${n}/${a}`})},10))},[g,w,O,D,t,y,v,C,k,x,n,e,h,P]),S=(0,a.useCallback)(async()=>{A(!1),await M(!0)},[M]);return a.default.createElement(a.default.Fragment,null,a.default.createElement(m.Button,{id:"action-duplicate",onClick:()=>M(!1)},O("duplicate")),g&&E&&a.default.createElement(r.Modal,{className:`${b}__modal`,slug:C},a.default.createElement(c.default,{className:`${b}__modal-template`},a.default.createElement("h1",null,O("confirmDuplication")),a.default.createElement("p",null,O("unsavedChangesDuplicate")),a.default.createElement(p.default,{buttonStyle:"secondary",id:"confirm-cancel",onClick:()=>v(C),type:"button"},O("cancel")),a.default.createElement(p.default,{id:"confirm-duplicate",onClick:S},O("duplicateWithoutSaving")))))}},47601:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return A}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(3994),l=y(n(8914)),u=n(66461),s=y(n(13309)),d=y(n(16488)),c=n(94416),f=y(n(88481)),p=n(7695),m=n(86919),h=n(3643),g=n(49041),v=n(27791),b=n(54026);function y(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}n(52903);let x="edit-many",k=({action:e,disabled:t})=>{let{submit:n}=(0,u.useForm)(),{t:r}=(0,o.useTranslation)("general"),i=(0,a.useCallback)(()=>{n({action:e,method:"PATCH",skipValidation:!0})},[e,n]);return a.default.createElement(d.default,{className:`${x}__save`,disabled:t,onClick:i},r("save"))},P=({action:e,disabled:t})=>{let{submit:n}=(0,u.useForm)(),{t:r}=(0,o.useTranslation)("version"),i=(0,a.useCallback)(()=>{n({action:e,method:"PATCH",overrides:{_status:"published"},skipValidation:!0})},[e,n]);return a.default.createElement(d.default,{className:`${x}__publish`,disabled:t,onClick:i},r("publishChanges"))},E=({action:e,disabled:t})=>{let{submit:n}=(0,u.useForm)(),{t:r}=(0,o.useTranslation)("version"),i=(0,a.useCallback)(()=>{n({action:e,method:"PATCH",overrides:{_status:"draft"},skipValidation:!0})},[e,n]);return a.default.createElement(d.default,{className:`${x}__draft`,disabled:t,onClick:i},r("saveDraft"))},A=e=>{let{collection:{fields:t,labels:{plural:n},slug:u}={},collection:d,resetParams:y}=e,{permissions:w}=(0,p.useAuth)(),{closeModal:A}=(0,r.useModal)(),{routes:{api:D},serverURL:O}=(0,m.useConfig)(),{count:C,getQueryParams:M,selectAll:S}=(0,g.useSelection)(),{i18n:j,t:T}=(0,o.useTranslation)("general"),[_,N]=(0,a.useState)([]),L=w?.collections?.[u],R=L?.update?.permission,z=`edit-${u}`;return S!==g.SelectAllStatus.None&&R?a.default.createElement("div",{className:x},a.default.createElement(v.DrawerToggler,{"aria-label":T("edit"),className:`${x}__toggle`,onClick:()=>{N([])},slug:z},T("edit")),a.default.createElement(v.Drawer,{header:null,slug:z},a.default.createElement(h.OperationContext.Provider,{value:"update"},a.default.createElement(l.default,{className:`${x}__form`,onSuccess:()=>{y({page:S===g.SelectAllStatus.AllAvailable?1:void 0})}},a.default.createElement("div",{className:`${x}__main`},a.default.createElement("div",{className:`${x}__header`},a.default.createElement("h2",{className:`${x}__header__title`},T("editingLabel",{count:C,label:(0,i.getTranslation)(n,j)})),a.default.createElement("button",{"aria-label":T("close"),className:`${x}__header__close`,id:`close-drawer__${z}`,onClick:()=>A(z),type:"button"},a.default.createElement(f.default,null))),a.default.createElement(b.FieldSelect,{fields:t,setSelected:N}),a.default.createElement(s.default,{fieldSchema:_,fieldTypes:c.fieldTypes}),a.default.createElement("div",{className:`${x}__sidebar-wrap`},a.default.createElement("div",{className:`${x}__sidebar`},a.default.createElement("div",{className:`${x}__sidebar-sticky-wrap`},a.default.createElement("div",{className:`${x}__document-actions`},d.versions?a.default.createElement(a.default.Fragment,null,a.default.createElement(P,{action:`${O}${D}/${u}${M()}`,disabled:0===_.length}),a.default.createElement(E,{action:`${O}${D}/${u}${M()}`,disabled:0===_.length})):a.default.createElement(k,{action:`${O}${D}/${u}${M()}`,disabled:0===_.length})))))))))):null}},3367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"EditUpload",{enumerable:!0,get:function(){return h}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=c(n(89260));n(10566);let l=c(n(29867)),u=n(37123),s=n(97827),d=c(n(55182));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(37461);let p="edit-upload",m=({name:e,onChange:t,value:n})=>a.default.createElement("div",{className:`${p}__input`},e,a.default.createElement("input",{name:e,onChange:e=>t(e.target.value),type:"number",value:n})),h=({fileName:e,fileSrc:t,imageCacheTag:n,showCrop:c,showFocalPoint:f})=>{let{closeModal:h}=(0,r.useModal)(),{t:v}=(0,o.useTranslation)(["general","upload"]),{formQueryParams:b,setFormQueryParams:y}=(0,u.useFormQueryParams)(),{uploadEdits:w}=b||{},[x,k]=(0,a.useState)({height:w?.crop?.height||100,unit:"%",width:w?.crop?.width||100,x:w?.crop?.x||0,y:w?.crop?.y||0}),[P,E]=(0,a.useState)({x:w?.focalPoint?.x||50,y:w?.focalPoint?.y||50}),[A,D]=(0,a.useState)(!1),[O,C]=(0,a.useState)(0),[M,S]=(0,a.useState)(0),j=(0,a.useRef)(),T=(0,a.useRef)(),_=(0,a.useRef)(),N=({dimension:e,value:t})=>{let n=parseInt(t);if("width"===e&&n>=M||"height"===e&&n>=O)return null;let r=100*(n/("width"===e?M:O));if(100===r||0===r)return null;k({...x,[e]:r})},L=({coordinate:e,value:t})=>{let n=parseInt(t);n>=0&&n<=100&&E(t=>({...t,[e]:n}))},R=()=>{y({...b,uploadEdits:{crop:x||void 0,focalPoint:P||void 0}}),h(s.editDrawerSlug)},z=a.default.useCallback(({x:e,y:t})=>{E({x:e,y:t}),D(!1)},[]),I=n?`${t}?${n}`:t;return a.default.createElement("div",{className:p},a.default.createElement("div",{className:`${p}__header`},a.default.createElement("h2",{title:`${v("general:editing")} ${e}`},v("general:editing")," ",e),a.default.createElement("div",{className:`${p}__actions`},a.default.createElement(d.default,{"aria-label":v("cancel"),buttonStyle:"secondary",className:`${p}__cancel`,onClick:()=>h(s.editDrawerSlug)},v("general:cancel")),a.default.createElement(d.default,{"aria-label":v("general:applyChanges"),buttonStyle:"primary",className:`${p}__save`,onClick:()=>R()},v("general:applyChanges")))),a.default.createElement("div",{className:`${p}__toolWrap`},a.default.createElement("div",{className:`${p}__crop`},a.default.createElement("div",{className:`${p}__focal-wrapper`,ref:j,style:{aspectRatio:`${M/O}`}},c?a.default.createElement(i.default,{className:`${p}__reactCrop`,crop:x,onChange:(e,t)=>k(t),onComplete:()=>D(!0),renderSelectionAddon:()=>a.default.createElement("div",{className:`${p}__crop-window`,ref:_})},a.default.createElement("img",{alt:v("upload:setCropArea"),onLoad:e=>{C(e.currentTarget.naturalHeight),S(e.currentTarget.naturalWidth)},ref:T,src:I})):a.default.createElement("img",{alt:v("upload:setFocalPoint"),onLoad:e=>{C(e.currentTarget.naturalHeight),S(e.currentTarget.naturalWidth)},ref:T,src:I}),f&&a.default.createElement(g,{boundsRef:c?_:T,checkBounds:!!c&&A,className:`${p}__focalPoint`,containerRef:j,initialPosition:P,onDragEnd:z,setCheckBounds:!!c&&D},a.default.createElement(l.default,null)))),(c||f)&&a.default.createElement("div",{className:`${p}__sidebar`},c&&a.default.createElement("div",{className:`${p}__groupWrap`},a.default.createElement("div",null,a.default.createElement("div",{className:`${p}__titleWrap`},a.default.createElement("h3",null,v("upload:crop")),a.default.createElement(d.default,{buttonStyle:"none",className:`${p}__reset`,onClick:()=>k({height:100,unit:"%",width:100,x:0,y:0})},v("general:reset")))),a.default.createElement("span",{className:`${p}__description`},v("upload:cropToolDescription")),a.default.createElement("div",{className:`${p}__inputsWrap`},a.default.createElement(m,{name:`${v("upload:width")} (px)`,onChange:e=>N({dimension:"width",value:e}),value:(x.width/100*M).toFixed(0)}),a.default.createElement(m,{name:`${v("upload:height")} (px)`,onChange:e=>N({dimension:"height",value:e}),value:(x.height/100*O).toFixed(0)}))),f&&a.default.createElement("div",{className:`${p}__groupWrap`},a.default.createElement("div",null,a.default.createElement("div",{className:`${p}__titleWrap`},a.default.createElement("h3",null,v("upload:focalPoint")),a.default.createElement(d.default,{buttonStyle:"none",className:`${p}__reset`,onClick:()=>{let e=j.current.getBoundingClientRect(),t=c?_.current.getBoundingClientRect():T.current.getBoundingClientRect(),n=(t.left-e.left+t.width/2)/e.width*100,r=(t.top-e.top+t.height/2)/e.height*100;E({x:n,y:r})}},v("general:reset")))),a.default.createElement("span",{className:`${p}__description`},v("upload:focalPointDescription")),a.default.createElement("div",{className:`${p}__inputsWrap`},a.default.createElement(m,{name:"X %",onChange:e=>L({coordinate:"x",value:e}),value:P.x.toFixed(0)}),a.default.createElement(m,{name:"Y %",onChange:e=>L({coordinate:"y",value:e}),value:P.y.toFixed(0)}))))))},g=({boundsRef:e,checkBounds:t,children:n,className:r,containerRef:o,initialPosition:i={x:50,y:50},onDragEnd:l,setCheckBounds:u})=>{let[s,d]=(0,a.useState)({x:i.x,y:i.y}),[c,f]=(0,a.useState)(!1),m=(0,a.useRef)(),h=a.default.useCallback((t,n,r)=>{let a=o.current.getBoundingClientRect(),i=e.current.getBoundingClientRect(),l=t??i.left,u=n??i.top,s=li.right,d=ui.bottom,c=(l-a.left)/a.width*100,p=(u-a.top)/a.height*100,m=(i.left-a.left+i.width/2)/a.width*100,h=(i.top-a.top+i.height/2)/a.height*100;return(s||d)&&(f(!1),li.right&&(c=(a.width-(a.right-i.right))/a.width*100),ui.bottom&&(p=(a.height-(a.bottom-i.bottom))/a.height*100),r&&(c=s?m:c,p=d?h:p)),{x:c,y:p}},[e,o]);return a.default.useEffect(()=>{if(!c&&m.current&&t){let{height:e,left:t,top:n,width:r}=m.current.getBoundingClientRect(),{x:a,y:o}=h(t+r/2,n+e/2,!0);l({x:a,y:o}),d({x:a,y:o}),u(!1);return}},[h,c,t,u,s.x,s.y,l]),a.default.useEffect(()=>{d({x:i.x,y:i.y})},[i.x,i.y]),a.default.createElement("div",{className:[`${p}__draggable-container`,c&&`${p}__draggable-container--dragging`].filter(Boolean).join(" "),onMouseMove:e=>{if(!c)return null;let{x:t,y:n}=h(e.clientX,e.clientY);d({x:t,y:n})}},a.default.createElement("button",{className:[`${p}__draggable`,r].filter(Boolean).join(" "),onMouseDown:e=>{e.preventDefault(),f(!0)},onMouseUp:()=>{f(!1),l(s)},ref:m,style:{left:`${s.x}%`,top:`${s.y}%`},type:"button"},n),a.default.createElement("div",null))}},79739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ErrorPill",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992);n(25751);let o="error-pill",i=e=>{let{className:t,count:n,withMessage:i}=e,l=!i&&n<99,{t:u}=(0,a.useTranslation)(),s=[o,l&&`${o}--fixed-width`,t&&t].filter(Boolean).join(" ");return 0===n?null:r.default.createElement("div",{className:s},r.default.createElement("div",{className:`${o}__content`},r.default.createElement("span",{className:`${o}__count`},n),i&&` ${u(n>1?"general:errors":"general:error")}`))}},2617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(11897),o=i(n(83949));function i(e){return e&&e.__esModule?e:{default:e}}n(57553);let l="eyebrow",u=()=>r.default.createElement("div",{className:l},r.default.createElement(a.Gutter,{className:`${l}__wrap`},r.default.createElement(o.default,null)))},54026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FieldSelect",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(49472),i=n(3994),l=n(66461),u=n(57816),s=c(n(16034)),d=c(n(78877));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(31738);let p=(e,t,n)=>`${""===e?"":`${e} > `}${(0,i.getTranslation)(t.label||t.name,n)||""}`,m=(e,t,n="",r="")=>e.reduce((e,a)=>{if((0,o.fieldAffectsData)(a)&&(a.admin?.disableBulkEdit||a.unique||a.hidden||a.admin?.hidden||a.admin?.readOnly))return e;if(!("array"===a.type||"blocks"===a.type)&&(0,o.fieldHasSubFields)(a))return[...e,...m(a.fields,t,(0,u.createNestedFieldPath)(n,a),p(r,a,t))];if("tabs"===a.type)return[...e,...a.tabs.reduce((e,i)=>[...e,...m(i.fields,t,(0,o.tabHasName)(i)?(0,u.createNestedFieldPath)(n,a):n,p(r,a,t))],[])];let i={label:p(r,a,t),value:{...a,path:(0,u.createNestedFieldPath)(n,a)}};return[...e,i]},[]),h=({fields:e,setSelected:t})=>{let{i18n:n,t:o}=(0,a.useTranslation)("general"),[i]=(0,r.useState)(()=>m(e,n)),{dispatchFields:u,getFields:c}=(0,l.useForm)();return r.default.createElement("div",{className:"field-select"},r.default.createElement(s.default,{label:o("fields:selectFieldsToEdit")}),r.default.createElement(d.default,{isMulti:!0,onChange:e=>{let n=c();null===e?t([]):t(e.map(({value:e})=>e)),(null===e||Object.keys(n).length>e.length)&&Object.keys(n).forEach(t=>{null!==e&&e.find(e=>e.value.path===t)||u({path:t,type:"REMOVE"})})},options:i}))}},67214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=d(n(23791)),o=d(n(38395)),i=n(86919),l=d(n(37724)),u=n(1794),s=d(n(77665));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(62032);let f="file-meta",p=e=>{let{id:t,collection:n,filename:d,filesize:c,height:p,mimeType:m,staticURL:h,url:g,width:v}=e,[b,y]=(0,r.useState)(!1),w=!!(t&&n),[x,k]=(0,u.useDocumentDrawer)({id:t,collectionSlug:n}),{serverURL:P}=(0,i.useConfig)(),E=g||`${P}${h}/${d}`;return r.default.createElement("div",{className:f},r.default.createElement("div",{className:`${f}__url`},w&&r.default.createElement(x,null),r.default.createElement("a",{href:E,rel:"noopener noreferrer",target:"_blank"},d),r.default.createElement(l.default,{defaultMessage:"Copy URL",value:E}),w&&r.default.createElement(k,{className:`${f}__edit`,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},r.default.createElement(o.default,null),r.default.createElement(s.default,{show:b},"Edit"))),r.default.createElement("div",{className:`${f}__size-type`},(0,a.default)(c),v&&p&&r.default.createElement(r.default.Fragment,null,"\xa0-\xa0",v,"x",p),m&&r.default.createElement(r.default.Fragment,null,"\xa0-\xa0",m)))}},29358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=s(n(96540)),a=s(n(43690)),o=n(97827),i=s(n(55182)),l=s(n(58822)),u=s(n(67214));function s(e){return e&&e.__esModule?e:{default:e}}n(97830);let d="file-details",c=e=>{let{canEdit:t,collection:n,doc:s,handleRemove:c,hasImageSizes:f,imageCacheTag:p}=e,{slug:m,upload:{staticURL:h}}=n,{id:g,filename:v,filesize:b,height:y,mimeType:w,url:x,width:k}=s;return r.default.createElement("div",{className:d},r.default.createElement("header",null,r.default.createElement(l.default,{collection:n,doc:s,imageCacheTag:p}),r.default.createElement("div",{className:`${d}__main-detail`},r.default.createElement(u.default,{collection:m,filename:v,filesize:b,height:y,id:g,mimeType:w,staticURL:h,url:x,width:k}),(0,a.default)(w)&&"image/svg+xml"!==w&&r.default.createElement(o.UploadActions,{canEdit:t,showSizePreviews:f&&s.filename})),c&&r.default.createElement(i.default,{buttonStyle:"icon-label",className:`${d}__remove`,icon:"x",iconStyle:"with-border",onClick:c,round:!0})))}},20156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=n(95767),a=d(n(96540)),o=n(43992),i=n(77399),l=d(n(36515)),u=n(50444),s=d(n(55182));function d(e){return e&&e.__esModule?e:{default:e}}n(38198);let c="generate-confirmation",f=e=>{let{highlightField:t,setKey:n}=e,{id:d}=(0,u.useDocumentInfo)(),{toggleModal:f}=(0,r.useModal)(),{t:p}=(0,o.useTranslation)("authentication"),m=`generate-confirmation-${d}`;return a.default.createElement(a.default.Fragment,null,a.default.createElement(s.default,{buttonStyle:"secondary",onClick:()=>{f(m)},size:"small"},p("generateNewAPIKey")),a.default.createElement(r.Modal,{className:c,slug:m},a.default.createElement(l.default,{className:`${c}__template`},a.default.createElement("h1",null,p("confirmGeneration")),a.default.createElement("p",null,a.default.createElement(o.Trans,{i18nKey:"generatingNewAPIKeyWillInvalidate",t:p},"generatingNewAPIKeyWillInvalidate",a.default.createElement("strong",null,"invalidate"))),a.default.createElement(s.default,{buttonStyle:"secondary",onClick:()=>{f(m)},type:"button"},p("general:cancel")),a.default.createElement(s.default,{onClick:()=>{n(),f(m),i.toast.success(p("newAPIKeyGenerated"),{autoClose:3e3}),t(!0)}},p("generate")))))}},11897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Gutter",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}n(10707);let o="gutter",i=(0,r.forwardRef)((e,t)=>{let{children:n,className:a,left:i=!0,negativeLeft:l=!1,negativeRight:u=!1,right:s=!0}=e;return r.default.createElement("div",{className:[i&&!l&&`${o}--left`,s&&!u&&`${o}--right`,l&&`${o}--negative-left`,u&&`${o}--negative-right`,a].filter(Boolean).join(" "),ref:t},n)});i.displayName="Gutter"},1149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hamburger",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(26835);n(98661);let i="hamburger",l=e=>{let{t}=(0,a.useTranslation)("general"),{closeIcon:n="x",isActive:l=!1}=e;return r.default.createElement("div",{className:i},r.default.createElement("div",{className:`${i}__wrapper`},r.default.createElement("div",{className:`${i}__icon`},!l&&r.default.createElement("div",{className:`${i}__lines`,title:t("open")},r.default.createElement("div",{className:`${i}__line ${i}__top`}),r.default.createElement("div",{className:`${i}__line ${i}__middle`}),r.default.createElement("div",{className:`${i}__line ${i}__bottom`})),l&&r.default.createElement("div",{"aria-label":t("collapse"===n?"collapse":"close"),className:`${i}__close-icon`,title:t("collapse"===n?"collapse":"close")},"x"===n&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:`${i}__line ${i}__x-left`}),r.default.createElement("div",{className:`${i}__line ${i}__x-right`})),"collapse"===n&&r.default.createElement(o.Chevron,{className:`${i}__collapse-chevron`,direction:"left"})))))}},39999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppHeader",{enumerable:!0,get:function(){return g}});let r=m(n(96540)),a=n(43992),o=n(30876),i=m(n(3953)),l=n(86919),u=n(1149),s=m(n(41865)),d=n(39369),c=n(51985),f=n(96612),p=m(n(83949));function m(e){return e&&e.__esModule?e:{default:e}}n(69309);let h="app-header",g=()=>{let{t:e}=(0,a.useTranslation)(),{localization:t,routes:{admin:n}}=(0,l.useConfig)(),{navOpen:m}=(0,f.useNav)();return r.default.createElement("header",{className:[h,m&&`${h}--nav-open`].filter(Boolean).join(" ")},r.default.createElement("div",{className:`${h}__bg`}),r.default.createElement("div",{className:`${h}__content`},r.default.createElement("div",{className:`${h}__wrapper`},r.default.createElement(c.NavToggler,{className:`${h}__mobile-nav-toggler`,tabIndex:-1},r.default.createElement(u.Hamburger,null)),r.default.createElement("div",{className:`${h}__controls-wrapper`},r.default.createElement("div",{className:`${h}__step-nav-wrapper`},r.default.createElement(p.default,{className:`${h}__step-nav`})),r.default.createElement("div",{className:`${h}__controls`},t&&r.default.createElement(d.LocalizerLabel,{ariaLabel:"invisible",className:`${h}__localizer-spacing`}),r.default.createElement(o.Link,{"aria-label":e("authentication:account"),className:`${h}__account`,tabIndex:0,to:`${n}/account`},r.default.createElement(i.default,null)))))),r.default.createElement(s.default,{className:`${h}__localizer`}))}},10803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(75335);let a=({id:e,className:t,prefix:n="ID:"})=>r.default.createElement("div",{className:["id-label",t].filter(Boolean).join(" "),title:e},n,"\xa0\xa0",e)},86383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTextFieldsToBeSearched",{enumerable:!0,get:function(){return o}});let r=n(49472),a=function(e){return e&&e.__esModule?e:{default:e}}(n(6545)),o=(e,t)=>()=>{if(e){let n=(0,a.default)(t);return n.filter(t=>(0,r.fieldAffectsData)(t)&&e.includes(t.name))}return null}},59888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ListControls",{enumerable:!0,get:function(){return A}});let r=n(54701),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=P(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=k(n(56650)),i=n(43992),l=n(49472),u=n(3994),s=k(n(68410)),d=n(7087),c=k(n(17013)),f=k(n(30134)),p=k(n(47601)),m=k(n(36669)),h=k(n(53010)),g=k(n(64476)),v=k(n(28334)),b=k(n(36167)),y=k(n(77220)),w=k(n(56685)),x=n(86383);function k(e){return e&&e.__esModule?e:{default:e}}function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}n(84630);let E="list-controls",A=e=>{let{collection:{admin:{listSearchableFields:t},fields:n},collection:k,enableColumns:P=!0,enableSort:A=!1,handleSearchChange:D,handleSortChange:O,handleWhereChange:C,modifySearchQuery:M=!0,resetParams:S,titleField:j}=e,T=(0,d.useSearchParams)(),_=(0,w.default)(T?.where),[N,L]=(0,a.useState)((0,x.getTextFieldsToBeSearched)(t,n)),[R,z]=(0,a.useState)(_?"where":void 0),{i18n:I,t:F}=(0,i.useTranslation)("general"),{breakpoints:{s:W}}=(0,r.useWindowInfo)();return a.default.useEffect(()=>{L((0,x.getTextFieldsToBeSearched)(t,n))},[t,n]),a.default.createElement("div",{className:E},a.default.createElement("div",{className:`${E}__wrap`},a.default.createElement(g.default,{fieldLabel:(j&&(0,u.getTranslation)(j.label||j.name,I))??void 0,fieldName:j&&(0,l.fieldAffectsData)(j)?j.name:void 0,handleChange:D,listSearchableFields:N,modifySearchQuery:M}),a.default.createElement("div",{className:`${E}__buttons`},a.default.createElement("div",{className:`${E}__buttons-wrap`},!W&&a.default.createElement(a.default.Fragment,null,a.default.createElement(p.default,{collection:k,resetParams:S}),a.default.createElement(h.default,{collection:k,resetParams:S}),a.default.createElement(b.default,{collection:k,resetParams:S}),a.default.createElement(f.default,{collection:k,resetParams:S})),P&&a.default.createElement(m.default,{"aria-controls":`${E}-columns`,"aria-expanded":"columns"===R,className:`${E}__toggle-columns ${"columns"===R?`${E}__buttons-active`:""}`,icon:a.default.createElement(s.default,null),onClick:()=>z("columns"!==R?"columns":void 0),pillStyle:"light"},F("columns")),a.default.createElement(m.default,{"aria-controls":`${E}-where`,"aria-expanded":"where"===R,className:`${E}__toggle-where ${"where"===R?`${E}__buttons-active`:""}`,icon:a.default.createElement(s.default,null),onClick:()=>z("where"!==R?"where":void 0),pillStyle:"light"},F("filters")),A&&a.default.createElement(m.default,{"aria-controls":`${E}-sort`,"aria-expanded":"sort"===R,className:`${E}__toggle-sort`,icon:a.default.createElement(s.default,null),onClick:()=>z("sort"!==R?"sort":void 0),pillStyle:"light"},F("sort"))))),P&&a.default.createElement(o.default,{className:`${E}__columns`,height:"columns"===R?"auto":0,id:`${E}-columns`},a.default.createElement(c.default,{collection:k})),a.default.createElement(o.default,{className:`${E}__where`,height:"where"===R?"auto":0,id:`${E}-where`},a.default.createElement(y.default,{collection:k,handleChange:C,modifySearchQuery:M})),A&&a.default.createElement(o.default,{className:`${E}__sort`,height:"sort"===R?"auto":0,id:`${E}-sort`},a.default.createElement(v.default,{collection:k,handleChange:O,modifySearchQuery:M})))}},14941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ListDrawerContent",{enumerable:!0,get:function(){return O}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(73643),l=n(3994),u=E(n(82472)),s=n(94441),d=E(n(16034)),c=E(n(88481)),f=n(7695),p=n(86919),m=n(50444),h=n(71849),g=E(n(45649)),v=E(n(32964)),b=E(n(43415)),y=n(1794),w=E(n(36669)),x=E(n(78877)),k=n(62093),P=E(n(56731));function E(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}let D=(e,t)=>("and"in e?e.and.push(t):e={and:[e,t]},e),O=({collectionSlugs:e,customHeader:t,drawerSlug:n,filterOptions:E,onSelect:A,selectedCollection:O})=>{let{i18n:C,t:M}=(0,o.useTranslation)(["upload","general"]),{permissions:S}=(0,f.useAuth)(),{setPreference:j}=(0,h.usePreferences)(),{closeModal:T,isModalOpen:_}=(0,r.useModal)(),[N,L]=(0,a.useState)(),[R,z]=(0,a.useState)(null),[I,F]=(0,a.useState)(1),[W,B]=(0,a.useState)(null),[U,V]=(0,a.useState)(""),{collections:$,routes:{api:H},serverURL:q}=(0,p.useConfig)(),Y=$.filter(({slug:t})=>e.includes(t)),[G,K]=(0,a.useState)(()=>Y.find(({slug:e})=>e===O)||Y?.[0]),[X,Q]=(0,a.useState)(()=>G?{label:(0,l.getTranslation)(G.labels.singular,C),value:G.slug}:void 0),[J,Z]=(0,a.useState)(()=>(0,b.default)(G)),ee=(0,s.useUseTitleField)(G);(0,a.useEffect)(()=>{Z((0,b.default)(G))},[G]),(0,a.useEffect)(()=>{if(O){let e=Y.find(({slug:e})=>e===O)||Y?.[0];K(e)}},[O,Y,A,M]);let et=`${G.slug}-list`,[en,er,{drawerSlug:ea}]=(0,y.useDocumentDrawer)({collectionSlug:G.slug});(0,a.useEffect)(()=>{X&&K(Y.find(({slug:e})=>X.value===e))},[X,Y]);let eo=S?.collections?.[G?.slug],ei=eo?.create?.permission,el=_(n),eu=el?`${q}${H}/${G.slug}`:null,[es,ed]=(0,a.useReducer)(e=>e+1,0),[{data:ec,isError:ef},{setParams:ep}]=(0,u.default)(eu,{}),em=Y.length>1;(0,a.useEffect)(()=>{let{admin:{listSearchableFields:e}={},slug:t}=G,n={},r={...W||{}};if(E&&(r=D(r,E[t])),U){let t=(e||[ee?.name]).map(e=>({[e]:{like:U}}),[]);if(t.length>0){let e={or:[...t]};r=D(r,e)}}I&&(n.page=I),R&&(n.sort=R),es&&(n.cacheBust=es),r&&(n.where=r),ep(n)},[I,R,W,U,es,E,G,M,ep,ee?.name]),(0,a.useEffect)(()=>{j(et,{limit:N,sort:R},!0)},[R,N,j,et]);let eh=(0,a.useCallback)(({doc:e})=>{"function"==typeof A&&A({collectionConfig:G,docID:e.id}),ed(),T(ea),T(n)},[T,ea,n,A,G]);return!G||ef?null:a.default.createElement(k.TableColumnsProvider,{cellProps:[{className:`${i.baseClass}__first-cell`,link:!1,onClick:({collection:e,rowData:t})=>{"function"==typeof A&&A({collectionConfig:e,docID:t.id})}}],collection:G},a.default.createElement(m.DocumentInfoProvider,{collection:G},a.default.createElement(g.default,{CustomComponent:G?.admin?.components?.views?.List,DefaultComponent:v.default,componentProps:{collection:{...G,fields:J},customHeader:a.default.createElement("header",{className:`${i.baseClass}__header`},a.default.createElement("div",{className:`${i.baseClass}__header-wrap`},a.default.createElement("div",{className:`${i.baseClass}__header-content`},a.default.createElement("h2",{className:`${i.baseClass}__header-text`},t||(0,l.getTranslation)(G?.labels?.plural,C)),ei&&a.default.createElement(er,{className:`${i.baseClass}__create-new-button`},a.default.createElement(w.default,null,M("general:createNew")))),a.default.createElement("button",{className:`${i.baseClass}__header-close`,onClick:()=>{T(n)},type:"button"},a.default.createElement(c.default,null))),G?.admin?.description&&a.default.createElement("div",{className:`${i.baseClass}__sub-header`},a.default.createElement(P.default,{description:G.admin.description})),em&&a.default.createElement("div",{className:`${i.baseClass}__select-collection-wrap`},a.default.createElement(d.default,{label:M("selectCollectionToBrowse")}),a.default.createElement(x.default,{className:`${i.baseClass}__select-collection`,onChange:Q,options:Y.map(e=>({label:(0,l.getTranslation)(e.labels.singular,C),value:e.slug})),value:X}))),data:ec,handlePageChange:F,handlePerPageChange:L,handleSearchChange:V,handleSortChange:z,handleWhereChange:B,hasCreatePermission:ei,limit:N||G?.admin?.pagination?.defaultLimit,modifySearchParams:!1,newDocumentURL:null,setLimit:L,setSort:z,titleField:ee}})),a.default.createElement(en,{onSave:eh}))}},73643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{baseClass:function(){return d},formatListDrawerSlug:function(){return c},ListDrawerToggler:function(){return f},ListDrawer:function(){return p},useListDrawer:function(){return m}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(86919),i=n(95702),l=n(27791),u=n(14941);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(86889);let d="list-drawer",c=({depth:e,uuid:t})=>`list-drawer_${e}_${t}`,f=({children:e,className:t,disabled:n,drawerSlug:r,...o})=>a.default.createElement(l.DrawerToggler,{className:[t,`${d}__toggler`].filter(Boolean).join(" "),disabled:n,slug:r,...o},e),p=e=>{let{drawerSlug:t}=e;return a.default.createElement(l.Drawer,{className:d,gutter:!1,header:!1,slug:t},a.default.createElement(u.ListDrawerContent,e))},m=({collectionSlugs:e,filterOptions:t,selectedCollection:n,uploads:l})=>{let{collections:u}=(0,o.useConfig)(),s=(0,i.useEditDepth)(),d=(0,a.useId)(),{closeModal:m,modalState:h,openModal:g,toggleModal:v}=(0,r.useModal)(),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(e),k=c({depth:s,uuid:d});(0,a.useEffect)(()=>{y(!!h[k]?.isOpen)},[h,k]),(0,a.useEffect)(()=>{if(!w||0===w.length){let e=u.filter(({upload:e})=>!l||!0==!!e);x(e.map(({slug:e})=>e))}},[w,l,u]);let P=(0,a.useCallback)(()=>{v(k)},[v,k]),E=(0,a.useCallback)(()=>{m(k)},[k,m]),A=(0,a.useCallback)(()=>{g(k)},[k,g]),D=(0,a.useMemo)(()=>e=>a.default.createElement(p,{...e,closeDrawer:E,collectionSlugs:w,drawerSlug:k,filterOptions:t,key:k,selectedCollection:n,uploads:l}),[k,w,l,E,n,t]),O=(0,a.useMemo)(()=>e=>a.default.createElement(f,{...e,drawerSlug:k}),[k]),C=(0,a.useMemo)(()=>({closeDrawer:E,drawerDepth:s,drawerSlug:k,isDrawerOpen:b,openDrawer:A,toggleDrawer:P}),[s,k,b,P,E,A]);return[D,O,C]}},20904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(49041);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}n(86504);let l="list-selection",u=({label:e})=>{let{count:t,selectAll:n,toggleAll:i,totalDocs:u}=(0,o.useSelection)(),{t:s}=(0,a.useTranslation)("general");return 0===t?null:r.default.createElement("div",{className:l},r.default.createElement("span",null,s("selectedCount",{count:t,label:e})),n!==o.SelectAllStatus.AllAvailable&&r.default.createElement(r.Fragment,null," ","—",r.default.createElement("button",{"aria-label":s("selectAll",{count:t,label:e}),className:`${l}__button`,onClick:()=>i(!0),type:"button"},s("selectAll",{count:u,label:e}))))}},72234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{LoadingOverlay:function(){return s},LoadingOverlayToggle:function(){return d},FormLoadingOverlayToggle:function(){return c}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994),i=n(66461),l=n(52649);n(63106);let u="loading-overlay",s=({animationDuration:e,loadingText:t,overlayType:n,show:o=!0})=>{let{t:i}=(0,a.useTranslation)("general");return r.default.createElement("div",{className:[u,o?`${u}--entering`:`${u}--exiting`,n?`${u}--${n}`:""].filter(Boolean).join(" "),style:{animationDuration:e||"500ms"}},r.default.createElement("div",{className:`${u}__bars`},r.default.createElement("div",{className:`${u}__bar`}),r.default.createElement("div",{className:`${u}__bar`}),r.default.createElement("div",{className:`${u}__bar`}),r.default.createElement("div",{className:`${u}__bar`}),r.default.createElement("div",{className:`${u}__bar`})),r.default.createElement("span",{className:`${u}__text`},t||i("loading")))},d=({name:e,loadingText:t,show:n,type:a="fullscreen"})=>{let{toggleLoadingOverlay:o}=(0,l.useLoadingOverlay)();return r.default.useEffect(()=>(o({isLoading:n,key:e,loadingText:t||void 0,type:a}),()=>{o({isLoading:!1,key:e,type:a})}),[n,o,e,a,t]),null},c=({name:e,action:t,formIsLoading:n=!1,loadingSuffix:l,type:u="fullscreen"})=>{let s=(0,i.useFormProcessing)(),{i18n:c,t:f}=(0,a.useTranslation)("general"),p={create:f("creating"),loading:f("loading"),update:f("updating")};return r.default.createElement(d,{loadingText:`${p[t]} ${l?(0,o.getTranslation)(l,c):""}`.trim(),name:e,show:n||s,type:u})}},39369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LocalizerLabel",{enumerable:!0,get:function(){return s}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(26835),i=n(3994),l=n(62519);n(55447);let u="localizer-button",s=e=>{let{ariaLabel:t,className:n}=e,s=(0,l.useLocale)(),{t:d}=(0,a.useTranslation)("general"),{i18n:c}=(0,a.useTranslation)();return r.default.createElement("div",{"aria-label":t||d("locale"),className:[u,n].filter(Boolean).join(" ")},r.default.createElement("div",{className:`${u}__label`},`${d("locale")}:`),"\xa0\xa0",r.default.createElement("span",{className:`${u}__current-label`},`${(0,i.getTranslation)(s.label,c)}`),"\xa0",r.default.createElement(o.Chevron,{className:`${u}__chevron`}))}},41865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=p(n(55373)),a=p(n(96540)),o=n(43992),i=n(3994),l=n(86919),u=n(62519),s=n(7087),d=p(n(12748)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96161)),f=n(39369);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(61445);let h=e=>{let{className:t}=e,n=(0,l.useConfig)(),{localization:p}=n,{i18n:m}=(0,o.useTranslation)(),h=(0,u.useLocale)(),g=(0,s.useSearchParams)(),v=(0,i.getTranslation)(h.label,m);if(p){let{locales:e}=p;return a.default.createElement("div",{className:["localizer",t].filter(Boolean).join(" ")},a.default.createElement(d.default,{button:a.default.createElement(f.LocalizerLabel,null),horizontalAlign:"right",render:({close:t})=>a.default.createElement(c.ButtonGroup,null,a.default.createElement(a.default.Fragment,null,h?a.default.createElement(c.Button,{active:!0,key:h.code,onClick:t,to:{search:r.default.stringify({...g,locale:h.code})}},v,v!==h.code&&` (${h.code})`):null,e.map(e=>{if(h.code===e.code)return null;let n={...g,locale:e.code},o=r.default.stringify(n),l=(0,i.getTranslation)(e.label,m);return a.default.createElement(c.Button,{key:e.code,onClick:t,to:{search:o}},l,l!==e.code&&` (${e.code})`)}))),showScrollbar:!0,size:"large"}))}return null}},37164:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=s(n(96540)),a=n(43992),o=n(30876),i=s(n(44357)),l=n(86919),u=s(n(45649));function s(e){return e&&e.__esModule?e:{default:e}}let d=({tabIndex:e})=>{let{t}=(0,a.useTranslation)("authentication"),n=(0,l.useConfig)(),{admin:{logoutRoute:u},routes:{admin:s}}=n;return r.default.createElement(o.Link,{"aria-label":t("logOut"),className:"nav__log-out",tabIndex:e,to:`${s}${u}`},r.default.createElement(i.default,null))},c=({tabIndex:e=0})=>{let{admin:{components:{logout:{Button:t}={Button:void 0}}={}}={}}=(0,l.useConfig)();return r.default.createElement(u.default,{CustomComponent:t,DefaultComponent:d,componentProps:{tabIndex:e}})}},51985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NavToggler",{enumerable:!0,get:function(){return s}});let r=n(54701),a=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),o=n(43992),i=n(71849),l=n(96612);n(76051);let u="nav-toggler",s=e=>{let{id:t,children:n,className:s,tabIndex:d=0}=e,{t:c}=(0,o.useTranslation)("general"),{setPreference:f}=(0,i.usePreferences)(),{navOpen:p,setNavOpen:m}=(0,l.useNav)(),{breakpoints:{l:h}}=(0,r.useWindowInfo)();return a.default.createElement("button",{"aria-label":`${c(p?"close":"open")} ${c("menu")}`,className:[u,p&&`${u}--is-open`,s].filter(Boolean).join(" "),id:t,onClick:async()=>{m(!p),h||await f("nav",{open:!p})},tabIndex:d,type:"button"},n)}},96612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{NavContext:function(){return s},useNav:function(){return d},NavProvider:function(){return f}});let r=n(54701),a=n(24208),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=n(30876),l=n(71849);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}let s=o.default.createContext({navOpen:!0,navRef:null,setNavOpen:()=>{}}),d=()=>o.default.useContext(s),c=async e=>{let t=await e("nav"),n=t?.open;return"boolean"!=typeof n||n},f=({children:e})=>{let{breakpoints:{l:t,m:n,s:u}}=(0,r.useWindowInfo)(),{getPreference:d}=(0,l.usePreferences)(),f=(0,i.useHistory)(),p=(0,o.useRef)(null),[m,h]=o.default.useState(!1);return(0,o.useEffect)(()=>{if(!1===t){let e=async()=>{let e=await c(d);h(e)};e()}},[t,d,h]),(0,o.useEffect)(()=>{let e;return n?e=f.listen(()=>{h(!1)}):e&&e(),()=>e&&e()},[f,h,n]),(0,o.useEffect)(()=>{p.current&&(m&&n?(0,a.disableBodyScroll)(p.current):(0,a.enableBodyScroll)(p.current))},[m,n]),(0,o.useEffect)(()=>{(!1===t||!1===n||!1===u)&&h(!1)},[t,n,u]),(0,o.useEffect)(()=>()=>{(0,a.clearAllBodyScrollLocks)()},[]),o.default.createElement(s.Provider,{value:{navOpen:m,navRef:p,setNavOpen:h}},e)}},54335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Nav",{enumerable:!0,get:function(){return y}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(3994),l=n(90282),u=g(n(68410)),s=n(7695),d=n(86919),c=g(n(45649)),f=n(1149),p=g(n(37164)),m=g(n(84998)),h=n(96612);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}n(20979);let b=()=>{let{navOpen:e,navRef:t,setNavOpen:n}=(0,h.useNav)(),{permissions:c,user:g}=(0,s.useAuth)(),[v,b]=(0,r.useState)([]),{i18n:y}=(0,a.useTranslation)("general"),{admin:{components:{afterNavLinks:w,beforeNavLinks:x}},collections:k,globals:P,routes:{admin:E}}=(0,d.useConfig)();return(0,r.useEffect)(()=>{b((0,l.groupNavItems)([...k.filter(({admin:{hidden:e}})=>!("function"==typeof e?e({user:g}):e)).map(e=>{let t={entity:e,type:l.EntityType.collection};return t}),...P.filter(({admin:{hidden:e}})=>!("function"==typeof e?e({user:g}):e)).map(e=>{let t={entity:e,type:l.EntityType.global};return t})],c,y))},[k,P,c,y,y.language,g]),r.default.createElement("aside",{className:["nav",e&&"nav--nav-open"].filter(Boolean).join(" ")},r.default.createElement("div",{className:"nav__scroll",ref:t},r.default.createElement("nav",{className:"nav__wrap"},Array.isArray(x)&&x.map((e,t)=>r.default.createElement(e,{key:t})),v.map(({entities:t,label:n},a)=>r.default.createElement(m.default,{key:a,label:n},t.map(({entity:t,type:n},a)=>{let s,d,c;return n===l.EntityType.collection&&(d=`${E}/collections/${t.slug}`,s=(0,i.getTranslation)(t.labels.plural,y),c=`nav-${t.slug}`),n===l.EntityType.global&&(d=`${E}/globals/${t.slug}`,s=(0,i.getTranslation)(t.label,y),c=`nav-global-${t.slug}`),r.default.createElement(o.NavLink,{activeClassName:"active",className:"nav__link",id:c,key:a,tabIndex:e?void 0:-1,to:d},r.default.createElement("span",{className:"nav__link-icon"},r.default.createElement(u.default,{direction:"right"})),r.default.createElement("span",{className:"nav__link-label"},s))}))),Array.isArray(w)&&w.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("div",{className:"nav__controls"},r.default.createElement(p.default,{tabIndex:e?void 0:-1})))),r.default.createElement("div",{className:"nav__header"},r.default.createElement("div",{className:"nav__header-content"},r.default.createElement("button",{className:"nav__mobile-close",onClick:()=>{n(!1)},tabIndex:e?void 0:-1,type:"button"},r.default.createElement(f.Hamburger,{isActive:!0})))))},y=()=>{let{admin:{components:{Nav:e}={Nav:void 0}}={}}=(0,d.useConfig)();return r.default.createElement(c.default,{CustomComponent:e,DefaultComponent:b})}},84998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=u(n(56650)),o=u(n(68410)),i=n(71849),l=n(96612);function u(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(42556);let d="nav-group",c=({children:e,label:t})=>{let[n,u]=(0,r.useState)(!0),[s,c]=(0,r.useState)(!1),{getPreference:f,setPreference:p}=(0,i.usePreferences)(),{navOpen:m}=(0,l.useNav)(),h=`collapsed-${t}-groups`;if((0,r.useEffect)(()=>{if(t){let e=async()=>{let e=await f(h)||[];u(-1!==e.indexOf(t))};e()}},[f,t,h]),t){let i=async()=>{c(!0);let e=await f(h)||[];n?e=e.filter(e=>t!==e):e.push(t),p(h,e),u(!n)};return r.default.createElement("div",{className:[`${d}`,`${t}`,n&&`${d}--collapsed`].filter(Boolean).join(" "),id:`nav-group-${t}`},r.default.createElement("button",{className:[`${d}__toggle`,`${d}__toggle--${n?"collapsed":"open"}`].filter(Boolean).join(" "),onClick:i,tabIndex:m?0:-1,type:"button"},r.default.createElement("div",{className:`${d}__label`},t),r.default.createElement("div",{className:`${d}__indicator`},r.default.createElement(o.default,{className:`${d}__indicator`,direction:n?void 0:"up"}))),r.default.createElement(a.default,{duration:s?200:0,height:n?0:"auto"},r.default.createElement("div",{className:`${d}__content`},e)))}return r.default.createElement(r.default.Fragment,null,e)}},35511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(96540)),a=o(n(68410));function o(e){return e&&e.__esModule?e:{default:e}}n(70045);let i="clickable-arrow",l=e=>{let{direction:t="right",isDisabled:n=!1,updatePage:o}=e,l=[i,n&&`${i}--is-disabled`,t&&`${i}--${t}`].filter(Boolean).join(" ");return r.default.createElement("button",{className:l,disabled:n,onClick:n?void 0:o,type:"button"},r.default.createElement(a.default,null))}},13769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a="paginator__page",o=({isCurrent:e,isFirstPage:t=!1,isLastPage:n=!1,page:o=1,updatePage:i})=>{let l=[a,e&&`${a}--is-current`,t&&`${a}--is-first-page`,n&&`${a}--is-last-page`].filter(Boolean).join(" ");return r.default.createElement("button",{className:l,onClick:()=>i(o),type:"button"},o)}},67213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("span",{className:"paginator__separator"},"—")},42281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=d(n(55373)),a=d(n(96540)),o=n(30876),i=n(7087),l=d(n(35511)),u=d(n(13769)),s=d(n(67213));function d(e){return e&&e.__esModule?e:{default:e}}n(65885);let c={ClickableArrow:l.default,Page:u.default,Separator:s.default},f=e=>{let t=(0,o.useHistory)(),n=(0,i.useSearchParams)(),{disableHistoryChange:l=!1,hasNextPage:s=!1,hasPrevPage:d=!1,nextPage:f=null,numberOfNeighbors:p=1,onChange:m,page:h,prevPage:g=null,totalPages:v=null}=e;if(!v||v<=1)return null;let b=e=>{if(!l){let a={...n};a.page=e,t.push({search:r.default.stringify(a,{addQueryPrefix:!0})})}"function"==typeof m&&m(e)},y=Array.from({length:v},(e,t)=>t+1),w=h-1-p;w<=0&&(w=0);let x=h-1+p+1,k=y.slice(w,x);return h-p-1>=2&&k.unshift({type:"Separator"}),h>p+1&&k.unshift({props:{isFirstPage:!0,page:1,updatePage:b},type:"Page"}),h+p+1b(f)},type:"ClickableArrow"}),k.unshift({props:{direction:"left",isDisabled:!d,updatePage:()=>b(g)},type:"ClickableArrow"}),a.default.createElement("div",{className:"paginator"},k.map((e,t)=>{if("number"==typeof e)return a.default.createElement(u.default,{isCurrent:h===e,key:t,page:e,updatePage:b});let n=c[e.type];return a.default.createElement(n,{key:t,...e.props})}))}},53150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=f(n(55373)),a=f(n(96540)),o=n(43992),i=n(30876),l=n(91273),u=f(n(68410)),s=n(7087),d=f(n(12748)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96161));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(29690);let m="per-page",h=l.defaults.admin.pagination.limits,g=({handleChange:e,limit:t,limits:n=h,modifySearchParams:l=!0,resetPage:f=!1})=>{let p=(0,s.useSearchParams)(),g=(0,i.useHistory)(),{t:v}=(0,o.useTranslation)("general");return a.default.createElement("div",{className:m},a.default.createElement(d.default,{button:a.default.createElement("div",{className:`${m}__base-button`},a.default.createElement("span",null,v("perPage",{limit:t})),"\xa0",a.default.createElement(u.default,{className:`${m}__icon`})),horizontalAlign:"right",render:({close:o})=>a.default.createElement(c.ButtonGroup,null,n.map((n,i)=>a.default.createElement(c.Button,{className:[`${m}__button`,n===Number(t)&&`${m}__button-active`].filter(Boolean).join(" "),key:i,onClick:()=>{o(),e&&e(n),l&&g.replace({search:r.default.stringify({...p,limit:n,page:f?1:p.page},{addQueryPrefix:!0})})}},n===Number(t)&&a.default.createElement("div",{className:`${m}__chevron`},a.default.createElement(u.default,{direction:"right"})),"\xa0",a.default.createElement("span",null,n)))),size:"small"}))}},36669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(30876),o=n(24764);n(91627);let i="pill",l=e=>{let{id:t,className:n}=e,{attributes:a,isDragging:l,listeners:s,setNodeRef:d,transform:c}=(0,o.useDraggableSortable)({id:t});return r.default.createElement(u,{...e,className:[l&&`${i}--is-dragging`,n].filter(Boolean).join(" "),elementProps:{...s,...a,ref:d,style:{transform:c}}})},u=e=>{let{alignIcon:t="right","aria-checked":n,"aria-controls":o,"aria-expanded":l,"aria-label":u,children:s,className:d,draggable:c,elementProps:f,icon:p,onClick:m,pillStyle:h="light",rounded:g,to:v}=e,b=[i,`${i}--style-${h}`,d&&d,v&&`${i}--has-link`,(v||m)&&`${i}--has-action`,p&&`${i}--has-icon`,p&&`${i}--align-icon-${t}`,c&&`${i}--draggable`,g&&`${i}--rounded`].filter(Boolean).join(" "),y="div";return m&&!v&&(y="button"),v&&(y=a.Link),r.default.createElement(y,{...f,"aria-checked":n,"aria-controls":o,"aria-expanded":l,"aria-label":u,className:b,onClick:m,to:v||void 0,type:"button"===y?"button":void 0},p&&"left"===t&&r.default.createElement("span",{className:`${i}__icon`},p),r.default.createElement("span",{className:`${i}__label`},s),p&&"right"===t&&r.default.createElement("span",{className:`${i}__icon`},p))},s=e=>{let{draggable:t}=e;return t?r.default.createElement(l,e):r.default.createElement(u,e)}},96161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ButtonGroup:function(){return l},Button:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(30876);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n(81185);let i="popup-button-list",l=({buttonSize:e="default",children:t,className:n,textAlign:a="left"})=>{let o=[i,n,`${i}__text-align--${a}`,`${i}__button-size--${e}`].filter(Boolean).join(" ");return r.createElement("div",{className:o},t)},u=({id:e,active:t,children:n,className:o,onClick:l,to:u})=>{let s=[`${i}__button`,t&&`${i}__button--selected`,o].filter(Boolean).join(" ");return u?r.createElement(a.Link,{className:s,id:e,onClick:()=>{l&&l()},to:u},n):l?r.createElement("button",{className:s,id:e,onClick:()=>{l&&l()},type:"button"},n):r.createElement("div",{className:s,id:e},n)}},33267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PopupTrigger",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(95073);let a="popup-button",o=e=>{let{active:t,button:n,buttonType:o,className:i,setActive:l}=e,u=[a,i,`${a}--${o}`].filter(Boolean).join(" "),s=()=>{l(!t)};return"none"===o?null:"custom"===o?r.default.createElement("div",{className:u,onClick:s,onKeyDown:e=>{"Enter"===e.key&&s()},role:"button",tabIndex:0},n):r.default.createElement("button",{className:u,onClick:()=>l(!t),tabIndex:0,type:"button"},n)}},12748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=n(54701),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=function(e){return e&&e.__esModule?e:{default:e}}(n(85541)),i=n(33267);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}n(38836);let u="popup",s=e=>{let{boundingRef:t,button:n,buttonClassName:l,buttonType:s="default",caret:d=!0,children:c,className:f,forceOpen:p,horizontalAlign:m="left",initActive:h=!1,onToggleOpen:g,render:v,showOnHover:b=!1,showScrollbar:y=!1,size:w="medium",verticalAlign:x="top"}=e,{height:k,width:P}=(0,r.useWindowInfo)(),[E,A]=(0,o.default)({root:t?.current||null,rootMargin:"-100px 0px 0px 0px",threshold:1}),D=(0,a.useRef)(null),[O,C]=(0,a.useState)(h),[M,S]=(0,a.useState)(x),[j,T]=(0,a.useState)(m),_=(0,a.useCallback)(({horizontal:e=!1,vertical:n=!1})=>{if(D.current){let r=D.current.getBoundingClientRect(),{bottom:a,left:o,right:i,top:l}=r,u=100,s=document.documentElement.clientWidth,d=document.documentElement.clientHeight,c=0;t?.current&&({bottom:d,left:c,right:s,top:u}=t.current.getBoundingClientRect()),e&&(i>s&&o>c?T("right"):od&&l>u&&S("top"))}},[t]),N=(0,a.useCallback)(e=>{D.current.contains(e.target)||C(!1)},[D]);(0,a.useEffect)(()=>{_({horizontal:!0})},[A,_,P]),(0,a.useEffect)(()=>{_({vertical:!0})},[A,_,k]),(0,a.useEffect)(()=>("function"==typeof g&&g(O),O?document.addEventListener("mousedown",N):document.removeEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}),[O,N,g]),(0,a.useEffect)(()=>{C(p)},[p]);let L=[u,f,`${u}--size-${w}`,`${u}--v-align-${M}`,`${u}--h-align-${j}`,O&&`${u}--active`,y&&`${u}--show-scrollbar`].filter(Boolean).join(" ");return a.default.createElement("div",{className:L},a.default.createElement("div",{className:`${u}__trigger-wrap`},b?a.default.createElement("div",{className:`${u}__on-hover-watch`,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1)},a.default.createElement(i.PopupTrigger,{active:O,button:n,buttonType:s,className:l,setActive:C})):a.default.createElement(i.PopupTrigger,{active:O,button:n,buttonType:s,className:l,setActive:C})),a.default.createElement("div",{className:`${u}__content`,ref:D},a.default.createElement("div",{className:`${u}__hide-scrollbar`,ref:E},a.default.createElement("div",{className:`${u}__scroll-container`},a.default.createElement("div",{className:`${u}__scroll-content`},v&&v({close:()=>C(!1)}),c&&c))),d&&a.default.createElement("div",{className:`${u}__caret`})))}},45970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(77399),i=n(7695),l=n(86919),u=n(50444),s=n(62519),d=f(n(45649)),c=f(n(55182));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}let m=({disabled:e,label:t,preview:n})=>r.default.createElement(c.default,{buttonStyle:"secondary",className:"preview-btn",disabled:e,onClick:n,size:"small"},t),h=({CustomComponent:e,generatePreviewURL:t})=>{let{id:n,collection:c,global:f}=(0,u.useDocumentInfo)(),[p,h]=(0,r.useState)(!1),{code:g}=(0,s.useLocale)(),{token:v}=(0,i.useAuth)(),{routes:{api:b},serverURL:y}=(0,l.useConfig)(),{t:w}=(0,a.useTranslation)("version"),x=(0,r.useRef)(!1),k=(0,r.useCallback)(async()=>{if(t&&!x.current){x.current=!0;try{h(!0);let e=`${y}${b}`;c&&(e=`${e}/${c.slug}/${n}`),f&&(e=`${e}/globals/${f.slug}`);let r=await fetch(`${e}?draft=true&locale=${g}&fallback-locale=null`).then(e=>e.json()),a=await t(r,{locale:g,token:v});if(!a)throw Error();h(!1),x.current=!1,window.open(a,"_blank")}catch(e){h(!1),x.current=!1,o.toast.error(w("error:previewing"))}}},[y,b,c,f,n,t,g,v,w]);return r.default.createElement(d.default,{CustomComponent:e,DefaultComponent:m,componentProps:{DefaultButton:m,disabled:p||!t,label:p?w("general:loading"):w("preview"),preview:k}})}},59404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(67214));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n(49178);let i="preview-sizes",l=(e,t)=>{if(!t||0===t.length)return e;let n={};return t.forEach(({name:t})=>{e[t]&&(n[t]=e[t])}),n},u=({name:e,active:t,baseURL:n,meta:o,onClick:l,previewSrc:u})=>r.default.createElement("div",{className:[`${i}__sizeOption`,t&&`${i}--selected`].filter(Boolean).join(" "),onClick:"function"==typeof l?l:void 0,onKeyDown:e=>{"function"==typeof l&&"Enter"===e.key&&l()},role:"button",tabIndex:0},r.default.createElement("div",{className:`${i}__image`},r.default.createElement("img",{alt:o.filename,src:u})),r.default.createElement("div",{className:`${i}__sizeMeta`},r.default.createElement("div",{className:`${i}__sizeName`},e),r.default.createElement(a.default,{...o,staticURL:n}))),s=({collection:e,doc:t,imageCacheTag:n})=>{let{upload:{imageSizes:o,staticURL:s}}=e,{sizes:d}=t,[c,f]=(0,r.useState)(()=>l(d,o)),[p,m]=(0,r.useState)(null),h=e=>e.filename?e.url?`${e.url}${n?`?${n}`:""}`:void 0:null;(0,r.useEffect)(()=>{f(l(d,o))},[d,o,n]);let g=p?h(t.sizes[p]):h(t),v=(0,r.useMemo)(()=>({filename:t.filename,filesize:t.filesize,height:t.height,mimeType:t.mimeType,width:t.width}),[t]),b="Original";return r.default.createElement("div",{className:i},r.default.createElement("div",{className:`${i}__imageWrap`},r.default.createElement("div",{className:`${i}__meta`},r.default.createElement("div",{className:`${i}__sizeName`},p||b),r.default.createElement(a.default,{...p?c[p]:v,staticURL:s})),r.default.createElement("img",{alt:t.filename,className:`${i}__preview`,src:g})),r.default.createElement("div",{className:`${i}__listWrap`},r.default.createElement("div",{className:`${i}__list`},r.default.createElement(u,{active:!p,baseURL:s,meta:v,name:b,onClick:()=>m(null),previewSrc:h(t)}),Object.entries(c).map(([e,t])=>{let n=p===e,a=h(t);return a?r.default.createElement(u,{active:n,baseURL:s,key:e,meta:t,name:e,onClick:()=>m(e),previewSrc:a}):null}))))}},37481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Publish",{enumerable:!0,get:function(){return h}});let r=f(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(66461),l=f(n(16488)),u=n(86919),s=n(50444),d=n(62519),c=f(n(45649));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}let m=({id:e,canPublish:t,disabled:n,label:r,publish:o})=>t?a.default.createElement(l.default,{buttonId:e,disabled:n,onClick:o,size:"small",type:"button"},r):null,h=({CustomComponent:e})=>{let{code:t}=(0,d.useLocale)(),{id:n,collection:l,global:f,publishedDoc:p,unpublishedVersions:h}=(0,s.useDocumentInfo)(),[g,v]=a.default.useState(!1),{getData:b,submit:y}=(0,i.useForm)(),w=(0,i.useFormModified)(),{routes:{api:x},serverURL:k}=(0,u.useConfig)(),{t:P}=(0,o.useTranslation)("version"),E=h?.totalDocs>0,A=(0,a.useCallback)(()=>{y({overrides:{_status:"published"}})},[y]);return a.default.useEffect(()=>{let e=async()=>{let e;let a="update";if(f?e=`/globals/${f.slug}/access`:l&&(n||(a="create"),e=`/${l.slug}/access${n?`/${n}`:""}`),e){let n=b(),o=await fetch(`${k}${x}${e}?${r.default.stringify({locale:t||void 0})}`,{body:JSON.stringify({...n,_status:"published"}),credentials:"include",headers:{"Content-Type":"application/json"},method:"post"}),i=await o.json(),l=!!i?.[a]?.permission;v(l)}else v(!0)};e()},[x,t,l,b,f,n,k]),a.default.createElement(c.default,{CustomComponent:e,DefaultComponent:m,componentProps:{id:"action-save",DefaultButton:m,canPublish:g,disabled:!(w||E||!p),label:P("publishChanges"),publish:A}})}},53010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(77399),l=n(3994),u=n(60146),s=h(n(36515)),d=n(7695),c=n(86919),f=n(49041),p=h(n(55182)),m=h(n(36669));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(450);let v="publish-many",b=e=>{let{collection:{labels:{plural:t},slug:n,versions:h}={},resetParams:g}=e,{routes:{api:b},serverURL:y}=(0,c.useConfig)(),{permissions:w}=(0,d.useAuth)(),{toggleModal:x}=(0,r.useModal)(),{i18n:k,t:P}=(0,o.useTranslation)("version"),{count:E,getQueryParams:A,selectAll:D}=(0,f.useSelection)(),[O,C]=(0,a.useState)(!1),M=w?.collections?.[n],S=M?.update?.permission,j=`publish-${n}`,T=(0,a.useCallback)(()=>{i.toast.error(P("error:unknown"))},[P]),_=(0,a.useCallback)(()=>{C(!0),u.requests.patch(`${y}${b}/${n}${A({_status:{not_equals:"published"}})}`,{body:JSON.stringify({_status:"published"}),headers:{"Accept-Language":k.language,"Content-Type":"application/json"}}).then(async e=>{try{let t=await e.json();if(x(j),e.status<400)return i.toast.success(P("general:updatedSuccessfully")),g({page:D?1:void 0}),null;return t.errors?t.errors.forEach(e=>i.toast.error(e.message)):T(),!1}catch(e){return T()}})},[T,b,A,k.language,j,g,D,y,n,P,x]);return h?.drafts&&D!==f.SelectAllStatus.None&&S?a.default.createElement(a.default.Fragment,null,a.default.createElement(m.default,{className:`${v}__toggle`,onClick:()=>{C(!1),x(j)}},P("publish")),a.default.createElement(r.Modal,{className:v,slug:j},a.default.createElement(s.default,{className:`${v}__template`},a.default.createElement("h1",null,P("confirmPublish")),a.default.createElement("p",null,P("aboutToPublishSelection",{label:(0,l.getTranslation)(t,k)})),a.default.createElement(p.default,{buttonStyle:"secondary",id:"confirm-cancel",onClick:O?void 0:()=>x(j),type:"button"},P("general:cancel")),a.default.createElement(p.default,{id:"confirm-publish",onClick:O?void 0:_},O?P("publishing"):P("general:confirm"))))):null}},70116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClearIndicator",{enumerable:!0,get:function(){return l}});let r=o(n(96540)),a=o(n(88481));function o(e){return e&&e.__esModule?e:{default:e}}n(41662);let i="clear-indicator",l=e=>{let{innerProps:{ref:t,...n}}=e;return r.default.createElement("div",{className:i,ref:t,...n},r.default.createElement(a.default,{className:`${i}__icon`}))}},1671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Control",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(46005),o=e=>{let{children:t,innerProps:n,selectProps:{customProps:{disableKeyDown:o,disableMouseDown:i}={}}={}}=e;return r.default.createElement(a.components.Control,{...e,innerProps:{...n,onKeyDown:e=>{if(o){e.stopPropagation();let t=new CustomEvent("bypassKeyDown",{detail:e});document.dispatchEvent(t)}},onMouseDown:e=>{i||n.onMouseDown(e)}}},t)}},84564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MultiValue",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(46005),o=n(24764);n(23146);let i="multi-value",l=e=>{let{className:t,data:{value:n},innerProps:l,isDisabled:u,selectProps:{customProps:{disableMouseDown:s}={},isSortable:d}={}}=e,{attributes:c,isDragging:f,listeners:p,setNodeRef:m,transform:h}=(0,o.useDraggableSortable)({id:n.toString(),disabled:!d}),g=[i,t,!u&&"draggable",f&&`${i}--is-dragging`].filter(Boolean).join(" ");return r.default.createElement(a.components.MultiValue,{...e,className:g,innerProps:{...l,...c,...p,onMouseDown:e=>{s||e.stopPropagation()},ref:m,style:{transform:h}}})}},75054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MultiValueLabel",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(46005);n(58482);let o="multi-value-label",i=e=>{let{selectProps:{customProps:{draggableProps:t}={}}={}}=e;return r.default.createElement("div",{className:o},r.default.createElement(a.components.MultiValueLabel,{...e,innerProps:{className:`${o}__text`,...t||{}}}))}},87612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MultiValueRemove",{enumerable:!0,get:function(){return s}});let r=l(n(96540)),a=n(43992),o=l(n(88481)),i=l(n(77665));function l(e){return e&&e.__esModule?e:{default:e}}n(35630);let u="multi-value-remove",s=e=>{let{innerProps:{className:t,onClick:n,onTouchEnd:l}}=e,[s,d]=r.default.useState(!1),{t:c}=(0,a.useTranslation)("general");return r.default.createElement("button",{"aria-label":c("remove"),className:[u,t].filter(Boolean).join(" "),onClick:e=>{d(!1),n(e)},onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onTouchEnd:l,type:"button"},r.default.createElement(i.default,{className:`${u}__tooltip`,show:s},c("remove")),r.default.createElement(o.default,{className:`${u}__icon`}))}},48363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SingleValue",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(46005),o=e=>{let{children:t,className:n}=e;return r.default.createElement(a.components.SingleValue,{...e,className:["react-select--single-value",n].filter(Boolean).join(" ")},t)}},87414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ValueContainer",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(46005);n(41372);let o=e=>{let{selectProps:{customProps:t}={}}=e;return r.default.createElement("div",{className:"value-container",ref:t?.droppableRef},r.default.createElement(a.components.ValueContainer,e))}},78877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});let r=n(43627),a=b(n(96540)),o=n(43992),i=b(n(46005)),l=b(n(65363)),u=n(3994),s=b(n(68410)),d=b(n(53821)),c=n(70116),f=n(1671),p=n(84564),m=n(75054),h=n(87612),g=n(48363),v=n(87414);function b(e){return e&&e.__esModule?e:{default:e}}n(48889);let y=e=>({label:e,value:e}),w=e=>{let{i18n:t,t:n}=(0,o.useTranslation)(),[r,d]=a.default.useState(""),{className:b,components:w,customProps:x,disabled:k=!1,filterOption:P,isClearable:E=!0,isCreatable:A,isLoading:D,isSearchable:O=!0,noOptionsMessage:C,numberOnly:M=!1,onChange:S,onMenuOpen:j,options:T,placeholder:_=n("general:selectValue"),showError:N,value:L}=e,R=[b,"react-select",N&&"react-select--error"].filter(Boolean).join(" ");return A?a.default.createElement(l.default,{captureMenuScroll:!0,isLoading:D,placeholder:(0,u.getTranslation)(_,t),...e,className:R,classNamePrefix:"rs",components:{ClearIndicator:c.ClearIndicator,Control:f.Control,DropdownIndicator:s.default,MultiValue:p.MultiValue,MultiValueLabel:m.MultiValueLabel,MultiValueRemove:h.MultiValueRemove,SingleValue:g.SingleValue,ValueContainer:v.ValueContainer,...w},filterOption:P,inputValue:r,isClearable:E,isDisabled:k,isSearchable:O,menuPlacement:"auto",noOptionsMessage:C,onChange:S,onInputChange:e=>d(e),onKeyDown:e=>{if(!0===M){let t=!/\D/.test(e.key),n=["Tab","Escape","Backspace","Enter","ArrowRight","ArrowLeft","ArrowUp","ArrowDown"].includes(e.key);if(!t&&!n){e.preventDefault();return}}if(L&&r&&""!==r.trim()){if(P&&!P(null,r))return;switch(e.key){case"Enter":case"Tab":S([...L,y(r)]),d(""),e.preventDefault()}}},onMenuOpen:j,options:T,value:L}):a.default.createElement(i.default,{captureMenuScroll:!0,customProps:x,isLoading:D,placeholder:(0,u.getTranslation)(_,t),...e,className:R,classNamePrefix:"rs",components:{ClearIndicator:c.ClearIndicator,Control:f.Control,DropdownIndicator:s.default,MultiValue:p.MultiValue,MultiValueLabel:m.MultiValueLabel,MultiValueRemove:h.MultiValueRemove,SingleValue:g.SingleValue,ValueContainer:v.ValueContainer,...w},filterOption:P,isClearable:E,isDisabled:k,isSearchable:O,menuPlacement:"auto",noOptionsMessage:C,onChange:S,onMenuOpen:j,options:T,value:L})},x=e=>{let{onChange:t,value:n}=e,o=[];return n&&(o=Array.isArray(n)?n.map(e=>e?.id??`${e?.value}`):[n?.id||`${n?.value}`]),a.default.createElement(d.default,{className:"react-select-container",ids:o,onDragEnd:({moveFromIndex:e,moveToIndex:a})=>{let o=n;n&&Array.isArray(n)&&(o=(0,r.arrayMove)(n,e,a)),t(o)}},a.default.createElement(w,e))},k=e=>{let{isMulti:t,isSortable:n}=e;return t&&n?a.default.createElement(x,e):a.default.createElement(w,e)}},11600:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=i(n(63478)),o=i(n(10803));function i(e){return e&&e.__esModule?e:{default:e}}n(70016);let l="render-title",u=e=>{let{className:t,collection:n,data:i,element:u="h1",fallback:s="[untitled]",global:d,title:c}=e,f=(0,a.default)({collection:n,global:d}),p=f;p||(p=i?.id),p||(p=s),p=c||p;let m=p===i?.id;return r.default.createElement(u,{className:[t,l,m&&`${l}--has-id`].filter(Boolean).join(" "),title:p},m?r.default.createElement(o.default,{className:`${l}__id`,id:i?.id}):p)}},79363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Save",{enumerable:!0,get:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=d(n(64172)),i=n(66461),l=d(n(16488)),u=n(95702),s=d(n(45649));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let f=({label:e,save:t})=>{let n=(0,r.useRef)(null),a=(0,u.useEditDepth)();return(0,o.default)({cmdCtrlKey:!0,editDepth:a,keyCodes:["s"]},e=>{e.preventDefault(),e.stopPropagation(),n?.current&&n.current.click()}),r.default.createElement(l.default,{buttonId:"action-save",onClick:t,ref:n,type:"button",size:"small"},e)},p=({CustomComponent:e})=>{let{t}=(0,a.useTranslation)("general"),{submit:n}=(0,i.useForm)();return r.default.createElement(s.default,{CustomComponent:e,DefaultComponent:f,componentProps:{DefaultButton:f,label:t("save"),save:n}})}},8070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SaveDraft",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=p(n(64172)),i=n(66461),l=p(n(16488)),u=n(86919),s=n(50444),d=n(95702),c=n(62519),f=p(n(45649));function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}let h=({disabled:e,label:t,saveDraft:n})=>{let a=(0,r.useRef)(null),i=(0,d.useEditDepth)();return(0,o.default)({cmdCtrlKey:!0,editDepth:i,keyCodes:["s"]},t=>{!e&&(t.preventDefault(),t.stopPropagation(),a?.current&&a.current.click())}),r.default.createElement(l.default,{buttonId:"action-save-draft",buttonStyle:"secondary",className:"save-draft",disabled:e,onClick:n,ref:a,size:"small",type:"button"},t)},g=({CustomComponent:e})=>{let{routes:{api:t},serverURL:n}=(0,u.useConfig)(),{submit:o}=(0,i.useForm)(),{id:l,collection:d,global:p}=(0,s.useDocumentInfo)(),m=(0,i.useFormModified)(),{code:g}=(0,c.useLocale)(),{t:v}=(0,a.useTranslation)("version"),b=(0,r.useCallback)(async()=>{let e;let r=`?locale=${g}&depth=0&fallback-locale=null&draft=true`,a="POST";d&&(e=`${n}${t}/${d.slug}${l?`/${l}`:""}${r}`,l&&(a="PATCH")),p&&(e=`${n}${t}/globals/${p.slug}${r}`),await o({action:e,method:a,overrides:{_status:"draft"},skipValidation:!0})},[o,d,p,n,t,g,l]);return r.default.createElement(f.default,{CustomComponent:e,DefaultComponent:h,componentProps:{DefaultButton:h,disabled:!m,label:v("saveDraft"),saveDraft:b}})}},64476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=c(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=n(3994),u=c(n(36361)),s=c(n(20287)),d=n(7087);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(52678);let p="search-filter",m=e=>{let{fieldLabel:t="ID",fieldName:n="id",handleChange:c,listSearchableFields:f,modifySearchQuery:m=!0}=e,h=(0,d.useSearchParams)(),g=(0,i.useHistory)(),{i18n:v,t:b}=(0,o.useTranslation)("general"),[y,w]=(0,a.useState)("string"==typeof h?.search?h?.search:""),[x,k]=(0,a.useState)(""),P=(0,a.useRef)(b("searchBy",{label:(0,l.getTranslation)(t,v)})),E=(0,u.default)(y,300);return(0,a.useEffect)(()=>{E!==x&&(c&&c(E),m&&g.replace({search:r.default.stringify({...h,page:1,search:E||void 0})}),k(E))},[E,x,g,n,h,c,m,f]),(0,a.useEffect)(()=>{f?.length>0?P.current=f.reduce((e,t,n)=>0===n?`${b("searchBy",{label:(0,l.getTranslation)(t.label||t.name,v)})}`:n===f.length-1?`${e} ${b("or")} ${(0,l.getTranslation)(t.label||t.name,v)}`:`${e}, ${(0,l.getTranslation)(t.label||t.name,v)}`,""):P.current=b("searchBy",{label:(0,l.getTranslation)(t,v)})},[b,f,v,t]),a.default.createElement("div",{className:p},a.default.createElement("input",{className:`${p}__input`,onChange:e=>w(e.target.value),placeholder:P.current,type:"text",value:y||""}),a.default.createElement(s.default,null))}},7992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ShimmerEffect:function(){return i},StaggeredShimmers:function(){return l}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(10075);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n(24756);let i=({animationDelay:e="0ms",height:t="60px",width:n="100%"})=>r.createElement("div",{className:"shimmer-effect",style:{height:"number"==typeof t?`${t}px`:t,width:"number"==typeof n?`${n}px`:n}},r.createElement("div",{className:"shimmer-effect__shine",style:{animationDelay:e}})),l=({className:e,count:t,height:n,renderDelay:o=500,shimmerDelay:l=25,shimmerItemClassName:u,width:s})=>{let d="number"==typeof l?`${l}ms`:l,[c]=(0,a.useDelay)(o,!0);return c?r.createElement("div",{className:e},[...Array(t)].map((e,t)=>r.createElement("div",{className:u,key:t},r.createElement(i,{animationDelay:`calc(${t} * ${d})`,height:n,width:s})))):null}},16e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=d(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=n(3994),u=d(n(68410)),s=n(7087);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(73670);let f="sort-column",p=e=>{let{name:t,disable:n=!1,label:d}=e,c=(0,s.useSearchParams)(),p=(0,i.useHistory)(),{i18n:m,t:h}=(0,o.useTranslation)("general"),{sort:g}=c,v=`-${t}`,b=[`${f}__asc`];g===t&&b.push(`${f}--active`);let y=[`${f}__desc`];g===v&&y.push(`${f}--active`);let w=(0,a.useCallback)(e=>{p.push({search:r.default.stringify({...c,sort:e},{addQueryPrefix:!0})})},[c,p]);return a.default.createElement("div",{className:f},a.default.createElement("span",{className:`${f}__label`},(0,l.getTranslation)(d,m)),!n&&a.default.createElement("div",{className:`${f}__buttons`},a.default.createElement("button",{"aria-label":h("sortByLabelDirection",{direction:h("ascending"),label:(0,l.getTranslation)(d,m)}),className:[...b,`${f}__button`].filter(Boolean).join(" "),onClick:()=>w(t),type:"button"},a.default.createElement(u.default,{direction:"up"})),a.default.createElement("button",{"aria-label":h("sortByLabelDirection",{direction:h("descending"),label:(0,l.getTranslation)(d,m)}),className:[...y,`${f}__button`].filter(Boolean).join(" "),onClick:()=>w(v),type:"button"},a.default.createElement(u.default,null))))}},28334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=f(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=n(49472),u=f(n(54249)),s=n(3994),d=n(7087),c=f(n(78877));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(46310);let m="sort-complex",h=e=>{let{collection:t,handleChange:n,modifySearchQuery:f=!0}=e,p=(0,i.useHistory)(),h=(0,d.useSearchParams)(),{i18n:g,t:v}=(0,o.useTranslation)("general"),[b,y]=(0,a.useState)(),[w]=(0,a.useState)(()=>t.fields.reduce((e,t)=>(0,l.fieldAffectsData)(t)&&u.default.indexOf(t.type)>-1?[...e,{label:(0,s.getTranslation)(t.label||t.name,g),value:t.name}]:e,[])),[x,k]=(0,a.useState)(w[0]),[P]=(0,a.useState)(()=>({label:v("descending"),value:"-"})),[E,A]=(0,a.useState)(P);return(0,a.useEffect)(()=>{if(x?.value){let e=`${E.value}${x.value}`;n&&n(e),h.sort!==e&&f&&p.replace({search:r.default.stringify({...h,sort:e},{addQueryPrefix:!0})})}},[p,h,x,E,f,n]),(0,a.useEffect)(()=>{y([{label:v("ascending"),value:""},{label:v("descending"),value:"-"}])},[g,v]),a.default.createElement("div",{className:m},a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{className:`${m}__wrap`},a.default.createElement("div",{className:`${m}__select`},a.default.createElement("div",{className:`${m}__label`},v("columnToSort")),a.default.createElement(c.default,{onChange:k,options:w,value:x})),a.default.createElement("div",{className:`${m}__select`},a.default.createElement("div",{className:`${m}__label`},v("order")),a.default.createElement(c.default,{onChange:e=>{A(e||P)},options:b,value:E})))))}},48852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(77399),l=n(26835),u=n(60146),s=n(66461),d=n(86919),c=n(50444),f=n(62519),p=function(e){return e&&e.__esModule?e:{default:e}}(n(55182));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(17602);let h="status",g=()=>{let e;let{id:t,collection:n,docPermissions:m,getVersions:g,global:v,publishedDoc:b,unpublishedVersions:y}=(0,c.useDocumentInfo)(),{toggleModal:w}=(0,r.useModal)(),{routes:{api:x},serverURL:k}=(0,d.useConfig)(),[P,E]=(0,a.useState)(!1),{reset:A}=(0,s.useForm)(),{code:D}=(0,f.useLocale)(),{i18n:O,t:C}=(0,o.useTranslation)("version"),M=`confirm-un-publish-${t}`,S=`confirm-revert-${t}`;y?.docs?.length>0&&b?e="changed":b?b&&y?.docs?.length<=1&&(e="published"):e="draft";let j=(0,a.useCallback)(async e=>{let r,a,o;E(!0),"unpublish"===e&&(o={_status:"draft"}),"revert"===e&&(o=b),n&&(r=`${k}${x}/${n.slug}/${t}?locale=${D}&fallback-locale=null`,a="patch"),v&&(r=`${k}${x}/globals/${v.slug}?locale=${D}&fallback-locale=null`,a="post");let l=await u.requests[a](r,{body:JSON.stringify(o),headers:{"Accept-Language":O.language,"Content-Type":"application/json"}});if(200===l.status){let e,t;let r=await l.json();v&&(e=r.result,t=v.fields),n&&(e=r.doc,t=n.fields),A(t,e),i.toast.success(r.message),g()}else i.toast.error(C("error:unPublishingDocument"));E(!1),"revert"===e&&w(S),"unpublish"===e&&w(M)},[n,v,b,k,x,t,O,D,A,g,C,w,S,M]),T=m?.update?.permission;return e?a.default.createElement("div",{className:h,title:`${C("status")}: ${C(e)}`},a.default.createElement("div",{className:`${h}__value-wrap`},a.default.createElement("span",{className:`${h}__label`},C("status"),":\xa0"),a.default.createElement("span",{className:`${h}__value`},C(e)),T&&"published"===e&&a.default.createElement(a.default.Fragment,null,"\xa0—\xa0",a.default.createElement(p.default,{buttonStyle:"none",className:`${h}__action`,onClick:()=>w(M)},C("unpublish")),a.default.createElement(r.Modal,{className:`${h}__modal`,slug:M},a.default.createElement(l.MinimalTemplate,{className:`${h}__modal-template`},a.default.createElement("h1",null,C("confirmUnpublish")),a.default.createElement("p",null,C("aboutToUnpublish")),a.default.createElement(p.default,{buttonStyle:"secondary",onClick:P?void 0:()=>w(M),type:"button"},C("general:cancel")),a.default.createElement(p.default,{onClick:P?void 0:()=>j("unpublish")},C(P?"unpublishing":"general:confirm"))))),T&&"changed"===e&&a.default.createElement(a.default.Fragment,null,"\xa0—\xa0",a.default.createElement(p.default,{buttonStyle:"none",className:`${h}__action`,id:"action-revert-to-published",onClick:()=>w(S)},C("revertToPublished")),a.default.createElement(r.Modal,{className:`${h}__modal`,slug:S},a.default.createElement(l.MinimalTemplate,{className:`${h}__modal-template`},a.default.createElement("h1",null,C("confirmRevertToSaved")),a.default.createElement("p",null,C("aboutToRevertToPublished")),a.default.createElement(p.default,{buttonStyle:"secondary",onClick:P?void 0:()=>w(S),type:"button"},C("general:cancel")),a.default.createElement(p.default,{id:"action-revert-to-published-confirm",onClick:P?void 0:()=>j("revert")},C(P?"reverting":"general:confirm"))))))):null}},83949:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StepNavProvider:function(){return f},useStepNav:function(){return p},default:function(){return m}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(76954),l=n(3994),u=n(86919);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(85725);let d="step-nav",c=(0,r.createContext)({}),f=({children:e})=>{let[t,n]=(0,r.useState)([]);return r.default.createElement(c.Provider,{value:{setStepNav:n,stepNav:t}},e)},p=()=>(0,r.useContext)(c),m=e=>{let{className:t}=e,{i18n:n}=(0,a.useTranslation)(),{stepNav:s}=p(),c=(0,u.useConfig)(),{routes:{admin:f}}=c;return r.default.createElement(r.Fragment,null,s.length>0?r.default.createElement("nav",{className:[d,t].filter(Boolean).join(" ")},r.default.createElement(o.Link,{className:`${d}__home`,tabIndex:0,to:f},r.default.createElement(i.IconGraphic,null)),r.default.createElement("span",null,"/"),s.map((e,t)=>{let a=(0,l.getTranslation)(e.label,n),i=s.length===t+1,u=i?r.default.createElement("span",{className:`${d}__last`,key:t},a):r.default.createElement(r.Fragment,{key:t},e.url?r.default.createElement(o.Link,{to:e.url},r.default.createElement("span",{key:t},a)):r.default.createElement("span",{key:t},a),r.default.createElement("span",null,"/"));return u})):r.default.createElement("div",{className:[d,t].filter(Boolean).join(" ")},r.default.createElement(i.IconGraphic,null)))}},55146:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Table:function(){return o},default:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(62093);n(56586);let o=({columns:e,data:t})=>{let{columns:n}=(0,a.useTableColumns)(),o=e||n,i=o?.filter(e=>e.active);return i&&0!==i.length?r.default.createElement("div",{className:"table"},r.default.createElement("table",{cellPadding:"0",cellSpacing:"0"},r.default.createElement("thead",null,r.default.createElement("tr",null,i.map((e,t)=>r.default.createElement("th",{id:`heading-${e.accessor}`,key:t},e.components.Heading)))),r.default.createElement("tbody",null,t&&t.map((e,t)=>r.default.createElement("tr",{className:`row-${t+1}`,key:t},o.map((t,n)=>{let{active:a}=t;return a?r.default.createElement("td",{className:`cell-${t.accessor}`,key:n},t.components.renderCell(e,e[t.accessor])):null})))))):r.default.createElement("div",null,"No columns selected")},i=o},32294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=d(n(96540)),a=n(49472),o=d(n(6545)),i=d(n(66646)),l=d(n(55633)),u=d(n(77698)),s=d(n(16e3));function d(e){return e&&e.__esModule?e:{default:e}}let c=({cellProps:e,collection:t,columns:n})=>{let d=(0,o.default)(t.fields,!0).sort((e,t)=>{let r=n.findIndex(t=>t.accessor===e.name),a=n.findIndex(e=>e.accessor===t.name);return -1===r&&-1===a?0:-1===r?1:-1===a?-1:r-a}),c=d.find(e=>n.find(t=>t.accessor===e.name)?.active),f=-1,p=d.map(o=>{let l=n.find(e=>e.accessor===o.name)?.active||!1,u=c?.name===o.name;l&&(f+=1);let d=e?.[f]||{};return{name:o.name,accessor:o.name,active:l,components:{Heading:r.default.createElement(s.default,{disable:"disableSort"in o&&!!o.disableSort||(0,a.fieldIsPresentationalOnly)(o)||void 0,label:o.label||o.name,name:o.name}),renderCell:(e,n)=>r.default.createElement(i.default,{cellData:n,colIndex:f,collection:t,field:o,key:JSON.stringify(n),link:u,rowData:e,...d})},label:o.label}});return e?.[0]?.link!==!1&&p.unshift({name:"",accessor:"_select",active:!0,components:{Heading:r.default.createElement(l.default,null),renderCell:e=>r.default.createElement(u.default,{id:e.id})},label:null}),p}},72791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"columnReducer",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(32294)),a=(e,t)=>{switch(t.type){case"toggle":{let{cellProps:n,collection:a,column:o}=t.payload,i=e.map(e=>e.name===o?{...e,active:!e.active}:e);return(0,r.default)({cellProps:n,collection:a,columns:i})}case"move":{let{cellProps:n,collection:a,fromIndex:o,toIndex:i}=t.payload,l=[...e],[u]=l.splice(o,1);return l.splice(i,0,u),(0,r.default)({cellProps:n,collection:a,columns:l})}case"set":{let{cellProps:e,collection:n,columns:a}=t.payload;return(0,r.default)({cellProps:e,collection:n,columns:a})}default:return e}}},55270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(49472),a=(e,t)=>e.reduce((e,n)=>(0,r.fieldAffectsData)(n)&&n.name===t?e:!(0,r.fieldAffectsData)(n)&&(0,r.fieldHasSubFields)(n)?[...e,...a(n.fields,t)]:"tabs"===n.type?[...e,...n.tabs.reduce((e,n)=>[...e,...(0,r.tabHasName)(n)?[n.name]:a(n.fields,t)],[])]:[...e,n.name],[]),o=(e,t,n)=>{let r=[];if(Array.isArray(n)&&n.length>=1)return n;t&&r.push(t);let o=a(e,t);return(r=r.concat(o)).slice(0,4)}},62093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{TableColumnContext:function(){return c},useTableColumns:function(){return f},TableColumnsProvider:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(71849),o=s(n(43415)),i=s(n(32294)),l=n(72791),u=s(n(55270));function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}let c=(0,r.createContext)({}),f=()=>(0,r.useContext)(c),p=({cellProps:e,children:t,collection:{admin:{defaultColumns:n,useAsTitle:s}},collection:d})=>{let f=`${d.slug}-list`,p=(0,r.useRef)(),m=(0,r.useRef)(!1),{getPreference:h,setPreference:g}=(0,a.usePreferences)(),[v]=(0,r.useState)(()=>(0,o.default)(d)),[b,y]=(0,r.useReducer)(l.columnReducer,{},()=>{let t=(0,u.default)(v,s,n);return(0,i.default)({cellProps:e,collection:d,columns:t.map(e=>({accessor:e,active:!0}))})});(0,r.useEffect)(()=>{let t=async()=>{let t=p.current!==d.slug;if(t){m.current=!1;let t=await h(f);p.current=d.slug;let r=(0,u.default)(v,s,n),a=t?.columns||r;y({payload:{cellProps:e,collection:{...d,fields:(0,o.default)(d)},columns:a.map(e=>"string"==typeof e?{accessor:e,active:!0}:e)},type:"set"}),m.current=!0}};t()},[f,g,b,h,s,n,d,e,v]),(0,r.useEffect)(()=>{if(!m.current)return;let e=b.map(e=>({accessor:e.accessor,active:e.active}));g(f,{columns:e},!0)},[b,f,g,h]);let w=(0,r.useCallback)(t=>{y({payload:{cellProps:e,collection:{...d,fields:(0,o.default)(d)},columns:t.map(e=>({accessor:e,active:!0}))},type:"set"})},[d,e]),x=(0,r.useCallback)(t=>{let{fromIndex:n,toIndex:r}=t;y({payload:{cellProps:e,collection:{...d,fields:(0,o.default)(d)},fromIndex:n,toIndex:r},type:"move"})},[d,e]),k=(0,r.useCallback)(t=>{y({payload:{cellProps:e,collection:{...d,fields:(0,o.default)(d)},column:t},type:"toggle"})},[d,e]);return r.default.createElement(c.Provider,{value:{columns:b,dispatchTableColumns:y,moveColumn:x,setActiveColumns:w,toggleColumn:k}},t)}},58822:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=i(n(78248)),o=i(n(31320));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}n(19970);let u="thumbnail",s=e=>{let{className:t="",collection:n,doc:{filename:i}={},doc:l,fileSrc:s,imageCacheTag:d,size:c}=e,f=n&&l?(0,a.default)(n,l):s,[p,m]=(0,r.useState)(f),h=[u,`${u}--size-${c||"medium"}`,t].join(" ");return(0,r.useEffect)(()=>{f&&m(`${f}${d?`?${d}`:""}`)},[l,n,f,s,d]),r.default.createElement("div",{className:h},p&&r.default.createElement("img",{alt:i,src:p}),!p&&r.default.createElement(o.default,null))}},54528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ThumbnailCard",{enumerable:!0,get:function(){return d}});let r=u(n(96540)),a=n(43992),o=n(63478),i=n(86919),l=u(n(58822));function u(e){return e&&e.__esModule?e:{default:e}}n(86368);let s="thumbnail-card",d=e=>{let{alignLabel:t,className:n,collection:u,doc:d,label:c,onClick:f,thumbnail:p}=e,{i18n:m,t:h}=(0,a.useTranslation)("general"),g=(0,i.useConfig)(),v=[s,n,"function"==typeof f&&`${s}--has-on-click`,t&&`${s}--align-label-${t}`].filter(Boolean).join(" "),b=c;return b||(b=(0,o.formatUseAsTitle)({collection:u,config:g,doc:d,i18n:m})||d?.filename||`[${h("untitled")}]`),r.default.createElement("button",{className:v,onClick:f,title:b,type:"button"},r.default.createElement("div",{className:`${s}__thumbnail`},p&&p,!p&&u&&d&&r.default.createElement(l.default,{collection:u,doc:d,size:"expand"})),r.default.createElement("div",{className:`${s}__label`},b))}},77665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(85541));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n(20469);let i=e=>{let{alignCaret:t="center",boundingRef:n,children:o,className:i,delay:l=350,show:u=!0}=e,[s,d]=r.default.useState(u),[c,f]=r.default.useState("top"),p=e=>"string"==typeof e?e:"",[m,h]=(0,a.default)({root:n?.current||null,rootMargin:"-145px 0px 0px 100px",threshold:0});return(0,r.useEffect)(()=>{let e;return l&&u?e=setTimeout(()=>{d(u)},l):d(u),()=>{e&&clearTimeout(e)}},[u,l]),(0,r.useEffect)(()=>{f(h?.isIntersecting?"top":"bottom")},[h]),r.default.createElement(r.default.Fragment,null,r.default.createElement("aside",{"aria-hidden":"true",className:["tooltip",i,`tooltip--caret-${t}`,"tooltip--position-top"].filter(Boolean).join(" "),ref:m,title:p(o)},r.default.createElement("div",{className:"tooltip-content"},o)),r.default.createElement("aside",{className:["tooltip",i,s&&"tooltip--show",`tooltip--caret-${t}`,`tooltip--position-${c}`].filter(Boolean).join(" "),title:p(o)},r.default.createElement("div",{className:"tooltip-content"},o)))}},36167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(77399),l=n(3994),u=n(60146),s=h(n(36515)),d=n(7695),c=n(86919),f=n(49041),p=h(n(55182)),m=h(n(36669));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(96151);let v="unpublish-many",b=e=>{let{collection:{labels:{plural:t},slug:n,versions:h}={},resetParams:g}=e,{routes:{api:b},serverURL:y}=(0,c.useConfig)(),{permissions:w}=(0,d.useAuth)(),{toggleModal:x}=(0,r.useModal)(),{i18n:k,t:P}=(0,o.useTranslation)("version"),{count:E,getQueryParams:A,selectAll:D}=(0,f.useSelection)(),[O,C]=(0,a.useState)(!1),M=w?.collections?.[n],S=M?.update?.permission,j=`unpublish-${n}`,T=(0,a.useCallback)(()=>{i.toast.error(P("error:unknown"))},[P]),_=(0,a.useCallback)(()=>{C(!0),u.requests.patch(`${y}${b}/${n}${A({_status:{not_equals:"draft"}})}`,{body:JSON.stringify({_status:"draft"}),headers:{"Accept-Language":k.language,"Content-Type":"application/json"}}).then(async e=>{try{let t=await e.json();if(x(j),e.status<400)return i.toast.success(P("general:updatedSuccessfully")),g({page:D?1:void 0}),null;return t.errors?t.errors.forEach(e=>i.toast.error(e.message)):T(),!1}catch(e){return T()}})},[T,b,A,k.language,j,g,D,y,n,P,x]);return h?.drafts&&D!==f.SelectAllStatus.None&&S?a.default.createElement(a.default.Fragment,null,a.default.createElement(m.default,{className:`${v}__toggle`,onClick:()=>{C(!1),x(j)}},P("unpublish")),a.default.createElement(r.Modal,{className:v,slug:j},a.default.createElement(s.default,{className:`${v}__template`},a.default.createElement("h1",null,P("confirmUnpublish")),a.default.createElement("p",null,P("aboutToUnpublishSelection",{label:(0,l.getTranslation)(t,k)})),a.default.createElement(p.default,{buttonStyle:"secondary",id:"confirm-cancel",onClick:O?void 0:()=>x(j),type:"button"},P("general:cancel")),a.default.createElement(p.default,{id:"confirm-unpublish",onClick:O?void 0:_},O?P("unpublishing"):P("general:confirm"))))):null}},56731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994);n(71363);let i=n(39610),l=e=>{let{i18n:t}=(0,a.useTranslation)(),{description:n}=e;return(0,i.isComponent)(n)?r.default.createElement(n,null):n?r.default.createElement("div",{className:"view-description"},"function"==typeof n?n():(0,o.getTranslation)(n,t)):null}},39610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isComponent",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));function a(e){return r.default.isValidElement(e)}},8415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=o(n(96540)),a=o(n(69100));function o(e){return e&&e.__esModule?e:{default:e}}let i=({admin:e,disabled:t,onChange:n,value:o})=>{let{date:i}=e||{};return r.default.createElement("div",{className:"condition-value-date"},r.default.createElement(a.default,{...i,onChange:n,readOnly:t,value:o}))}},27634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992);n(64926);let o=({disabled:e,onChange:t,value:n})=>{let{t:o}=(0,a.useTranslation)("general");return r.default.createElement("input",{className:"condition-value-number",disabled:e,onChange:e=>t(e.target.value),placeholder:o("enterAValue"),type:"number",value:n})}},87357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=s(n(36361)),i=n(86919),l=s(n(78877));n(46641);let u=s(n(17155));function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}let c="condition-value-relationship",f=e=>{let{admin:{isSortable:t}={},disabled:n,hasMany:s,onChange:d,relationTo:f,value:p}=e,{collections:m,routes:{api:h},serverURL:g}=(0,i.useConfig)(),v=Array.isArray(f),[b,y]=(0,r.useReducer)(u.default,[]),[w,x]=(0,r.useState)(-1),[k,P]=(0,r.useState)(1),[E,A]=(0,r.useState)(""),[D,O]=(0,r.useState)(""),[C,M]=(0,r.useState)(!1),S=(0,o.default)(E,300),{i18n:j,t:T}=(0,a.useTranslation)("general"),_=(0,r.useCallback)((e,t)=>{let n=m.find(e=>e.slug===t);y({collection:n,data:e,hasMultipleRelations:v,i18n:j,relation:t,type:"ADD"})},[m,v,j]),N=(0,r.useCallback)(async({lastFullyLoadedRelation:e,lastLoadedPage:t,search:n})=>{let r=void 0!==t?t:1,a=void 0!==e?e:-1,o=Array.isArray(f)?f:[f],i=-1===a?o:o.slice(a+1),l=0;D||i.reduce(async(e,t)=>{if(await e,l<10){let e=m.find(e=>e.slug===t),a=e?.admin?.useAsTitle||"id",i=n?`&where[${a}][like]=${n}`:"",u=await fetch(`${g}${h}/${t}?limit=10&page=${r}&depth=0${i}`,{credentials:"include",headers:{"Accept-Language":j.language}});if(u.ok){let e=await u.json();e.docs.length>0&&(l+=e.docs.length,_(e,t),P(e.page),!e.nextPage&&(x(o.indexOf(t)),o.indexOf(t)+1{if(p){if(s)return Array.isArray(p)?p.map(e=>{if(v){let t;return b.forEach(n=>{n.options&&n.options.some(n=>n?.value===e.value&&(t=n,!0))}),t}return b.find(t=>t.value===e)}):void 0;if(v){let e;return b.forEach(t=>{t?.options&&t.options.some(t=>t?.value===p.value&&(e=t,!0))}),e}return b.find(e=>e.value===p)}},[s,v,p,b]),R=(0,r.useCallback)(e=>{E!==e&&A(e)},[E]),z=(0,r.useCallback)(async(e,t)=>{if(!D&&"null"!==e){let n=await fetch(`${g}${h}/${t}/${e}?depth=0`,{credentials:"include",headers:{"Accept-Language":j.language}});if(n.ok){let e=await n.json();_({docs:[e]},t)}else console.error(T("error:loadingDocument",{id:e}))}},[j,_,h,D,g,T]);(0,r.useEffect)(()=>{y({i18n:j,required:!0,type:"CLEAR"}),M(!0),P(1),x(-1),N({search:S})},[N,S,f,j]),(0,r.useEffect)(()=>{if(p&&C){if(s){let e=L();(e||[]).forEach((e,t)=>{e||(v?z(p[t].value,p[t].relationTo):z(p[t],f))})}else{let e=L();e||(v?z(p.value,p.relationTo):z(p,f))}}},[z,L,s,v,f,p,C]);let I=["field-type",c,D&&"error-loading"].filter(Boolean).join(" "),F=L()||p;return r.default.createElement("div",{className:I},!D&&r.default.createElement(l.default,{disabled:n,isMulti:s,isSortable:t,onChange:e=>{s?d(e?e.map(e=>v?{relationTo:e.relationTo,value:e.value}:e.value):null):v?d({relationTo:e.relationTo,value:e.value}):d(e.value)},onInputChange:R,onMenuScrollToBottom:()=>{N({lastFullyLoadedRelation:w,lastLoadedPage:k+1})},options:b,placeholder:T("selectValue"),value:F}),D&&r.default.createElement("div",{className:`${c}__error-loading`},D))}},17155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(3994),a=e=>e.reduce((e,t)=>t.options?[...e,...a(t.options)]:[...e,t.id],[]),o=(e,t)=>{switch(t.type){case"CLEAR":return t.required?[]:[{label:t.i18n.t("general:none"),value:"null"}];case"ADD":{let{collection:n,data:o,hasMultipleRelations:i,i18n:l,relation:u}=t,s=n.admin.useAsTitle||"id",d=a(e);if(!i)return[...e,...o.docs.reduce((e,t)=>-1===d.indexOf(t.id)?(d.push(t.id),[...e,{label:t[s],value:t.id}]):e,[])];let c=[...e],f=c.find(e=>e.label===(0,r.getTranslation)(n.labels.plural,l)),p=o.docs.reduce((e,t)=>-1===d.indexOf(t.id)?(d.push(t.id),[...e,{label:t[s],relationTo:u,value:t.id}]):e,[]);return f?f.options=[...f.options,...p]:c.push({label:(0,r.getTranslation)(n.labels.plural,l),options:p,value:void 0}),c}default:return e}}},49955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return s}});let r=l(n(96540)),a=n(43992),o=n(3994),i=l(n(78877));function l(e){return e&&e.__esModule?e:{default:e}}let u=e=>e.map(e=>"object"==typeof e&&(e.value||""===e.value)?e:{label:e,value:e}),s=({disabled:e,onChange:t,operator:n,options:l,value:s})=>{let d;let{i18n:c}=(0,a.useTranslation)(),[f,p]=r.default.useState(u(l)),m=["in","not_in"].includes(n);if(m&&Array.isArray(s))d=s.map(e=>{let t=f.find(t=>t.value===e);return{label:t?(0,o.getTranslation)(t.label,c):e,value:t?.value??e}});else if(s){let e=f.find(e=>e.value===s);d={label:e?(0,o.getTranslation)(e.label,c):s,value:e?.value??s}}let h=r.default.useCallback(e=>{t(e?m?Array.isArray(e)?e.map(e=>e.value):[]:e.value:null)},[m,t]);return r.default.useEffect(()=>{p(u(l))},[l]),r.default.useEffect(()=>{!m&&Array.isArray(s)&&t(s[0])},[m,t,s]),r.default.createElement(i.default,{disabled:e,isMulti:m,onChange:h,options:f.map(e=>({...e,label:(0,o.getTranslation)(e.label,c)})),value:d})}},22024:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992);n(98900);let o=({disabled:e,onChange:t,value:n})=>{let{t:o}=(0,a.useTranslation)("general");return r.default.createElement("input",{className:"condition-value-text",disabled:e,onChange:e=>t(e.target.value),placeholder:o("enterAValue"),type:"text",value:n||""})}},17830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=p(n(36361)),o=p(n(45649)),i=p(n(55182)),l=p(n(78877)),u=p(n(8415)),s=p(n(27634)),d=p(n(87357)),c=n(49955),f=p(n(22024));function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(29012);let h={Date:u.default,Number:s.default,Relationship:d.default,Select:c.Select,Text:f.default},g="condition",v=e=>{let t;let{andIndex:n,dispatch:u,fields:s,orIndex:d,value:f}=e,p=Object.keys(f)[0],[m,v]=(0,r.useState)(()=>s.find(e=>p===e.value)),b=f?.[p]?Object.entries(f[p])[0]:void 0,y=b?.[1],w=b?.[0],[x,k]=(0,r.useState)(y),[P,E]=(0,r.useState)(w),A=(0,a.default)(x,300);(0,r.useEffect)(()=>{let e=s.find(({value:e})=>e===p);e&&e!==m&&(v(e),E(null),k(""))},[p,s,m]),(0,r.useEffect)(()=>{u({andIndex:n,orIndex:d,type:"update",value:A||""})},[A,u,d,n]);let D=["exists"].includes(w)||"checkbox"===m.props.type,O=D?c.Select:h[m?.component]||h.Text;return D?t=["true","false"]:m?.props&&"options"in m.props&&(t=m.props.options),r.default.createElement("div",{className:g},r.default.createElement("div",{className:`${g}__wrap`},r.default.createElement("div",{className:`${g}__inputs`},r.default.createElement("div",{className:`${g}__field`},r.default.createElement(l.default,{isClearable:!1,onChange:e=>{u({andIndex:n,field:e?.value,orIndex:d,type:"update"})},options:s,value:s.find(e=>p===e.value)})),r.default.createElement("div",{className:`${g}__operator`},r.default.createElement(l.default,{disabled:!p,isClearable:!1,onChange:e=>{u({andIndex:n,operator:e.value,orIndex:d,type:"update"}),E(e.value)},options:m.operators,value:m.operators.find(e=>P===e.value)||null})),r.default.createElement("div",{className:`${g}__value`},r.default.createElement(o.default,{CustomComponent:m?.props?.admin?.components?.Filter,DefaultComponent:O,componentProps:{...m?.props,disabled:!w,onChange:k,operator:w,options:t,value:x}}))),r.default.createElement("div",{className:`${g}__actions`},r.default.createElement(i.default,{buttonStyle:"icon-label",className:`${g}__actions-remove`,icon:"x",iconStyle:"with-border",onClick:()=>u({andIndex:n,orIndex:d,type:"remove"}),round:!0}),r.default.createElement(i.default,{buttonStyle:"icon-label",className:`${g}__actions-add`,icon:"plus",iconStyle:"with-border",onClick:()=>u({andIndex:n+1,field:s[0].value,orIndex:d,relation:"and",type:"add"}),round:!0}))))}},79688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=[{label:"equals",value:"equals"},{label:"isNotEqualTo",value:"not_equals"}],r=[...n,{label:"isIn",value:"in"},{label:"isNotIn",value:"not_in"},{label:"exists",value:"exists"}],a=[...r,{label:"isGreaterThan",value:"greater_than"},{label:"isLessThan",value:"less_than"},{label:"isLessThanOrEqualTo",value:"less_than_equal"},{label:"isGreaterThanOrEqualTo",value:"greater_than_equal"}],o=[...n,{label:"exists",value:"exists"},{label:"near",value:"near"}],i={label:"within",value:"within"},l={label:"intersects",value:"intersects"},u={label:"isLike",value:"like"},s={label:"contains",value:"contains"},d={checkbox:{component:"Text",operators:n},code:{component:"Text",operators:[...r,u,s]},date:{component:"Date",operators:[...r,...a]},email:{component:"Text",operators:[...r,s]},json:{component:"Text",operators:[...r,u,s,i,l]},number:{component:"Number",operators:[...r,...a]},point:{component:"Point",operators:[...o,i,l]},radio:{component:"Select",operators:[...r]},relationship:{component:"Relationship",operators:[...r]},richText:{component:"Text",operators:[...r,u,s]},select:{component:"Select",operators:[...r]},text:{component:"Text",operators:[...r,u,s]},textarea:{component:"Text",operators:[...r,u,s]},upload:{component:"Text",operators:[...r]}},c=d},77220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=v(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=v(n(6545)),u=n(3994),s=v(n(32301)),d=n(7087),c=v(n(55182)),f=v(n(17830)),p=v(n(79688));n(78242);let m=v(n(72288)),h=n(79933),g=v(n(56685));function v(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}let y="where-builder",w=(e,t)=>(0,l.default)(e).reduce((e,n)=>{if("object"==typeof p.default[n.type]){let r=new Set,a=p.default[n.type].operators.reduce((e,n)=>r.has(n.value)?e:(r.add(n.value),[...e,{...n,label:t.t(`operators:${n.label}`)}]),[]),o={label:(0,u.getTranslation)(n.label||n.name,t),value:n.name,...p.default[n.type],operators:a,props:{...n}};return[...e,o]}return e},[]),x=e=>{let{collection:{labels:{plural:t}={}}={},collection:n,handleChange:l,modifySearchQuery:p=!0}=e,v=(0,i.useHistory)(),b=(0,d.useSearchParams)(),{i18n:x,t:k}=(0,o.useTranslation)("general"),[P,E]=(0,a.useReducer)(m.default,b.where,e=>{if(p&&e){if((0,g.default)(e))return e.or;let t=(0,h.transformWhereQuery)(e);if((0,g.default)(t))return t.or;console.warn("Invalid where query in URL. Ignoring.")}return[]}),[A]=(0,a.useState)(()=>w(n.fields,x));return(0,s.default)(()=>{let e=r.default.parse(v.location.search,{depth:10,ignoreQueryPrefix:!0}),t="object"==typeof e?.where&&"or"in e.where?e.where.or.reduce((e,t)=>{let n={...t};return t.and&&delete n.and,[...e,n]},[]):[],n=P.length>0,a={..."object"==typeof e?.where&&((0,g.default)(e?.where)||!n)?e.where:{},or:[...P,...t]};l&&l(a);let o="object"==typeof e?.where&&"or"in e.where;p&&(o&&!n||n)&&v.replace({search:r.default.stringify({...e,page:1,where:a},{addQueryPrefix:!0})})},500,[P,p,l]),a.default.createElement("div",{className:y},P.length>0&&a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{className:`${y}__label`},k("filterWhere",{label:(0,u.getTranslation)(t,x)})),a.default.createElement("ul",{className:`${y}__or-filters`},P.map((e,t)=>a.default.createElement("li",{key:t},0!==t&&a.default.createElement("div",{className:`${y}__label`},k("or")),a.default.createElement("ul",{className:`${y}__and-filters`},Array.isArray(e?.and)&&e.and.map((e,n)=>a.default.createElement("li",{key:n},0!==n&&a.default.createElement("div",{className:`${y}__label`},k("and")),a.default.createElement(f.default,{andIndex:n,dispatch:E,fields:A,key:n,orIndex:t,value:P[t].and[n]}))))))),a.default.createElement(c.default,{buttonStyle:"icon-label",className:`${y}__add-or`,icon:"plus",iconPosition:"left",iconStyle:"with-border",onClick:()=>{A.length>0&&E({field:A[0].value,type:"add"})}},k("or"))),0===P.length&&a.default.createElement("div",{className:`${y}__no-filters`},a.default.createElement("div",{className:`${y}__label`},k("noFiltersSet")),a.default.createElement(c.default,{buttonStyle:"icon-label",className:`${y}__add-first-filter`,icon:"plus",iconPosition:"left",iconStyle:"with-border",onClick:()=>{A.length>0&&E({field:A[0].value,type:"add"})}},k("addFilter"))))}},72288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=(e,t)=>{let n=[...e],{andIndex:r,orIndex:a}=t;switch(t.type){case"add":{let{field:e,relation:o}=t;if("and"===o)return n[a].and.splice(r,0,{[e]:{}}),n;return[...n,{and:[{[e]:{}}]}]}case"remove":return n[a].and.splice(r,1),0===n[a].and.length&&n.splice(a,1),n;case"update":{let{field:e,operator:o,value:i}=t;if("object"==typeof n[a].and[r]){n[a].and[r]={...n[a].and[r]};let[t,l]=Object.entries(n[a].and[r])[0]||[void 0,void 0];o&&(n[a].and[r]={[t]:{[o]:Object.values(l)[0]}}),e&&(n[a].and[r]={[e]:o?{[o]:i}:{}}),void 0!==i&&(n[a].and[r]={[t]:Object.keys(l)[0]?{[Object.keys(l)[0]]:i}:{}})}return n}default:return n}}},79933:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"transformWhereQuery",{enumerable:!0,get:function(){return n}});let n=e=>e?e.or&&!e.and?{or:e.or.map(e=>e.and?e:{and:[e]})}:e.and&&!e.or?{or:[{and:e.and}]}:e.or||e.and?e:{or:[{and:[e]}]}:{}},56685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(43689),a=e=>{if(e?.or?.length>0&&e?.or?.[0]?.and&&e?.or?.[0]?.and?.length>0){let t=e.or.every(e=>!!(e.and&&Array.isArray(e.and))&&e.and.every(e=>{if("object"!=typeof e)return!1;let t=Object.keys(e);if(0===t.length)return!1;for(let n of t){let t=Object.keys(e[n])[0];if(!t||!r.validOperators.includes(t))return!1}return!0}));return t}return!1}},25218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=o(n(96540)),a=o(n(77665));function o(e){return e&&e.__esModule?e:{default:e}}n(63136);let i=e=>{let{alignCaret:t="right",message:n,showError:o=!1}=e;return o?r.default.createElement(a.default,{alignCaret:t,className:"field-error",delay:0},n):null}},98114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994);n(17270);let i=n(72607),l="field-description",u=e=>{let{className:t,description:n,marginPlacement:u,path:s,value:d}=e,{i18n:c}=(0,a.useTranslation)();return(0,i.isComponent)(n)?r.default.createElement(n,{path:s,value:d}):n?r.default.createElement("div",{className:[l,t,u&&`${l}--margin-${u}`].filter(Boolean).join(" ")},"function"==typeof n?n({path:s,value:d}):(0,o.getTranslation)(n,c)):null}},72607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isComponent",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));function a(e){return r.default.isValidElement(e)}},13784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WatchFormErrors",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(32301)),a=({buildRowErrors:e})=>((0,r.default)(()=>{e()},250,[e]),null)},84933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildFieldSchemaMap",{enumerable:!0,get:function(){return a}});let r=n(57816),a=e=>{let t=new Map,n=(e,a="")=>{e.forEach(e=>{let o=(0,r.createNestedFieldPath)(a,e);switch(e.type){case"blocks":e.blocks.forEach(e=>{let r=`${o}.${e.slug}`;t.set(r,e.fields),n(e.fields,r)});break;case"array":t.set(o,e.fields),n(e.fields,o);break;case"row":case"collapsible":case"group":n(e.fields,o);break;case"tabs":e.tabs.forEach(e=>{let t=o;t=t?"name"in e?`${t}.${e.name}`:t:"name"in e?`${e.name}`:t,n(e.fields,t)})}})};return n(e),t}},56087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=e=>{if(e)return Object.entries(e).reduce((e,[t,n])=>({...e,[t]:{initialValue:n,valid:!0,value:n}}),{})}},76614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addFieldStatePromise",{enumerable:!0,get:function(){return u}});let r=l(n(82808)),a=n(49472),o=l(n(14764)),i=n(86194);function l(e){return e&&e.__esModule?e:{default:e}}let u=async({id:e,config:t,data:n,field:l,fullData:u,locale:s,operation:d,passesCondition:c,path:f,preferences:p,state:m,t:h,user:g})=>{if((0,a.fieldAffectsData)(l)){let a={condition:l.admin?.condition,initialValue:void 0,passesCondition:c,valid:!0,validate:l.validate,value:void 0},v=await (0,o.default)({defaultValue:l.defaultValue,locale:s,user:g,value:n?.[l.name]});n?.[l.name]&&(n[l.name]=v);let b=!0;switch("function"==typeof a.validate&&(b=await a.validate(n?.[l.name],{...l,id:e,config:t,data:u,operation:d,siblingData:n,t:h,user:g})),"string"==typeof b?(a.errorMessage=b,a.valid=!1):a.valid=!0,l.type){case"array":{let n=Array.isArray(v)?v:[],{promises:o,rowMetadata:b}=n.reduce((n,a,o)=>{let v=`${f}${l.name}.${o}.`;a.id=a?.id||new r.default().toHexString(),m[`${v}id`]={initialValue:a.id,valid:!0,value:a.id},n.promises.push((0,i.iterateFields)({id:e,config:t,data:a,fields:l.fields,fullData:u,locale:s,operation:d,parentPassesCondition:c,path:v,preferences:p,state:m,t:h,user:g}));let b=p?.fields?.[`${f}${l.name}`]?.collapsed;return n.rowMetadata.push({id:a.id,childErrorPaths:new Set,collapsed:void 0===b?l.admin.initCollapsed:b.includes(a.id)}),n},{promises:[],rowMetadata:[]});await Promise.all(o),null===v?(a.value=null,a.initialValue=null):(a.value=n.length,a.initialValue=n.length,n.length>0&&(a.disableFormData=!0)),a.rows=b,m[`${f}${l.name}`]=a;break}case"blocks":{let n=Array.isArray(v)?v:[],{promises:o,rowMetadata:b}=n.reduce((n,a,o)=>{let v=l.blocks.find(e=>e.slug===a.blockType),b=`${f}${l.name}.${o}.`;if(v){a.id=a?.id||new r.default().toHexString(),m[`${b}id`]={initialValue:a.id,valid:!0,value:a.id},m[`${b}blockType`]={initialValue:a.blockType,valid:!0,value:a.blockType},m[`${b}blockName`]={initialValue:a.blockName,valid:!0,value:a.blockName},n.promises.push((0,i.iterateFields)({id:e,config:t,data:a,fields:v.fields,fullData:u,locale:s,operation:d,parentPassesCondition:c,path:b,preferences:p,state:m,t:h,user:g}));let o=p?.fields?.[`${f}${l.name}`]?.collapsed;n.rowMetadata.push({id:a.id,blockType:a.blockType,childErrorPaths:new Set,collapsed:void 0===o?l.admin.initCollapsed:o.includes(a.id)})}return n},{promises:[],rowMetadata:[]});await Promise.all(o),null===v?(a.value=null,a.initialValue=null):(a.value=n.length,a.initialValue=n.length,n.length>0&&(a.disableFormData=!0)),a.rows=b,m[`${f}${l.name}`]=a;break}case"group":await (0,i.iterateFields)({id:e,config:t,data:n?.[l.name]||{},fields:l.fields,fullData:u,locale:s,operation:d,parentPassesCondition:c,path:`${f}${l.name}.`,preferences:p,state:m,t:h,user:g});break;case"relationship":if(l.hasMany){let e=Array.isArray(v)?v.map(e=>Array.isArray(l.relationTo)?{relationTo:e.relationTo,value:e.value&&"object"==typeof e.value?e.value?.id:e.value}:"object"==typeof e&&null!==e?e.id:e):void 0;a.value=e,a.initialValue=e}else if(Array.isArray(l.relationTo)){if(v&&"object"==typeof v&&"relationTo"in v&&"value"in v){let e="object"==typeof v?.value&&v?.value&&"id"in v.value?v.value.id:v.value,t={relationTo:v?.relationTo,value:e};a.value=t,a.initialValue=t}}else{let e=v&&"object"==typeof v&&"id"in v?v.id:v;a.value=e,a.initialValue=e}m[`${f}${l.name}`]=a;break;case"upload":{let e=v&&"object"==typeof v&&"id"in v?v.id:v;a.value=e,a.initialValue=e,m[`${f}${l.name}`]=a;break}default:a.value=v,a.initialValue=v,m[`${f}${l.name}`]=a}}else if((0,a.fieldHasSubFields)(l))await (0,i.iterateFields)({id:e,config:t,data:n,fields:l.fields,fullData:u,locale:s,operation:d,parentPassesCondition:c,path:f,preferences:p,state:m,t:h,user:g});else if("tabs"===l.type){let r=l.tabs.map(r=>(0,i.iterateFields)({id:e,config:t,data:(0,a.tabHasName)(r)?n?.[r.name]:n,fields:r.fields,fullData:u,locale:s,operation:d,parentPassesCondition:c,path:(0,a.tabHasName)(r)?`${f}${r.name}.`:f,preferences:p,state:m,t:h,user:g}));await Promise.all(r)}}},68697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(86194),a=async e=>{let{id:t,config:n,data:a={},fieldSchema:o,locale:i,operation:l,preferences:u,t:s,user:d}=e;if(o){let e={};return await (0,r.iterateFields)({id:t,config:n,data:a,fields:o,fullData:a,locale:i,operation:l,parentPassesCondition:!0,path:"",preferences:u,state:e,t:s,user:d}),e}return{}},o=a},86194:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"iterateFields",{enumerable:!0,get:function(){return o}});let r=n(49472),a=n(76614),o=async({id:e,config:t,data:n,fields:o,fullData:i,locale:l,operation:u,parentPassesCondition:s,path:d="",preferences:c,state:f,t:p,user:m})=>{let h=[];o.forEach(o=>{if(!(0,r.fieldIsPresentationalOnly)(o)&&!o?.admin?.disabled){let r=!!((!o?.admin?.condition||o.admin.condition(i||{},n||{},{user:m}))&&s);h.push((0,a.addFieldStatePromise)({id:e,config:t,data:n,field:o,fullData:i,locale:l,operation:u,passesCondition:r,path:d,preferences:c,state:f,t:p,user:m}))}}),await Promise.all(h)}},66461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{FormContext:function(){return o},FormFieldsContext:function(){return d},FormWatchContext:function(){return i},ModifiedContext:function(){return s},ProcessingContext:function(){return u},SubmittedContext:function(){return l},useAllFormFields:function(){return v},useForm:function(){return c},useFormFields:function(){return g},useFormModified:function(){return h},useFormProcessing:function(){return m},useFormSubmitted:function(){return p},useWatchForm:function(){return f}});let r=n(96540),a=n(39528),o=(0,r.createContext)({}),i=(0,r.createContext)({}),l=(0,r.createContext)(!1),u=(0,r.createContext)(!1),s=(0,r.createContext)(!1),d=(0,a.createContext)([{},()=>null]),c=()=>(0,r.useContext)(o),f=()=>(0,r.useContext)(i),p=()=>(0,r.useContext)(l),m=()=>(0,r.useContext)(u),h=()=>(0,r.useContext)(s),g=e=>(0,a.useContextSelector)(d,e),v=()=>(0,a.useContext)(d)},57816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createNestedFieldPath",{enumerable:!0,get:function(){return a}});let r=n(49472),a=(e,t)=>e?(0,r.fieldAffectsData)(t)?`${e}.${t.name}`:e:(0,r.fieldAffectsData)(t)?t.name:""},64720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n={413:"Your request was too large to submit successfully."}},10740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fieldReducer",{enumerable:!0,get:function(){return d}});let r=s(n(82808)),a=s(n(4982)),o=n(77925),i=s(n(46474)),l=s(n(69504)),u=n(49609);function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t){switch(t.type){case"REPLACE_STATE":{let n={};return Object.entries(t.state).forEach(([t,r])=>{let o=e[t];(0,a.default)(o,r)?o&&(n[t]=o):n[t]=r}),n}case"REMOVE":{let n={...e};return n[t.path]&&delete n[t.path],n}case"MODIFY_CONDITION":{let{path:n,result:r,user:a}=t;return Object.entries(e).reduce((t,[o,u])=>{if(o===n||0===o.indexOf(`${n}.`)){let s=r;return s&&u.condition&&(s=u.condition((0,l.default)(e,!0),(0,i.default)(e,n),{user:a})),{...t,[o]:{...u,passesCondition:s}}}return{...t,[o]:{...u}}},{})}case"UPDATE":{let n=Object.entries(t).reduce((e,[t,n])=>["condition","disableFormData","errorMessage","initialValue","passesCondition","rows","valid","validate","value"].includes(t)?{...e,[t]:n}:e,e[t.path]||{});return{...e,[t.path]:n}}case"REMOVE_ROW":{let{path:n,rowIndex:r}=t,{remainingFields:a,rows:o}=(0,u.separateRows)(n,e),i=[...e[n]?.rows||[]];o.splice(r,1),i.splice(r,1);let l={...a,[n]:{...e[n],disableFormData:o.length>0,rows:i,value:o.length},...(0,u.flattenRows)(n,o)};return l}case"ADD_ROW":{let{blockType:n,path:a,rowIndex:o,subFieldState:i}=t,l="number"==typeof o?o:e[a]?.rows?.length||0,s=[...e[a]?.rows||[]];s.splice(l,0,{id:new r.default().toHexString(),blockType:n||void 0,childErrorPaths:new Set,collapsed:!1}),n&&(i.blockType={initialValue:n,valid:!0,value:n});let{remainingFields:d,rows:c}=(0,u.separateRows)(a,e);c.splice(l,0,i);let f={...d,...(0,u.flattenRows)(a,c),[a]:{...e[a],disableFormData:!0,rows:s,value:c.length}};return f}case"REPLACE_ROW":{let{blockType:n,path:a,rowIndex:o,subFieldState:i}=t,{remainingFields:l,rows:s}=(0,u.separateRows)(a,e),d=Math.max(0,Math.min(o,s?.length-1||0)),c=[...e[a]?.rows||[]];c[d]={id:new r.default().toHexString(),blockType:n||void 0,childErrorPaths:new Set,collapsed:!1},n&&(i.blockType={initialValue:n,valid:!0,value:n}),s[d]=i;let f={...l,...(0,u.flattenRows)(a,s),[a]:{...e[a],disableFormData:!0,rows:c,value:s.length}};return f}case"DUPLICATE_ROW":{let{path:n,rowIndex:a}=t,{remainingFields:i,rows:l}=(0,u.separateRows)(n,e),s=e[n]?.rows||[],d=(0,o.deepCopyObject)(s[a]);d.id&&(d.id=new r.default().toHexString());let c=(0,o.deepCopyObject)(l[a]);c.id&&(c.id=new r.default().toHexString()),Object.keys(c).length>0&&(l.splice(a+1,0,c),s.splice(a+1,0,d));let f={...i,[n]:{...e[n],disableFormData:!0,rows:s,value:l.length},...(0,u.flattenRows)(n,l)};return f}case"MOVE_ROW":{let{moveFromIndex:n,moveToIndex:r,path:a}=t,{remainingFields:o,rows:i}=(0,u.separateRows)(a,e),l=i[n];i.splice(n,1),i.splice(r,0,l);let s=[...e[a]?.rows||[]],d={...s[n]};s.splice(n,1),s.splice(r,0,d);let c={...o,...(0,u.flattenRows)(a,i),[a]:{...e[a],rows:s}};return c}case"SET_ROW_COLLAPSED":{let{collapsed:n,path:r,rowID:a,setDocFieldPreferences:o}=t,i=e[r],{collapsedRowIDs:l,matchedIndex:u}=e[r].rows.reduce((e,t,r)=>{let o=t.id===a;return o&&(e.matchedIndex=r),!o&&t.collapsed?e.collapsedRowIDs.push(t.id):o&&n&&e.collapsedRowIDs.push(t.id),e},{collapsedRowIDs:[],matchedIndex:void 0});u>-1&&(i.rows[u].collapsed=n,o(r,{collapsed:l}));let s={...e,[r]:{...i}};return s}case"SET_ALL_ROWS_COLLAPSED":{let{collapsed:n,path:r,setDocFieldPreferences:a}=t,{collapsedRowIDs:o,rows:i}=e[r].rows.reduce((e,t)=>(n&&e.collapsedRowIDs.push(t.id),e.rows.push({...t,collapsed:n}),e),{collapsedRowIDs:[],rows:[]});return a(r,{collapsed:o}),{...e,[r]:{...e[r],rows:i}}}default:return e}}},72312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(93212),a=(e,t)=>{let n=t.substring(0,t.lastIndexOf(".")+1),a=t.split(".").pop(),o={};Object.keys(e).forEach(r=>{e[r].disableFormData||0!==r.indexOf(`${t}.`)&&r!==t||(o[r.replace(n,"")]=e[r].value)});let i=(0,r.unflatten)(o);return i?.[a]}},46474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(93212),a=function(e){return e&&e.__esModule?e:{default:e}}(n(69504)),o=(e,t)=>{let n;if(-1===t.indexOf("."))return(0,a.default)(e,!0);let o={},i=t.split("."),l=i[i.length-1],u=!Number.isNaN(Number(l));return n=u?`${t}.`:t.substring(0,t.lastIndexOf(".")+1),Object.keys(e).forEach(t=>{e[t].disableFormData||0!==t.indexOf(n)||(o[t.replace(n,"")]=e[t].value)}),(0,r.unflatten)(o,{safe:!0})}},8914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let r=j(n(4982)),a=n(47864),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=T(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=n(43992),l=n(30876),u=n(77399),s=n(18080),d=n(65314),c=n(66827),f=j(n(85516)),p=n(60146),m=j(n(32301)),h=n(7695),g=n(86919),v=n(50444),b=n(62519),y=n(3643),w=n(13784),x=n(84933),k=j(n(56087)),P=j(n(68697)),E=n(66461),A=j(n(64720)),D=n(10740),O=j(n(72312)),C=j(n(46474)),M=j(n(34978)),S=j(n(69504));function j(e){return e&&e.__esModule?e:{default:e}}function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(T=function(e){return e?n:t})(e)}let _=e=>{let{id:t,collection:n,getDocPreferences:j,global:T}=(0,v.useDocumentInfo)(),{action:_,children:N,className:L,disableSuccessStatus:R,disabled:z,fields:I=n?.fields||T?.fields,handleResponse:F,initialData:W,initialState:B,method:U,onSubmit:V,onSuccess:$,redirect:H,submitted:q,waitForAutocomplete:Y}=e,G=(0,l.useHistory)(),{code:K}=(0,b.useLocale)(),{i18n:X,t:Q}=(0,i.useTranslation)("general"),{refreshCookie:J,user:Z}=(0,h.useAuth)(),ee=(0,y.useOperation)(),et=(0,g.useConfig)(),[en,er]=(0,o.useState)(!1),[ea,eo]=(0,o.useState)(!1),[ei,el]=(0,o.useState)(!1),[eu,es]=(0,o.useState)((0,k.default)(W)),ed=(0,o.useRef)(null),ec=(0,o.useRef)({}),ef={};eu&&(ef=eu),B&&(ef=B);let ep=(0,o.useReducer)(D.fieldReducer,{},()=>ef),[em,eh]=ep;ec.current.fields=em,ec.current.dispatchFields=eh;let eg=(0,o.useCallback)(()=>{let e={},t={};Object.entries(em).forEach(([n,r])=>{let a=(0,c.splitPathByArrayFields)(n);for(let n=0;n({...e,childErrorPaths:new Set})));let l=a[n+1],u=a.slice(n+1).join(".");!1===r.valid&&u&&t[o][l].childErrorPaths.add(`${o}.${u}`)}}}),Object.entries(t).forEach(([t,n])=>{let r=n.every((n,r)=>{let a=e[t][r]?.childErrorPaths;return(0,d.setsAreEqual)(n.childErrorPaths,a)});r||eh({path:t,rows:n,type:"UPDATE"})})},[em,eh]),ev=(0,o.useCallback)(async()=>{let e={},n=!0,a=ec.current.getData(),o=Object.entries(ec.current.fields).map(async([r,o])=>{let i={...o,valid:!0};if(!1!==o.passesCondition){let e=!0;if("function"==typeof o.validate){let n=o.value;o?.rows&&Array.isArray(o.rows)&&(n=ec.current.getDataByPath(r)),e=await o.validate(n,{id:t,config:et,data:a,operation:ee,siblingData:ec.current.getSiblingData(r),t:Q,user:Z})}"string"==typeof e&&(i.errorMessage=e,i.valid=!1,n=!1)}e[r]=i});return await Promise.all(o),(0,r.default)(ec.current.fields,e)||eh({state:e,type:"REPLACE_STATE"}),n},[ec,t,Z,ee,Q,eh,et]),eb=(0,o.useCallback)(async(e={},t)=>{let{action:n=_,method:r=U,overrides:a={},skipValidation:o}=e;if(z){t&&t.preventDefault();return}t&&(t.stopPropagation(),t.preventDefault()),eo(!0),Y&&await (0,f.default)(100);let i=!!o||await ec.current.validateForm();if(ec.current.buildRowErrors(),o||el(!0),!i){u.toast.error(Q("error:correctInvalidFields")),eo(!1);return}if(V){let e={...(0,S.default)(em,!0),...a};V(em,e)}let l=ec.current.createFormData(a);try{let e=await p.requests[r.toLowerCase()](n,{body:l,headers:{"Accept-Language":X.language}});if(er(!1),"function"==typeof F){F(e);return}eo(!1);let t=e.headers.get("content-type"),a=t&&-1!==t.indexOf("application/json"),o={};if(a&&(o=await e.json()),e.status<400){if(el(!1),"function"==typeof $&&$(o),H){let e={pathname:H,state:{}};"object"==typeof o&&o.message&&!R&&(e.state={status:[{message:o.message,type:"success"}]}),G.push(e)}else R||u.toast.success(o.message||Q("submissionSuccessful"),{autoClose:3e3})}else{if(ec.current={...ec.current},o.message){u.toast.error(o.message);return}if(Array.isArray(o.errors)){let[e,t]=o.errors.reduce(([e,t],n)=>{let r=[],a=[];return n?.message&&a.push(n),Array.isArray(n?.data)&&n.data.forEach(e=>{e?.field?r.push(e):a.push(e)}),[[...e,...r],[...t,...a]]},[[],[]]);e.forEach(e=>{eh({type:"UPDATE",...ec.current?.fields?.[e.field]||{},errorMessage:e.message,path:e.field,valid:!1})}),t.forEach(e=>{u.toast.error(e.message||Q("error:unknown"))});return}let t=A.default[e.status]||Q("error:unknown");u.toast.error(t)}}catch(e){eo(!1),u.toast.error(e)}},[_,R,z,eh,em,F,G,U,V,$,H,Q,X,Y]),ey=o.default.useCallback(({fieldConfig:e,path:t,pathPrefix:n})=>{let r=(0,c.splitPathByArrayFields)(t),a=(0,x.buildFieldSchemaMap)(e);for(let e=0;e{let n=ey({fieldConfig:I,path:t}),r=(0,x.buildFieldSchemaMap)(n),a=(0,c.splitPathByArrayFields)(t),o=a.at(-1);return r.get(e?`${o}.${e}`:o)},[ey,I]),ex=(0,o.useCallback)(async({data:e,path:n,rowIndex:r})=>{let a=await j(),o=ew({blockType:e?.blockType,path:n});if(o){let i=await (0,P.default)({id:t,config:et,data:e,fieldSchema:o,locale:K,operation:ee,preferences:a,t:Q,user:Z});eh({blockType:e?.blockType,path:n,rowIndex:r,subFieldState:i,type:"ADD_ROW"})}},[eh,j,t,Z,ee,K,Q,ew,et]),ek=(0,o.useCallback)(({path:e,rowIndex:t})=>{eh({path:e,rowIndex:t,type:"REMOVE_ROW"})},[eh]),eP=(0,o.useCallback)(async({data:e,path:n,rowIndex:r})=>{let a=await j(),o=ew({blockType:e?.blockType,path:n});if(o){let i=await (0,P.default)({id:t,config:et,data:e,fieldSchema:o,locale:K,operation:ee,preferences:a,t:Q,user:Z});eh({blockType:e?.blockType,path:n,rowIndex:r,subFieldState:i,type:"REPLACE_ROW"})}},[eh,j,t,Z,ee,K,Q,ew,et]),eE=(0,o.useCallback)(()=>ec.current.fields,[ec]),eA=(0,o.useCallback)(e=>ec.current.fields[e],[ec]),eD=(0,o.useCallback)(()=>(0,S.default)(ec.current.fields,!0),[ec]),eO=(0,o.useCallback)(e=>(0,C.default)(ec.current.fields,e),[ec]),eC=(0,o.useCallback)(e=>(0,O.default)(ec.current.fields,e),[ec]),eM=(0,o.useCallback)((e={})=>{let t=(0,S.default)(ec.current.fields,!0),n=t?.file;n&&delete t.file;let r={...t,...e},o={_payload:JSON.stringify(r),file:n},i=(0,a.serialize)(o,{indices:!0,nullsAsUndefineds:!1});return i},[ec]),eS=(0,o.useCallback)(async(e,n)=>{let r=await j(),a=await (0,P.default)({id:t,config:et,data:n,fieldSchema:e,locale:K,operation:ee,preferences:r,t:Q,user:Z});ec.current={...M.default},er(!1),eh({state:a,type:"REPLACE_STATE"})},[t,Z,ee,K,Q,eh,j,et]),ej=(0,o.useCallback)(e=>{ec.current={...M.default},er(!1),eh({state:e,type:"REPLACE_STATE"})},[eh]);ec.current.submit=eb,ec.current.getFields=eE,ec.current.getField=eA,ec.current.getData=eD,ec.current.getSiblingData=eO,ec.current.getDataByPath=eC,ec.current.validateForm=ev,ec.current.createFormData=eM,ec.current.setModified=er,ec.current.setProcessing=eo,ec.current.setSubmitted=el,ec.current.disabled=z,ec.current.formRef=ed,ec.current.reset=eS,ec.current.replaceState=ej,ec.current.buildRowErrors=eg,ec.current.addFieldRow=ex,ec.current.removeFieldRow=ek,ec.current.replaceFieldRow=eP,(0,o.useEffect)(()=>{"boolean"==typeof q&&el(q)},[q]),(0,o.useEffect)(()=>{B&&(ec.current={...M.default},eh({state:B,type:"REPLACE_STATE"}))},[B,eh]),(0,o.useEffect)(()=>{if(W){ec.current={...M.default};let e=(0,k.default)(W);es(e),eh({state:e,type:"REPLACE_STATE"})}},[W,eh]),(0,m.default)(()=>{J()},15e3,[em]),(0,o.useEffect)(()=>{ec.current={...ec.current},er(!1)},[K]);let eT=[L,"form"].filter(Boolean).join(" ");return o.default.createElement("form",{action:_,className:eT,method:U,noValidate:!0,onSubmit:e=>ec.current.submit({},e),ref:ed},o.default.createElement(E.FormContext.Provider,{value:ec.current},o.default.createElement(E.FormWatchContext.Provider,{value:{fields:em,...ec.current}},o.default.createElement(E.SubmittedContext.Provider,{value:ei},o.default.createElement(E.ProcessingContext.Provider,{value:ea},o.default.createElement(E.ModifiedContext.Provider,{value:en},o.default.createElement(E.FormFieldsContext.Provider,{value:ep},o.default.createElement(w.WatchFormErrors,{buildRowErrors:eg}),N)))))))}},34978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n={addFieldRow:()=>void 0,buildRowErrors:()=>void 0,createFormData:()=>void 0,disabled:!1,dispatchFields:()=>void 0,fields:{},formRef:null,getData:()=>void 0,getDataByPath:()=>void 0,getField:()=>void 0,getFields:()=>({}),getSiblingData:()=>void 0,removeFieldRow:()=>void 0,replaceFieldRow:()=>void 0,replaceState:()=>void 0,reset:()=>void 0,setModified:()=>void 0,setProcessing:()=>void 0,setSubmitted:()=>void 0,submit:()=>void 0,validateForm:()=>void 0}},69504:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(93212),a=(e,t)=>{let n={};return(Object.keys(e).forEach(t=>{e[t].disableFormData||(n[t]=e[t].value)}),t)?(0,r.unflatten)(n,{safe:!0}):n}},49609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{separateRows:function(){return n},flattenRows:function(){return r}});let n=(e,t)=>{let n={},r=Object.entries(t).reduce((t,[r,a])=>{if(0===r.indexOf(`${e}.`)){let[n]=r.replace(`${e}.`,"").split(".");t[n]||(t[n]={}),t[n][r.replace(`${e}.${String(n)}.`,"")]={...a}}else n[r]=a;return t},[]);return{remainingFields:n,rows:r}},r=(e,t)=>t.reduce((t,n,r)=>({...t,...Object.entries(n).reduce((t,[n,a])=>({...t,[`${e}.${r}.${n}`]:{...a}}),{})}),{})},16034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994);n(72988);let i=e=>{let{htmlFor:t,label:n,required:i=!1}=e,{i18n:l}=(0,a.useTranslation)();return n?r.default.createElement("label",{className:"field-label",htmlFor:t},(0,o.getTranslation)(n,l),i&&r.default.createElement("span",{className:"required"},"*")):null}},4755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NullifyLocaleField",{enumerable:!0,get:function(){return c}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(87768),i=n(86919),l=n(62519),u=n(66461),s=n(19680);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}let c=({fieldValue:e,localized:t,path:n})=>{let{dispatchFields:d,setModified:c}=(0,u.useForm)(),{code:f}=(0,l.useLocale)(),{localization:p}=(0,i.useConfig)(),[m,h]=r.useState("number"!=typeof e),g=p&&p.defaultLocale?p.defaultLocale:"en",{t:v}=(0,a.useTranslation)("general");if(!t||f===g||p&&!p.fallback)return null;if(e){let t=!1;if("number"==typeof e&&e>0&&(t=!0),Array.isArray(e)&&e.length>0&&(t=!0),t)return m&&h(!1),null}return r.createElement(o.Banner,null,r.createElement(s.CheckboxInput,{checked:m,id:`field-${n.replace(/\./g,"__")}`,label:v("fallbackToDefaultLocale"),onToggle:()=>{let t=!m;d({path:n,type:"UPDATE",value:t?null:e||0}),c(!0),h(t)}}))}},37182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"filterFields",{enumerable:!0,get:function(){return a}});let r=n(19083),a=e=>{let{fieldSchema:t,fieldTypes:n,filter:a,operation:o,permissions:i,readOnly:l}=e;return t.reduce((e,t)=>{let u=(0,r.fieldIsPresentationalOnly)(t),s=n[t.type];if((u||!t?.hidden&&t?.admin?.disabled!==!0)&&(a&&"function"==typeof a&&a(t)||!a)){t.admin&&"hidden"in t.admin&&t?.admin?.hidden&&(s=n.hidden);let a=(0,r.fieldAffectsData)(t),d=a?i?.[t.name]:i;if(d?.read?.permission===!1)return e;let c=t.admin&&"readOnly"in t.admin?t.admin.readOnly:void 0;l&&!1!==c&&(c=!0),d?.[o]?.permission===!1&&(c=!0),s&&e.push({name:"name"in t?t.name:"",FieldComponent:s,field:t,fieldIsPresentational:u,fieldPermissions:d,isFieldAffectingData:a,readOnly:c})}return e},[])}},13309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(49472),i=n(3994),l=c(n(85541)),u=n(3643),s=c(n(45649)),d=n(37182);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(97393);let p="render-fields",m={rootMargin:"1000px"},h=e=>{let{className:t,fieldTypes:n,forceRender:c,margins:f}=e,{i18n:h,t:g}=(0,a.useTranslation)("general"),[v,b]=(0,r.useState)(!!c),[y,w]=(0,l.default)(m,c),x=!!w?.isIntersecting,k=w?.boundingClientRect?.top<0,P=c||x||k,E=(0,u.useOperation)();(0,r.useEffect)(()=>{P&&!v&&b(!0)},[P,v]);let A="fields"in e?e?.fields:null;if(!A&&"fieldSchema"in e){let{fieldSchema:t,fieldTypes:n,filter:r,permissions:a,readOnly:o}=e;A=(0,d.filterFields)({fieldSchema:t,fieldTypes:n,filter:r,operation:E,permissions:a,readOnly:o})}return A?r.default.createElement("div",{className:[p,t,f&&`${p}--margins-${f}`,!1===f&&`${p}--margins-none`].filter(Boolean).join(" "),ref:y},v&&A.map((t,a)=>{let{FieldComponent:l,field:u,fieldIsPresentational:d,fieldPermissions:f,isFieldAffectingData:p,readOnly:m}=t;return d?r.default.createElement(l,{key:a,...u}):u?r.default.createElement(s.default,{CustomComponent:u?.admin?.components?.Field,DefaultComponent:l,componentProps:{...u,admin:{...u.admin||{},readOnly:m},fieldTypes:n,forceRender:c,indexPath:"indexPath"in e?`${e?.indexPath}.${a}`:`${a}`,path:u.path||(p&&"name"in u?u.name:""),permissions:f},key:a}):r.default.createElement("div",{className:"missing-field",key:a},g("error:noMatchedField",{label:(0,o.fieldAffectsData)(u)?(0,i.getTranslation)(u.label||u.name,h):u.path}))})):null}},48054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RowLabel",{enumerable:!0,get:function(){return u}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994),i=n(66461),l=n(18603),u=({className:e,...t})=>r.default.createElement("span",{className:["row-label",e].filter(Boolean).join(" "),style:{pointerEvents:"none"}},r.default.createElement(s,t)),s=e=>{let{label:t,path:n,rowNumber:u}=e,{i18n:s}=(0,a.useTranslation)(),{getDataByPath:d,getSiblingData:c}=(0,i.useWatchForm)(),f=c(n),p=d(n),m=p||f;return(0,l.isComponent)(t)?r.default.createElement(t,{data:m,index:u,path:n}):r.default.createElement(r.default.Fragment,null,"function"==typeof t?t({data:m,index:u,path:n}):(0,o.getTranslation)(t,s))}},18603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isComponent",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));function a(e){return r.default.isValidElement(e)}},16488:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=function(e){return e&&e.__esModule?e:{default:e}}(n(55182)),o=n(66461);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}n(47884);let l=(0,r.forwardRef)((e,t)=>{let{buttonId:n,children:i,disabled:l,type:u="submit"}=e,s=(0,o.useFormProcessing)(),{disabled:d}=(0,o.useForm)();return r.default.createElement("div",{className:"form-submit"},r.default.createElement(a.default,{ref:t,...e,disabled:!!(l||s||d)||void 0,id:n,type:u},i))}),u=l},45040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WatchChildErrors",{enumerable:!0,get:function(){return s}});let r=l(n(96540)),a=n(49472),o=l(n(32301)),i=n(66461);function l(e){return e&&e.__esModule?e:{default:e}}let u=(e,t)=>{let n=t.reduce((t,n)=>((0,a.fieldHasSubFields)(n)&&(0,a.fieldAffectsData)(n)?t.push(e?`${e}.${n.name}.`:`${n.name}.`):(0,a.fieldHasSubFields)(n)?t.push(...u(e,n.fields)):"tabs"===n.type?n.tabs.forEach(n=>{let r=e;(0,a.tabHasName)(n)&&(r=e?`${e}.${n.name}`:n.name),t.push(...u(r,n.fields))}):(0,a.fieldAffectsData)(n)&&t.push(e?`${e}.${n.name}`:n.name),t),[]);return n},s=({fieldSchema:e,path:t,setErrorCount:n})=>{let[a]=(0,i.useAllFormFields)(),l=(0,i.useFormSubmitted)(),[s]=r.default.useState(()=>e?u(t,e):[`${t}.`]);return(0,o.default)(()=>{let e=0;l&&Object.entries(a).forEach(([t])=>{let n=s.some(e=>e.endsWith(".")?t.startsWith(e):t===e);n&&"valid"in a[t]&&!a[t].valid&&(e+=1)}),n(e)},250,[a,l,s]),null}},16931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ArrayRow",{enumerable:!0,get:function(){return g}});let r=m(n(96540)),a=n(43992),o=n(3994),i=n(25),l=n(77762),u=n(79739),s=n(66461),d=n(57816),c=m(n(13309)),f=n(48054),p=m(n(19571));function m(e){return e&&e.__esModule?e:{default:e}}n(91148);let h="array-field",g=({CustomRowLabel:e,addRow:t,attributes:n,duplicateRow:m,fieldTypes:g,fields:v,forceRender:b=!1,hasMaxRows:y,indexPath:w,labels:x,listeners:k,moveRow:P,path:E,permissions:A,readOnly:D,removeRow:O,row:C,rowCount:M,rowIndex:S,setCollapse:j,setNodeRef:T,transform:_})=>{let N=`${E}.${S}`,{i18n:L}=(0,a.useTranslation)(),R=(0,s.useFormSubmitted)(),z=`${(0,o.getTranslation)(x.singular,L)} ${String(S+1).padStart(2,"0")}`,I=C.childErrorPaths?.size,F=R&&I>0,W=[`${h}__row`,F?`${h}__row--has-errors`:`${h}__row--no-errors`].filter(Boolean).join(" ");return r.default.createElement("div",{id:`${E.split(".").join("-")}-row-${S}`,key:`${E}-row-${C.id}`,ref:T,style:{transform:_}},r.default.createElement(l.Collapsible,{actions:D?void 0:r.default.createElement(i.ArrayAction,{addRow:t,duplicateRow:m,hasMaxRows:y,index:S,moveRow:P,removeRow:O,rowCount:M}),className:W,collapsed:C.collapsed,collapsibleStyle:F?"error":"default",dragHandleProps:{id:C.id,attributes:n,listeners:k},header:r.default.createElement("div",{className:`${h}__row-header`},r.default.createElement(f.RowLabel,{label:e||z,path:N,rowNumber:S+1}),F&&r.default.createElement(u.ErrorPill,{count:I,withMessage:!0})),onToggle:e=>j(C.id,e)},r.default.createElement(p.default,{name:`${N}.id`,value:C.id}),r.default.createElement(c.default,{className:`${h}__fields`,fieldSchema:v.map(e=>({...e,path:(0,d.createNestedFieldPath)(N,e)})),fieldTypes:g,forceRender:b,indexPath:w,margins:"small",permissions:A?.fields,readOnly:D})))}},4706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=n(95924),u=E(n(87768)),s=E(n(55182)),d=E(n(53821)),c=E(n(18430)),f=n(79739),p=n(86919),m=n(50444),h=n(62519),g=E(n(25218)),v=E(n(98114)),b=n(66461),y=n(4755),w=E(n(27085)),x=E(n(63285)),k=n(82187),P=n(16931);function E(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}n(91148);let D="array-field",O=(0,x.default)(e=>{let{name:t,admin:{className:n,components:x,condition:E,description:A,readOnly:O},fieldTypes:C,fields:M,forceRender:S=!1,indexPath:j,localized:T,maxRows:_,minRows:N,path:L,permissions:R,required:z,validate:I=o.array}=e,F=L||t,W=e?.label??e?.labels?.singular,B=x?.RowLabel||void 0,{setDocFieldPreferences:U}=(0,m.useDocumentInfo)(),{addFieldRow:V,dispatchFields:$,removeFieldRow:H,setModified:q}=(0,b.useForm)(),Y=(0,b.useFormSubmitted)(),{code:G}=(0,h.useLocale)(),{i18n:K,t:X}=(0,a.useTranslation)("fields"),{localization:Q}=(0,p.useConfig)(),J=(()=>{if(Q&&Q.fallback){let e=Q.defaultLocale||"en";return G===e}return!0})(),Z=e?.labels?e.labels:e?.label?{plural:void 0,singular:e.label}:{plural:X("rows"),singular:X("row")},ee=(0,r.useCallback)((e,t)=>!J&&null===e||I(e,{...t,maxRows:_,minRows:N,required:z}),[_,N,z,I,J]),{errorMessage:et,rows:en=[],showError:er,valid:ea,value:eo}=(0,w.default)({condition:E,hasRows:!0,path:F,validate:ee}),ei=(0,r.useCallback)(async e=>{await V({path:F,rowIndex:e}),q(!0),setTimeout(()=>{(0,l.scrollToID)(`${F}-row-${e+1}`)},0)},[V,F,q]),el=(0,r.useCallback)(e=>{$({path:F,rowIndex:e,type:"DUPLICATE_ROW"}),q(!0),setTimeout(()=>{(0,l.scrollToID)(`${F}-row-${e}`)},0)},[$,F,q]),eu=(0,r.useCallback)(e=>{H({path:F,rowIndex:e}),q(!0)},[H,F,q]),es=(0,r.useCallback)((e,t)=>{$({moveFromIndex:e,moveToIndex:t,path:F,type:"MOVE_ROW"}),q(!0)},[$,F,q]),ed=(0,r.useCallback)(e=>{$({collapsed:e,path:F,setDocFieldPreferences:U,type:"SET_ALL_ROWS_COLLAPSED"})},[$,F,U]),ec=(0,r.useCallback)((e,t)=>{$({collapsed:t,path:F,rowID:e,setDocFieldPreferences:U,type:"SET_ROW_COLLAPSED"})},[$,F,U]),ef=_&&en.length>=_,ep=en.reduce((e,t)=>e+(t?.childErrorPaths?.size||0),0)+(ea?0:1),em=Y&&ep>0,eh=O&&0===en.length,eg=en.length0&&r.default.createElement(f.ErrorPill,{count:ep,withMessage:!0})),en.length>0&&r.default.createElement("ul",{className:`${D}__header-actions`},r.default.createElement("li",null,r.default.createElement("button",{className:`${D}__header-action`,onClick:()=>ed(!0),type:"button"},X("collapseAll"))),r.default.createElement("li",null,r.default.createElement("button",{className:`${D}__header-action`,onClick:()=>ed(!1),type:"button"},X("showAll"))))),r.default.createElement(v.default,{className:`field-description-${F.replace(/\./g,"__")}`,description:A,path:F,value:eo})),r.default.createElement(y.NullifyLocaleField,{fieldValue:eo,localized:T,path:F}),(en.length>0||!ea&&(eh||eg))&&r.default.createElement(d.default,{className:`${D}__draggable-rows`,ids:en.map(e=>e.id),onDragEnd:({moveFromIndex:e,moveToIndex:t})=>es(e,t)},en.map((e,t)=>r.default.createElement(c.default,{disabled:O,id:e.id,key:e.id},n=>r.default.createElement(P.ArrayRow,{...n,CustomRowLabel:B,addRow:ei,duplicateRow:el,fieldTypes:C,fields:M,forceRender:S,hasMaxRows:ef,indexPath:j,labels:Z,moveRow:es,path:F,permissions:R,readOnly:O,removeRow:eu,row:e,rowCount:en.length,rowIndex:t,setCollapse:ec}))),!ea&&r.default.createElement(r.default.Fragment,null,eh&&r.default.createElement(u.default,null,X("validation:fieldHasNo",{label:(0,i.getTranslation)(Z.plural,K)})),eg&&r.default.createElement(u.default,{type:"error"},X("validation:requiresAtLeast",{count:N,label:(0,i.getTranslation)(N?Z.plural:Z.singular,K)||X(N>1?"general:row":"general:rows")})))),!O&&!ef&&r.default.createElement(s.default,{buttonStyle:"icon-label",className:`${D}__add-row`,icon:"plus",iconPosition:"left",iconStyle:"with-border",onClick:()=>ei(eo||0)},X("addLabel",{label:(0,i.getTranslation)(Z.singular,K)})))})},39512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BlockRow",{enumerable:!0,get:function(){return v}});let r=h(n(96540)),a=n(43992),o=n(3994),i=n(77762),l=n(79739),u=h(n(36669)),s=n(66461),d=n(57816),c=h(n(13309)),f=h(n(19571)),p=n(19256),m=h(n(21151));function h(e){return e&&e.__esModule?e:{default:e}}let g="blocks-field",v=({addRow:e,attributes:t,blockToRender:n,blocks:h,duplicateRow:v,fieldTypes:b,forceRender:y,hasMaxRows:w,indexPath:x,labels:k,listeners:P,moveRow:E,path:A,permissions:D,readOnly:O,removeRow:C,row:M,rowCount:S,rowIndex:j,setCollapse:T,setNodeRef:_,transform:N})=>{let L=`${A}.${j}`,{i18n:R}=(0,a.useTranslation)(),z=(0,s.useFormSubmitted)(),I=M.childErrorPaths?.size,F=z&&I>0,W=[`${g}__row`,F?`${g}__row--has-errors`:`${g}__row--no-errors`].filter(Boolean).join(" ");return r.default.createElement("div",{id:`${A.split(".").join("-")}-row-${j}`,key:`${A}-row-${j}`,ref:_,style:{transform:N}},r.default.createElement(i.Collapsible,{actions:O?void 0:r.default.createElement(p.RowActions,{addRow:e,blockType:M.blockType,blocks:h,duplicateRow:v,hasMaxRows:w,labels:k,moveRow:E,removeRow:C,rowCount:S,rowIndex:j}),className:W,collapsed:M.collapsed,collapsibleStyle:F?"error":"default",dragHandleProps:{id:M.id,attributes:t,listeners:P},header:r.default.createElement("div",{className:`${g}__block-header`},r.default.createElement("span",{className:`${g}__block-number`},String(j+1).padStart(2,"0")),r.default.createElement(u.default,{className:`${g}__block-pill ${g}__block-pill-${M.blockType}`,pillStyle:"white"},(0,o.getTranslation)(n.labels.singular,R)),r.default.createElement(m.default,{path:`${L}.blockName`,readOnly:O}),F&&r.default.createElement(l.ErrorPill,{count:I,withMessage:!0})),key:M.id,onToggle:e=>T(M.id,e)},r.default.createElement(f.default,{name:`${L}.id`,value:M.id}),r.default.createElement(c.default,{className:`${g}__fields`,fieldSchema:n.fields.map(e=>({...e,path:(0,d.createNestedFieldPath)(L,e)})),fieldTypes:b,forceRender:y,indexPath:x,margins:"small",permissions:D?.blocks?.[M.blockType]?.fields,readOnly:O})))}},34177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(43992),o=i(n(74922));function i(e){return e&&e.__esModule?e:{default:e}}n(42107);let l="block-search",u=e=>{let{setSearchTerm:t}=e,{t:n}=(0,a.useTranslation)("fields");return r.default.createElement("div",{className:l},r.default.createElement("input",{className:`${l}__input`,onChange:e=>{t(e.target.value)},placeholder:n("searchForBlock")}),r.default.createElement(o.default,null))}},23815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BlocksDrawer",{enumerable:!0,get:function(){return h}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(3994),l=n(27791),u=n(54528),s=c(n(93409)),d=c(n(34177));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(63605);let p="blocks-drawer",m=(e,t)=>"string"==typeof e.labels.singular?e.labels.singular.toLowerCase():"object"==typeof e.labels.singular?(0,i.getTranslation)(e.labels.singular,t).toLowerCase():"",h=e=>{let{addRow:t,addRowIndex:n,blocks:c,drawerSlug:f,labels:h}=e,[g,v]=(0,a.useState)(""),[b,y]=(0,a.useState)(c),{closeModal:w,isModalOpen:x}=(0,r.useModal)(),{i18n:k,t:P}=(0,o.useTranslation)("fields");return(0,a.useEffect)(()=>{x||v("")},[x]),(0,a.useEffect)(()=>{let e=g.toLowerCase(),t=c.reduce((t,n)=>{let r=m(n,k);return r.includes(e)&&t.push(n),t},[]);y(t)},[g,c,k]),a.default.createElement(l.Drawer,{slug:f,title:P("addLabel",{label:(0,i.getTranslation)(h.singular,k)})},a.default.createElement(d.default,{setSearchTerm:v}),a.default.createElement("div",{className:`${p}__blocks-wrapper`},a.default.createElement("ul",{className:`${p}__blocks`},b?.map((e,r)=>{let{imageAltText:o,imageURL:l,labels:d,slug:c}=e;return a.default.createElement("li",{className:`${p}__block`,key:r},a.default.createElement(u.ThumbnailCard,{alignLabel:"center",label:i.getTranslation(d.singular,k),onClick:()=>{t(n,c),w(f)},thumbnail:l?a.default.createElement("img",{alt:o,src:l}):a.default.createElement("div",{className:`${p}__default-image`},a.default.createElement(s.default,null))}))}))))}},19256:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RowActions",{enumerable:!0,get:function(){return u}});let r=n(95767),a=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),o=n(25),i=n(45074),l=n(23815),u=e=>{let{addRow:t,blockType:n,blocks:u,duplicateRow:s,hasMaxRows:d,labels:c,moveRow:f,removeRow:p,rowCount:m,rowIndex:h}=e,{closeModal:g,openModal:v}=(0,r.useModal)(),b=(0,i.useDrawerSlug)("blocks-drawer"),[y,w]=a.default.useState(null);return a.default.createElement(a.default.Fragment,null,a.default.createElement(l.BlocksDrawer,{addRow:(e,n)=>{"function"==typeof t&&t(y,n),g(b)},addRowIndex:h,blocks:u,drawerSlug:b,labels:c}),a.default.createElement(o.ArrayAction,{addRow:e=>{w(e),v(b)},duplicateRow:()=>s(h,n),hasMaxRows:d,index:h,moveRow:f,removeRow:p,rowCount:m}))}},21151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(43992),o=i(n(27085));function i(e){return e&&e.__esModule?e:{default:e}}n(12485);let l="section-title",u=e=>{let{customOnChange:t,customValue:n,path:i,readOnly:u}=e,{setValue:s,value:d}=(0,o.default)({path:i}),{t:c}=(0,a.useTranslation)("general"),f=[l].filter(Boolean).join(" ");return r.default.createElement("div",{className:f,"data-value":n||d},r.default.createElement("input",{className:`${l}__input`,id:i,name:i,onChange:t||(e=>{e.stopPropagation(),e.preventDefault(),s(e.target.value)}),placeholder:c("untitled"),readOnly:u,type:"text",value:n||d||""}))}},3919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=n(95924),u=O(n(87768)),s=O(n(55182)),d=O(n(53821)),c=O(n(18430)),f=n(27791),p=n(45074),m=n(79739),h=n(86919),g=n(50444),v=n(62519),b=O(n(25218)),y=O(n(98114)),w=n(66461),x=n(4755),k=O(n(27085)),P=O(n(63285)),E=n(82187),A=n(39512),D=n(23815);function O(e){return e&&e.__esModule?e:{default:e}}function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}n(35583);let M="blocks-field",S=(0,P.default)(e=>{let{i18n:t,t:n}=(0,a.useTranslation)("fields"),{name:P,admin:{className:O,condition:C,description:S,readOnly:j},blocks:T,fieldTypes:_,forceRender:N=!1,indexPath:L,label:R,labels:z,localized:I,maxRows:F,minRows:W,path:B,permissions:U,required:V,validate:$=o.blocks}=e,H=B||P,{setDocFieldPreferences:q}=(0,g.useDocumentInfo)(),{addFieldRow:Y,dispatchFields:G,removeFieldRow:K,setModified:X}=(0,w.useForm)(),{code:Q}=(0,v.useLocale)(),{localization:J}=(0,h.useConfig)(),Z=(0,p.useDrawerSlug)("blocks-drawer"),ee=(0,w.useFormSubmitted)(),et={plural:n("blocks"),singular:n("block"),...z},en=(()=>{if(J&&J.fallback){let e=J.defaultLocale||"en";return Q===e}return!0})(),er=(0,r.useCallback)((e,t)=>!en&&null===e||$(e,{...t,maxRows:F,minRows:W,required:V}),[F,W,V,$,en]),{errorMessage:ea,rows:eo=[],showError:ei,valid:el,value:eu}=(0,k.default)({condition:C,hasRows:!0,path:H,validate:er}),es=(0,r.useCallback)(async(e,t)=>{await Y({data:{blockType:t},path:H,rowIndex:e}),X(!0),setTimeout(()=>{(0,l.scrollToID)(`${H}-row-${e+1}`)},0)},[Y,H,X]),ed=(0,r.useCallback)(e=>{G({path:H,rowIndex:e,type:"DUPLICATE_ROW"}),X(!0),setTimeout(()=>{(0,l.scrollToID)(`${H}-row-${e+1}`)},0)},[G,H,X]),ec=(0,r.useCallback)(e=>{K({path:H,rowIndex:e}),X(!0)},[H,K,X]),ef=(0,r.useCallback)((e,t)=>{G({moveFromIndex:e,moveToIndex:t,path:H,type:"MOVE_ROW"}),X(!0)},[G,H,X]),ep=(0,r.useCallback)(e=>{G({collapsed:e,path:H,setDocFieldPreferences:q,type:"SET_ALL_ROWS_COLLAPSED"})},[G,H,q]),em=(0,r.useCallback)((e,t)=>{G({collapsed:t,path:H,rowID:e,setDocFieldPreferences:q,type:"SET_ROW_COLLAPSED"})},[G,H,q]),eh=F&&eo.length>=F,eg=eo.reduce((e,t)=>e+(t?.childErrorPaths?.size||0),0),ev=ee&&eg+(el?0:1)>0,eb=eo.length0&&r.default.createElement(m.ErrorPill,{count:eg,withMessage:!0})),eo.length>0&&r.default.createElement("ul",{className:`${M}__header-actions`},r.default.createElement("li",null,r.default.createElement("button",{className:`${M}__header-action`,onClick:()=>ep(!0),type:"button"},n("collapseAll"))),r.default.createElement("li",null,r.default.createElement("button",{className:`${M}__header-action`,onClick:()=>ep(!1),type:"button"},n("showAll"))))),r.default.createElement(y.default,{description:S,path:H,value:eu})),r.default.createElement(x.NullifyLocaleField,{fieldValue:eu,localized:I,path:H}),(eo.length>0||!el&&(ey||eb))&&r.default.createElement(d.default,{className:`${M}__rows`,ids:eo.map(e=>e.id),onDragEnd:({moveFromIndex:e,moveToIndex:t})=>ef(e,t)},eo.map((e,t)=>{let{blockType:n}=e,a=T.find(e=>e.slug===n);return a?r.default.createElement(c.default,{disabled:j,id:e.id,key:e.id},n=>r.default.createElement(A.BlockRow,{...n,addRow:es,blockToRender:a,blocks:T,duplicateRow:ed,fieldTypes:_,forceRender:N,hasMaxRows:eh,indexPath:L,labels:et,moveRow:ef,path:H,permissions:U,readOnly:j,removeRow:ec,row:e,rowCount:eo.length,rowIndex:t,setCollapse:em})):null}),!en&&r.default.createElement(r.default.Fragment,null,eb&&r.default.createElement(u.default,{type:"error"},n("validation:requiresAtLeast",{count:W,label:(0,i.getTranslation)(1===W||void 0===W?et.singular:et.plural,t)})),ey&&r.default.createElement(u.default,null,n("validation:fieldHasNo",{label:(0,i.getTranslation)(et.plural,t)})))),!j&&!eh&&r.default.createElement(r.Fragment,null,r.default.createElement(f.DrawerToggler,{className:`${M}__drawer-toggler`,slug:Z},r.default.createElement(s.default,{buttonStyle:"icon-label",el:"span",icon:"plus",iconPosition:"left",iconStyle:"with-border"},n("addLabel",{label:(0,i.getTranslation)(et.singular,t)}))),r.default.createElement(D.BlocksDrawer,{addRow:es,addRowIndex:eo?.length||0,blocks:T,drawerSlug:Z,labels:et})))})},19680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CheckboxInput",{enumerable:!0,get:function(){return s}});let r=l(n(96540)),a=l(n(83413)),o=l(n(40441)),i=l(n(16034));function l(e){return e&&e.__esModule?e:{default:e}}n(21888);let u="checkbox-input",s=e=>{let{id:t,name:n,Label:l,afterInput:s,"aria-label":d,beforeInput:c,checked:f,className:p,inputRef:m,label:h,onToggle:g,partialChecked:v,readOnly:b,required:y}=e,w=l||i.default;return r.default.createElement("div",{className:[u,p,(f||v)&&`${u}--checked`,b&&`${u}--read-only`].filter(Boolean).join(" ")},r.default.createElement("div",{className:`${u}__input`},Array.isArray(c)&&c.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("input",{"aria-label":d,defaultChecked:!!f,disabled:b,id:t,name:n,onInput:g,ref:m,type:"checkbox"}),Array.isArray(s)&&s.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("span",{className:`${u}__icon ${v?"partial":"check"}`},!v&&r.default.createElement(a.default,null),v&&r.default.createElement(o.default,null))),h&&r.default.createElement(w,{htmlFor:t,label:h,required:y}))}},73824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=p(n(25218)),u=p(n(98114)),s=p(n(27085)),d=p(n(63285)),c=n(82187),f=n(19680);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(21888);let h="checkbox",g=(0,d.default)(e=>{let{name:t,admin:{className:n,components:{Error:d,Label:p,afterInput:m,beforeInput:g}={},condition:v,description:b,readOnly:y,style:w,width:x}={},disableFormData:k,label:P,onChange:E,path:A,required:D,validate:O=o.checkbox}=e,C=d||l.default,{i18n:M}=(0,a.useTranslation)(),S=A||t,j=(0,r.useCallback)((e,t)=>O(e,{...t,required:D}),[O,D]),{errorMessage:T,setValue:_,showError:N,value:L}=(0,s.default)({condition:v,disableFormData:k,path:S,validate:j}),R=(0,r.useCallback)(()=>{y||(_(!L),"function"==typeof E&&E(!L))},[E,y,_,L]),z=`field-${S.replace(/\./g,"__")}`;return r.default.createElement("div",{className:[c.fieldBaseClass,h,N&&"error",n,L&&`${h}--checked`,y&&`${h}--read-only`].filter(Boolean).join(" "),style:{...w,width:x}},r.default.createElement("div",{className:`${h}__error-wrap`},r.default.createElement(C,{alignCaret:"left",message:T,showError:N})),r.default.createElement(f.CheckboxInput,{Label:p,afterInput:m,beforeInput:g,checked:!!L,id:z,label:(0,i.getTranslation)(P||t,M),name:S,onToggle:R,readOnly:y,required:D}),r.default.createElement(u.default,{description:b,path:S,value:L}))})},14684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=n(32342),i=f(n(25218)),l=f(n(98114)),u=f(n(16034)),s=f(n(27085)),d=f(n(63285)),c=n(82187);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(89908);let m={js:"javascript",ts:"typescript"},h=(0,d.default)(e=>{let{name:t,admin:{className:n,components:{Error:d,Label:f}={},condition:p,description:h,editorOptions:g,language:v,readOnly:b,style:y,width:w}={},label:x,path:k,required:P,validate:E=a.code}=e,A=d||i.default,D=f||u.default,O=k||t,C=(0,r.useCallback)((e,t)=>E(e,{...t,required:P}),[E,P]),{errorMessage:M,setValue:S,showError:j,value:T}=(0,s.default)({condition:p,path:O,validate:C});return r.default.createElement("div",{className:[c.fieldBaseClass,"code-field",n,j&&"error",b&&"read-only"].filter(Boolean).join(" "),style:{...y,width:w}},r.default.createElement(A,{message:M,showError:j}),r.default.createElement(D,{htmlFor:`field-${O}`,label:x,required:P}),r.default.createElement(o.CodeEditor,{defaultLanguage:m[v]||v,onChange:b?()=>null:e=>S(e),options:g,readOnly:b,value:T||""}),r.default.createElement(l.default,{description:h,path:O,value:T}))})},42751:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(77762),o=n(79739),i=n(50444),l=n(71849),u=g(n(98114)),s=n(66461),d=n(57816),c=g(n(13309)),f=n(48054),p=n(45040),m=g(n(63285)),h=n(82187);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}n(63861);let b="collapsible-field",y=(0,m.default)(e=>{let{admin:{className:t,description:n,initCollapsed:m,readOnly:g},fieldTypes:v,fields:y,indexPath:w,label:x,path:k,permissions:P}=e,{getPreference:E,setPreference:A}=(0,l.usePreferences)(),{preferencesKey:D}=(0,i.useDocumentInfo)(),[O,C]=(0,r.useState)(),M=`collapsible-${w.replace(/\./g,"__")}`,[S,j]=(0,r.useState)(0),T=(0,s.useFormSubmitted)(),_=(0,r.useCallback)(async e=>{let t=await E(D);A(D,{...t,...k?{fields:{...t?.fields||{},[k]:{...t?.fields?.[k],collapsed:e}}}:{fields:{...t?.fields||{},[M]:{...t?.fields?.[M],collapsed:e}}}})},[D,M,E,A,k]);if((0,r.useEffect)(()=>{let e=async()=>{let e=await E(D);if(e){let t=k?e?.fields?.[k]?.collapsed:e?.fields?.[M]?.collapsed;C(!!t)}else C("boolean"==typeof m&&m)};e()},[E,D,M,m,k]),"boolean"!=typeof O)return null;let N=T&&S>0;return r.default.createElement("div",{className:[h.fieldBaseClass,b,t,N?`${b}--has-error`:`${b}--has-no-error`].filter(Boolean).join(" "),id:`field-${M}${k?`-${k.replace(/\./g,"__")}`:""}`},r.default.createElement(p.WatchChildErrors,{fieldSchema:y,path:k,setErrorCount:j}),r.default.createElement(a.Collapsible,{className:`${b}__collapsible`,collapsibleStyle:S>0?"error":"default",header:r.default.createElement("div",{className:`${b}__row-label-wrap`},r.default.createElement(f.RowLabel,{label:x,path:k}),S>0&&r.default.createElement(o.ErrorPill,{count:S,withMessage:!0})),initCollapsed:O,onToggle:_},r.default.createElement(c.default,{fieldSchema:y.map(e=>({...e,path:(0,d.createNestedFieldPath)(k,e)})),fieldTypes:v,forceRender:!0,indexPath:w,margins:"small",permissions:P,readOnly:g})),r.default.createElement(u.default,{description:n,path:k}))})},1914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=d(n(25218)),i=n(66461),l=d(n(16034)),u=d(n(27085));n(60472);let s=n(82187);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let f=e=>{let{disabled:t}=e,n=(0,i.useFormFields)(([e])=>e.password),{t:d}=(0,a.useTranslation)("fields"),c=(0,r.useCallback)(e=>e?e===n?.value||d("passwordsDoNotMatch"):d("validation:required"),[n,d]),{errorMessage:f,setValue:p,showError:m,value:h}=(0,u.default)({disableFormData:!0,path:"confirm-password",validate:c});return r.default.createElement("div",{className:[s.fieldBaseClass,"confirm-password",m&&"error"].filter(Boolean).join(" ")},r.default.createElement(o.default,{message:f,showError:m}),r.default.createElement(l.default,{htmlFor:"field-confirm-password",label:d("authentication:confirmPassword"),required:!0}),r.default.createElement("input",{autoComplete:"off",disabled:!!t,id:"field-confirm-password",name:"confirm-password",onChange:p,type:"password",value:h||""}))}},92712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DateTimeInput",{enumerable:!0,get:function(){return p}});let r=c(n(96540)),a=n(43992),o=n(3994),i=c(n(69100)),l=c(n(25218)),u=c(n(98114)),s=c(n(16034)),d=n(82187);function c(e){return e&&e.__esModule?e:{default:e}}n(52268);let f="date-time-field",p=e=>{let{className:t,components:{Error:n,Label:c,afterInput:p,beforeInput:m}={},datePickerProps:h,description:g,errorMessage:v,label:b,onChange:y,path:w,placeholder:x,readOnly:k,required:P,showError:E,style:A,value:D,width:O}=e,C=n||l.default,M=c||s.default,{i18n:S}=(0,a.useTranslation)();return r.default.createElement("div",{className:[d.fieldBaseClass,f,t,E&&`${f}--has-error`,k&&"read-only"].filter(Boolean).join(" "),style:{...A,width:O}},r.default.createElement("div",{className:`${f}__error-wrap`},r.default.createElement(C,{message:v,showError:E})),r.default.createElement(M,{htmlFor:w,label:b,required:P}),r.default.createElement("div",{className:`${f}__input-wrapper`,id:`field-${w.replace(/\./g,"__")}`},Array.isArray(m)&&m.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement(i.default,{...h,onChange:y,placeholder:(0,o.getTranslation)(x,S),readOnly:k,value:D}),Array.isArray(p)&&p.map((e,t)=>r.default.createElement(e,{key:t}))),r.default.createElement(u.default,{description:g,path:w,value:D}))}},43192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=u(n(27085)),i=u(n(63285)),l=n(92712);function u(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(52268);let d=(0,i.default)(e=>{let{name:t,admin:{className:n,components:i,condition:u,date:s,description:d,placeholder:c,readOnly:f,style:p,width:m}={},label:h,path:g,required:v,validate:b=a.date}=e,y=g||t,w=(0,r.useCallback)((e,t)=>b(e,{...t,required:v}),[b,v]),{errorMessage:x,setValue:k,showError:P,value:E}=(0,o.default)({condition:u,path:y,validate:w});return r.default.createElement(l.DateTimeInput,{className:n,components:i,datePickerProps:s,description:d,errorMessage:x,label:h,onChange:e=>{f||k(e?.toISOString()||null)},path:y,placeholder:c,readOnly:f,required:v,showError:P,style:p,value:E,width:m})})},23067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=p(n(25218)),u=p(n(98114)),s=p(n(16034)),d=p(n(27085)),c=p(n(63285)),f=n(82187);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(60725);let h=(0,c.default)(e=>{let{name:t,admin:{autoComplete:n,className:c,components:{Error:p,Label:m,afterInput:h,beforeInput:g}={},condition:v,description:b,placeholder:y,readOnly:w,style:x,width:k}={},label:P,path:E,required:A,validate:D=o.email}=e,{i18n:O}=(0,a.useTranslation)(),C=E||t,M=(0,r.useCallback)((e,t)=>D(e,{...t,required:A}),[D,A]),S=(0,d.default)({condition:v,path:C,validate:M}),{errorMessage:j,setValue:T,showError:_,value:N}=S,L=p||l.default,R=m||s.default;return r.default.createElement("div",{className:[f.fieldBaseClass,"email",c,_&&"error",w&&"read-only"].filter(Boolean).join(" "),style:{...x,width:k}},r.default.createElement(L,{message:j,showError:_}),r.default.createElement(R,{htmlFor:`field-${C.replace(/\./g,"__")}`,label:P,required:A}),r.default.createElement("div",{className:"input-wrapper"},Array.isArray(g)&&g.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("input",{autoComplete:n,disabled:!!w,id:`field-${C.replace(/\./g,"__")}`,name:C,onChange:T,placeholder:(0,i.getTranslation)(y,O),type:"email",value:N||""}),Array.isArray(h)&&h.map((e,t)=>r.default.createElement(e,{key:t}))),r.default.createElement(u.default,{description:b,path:C,value:N}))})},24268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=b(n(96540)),a=n(43992),o=n(3994),i=n(87381),l=n(79739),u=b(n(98114)),s=n(66461),d=n(57816),c=b(n(13309)),f=n(45040),p=b(n(63285)),m=n(40458),h=n(96688),g=n(82187);n(21358);let v=n(54447);function b(e){return e&&e.__esModule?e:{default:e}}let y="group-field",w=(0,p.default)(e=>{let{name:t,admin:{className:n,description:p,hideGutter:b=!1,readOnly:w,style:x,width:k},fieldTypes:P,fields:E,forceRender:A=!1,indexPath:D,label:O,path:C,permissions:M}=e,S=(0,i.useCollapsible)(),j=(0,v.useGroup)(),T=(0,m.useRow)(),_=(0,h.useTabs)(),{i18n:N}=(0,a.useTranslation)(),L=(0,s.useFormSubmitted)(),[R,z]=r.default.useState(void 0),I=L&&R>0,F=C||t;return r.default.createElement("div",{className:[g.fieldBaseClass,y,!(S||j||T)&&`${y}--top-level`,S&&`${y}--within-collapsible`,j&&`${y}--within-group`,T&&`${y}--within-row`,_&&`${y}--within-tab`,!b&&j&&`${y}--gutter`,I&&`${y}--has-error`,n].filter(Boolean).join(" "),id:`field-${F.replace(/\./g,"__")}`,style:{...x,width:k}},r.default.createElement(f.WatchChildErrors,{fieldSchema:E,path:F,setErrorCount:z}),r.default.createElement(v.GroupProvider,null,r.default.createElement("div",{className:`${y}__wrap`},r.default.createElement("div",{className:`${y}__header`},(O||p)&&r.default.createElement("header",null,O&&r.default.createElement("h3",{className:`${y}__title`},(0,o.getTranslation)(O,N)),r.default.createElement(u.default,{className:`field-description-${F.replace(/\./g,"__")}`,description:p,path:F,value:null})),I&&r.default.createElement(l.ErrorPill,{count:R,withMessage:!0})),r.default.createElement(c.default,{fieldSchema:E.map(e=>({...e,path:(0,d.createNestedFieldPath)(F,e)})),fieldTypes:P,forceRender:A,indexPath:D,margins:"small",permissions:M?.fields,readOnly:w}))))})},54447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{GroupProvider:function(){return i},useGroup:function(){return l},default:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)(!1),i=({children:e,withinGroup:t=!0})=>r.default.createElement(o.Provider,{value:t},e),l=()=>(0,r.useContext)(o),u=o},19571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=i(n(27085)),o=i(n(63285));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}let u=(0,o.default)(e=>{let{name:t,disableModifyingForm:n=!0,path:o,value:i}=e,l=o||t,{setValue:u,value:s}=(0,a.default)({path:l});return(0,r.useEffect)(()=>{void 0!==i&&u(i,n)},[i,u,n]),r.default.createElement("input",{id:`field-${l.replace(/\./g,"__")}`,name:l,onChange:u,type:"hidden",value:s||""})})},41583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=n(32342),i=f(n(25218)),l=f(n(98114)),u=f(n(16034)),s=f(n(27085)),d=f(n(63285)),c=n(82187);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(13747);let m=(0,d.default)(e=>{let{name:t,admin:{className:n,components:{Error:d,Label:f}={},condition:p,description:m,editorOptions:h,readOnly:g,style:v,width:b}={},label:y,path:w,required:x,validate:k=a.json}=e,P=d||i.default,E=f||u.default,A=w||t,[D,O]=(0,r.useState)(),[C,M]=(0,r.useState)(),S=(0,r.useCallback)((e,t)=>k(e,{...t,jsonError:C,required:x}),[k,x,C]),{errorMessage:j,initialValue:T,setValue:_,showError:N,value:L}=(0,s.default)({condition:p,path:A,validate:S}),R=(0,r.useCallback)(e=>{if(!g){O(e);try{_(JSON.parse(e.trim()||"{}")),M(void 0)}catch(e){M(e)}}},[g,_,O]);return(0,r.useEffect)(()=>{O(JSON.stringify(L||T,null,2))},[T,L]),r.default.createElement("div",{className:[c.fieldBaseClass,"json-field",n,N&&"error",g&&"read-only"].filter(Boolean).join(" "),style:{...v,width:b}},r.default.createElement(P,{message:j,showError:N}),r.default.createElement(E,{htmlFor:`field-${A}`,label:y,required:x}),r.default.createElement(o.CodeEditor,{defaultLanguage:"json",onChange:R,options:h,readOnly:g,value:D}),r.default.createElement(l.default,{description:m,path:A,value:L}))})},72648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=n(18080),u=h(n(78877)),s=h(n(25218)),d=h(n(98114)),c=h(n(16034)),f=h(n(27085)),p=h(n(63285)),m=n(82187);function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(64400);let v=(0,p.default)(e=>{let{name:t,admin:{className:n,components:{Error:p,Label:h,afterInput:g,beforeInput:v}={},condition:b,description:y,placeholder:w,readOnly:x,step:k,style:P,width:E}={},hasMany:A,label:D,max:O,maxRows:C,min:M,minRows:S,path:j,required:T,validate:_=o.number}=e,N=p||s.default,L=h||c.default,{i18n:R,t:z}=(0,a.useTranslation)(),I=j||t,F=(0,r.useCallback)((e,t)=>_(e,{...t,max:O,min:M,required:T}),[_,M,O,T]),{errorMessage:W,setValue:B,showError:U,value:V}=(0,f.default)({condition:b,path:I,validate:F}),$=(0,r.useCallback)(e=>{let t=parseFloat(e.target.value);Number.isNaN(t)?B(""):B(t)},[B]),[H,q]=(0,r.useState)([]),Y=(0,r.useCallback)(e=>{!x&&B(e?Array.isArray(e)?e.map(e=>Number(e.value?.value||e.value)):[Number(e.value?.value||e.value)]:[])},[x,B]);return(0,r.useEffect)(()=>{A&&Array.isArray(V)&&q(V.map((e,t)=>({id:`${e}${t}`,label:`${e}`,value:{toString:()=>`${e}${t}`,value:e?.value||e}})))},[V,A]),r.default.createElement("div",{className:[m.fieldBaseClass,"number",n,U&&"error",x&&"read-only",A&&"has-many"].filter(Boolean).join(" "),style:{...P,width:E}},r.default.createElement(N,{message:W,showError:U}),r.default.createElement(L,{htmlFor:`field-${I.replace(/\./g,"__")}`,label:D,required:T}),A?r.default.createElement(u.default,{className:`field-${I.replace(/\./g,"__")}`,disabled:x,filterOption:(e,t)=>{let n=Array.isArray(V)&&V.length>=C;return(0,l.isNumber)(t)&&!n},isClearable:!0,isCreatable:!0,isMulti:!0,isSortable:!0,noOptionsMessage:({inputValue:e})=>{let t=Array.isArray(V)&&V.length>=C;return t?z("validation:limitReached",{max:C,value:V.length+1}):z("general:noOptions")},numberOnly:!0,onChange:Y,options:[],placeholder:z("general:enterAValue"),showError:U,value:H}):r.default.createElement("div",{className:"input-wrapper"},Array.isArray(v)&&v.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("input",{disabled:x,id:`field-${I.replace(/\./g,"__")}`,name:I,onChange:$,onWheel:e=>{e.target.blur()},placeholder:(0,i.getTranslation)(w,R),step:k,type:"number",value:"number"==typeof V?V:""}),Array.isArray(g)&&g.map((e,t)=>r.default.createElement(e,{key:t}))),r.default.createElement(d.default,{description:y,value:V}))})},64472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=d(n(25218)),i=d(n(16034)),l=d(n(27085)),u=d(n(63285));n(34656);let s=n(82187);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let f=(0,u.default)(e=>{let{name:t,autoComplete:n,className:u,disabled:d,label:c,path:f,required:p,style:m,validate:h=a.password,width:g}=e,v=f||t,b=(0,r.useCallback)((e,t)=>{let n=h(e,{...t,required:p});return n},[h,p]),{errorMessage:y,formProcessing:w,setValue:x,showError:k,value:P}=(0,l.default)({path:v,validate:b});return r.default.createElement("div",{className:[s.fieldBaseClass,"password",u,k&&"error"].filter(Boolean).join(" "),style:{...m,width:g}},r.default.createElement(o.default,{message:y,showError:k}),r.default.createElement(i.default,{htmlFor:`field-${v.replace(/\./g,"__")}`,label:c,required:p}),r.default.createElement("input",{autoComplete:n,disabled:w||d,id:`field-${v.replace(/\./g,"__")}`,name:v,onChange:x,type:"password",value:P||""}))})},66297:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=p(n(25218)),u=p(n(98114)),s=p(n(16034)),d=p(n(27085)),c=p(n(63285)),f=n(82187);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(31023);let h="point",g=(0,c.default)(e=>{let{name:t,admin:{className:n,components:{Error:c,Label:p,afterInput:m,beforeInput:g}={},condition:v,description:b,placeholder:y,readOnly:w,step:x,style:k,width:P}={},label:E,path:A,required:D,validate:O=o.point}=e,C=c||l.default,M=p||s.default,S=A||t,{i18n:j,t:T}=(0,a.useTranslation)("fields"),_=(0,r.useCallback)((e,t)=>O(e,{...t,required:D}),[O,D]),{errorMessage:N,setValue:L,showError:R,value:z=[null,null]}=(0,d.default)({condition:v,path:S,validate:_}),I=(0,r.useCallback)((e,t)=>{let n=parseFloat(e.target.value);Number.isNaN(n)&&(n=e.target.value);let r=[...z];r[t]=n,L(r)},[L,z]);return r.default.createElement("div",{className:[f.fieldBaseClass,h,n,R&&"error",w&&"read-only"].filter(Boolean).join(" "),style:{...k,width:P}},r.default.createElement(C,{message:N,showError:R}),r.default.createElement("ul",{className:`${h}__wrap`},r.default.createElement("li",null,r.default.createElement(M,{htmlFor:`field-longitude-${S.replace(/\./g,"__")}`,label:`${(0,i.getTranslation)(E||t,j)} - ${T("longitude")}`,required:D}),r.default.createElement("div",{className:"input-wrapper"},Array.isArray(g)&&g.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("input",{disabled:w,id:`field-longitude-${S.replace(/\./g,"__")}`,name:`${S}.longitude`,onChange:e=>I(e,0),placeholder:(0,i.getTranslation)(y,j),step:x,type:"number",value:z&&"number"==typeof z[0]?z[0]:""}),Array.isArray(m)&&m.map((e,t)=>r.default.createElement(e,{key:t})))),r.default.createElement("li",null,r.default.createElement(M,{htmlFor:`field-latitude-${S.replace(/\./g,"__")}`,label:`${(0,i.getTranslation)(E||t,j)} - ${T("latitude")}`,required:D}),r.default.createElement("div",{className:"input-wrapper"},Array.isArray(g)&&g.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("input",{disabled:w,id:`field-latitude-${S.replace(/\./g,"__")}`,name:`${S}.latitude`,onChange:e=>I(e,1),placeholder:(0,i.getTranslation)(y,j),step:x,type:"number",value:z&&"number"==typeof z[1]?z[1]:""}),Array.isArray(m)&&m.map((e,t)=>r.default.createElement(e,{key:t}))))),r.default.createElement(u.default,{description:b,path:S,value:z}))})},45499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=d(n(96540)),a=n(49472),o=d(n(25218)),i=d(n(98114)),l=d(n(16034)),u=n(82187),s=d(n(80449));function d(e){return e&&e.__esModule?e:{default:e}}n(25571);let c="radio-group",f=e=>{let{name:t,Error:n,Label:d,className:f,description:p,errorMessage:m,label:h,layout:g="horizontal",onChange:v,options:b,path:y,readOnly:w,required:x,showError:k,style:P,value:E,width:A}=e,D=n||o.default,O=d||l.default,C=y||t;return r.default.createElement("div",{className:[u.fieldBaseClass,c,f,`${c}--layout-${g}`,k&&"error",w&&`${c}--read-only`].filter(Boolean).join(" "),style:{...P,width:A}},r.default.createElement("div",{className:`${c}__error-wrap`},r.default.createElement(D,{message:m,showError:k})),r.default.createElement(O,{htmlFor:`field-${C}`,label:h,required:x}),r.default.createElement("ul",{className:`${c}--group`,id:`field-${C.replace(/\./g,"__")}`},b.map(e=>{let t="";t=(0,a.optionIsObject)(e)?e.value:e;let n=String(t)===String(E);return r.default.createElement("li",{key:`${C} - ${t}`},r.default.createElement(s.default,{isSelected:n,onChange:w?void 0:v,option:(0,a.optionIsObject)(e)?e:{label:e,value:e},path:C}))})),r.default.createElement(i.default,{description:p,path:C,value:E}))}},80449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994);n(37015);let i="radio-input",l=e=>{let{isSelected:t,onChange:n,option:l,path:u}=e,{i18n:s}=(0,a.useTranslation)(),d=[i,t&&`${i}--is-selected`].filter(Boolean).join(" "),c=`field-${u}-${l.value}`;return r.default.createElement("label",{htmlFor:c},r.default.createElement("div",{className:d},r.default.createElement("input",{checked:t,id:c,onChange:()=>"function"==typeof n?n(l.value):null,type:"radio"}),r.default.createElement("span",{className:`${i}__styled-radio`}),r.default.createElement("span",{className:`${i}__label`},(0,o.getTranslation)(l.label,s))))}},32163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=u(n(27085)),i=u(n(63285)),l=u(n(45499));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let d=(0,i.default)(e=>{let{name:t,admin:{className:n,components:{Error:i,Label:u}={},condition:s,description:d,layout:c="horizontal",readOnly:f,style:p,width:m}={},label:h,options:g,path:v,required:b,validate:y=a.radio}=e,w=v||t,x=(0,r.useCallback)((e,t)=>y(e,{...t,options:g,required:b}),[y,g,b]),{errorMessage:k,setValue:P,showError:E,value:A}=(0,o.default)({condition:s,path:w,validate:x});return r.default.createElement(l.default,{Error:i,Label:u,className:n,description:d,errorMessage:k,label:h,layout:c,name:t,onChange:f?void 0:P,options:g,path:w,required:b,showError:E,style:p,value:A,width:m})})},32171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AddNewRelation",{enumerable:!0,get:function(){return y}});let r=v(n(96540)),a=n(43992),o=n(3994),i=h(n(55182)),l=n(1794),u=h(n(12748)),s=v(n(96161)),d=h(n(77665)),c=h(n(29867)),f=n(7695),p=n(86919);n(5309);let m=n(59244);function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function v(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let b="relationship-add-new",y=({dispatchOptions:e,hasMany:t,path:n,relationTo:h,setValue:g,value:v})=>{let y=(0,m.useRelatedCollections)(h),{permissions:w}=(0,f.useAuth)(),[x,k]=(0,r.useState)(!1),[P,E]=(0,r.useState)(),A=y.length>1,[D,O]=(0,r.useState)(()=>A?void 0:y[0]),[C,M]=(0,r.useState)(!1),{i18n:S,t:j}=(0,a.useTranslation)("fields"),[T,_]=(0,r.useState)(!1),N=(0,p.useConfig)(),[L,R,{isDrawerOpen:z,toggleDrawer:I}]=(0,l.useDocumentDrawer)({collectionSlug:D?.slug}),F=(0,r.useCallback)(({doc:n,operation:r})=>{if("create"===r){let r=Array.isArray(h)?{relationTo:D.slug,value:n.id}:n.id,a=Array.isArray(h)&&Array.isArray(v)?!v.some(e=>e&&"object"==typeof e&&e.value===n.id):v!==n.id;a&&(e({collection:D,config:N,docs:[n],i18n:S,sort:!0,type:"ADD"}),t?g([...Array.isArray(v)?v:[],r]):g(r)),E(void 0)}},[h,D,e,S,t,g,v,N]),W=(0,r.useCallback)(e=>{M(e)},[]);return((0,r.useEffect)(()=>{w&&(1===y.length?k(w.collections[y[0].slug].create.permission):k(y.some(e=>w.collections[e.slug].create.permission)))},[w,y]),(0,r.useEffect)(()=>{A&&P&&O(y.find(e=>e.slug===P))},[P,A,y]),(0,r.useEffect)(()=>{A&&D&&(I(),E(void 0))},[I,A,D]),(0,r.useEffect)(()=>{A&&!z&&O(void 0)},[z,A]),x)?r.default.createElement("div",{className:b,id:`${n}-add-new`},1===y.length&&r.default.createElement(r.Fragment,null,r.default.createElement(R,{className:`${b}__add-button`,onClick:()=>_(!1),onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1)},r.default.createElement(d.default,{className:`${b}__tooltip`,show:T},j("addNewLabel",{label:(0,o.getTranslation)(y[0].labels.singular,S)})),r.default.createElement(c.default,null)),r.default.createElement(L,{onSave:F})),y.length>1&&r.default.createElement(r.Fragment,null,r.default.createElement(u.default,{button:r.default.createElement(i.default,{buttonStyle:"none",className:`${b}__add-button`,tooltip:C?void 0:j("addNew")},r.default.createElement(c.default,null)),buttonType:"custom",horizontalAlign:"center",onToggleOpen:W,render:({close:e})=>r.default.createElement(s.ButtonGroup,null,y.map(t=>w.collections[t.slug].create.permission?r.default.createElement(s.Button,{className:`${b}__relation-button--${t.slug}`,key:t.slug,onClick:()=>{e(),E(t.slug)}},(0,o.getTranslation)(t.labels.singular,S)):null)),size:"medium"}),D&&w.collections[D.slug].create.permission&&r.default.createElement(L,{onSave:F}))):null}},59244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRelatedCollections",{enumerable:!0,get:function(){return o}});let r=n(96540),a=n(86919),o=e=>{let t=(0,a.useConfig)(),[n]=(0,r.useState)(()=>e?("string"==typeof e?[e]:e).map(e=>t.collections.find(t=>t.slug===e)):[]);return n}},31309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRelationMap",{enumerable:!0,get:function(){return n}});let n=({hasMany:e,relationTo:t,value:n})=>{let r;let a=Array.isArray(t);if(r=Array.isArray(t)?t.reduce((e,t)=>({...e,[t]:[]}),{}):{[t]:[]},null===n)return r;let o=(e,t)=>{("string"==typeof t||"number"==typeof t)&&"string"==typeof e&&(r[e]?r[e].push(t):r[e]=[t])};return e&&Array.isArray(n)?n.forEach(e=>{a&&"object"==typeof e&&"relationTo"in e&&"value"in e&&o(e.relationTo,e.value),a||"string"!=typeof t||o(t,e)}):a&&Array.isArray(t)?"object"==typeof n&&"relationTo"in n&&"value"in n&&o(n.relationTo,n.value):o(t,n),r}},92676:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findOptionsByValue",{enumerable:!0,get:function(){return n}});let n=({options:e,value:t})=>{if(t){let n;return Array.isArray(t)?t.map(t=>{let n;return e.forEach(e=>{n||(n=e.options.find(e=>"object"==typeof t?e.value===t.value&&e.relationTo===t.relationTo:t===e.value))}),n}):(e.forEach(e=>{n||(n=e.options.find(e=>"object"==typeof t?e.value===t.value&&e.relationTo===t.relationTo:t===e.value))}),n)}}},81199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let r=O(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(32534),l=O(n(22748)),u=n(82730),s=O(n(78877)),d=n(7695),c=n(86919),f=n(92285),p=n(62519),m=O(n(25218)),h=O(n(98114)),g=n(66461),v=O(n(16034)),b=O(n(27085)),y=O(n(63285)),w=n(82187),x=n(32171),k=n(31309),P=n(92676);n(20879);let E=O(n(41025)),A=n(41112),D=n(46045);function O(e){return e&&e.__esModule?e:{default:e}}function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}let M="relationship",S=(0,y.default)(e=>{let{name:t,admin:{allowCreate:n=!0,className:y,components:{Error:O,Label:C}={},condition:S,description:j,isSortable:T=!0,readOnly:_,sortOptions:N,style:L,width:R}={},filterOptions:z,hasMany:I,label:F,path:W,relationTo:B,required:U,validate:V=i.relationship}=e,$=O||m.default,H=C||v.default,q=(0,c.useConfig)(),{collections:Y,routes:{api:G},serverURL:K}=q,{i18n:X,t:Q}=(0,o.useTranslation)("fields"),{permissions:J}=(0,d.useAuth)(),{code:Z}=(0,p.useLocale)(),ee=(0,g.useFormProcessing)(),et=Array.isArray(B),[en,er]=(0,a.useReducer)(E.default,[]),[ea,eo]=(0,a.useState)(-1),[ei,el]=(0,a.useState)({}),[eu,es]=(0,a.useState)(""),[ed,ec]=(0,a.useState)(),[ef,ep]=(0,a.useState)(""),[em,eh]=(0,a.useState)(!1),[eg,ev]=(0,a.useState)(!1),[eb,ey]=(0,a.useState)(!1),ew=(0,a.useRef)(!0),ex=W||t,ek=(0,a.useCallback)((e,t)=>V(e,{...t,required:U}),[V,U]),{errorMessage:eP,initialValue:eE,setValue:eA,showError:eD,value:eO}=(0,b.default)({condition:S,path:ex,validate:ek}),[eC,eM]=(0,a.useState)(!1),eS=(0,a.useCallback)(async({lastFullyLoadedRelation:e,onSuccess:t,search:n,sort:a,value:o})=>{if(!J)return;let i=void 0!==e?e:-1,l=Array.isArray(B)?B:[B],u=-1===i?l:l.slice(i+1),s=0,d=(0,k.createRelationMap)({hasMany:I,relationTo:B,value:o});eu||(u.reduce(async(e,t)=>{let o;if(o=ef!==n?1:ei[t]+1,await e,s<10){let e=Y.find(e=>e.slug===t),i=e?.defaultSort||e?.admin?.useAsTitle||"id";!n&&("string"==typeof N?i=N:N?.[t]&&(i=N[t]));let u={depth:0,limit:10,locale:Z,page:o,sort:i,where:{and:[{id:{not_in:d[t]}}]}};n&&u.where.and.push({[i]:{like:n}}),ed?.[t]&&u.where.and.push(ed[t]);let c=await fetch(`${K}${G}/${t}?${r.default.stringify(u)}`,{credentials:"include",headers:{"Accept-Language":X.language}});if(c.ok){let n=await c.json();el(e=>({...e,[t]:o})),n.nextPage||eo(l.indexOf(t)),n.docs.length>0&&(s+=n.docs.length,er({collection:e,config:q,docs:n.docs,i18n:X,sort:a,type:"ADD"}))}else 403===c.status?(eo(l.indexOf(t)),er({collection:e,config:q,docs:[],i18n:X,ids:d[t],sort:a,type:"ADD"})):es(Q("error:unspecific"))}},Promise.resolve()),"function"==typeof t&&t())},[J,B,I,eu,ef,ei,Y,Z,ed,K,N,G,X,q,Q]),ej=(0,u.useDebouncedCallback)((e,t)=>{eS({search:e,sort:!0,value:t}),ep(e)},300),eT=(0,a.useCallback)((e,t)=>{ef!==e&&(el({}),ej(e,t,""!==e))},[ef,ej]);(0,a.useEffect)(()=>{let e=(0,k.createRelationMap)({hasMany:I,relationTo:B,value:eO});Object.entries(e).reduce(async(e,[t,n])=>{await e;let a=n.filter(e=>!en.find(n=>n?.options?.find(n=>n.value===e&&n.relationTo===t)));if(a.length>0){let e={depth:0,limit:a.length,locale:Z,where:{id:{in:a}}};if(!eu){let n=await fetch(`${K}${G}/${t}?${r.default.stringify(e)}`,{credentials:"include",headers:{"Accept-Language":X.language}}),o=Y.find(e=>e.slug===t),i=[];if(n.ok){let e=await n.json();i=e.docs}er({collection:o,config:q,docs:i,i18n:X,ids:a,sort:!0,type:"ADD"})}}},Promise.resolve())},[en,eO,I,eu,Y,et,K,G,X,B,Z,q]),(0,a.useEffect)(()=>{let e=Array.isArray(B)?B:[B],t=e.reduce((e,t)=>{let n=Y.find(e=>e.slug===t),r=n?.admin?.useAsTitle||"id";return"id"===r&&e},!0);ey(!t)},[B,Y]),(0,a.useEffect)(()=>{if(ew.current){ew.current=!1;return}er({type:"CLEAR"}),eo(-1),el({}),ev(!1)},[B,ed,Z]);let e_=(0,a.useCallback)(e=>{er({collection:e.collectionConfig,config:q,doc:e.doc,i18n:X,type:"UPDATE"})},[X,q]),eN=(0,a.useCallback)((e,t)=>{if(!t)return!0;let n=(0,l.default)(t||""),r=e.label;for(;r.length>250;){let e=r.indexOf(" ",t.length);if(n.test(r.slice(0,-1===e?t.length:e+1)))return!0;r=r.slice(-1===e?t.length:e+1)}return n.test(r.slice(-250))},[]),eL=(0,P.findOptionsByValue)({options:en,value:eO});return Array.isArray(eL)||eL?.value!=="null"||(eL.value=null),a.default.createElement("div",{className:[w.fieldBaseClass,M,y,eD&&"error",eu&&"error-loading",_&&`${M}--read-only`].filter(Boolean).join(" "),id:`field-${ex.replace(/\./g,"__")}`,style:{...L,width:R}},a.default.createElement($,{message:eP,showError:eD}),a.default.createElement(H,{htmlFor:ex,label:F,required:U}),a.default.createElement(f.GetFilterOptions,{filterOptions:z,filterOptionsResult:ed,path:ex,relationTo:B,setFilterOptionsResult:ec}),!eu&&a.default.createElement("div",{className:`${M}__wrap`},a.default.createElement(s.default,{backspaceRemovesValue:!eC,components:{MultiValueLabel:A.MultiValueLabel,SingleValue:D.SingleValue},customProps:{disableKeyDown:eC,disableMouseDown:eC,onSave:e_,setDrawerIsOpen:eM},disabled:_||ee,filterOption:eb?eN:void 0,isLoading:em,isMulti:I,isSortable:T,onChange:_?void 0:e=>{null===e?eA(I?[]:null):I?eA(e?e.map(e=>et?{relationTo:e.relationTo,value:e.value}:e.value):null):et?eA({relationTo:e.relationTo,value:e.value}):eA(e.value)},onInputChange:e=>eT(e,eO),onMenuOpen:()=>{eg||(eh(!0),eS({onSuccess:()=>{ev(!0),eh(!1)},value:eE}))},onMenuScrollToBottom:()=>{eS({lastFullyLoadedRelation:ea,search:ef,sort:!1,value:eE})},options:en,showError:eD,value:eL??null}),!_&&n&&a.default.createElement(x.AddNewRelation,{dispatchOptions:er,hasMany:I,options:en,path:ex,relationTo:B,setValue:eA,value:eO})),eu&&a.default.createElement("div",{className:`${M}__error-loading`},eu),a.default.createElement(h.default,{description:j,path:W,value:eO}))})},41025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(3994),a=n(63478),o=e=>e.reduce((e,t)=>t.options?[...e,...o(t.options)]:[...e,t.value],[]),i=e=>e.sort((e,t)=>"function"==typeof e?.label?.localeCompare&&"function"==typeof t?.label?.localeCompare?e.label.localeCompare(t.label):0),l=(e,t)=>{switch(t.type){case"CLEAR":return[];case"UPDATE":{let{collection:n,config:r,doc:o,i18n:i}=t,l=n.slug,u=[...e],s=(0,a.formatUseAsTitle)({collection:n,config:r,doc:o,i18n:i}),d=u.find(e=>e.label===n.labels.plural),c=d?.options?.find(e=>e.value===o.id);return c&&(c.label=s||`${i.t("general:untitled")} - ID: ${o.id}`,c.relationTo=l),u}case"ADD":{let{collection:n,config:l,docs:u,i18n:s,ids:d=[],sort:c}=t,f=n.slug,p=o(e),m=[...e],h=m.find(e=>e.label===n.labels.plural),g=u.reduce((e,t)=>{if(-1===p.indexOf(t.id)){p.push(t.id);let r=(0,a.formatUseAsTitle)({collection:n,config:l,doc:t,i18n:s});return[...e,{label:r||`${s.t("general:untitled")} - ID: ${t.id}`,relationTo:f,value:t.id}]}return e},[]);if(d.forEach(e=>{p.includes(e)||g.push({label:`${s.t("general:untitled")} - ID: ${e}`,relationTo:f,value:e})}),h){let e=[...h.options,...g];h.options=c?i(e):e}else m.push({label:(0,r.getTranslation)(n.labels.plural,s),options:c?i(g):g});return m}default:return e}}},41112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MultiValueLabel",{enumerable:!0,get:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(46005),i=n(1794),l=d(n(77665)),u=d(n(38395)),s=n(7695);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(252);let f="relationship--multi-value-label",p=e=>{let{data:{label:t,relationTo:n,value:d},selectProps:{customProps:{draggableProps:c,setDrawerIsOpen:p}={}}={}}=e,{permissions:m}=(0,s.useAuth)(),[h,g]=(0,r.useState)(!1),{t:v}=(0,a.useTranslation)("general"),b=!!m?.collections?.[n]?.read?.permission,[y,w,{isDrawerOpen:x}]=(0,i.useDocumentDrawer)({id:d?.toString(),collectionSlug:n});return(0,r.useEffect)(()=>{"function"==typeof p&&p(x)},[x,p]),r.default.createElement("div",{className:f},r.default.createElement("div",{className:`${f}__content`},r.default.createElement(o.components.MultiValueLabel,{...e,innerProps:{className:`${f}__text`,...c||{}}})),n&&b&&r.default.createElement(r.Fragment,null,r.default.createElement(w,{"aria-label":`Edit ${t}`,className:`${f}__drawer-toggler`,onClick:()=>g(!1),onMouseDown:e=>e.stopPropagation(),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onTouchEnd:e=>e.stopPropagation()},r.default.createElement(l.default,{className:`${f}__tooltip`,show:h},v("editLabel",{label:""})),r.default.createElement(u.default,null)),r.default.createElement(y,{onSave:null})))}},46045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SingleValue",{enumerable:!0,get:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(46005),i=n(1794),l=d(n(77665)),u=d(n(38395)),s=n(7695);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(24221);let f="relationship--single-value",p=e=>{let{children:t,data:{label:n,relationTo:d,value:c},selectProps:{customProps:{onSave:p,setDrawerIsOpen:m}={}}={}}=e,[h,g]=(0,r.useState)(!1),{t:v}=(0,a.useTranslation)("general"),{permissions:b}=(0,s.useAuth)(),y=!!b?.collections?.[d]?.read?.permission,[w,x,{isDrawerOpen:k}]=(0,i.useDocumentDrawer)({id:c.toString(),collectionSlug:d});return(0,r.useEffect)(()=>{"function"==typeof m&&m(k)},[k,m]),r.default.createElement(o.components.SingleValue,{...e,className:f},r.default.createElement("div",{className:`${f}__label`},r.default.createElement("div",{className:`${f}__label-text`},r.default.createElement("div",{className:`${f}__text`},t),d&&y&&r.default.createElement(r.Fragment,null,r.default.createElement(x,{"aria-label":v("editLabel",{label:n}),className:`${f}__drawer-toggler`,onClick:()=>g(!1),onMouseDown:e=>e.stopPropagation(),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onTouchEnd:e=>e.stopPropagation()},r.default.createElement(l.default,{className:`${f}__tooltip`,show:h},v("edit")),r.default.createElement(u.default,null))))),d&&y&&r.default.createElement(w,{onSave:p}))}},95968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=e=>{let t=e.editor,n="LazyFieldComponent"in t,a=(0,r.useMemo)(()=>n?r.default.lazy(()=>t.LazyFieldComponent().then(e=>({default:e}))):null,[t,n]);return n?a&&r.default.createElement(r.default.Suspense,null,r.default.createElement(a,e)):r.default.createElement(t.FieldComponent,e)}},43471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=s(n(96540)),a=n(57816),o=s(n(13309)),i=s(n(63285)),l=n(82187);n(66321);let u=n(40458);function s(e){return e&&e.__esModule?e:{default:e}}let d=(0,i.default)(e=>{let{admin:{className:t,readOnly:n},fieldTypes:i,fields:s,forceRender:d=!1,indexPath:c,path:f,permissions:p}=e;return r.default.createElement(u.RowProvider,null,r.default.createElement("div",{className:[l.fieldBaseClass,"row",t].filter(Boolean).join(" ")},r.default.createElement(o.default,{className:"row__fields",fieldSchema:s.map(e=>({...e,path:(0,a.createNestedFieldPath)(f,e)})),fieldTypes:i,forceRender:d,indexPath:c,margins:!1,permissions:p,readOnly:n})))})},40458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RowProvider:function(){return i},useRow:function(){return l},default:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)(!1),i=({children:e,withinRow:t=!0})=>r.default.createElement(o.Provider,{value:t},e),l=()=>(0,r.useContext)(o),u=o},37389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=c(n(96540)),a=n(43992),o=n(3994),i=c(n(78877)),l=c(n(25218)),u=c(n(98114)),s=c(n(16034)),d=n(82187);function c(e){return e&&e.__esModule?e:{default:e}}n(34453);let f=e=>{let{Error:t,Label:n,className:c,defaultValue:f,description:p,errorMessage:m,hasMany:h,isClearable:g,isSortable:v,label:b,onChange:y,options:w,path:x,readOnly:k,required:P,showError:E,style:A,value:D,width:O}=e,{i18n:C}=(0,a.useTranslation)(),M=t||l.default,S=n||s.default,j=f;if(h&&Array.isArray(D))j=D.map(e=>{let t=w.find(t=>t.value===e);return{label:t?(0,o.getTranslation)(t.label,C):e,value:t?.value??e}});else if(D){let e=w.find(e=>e.value===D);j={label:e?(0,o.getTranslation)(e.label,C):D,value:e?.value??D}}return r.default.createElement("div",{className:[d.fieldBaseClass,"select",c,E&&"error",k&&"read-only"].filter(Boolean).join(" "),id:`field-${x.replace(/\./g,"__")}`,style:{...A,width:O}},r.default.createElement(M,{message:m,showError:E}),r.default.createElement(S,{htmlFor:`field-${x.replace(/\./g,"__")}`,label:b,required:P}),r.default.createElement(i.default,{disabled:k,isClearable:g,isMulti:h,isSortable:v,onChange:y,options:w.map(e=>({...e,label:(0,o.getTranslation)(e.label,C)})),showError:E,value:j}),r.default.createElement(u.default,{description:p,path:x,value:D}))}},1533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=u(n(27085)),i=u(n(63285)),l=u(n(37389));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let d=e=>e.map(e=>"object"==typeof e&&(e.value||""===e.value)?e:{label:e,value:e}),c=(0,i.default)(e=>{let{name:t,admin:{className:n,condition:i,description:u,isClearable:s,isSortable:c=!0,readOnly:f,style:p,width:m,components:{Error:h,Label:g}={}}={},hasMany:v,label:b,options:y,path:w,required:x,validate:k=a.select}=e,P=w||t,[E,A]=(0,r.useState)(d(y));(0,r.useEffect)(()=>{A(d(y))},[y]);let D=(0,r.useCallback)((e,t)=>k(e,{...t,hasMany:v,options:E,required:x}),[k,x,v,E]),{errorMessage:O,setValue:C,showError:M,value:S}=(0,o.default)({condition:i,path:P,validate:D}),j=(0,r.useCallback)(e=>{!f&&C(e?v?Array.isArray(e)?e.map(e=>e.value):[]:e.value:null)},[f,v,C]);return r.default.createElement(l.default,{className:n,description:u,errorMessage:O,hasMany:v,isClearable:s,isSortable:c,label:b,name:t,onChange:j,options:E,path:P,readOnly:f,required:x,showError:M,style:p,value:S,width:m,Error:h,Label:g})})},62453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(49472),i=n(3994),l=w(n(74271)),u=n(87381),s=n(79739),d=n(50444),c=n(71849),f=w(n(98114)),p=n(66461),m=n(57816),h=w(n(13309)),g=n(45040),v=w(n(63285)),b=n(82187);n(64881);let y=n(96688);function w(e){return e&&e.__esModule?e:{default:e}}function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}let k="tabs-field",P=({isActive:e,parentPath:t,setIsActive:n,tab:l})=>{let{i18n:u}=(0,a.useTranslation)(),[d,c]=(0,r.useState)(void 0),f=(0,o.tabHasName)(l),m=(0,p.useFormSubmitted)(),h=[];t&&h.push(t),f&&h.push(l.name);let v=h.join("."),b=m&&d>0;return r.default.createElement(r.default.Fragment,null,r.default.createElement(g.WatchChildErrors,{fieldSchema:f?void 0:l.fields,path:v,setErrorCount:c}),r.default.createElement("button",{className:[`${k}__tab-button`,b&&`${k}__tab-button--has-error`,e&&`${k}__tab-button--active`].filter(Boolean).join(" "),onClick:n,type:"button"},l.label?(0,i.getTranslation)(l.label,u):f&&l.name,b&&r.default.createElement(s.ErrorPill,{count:d})))},E=(0,v.default)(e=>{let{admin:{className:t,readOnly:n},fieldTypes:s,forceRender:p=!1,indexPath:g,path:v,permissions:w,tabs:x}=e,{getPreference:E,setPreference:A}=(0,c.usePreferences)(),{preferencesKey:D}=(0,d.useDocumentInfo)(),{i18n:O}=(0,a.useTranslation)(),C=(0,u.useCollapsible)(),[M,S]=(0,r.useState)(0),j=`tabs-${g}`;(0,r.useEffect)(()=>{let e=async()=>{let e=await E(D),t=v?e?.fields?.[v]?.tabIndex:e?.fields?.[j]?.tabIndex;S(t||0)};e()},[v,g,E,D,j]);let T=(0,r.useCallback)(async e=>{S(e);let t=await E(D);A(D,{...t,...v?{fields:{...t?.fields||{},[v]:{...t?.fields?.[v],tabIndex:e}}}:{fields:{...t?.fields,[j]:{...t?.fields?.[j],tabIndex:e}}}})},[D,E,A,v,j]),_=x[M];return r.default.createElement("div",{className:[b.fieldBaseClass,t,k,C&&`${k}--within-collapsible`].filter(Boolean).join(" ")},r.default.createElement(y.TabsProvider,null,r.default.createElement("div",{className:`${k}__tabs-wrap`},r.default.createElement("div",{className:`${k}__tabs`},x.map((e,t)=>r.default.createElement(P,{isActive:M===t,key:t,parentPath:v,setIsActive:()=>T(t),tab:e})))),r.default.createElement("div",{className:`${k}__content-wrap`},_&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:[`${k}__tab`,_.label&&`${k}__tabConfigLabel-${(0,l.default)((0,i.getTranslation)(_.label,O))}`].filter(Boolean).join(" ")},r.default.createElement(f.default,{className:`${k}__description`,description:_.description,marginPlacement:"bottom",path:v}),r.default.createElement(h.default,{fieldSchema:_.fields.map(e=>{let t=[];return v&&t.push(v),(0,o.tabHasName)(_)&&t.push(_.name),{...e,path:(0,m.createNestedFieldPath)(t.join("."),e)}}),fieldTypes:s,forceRender:p,indexPath:g,key:_.label?(0,i.getTranslation)(_.label,O):_.name,margins:"small",permissions:(0,o.tabHasName)(_)&&w?.[_.name]?w[_.name].fields:w,readOnly:n}))))))})},96688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{TabsProvider:function(){return i},useTabs:function(){return l},default:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)(!1),i=({children:e,withinTab:t=!0})=>r.default.createElement(o.Provider,{value:t},e),l=()=>(0,r.useContext)(o),u=o},41634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=d(n(96540)),a=n(43992),o=n(3994),i=d(n(25218)),l=d(n(98114)),u=d(n(16034)),s=n(82187);function d(e){return e&&e.__esModule?e:{default:e}}n(47106);let c=e=>{let{Error:t,Label:n,afterInput:d,beforeInput:c,className:f,description:p,errorMessage:m,inputRef:h,label:g,onChange:v,onKeyDown:b,path:y,placeholder:w,readOnly:x,required:k,rtl:P,showError:E,style:A,value:D,width:O}=e,{i18n:C}=(0,a.useTranslation)(),M=t||i.default,S=n||u.default;return r.default.createElement("div",{className:[s.fieldBaseClass,"text",f,E&&"error",x&&"read-only"].filter(Boolean).join(" "),style:{...A,width:O}},r.default.createElement(M,{message:m,showError:E}),r.default.createElement(S,{htmlFor:`field-${y.replace(/\./g,"__")}`,label:g,required:k}),r.default.createElement("div",{className:"input-wrapper"},Array.isArray(c)&&c.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("input",{"data-rtl":P,disabled:x,id:`field-${y.replace(/\./g,"__")}`,name:y,onChange:v,onKeyDown:b,placeholder:(0,o.getTranslation)(w,C),ref:h,type:"text",value:D||""}),Array.isArray(d)&&d.map((e,t)=>r.default.createElement(e,{key:t}))),r.default.createElement(l.default,{className:`field-description-${y.replace(/\./g,"__")}`,description:p,path:y,value:D}))}},85514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=n(86919),i=n(62519),l=c(n(27085)),u=c(n(63285)),s=n(82187),d=c(n(41634));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}let p=(0,u.default)(e=>{let{name:t,admin:{className:n,components:{Error:u,Label:c,afterInput:f,beforeInput:p}={},condition:m,description:h,placeholder:g,readOnly:v,rtl:b,style:y,width:w}={},inputRef:x,label:k,localized:P,maxLength:E,minLength:A,path:D,required:O,validate:C=a.text}=e,M=D||t,S=(0,i.useLocale)(),{localization:j}=(0,o.useConfig)(),T=(0,s.isFieldRTL)({fieldLocalized:P,fieldRTL:b,locale:S,localizationConfig:j||void 0}),_=(0,r.useCallback)((e,t)=>C(e,{...t,maxLength:E,minLength:A,required:O}),[C,A,E,O]),{errorMessage:N,setValue:L,showError:R,value:z}=(0,l.default)({condition:m,path:M,validate:_});return r.default.createElement(d.default,{Error:u,Label:c,afterInput:f,beforeInput:p,className:n,description:h,errorMessage:N,inputRef:x,label:k,name:t,onChange:e=>{L(e.target.value)},path:M,placeholder:g,readOnly:v,required:O,rtl:T,showError:R,style:y,value:z,width:w})})},69503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=d(n(96540)),a=n(43992),o=n(3994),i=d(n(25218)),l=d(n(98114)),u=d(n(16034)),s=n(82187);function d(e){return e&&e.__esModule?e:{default:e}}n(55947);let c=e=>{let{Error:t,Label:n,afterInput:d,beforeInput:c,className:f,description:p,errorMessage:m,label:h,onChange:g,path:v,placeholder:b,readOnly:y,required:w,rows:x,rtl:k,showError:P,style:E,value:A,width:D}=e,{i18n:O}=(0,a.useTranslation)(),C=t||i.default,M=n||u.default;return r.default.createElement("div",{className:[s.fieldBaseClass,"textarea",f,P&&"error",y&&"read-only"].filter(Boolean).join(" "),style:{...E,width:D}},r.default.createElement(C,{message:m,showError:P}),r.default.createElement(M,{htmlFor:`field-${v.replace(/\./g,"__")}`,label:h,required:w}),r.default.createElement("label",{className:"textarea-outer",htmlFor:`field-${v.replace(/\./g,"__")}`},r.default.createElement("div",{className:"textarea-inner"},r.default.createElement("div",{className:"textarea-clone","data-value":A||b||""}),Array.isArray(c)&&c.map((e,t)=>r.default.createElement(e,{key:t})),r.default.createElement("textarea",{className:"textarea-element","data-rtl":k,disabled:y,id:`field-${v.replace(/\./g,"__")}`,name:v,onChange:g,placeholder:(0,o.getTranslation)(b,O),rows:x,value:A||""}),Array.isArray(d)&&d.map((e,t)=>r.default.createElement(e,{key:t})))),r.default.createElement(l.default,{description:p,path:v,value:A}))}},22087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(32534),i=n(3994),l=n(86919),u=n(62519),s=p(n(27085)),d=p(n(63285)),c=n(82187),f=p(n(69503));function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(55947);let h=(0,d.default)(e=>{let{name:t,admin:{className:n,components:{Error:d,Label:p,afterInput:m,beforeInput:h}={},condition:g,description:v,placeholder:b,readOnly:y,rows:w,rtl:x,style:k,width:P}={},label:E,localized:A,maxLength:D,minLength:O,path:C,required:M,validate:S=o.textarea}=e,{i18n:j}=(0,a.useTranslation)(),T=C||t,_=(0,u.useLocale)(),{localization:N}=(0,l.useConfig)(),L=(0,c.isFieldRTL)({fieldLocalized:A,fieldRTL:x,locale:_,localizationConfig:N||void 0}),R=(0,r.useCallback)((e,t)=>S(e,{...t,maxLength:D,minLength:O,required:M}),[S,M,D,O]),{errorMessage:z,setValue:I,showError:F,value:W}=(0,s.default)({condition:g,path:T,validate:R});return r.default.createElement(f.default,{Error:d,Label:p,afterInput:m,beforeInput:h,className:n,description:v,errorMessage:z,label:E,name:t,onChange:e=>{I(e.target.value)},path:T,placeholder:(0,i.getTranslation)(b,j),readOnly:y,required:M,rows:w,rtl:L,showError:F,style:k,value:W,width:P})})},18655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=o(n(96540)),a=o(n(63285));function o(e){return e&&e.__esModule?e:{default:e}}let i=(0,a.default)(e=>{let{admin:{components:{Field:t}}}=e;return t?r.default.createElement(t,e):null})},43244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=h(n(55182)),l=n(1794),u=h(n(29358)),s=n(73643),d=n(92285),c=h(n(25218)),f=h(n(98114)),p=h(n(16034)),m=n(82187);function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(61920);let v="upload",b=e=>{let{Error:t,Label:n,api:h="/api",className:g,collection:b,description:y,errorMessage:w,filterOptions:x,label:k,onChange:P,path:E,readOnly:A,relationTo:D,required:O,serverURL:C="http://localhost:3000",showError:M,style:S,value:j,width:T}=e,{i18n:_,t:N}=(0,a.useTranslation)("fields"),L=t||c.default,R=n||p.default,[z,I]=(0,r.useState)(void 0),[F,W]=(0,r.useState)(!1),[B]=(0,r.useState)([b?.slug]),[U,V]=(0,r.useState)(),[$,H,{closeDrawer:q}]=(0,l.useDocumentDrawer)({collectionSlug:B[0]}),[Y,G,{closeDrawer:K}]=(0,s.useListDrawer)({collectionSlugs:B,filterOptions:U});(0,r.useEffect)(()=>{if(null!=j&&""!==j){let e=async()=>{let e=await fetch(`${C}${h}/${D}/${j}`,{credentials:"include",headers:{"Accept-Language":_.language}});if(e.ok){let t=await e.json();I(t)}else W(!0),I(void 0)};e()}else I(void 0)},[j,D,h,C,_]);let X=(0,r.useCallback)(e=>{W(!1),P(e.doc),q()},[P,q]),Q=(0,r.useCallback)(e=>{W(!1),P({id:e.docID}),K()},[P,K]);return r.default.createElement("div",{className:[m.fieldBaseClass,v,g,M&&"error",A&&"read-only"].filter(Boolean).join(" "),style:{...S,width:T}},r.default.createElement(d.GetFilterOptions,{filterOptions:x,filterOptionsResult:U,path:E,relationTo:D,setFilterOptionsResult:V}),r.default.createElement(L,{message:w,showError:M}),r.default.createElement(R,{htmlFor:`field-${E.replace(/\./g,"__")}`,label:k,required:O}),b?.upload&&r.default.createElement(r.default.Fragment,null,z&&!F&&r.default.createElement(u.default,{collection:b,doc:z,handleRemove:A?void 0:()=>{P(null)}}),(!z||F)&&r.default.createElement("div",{className:`${v}__wrap`},r.default.createElement("div",{className:`${v}__buttons`},r.default.createElement(H,{className:`${v}__toggler`,disabled:A},r.default.createElement(i.default,{buttonStyle:"secondary",disabled:A,el:"div"},N("uploadNewLabel",{label:(0,o.getTranslation)(b.labels.singular,_)}))),r.default.createElement(G,{className:`${v}__toggler`,disabled:A},r.default.createElement(i.default,{buttonStyle:"secondary",disabled:A,el:"div"},N("chooseFromExisting"))))),r.default.createElement(f.default,{description:y,path:E,value:z})),!A&&r.default.createElement($,{onSave:X}),!A&&r.default.createElement(Y,{onSelect:Q}))}},94236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(32534),o=n(86919),i=s(n(27085)),l=s(n(63285)),u=s(n(43244));function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}n(61920);let c=(0,l.default)(e=>{let{collections:t,routes:{api:n},serverURL:l}=(0,o.useConfig)(),{name:s,admin:{className:d,condition:c,description:f,readOnly:p,style:m,width:h,components:{Error:g,Label:v}={}}={},fieldTypes:b,filterOptions:y,label:w,path:x,relationTo:k,required:P,validate:E=a.upload}=e,A=t.find(e=>e.slug===k),D=(0,r.useCallback)((e,t)=>E(e,{...t,required:P}),[E,P]),O=(0,i.default)({condition:c,path:x,validate:D}),{errorMessage:C,setValue:M,showError:S,value:j}=O,T=(0,r.useCallback)(e=>{let t=e?.id||e;M(t)},[M]);return A.upload?r.default.createElement(u.default,{api:n,className:d,collection:A,description:f,errorMessage:C,fieldTypes:b,filterOptions:y,label:w,name:s,onChange:T,path:x,readOnly:p,relationTo:k,required:P,serverURL:l,showError:S,style:m,value:j,width:h,Error:g,Label:v}):null})},19068:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getFilterOptionsQuery",{enumerable:!0,get:function(){return n}});let n=async(e,t)=>{let{relationTo:n}=t,r=Array.isArray(n)?n:[n],a={};return void 0!==e&&await Promise.all(r.map(async n=>{a[n]="function"==typeof e?await e({...t,relationTo:n}):e})),a}},94416:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fieldTypes",{enumerable:!0,get:function(){return C}});let r=O(n(4706)),a=O(n(3919)),o=O(n(73824)),i=O(n(14684)),l=O(n(42751)),u=O(n(1914)),s=O(n(43192)),d=O(n(23067)),c=O(n(24268)),f=O(n(19571)),p=O(n(41583)),m=O(n(72648)),h=O(n(64472)),g=O(n(66297)),v=O(n(32163)),b=O(n(81199)),y=O(n(95968)),w=O(n(43471)),x=O(n(1533)),k=O(n(62453)),P=O(n(85514)),E=O(n(22087)),A=O(n(18655)),D=O(n(94236));function O(e){return e&&e.__esModule?e:{default:e}}let C={array:r.default,blocks:a.default,checkbox:o.default,code:i.default,collapsible:l.default,confirmPassword:u.default,date:s.default,email:d.default,group:c.default,hidden:f.default,json:p.default,number:m.default,password:h.default,point:g.default,radio:v.default,relationship:b.default,richText:y.default,row:w.default,select:x.default,tabs:k.default,text:P.default,textarea:E.default,ui:A.default,upload:D.default}},82187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{fieldBaseClass:function(){return n},isFieldRTL:function(){return r}});let n="field-type";function r({fieldLocalized:e,fieldRTL:t,locale:n,localizationConfig:r}){let a=n&&r&&r.locales&&r.locales.length>1,o=n?.code===r?.defaultLocale;return!1!==t&&n?.rtl===!0&&(e||!e&&!a||!e&&o)||!0===t}},27085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=n(96540),a=n(43992),o=function(e){return e&&e.__esModule?e:{default:e}}(n(32301)),i=n(7695),l=n(86919),u=n(50444),s=n(3643),d=n(66461),c=e=>{let{condition:t,disableFormData:n=!1,hasRows:c,path:f,validate:p}=e,m=(0,d.useFormSubmitted)(),h=(0,d.useFormProcessing)(),{user:g}=(0,i.useAuth)(),{id:v}=(0,u.useDocumentInfo)(),b=(0,s.useOperation)(),y=(0,d.useFormFields)(([e])=>e[f]),{t:w}=(0,a.useTranslation)(),x=(0,d.useFormFields)(([e,t])=>t),k=(0,l.useConfig)(),{getData:P,getDataByPath:E,getSiblingData:A,setModified:D}=(0,d.useForm)(),O=y?.value,C=y?.initialValue,M="boolean"!=typeof y?.valid||y.valid,S=!1===M&&m,j=(0,r.useRef)(M),T=(0,r.useCallback)((e,t=!1)=>{let r=e&&e.target?e.target.value:e;t||"function"!=typeof D||setTimeout(()=>{D(!0)},10),x({disableFormData:n||c&&r>0,path:f,type:"UPDATE",value:r})},[D,f,x,n,c]),_=(0,r.useMemo)(()=>({errorMessage:y?.errorMessage,formProcessing:h,formSubmitted:m,initialValue:C,rows:y?.rows,setValue:T,showError:S,valid:y?.valid,value:O}),[y?.errorMessage,y?.rows,y?.valid,h,T,S,m,O,C]);return(0,o.default)(()=>{let e=async()=>{let e,r=O;y?.rows&&Array.isArray(y.rows)&&(r=E(f));let a=!1,o="function"!=typeof p||await p(r,{id:v,config:k,data:P(),operation:b,siblingData:A(f),t:w,user:g});"string"==typeof o?(e=o,a=!1):(a=o,e=void 0),a!==j.current&&(j.current=a,"function"==typeof x&&x({condition:t,disableFormData:n||!!c&&"number"==typeof O&&O>0,errorMessage:e,path:f,rows:y?.rows,type:"UPDATE",valid:a,validate:p,value:O}))};e()},150,[O,t,n,x,P,A,E,v,b,f,g,p,y?.rows]),_}},82417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WatchCondition",{enumerable:!0,get:function(){return d}});let r=n(96540),a=n(7695),o=n(50444),i=n(66461),l=s(n(46474)),u=s(n(69504));function s(e){return e&&e.__esModule?e:{default:e}}let d=({name:e,condition:t,path:n,setShowField:s})=>{let d="string"==typeof n?n:e,{user:c}=(0,a.useAuth)(),[f,p]=(0,i.useAllFormFields)(),{id:m}=(0,o.useDocumentInfo)(),h=(0,u.default)(f,!0),g=(0,l.default)(f,d);h.id=m;let v=!!t,b=!v||t(h,g,{user:c}),y=f[d],w=y?.passesCondition;return(0,r.useEffect)(()=>{v&&(b&&!w&&p({path:d,result:!0,type:"MODIFY_CONDITION",user:c}),!b&&(w||void 0===w)&&p({path:d,result:!1,type:"MODIFY_CONDITION",user:c}))},[b,w,p,d,v,c,s]),(0,r.useEffect)(()=>{s(b)},[s,b]),null}},63285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(82417),o=e=>{let t=t=>{let{name:n,admin:{condition:o}={},path:i}=t,[l,u]=r.default.useState(!1);return l?r.default.createElement(r.default.Fragment,null,r.default.createElement(a.WatchCondition,{condition:o,name:n,path:i,setShowField:u}),r.default.createElement(e,t)):r.default.createElement(a.WatchCondition,{condition:o,name:n,path:i,setShowField:u})};return n=>{let{admin:{condition:a}={}}=n;return a?r.default.createElement(t,n):r.default.createElement(e,n)}}},60635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DefaultAccountIcon",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(94007);let a="graphic-account",o=e=>r.default.createElement("svg",{className:[a,e?.active&&`${a}--active`].filter(Boolean).join(" "),height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("circle",{className:`${a}__bg`,cx:"12.5",cy:"12.5",r:"11.5"}),r.default.createElement("circle",{className:`${a}__head`,cx:"12.5",cy:"10.73",r:"3.98"}),r.default.createElement("path",{className:`${a}__body`,d:"M12.5,24a11.44,11.44,0,0,0,7.66-2.94c-.5-2.71-3.73-4.8-7.66-4.8s-7.16,2.09-7.66,4.8A11.44,11.44,0,0,0,12.5,24Z"}))},97242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=l(n(83503)),a=l(n(55373)),o=l(n(96540)),i=n(7695);function l(e){return e&&e.__esModule?e:{default:e}}let u=()=>{let{user:e}=(0,i.useAuth)(),t=(0,r.default)(e.email.trim().toLowerCase()),n=a.default.stringify({default:"mp",r:"g",s:50});return o.default.createElement("img",{alt:"yas",className:"gravatar-account",height:25,src:`https://www.gravatar.com/avatar/${t}?${n}`,style:{borderRadius:"50%"},width:25})}},3953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=s(n(96540)),a=n(30876),o=n(7695),i=n(86919),l=n(60635),u=s(n(97242));function s(e){return e&&e.__esModule?e:{default:e}}let d=()=>{let{admin:{avatar:e},routes:{admin:t}}=(0,i.useConfig)(),{user:n}=(0,o.useAuth)(),s=(0,a.useLocation)(),d=s.pathname===`${t}/account`;return n.email&&"default"!==e?"gravatar"===e?r.default.createElement(u.default,null):e?r.default.createElement(e,{active:d}):r.default.createElement(l.DefaultAccountIcon,{active:d}):r.default.createElement(l.DefaultAccountIcon,{active:d})}},93409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(69335);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}let i=()=>{let[e]=(0,r.useState)(`pattern${(0,a.v4)()}`),[t]=(0,r.useState)(`image${(0,a.v4)()}`);return r.default.createElement("svg",{fill:"none",height:"53",viewBox:"0 0 82 53",width:"82"},r.default.createElement("rect",{fill:`url(#${e})`,height:"52.7791",width:"80.574",x:"0.713013"}),r.default.createElement("defs",null,r.default.createElement("pattern",{height:"1",id:`${e}`,patternContentUnits:"objectBoundingBox",width:"1"},r.default.createElement("use",{transform:"scale(0.00387597 0.00591716)",xlinkHref:`#${t}`})),r.default.createElement("image",{height:"169",id:t,width:"258",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAACpCAYAAADA4zPJAAALpklEQVR4Ae2dSY/UOhSF+///DCSGHQuEgAVI7BBITAI2zCCGZuhmpqEBP53W8yOvK1UdO3Zyr/NFilJdXalyTo4/X984zlZgQQEUWLwCW4tXAAFQAAUCIMAEKIACgAAPoAAKBECACVAABQABHkABFAiAABOgAAoAAjyAAiggBbhqgA9QAAUAAR5AARQgIsADKIACdA3wAAqggBQgR4APUAAFAAEeQAEUICLAAyiAAnQN8AAKoIAUIEeAD1AABQABHkABFCAiwAMogAJ0DfAACqCAFCBHgA9QAAUAAR5AARQgIsADKIACdA3wAAqggBQgR4APUAAFAAEeQAEUICLAAyiAAnQN8AAKoIAUIEeAD1AABQABHkABFCAiwAMogAJ0DfAACqCAFCBHgA9QAAUAAR5AARQgIsADKIACdA3wAAqggBQgR4APUAAFAAEeQAEUICLAAyiAAnQN8AAKoIAUIEeAD1AABQABHkABFCAiwAMLVmB/fz98+/YtfPr0KXz48CHs7u6GnZ2dg+3Hjx/D169fw48fP8KfP3+aV4muQfOnmAPsKqDKr4r/9u3bsL29PXgVKPb29pqFAiDouoTXzSrw8+fPg5Y+pfL3ffbdu3fh+/fvzekECJo7pRxQVwGF9YoA+ir1mPfUhVB00coCCFo5kxzHigKqqGrBx1T4Tfu+efOmmegAEKzYhzdaUEBdAVXUTRW51P+UVPS+AALvZ5DyryigSGAqCESYeIcBIFixEW94VuDXr1/JVwRiZR671VUFrwsg8HrmKPeKAkoMKok3tkLn7q8oRCDyuAACj2eNMvcqoMFBuZW41H4alORxAQQezxplXlHg9+/fk+cF1sHDYxcBEKxYijc8KvDly5fZo4EIhvfv37uTEBC4O2UU+LACyg2kDhmOlbbWVpcvPS2AwNPZoqy9CigUr1Whc79Xoxk9LYDA09mirL0K1BhCnAuAuJ8iFE8LIPB0tihrrwI1hxHHip2z9XQpERD0Wos3vSig/EBOJZ1iH09XDwCBF8dTzl4FNJx4ikqd8xu6kuFlAQRezhTl7FVAMwjlVNIp9vn8+XNvmS2+aR4E6md56mtZPMktl8niFYMIGU9XDkyDQCdZ47e1eupvtVzxrB0bEUGZM2ISBEoAafLISNa4FWH1PxYUiApo4E70h7UtOYJ4ljK2OrGbLgfpfy1NEZUhEbt0FNA9BtYAEMvjaW5DMxGBWnpN7hBFPGrrfSKIjpd5OVIBa8OLo3c9DTM2AQJRXbdvRgGHbrWP9mVZtgKaanyoZ6b6nPJanrqxs4MgJgRzTxCJxGVDQEevEDzXP7X2E5w8LbOBQLQsOUZ8TCLx9evX4fHjx+HRo0esTjW4efNmKL3eu3cvyBs5sPB2lWsWENSaZlr3gacmEi9fvhyOHTvGiga9Hjh79mwyDJSz8NQtUOQyOQhSEoI5JNY+mrJqyPLy5cvekw8YAGPXA7du3UqKCob6b4hHp/rMZCDITQjmwmBIIvH+/fuAgEjgSA9cuXJlMAh0edtbNCDYTAICjf6a4xKPflO/vW4BBLT83ZZ/3esUEHi6ZNitF1VBIDLqxovcVr3UfipDH6UBASBYV/m77w8FgaeRhF0I6HU1EChpp+Rdqco89nv6EomAABB0K/y610NAoCHxfY3N4Qpn9e8qILAwv3wfODTmoJvIef78+ZH9w3Xm4P3lQOTGjRsbGzSNGfAMgeIRgRKCFkd5HYaCyqiyaj1//jwwIGG41gOnT58Ourp02EPx7zHjVyxFB8UigrkSgvGEpG5jIlEw0ECiO3fusDaowe3bt8PVq1eDwvvU9fr162sh0NqI1tEgsJIQTAVB/Py6RKIlWlOWcQrIo+oSlrpypShADUhLyygQaOYgSwnBWLlTtzoGZkFqydb9xxKBkONZQUSNRqs+yQaBbvRQeJRa6ax+Xsfi6f7xfqvz7lAFVKEVJSjbLzCookc/a6uBQcol6ZKgxgZ4TwYepUsyCBQSeUgI5gJHxmgt7DvKBPwfBZJAIDKW6mflVtQp9tMxeh0hhqVRIEeBQSBQWKQQaYpKaOk3dMyth4Q5pmGf9hQ4EgTqS+3s7CwOAhFIOvZWE0Tt2ZkjylVgIwhaSwjGyp26JZGYay/286JALwiULOubTjy1ArX2ee/jyb2YknJOr8AKCJQk06WT1ipxqeORNiQSpzcqv1hXgf9AsNSEYC4gSCTWNSbfPq0CByBYekIwFwYkEqc1K79WT4GtsdOJ51aiVvZTItHbjLX17MQ3e1Vgq5UKOfdxtHI7ajSy7iYlFxLVaH8LCLa3iyVGlUhMnU7dmsWUK+pOL6dZpxlUZe0slS8PICgIghiV6F4M3ct+6dIlV+vFixcPJmo5d+5c6K4XLlwI+p/l47l27RpdtBF8AAQVQHDmzJm1M94wxVm9Kc6kOzeM5dEAEBQGgR6dRmWvV9mP0lbdM5Z0BQBBYRA8ePAAEMw4B6KeVciSrgAgAARNgQsQpENAewACQAAI8upOU3sBgsIgePjwYVMV66g+ubX/ExHk8QkQFAaB5sA/ceIEMJghT3D8+HHmnczjAF2DeO2/5Pbu3bvh1KlTwGBCGJw8eTI8efIksxqwGxFB4YggAuXVq1fh2bNn4enTp0euL168OJj/QaP4Sq26O1JzLw75/Rqf0czApY5lyPcwfmAczABBJRBEIAzd6ual7nMZx5xWK3eTxkfLjTkW9p1GAUBgBAQRGGMrj7W7SRWV6AYmFtsKAAJjIBAQciqPbgyyPL0cj5YDBMXu7out5lK2QyuPl+nleLScXRgQERiMCLqg2zQLkqIAJdK6n7f+mhmhbcIAEBgHgSp2X+VRlnx3d9cVBLqQGpsLsVmd/JYKEDgAQaxA8bmM1hKCsXypWx4tZwccgMARCFTRFB2kVjjrn2dG6PmBAAicgcB6pc4t36ZcyPzVpP0SAAJAYCbC6MuFtF8FbRwhIAAEZkAQowkeLTc9HAABIDAHAgGBR8tNCwNAAAhMgiBGByQSpwECIAAEpkEgIJBIrA8DQAAIzINAMFAikUfL1QMCIAAELkAQuwqtPVquXtVO+2ZAAAhcgUBAaOHRcmnVtP6nAQEgcAeCGB3ohiuWMgoAAkDgFgQCgm68Ypqy8TAABIDANQgEAxKJgMC9iWOYy3b84+lJJOYDgYiAiKApmGoWpP39/fwasdA9AQEgaAoEMbIqNSP0UrgACABBkyAQEEgkDscYIAAEzYJAMMiZEXp49Wnnk4AAEDQNgthVGDojdDtVO+1IAAEgWAQIBAQSievhAAgAwWJAIBhozAGJxFUgAAJAsCgQxK4C06n/HwaAABAsEgQCAonEvzAABIBgsSCI0QGJxBAAASBYPAgEhKU/lxEQAAJA8K8HljydOiAABIDgkAfio+X+9qDbfwUIDpkg9hvZjr8b0LOGS3suIyAABEQEGzywlOnUAcEGE3hu0Sh7uYhmCdOpAwJAQEQwwAOtJxIBwQAT0LqWa129a9nqcxkBASAgIkj0QIvPZQQEiSbw3qJR/nLRTUuJREAACIgIRniglUQiIBhhAlrXcq2rZy1bmE4dEAACIoJCHvA8nTogKGQCzy0aZS8X2Xh9LiMgAAREBBU84O25jICgggloYcu1sJ619DSdOiAABEQEFT3gJZEICCqawHNrRtnLRjXWE4mAABAQEUzkAcvTqQOCiUxAC1u2hfWsp8Xp1AEBICAimMED1hKJgGAGE3huzSh7ucjG0nTqgAAQEBHM7AEL06kDgplNQAtbroX1rOXciURAAAiICIx4QGMO5kokAgIjJvDcmlH2slHNHM9lBASAgIjAoAemTiQCAoMmoIUt28J61nOqRCIgAAREBMY9MMUsSIDAuAk8t2aUvVxkU3s6dUAACIgIHHmg1nMZAYEjE9DClmthPWtZYzp1QAAIiAiceqDkdOqAwKkJPLdolL1cZFMqkbilkUysaIAH/Hpgb28vjF3+AbSb48mcXO9tAAAAAElFTkSuQmCC"})))}},7201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ExternalLinkIcon",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=e=>{let{className:t}=e;return r.default.createElement("svg",{className:t,clipRule:"evenodd",fillRule:"evenodd",height:"100%",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M14 4h-13v18h20v-11h1v12h-22v-20h14v1zm10 5h-1v-6.293l-11.646 11.647-.708-.708 11.647-11.646h-6.293v-1h8v8z",fill:"none",stroke:"currentColor"}))}},31320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{height:"150",viewBox:"0 0 150 150",width:"150",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("rect",{fill:"#333333",height:"150",transform:"translate(0 0.5)",width:"150"}),r.default.createElement("path",{d:"M82.8876 50.5H55.5555V100.5H94.4444V61.9818H82.8876V50.5Z",fill:"white"}),r.default.createElement("path",{d:"M82.8876 61.9818H94.4444L82.8876 50.5V61.9818Z",fill:"#9A9A9A"}))},92487:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=l(n(96540)),a=n(43992),o=n(86919),i=l(n(45649));function l(e){return e&&e.__esModule?e:{default:e}}let u=` + .graphic-icon { + width: 18px; + height: 18px; + } + + .graphic-icon path { + fill: var(--theme-elevation-1000); + } + + @media (max-width: 768px) { + .graphic-icon { + width: 16px; + height: 16px; + } + } +`,s=()=>{let{t:e}=(0,a.useTranslation)();return r.default.createElement("span",{title:e("general:dashboard")},r.default.createElement("svg",{className:"graphic-icon",height:"100%",viewBox:"0 0 25 25",width:"100%",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("style",null,u),r.default.createElement("path",{d:"M11.5293 0L23 6.90096V19.9978L14.3608 25V11.9032L2.88452 5.00777L11.5293 0Z"}),r.default.createElement("path",{d:"M10.6559 24.2727V14.0518L2 19.0651L10.6559 24.2727Z"})))},d=()=>{let{admin:{components:{graphics:{Icon:e}={Icon:void 0}}={}}={}}=(0,o.useConfig)();return r.default.createElement(i.default,{CustomComponent:e,DefaultComponent:s})}},36937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=i(n(96540)),a=n(86919),o=i(n(45649));function i(e){return e&&e.__esModule?e:{default:e}}let l=` + .graphic-logo path { + fill: var(--theme-elevation-1000); + } +`,u=()=>r.default.createElement("svg",{className:"graphic-logo",fill:"none",height:"50",viewBox:"0 0 180 50",width:"180",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("style",null,l),r.default.createElement("path",{d:"M65.922 13.8685C71.1075 13.8685 77.0257 14.6014 77.0257 22.2185C77.0257 28.6587 71.8736 30.2243 66.0664 30.2243H62.2689V39.0961H57.2944V13.8685H65.922ZM62.2689 17.7659V26.3602H66.3773C69.4752 26.3602 71.9069 25.594 71.9069 22.2518C71.9069 18.1101 68.7424 17.7659 66.022 17.7659H62.2689Z"}),r.default.createElement("path",{d:"M84.3209 39.5514C80.7344 39.5514 77.5698 37.4639 77.5698 34.0884C77.5698 29.6358 82.5443 28.3145 89.8949 27.4706V27.1264C89.8949 24.2394 88.3626 23.2623 86.3084 23.2623C84.2542 23.2623 82.7219 24.2394 82.622 26.2936H78.1361C78.4803 22.6072 81.7226 19.8867 86.4861 19.8867C91.1163 19.8867 94.7028 21.7633 94.7028 28.1035C94.7028 28.692 94.6362 31.2014 94.6362 32.9114C94.6362 35.865 94.8472 37.5416 95.1914 39.1073H90.7721C90.6278 38.5188 90.4945 37.6083 90.4279 36.7089C89.0844 38.6853 87.1412 39.5514 84.3209 39.5514ZM90.0282 30.5463C84.6651 31.1015 82.511 31.7344 82.511 33.8219C82.511 35.1766 83.588 36.298 85.7532 36.298C88.7512 36.298 90.0393 34.5547 90.0393 31.4901V30.5463H90.0282Z"}),r.default.createElement("path",{d:"M97.2899 45.1921V41.5057H99.0998C100.699 41.5057 101.432 41.539 102.231 39.5514L102.442 39.0295L95.269 20.3753H100.521L104.763 33.8774L109.115 20.3753H113.99L107.139 38.541C104.951 44.3593 103.974 45.1921 99.3108 45.1921H97.2899Z"}),r.default.createElement("path",{d:"M120.263 39.1073H115.456V13.8685H120.263V39.1073Z"}),r.default.createElement("path",{d:"M122.406 29.7801C122.406 23.2067 126.826 19.9645 131.7 19.9645C136.575 19.9645 140.994 23.2067 140.994 29.7801C140.994 36.3535 136.575 39.5625 131.7 39.5625C126.826 39.5514 122.406 36.3535 122.406 29.7801ZM127.281 29.7801C127.281 33.6775 128.913 35.7984 131.7 35.7984C134.487 35.7984 136.119 33.6775 136.119 29.7801C136.119 25.8494 134.487 23.7286 131.7 23.7286C128.913 23.7286 127.281 25.8383 127.281 29.7801Z"}),r.default.createElement("path",{d:"M149.167 39.5514C145.58 39.5514 142.416 37.4639 142.416 34.0884C142.416 29.6358 147.39 28.3145 154.741 27.4706V27.1264C154.741 24.2394 153.208 23.2623 151.154 23.2623C149.1 23.2623 147.568 24.2394 147.468 26.2936H142.982C143.326 22.6072 146.568 19.8867 151.332 19.8867C155.962 19.8867 159.549 21.7633 159.549 28.1035C159.549 28.692 159.482 31.2014 159.482 32.9114C159.482 35.865 159.693 37.5416 160.037 39.1073H155.618C155.473 38.5188 155.34 37.6083 155.274 36.7089C153.941 38.6853 151.987 39.5514 149.167 39.5514ZM154.874 30.5463C149.511 31.1015 147.357 31.7344 147.357 33.8219C147.357 35.1766 148.434 36.298 150.599 36.298C153.597 36.298 154.885 34.5547 154.885 31.4901V30.5463H154.874Z"}),r.default.createElement("path",{d:"M175.06 39.1073V36.7422C173.872 38.7964 171.618 39.5625 169.664 39.5625C165.067 39.5625 161.625 35.7317 161.625 29.7468C161.625 23.8619 165 19.9645 169.664 19.9645C172.029 19.9645 174.05 21.0415 175.06 22.7848V13.8796H179.868V39.1073H175.06ZM175.238 29.7357C175.238 25.9716 173.494 23.6398 170.852 23.6398C168.242 23.6398 166.677 26.1159 166.677 29.7691C166.677 33.4222 168.242 35.865 170.852 35.865C173.494 35.865 175.238 33.5665 175.238 29.7357Z"}),r.default.createElement("path",{d:"M19.1531 0L42.049 13.8019V39.9956L24.8049 50V23.8064L1.89795 10.0155L19.1531 0Z"}),r.default.createElement("path",{d:"M17.4097 48.5454V28.1035L0.132324 38.1301L17.4097 48.5454Z"})),s=()=>{let{admin:{components:{graphics:{Logo:e}={Logo:void 0}}={}}={}}=(0,a.useConfig)();return r.default.createElement(o.default,{CustomComponent:e,DefaultComponent:u})}},74922:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=()=>r.default.createElement("svg",{className:"search",fill:"none",height:"26",viewBox:"0 0 25 26",width:"25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("circle",{className:"stroke",cx:"11.2069",cy:"10.9135",r:"5",stroke:"#333333",strokeWidth:"2"}),r.default.createElement("line",{className:"stroke",stroke:"#333333",strokeWidth:"2",x1:"14.914",x2:"20.5002",y1:"14.2063",y2:"19.7925"}))},57225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(98245);let a=()=>r.default.createElement("svg",{className:"icon icon--calendar",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("rect",{className:"stroke",height:"14",width:"16",x:"4.5",y:"6.11401"}),r.default.createElement("line",{className:"stroke",x1:"8.625",x2:"8.625",y1:"8.02026",y2:"3.70776"}),r.default.createElement("line",{className:"stroke",x1:"16.375",x2:"16.375",y1:"8.02026",y2:"3.70776"}),r.default.createElement("line",{className:"stroke",x1:"4.5",x2:"20.5",y1:"11.114",y2:"11.114"}))},83413:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(28175);let a=()=>r.default.createElement("svg",{className:"icon icon--check",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"stroke",d:"M10.6092 16.0192L17.6477 8.98076",strokeLinecap:"square",strokeLinejoin:"bevel"}),r.default.createElement("path",{className:"stroke",d:"M7.35229 12.7623L10.6092 16.0192",strokeLinecap:"square",strokeLinejoin:"bevel"}))},68410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(20384);let a=({className:e,direction:t,size:n})=>r.default.createElement("svg",{className:["icon icon--chevron",e,n&&`icon--size-${n}`].filter(Boolean).join(" "),viewBox:"0 0 9 7",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{transform:"left"===t?"rotate(90deg)":"right"===t?"rotate(-90deg)":"up"===t?"rotate(180deg)":void 0}},r.default.createElement("path",{className:"stroke",d:"M1.42871 1.5332L4.42707 4.96177L7.42543 1.5332"}))},65150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(4302);let a=()=>r.default.createElement("svg",{className:"icon icon--copy",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("rect",{className:"stroke",height:"8",width:"8",x:"6.5",y:"10"}),r.default.createElement("path",{className:"stroke",d:"M10 9.98438V6.5H18V14.5H14"}))},61449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(59341);let a=({className:e})=>r.default.createElement("svg",{className:["icon icon--drag-handle",e].filter(Boolean).join(" "),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("circle",{className:"fill",cx:"10.468",cy:"14.5",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"14.532",cy:"14.5",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"10.468",cy:"11.35",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"14.532",cy:"11.35",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"10.468",cy:"8.3",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"14.532",cy:"8.3",r:"1"}))},38395:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(18979);let a=()=>r.default.createElement("svg",{className:"icon icon--edit",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("polygon",{className:"fill",points:"16.92 16.86 8.25 16.86 8.25 8.21 12.54 8.21 12.54 6.63 6.68 6.63 6.68 18.43 18.5 18.43 18.5 12.53 16.92 12.53 16.92 16.86"}),r.default.createElement("polygon",{className:"fill",points:"16.31 7.33 17.42 8.44 12.66 13.2 11.51 13.24 11.55 12.09 16.31 7.33"}),r.default.createElement("rect",{className:"fill",height:"1.15",transform:"translate(10.16 -10.48) rotate(45)",width:"1.58",x:"16.94",y:"6.44"}))},40441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(84969);let a=()=>r.default.createElement("svg",{className:"icon icon--line",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("line",{className:"stroke",x1:"8.05164",x2:"16.468",y1:"12.594",y2:"12.594"}))},82331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(17703);let a=()=>r.default.createElement("svg",{"aria-hidden":"true",className:"graphic link icon icon--link",fill:"currentColor",focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.default.createElement("path",{className:"fill",d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}))},44357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(96301);let a=()=>r.default.createElement("svg",{className:"icon icon--logout",fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"stroke",d:"M10 5H18V19H10"}),r.default.createElement("g",null,r.default.createElement("path",{className:"stroke",d:"M8 8.5L4.46447 12.0355L8 15.5711"}),r.default.createElement("line",{className:"stroke",x1:"5",x2:"13",y1:"12",y2:"12"})))},93668:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(74072);let a=()=>r.default.createElement("svg",{className:"icon icon--menu",fill:"none",height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("rect",{className:"fill",height:"2",width:"18",x:"3.5",y:"4.5"}),r.default.createElement("rect",{className:"fill",height:"2",width:"18",x:"3.5",y:"11.5"}),r.default.createElement("rect",{className:"fill",height:"2",width:"18",x:"3.5",y:"18.5"}))},70953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MinimizeMaximize",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o="minimize-maximize",i=({className:e,isMinimized:t})=>{let n=[o,t?`${o}--minimized`:`${o}--maximized`,e].filter(Boolean).join(" ");return r.createElement("svg",{className:n,height:"24",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t?r.createElement(r.Fragment,null,r.createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),r.createElement("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),r.createElement("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),r.createElement("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})):r.createElement(r.Fragment,null,r.createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),r.createElement("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),r.createElement("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),r.createElement("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})))}},86050:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(52674);let a=({className:e})=>r.default.createElement("svg",{className:["icon icon--more",e].filter(Boolean).join(" "),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("circle",{className:"fill",cx:"16.3872",cy:"12.5",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"12.3872",cy:"12.5",r:"1"}),r.default.createElement("circle",{className:"fill",cx:"8.61279",cy:"12.5",r:"1"}))},29867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(81115);let a=()=>r.default.createElement("svg",{className:"icon icon--plus",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("line",{className:"stroke",x1:"12.4589",x2:"12.4589",y1:"16.9175",y2:"8.50115"}),r.default.createElement("line",{className:"stroke",x1:"8.05164",x2:"16.468",y1:"12.594",y2:"12.594"}))},20287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(97863);let a=()=>r.default.createElement("svg",{className:"icon icon--search",fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("circle",{className:"stroke",cx:"11.2069",cy:"10.7069",r:"5"}),r.default.createElement("line",{className:"stroke",x1:"14.914",x2:"20.5002",y1:"13.9998",y2:"19.586"}))},41452:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(65608);let a=()=>r.default.createElement("svg",{className:"icon icon--swap",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"stroke",d:"M9.84631 4.78679L6.00004 8.63306L9.84631 12.4793"}),r.default.createElement("path",{className:"stroke",d:"M15.1537 20.1059L19 16.2596L15.1537 12.4133"}),r.default.createElement("line",{className:"stroke",stroke:"#333333",x1:"7",x2:"15",y1:"8.7013",y2:"8.7013"}),r.default.createElement("line",{className:"stroke",x1:"18",x2:"10",y1:"16.1195",y2:"16.1195"}))},88481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(53139);let a=({className:e})=>r.default.createElement("svg",{className:[e,"icon icon--x"].filter(Boolean).join(" "),height:"25",viewBox:"0 0 25 25",width:"25",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("line",{className:"stroke",x1:"8.74612",x2:"16.3973",y1:"16.347",y2:"8.69584"}),r.default.createElement("line",{className:"stroke",x1:"8.6027",x2:"16.2539",y1:"8.69585",y2:"16.3471"}))},26835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Banner:function(){return r.default},Button:function(){return a.default},Pill:function(){return o.default},Popup:function(){return i.default},Check:function(){return l.default},Chevron:function(){return u.default},Menu:function(){return s.default},Search:function(){return d.default},X:function(){return c.default},MinimalTemplate:function(){return f.default}});let r=p(n(87768)),a=p(n(55182)),o=p(n(36669)),i=p(n(12748)),l=p(n(83413)),u=p(n(68410)),s=p(n(93668)),d=p(n(20287)),c=p(n(88481)),f=p(n(36515));function p(e){return e&&e.__esModule?e:{default:e}}},84836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LeaveWithoutSaving",{enumerable:!0,get:function(){return h}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=d(n(46885)),l=d(n(55182)),u=n(66461),s=n(7695);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(23590);let f="leave-without-saving",p="leave-without-saving",m=({isActive:e,onCancel:t,onConfirm:n})=>{let{closeModal:i,openModal:u}=(0,r.useModal)(),{t:s}=(0,o.useTranslation)("general");return(0,a.useEffect)(()=>{e?u(f):i(f)},[e,u,i]),a.default.createElement(r.Modal,{className:p,onClose:t,slug:f},a.default.createElement("div",{className:`${p}__wrapper`},a.default.createElement("div",{className:`${p}__content`},a.default.createElement("h1",null,s("leaveWithoutSaving")),a.default.createElement("p",null,s("changesNotSaved"))),a.default.createElement("div",{className:`${p}__controls`},a.default.createElement(l.default,{buttonStyle:"secondary",onClick:t},s("stayOnThisPage")),a.default.createElement(l.default,{onClick:n},s("leaveAnyway")))))},h=()=>{let e=(0,u.useFormModified)(),{user:t}=(0,s.useAuth)();return a.default.createElement(i.default,{renderIfNotActive:!0,when:!!(e&&t)},({isActive:e,onCancel:t,onConfirm:n})=>a.default.createElement(m,{isActive:e,onCancel:t,onConfirm:n}))}},36351:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=n(95767),a=s(n(96540)),o=n(43992),i=n(30876),l=s(n(55182)),u=n(86919);function s(e){return e&&e.__esModule?e:{default:e}}n(9549);let d="stay-logged-in",c="stay-logged-in",f=e=>{let{refreshCookie:t}=e,n=(0,i.useHistory)(),s=(0,u.useConfig)(),{admin:{logoutRoute:f},routes:{admin:p}}=s,{toggleModal:m}=(0,r.useModal)(),{t:h}=(0,o.useTranslation)("authentication");return a.default.createElement(r.Modal,{className:d,slug:"stay-logged-in"},a.default.createElement("div",{className:`${d}__wrapper`},a.default.createElement("div",{className:`${d}__content`},a.default.createElement("h1",null,h("stayLoggedIn")),a.default.createElement("p",null,h("youAreInactive"))),a.default.createElement("div",{className:`${d}__controls`},a.default.createElement(l.default,{buttonStyle:"secondary",onClick:()=>{m(c),n.push(`${p}${f}`)}},h("logOut")),a.default.createElement(l.default,{onClick:()=>{t(),m(c)}},h("stayLoggedIn")))))}},92073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(1149),i=n(39999),l=n(54335),u=n(51985),s=n(96612),d=n(86919),c=p(n(87068)),f=p(n(45649));function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(52723);let h="template-default",g=({children:e,className:t})=>{let{admin:{components:{Nav:n}={Nav:void 0}}={}}=(0,d.useConfig)(),{t:p}=(0,a.useTranslation)("general"),{navOpen:m}=(0,s.useNav)();return r.default.createElement(r.Fragment,null,r.default.createElement(c.default,{description:`${p("dashboard")} Payload`,keywords:`${p("dashboard")}, Payload`,title:p("dashboard")}),r.default.createElement("div",{className:`${h}__nav-toggler-wrapper`,id:"nav-toggler"},r.default.createElement(u.NavToggler,{className:`${h}__nav-toggler`},r.default.createElement(o.Hamburger,{closeIcon:"collapse",isActive:m}))),r.default.createElement("div",{className:[h,t,m&&`${h}--nav-open`].filter(Boolean).join(" ")},r.default.createElement(f.default,{CustomComponent:n,DefaultComponent:l.Nav}),r.default.createElement("div",{className:`${h}__wrap`},r.default.createElement(i.AppHeader,null),e)))}},36515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(47865);let a="template-minimal",o=e=>{let{children:t,className:n,style:o={},width:i="normal"}=e,l=[n,a,`${a}--width-${i}`].filter(Boolean).join(" ");return r.default.createElement("section",{className:l,style:o},r.default.createElement("div",{className:`${a}__wrap`},t))}},7695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AuthProvider:function(){return g},useAuth:function(){return v}});let r=n(95767),a=p(n(55373)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=n(43992),l=n(30876),u=n(77399),s=n(60146),d=p(n(36361)),c=n(86919),f=n(62519);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}let h=(0,o.createContext)({}),g=({children:e})=>{let[t,n]=(0,o.useState)(),[p,m]=(0,o.useState)(),[g,v]=(0,o.useState)(),{pathname:b}=(0,l.useLocation)(),{push:y}=(0,l.useHistory)(),{code:w}=(0,f.useLocale)(),x=(0,c.useConfig)(),{admin:{autoLogin:k,inactivityRoute:P,user:E},routes:{admin:A,api:D},serverURL:O}=x,[C,M]=(0,o.useState)(),{i18n:S}=(0,i.useTranslation)(),{closeAllModals:j,openModal:T}=(0,r.useModal)(),[_,N]=(0,o.useState)(0),L=(0,d.default)(_,1e4),R=t?.id,z=(0,o.useCallback)(()=>{if(window.location.pathname.startsWith(A)){let e=`?redirect=${encodeURIComponent(window.location.pathname.replace(A,""))}`;y(`${A}${P}${e}`)}else y(`${A}${P}`);j()},[y,A,P,j]),I=(0,o.useCallback)(()=>{m(void 0),v(void 0)},[]),F=(0,o.useCallback)(e=>{let t=e?.token||e?.refreshedToken;t&&e?.exp?(m(t),v(e.exp)):I()},[I]),W=(0,o.useCallback)(e=>{let t=Math.round(new Date().getTime()/1e3),r=("number"==typeof g?g:0)-t;(e||g&&r<120)&&setTimeout(async()=>{try{let e=await s.requests.post(`${O}${D}/${E}/refresh-token`,{headers:{"Accept-Language":S.language}});if(200===e.status){let t=await e.json();n(t.user),F(t)}else n(null),z()}catch(e){u.toast.error(e.message)}},1e3)},[g,O,D,E,S,z,F]),B=(0,o.useCallback)(async e=>{try{let t=await s.requests.post(`${O}${D}/${E}/refresh-token`,{headers:{"Accept-Language":S.language}});if(200===t.status){let r=await t.json();return e||(n(r.user),F(r)),r.user}return n(null),z(),null}catch(e){return u.toast.error(`Refreshing token failed: ${e.message}`),null}},[O,D,E,S,z,F]),U=(0,o.useCallback)(()=>{n(null),I(),s.requests.post(`${O}${D}/${E}/logout`)},[O,D,E,I]),V=(0,o.useCallback)(async()=>{try{let e=await s.requests.get(`${O}${D}/access?${a.default.stringify({locale:w})}`,{headers:{"Accept-Language":S.language}});if(200===e.status){let t=await e.json();M(t)}else throw Error(`Fetching permissions failed with status code ${e.status}`)}catch(e){u.toast.error(`Refreshing permissions failed: ${e.message}`)}},[O,D,S,w]),$=o.default.useCallback(async()=>{try{let e=await s.requests.get(`${O}${D}/${E}/me`,{headers:{"Accept-Language":S.language}});if(200===e.status){let t=await e.json();if(t?.user)n(t.user),t?.token&&F(t);else if(k&&!0!==k.prefillOnly){let e=await s.requests.post(`${O}${D}/${E}/login`,{body:JSON.stringify({email:k.email,password:k.password}),headers:{"Accept-Language":S.language,"Content-Type":"application/json"}});if(200===e.status){let t=await e.json();n(t.user),t?.token&&F(t)}else n(null),I()}else n(null),I()}}catch(e){u.toast.error(`Fetching user failed: ${e.message}`)}},[O,D,E,S,k,F,I]);return(0,o.useEffect)(()=>{$()},[$]),(0,o.useEffect)(()=>{R&&W()},[L,W,R]),(0,o.useEffect)(()=>{N(Date.now())},[b]),(0,o.useEffect)(()=>{R&&V()},[S,R,D,O,V]),(0,o.useEffect)(()=>{let e;let t=Math.round(new Date().getTime()/1e3),n="number"==typeof g?g-t:0;return n>0&&(e=setTimeout(()=>{T("stay-logged-in")},Math.max(Math.min((n-60)*1e3,2147483647)))),()=>{e&&clearTimeout(e)}},[g,T]),(0,o.useEffect)(()=>{let e;let t=Math.round(new Date().getTime()/1e3),r="number"==typeof g?g-t:0;return r>0&&(e=setTimeout(()=>{n(null),I(),z()},Math.max(Math.min(1e3*r,2147483647),0))),()=>{e&&clearTimeout(e)}},[g,j,S,z,I]),o.default.createElement(h.Provider,{value:{fetchFullUser:$,logOut:U,permissions:C,refreshCookie:W,refreshCookieAsync:B,refreshPermissions:V,setUser:n,token:p,user:t}},e)},v=()=>(0,o.useContext)(h)},86919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ConfigProvider:function(){return i},useConfig:function(){return l}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)({}),i=({children:e,config:t})=>{let[n,a]=r.default.useState(),i=r.default.useRef(!1);return(r.default.useEffect(()=>{if(t&&!i.current){i.current=!0;let e=async()=>{let e=await t;a(e)};e()}},[t]),n)?r.default.createElement(o.Provider,{value:n},e):null},l=()=>(0,r.useContext)(o)},15843:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CustomProvider",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(86919),o=({children:e,providers:t})=>{let n=t[0];return t.length>1?r.default.createElement(n,null,r.default.createElement(o,{providers:t.slice(1)},e)):r.default.createElement(n,null,e)},i=({children:e})=>{let t=(0,a.useConfig)(),{admin:{components:{providers:n}}}=t;return Array.isArray(n)&&n.length>0?r.default.createElement(o,{providers:n},e):r.default.createElement(r.default.Fragment,null,e)}},86425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DocumentEventsProvider:function(){return i},useDocumentEvents:function(){return l}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)({mostRecentUpdate:null,reportUpdate:e=>null}),i=({children:e})=>{let[t,n]=(0,r.useState)(null);return r.default.createElement(o.Provider,{value:{mostRecentUpdate:t,reportUpdate:n}},e)},l=()=>(0,r.useContext)(o)},50444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useDocumentInfo:function(){return p},DocumentInfoProvider:function(){return m}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=n(7695),u=n(86919),s=n(62519),d=n(71849);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let f=(0,a.createContext)({}),p=()=>(0,a.useContext)(f),m=({id:e,children:t,collection:n,global:c,idFromParams:p})=>{let m,h,g;let{id:v}=(0,i.useParams)(),b=e||(p?v:null),{routes:{api:y},serverURL:w}=(0,u.useConfig)(),{getPreference:x,setPreference:k}=(0,d.usePreferences)(),{i18n:P}=(0,o.useTranslation)(),{permissions:E}=(0,l.useAuth)(),{code:A}=(0,s.useLocale)(),[D,O]=(0,a.useState)(null),[C,M]=(0,a.useState)(null),[S,j]=(0,a.useState)(null),[T,_]=(0,a.useState)(null),N=`${w}${y}`;c&&(m=c.slug,h="globals",g=`global-${m}`),n&&(m=n.slug,h="collections",b&&(g=`collection-${m}-${b}`));let L=(0,a.useCallback)(async()=>{let e,t;let a=!1,o=!1,i=null,l=null,u=!0,s={depth:0,where:{and:[]}},d={depth:0,locale:A||void 0,where:{and:[{or:[{_status:{equals:"published"}},{_status:{exists:!1}}]}]}};if(c&&(a=!!c?.versions?.drafts,o=!!c?.versions,e=`${N}/globals/${c.slug}/versions`,t=`${N}/globals/${c.slug}?${r.default.stringify(d)}`),n&&(a=!!n?.versions?.drafts,o=!!n?.versions,e=`${N}/${n.slug}/versions`,d.where.and.push({id:{equals:b}}),t=`${N}/${n.slug}?${r.default.stringify(d)}`,b||(u=!1),s.where.and.push({parent:{equals:b}})),u){let u;if(a&&(u=await fetch(t,{credentials:"include",headers:{"Accept-Language":P.language}}).then(e=>e.json()),n&&(u=u?.docs?.[0])),o&&(l=await fetch(`${e}?${r.default.stringify(s)}`,{credentials:"include",headers:{"Accept-Language":P.language}}).then(e=>e.json()),u?.updatedAt)){let t={...s,where:{...s.where,and:[...s.where.and,{updatedAt:{greater_than:u?.updatedAt}}]}},n=await fetch(`${e}?${r.default.stringify(t)}`,{credentials:"include",headers:{"Accept-Language":P.language}});200===n.status&&(i=await n.json())}O(u),M(l),j(i)}},[P,c,n,b,N,A]),R=a.default.useCallback(async()=>{let e;if("globals"===h?e=`/globals/${m}/access`:"collections"===h&&b&&(e=`/${m}/access/${b}`),e){let t=await fetch(`${w}${y}${e}?${r.default.stringify({locale:A||void 0})}`,{credentials:"include",headers:{"Accept-Language":P.language}}),n=await t.json();_(n)}else _(E[h][m])},[w,y,h,m,b,E,P.language,A]),z=(0,a.useCallback)(async()=>x(g),[x,g]),I=(0,a.useCallback)(async(e,t)=>{let n=await z();if(g)try{await k(g,{...n,fields:{...n?.fields||{},[e]:{...n?.fields?.[e],...t}}})}catch(e){console.error(e)}},[k,g,z]);(0,a.useEffect)(()=>{L()},[L]),(0,a.useEffect)(()=>{R()},[R]);let F={id:b,collection:n,docPermissions:T,getDocPermissions:R,getDocPreferences:z,getVersions:L,global:c,preferencesKey:g,publishedDoc:D,setDocFieldPreferences:I,slug:m,unpublishedVersions:S,versions:C};return a.default.createElement(f.Provider,{value:F},t)}},95702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{EditDepthContext:function(){return a},useEditDepth:function(){return o}});let r=n(96540),a=(0,r.createContext)(0),o=()=>(0,r.useContext)(a)},37123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{FormQueryParams:function(){return a},useFormQueryParams:function(){return o}});let r=n(96540),a=(0,r.createContext)({}),o=()=>(0,r.useContext)(a)},92285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GetFilterOptions",{enumerable:!0,get:function(){return f}});let r=c(n(4982)),a=n(96540),o=n(66461),i=c(n(46474)),l=c(n(69504)),u=n(19068),s=n(7695),d=n(50444);function c(e){return e&&e.__esModule?e:{default:e}}let f=({filterOptions:e,filterOptionsResult:t,path:n,relationTo:c,setFilterOptionsResult:f})=>{let[p]=(0,o.useAllFormFields)(),{id:m}=(0,d.useDocumentInfo)(),{user:h}=(0,s.useAuth)();return(0,a.useEffect)(()=>{let a=(0,l.default)(p,!0),o=(0,i.default)(p,n),s=async()=>{let n=await (0,u.getFilterOptionsQuery)(e,{id:m,data:a,relationTo:c,siblingData:o,user:h});(0,r.default)(n,t)||f(n)};s()},[p,e,m,c,h,n,t,f]),null}},49941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{I18n:function(){return f},default:function(){return p}});let r=n(58807),a=c(n(14744)),o=c(n(35543)),i=c(n(74543)),l=n(43992),u=n(99982),s=n(71542),d=n(86919);function c(e){return e&&e.__esModule?e:{default:e}}let f=()=>{let e=(0,d.useConfig)();return o.default.isInitialized||(o.default.use(new i.default(null,{lookupCookie:"lng",lookupLocalStorage:"lng"})).use(l.initReactI18next).init((0,a.default)(u.defaultOptions,e.i18n||{})),r.loader.config({"vs/nls":{availableLanguages:{"*":(0,s.getSupportedMonacoLocale)(o.default.language)}}})),null},p=f},52649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{LoadingOverlayProvider:function(){return d},useLoadingOverlay:function(){return c},default:function(){return f}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(45982),i=n(72234),l=n(44137);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}let s=(0,r.createContext)({isOnScreen:!1,toggleLoadingOverlay:void 0}),d=({children:e})=>{let{t}=(0,a.useTranslation)("general"),n=t("loading"),[u,d]=r.default.useReducer(l.reducer,l.defaultLoadingOverlayState),{isMounted:c,isUnmounting:f,triggerDelayedRender:p}=(0,o.useDelayedRender)({delayBeforeShow:1e3,inTimeout:250,minShowTime:500,outTimeout:250,show:u.isLoading}),m=r.default.useCallback(({isLoading:e,key:t,loadingText:r=n,type:a})=>{e?(p(),d({payload:{key:t,loadingText:r,type:a},type:"add"})):d({payload:{key:t,type:a},type:"remove"})},[p,n]);return r.default.createElement(s.Provider,{value:{isOnScreen:c,toggleLoadingOverlay:m}},c&&r.default.createElement(i.LoadingOverlay,{animationDuration:"250ms",loadingText:u.loadingText||n,overlayType:u.overlayType,show:!f}),e)},c=()=>{let e=r.default.useContext(s);if(void 0===e)throw Error("useLoadingOverlay must be used within a LoadingOverlayProvider");return e},f=s},44137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultLoadingOverlayState:function(){return n},reducer:function(){return r}});let n={isLoading:!1,loaders:[],loadingText:"",overlayType:null},r=(e,t)=>{let n=[...e.loaders],{key:r="user",loadingText:a,type:o="fullscreen"}=t.payload;if("add"===t.type)n.push({key:r,loadingText:a,type:o});else if("remove"===t.type){let e=n.findIndex(e=>e.key===r&&e.type===o);n.splice(e,1)}let i=n?.length>0?n[n.length-1]:null;return{isLoading:!!i,loaders:n,loadingText:i?.loadingText||e?.loadingText,overlayType:i?.type||e?.overlayType}}},62519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{LocaleProvider:function(){return c},useLocale:function(){return f},default:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(70821),o=n(7695),i=n(86919),l=n(71849),u=n(7087);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let d=(0,r.createContext)({}),c=({children:e})=>{let{localization:t}=(0,i.useConfig)(),{user:n}=(0,o.useAuth)(),s=t&&t.defaultLocale?t.defaultLocale:"en",c=(0,u.useSearchParams)(),[f,p]=(0,r.useState)(c?.locale||s),[m,h]=(0,r.useState)(t&&(0,a.findLocaleFromCode)(t,f)),{getPreference:g,setPreference:v}=(0,l.usePreferences)(),b=c.locale;return(0,r.useEffect)(()=>{if(t){if(b&&t.localeCodes.indexOf(b)>-1){p(b),h((0,a.findLocaleFromCode)(t,b)),n&&v("locale",b);return}(async()=>{let e;if(n){if((e=await g("locale"))&&t.localeCodes.indexOf(e)>-1){p(e),h((0,a.findLocaleFromCode)(t,e));return}v("locale",s)}p(s),h((0,a.findLocaleFromCode)(t,s))})()}},[s,g,b,v,n,t]),r.default.createElement(d.Provider,{value:m},e)},f=()=>(0,r.useContext)(d),p=d},87068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=d(n(96540)),a=d(n(68154)),o=n(43992),i=d(n(58847)),l=d(n(96948)),u=d(n(79752)),s=n(86919);function d(e){return e&&e.__esModule?e:{default:e}}let c=["ar","fa","ha","ku","ur","ps","dv","ks","khw","he","yi"],f=({description:e,keywords:t="CMS, Admin, Dashboard",meta:n=[],title:d})=>{let{i18n:f}=(0,o.useTranslation)(),p=f.language,m=c.includes(p)?"RTL":"LTR",h=(0,s.useConfig)(),g=h.admin.meta?.titleSuffix??"- Payload",v=h.admin.meta.favicon??i.default,b=h.admin.meta.ogImage??l.default;return(0,u.default)(()=>{let e=document.querySelector("link[data-placeholder-favicon]");e&&e.remove()}),r.default.createElement(a.default,{htmlAttributes:{dir:m,lang:p},link:[{href:v,rel:"icon",type:"image/svg+xml"}],meta:[{name:"description",content:e},{name:"keywords",content:t},{content:`${d} ${g}`,property:"og:title"},{content:b,property:"og:image"},{content:e,property:"og:description"},{content:"website",property:"og:type"},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:d},{name:"twitter:description",content:e}].concat(n),title:`${d} ${g}`})}},3643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{OperationContext:function(){return a},useOperation:function(){return o}});let r=n(96540),a=(0,r.createContext)(""),o=()=>(0,r.useContext)(a)},71849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PreferencesProvider:function(){return f},usePreferences:function(){return p}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(4982)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(60146),l=n(7695),u=n(86919);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let d=(0,a.createContext)({}),c=(e,t)=>({body:JSON.stringify({value:e}),headers:{"Accept-Language":t,"Content-Type":"application/json"}}),f=({children:e})=>{let t=(0,a.useRef)({}),n=(0,a.useRef)({}),s=(0,a.useRef)({}),f=(0,u.useConfig)(),{user:p}=(0,l.useAuth)(),{i18n:m}=(0,o.useTranslation)(),{routes:{api:h},serverURL:g}=f;(0,a.useEffect)(()=>{p||(n.current={})},[p]);let v=(0,a.useCallback)(async e=>{let t=n.current;if(void 0!==t[e])return t[e];let r=new Promise(t=>{(async()=>{let r=await i.requests.get(`${g}${h}/payload-preferences/${e}`,{headers:{"Accept-Language":m.language}}),a=null;if(200===r.status){let e=await r.json();a=e.value}n.current[e]=a,t(a)})()});return t[e]=r,r},[m.language,h,n,g]),b=(0,a.useCallback)(async(e,t,a=!1)=>{if(!1===a){n.current[e]=t,await i.requests.post(`${g}${h}/payload-preferences/${e}`,c(t,m.language));return}let o=t,l=await v(e);if("object"==typeof t&&"object"==typeof l&&"object"==typeof o){if(o={...l||{},...t},(0,r.default)(o,l))return;s.current[e]={...s.current[e],...o}}else{if(o===l)return;s.current[e]=o}let u=async()=>{(0,r.default)(s.current[e],n.current[e])||(n.current[e]=s.current[e],await i.requests.post(`${g}${h}/payload-preferences/${e}`,c(n.current[e],m.language)),delete s.current[e])};setTimeout(()=>{u()})},[h,v,m.language,s,g]);return t.current.getPreference=v,t.current.setPreference=b,a.default.createElement(d.Provider,{value:t.current},e)},p=()=>(0,a.useContext)(d)},45649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=e=>{let{CustomComponent:t,DefaultComponent:n,componentProps:a}=e;return t?r.default.createElement(t,a):r.default.createElement(n,a)}},7087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{SearchParamsProvider:function(){return u},useSearchParams:function(){return s}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(30876);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let l=(0,a.createContext)({}),u=({children:e})=>{let t=(0,o.useLocation)(),n=r.default.parse(t.search,{depth:10,ignoreQueryPrefix:!0});return a.default.createElement(l.Provider,{value:n},e)},s=()=>(0,a.useContext)(l)},88218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ThemeProvider:function(){return u},useTheme:function(){return s},default:function(){return d}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(0,r.createContext)({autoMode:!0,setTheme:()=>null,theme:"light"}),i="payload-theme",l=()=>{let e;let t=window.localStorage.getItem(i);return e="light"===t||"dark"===t?t:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",document.documentElement.setAttribute("data-theme",e),e},u=({children:e})=>{let[t,n]=(0,r.useState)(l),[a,u]=(0,r.useState)(()=>{let e=window.localStorage.getItem(i);return!e}),s=(0,r.useCallback)(e=>{if("light"===e||"dark"===e)n(e),u(!1),window.localStorage.setItem(i,e),document.documentElement.setAttribute("data-theme",e);else if("auto"===e){let e=window.localStorage.getItem(i);e&&window.localStorage.removeItem(i);let t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";document.documentElement.setAttribute("data-theme",t),u(!0),n(t)}},[]);return r.default.createElement(o.Provider,{value:{autoMode:a,setTheme:s,theme:t}},e)},s=()=>(0,r.useContext)(o),d=o},96645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"withMergedProps",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(48523);function o({Component:e,toMergeIntoProps:t}){return n=>{let o=(0,a.deepMerge)(t,n);return r.default.createElement(e,o)}}},14233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"API",{enumerable:!0,get:function(){return k}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(26835),i=n(60146),l=g(n(37724)),u=n(11897),s=n(19680),d=g(n(37389)),c=n(70953),f=n(86919),p=n(50444),m=n(62519),h=n(43902);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}n(67043);let b={leftCurlyBracket:"{",leftSquareBracket:"[",rightCurlyBracket:"}",rightSquareBracket:"]"},y="query-inspector",w=({comma:e=!1,position:t,type:n})=>{let a="object"===n?b.rightCurlyBracket:b.rightSquareBracket,o="object"===n?b.leftCurlyBracket:b.leftSquareBracket,i="end"===t?a:o;return r.createElement("span",{className:`${y}__bracket ${y}__bracket--position-${t}`},i,"end"===t&&e?",":null)},x=({isEmpty:e=!1,object:t,objectKey:n,parentType:a="object",trailingComma:i=!1})=>{let l=Object.keys(t),u=l.length,[s,d]=r.useState(!0);return r.createElement("li",null,r.createElement("button",{"aria-label":"toggle",className:`${y}__list-toggle ${e?`${y}__list-toggle--empty`:""}`,onClick:()=>d(!s),type:"button"},e?null:r.createElement(o.Chevron,{className:`${y}__toggle-row-icon ${y}__toggle-row-icon--${s?"open":"closed"}`}),r.createElement("span",null,n&&`"${n}": `,r.createElement(w,{position:"start",type:a}),e?r.createElement(w,{comma:i,position:"end",type:a}):null)),r.createElement("ul",{className:`${y}__json-children`},s&&l.map((e,o)=>{let i=t[e],l="string",s=o===u-1;if(null===i?l="null":i instanceof Date?(l="date",i=i.toISOString()):l=Array.isArray(i)?"array":"object"==typeof i?"object":"number"==typeof i?"number":"boolean"==typeof i?"boolean":"string","object"===l||"array"===l)return r.createElement(x,{isEmpty:0===i.length||0===Object.keys(i).length,key:`${e}-${o}`,object:i,objectKey:"object"===a?e:void 0,parentType:l,trailingComma:!s});if("date"===l||"string"===l||"null"===l||"number"===l||"boolean"===l){let t=!!("object"===a&&e),u=[`${y}__row-line`,`${y}__value-type--${l}`,`${y}__row-line--${n?"nested":"top"}`].filter(Boolean).join(" ");return r.createElement("li",{className:u,key:`${e}-${o}`},t?r.createElement("span",null,`"${e}": `):null,r.createElement("span",{className:`${y}__value`},JSON.stringify(i)),s?"":",")}})),!e&&r.createElement("span",null,r.createElement(w,{comma:i,position:"end",type:a})))},k=e=>{let t;let{apiURL:n}=e,{i18n:o}=(0,a.useTranslation)(),{localization:g,routes:{api:v},serverURL:b}=(0,f.useConfig)(),{id:w,collection:k,global:P}=(0,p.useDocumentInfo)(),{code:E}=(0,m.useLocale)(),A=function(e){if(!e.startsWith("/"))return new URL(e);{let t=window.location.origin;return new URL(e,t)}}(n),D=k?.versions?.drafts||P?.versions?.drafts,O=P?`/globals/${P.slug}`:`/${k.slug}/${w}`,[C,M]=r.useState({}),[S,j]=r.useState("true"===A.searchParams.get("draft")),[T,_]=r.useState(A.searchParams.get("locale")||E),[N,L]=r.useState(A.searchParams.get("depth")||"1"),[R,z]=r.useState(!0),[I,F]=r.useState(!1),W=`${b}${v}${O}?locale=${T}&draft=${S}&depth=${N}`;r.useEffect(()=>{let e=async()=>{let e=await i.requests.get(W,{credentials:R?"include":"omit",headers:{"Accept-Language":o.language}}),t=await e.json();M(t)};e()},[o.language,W,R]);let B=g&&g.locales.map(e=>({label:e.label,value:e.code})),U=[y,I&&`${y}--fullscreen`].filter(Boolean).join(" ");return"collection"in e&&(t=e?.isEditing),r.createElement(u.Gutter,{className:U,right:!1},r.createElement(h.SetStepNav,{collection:k,global:P,id:w,isEditing:t,view:"API"}),r.createElement("div",{className:`${y}__configuration`},r.createElement("div",{className:`${y}__api-url`},r.createElement("span",{className:`${y}__label`},"API URL ",r.createElement(l.default,{value:W})),r.createElement("a",{href:W,rel:"noopener noreferrer",target:"_blank"},W)),r.createElement("div",{className:`${y}__form-fields`},r.createElement("div",{className:`${y}__filter-query-checkboxes`},D&&r.createElement(s.CheckboxInput,{checked:S,id:"draft-checkbox",label:"Draft",onToggle:()=>j(!S)}),r.createElement(s.CheckboxInput,{checked:R,id:"auth-checkbox",label:"Authenticated",onToggle:()=>z(!R)})),B&&r.createElement(d.default,{defaultValue:{label:T,value:T},label:"Locale",name:"locale",onChange:e=>_(e.value),options:B,path:"locale"}),r.createElement(d.default,{defaultValue:{label:N,value:N},label:"Depth",name:"depth",onChange:e=>L(e.value),options:[{label:"0",value:"0"},{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"}],path:"depth"}))),r.createElement("div",{className:`${y}__results-wrapper`},r.createElement("div",{className:`${y}__toggle-fullscreen-button-container`},r.createElement("button",{"aria-label":"toggle fullscreen",className:`${y}__toggle-fullscreen-button`,onClick:()=>F(!I),type:"button"},r.createElement(c.MinimizeMaximize,{isMinimized:!I}))),r.createElement("div",{className:`${y}__results`},r.createElement(x,{object:C}))))}},72811:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(54609),i=n(50594),l=n(67434),u=n(72234),s=g(n(8914)),d=n(84836),c=n(7695),f=g(n(87068)),p=n(3643),m=g(n(1800)),h=n(21794);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}n(83512);let b="account",y=e=>{let{action:t,apiURL:n,collection:g,data:v,fieldTypes:y,hasSavePermission:w,initialState:x,isLoading:k,onSave:P,permissions:E}=e,{auth:A,fields:D}=g,{refreshCookieAsync:O}=(0,c.useAuth)(),{t:C}=(0,a.useTranslation)("authentication"),M=(0,r.useCallback)(async e=>{await O(),"function"==typeof P&&P(e)},[P,O]);return r.default.createElement(r.default.Fragment,null,r.default.createElement(f.default,{description:C("accountOfCurrentUser"),keywords:C("account"),title:C("account")}),r.default.createElement(u.LoadingOverlayToggle,{name:"account",show:k,type:"withoutNav"}),!k&&r.default.createElement(p.OperationContext.Provider,{value:"update"},r.default.createElement(s.default,{action:t,disabled:!w,initialState:x,method:"patch",onSuccess:M},!(g.versions?.drafts&&g.versions?.drafts?.autosave)&&r.default.createElement(d.LeaveWithoutSaving,null),r.default.createElement(l.DocumentHeader,{apiURL:n,collection:g,data:v}),r.default.createElement(o.DocumentControls,{apiURL:n,collection:g,data:v,hasSavePermission:w,isAccountView:!0,permissions:E}),r.default.createElement(i.DocumentFields,{AfterFields:r.default.createElement(h.Settings,{className:`${b}__settings`}),BeforeFields:r.default.createElement(m.default,{className:`${b}__auth`,collection:g,email:v?.email,operation:"update",readOnly:!w,useAPIKey:A.useAPIKey}),fieldTypes:y,fields:D,hasSavePermission:w,permissions:E}))))}},21794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Settings",{enumerable:!0,get:function(){return d}});let r=u(n(96540)),a=n(43992),o=u(n(78877)),i=u(n(16034)),l=n(26832);function u(e){return e&&e.__esModule?e:{default:e}}n(54338);let s="payload-settings",d=e=>{let{className:t}=e,{i18n:n,t:u}=(0,a.useTranslation)("authentication"),d=Object.entries(n.options.resources||{}).map(([e,t])=>({label:t.general.thisLanguage,value:e}));return r.default.createElement("div",{className:[s,t].filter(Boolean).join(" ")},r.default.createElement("h3",null,u("general:payloadSettings")),r.default.createElement("div",{className:`${s}__language`},r.default.createElement(i.default,{htmlFor:"language-select",label:u("general:language")}),r.default.createElement(o.default,{inputId:"language-select",onChange:({value:e})=>n.changeLanguage(e),options:d,value:d.find(e=>e.value===n.language)})),r.default.createElement(l.ToggleTheme,null))}},26832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ToggleTheme",{enumerable:!0,get:function(){return u}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=function(e){return e&&e.__esModule?e:{default:e}}(n(45499)),i=n(88218);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}let u=()=>{let{autoMode:e,setTheme:t,theme:n}=(0,i.useTheme)(),{t:l}=(0,a.useTranslation)("general"),u=(0,r.useCallback)(e=>{t(e)},[t]);return r.default.createElement(o.default,{label:l("adminTheme"),name:"theme",onChange:u,options:[{label:l("automatic"),value:"auto"},{label:l("light"),value:"light"},{label:l("dark"),value:"dark"}],value:e?"auto":n})}},35482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=v(n(82472)),l=n(83949),u=v(n(68697)),s=n(94416),d=n(7695),c=n(86919),f=n(50444),p=n(62519),m=n(71849),h=v(n(45649)),g=v(n(72811));function v(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}let y=()=>{let{state:e}=(0,o.useLocation)(),{code:t}=(0,p.useLocale)(),{setStepNav:n}=(0,l.useStepNav)(),{user:v}=(0,d.useAuth)(),b=(0,r.useRef)(v),[y,w]=(0,r.useState)(),{id:x,docPermissions:k,getDocPermissions:P,getDocPreferences:E,preferencesKey:A,slug:D}=(0,f.useDocumentInfo)(),{getPreference:O}=(0,m.usePreferences)(),C=(0,c.useConfig)(),{admin:{components:{views:{Account:M}={}}={}},collections:S,routes:{api:j},serverURL:T}=(0,c.useConfig)(),{t:_}=(0,a.useTranslation)("authentication"),N=S.find(e=>e.slug===D),{fields:L}=N||{},[{data:R,isLoading:z}]=(0,i.default)(`${T}${j}/${D}/${x}`,{initialData:null,initialParams:{depth:0,"fallback-locale":"null"}}),I=k?.update?.permission,F=e?.data||R,W=`${T}${j}/${D}/${R?.id}?locale=${t}`,B=`${T}${j}/${D}/${R?.id}?locale=${t}`,U=r.default.useCallback(async e=>{await P();let n=await E(),r=await (0,u.default)({id:x,config:C,data:e.doc,fieldSchema:N?.fields,locale:t,operation:"update",preferences:n,t:_,user:v});w(r)},[N,v,x,_,t,P,E,C]);(0,r.useEffect)(()=>{let e=[{label:_("account")}];n(e)},[n,_]),(0,r.useEffect)(()=>{let e=async()=>{let e=await E(),n=await (0,u.default)({id:x,config:C,data:F,fieldSchema:L,locale:t,operation:"update",preferences:e,t:_,user:b.current});A&&await O(A),w(n)};F&&e()},[F,L,x,t,A,O,_,E,C]);let V={id:x.toString(),action:B,apiURL:W,collection:N,data:R,fieldTypes:s.fieldTypes,hasSavePermission:I,initialState:y,isLoading:!y||!k||z,onSave:U,permissions:k,updatedAt:R?.updatedAt,user:v};return r.default.createElement(h.default,{CustomComponent:"function"==typeof M?M:void 0,DefaultComponent:g.default,componentProps:V})}},43740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=p(n(96540)),a=n(43992),o=p(n(8914)),i=p(n(13309)),l=p(n(16488)),u=n(94416),s=p(n(36515)),d=n(7695),c=n(86919),f=p(n(87068));function p(e){return e&&e.__esModule?e:{default:e}}n(93326);let m=e=>{let{setInitialized:t}=e,{fetchFullUser:n}=(0,d.useAuth)(),{admin:{user:p},collections:m,routes:{admin:h,api:g},serverURL:v}=(0,c.useConfig)(),{t:b}=(0,a.useTranslation)("authentication"),y=m.find(e=>e.slug===p),w=async e=>{e?.user?.token&&await n(),t(!0)},x=[{name:"email",label:b("general:emailAddress"),required:!0,type:"email"},{name:"password",label:b("general:password"),required:!0,type:"password"},{name:"confirm-password",label:b("confirmPassword"),required:!0,type:"confirmPassword"}];return r.default.createElement(s.default,{className:"create-first-user"},r.default.createElement("h1",null,b("general:welcome")),r.default.createElement("p",null,b("beginCreateFirstUser")),r.default.createElement(f.default,{description:b("createFirstUser"),keywords:b("general:create"),title:b("createFirstUser")}),r.default.createElement(o.default,{action:`${v}${g}/${p}/first-register`,method:"post",onSuccess:w,redirect:h,validationOperation:"create"},r.default.createElement(i.default,{fieldSchema:[...x,...y.fields],fieldTypes:u.fieldTypes}),r.default.createElement(l.default,null,b("general:create"))))}},14064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(3994),l=n(90282),u=f(n(55182)),s=f(n(35656)),d=n(11897),c=n(86919);function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}n(76439);let m="dashboard",h=e=>{let{collections:t,globals:n,permissions:f,user:p}=e,{push:h}=(0,o.useHistory)(),{i18n:g,t:v}=(0,a.useTranslation)("general"),{admin:{components:{afterDashboard:b,beforeDashboard:y}},routes:{admin:w}}=(0,c.useConfig)(),[x,k]=(0,r.useState)([]);return(0,r.useEffect)(()=>{k((0,l.groupNavItems)([...t.filter(({admin:{hidden:e}})=>!("function"==typeof e?e({user:p}):e)).map(e=>{let t={entity:e,type:l.EntityType.collection};return t}),...n.filter(({admin:{hidden:e}})=>!("function"==typeof e?e({user:p}):e)).map(e=>{let t={entity:e,type:l.EntityType.global};return t})],f,g))},[t,n,g,f,p]),r.default.createElement("div",{className:m},r.default.createElement(d.Gutter,{className:`${m}__wrap`},Array.isArray(y)&&y.map((e,t)=>r.default.createElement(e,{key:t})),x.map(({entities:e,label:t},n)=>r.default.createElement("div",{className:`${m}__group`,key:n},r.default.createElement("h2",{className:`${m}__label`},t),r.default.createElement("ul",{className:`${m}__card-list`},e.map(({entity:e,type:t},n)=>{let a,o,d,c,p;return t===l.EntityType.collection&&(o=v("showAllLabel",{label:a=(0,i.getTranslation)(e.labels.plural,g)}),c=()=>h({pathname:`${w}/collections/${e.slug}`}),d=`${w}/collections/${e.slug}/create`,p=f?.collections?.[e.slug]?.create?.permission),t===l.EntityType.global&&(a=(0,i.getTranslation)(e.label,g),o=v("editLabel",{label:(0,i.getTranslation)(e.label,g)}),c=()=>h({pathname:`${w}/globals/${e.slug}`})),r.default.createElement("li",{key:n},r.default.createElement(s.default,{actions:p&&t===l.EntityType.collection?r.default.createElement(u.default,{"aria-label":v("createNewLabel",{label:(0,i.getTranslation)(e.labels.singular,g)}),buttonStyle:"icon-label",el:"link",icon:"plus",iconStyle:"with-border",round:!0,to:d}):void 0,buttonAriaLabel:o,id:`card-${e.slug}`,onClick:c,title:a,titleAs:"h3"}))})))),Array.isArray(b)&&b.map((e,t)=>r.default.createElement(e,{key:t}))))}},91013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(83949),o=n(7695),i=n(86919),l=s(n(45649)),u=s(n(14064));function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}let c=()=>{let{permissions:e,user:t}=(0,o.useAuth)(),{setStepNav:n}=(0,a.useStepNav)(),[s,d]=(0,r.useState)([]),{admin:{components:{views:{Dashboard:c}={}}={}}={},collections:f,globals:p}=(0,i.useConfig)();return(0,r.useEffect)(()=>{d(p.filter(t=>e?.globals?.[t.slug]?.read?.permission))},[e,p]),(0,r.useEffect)(()=>{n([])},[n]),r.default.createElement(l.default,{CustomComponent:"function"==typeof c?c:void 0,DefaultComponent:u.default,componentProps:{collections:f.filter(t=>e?.collections?.[t.slug]?.read?.permission),globals:s,permissions:e,user:t}})}},58473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(77399),l=h(n(55182)),u=h(n(8914)),s=h(n(16488)),d=h(n(23067)),c=h(n(36515)),f=n(7695),p=n(86919),m=h(n(87068));function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}n(12461);let v="forgot-password",b=()=>{let[e,t]=(0,r.useState)(!1),{user:n}=(0,f.useAuth)(),{t:h}=(0,a.useTranslation)("authentication"),{admin:{user:g},routes:{admin:b,api:y},serverURL:w}=(0,p.useConfig)();return n?r.default.createElement(c.default,{className:v},r.default.createElement(m.default,{description:h("forgotPassword"),keywords:h("forgotPassword"),title:h("forgotPassword")}),r.default.createElement("h1",null,h("alreadyLoggedIn")),r.default.createElement("p",null,r.default.createElement(a.Trans,{i18nKey:"loggedInChangePassword",t:h},r.default.createElement(o.Link,{to:`${b}/account`},"account"))),r.default.createElement("br",null),r.default.createElement(l.default,{buttonStyle:"secondary",el:"link",to:b},h("general:backToDashboard"))):e?r.default.createElement(c.default,{className:v},r.default.createElement("h1",null,h("emailSent")),r.default.createElement("p",null,h("checkYourEmailForPasswordReset"))):r.default.createElement(c.default,{className:v},r.default.createElement(u.default,{action:`${w}${y}/${g}/forgot-password`,handleResponse:e=>{e.json().then(()=>{t(!0)},()=>{i.toast.error(h("emailNotValid"))})},method:"post"},r.default.createElement("h1",null,h("forgotPassword")),r.default.createElement("p",null,h("forgotPasswordEmailInstructions")),r.default.createElement(d.default,{admin:{autoComplete:"email"},label:h("general:emailAddress"),name:"email",required:!0}),r.default.createElement(s.default,null,h("general:submit"))),r.default.createElement(o.Link,{to:`${b}/login`},h("backToLogin")))}},94457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=p(n(96540)),a=n(43992),o=n(3994),i=n(67434),l=n(72234),u=p(n(8914)),s=n(3643),d=n(43902),c=n(32787),f=n(89953);function p(e){return e&&e.__esModule?e:{default:e}}n(13096);let m="global-edit",h=e=>{let{i18n:t}=(0,a.useTranslation)("general"),{action:n,apiURL:p,data:h,disableRoutes:g,fieldTypes:v,global:b,initialState:y,isLoading:w,onSave:x,permissions:k}=e,{label:P}=b,E=k?.update?.permission;return r.default.createElement("main",{className:m},r.default.createElement(s.OperationContext.Provider,{value:"update"},r.default.createElement(d.SetStepNav,{global:b}),r.default.createElement(u.default,{action:n,className:`${m}__form`,disabled:!E,initialState:y,method:"post",onSuccess:x},r.default.createElement(l.FormLoadingOverlayToggle,{action:"update",loadingSuffix:(0,o.getTranslation)(P,t),name:`global-edit--${"string"==typeof P?P:P?.en}`}),!w&&r.default.createElement(r.default.Fragment,null,r.default.createElement(i.DocumentHeader,{apiURL:p,data:h,global:b}),g?r.default.createElement(f.CustomGlobalComponent,{view:"Default",...e}):r.default.createElement(c.GlobalRoutes,{...e,fieldTypes:v})))))}},46386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DefaultGlobalEdit",{enumerable:!0,get:function(){return f}});let r=c(n(96540)),a=n(43992),o=n(3994),i=n(54609),l=n(50594),u=n(84836),s=c(n(87068)),d=n(43902);function c(e){return e&&e.__esModule?e:{default:e}}let f=e=>{let{apiURL:t,data:n,fieldTypes:c,global:f,permissions:p}=e,{i18n:m}=(0,a.useTranslation)(),{admin:{description:h}={},fields:g,label:v}=f,b=p?.update?.permission;return r.default.createElement(r.default.Fragment,null,r.default.createElement(s.default,{description:(0,o.getTranslation)(v,m),keywords:`${(0,o.getTranslation)(v,m)}, Payload, CMS`,title:(0,o.getTranslation)(v,m)}),!(f.versions?.drafts&&f.versions?.drafts?.autosave)&&r.default.createElement(u.LeaveWithoutSaving,null),r.default.createElement(d.SetStepNav,{global:f}),r.default.createElement(i.DocumentControls,{apiURL:t,data:n,global:f,hasSavePermission:b,isEditing:!0,permissions:p}),r.default.createElement(l.DocumentFields,{description:h,fieldTypes:c,fields:g,hasSavePermission:b,permissions:p}))}},89953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultGlobalViews:function(){return d},CustomGlobalComponent:function(){return c}});let r=s(n(96540)),a=n(14233),o=n(99343),i=s(n(68965)),l=s(n(65982)),u=n(46386);function s(e){return e&&e.__esModule?e:{default:e}}let d={API:a.API,Default:u.DefaultGlobalEdit,LivePreview:o.LivePreviewView,References:null,Relationships:null,Version:i.default,Versions:l.default},c=e=>{let{global:t,view:n}=e,{admin:{components:{views:{Edit:a}={}}={}}={}}=t,o="object"==typeof a&&"function"==typeof a[n]?a[n]:"object"==typeof a&&"object"==typeof a?.[n]&&"function"==typeof a[n].Component?a[n].Component:d[n];if(o)return r.default.createElement(o,e)}},66336:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"globalCustomRoutes",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(30876),o=i(n(33969));function i(e){return e&&e.__esModule?e:{default:e}}let l=["Default","LivePreview","Version","Versions","Relationships","References","API"],u=e=>{let{global:t,match:n,permissions:i,user:u}=e,s=[],d=t?.admin?.components?.views?.Edit;return"function"!=typeof d&&"object"==typeof d&&(s=Object.entries(d).filter(([e,t])=>!!(!l.includes(e)&&"function"!=typeof t&&"object"==typeof t))?.map(([,e])=>e)),s?.reduce((e,l)=>{let s=[...e];if("function"==typeof l)s.push(r.default.createElement(l,{key:l.name,user:u}));else if(t&&"Component"in l){let{Component:e,path:d}=l;s.push(r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-${d}`,path:`${n.url}${d}`},i?.read?.permission?r.default.createElement(e,{user:u}):r.default.createElement(o.default,null)))}return s},[])}},32787:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GlobalRoutes",{enumerable:!0,get:function(){return p}});let r=c(n(96540)),a=n(30876),o=n(7695),i=n(86919),l=function(e){return e&&e.__esModule?e:{default:e}}(n(92376)),u=n(89953),s=n(66336);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let f=(0,r.lazy)(()=>Promise.resolve().then(()=>c(n(33969)))),p=e=>{let{global:t,permissions:n}=e,d=(0,a.useRouteMatch)(),{admin:{livePreview:c},routes:{admin:p}}=(0,i.useConfig)(),{user:m}=(0,o.useAuth)(),h=c?.globals?.some(e=>e===t.slug)||t?.admin?.livePreview;return r.default.createElement(a.Switch,null,r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-versions`,path:`${p}/globals/${t.slug}/versions`},n?.readVersions?.permission?r.default.createElement(u.CustomGlobalComponent,{view:"Versions",...e}):r.default.createElement(f,null)),t?.admin?.hideAPIURL!==!0&&r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-api`,path:`${p}/globals/${t.slug}/api`},n?.read?r.default.createElement(u.CustomGlobalComponent,{view:"API",...e}):r.default.createElement(f,null)),r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-view-version`,path:`${p}/globals/${t.slug}/versions/:versionID`},n?.readVersions?.permission?r.default.createElement(u.CustomGlobalComponent,{view:"Version",...e}):r.default.createElement(f,null)),h&&r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-live-preview`,path:`${p}/globals/${t.slug}/preview`},r.default.createElement(u.CustomGlobalComponent,{view:"LivePreview",...e})),(0,s.globalCustomRoutes)({global:t,match:d,permissions:n,user:m}),r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-view`,path:`${p}/globals/${t.slug}`},r.default.createElement(u.CustomGlobalComponent,{view:"Default",...e})),r.default.createElement(a.Route,{path:`${d.url}*`},r.default.createElement(l.default,{marginTop:"large"})))}},48184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=b(n(82472)),l=b(n(68697)),u=n(94416),s=n(7695),d=n(86919),c=n(86425),f=n(50444),p=n(95702),m=n(62519),h=n(71849),g=b(n(45649)),v=b(n(94457));function b(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}let w=e=>{let{global:t}=e,{state:n}=(0,o.useLocation)(),{code:b}=(0,m.useLocale)(),{permissions:y,user:w}=(0,s.useAuth)(),[x,k]=(0,r.useState)(),[P,E]=(0,r.useState)(),{docPermissions:A,getDocPermissions:D,getDocPreferences:O,getVersions:C,preferencesKey:M}=(0,f.useDocumentInfo)(),{getPreference:S}=(0,h.usePreferences)(),{t:j}=(0,a.useTranslation)(),T=(0,d.useConfig)(),{routes:{api:_},serverURL:N}=(0,d.useConfig)(),{reportUpdate:L}=(0,c.useDocumentEvents)(),{admin:{components:{views:{Edit:R}={}}={}}={},fields:z,slug:I}=t,F=(0,r.useCallback)(async e=>{L({entitySlug:t.slug,updatedAt:e?.result?.updatedAt||new Date().toISOString()}),C(),D(),E(e?.result?.updatedAt);let n=await O(),r=await (0,l.default)({config:T,data:e.result,fieldSchema:z,locale:b,operation:"update",preferences:n,t:j,user:w});k(r)},[C,z,w,b,j,D,O,T,t,L]),[{data:W,isLoading:B}]=(0,i.default)(`${N}${_}/globals/${I}`,{initialData:null,initialParams:{depth:0,draft:"true","fallback-locale":"null"}}),U=n?.data||W;(0,r.useEffect)(()=>{let e=async()=>{let e=await O(),t=await (0,l.default)({config:T,data:U,fieldSchema:z,locale:b,operation:"update",preferences:e,t:j,user:w});M&&await S(M),k(t)};U&&e()},[U,z,w,b,S,M,j,O,T]);let V={action:`${N}${_}/globals/${I}?locale=${b}&fallback-locale=null`,apiURL:`${N}${_}/globals/${I}?locale=${b}${t.versions?.drafts?"&draft=true":""}`,canAccessAdmin:y?.canAccessAdmin,data:U,fieldTypes:u.fieldTypes,global:t,initialState:x,isLoading:!x||!A||B,onSave:F,permissions:A,updatedAt:P||U?.updatedAt,user:w};return r.default.createElement(p.EditDepthContext.Provider,{value:1},r.default.createElement(g.default,{CustomComponent:"function"==typeof R?R:void 0,DefaultComponent:v.default,componentProps:V}))}},30496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"customCollisionDetection",{enumerable:!0,get:function(){return a}});let r=n(43375),a=({collisionRect:e,droppableContainers:t,...n})=>{let a=t.find(({id:e})=>"live-preview-area"===e),o=(0,r.rectIntersection)({...n,collisionRect:e,droppableContainers:[a]});if(0===o.length)return o;let i=a?.rect?.current,l=e.top>=i.top&&e.left>=i.left&&e.bottom<=i.bottom&&e.right<=i.right;if(l)return o}},80608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{LivePreviewContext:function(){return a},useLivePreviewContext:function(){return o}});let r=n(96540),a=(0,r.createContext)({appIsReady:!1,breakpoint:void 0,breakpoints:void 0,fieldSchemaJSON:void 0,iframeHasLoaded:!1,iframeRef:void 0,isPopupOpen:!1,measuredDeviceSize:{height:0,width:0},openPopupWindow:()=>{},popupRef:void 0,previewWindowType:"iframe",setAppIsReady:()=>{},setBreakpoint:()=>{},setHeight:()=>{},setIframeHasLoaded:()=>{},setMeasuredDeviceSize:()=>{},setPreviewWindowType:()=>{},setSize:()=>{},setToolbarPosition:()=>{},setWidth:()=>{},setZoom:()=>{},size:{height:0,width:0},toolbarPosition:{x:0,y:0},url:void 0,zoom:1}),o=()=>(0,r.useContext)(a)},33707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LivePreviewProvider",{enumerable:!0,get:function(){return d}});let r=n(43375),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(47861),i=n(30496),l=n(80608),u=n(69328);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let d=e=>{let{breakpoints:t,children:n,isPopupOpen:s,openPopupWindow:d,popupRef:c,url:f}=e,[p,m]=(0,a.useState)("iframe"),[h,g]=(0,a.useState)(!1),v=a.default.useRef(null),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(1),[k,P]=(0,a.useState)({x:0,y:0}),[E,A]=a.default.useReducer(u.sizeReducer,{height:0,width:0}),[D,O]=(0,a.useState)({height:0,width:0}),[C,M]=a.default.useState("responsive"),[S]=(0,a.useState)(()=>{let t;if("collection"in e){let{collection:n}=e;t=n.fields}if("global"in e){let{global:n}=e;t=n.fields}return(0,o.fieldSchemaToJSON)(t)}),j=(0,a.useCallback)(e=>{A({type:"width",value:e})},[A]),T=(0,a.useCallback)(e=>{A({type:"height",value:e})},[A]);(0,a.useEffect)(()=>{let e=t?.find(e=>e.name===C);e&&"responsive"!==C&&"custom"!==C&&"number"==typeof e?.width&&"number"==typeof e?.height&&A({type:"reset",value:{height:e.height,width:e.width}})},[C,t]),(0,a.useEffect)(()=>{let e=e=>{f?.startsWith(e.origin)&&e.data&&"object"==typeof e.data&&"payload-live-preview"===e.data.type&&e.data.ready&&g(!0)};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[f]);let _=(0,a.useCallback)(e=>{g(!1),m(e),"popup"===e&&d()},[d]);return(0,a.useEffect)(()=>{s||_("iframe")},[s,_]),a.default.createElement(l.LivePreviewContext.Provider,{value:{appIsReady:h,breakpoint:C,breakpoints:t,fieldSchemaJSON:S,iframeHasLoaded:b,iframeRef:v,isPopupOpen:s,measuredDeviceSize:D,openPopupWindow:d,popupRef:c,previewWindowType:p,setAppIsReady:g,setBreakpoint:M,setHeight:T,setIframeHasLoaded:y,setMeasuredDeviceSize:O,setPreviewWindowType:_,setSize:A,setToolbarPosition:P,setWidth:j,setZoom:x,size:E,toolbarPosition:k,url:f,zoom:w}},a.default.createElement(r.DndContext,{collisionDetection:i.customCollisionDetection,onDragEnd:e=>{if(e.over&&"live-preview-area"===e.over.id){let t={x:k.x+e.delta.x,y:k.y+e.delta.y};P(t)}}},n))}},69328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sizeReducer",{enumerable:!0,get:function(){return n}});let n=(e,t)=>{switch(t.type){case"width":return{...e,width:t.value};case"height":return{...e,height:t.value};default:return{...e,...t?.value||{}}}}},86706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DeviceContainer",{enumerable:!0,get:function(){return l}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(6398),o=n(80608);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let l=e=>{let{children:t}=e,n=r.default.useRef(null),{breakpoint:i,setMeasuredDeviceSize:l,size:u,zoom:s}=(0,o.useLivePreviewContext)(),{size:d}=(0,a.useResize)(n);(0,r.useEffect)(()=>{d&&l(d)},[d,l]);let c="0",f="0";if(i&&"responsive"!==i&&(c="-50%","number"==typeof s&&"number"==typeof u.width&&"number"==typeof u.height)){let e=u.width/s,t=e-u.width;c=`${t/2}px`,f="0 auto"}let p=s?`${100/s}%`:"100%",m=s?`${100/s}%`:"100%";return"responsive"!==i&&(p=`${u?.width/("number"==typeof s?s:1)}px`,m=`${u?.height/("number"==typeof s?s:1)}px`),r.default.createElement("div",{ref:n,style:{height:m,margin:f,transform:`translate3d(${c}, 0, 0)`,width:p}},t)}},82932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"IFrame",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(80608);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n(17256);let i=(0,r.forwardRef)((e,t)=>{let{setIframeHasLoaded:n,url:o}=e,{zoom:i}=(0,a.useLivePreviewContext)();return r.default.createElement("iframe",{className:"live-preview-iframe",onLoad:()=>{n(!0)},ref:t,src:o,style:{transform:"number"==typeof i?`scale(${i}) `:void 0},title:o})})},31728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LivePreview",{enumerable:!0,get:function(){return m}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(7992),o=n(66461),i=function(e){return e&&e.__esModule?e:{default:e}}(n(69504)),l=n(86425),u=n(80608),s=n(86706),d=n(82932),c=n(92275);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(12674);let p="live-preview-window",m=e=>{let{appIsReady:t,iframeHasLoaded:n,iframeRef:f,popupRef:m,previewWindowType:h,setIframeHasLoaded:g,url:v}=(0,u.useLivePreviewContext)(),{mostRecentUpdate:b}=(0,l.useDocumentEvents)(),{breakpoint:y,fieldSchemaJSON:w}=(0,u.useLivePreviewContext)(),x=r.default.useRef(),[k]=(0,o.useAllFormFields)();if((0,r.useEffect)(()=>{if(k&&window&&"postMessage"in window&&t){let e=(0,i.default)(k,!0),t=!x.current||x.current!==h;x.current=h;let n={data:e,externallyUpdatedRelationship:b,fieldSchemaJSON:t?w:void 0,type:"payload-live-preview"};"popup"===h&&m.current&&m.current.postMessage(n,v),"iframe"===h&&f.current&&f.current.contentWindow?.postMessage(n,v)}},[k,v,n,h,m,t,f,g,w,b]),"iframe"===h)return r.default.createElement("div",{className:[p,y&&"responsive"!==y&&`${p}--has-breakpoint`].filter(Boolean).join(" ")},r.default.createElement("div",{className:`${p}__wrapper`},r.default.createElement(c.LivePreviewToolbar,e),r.default.createElement("div",{className:`${p}__main`},r.default.createElement(s.DeviceContainer,null,v?r.default.createElement(d.IFrame,{ref:f,setIframeHasLoaded:g,url:v}):r.default.createElement(a.ShimmerEffect,{height:"100%"})))))}},10998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ToolbarControls",{enumerable:!0,get:function(){return p}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(26835),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96161)),i=n(7201),l=n(80608),u=n(92899);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}n(28522);let d="live-preview-toolbar-controls",c=[50,75,100,125,150,200],f={label:"Custom",value:"custom"},p=()=>{let{breakpoint:e,breakpoints:t,setBreakpoint:n,setPreviewWindowType:s,setZoom:p,url:m,zoom:h}=(0,l.useLivePreviewContext)();return r.default.createElement("div",{className:d},t?.length>0&&r.default.createElement(a.Popup,{className:`${d}__breakpoint`,button:r.default.createElement(r.default.Fragment,null,r.default.createElement("span",null,t.find(t=>t.name==e)?.label??f.label),"\xa0",r.default.createElement(a.Chevron,{className:`${d}__chevron`})),render:({close:a})=>r.default.createElement(o.ButtonGroup,null,r.default.createElement(r.default.Fragment,null,t.map(t=>r.default.createElement(o.Button,{key:t.name,active:t.name==e,onClick:()=>{n(t.name),a()}},t.label)),"custom"===e&&r.default.createElement(o.Button,{active:e==f.value,onClick:()=>{n(f.value),a()}},f.label))),showScrollbar:!0,verticalAlign:"bottom",horizontalAlign:"right"}),r.default.createElement("div",{className:`${d}__device-size`},r.default.createElement(u.PreviewFrameSizeInput,{axis:"x"}),r.default.createElement("span",{className:`${d}__size-divider`},r.default.createElement(a.X,null)),r.default.createElement(u.PreviewFrameSizeInput,{axis:"y"})),r.default.createElement(a.Popup,{className:`${d}__zoom`,button:r.default.createElement(r.default.Fragment,null,r.default.createElement("span",null,100*h,"%"),"\xa0",r.default.createElement(a.Chevron,{className:`${d}__chevron`})),render:({close:e})=>r.default.createElement(o.ButtonGroup,null,r.default.createElement(r.default.Fragment,null,c.map(t=>r.default.createElement(o.Button,{key:t,active:100*h==t,onClick:()=>{p(t/100),e()}},t,"%")))),showScrollbar:!0,verticalAlign:"bottom",horizontalAlign:"right"}),r.default.createElement("a",{className:`${d}__external`,href:m,onClick:e=>{e.preventDefault(),s("popup")},type:"button"},r.default.createElement(i.ExternalLinkIcon,null)))}},92899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreviewFrameSizeInput",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(80608);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n(11853);let i=e=>{let{axis:t}=e,{breakpoint:n,measuredDeviceSize:o,setBreakpoint:i,setSize:l,size:u,zoom:s}=(0,a.useLivePreviewContext)(),[d,c]=r.default.useState(("x"===t?o?.width:o?.height)||0),f=(0,r.useCallback)(e=>{let n=Number(e.target.value);n<0&&(n=0),c(n),i("custom"),l({type:"reset",value:{height:"y"===t?n:Number(o?.height.toFixed(0))*s,width:"x"===t?n:Number(o?.width.toFixed(0))*s}})},[t,i,o,l,s]);return(0,r.useEffect)(()=>{"responsive"===n&&o&&("x"===t?c(Number(o.width.toFixed(0))*s):c(Number(o.height.toFixed(0))*s)),"responsive"!==n&&u&&c("x"===t?u.width:u.height)},[n,t,o,u,s]),r.default.createElement("input",{className:"toolbar-input",min:0,name:"x"===t?"live-preview-width":"live-preview-height",onChange:f,step:1,type:"number",value:d||0})}},92275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LivePreviewToolbar",{enumerable:!0,get:function(){return f}});let r=n(43375),a=u(n(96540)),o=u(n(61449)),i=n(80608),l=n(10998);function u(e){return e&&e.__esModule?e:{default:e}}n(54189);let s="live-preview-toolbar",d=e=>{let{toolbarPosition:t}=(0,i.useLivePreviewContext)(),{attributes:n,listeners:u,setNodeRef:d,transform:c}=(0,r.useDraggable)({id:"live-preview-toolbar"});return a.default.createElement("div",{className:[s,`${s}--draggable`].join(" "),style:{left:`${t.x}px`,top:`${t.y}px`,...c?{transform:c?`translate3d(${c?.x||0}px, ${c?.y||0}px, 0)`:void 0}:{}}},a.default.createElement("button",{...u,...n,className:`${s}__drag-handle`,ref:d,type:"button"},a.default.createElement(o.default,null)),a.default.createElement(l.ToolbarControls,e))},c=e=>a.default.createElement("div",{className:[s,`${s}--static`].join(" ")},a.default.createElement(l.ToolbarControls,e)),f=e=>{let{draggable:t}=e;return t?a.default.createElement(d,e):a.default.createElement(c,e)}},99343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LivePreviewView",{enumerable:!0,get:function(){return x}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=n(54609),l=n(50594),u=n(84836),s=n(86919),d=n(50444),c=n(62519),f=function(e){return e&&e.__esModule?e:{default:e}}(n(87068)),p=n(43902),m=n(33707),h=n(80608),g=n(31728);n(75845);let v=n(13252);function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}let y="live-preview",w=e=>{let t,n,s,d,c,m,v,b,w;let{i18n:x,t:k}=(0,a.useTranslation)("general"),{previewWindowType:P}=(0,h.useLivePreviewContext)(),{apiURL:E,data:A,fieldTypes:D,permissions:O}=e,C=[];return"collection"in e&&(t=e?.collection,s=e?.disableActions,d=e?.disableLeaveWithoutSaving,c=e?.hasSavePermission,m=e?.isEditing,v=e?.id,C=e?.collection?.fields),"global"in e&&(n=e?.global,C=e?.global?.fields,b=e?.global?.label,w=e?.global?.admin?.description,c=O?.update?.permission),r.default.createElement(r.Fragment,null,t&&r.default.createElement(f.default,{description:k("editing"),keywords:`${(0,o.getTranslation)(t.labels.singular,x)}, Payload, CMS`,title:`${k(m?"editing":"creating")} - ${(0,o.getTranslation)(t.labels.singular,x)}`}),n&&r.default.createElement(f.default,{description:(0,o.getTranslation)(b,x),keywords:`${(0,o.getTranslation)(b,x)}, Payload, CMS`,title:(0,o.getTranslation)(b,x)}),(t&&!(t.versions?.drafts&&t.versions?.drafts?.autosave)||n&&!(n.versions?.drafts&&n.versions?.drafts?.autosave))&&!d&&r.default.createElement(u.LeaveWithoutSaving,null),r.default.createElement(p.SetStepNav,{collection:t,global:n,id:v,isEditing:m,view:k("livePreview")}),r.default.createElement(i.DocumentControls,{apiURL:E,collection:t,data:A,disableActions:s,global:n,hasSavePermission:c,id:v,isEditing:m,permissions:O}),r.default.createElement("div",{className:[y,"popup"===P&&`${y}--detached`].filter(Boolean).join(" ")},r.default.createElement("div",{className:[`${y}__main`,"popup"===P&&`${y}__main--popup-open`].filter(Boolean).join(" ")},r.default.createElement(l.DocumentFields,{description:w,fieldTypes:D,fields:C,forceSidebarWrap:!0,hasSavePermission:c,permissions:O})),r.default.createElement(g.LivePreview,e)))},x=e=>{let{data:t}=e,n=(0,s.useConfig)(),a=(0,d.useDocumentInfo)(),o=(0,c.useLocale)(),i=n?.admin?.livePreview;"collection"in e&&(i={...i||{},...e?.collection.admin.livePreview||{}}),"global"in e&&(i={...i||{},...e?.global.admin.livePreview||{}});let[l,u]=r.default.useState(()=>{if("string"==typeof i?.url)return i?.url});(0,r.useEffect)(()=>{let e=async()=>{let e="function"==typeof i?.url?await i.url({data:t,documentInfo:a,locale:o}):i?.url;u(e)};e()},[t,a,o,i]);let f=[...i?.breakpoints||[],{name:"responsive",height:"100%",label:"Responsive",width:"100%"}],{isPopupOpen:p,openPopupWindow:h,popupRef:g}=(0,v.usePopupWindow)({eventType:"payload-live-preview",url:l});return r.default.createElement(m.LivePreviewProvider,{...e,breakpoints:f,isPopupOpen:p,openPopupWindow:h,popupRef:g,url:l},r.default.createElement(w,e))}},13252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"usePopupWindow",{enumerable:!0,get:function(){return o}});let r=n(96540),a=n(86919),o=e=>{let{eventType:t,onMessage:n,url:o}=e,i=(0,r.useRef)(!1),[l,u]=(0,r.useState)(!1),{serverURL:s}=(0,a.useConfig)(),d=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=async e=>{e.origin===window.location.origin&&e.origin===o&&e.origin===s&&("function"!=typeof n||e.data?.type!==t||i.current||(i.current=!0,await n(e.data?.searchParams),i.current=!1))};return l&&d.current&&window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e)}},[n,t,o,s,l]);let c=(0,r.useCallback)(e=>{e&&e.preventDefault();let t={height:700,left:"auto",menubar:"no",popup:"yes",toolbar:"no",top:"auto",width:800},n=Object.entries(t).reduce((e,[n,r])=>{let a=e;if("auto"===r){if("top"===n){let e=Math.round(window.innerHeight/2-t.height/2);a+=`top=${e},`}else if("left"===n){let e=Math.round(window.innerWidth/2-t.width/2);a+=`left=${e},`}return a}return a+`${n}=${r},`},"").slice(0,-1),r=window.open(o,"_blank",n);d.current=r,u(!0)},[o]);return(0,r.useEffect)(()=>{let e;return l?e=setInterval(function(){d.current.closed&&(clearInterval(e),u(!1))},1e3):clearInterval(e),()=>{e&&clearInterval(e)}},[l,d]),{isPopupOpen:l,openPopupWindow:c,popupRef:d}}},89928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=v(n(96540)),a=n(43992),o=n(30876),i=v(n(55182)),l=n(72234),u=v(n(8914)),s=v(n(16488)),d=v(n(23067)),c=v(n(64472)),f=v(n(36937)),p=v(n(36515)),m=n(7695),h=n(86919),g=v(n(87068));function v(e){return e&&e.__esModule?e:{default:e}}n(50622);let b="login",y=()=>{let e=(0,o.useHistory)(),{t}=(0,a.useTranslation)("authentication"),{fetchFullUser:n,user:v}=(0,m.useAuth)(),y=(0,h.useConfig)(),{admin:{autoLogin:w,components:{afterLogin:x,beforeLogin:k}={},logoutRoute:P,user:E},collections:A,routes:{admin:D,api:O},serverURL:C}=y,M=A.find(({slug:e})=>e===E),S=new URLSearchParams((0,o.useLocation)().search),j=S.get("redirect"),T=async t=>{t.token&&(await n(),e.push(D+(j||"")))},_=w&&w.prefillOnly;return r.default.createElement(r.default.Fragment,null,v?r.default.createElement(p.default,{className:b},r.default.createElement(g.default,{description:t("loginUser"),keywords:t("login"),title:t("login")}),r.default.createElement("div",{className:`${b}__wrap`},r.default.createElement("h1",null,t("alreadyLoggedIn")),r.default.createElement("p",null,r.default.createElement(a.Trans,{i18nKey:"loggedIn",t:t},r.default.createElement(o.Link,{to:`${D}${P}`},t("logOut")))),r.default.createElement(i.default,{buttonStyle:"secondary",el:"link",to:D},t("general:backToDashboard")))):r.default.createElement(p.default,{className:b},r.default.createElement(g.default,{description:t("loginUser"),keywords:t("login"),title:t("login")}),r.default.createElement("div",{className:`${b}__brand`},r.default.createElement(f.default,null)),Array.isArray(k)&&k.map((e,t)=>r.default.createElement(e,{key:t})),!M?.auth?.disableLocalStrategy&&r.default.createElement(u.default,{action:`${C}${O}/${E}/login`,className:`${b}__form`,disableSuccessStatus:!0,initialData:_?{email:w.email,password:w.password}:void 0,method:"post",onSuccess:T,waitForAutocomplete:!0},r.default.createElement(l.FormLoadingOverlayToggle,{action:"loading",name:"login-form"}),r.default.createElement("div",{className:`${b}__inputWrap`},r.default.createElement(d.default,{admin:{autoComplete:"email"},label:t("general:email"),name:"email",required:!0}),r.default.createElement(c.default,{autoComplete:"off",label:t("general:password"),name:"password",required:!0})),r.default.createElement(o.Link,{to:`${D}/forgot`},t("forgotPasswordQuestion")),r.default.createElement(s.default,null,t("login"))),Array.isArray(x)&&x.map((e,t)=>r.default.createElement(e,{key:t}))))}},63005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=c(n(55182)),l=c(n(36515)),u=n(7695),s=n(86919),d=c(n(87068));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(97509);let p="logout",m=e=>{let{inactivity:t}=e,{logOut:n}=(0,u.useAuth)(),{routes:{admin:c}}=(0,s.useConfig)(),{t:f}=(0,a.useTranslation)("authentication"),m=new URLSearchParams((0,o.useLocation)().search),h=m.get("redirect");return(0,r.useEffect)(()=>{n()},[n]),r.default.createElement(l.default,{className:p},r.default.createElement(d.default,{description:f("logoutUser"),keywords:f("logout"),title:f("logout")}),r.default.createElement("div",{className:`${p}__wrap`},t&&r.default.createElement("h2",null,f("loggedOutInactivity")),!t&&r.default.createElement("h2",null,f("loggedOutSuccessfully")),r.default.createElement(i.default,{buttonStyle:"secondary",el:"anchor",url:`${c}/login${h&&h.length>0?`?redirect=${encodeURIComponent(h)}`:""}`},f("logBackIn"))))}},92376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=d(n(55182)),i=n(11897),l=n(83949),u=n(86919),s=d(n(87068));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}n(83204);let f="not-found",p=e=>{let{marginTop:t}=e,{setStepNav:n}=(0,l.useStepNav)(),{routes:{admin:d}}=(0,u.useConfig)(),{t:c}=(0,a.useTranslation)("general");return(0,r.useEffect)(()=>{n([{label:c("notFound")}])},[n,c]),r.default.createElement("div",{className:[f,t&&`${f}--margin-top-${t}`].filter(Boolean).join(" ")},r.default.createElement(s.default,{description:c("pageNotFound"),keywords:`404 ${c("notFound")}`,title:c("notFound")}),r.default.createElement(i.Gutter,{className:`${f}__wrap`},r.default.createElement("h1",null,c("nothingFound")),r.default.createElement("p",null,c("sorryNotFound")),r.default.createElement(o.default,{className:`${f}__button`,el:"link",to:`${d}`},c("backToDashboard"))))}},42755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=v(n(96540)),a=n(43992),o=n(30876),i=n(77399),l=v(n(55182)),u=v(n(8914)),s=v(n(16488)),d=v(n(1914)),c=v(n(19571)),f=v(n(64472)),p=v(n(36515)),m=n(7695),h=n(86919),g=v(n(87068));function v(e){return e&&e.__esModule?e:{default:e}}n(17481);let b="reset-password",y=()=>{let e=(0,h.useConfig)(),{admin:{logoutRoute:t,user:n},routes:{admin:v,api:y},serverURL:w}=e,{token:x}=(0,o.useParams)(),k=(0,o.useHistory)(),{fetchFullUser:P,user:E}=(0,m.useAuth)(),{t:A}=(0,a.useTranslation)("authentication"),D=async e=>{e.token?(await P(),k.push(`${v}`)):(k.push(`${v}/login`),i.toast.success(A("general:updatedSuccessfully"),{autoClose:3e3}))};return E?r.default.createElement(p.default,{className:b},r.default.createElement(g.default,{description:A("resetPassword"),keywords:A("resetPassword"),title:A("resetPassword")}),r.default.createElement("div",{className:`${b}__wrap`},r.default.createElement("h1",null,A("alreadyLoggedIn")),r.default.createElement("p",null,r.default.createElement(a.Trans,{i18nKey:"loginWithAnotherUser",t:A},r.default.createElement(o.Link,{to:`${v}${t}`},"log out"))),r.default.createElement("br",null),r.default.createElement(l.default,{buttonStyle:"secondary",el:"link",to:v},A("general:backToDashboard")))):r.default.createElement(p.default,{className:b},r.default.createElement("div",{className:`${b}__wrap`},r.default.createElement("h1",null,A("resetPassword")),r.default.createElement(u.default,{action:`${w}${y}/${n}/reset-password`,method:"post",onSuccess:D,redirect:v},r.default.createElement(f.default,{autoComplete:"off",label:A("newPassword"),name:"password",required:!0}),r.default.createElement(d.default,null),r.default.createElement(c.default,{name:"token",value:x}),r.default.createElement(s.default,null,A("resetPassword")))))}},91792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"collectionRoutes",{enumerable:!0,get:function(){return c}});let r=u(n(96540)),a=n(30876),o=n(50444),i=function(e){return e&&e.__esModule?e:{default:e}}(n(42833));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let s=(0,r.lazy)(()=>Promise.resolve().then(()=>u(n(22729)))),d=(0,r.lazy)(()=>Promise.resolve().then(()=>u(n(33969)))),c=e=>{let{collections:t,match:n,permissions:l,user:u}=e;return t?.filter(({admin:{hidden:e}})=>!("function"==typeof e?e({user:u}):e)).reduce((e,t)=>{let u=[...e,r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-list`,path:`${n.url}/collections/${t.slug}`},l?.collections?.[t.slug]?.read?.permission?r.default.createElement(i.default,{collection:t}):r.default.createElement(d,null)),r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-create`,path:`${n.url}/collections/${t.slug}/create`},l?.collections?.[t.slug]?.create?.permission?r.default.createElement(o.DocumentInfoProvider,{collection:t,idFromParams:!0},r.default.createElement(s,{collection:t})):r.default.createElement(d,null)),r.default.createElement(a.Route,{key:`${t.slug}-edit`,path:`${n.url}/collections/${t.slug}/:id`},l?.collections?.[t.slug]?.read?.permission?r.default.createElement(o.DocumentInfoProvider,{collection:t,idFromParams:!0},r.default.createElement(s,{collection:t,isEditing:!0})):r.default.createElement(d,null))];return u},[])}},9594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"customRoutes",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(30876),o=["Account","Dashboard"],i=e=>{let{canAccessAdmin:t,config:n,match:i,user:l}=e,{admin:{components:{views:u}={}}}=n,s=Object.entries(u||{}).filter(([e,t])=>!!(!o.includes(e)&&"function"!=typeof t&&"object"==typeof t))?.map(([,e])=>e);return Array.isArray(s)?s.map(e=>{if("function"==typeof e)return r.default.createElement(e,{user:l});let{Component:n,exact:o,path:u,sensitive:s,strict:d}=e;return r.default.createElement(a.Route,{exact:o,key:`${i.url}${u}`,path:`${i.url}${u}`,sensitive:s,strict:d},r.default.createElement(n,{canAccessAdmin:t,user:l}))}):null}},36189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"globalRoutes",{enumerable:!0,get:function(){return d}});let r=l(n(96540)),a=n(30876),o=n(50444);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let u=(0,r.lazy)(()=>Promise.resolve().then(()=>l(n(48184)))),s=(0,r.lazy)(()=>Promise.resolve().then(()=>l(n(33969)))),d=e=>{let{globals:t,locale:n,match:i,permissions:l,user:d}=e;return t?.filter(({admin:{hidden:e}})=>!("function"==typeof e?e({user:d}):e)).reduce((e,t)=>{let d=l?.globals?.[t.slug]?.read?.permission,c=[...e,r.default.createElement(a.Route,{key:t.slug,path:`${i.url}/globals/${t.slug}`},d?r.default.createElement(o.DocumentInfoProvider,{global:t,idFromParams:!0,key:`${t.slug}-${n}`},r.default.createElement(u,{global:t})):r.default.createElement(s,null))];return c},[])}},17993:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Routes",{enumerable:!0,get:function(){return S}});let r=x(n(96540)),a=n(43992),o=n(30876),i=n(60146),l=n(72234),u=y(n(36351)),s=y(n(92073)),d=n(7695),c=n(86919),f=n(50444),p=n(62519),m=y(n(92376)),h=y(n(33969)),g=n(91792),v=n(9594),b=n(36189);function y(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function x(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let k=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(91013)))),P=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(58473)))),E=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(89928)))),A=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(63005)))),D=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(43490)))),O=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(43740)))),C=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(42755)))),M=(0,r.lazy)(()=>Promise.resolve().then(()=>x(n(35482)))),S=()=>{let[e,t]=(0,r.useState)(null),{permissions:n,refreshCookie:y,user:w}=(0,d.useAuth)(),{i18n:x}=(0,a.useTranslation)(),{code:S}=(0,p.useLocale)(),j=n?.canAccessAdmin,T=(0,c.useConfig)(),{admin:{inactivityRoute:_,logoutRoute:N,user:L},collections:R,globals:z,routes:I}=T,F=!!(void 0===w||w&&void 0===j),W=R.find(({slug:e})=>e===L);return(0,r.useEffect)(()=>{if(W&&!W?.auth?.disableLocalStrategy){let{slug:e}=W;i.requests.get(`${I.api}/${e}/init`,{headers:{"Accept-Language":x.language}}).then(e=>e.json().then(e=>{e&&"initialized"in e&&t(e.initialized)}))}else t(!0)},[x.language,I,W]),r.default.createElement(r.Suspense,{fallback:r.default.createElement(l.LoadingOverlayToggle,{name:"route-suspense",show:!0})},r.default.createElement(l.LoadingOverlayToggle,{name:"route-loader",show:F}),r.default.createElement(o.Route,{path:I.admin,render:({match:a})=>!1===e?r.default.createElement(o.Switch,null,r.default.createElement(o.Route,{path:`${a.url}/create-first-user`},r.default.createElement(O,{setInitialized:t})),r.default.createElement(o.Route,null,r.default.createElement(o.Redirect,{to:`${a.url}/create-first-user`}))):!0!==e||F?null:r.default.createElement(o.Switch,null,r.default.createElement(o.Route,{path:`${a.url}/create-first-user`},r.default.createElement(o.Redirect,{to:`${a.url}/`})),(0,v.customRoutes)({canAccessAdmin:j,config:T,match:a,user:w}),r.default.createElement(o.Route,{path:`${a.url}/login`},r.default.createElement(E,null)),r.default.createElement(o.Route,{path:`${a.url}${N}`},r.default.createElement(A,null)),r.default.createElement(o.Route,{path:`${a.url}${_}`},r.default.createElement(A,{inactivity:!0})),!W?.auth?.disableLocalStrategy&&r.default.createElement(o.Route,{path:`${a.url}/forgot`},r.default.createElement(P,null)),!W?.auth?.disableLocalStrategy&&r.default.createElement(o.Route,{path:`${a.url}/reset/:token`},r.default.createElement(C,null)),R.map(e=>e?.auth?.verify&&!e.auth.disableLocalStrategy?r.default.createElement(o.Route,{exact:!0,key:`${e.slug}-verify`,path:`${a.url}/${e.slug}/verify/:token`},r.default.createElement(D,{collection:e})):null),r.default.createElement(o.Route,null,w?r.default.createElement(r.Fragment,null,j&&r.default.createElement(s.default,null,r.default.createElement(o.Switch,null,r.default.createElement(o.Route,{exact:!0,path:`${a.url}/`},r.default.createElement(k,null)),r.default.createElement(o.Route,{path:`${a.url}/account`},r.default.createElement(f.DocumentInfoProvider,{collection:R.find(({slug:e})=>e===L),id:w.id},r.default.createElement(M,null))),(0,g.collectionRoutes)({collections:R,match:a,permissions:n,user:w}),(0,b.globalRoutes)({globals:z,locale:S,match:a,permissions:n,user:w}),r.default.createElement(o.Route,{path:`${a.url}*`},r.default.createElement(m.default,null)))),!1===j&&r.default.createElement(h.default,null)):r.default.createElement(o.Redirect,{to:`${a.url}/login${window.location.pathname.startsWith(I.admin)?`?redirect=${encodeURIComponent(window.location.pathname.replace(I.admin,""))}`:""}`})),r.default.createElement(o.Route,{path:`${a.url}*`},r.default.createElement(m.default,null)))}),r.default.createElement(u.default,{refreshCookie:y}))}},33969:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=s(n(96540)),a=n(43992),o=s(n(55182)),i=s(n(36515)),l=n(86919),u=s(n(87068));function s(e){return e&&e.__esModule?e:{default:e}}let d=()=>{let{t:e}=(0,a.useTranslation)("general"),t=(0,l.useConfig)(),{admin:{logoutRoute:n},routes:{admin:s}}=t;return r.default.createElement(i.default,{className:"unauthorized"},r.default.createElement(u.default,{description:e("error:unauthorized"),keywords:e("error:unauthorized"),title:e("error:unauthorized")}),r.default.createElement("h2",null,e("error:unauthorized")),r.default.createElement("p",null,e("error:notAllowedToAccessPage")),r.default.createElement("br",null),r.default.createElement(o.default,{el:"link",to:`${s}${n}`},e("authentication:logOut")))}},43490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=p(n(55182)),l=p(n(36937)),u=p(n(36515)),s=n(7695),d=n(86919),c=p(n(87068)),f=p(n(89928));function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(46842);let h="verify",g=({collection:e})=>{let{slug:t}=e,{user:n}=(0,s.useAuth)(),{token:p}=(0,o.useParams)(),{admin:{user:m},routes:{admin:g},serverURL:v}=(0,d.useConfig)(),{i18n:b,t:y}=(0,a.useTranslation)("authentication"),w=t===m,[x,k]=(0,r.useState)(null);return((0,r.useEffect)(()=>{(async function(){let e=await fetch(`${v}/api/${t}/verify/${p}`,{credentials:"include",headers:{"Accept-Language":b.language},method:"POST"});k(e)})()},[k,t,v,p,b]),n)?r.default.createElement(f.default,null):r.default.createElement(u.default,{className:h},r.default.createElement(c.default,{description:y("verifyUser"),keywords:y("verify"),title:y("verify")}),r.default.createElement("div",{className:`${h}__brand`},r.default.createElement(l.default,null)),r.default.createElement("h2",null,y(x?.status===200?"verifiedSuccessfully":x?.status===202?"alreadyActivated":"unableToVerify")),w&&x?.status===200&&r.default.createElement(i.default,{buttonStyle:"secondary",el:"link",to:`${g}/login`},y("login")))}},37197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=c(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(26177),l=c(n(78877)),u=n(82187),s=n(86919),d=n(22672);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(83991);let p="compare-version",m=[d.mostRecentVersionOption],h=e=>{let{baseURL:t,onChange:n,parentID:c,publishedDoc:f,value:h,versionID:g}=e,{admin:{dateFormat:v}}=(0,s.useConfig)(),[b,y]=(0,a.useState)(m),[w,x]=(0,a.useState)(1),[k,P]=(0,a.useState)(""),{i18n:E,t:A}=(0,o.useTranslation)("version"),D=(0,a.useCallback)(async({lastLoadedPage:e})=>{let n={depth:0,limit:10,page:e,where:{and:[{id:{not_equals:g}}]}};c&&n.where.and.push({parent:{equals:c}});let a=r.default.stringify(n),o=await fetch(`${t}?${a}`,{credentials:"include",headers:{"Accept-Language":E.language}});if(o.ok){let e=await o.json();e.docs.length>0&&(y(t=>[...t,...e.docs.map(e=>({label:(0,i.formatDate)(e.updatedAt,v,E?.language),value:e.id}))]),x(e.page))}else P(A("error:unspecific"))},[v,t,c,g,A,E]);return(0,a.useEffect)(()=>{D({lastLoadedPage:1})},[D]),(0,a.useEffect)(()=>{f?._status==="published"&&y(e=>[d.publishedVersionOption,...e])},[f]),a.default.createElement("div",{className:[u.fieldBaseClass,p,k&&"error-loading"].filter(Boolean).join(" ")},a.default.createElement("div",{className:`${p}__label`},A("compareVersion")),!k&&a.default.createElement(l.default,{isClearable:!1,isSearchable:!1,onChange:n,onMenuScrollToBottom:()=>{D({lastLoadedPage:w+1})},options:b,placeholder:A("selectVersionToCompare"),value:h}),k&&a.default.createElement("div",{className:`${p}__error-loading`},k))}},91432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(55632);let a=({children:e})=>r.default.createElement("div",{className:"field-diff-label"},e)},42518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=d(n(96540)),a=n(43992),o=d(n(18185)),i=n(49472),l=n(3994),u=d(n(5267)),s=d(n(91432));function d(e){return e&&e.__esModule?e:{default:e}}n(59526);let c="iterable-diff",f=({comparison:e,field:t,fieldComponents:n,locale:d,locales:f,permissions:p,version:m})=>{let h=Array.isArray(m)?m.length:0,g=Array.isArray(e)?e.length:0,v=Math.max(h,g),{i18n:b,t:y}=(0,a.useTranslation)("version");return r.default.createElement("div",{className:c},t.label&&r.default.createElement(s.default,null,d&&r.default.createElement("span",{className:`${c}__locale-label`},d),(0,l.getTranslation)(t.label,b)),v>0&&r.default.createElement(r.default.Fragment,null,Array.from(Array(v).keys()).map((a,l)=>{let s=m?.[l]||{},d=e?.[l]||{},h=[];if("array"===t.type&&(h=t.fields),"blocks"===t.type){if(h=[{name:"blockType",label:y("fields:blockType"),type:"text"}],s?.blockType===d?.blockType){let e=t.blocks.find(e=>e.slug===s?.blockType)||{fields:[]};h=[...h,...e.fields]}else{let e=t.blocks.find(e=>e.slug===s?.blockType)||{fields:[]},n=t.blocks.find(e=>e.slug===d?.blockType)||{fields:[]};h=(0,u.default)([...h,...e.fields,...n.fields],"name")}}return r.default.createElement("div",{className:`${c}__wrap`,key:l},r.default.createElement(o.default,{comparison:d,fieldComponents:n,fieldPermissions:p,fields:h.filter(e=>!((0,i.fieldAffectsData)(e)&&"id"===e.name)),locales:f,version:s}))})),0===v&&r.default.createElement("div",{className:`${c}__no-rows`},y("noRowsFound",{label:t.labels?.plural?(0,l.getTranslation)(t.labels?.plural,b):y("general:rows")})))}},63095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=u(n(96540)),a=n(43992),o=u(n(18185)),i=n(3994),l=u(n(91432));function u(e){return e&&e.__esModule?e:{default:e}}n(89355);let s="nested-diff",d=({comparison:e,disableGutter:t=!1,field:n,fieldComponents:u,locale:d,locales:c,permissions:f,version:p})=>{let{i18n:m}=(0,a.useTranslation)();return r.default.createElement("div",{className:s},n.label&&r.default.createElement(l.default,null,d&&r.default.createElement("span",{className:`${s}__locale-label`},d),(0,i.getTranslation)(n.label,m)),r.default.createElement("div",{className:[`${s}__wrap`,!t&&`${s}__wrap--gutter`].filter(Boolean).join(" ")},r.default.createElement(o.default,{comparison:e,fieldComponents:u,fieldPermissions:f,fields:n.fields,locales:c,version:p})))}},72978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=f(n(96540)),a=f(n(94627)),o=n(43992),i=n(49472),l=n(3994),u=n(86919),s=n(62519),d=f(n(91432)),c=n(44213);function f(e){return e&&e.__esModule?e:{default:e}}n(35574);let p="relationship-diff",m=(e,t,n,r)=>{let a,o;let l="";if(null==r)return String(r);Array.isArray(t.relationTo)?"object"==typeof r&&(a=r.relationTo,o=r.value):(a=t.relationTo,o=r);let u=e.find(e=>e.slug===a);if(u){let e=u?.admin?.useAsTitle,t=u.fields.find(t=>(0,i.fieldAffectsData)(t)&&!(0,i.fieldIsPresentationalOnly)(t)&&t.name===e),r=!1;t&&(0,i.fieldAffectsData)(t)&&(r=t.localized),void 0!==o?.[e]?l=o[e]:void 0!==o?.id&&(l=o.id),"object"==typeof l&&r&&(l=l[n])}return l},h=({comparison:e,field:t,version:n})=>{let{collections:i}=(0,u.useConfig)(),{i18n:f,t:h}=(0,o.useTranslation)("general"),{code:g}=(0,s.useLocale)(),v="";n===e&&(v=`[${h("noValue")}]`);let b=n,y=e;return t.hasMany?(Array.isArray(n)&&(b=n.map(e=>m(i,t,g,e)).join(", ")),Array.isArray(e)&&(y=e.map(e=>m(i,t,g,e)).join(", "))):(b=m(i,t,g,n),y=m(i,t,g,e)),r.default.createElement("div",{className:p},r.default.createElement(d.default,null,g&&r.default.createElement("span",{className:`${p}__locale-label`},g),(0,l.getTranslation)(t.label,f)),r.default.createElement(a.default,{hideLineNumbers:!0,newValue:void 0!==b?String(b):v,oldValue:void 0!==y?String(y):v,showDiffOnly:!1,splitView:!0,styles:c.diffStyles}))}},67288:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=s(n(96540)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(94627)),o=n(43992),i=n(3994),l=s(n(91432)),u=n(44213);function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}n(57596);let c="select-diff",f=(e,t,n)=>n&&Array.isArray(e)?e.map(e=>t.find(t=>("string"==typeof t?t:t.value)===e)||String(e)):t.find(t=>("string"==typeof t?t:t.value)===e)||String(e),p=(e,t)=>Array.isArray(e)?e.map(e=>"string"==typeof e?e:(0,i.getTranslation)(e.label,t)).join(", "):"string"==typeof e?e:(0,i.getTranslation)(e.label,t),m=({comparison:e,diffMethod:t,field:n,locale:s,version:d})=>{let m="",{i18n:h,t:g}=(0,o.useTranslation)("general");d===e&&(m=`[${g("noValue")}]`);let v=void 0!==e?p(f(e,n.options,n.hasMany),h):m,b=void 0!==d?p(f(d,n.options,n.hasMany),h):m;return r.default.createElement("div",{className:c},r.default.createElement(l.default,null,s&&r.default.createElement("span",{className:`${c}__locale-label`},s),(0,i.getTranslation)(n.label,h)),r.default.createElement(a.default,{compareMethod:a.DiffMethod[t],hideLineNumbers:!0,newValue:void 0!==b?b:m,oldValue:v,showDiffOnly:!1,splitView:!0,styles:u.diffStyles}))}},91271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=i(n(18185)),o=i(n(63095));function i(e){return e&&e.__esModule?e:{default:e}}let l="tabs-diff",u=({comparison:e,field:t,fieldComponents:n,locales:i,permissions:u,version:s})=>r.default.createElement("div",{className:l},r.default.createElement("div",{className:`${l}__wrap`},t.tabs.map((t,l)=>"name"in t?r.default.createElement(o.default,{comparison:e?.[t.name],field:t,fieldComponents:n,key:l,locales:i,permissions:u,version:s?.[t.name]}):r.default.createElement(a.default,{comparison:e,fieldComponents:n,fieldPermissions:u,fields:t.fields,key:l,locales:i,version:s}))))},59579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=s(n(96540)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(94627)),o=n(43992),i=n(3994),l=s(n(91432)),u=n(44213);function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}n(42695);let c="text-diff",f=({comparison:e,diffMethod:t,field:n,isRichText:s=!1,locale:d,version:f})=>{let p="",{i18n:m,t:h}=(0,o.useTranslation)("general");f===e&&(p=`[${h("noValue")}]`);let g=f,v=e;return s&&("object"==typeof f&&(g=JSON.stringify(f,null,2)),"object"==typeof e&&(v=JSON.stringify(e,null,2))),r.default.createElement("div",{className:c},r.default.createElement(l.default,null,d&&r.default.createElement("span",{className:`${c}__locale-label`},d),(0,i.getTranslation)(n.label,m)),r.default.createElement(a.default,{compareMethod:a.DiffMethod[t],hideLineNumbers:!0,newValue:void 0!==g?String(g):p,oldValue:void 0!==v?String(v):p,showDiffOnly:!1,splitView:!0,styles:u.diffStyles}))}},60900:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"diffMethods",{enumerable:!0,get:function(){return n}});let n={radio:"WORDS_WITH_SPACE",relationship:"WORDS_WITH_SPACE",select:"WORDS_WITH_SPACE",upload:"WORDS_WITH_SPACE"}},29803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let r=s(n(42518)),a=s(n(63095)),o=s(n(72978)),i=s(n(67288)),l=s(n(91271)),u=s(n(59579));function s(e){return e&&e.__esModule?e:{default:e}}let d={array:r.default,blocks:r.default,checkbox:u.default,code:u.default,collapsible:a.default,date:u.default,email:u.default,group:a.default,json:u.default,number:u.default,point:u.default,radio:i.default,relationship:o.default,richText:u.default,row:a.default,select:i.default,tabs:l.default,text:u.default,textarea:u.default,upload:o.default}},44213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"diffStyles",{enumerable:!0,get:function(){return n}});let n={variables:{dark:{addedBackground:"var(--theme-success-900)",addedColor:"var(--theme-success-100)",diffViewerBackground:"transparent",diffViewerColor:"var(--theme-text)",emptyLineBackground:"var(--theme-elevation-50)",removedBackground:"var(--theme-error-900)",removedColor:"var(--theme-error-100)",wordAddedBackground:"var(--theme-success-800)",wordRemovedBackground:"var(--theme-error-800)"},light:{addedBackground:"var(--theme-success-100)",addedColor:"var(--theme-success-900)",diffViewerBackground:"transparent",diffViewerColor:"var(--theme-text)",emptyLineBackground:"var(--theme-elevation-50)",removedBackground:"var(--theme-error-100)",removedColor:"var(--theme-error-900)",wordAddedBackground:"var(--theme-success-200)",wordRemovedBackground:"var(--theme-error-200)"}}}},18185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=l(n(96540)),a=n(49472),o=l(n(63095)),i=n(60900);function l(e){return e&&e.__esModule?e:{default:e}}n(76001);let u="render-field-diffs",s=({comparison:e,fieldComponents:t,fieldPermissions:n,fields:l,locales:s,version:d})=>r.default.createElement("div",{className:u},l.map((l,c)=>{let f=t[l.type],p="richText"===l.type,m=i.diffMethods[l.type]||"CHARS";if(f){if((0,a.fieldAffectsData)(l)){let a="code"===l.type||"json"===l.type,o=a?JSON.stringify(d?.[l.name]):d?.[l.name],i=a?JSON.stringify(e?.[l.name]):e?.[l.name],h=n?.[l.name]?.read?.permission,g=n?.[l.name]?.fields;return!1===h?null:l.localized?r.default.createElement("div",{className:`${u}__field`,key:c},s.map(e=>{let n=o?.[e],a=i?.[e];return r.default.createElement("div",{className:`${u}__locale`,key:e},r.default.createElement("div",{className:`${u}__locale-value`},r.default.createElement(f,{comparison:a,diffMethod:m,field:l,fieldComponents:t,isRichText:p,locale:e,locales:s,permissions:g,version:n})))})):r.default.createElement("div",{className:`${u}__field`,key:c},r.default.createElement(f,{comparison:i,diffMethod:m,field:l,fieldComponents:t,isRichText:p,locales:s,permissions:g,version:o}))}if("tabs"===l.type){let n=t.tabs;return r.default.createElement(n,{comparison:e,field:l,fieldComponents:t,key:c,locales:s,version:d})}if((0,a.fieldHasSubFields)(l))return r.default.createElement(o.default,{comparison:e,disableGutter:!0,field:l,fieldComponents:t,key:c,locales:s,permissions:n,version:d})}return null}))},62572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(95767),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=n(77399),u=n(26835),s=n(3994),d=n(60146),c=n(86919);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}n(83602);let p="restore-version",m="restore-version",h=({className:e,collection:t,global:n,originalDocID:f,versionDate:h,versionID:g})=>{let v,b;let{routes:{admin:y,api:w},serverURL:x}=(0,c.useConfig)(),k=(0,i.useHistory)(),{toggleModal:P}=(0,r.useModal)(),[E,A]=(0,a.useState)(!1),{i18n:D,t:O}=(0,o.useTranslation)("version"),C=`${x}${w}`;t&&(C=`${C}/${t.slug}/versions/${g}`,v=`${y}/collections/${t.slug}/${f}`,b=O("aboutToRestore",{label:(0,s.getTranslation)(t.labels.singular,D),versionDate:h})),n&&(C=`${C}/globals/${n.slug}/versions/${g}`,v=`${y}/globals/${n.slug}`,b=O("aboutToRestoreGlobal",{label:(0,s.getTranslation)(n.label,D),versionDate:h}));let M=(0,a.useCallback)(async()=>{A(!0);let e=await d.requests.post(C,{headers:{"Accept-Language":D.language}});if(200===e.status){let t=await e.json();l.toast.success(t.message),k.push(v)}else l.toast.error(O("problemRestoringVersion"))},[C,k,v,O,D]);return a.default.createElement(a.Fragment,null,a.default.createElement(u.Pill,{className:[p,e].filter(Boolean).join(" "),onClick:()=>P(m)},O("restoreThisVersion")),a.default.createElement(r.Modal,{className:`${p}__modal`,slug:m},a.default.createElement(u.MinimalTemplate,{className:`${p}__modal-template`},a.default.createElement("h1",null,O("confirmVersionRestoration")),a.default.createElement("p",null,b),a.default.createElement(u.Button,{buttonStyle:"secondary",onClick:E?void 0:()=>P(m),type:"button"},O("general:cancel")),a.default.createElement(u.Button,{onClick:E?void 0:M},E?O("restoring"):O("general:confirm")))))}},83689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(43992),o=i(n(78877));function i(e){return e&&e.__esModule?e:{default:e}}n(74487);let l="select-version-locales",u=({onChange:e,options:t,value:n})=>{let{t:i}=(0,a.useTranslation)("version");return r.default.createElement("div",{className:l},r.default.createElement("div",{className:`${l}__label`},i("showLocales")),r.default.createElement(o.default,{isMulti:!0,onChange:e,options:t,placeholder:i("selectLocales"),value:n}))}},68965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(30876),i=n(49472),l=n(3994),u=E(n(82472)),s=n(26177),d=n(11897),c=n(83949),f=n(7695),p=n(86919),m=n(50444),h=n(62519),g=E(n(87068)),v=E(n(92376)),b=E(n(37197)),y=E(n(18185)),w=E(n(29803)),x=E(n(62572)),k=E(n(83689));n(88475);let P=n(22672);function E(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}let D="view-version",O=({collection:e,global:t})=>{let n,E,A,O,C,M,S,j,T,_;let{admin:{dateFormat:N},localization:L,routes:{admin:R,api:z},serverURL:I}=(0,p.useConfig)(),{setStepNav:F}=(0,c.useStepNav)(),{params:{id:W,versionID:B}}=(0,o.useRouteMatch)(),[U,V]=(0,r.useState)(P.mostRecentVersionOption),[$]=(0,r.useState)(()=>L&&L?.locales?L.locales.map(({code:e,label:t})=>({label:t,value:e})):[]),[H,q]=(0,r.useState)($),{permissions:Y}=(0,f.useAuth)(),{code:G}=(0,h.useLocale)(),{i18n:K,t:X}=(0,a.useTranslation)("version"),{docPermissions:Q}=(0,m.useDocumentInfo)();e&&({slug:S}=e,n=`${I}${z}/${S}/${W}`,E=`${I}${z}/${S}/versions/${B}`,M=`${I}${z}/${S}/versions`,A=(0,l.getTranslation)(e.labels.singular,K),j=W,O=e.fields,C=Y.collections[e.slug].fields),t&&({slug:S}=t,n=`${I}${z}/globals/${S}`,E=`${I}${z}/globals/${S}/versions/${B}`,M=`${I}${z}/globals/${S}/versions`,A=(0,l.getTranslation)(t.label,K),O=t.fields,C=Y.globals[t.slug].fields);let J=U?.value==="mostRecent"||U?.value==="published"?n:`${M}/${U.value}`,[{data:Z,isError:ee}]=(0,u.default)(E,{initialParams:{depth:1,locale:"*"}}),[{data:et}]=(0,u.default)(n,{initialParams:{depth:1,locale:"*"}}),[{data:en}]=(0,u.default)(n,{initialParams:{depth:1,draft:!0,locale:"*"}}),[{data:er}]=(0,u.default)(J,{initialParams:{depth:1,draft:"true",locale:"*"}});(0,r.useEffect)(()=>{let n=[];if(e){let t="";if(en){let{useAsTitle:n}=e.admin;if("id"!==n){let r=e.fields.find(e=>(0,i.fieldAffectsData)(e)&&e.name===n);t=r&&en[n]?r.localized?en[n]?.[G]:en[n]:`[${X("general:untitled")}]`}else t=en.id}n=[{label:(0,l.getTranslation)(e.labels.plural,K),url:`${R}/collections/${e.slug}`},{label:t,url:`${R}/collections/${e.slug}/${W}`},{label:"Versions",url:`${R}/collections/${e.slug}/${W}/versions`},{label:Z?.createdAt?(0,s.formatDate)(Z.createdAt,N,K?.language):""}]}t&&(n=[{label:t.label,url:`${R}/globals/${t.slug}`},{label:"Versions",url:`${R}/globals/${t.slug}/versions`},{label:Z?.createdAt?(0,s.formatDate)(Z.createdAt,N,K?.language):""}]),F(n)},[F,e,t,N,Z,en,R,W,G,X,K]);let ea=Z?.createdAt?(0,s.formatDate)(Z.createdAt,N,K?.language):"";if(e){let t=e?.admin?.useAsTitle||"id";T=`${X("version")} - ${ea} - ${Z[t]} - ${A}`,_=X("viewingVersion",{documentTitle:Z[t],entityLabel:A})}t&&(T=`${X("version")} - ${ea} - ${A}`,_=X("viewingVersionGlobal",{entityLabel:A}));let eo=er?.version;U?.value==="mostRecent"&&(eo=en),U?.value==="published"&&(eo=et);let ei=Q?.update?.permission;return ee?r.default.createElement(v.default,{marginTop:"large"}):r.default.createElement("main",{className:D},r.default.createElement(g.default,{description:_,title:T}),r.default.createElement(d.Gutter,{className:`${D}__wrap`},r.default.createElement("div",{className:`${D}__header-wrap`},r.default.createElement("p",{className:`${D}__created-at`},X("versionCreatedOn",{version:X(Z?.autosave?"autosavedVersion":"version")})),r.default.createElement("header",{className:`${D}__header`},r.default.createElement("h2",null,ea),ei&&r.default.createElement(x.default,{className:`${D}__restore`,collection:e,global:t,originalDocID:W,versionDate:ea,versionID:B}))),r.default.createElement("div",{className:`${D}__controls`},r.default.createElement(b.default,{baseURL:M,onChange:V,parentID:j,publishedDoc:et,value:U,versionID:B}),L&&r.default.createElement(k.default,{onChange:q,options:$,value:H})),Z?.version&&r.default.createElement(y.default,{comparison:eo,fieldComponents:w.default,fieldPermissions:C,fields:O,locales:H?H.map(({label:e})=>"string"==typeof e?e:void 0):[],version:Z?.version})))}},22672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{mostRecentVersionOption:function(){return n},publishedVersionOption:function(){return r}});let n={label:"Most recent",value:"mostRecent"},r={label:"Most recently published",value:"published"}},79367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DefaultVersionsView",{enumerable:!0,get:function(){return g}});let r=m(n(96540)),a=n(43992),o=n(11897),i=n(72234),l=m(n(42281)),u=m(n(53150)),s=n(55146),d=m(n(87068)),c=n(7087),f=n(43902),p=n(31973);function m(e){return e&&e.__esModule?e:{default:e}}n(47486);let h="versions",g=e=>{let t,n;let{id:m,collection:g,data:v,entityLabel:b,global:y,isLoadingVersions:w,versionsData:x}=e,{t:k}=(0,a.useTranslation)("version"),{limit:P}=(0,c.useSearchParams)(),E=g?.admin?.useAsTitle||"id";g&&(n=`${k("versions")} - ${v[E]} - ${b}`,t=k("viewingVersions",{documentTitle:v[E],entityLabel:b})),y&&(n=`${k("versions")} - ${b}`,t=k("viewingVersionsGlobal",{entityLabel:b}));let A=x?.totalDocs||0;return r.default.createElement(r.default.Fragment,null,r.default.createElement(f.SetStepNav,{collection:g,global:y,id:m,isEditing:!0,view:k("versions")}),r.default.createElement(i.LoadingOverlayToggle,{name:"versions",show:w}),r.default.createElement("main",{className:h},r.default.createElement(d.default,{description:t,title:n}),r.default.createElement(o.Gutter,{className:`${h}__wrap`},0===A&&r.default.createElement("div",{className:`${h}__no-versions`},k("noFurtherVersionsFound")),A>0&&r.default.createElement(r.default.Fragment,null,r.default.createElement(s.Table,{columns:(0,p.buildVersionColumns)(g,y,k),data:x?.docs}),r.default.createElement("div",{className:`${h}__page-controls`},r.default.createElement(l.default,{hasNextPage:x.hasNextPage,hasPrevPage:x.hasPrevPage,limit:x.limit,nextPage:x.nextPage,numberOfNeighbors:1,page:x.page,prevPage:x.prevPage,totalPages:x.totalPages}),x?.totalDocs>0&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:`${h}__page-info`},x.page*x.limit-(x.limit-1),"-",x.totalPages>1&&x.totalPages!==x.page?x.limit*x.page:x.totalDocs," ",k("of")," ",x.totalDocs),r.default.createElement(u.default,{limit:P?Number(P):10,limits:g?.admin?.pagination?.limits})))))))}},31973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildVersionColumns",{enumerable:!0,get:function(){return p}});let r=d(n(96540)),a=n(43992),o=n(30876),i=n(26835),l=n(26177),u=d(n(16e3)),s=n(86919);function d(e){return e&&e.__esModule?e:{default:e}}let c=({id:e,collection:t,date:n,global:i})=>{let u;let{admin:{dateFormat:d},routes:{admin:c}}=(0,s.useConfig)(),{params:{id:f}}=(0,o.useRouteMatch)(),{i18n:p}=(0,a.useTranslation)();return t&&(u=`${c}/collections/${t.slug}/${f}/versions/${e}`),i&&(u=`${c}/globals/${i.slug}/versions/${e}`),r.default.createElement(o.Link,{to:u},n&&(0,l.formatDate)(n,d,p?.language))},f=({children:e})=>r.default.createElement("span",null,e),p=(e,t,n)=>[{name:"",accessor:"updatedAt",active:!0,components:{Heading:r.default.createElement(u.default,{label:n("general:updatedAt"),name:"updatedAt"}),renderCell:(n,a)=>r.default.createElement(c,{collection:e,date:a,global:t,id:n?.id})},label:""},{name:"",accessor:"id",active:!0,components:{Heading:r.default.createElement(u.default,{disable:!0,label:n("versionID"),name:"id"}),renderCell:(e,t)=>r.default.createElement(f,null,t)},label:""},{name:"",accessor:"autosave",active:!0,components:{Heading:r.default.createElement(u.default,{disable:!0,label:n("type"),name:"autosave"}),renderCell:e=>r.default.createElement(f,null,e?.autosave&&r.default.createElement(r.default.Fragment,null,r.default.createElement(i.Pill,null,n("autosave")),"\xa0\xa0"),e?.version._status==="published"&&r.default.createElement(r.default.Fragment,null,r.default.createElement(i.Pill,{pillStyle:"success"},n("published")),"\xa0\xa0"),e?.version._status==="draft"&&r.default.createElement(i.Pill,null,n("draft")))},label:""}]},65982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=p(n(82472)),l=n(7695),u=n(86919),s=n(95702),d=p(n(45649)),c=n(7087),f=n(79367);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}let h=e=>{let t,n,p,m;let{id:h,collection:g,global:v}=e,{permissions:b,user:y}=(0,l.useAuth)(),[w,x]=(0,r.useState)(""),{routes:{admin:k,api:P},serverURL:E}=(0,u.useConfig)(),{i18n:A}=(0,a.useTranslation)("version"),{limit:D,page:O,sort:C}=(0,c.useSearchParams)(),M=null;if(g){({slug:p}=g),t=`${E}${P}/${p}/${h}`,n=(0,o.getTranslation)(g.labels.singular,A),m=`${k}/collections/${g.slug}/${h}`;let e=g?.admin?.components?.views?.Edit;M="function"==typeof e?e:"object"==typeof e&&"function"==typeof e.Versions?e.Versions:"object"==typeof e?.Versions&&"Component"in e.Versions&&"function"==typeof e.Versions.Component?e.Versions.Component:void 0}if(v){({slug:p}=v),t=`${E}${P}/globals/${p}`,n=(0,o.getTranslation)(v.label,A),m=`${k}/globals/${v.slug}`;let e=v?.admin?.components?.views?.Edit;M="function"==typeof e?e:"object"==typeof e&&"function"==typeof e.Versions?e.Versions:"object"==typeof e?.Versions&&"Component"in e.Versions&&"function"==typeof e.Versions.Component?e.Versions.Component:void 0}let[{data:S,isLoading:j}]=(0,i.default)(t,{initialParams:{draft:"true"}}),[{data:T,isLoading:_},{setParams:N}]=(0,i.default)(w);return(0,r.useEffect)(()=>{let e;let t={depth:1,limit:D,page:void 0,sort:void 0,where:{}};O&&(t.page=O),C&&(t.sort=C),g&&(e=`${E}${P}/${g.slug}/versions`,t.where={parent:{equals:h}}),v&&(e=`${E}${P}/globals/${v.slug}/versions`),x(e),N(t)},[N,O,C,D,E,P,h,v,g]),r.default.createElement(s.EditDepthContext.Provider,{value:1},r.default.createElement(d.default,{CustomComponent:M,DefaultComponent:f.DefaultVersionsView,componentProps:{id:h,canAccessAdmin:b?.canAccessAdmin,collection:g,data:S,editURL:m,entityLabel:n,fetchURL:w,global:v,isLoading:j,isLoadingVersions:_,user:y,versionsData:T}}))}},75305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(69335),i=n(32534),l=p(n(37724)),u=p(n(20156)),s=n(66461),d=p(n(16034)),c=p(n(27085)),f=n(82187);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}let h="apiKey",g=({readOnly:e})=>{let[t,n]=(0,r.useState)(null),[p,m]=(0,r.useState)(!1),{t:g}=(0,a.useTranslation)(),v=(0,s.useFormFields)(([e])=>e[h]),b=v?.value,y=(0,r.useMemo)(()=>r.default.createElement("div",{className:"api-key__label"},r.default.createElement("span",null,"API Key"),r.default.createElement(l.default,{value:b})),[b]),w=(0,c.default)({path:"apiKey",validate:e=>(0,i.text)(e,{data:{},maxLength:48,minLength:24,siblingData:{},t:g})}),{setValue:x,value:k}=w;return(0,r.useEffect)(()=>{n((0,o.v4)())},[]),(0,r.useEffect)(()=>{b||x(t)},[b,x,t]),(0,r.useEffect)(()=>{p&&setTimeout(()=>{m(!1)},1e4)},[p]),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:[f.fieldBaseClass,"api-key","read-only"].filter(Boolean).join(" ")},r.default.createElement(d.default,{htmlFor:h,label:y}),r.default.createElement("input",{className:p?"highlight":void 0,disabled:!0,id:"apiKey",name:"apiKey",type:"text",value:k||""})),!e&&r.default.createElement(u.default,{highlightField:()=>{p&&m(!1),setTimeout(()=>{m(!0)},1)},setKey:()=>x((0,o.v4)())}))}},1800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return v}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(77399),i=m(n(55182)),l=n(66461),u=m(n(73824)),s=m(n(1914)),d=m(n(23067)),c=m(n(64472)),f=n(86919),p=m(n(75305));function m(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}n(39550);let g="auth-fields",v=e=>{let{className:t,collection:n,collection:{slug:m},email:h,operation:v,readOnly:b,requirePassword:y,useAPIKey:w,verify:x}=e,[k,P]=(0,r.useState)(y),E=(0,l.useFormFields)(([e])=>e.enableAPIKey),A=(0,l.useFormFields)(e=>e[1]),D=(0,l.useFormModified)(),{i18n:O,t:C}=(0,a.useTranslation)("authentication"),{routes:{api:M},serverURL:S}=(0,f.useConfig)(),j=(0,r.useCallback)(async e=>{e||(A({path:"password",type:"REMOVE"}),A({path:"confirm-password",type:"REMOVE"})),P(e)},[A]),T=(0,r.useCallback)(async()=>{let e=`${S}${M}/${m}/unlock`,t=await fetch(e,{body:JSON.stringify({email:h}),credentials:"include",headers:{"Accept-Language":O.language,"Content-Type":"application/json"},method:"post"});200===t.status?o.toast.success(C("successfullyUnlocked"),{autoClose:3e3}):o.toast.error(C("failedToUnlock"))},[O,S,M,m,h,C]);return((0,r.useEffect)(()=>{D||P(!1)},[D]),n.auth.disableLocalStrategy&&!n.auth.useAPIKey)?null:r.default.createElement("div",{className:[g,t].filter(Boolean).join(" ")},!n.auth.disableLocalStrategy&&r.default.createElement(r.default.Fragment,null,r.default.createElement(d.default,{admin:{autoComplete:"email",readOnly:b},label:C("general:email"),name:"email",required:!0}),(k||y)&&r.default.createElement("div",{className:`${g}__changing-password`},r.default.createElement(c.default,{autoComplete:"off",disabled:b,label:C("newPassword"),name:"password",required:!0}),r.default.createElement(s.default,{disabled:b}),!y&&r.default.createElement(i.default,{buttonStyle:"secondary",disabled:b,onClick:()=>j(!1),size:"small"},C("general:cancel"))),(!k&&!y||"update"===v)&&r.default.createElement("div",{className:`${g}__controls`},!k&&!y&&r.default.createElement(i.default,{buttonStyle:"secondary",disabled:b,id:"change-password",onClick:()=>j(!0),size:"small"},C("changePassword")),"update"===v&&r.default.createElement(i.default,{buttonStyle:"secondary",disabled:b,onClick:()=>T(),size:"small"},C("forceUnlock")))),w&&r.default.createElement("div",{className:`${g}__api-key`},r.default.createElement(u.default,{admin:{readOnly:b},label:C("enableAPIKey"),name:"enableAPIKey"}),E?.value&&r.default.createElement(p.default,{readOnly:b})),x&&r.default.createElement(u.default,{admin:{readOnly:b},label:C("verified"),name:"_verified"}))}},82748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=n(67434),l=n(72234),u=function(e){return e&&e.__esModule?e:{default:e}}(n(8914)),s=n(7695),d=n(86425),c=n(3643),f=n(86240),p=n(41694);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(20225);let h="collection-edit",g=e=>{let{i18n:t}=(0,a.useTranslation)("general"),{refreshCookieAsync:n,user:m}=(0,s.useAuth)(),{id:g,action:v,apiURL:b,collection:y,customHeader:w,data:x,disableRoutes:k,fieldTypes:P,hasSavePermission:E,internalState:A,isEditing:D,isLoading:O,onSave:C}=e,{reportUpdate:M}=(0,d.useDocumentEvents)(),{auth:S}=y,j=[h,D&&`${h}--is-editing`].filter(Boolean).join(" "),T=(0,r.useCallback)(async e=>{M({id:g,entitySlug:y.slug,updatedAt:e?.result?.updatedAt||new Date().toISOString()}),S&&g===m.id&&await n(),"function"==typeof C&&C({...e,operation:g?"update":"create"})},[g,C,S,m,n,y,M]),_=D?"update":"create";return r.default.createElement("main",{className:j},r.default.createElement(c.OperationContext.Provider,{value:_},r.default.createElement(u.default,{action:v,className:`${h}__form`,disabled:!E,initialState:A,method:g?"patch":"post",onSuccess:T},r.default.createElement(l.FormLoadingOverlayToggle,{action:O?"loading":_,formIsLoading:O,loadingSuffix:(0,o.getTranslation)(y.labels.singular,t),name:`collection-edit--${"string"==typeof y?.labels?.singular?y.labels.singular:"document"}`,type:"withoutNav"}),!O&&r.default.createElement(r.default.Fragment,null,r.default.createElement(i.DocumentHeader,{apiURL:b,collection:y,customHeader:w,data:x,id:g,isEditing:D}),k?r.default.createElement(p.CustomCollectionComponent,{view:"Default",...e}):r.default.createElement(f.CollectionRoutes,{...e,fieldTypes:P})))))}},64019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DefaultCollectionEdit",{enumerable:!0,get:function(){return h}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=n(54609),l=n(50594),u=n(84836),s=p(n(87068)),d=p(n(1800)),c=n(43902),f=n(97827);function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}n(81603);let h=e=>{let{i18n:t,t:n}=(0,a.useTranslation)("general"),{id:p,apiURL:m,collection:h,data:g,disableActions:v,disableLeaveWithoutSaving:b,fieldTypes:y,hasSavePermission:w,internalState:x,isEditing:k,permissions:P}=e,{auth:E,fields:A,upload:D}=h;return r.default.createElement(r.Fragment,null,r.default.createElement(s.default,{description:`${n(k?"editing":"creating")} - ${(0,o.getTranslation)(h.labels.singular,t)}`,keywords:`${(0,o.getTranslation)(h.labels.singular,t)}, Payload, CMS`,title:`${n(k?"editing":"creating")} - ${(0,o.getTranslation)(h.labels.singular,t)}`}),!(h.versions?.drafts&&h.versions?.drafts?.autosave)&&!b&&r.default.createElement(u.LeaveWithoutSaving,null),r.default.createElement(c.SetStepNav,{collection:h,id:p,isEditing:k}),r.default.createElement(i.DocumentControls,{apiURL:m,collection:h,data:g,disableActions:v,hasSavePermission:w,id:p,isEditing:k,permissions:P}),r.default.createElement(l.DocumentFields,{BeforeFields:r.default.createElement(r.Fragment,null,E&&r.default.createElement(d.default,{className:"collection-default-edit__auth",collection:h,email:g?.email,operation:k?"update":"create",readOnly:!w,requirePassword:!k,useAPIKey:E.useAPIKey,verify:E.verify}),D&&r.default.createElement(f.Upload,{collection:h,internalState:x})),fieldTypes:y,fields:A,hasSavePermission:w,permissions:P}))}},41694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultCollectionViews:function(){return d},CustomCollectionComponent:function(){return c}});let r=s(n(96540)),a=n(14233),o=n(99343),i=s(n(68965)),l=s(n(65982)),u=n(64019);function s(e){return e&&e.__esModule?e:{default:e}}let d={API:a.API,Default:u.DefaultCollectionEdit,LivePreview:o.LivePreviewView,References:null,Relationships:null,Version:i.default,Versions:l.default},c=e=>{let{collection:t,view:n}=e,{admin:{components:{views:{Edit:a}={}}={}}={}}=t,o="object"==typeof a&&"function"==typeof a[n]?a[n]:"object"==typeof a&&"object"==typeof a?.[n]&&"function"==typeof a[n].Component?a[n].Component:d[n];if(o)return r.default.createElement(o,e)}},71241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"collectionCustomRoutes",{enumerable:!0,get:function(){return u}});let r=i(n(96540)),a=n(30876),o=i(n(33969));function i(e){return e&&e.__esModule?e:{default:e}}let l=["Default","LivePreview","Version","Versions","Relationships","References","API"],u=e=>{let{collection:t,match:n,permissions:i,user:u}=e,s=[],d=t?.admin?.components?.views?.Edit;return"function"!=typeof d&&"object"==typeof d&&(s=Object.entries(d).filter(([e,t])=>!!(!l.includes(e)&&"function"!=typeof t&&"object"==typeof t))?.map(([,e])=>e)),s?.reduce((e,l)=>{let s=[...e];if("function"==typeof l)s.push(r.default.createElement(l,{key:l.name,user:u}));else if(t&&"Component"in l){let{Component:e,path:d}=l;s.push(r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-${d}`,path:`${n.url}${d}`},i?.read?.permission?r.default.createElement(e,{user:u}):r.default.createElement(o.default,null)))}return s},[])}},86240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CollectionRoutes",{enumerable:!0,get:function(){return p}});let r=c(n(96540)),a=n(30876),o=n(7695),i=n(86919),l=function(e){return e&&e.__esModule?e:{default:e}}(n(92376)),u=n(41694),s=n(71241);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let f=(0,r.lazy)(()=>Promise.resolve().then(()=>c(n(33969)))),p=e=>{let{collection:t,permissions:n}=e,d=(0,a.useRouteMatch)(),{admin:{livePreview:c},routes:{admin:p}}=(0,i.useConfig)(),{user:m}=(0,o.useAuth)(),h=c?.collections?.some(e=>e===t.slug)||t?.admin?.livePreview;return r.default.createElement(a.Switch,null,r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-versions`,path:`${p}/collections/${t.slug}/:id/versions`},n?.readVersions?.permission?r.default.createElement(u.CustomCollectionComponent,{view:"Versions",...e}):r.default.createElement(f,null)),t?.admin?.hideAPIURL!==!0&&r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-api`,path:`${p}/collections/${t.slug}/:id/api`},n?.read?r.default.createElement(u.CustomCollectionComponent,{view:"API",...e}):r.default.createElement(f,null)),r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-view-version`,path:`${p}/collections/${t.slug}/:id/versions/:versionID`},n?.readVersions?.permission?r.default.createElement(u.CustomCollectionComponent,{view:"Version",...e}):r.default.createElement(f,null)),h&&r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-live-preview`,path:`${p}/collections/${t.slug}/:id/preview`},r.default.createElement(u.CustomCollectionComponent,{view:"LivePreview",...e})),(0,s.collectionCustomRoutes)({collection:t,match:d,permissions:n,user:m}),r.default.createElement(a.Route,{exact:!0,key:`${t.slug}-view`,path:`${p}/collections/${t.slug}/:id`},r.default.createElement(u.CustomCollectionComponent,{view:"Default",...e})),r.default.createElement(a.Route,{path:`${d.url}*`},r.default.createElement(l.default,{marginTop:"large"})))}},43902:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SetStepNav",{enumerable:!0,get:function(){return d}});let r=n(96540),a=n(43992),o=n(3994),i=function(e){return e&&e.__esModule?e:{default:e}}(n(63478)),l=n(83949),u=n(86919),s=n(95702),d=e=>{let t,n,d,c,f,p;let m=!1,h=e?.view||void 0;if("collection"in e){let{id:n,collection:r,isEditing:a}=e;r&&(d=(t=r).admin.useAsTitle,c=t.labels.plural,f=t.slug,m=a,p=n)}if("global"in e){let{global:t}=e;t&&(n=t,f=t?.slug)}let g=(0,i.default)({collection:t,global:n}),{setStepNav:v}=(0,l.useStepNav)(),{i18n:b,t:y}=(0,a.useTranslation)("general"),{routes:{admin:w}}=(0,u.useConfig)(),x=(0,s.useEditDepth)();return(0,r.useEffect)(()=>{let e=[];t?(e.push({label:(0,o.getTranslation)(c,b),url:`${w}/collections/${f}`}),m?e.push({label:d&&"id"!==d&&g||`${p}`,url:`${w}/collections/${f}/${p}`}):e.push({label:y("createNew")})):n&&e.push({label:g,url:`${w}/globals/${f}`}),h&&e.push({label:h}),x<=1&&v(e)},[v,m,c,p,f,d,w,y,b,g,n,t,h,x]),null}},97827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{editDrawerSlug:function(){return k},sizePreviewSlug:function(){return P},UploadActions:function(){return A},Upload:function(){return D}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=y(n(43690)),i=y(n(55182)),l=n(27791),u=n(88621),s=n(3367),d=y(n(29358)),c=y(n(59404)),f=y(n(58822)),p=y(n(25218)),m=n(66461),h=y(n(69504)),g=n(82187),v=y(n(27085)),b=n(50444);function y(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}n(11309);let x="file-field",k="edit-upload",P="preview-sizes",E=e=>!!e||void 0===e||"A file is required.",A=({canEdit:e,showSizePreviews:t})=>{let{t:n}=(0,a.useTranslation)("upload");return r.default.createElement("div",{className:`${x}__file-mutation`},t&&r.default.createElement(l.DrawerToggler,{className:`${x}__previewSizes`,slug:P},n("upload:previewSizes")),e&&r.default.createElement(l.DrawerToggler,{className:`${x}__edit`,slug:k},n("upload:editImage")))},D=e=>{let t=(0,m.useFormSubmitted)(),{collection:n,internalState:y,onChange:w,updatedAt:D}=e,[O,C]=(0,r.useState)(!1),[M,S]=(0,r.useState)(null),{t:j}=(0,a.useTranslation)(["upload","general"]),[T,_]=(0,r.useState)((0,h.default)(y||{},!0)),{docPermissions:N}=(0,b.useDocumentInfo)(),{errorMessage:L,setValue:R,showError:z,value:I}=(0,v.default)({path:"file",validate:E}),F=r.default.useCallback(e=>{let t=e?.[0];R(t)},[R]),W=(0,r.useCallback)(()=>{C(!0),R(null),S("")},[R]);(0,r.useEffect)(()=>{_((0,h.default)(y||{},!0)),C(!1)},[y]),(0,r.useEffect)(()=>{if(I instanceof File){let e=new FileReader;e.onload=e=>{let t=e.target?.result;"string"==typeof t&&S(t)},e.readAsDataURL(I)}"function"==typeof w&&w(I)},[I,w,D]);let B=N?.update?.permission&&"delete"in N&&N?.delete?.permission,U=n?.upload?.imageSizes?.length>0,V=!!n?.upload?.resizeOptions,{collection:{upload:{crop:$=!0,focalPoint:H=!0}}={}}=e,q=H&&(U||V),Y=t?new Date().toISOString():null;return r.default.createElement("div",{className:[g.fieldBaseClass,x].filter(Boolean).join(" ")},r.default.createElement(p.default,{message:L,showError:z}),T.filename&&!O&&r.default.createElement(d.default,{canEdit:$||q,collection:n,doc:T,handleRemove:B?W:void 0,hasImageSizes:U,imageCacheTag:Y}),(!T.filename||O)&&r.default.createElement("div",{className:`${x}__upload`},!I&&r.default.createElement(u.Dropzone,{className:`${x}__dropzone`,mimeTypes:n?.upload?.mimeTypes,onChange:F}),I&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:`${x}__thumbnail-wrap`},r.default.createElement(f.default,{fileSrc:(0,o.default)(I.type)?M:null})),r.default.createElement("div",{className:`${x}__file-adjustments`},r.default.createElement("input",{className:`${x}__filename`,onChange:e=>{let t=e.target.value;if(I){let e=new File([I],t,{type:I.type});R(e)}},type:"text",value:I.name}),(0,o.default)(I.type)&&"image/svg+xml"!==I.type&&r.default.createElement(A,{canEdit:$||q,showSizePreviews:U&&T.filename&&!O})),r.default.createElement(i.default,{buttonStyle:"icon-label",className:`${x}__remove`,icon:"x",iconStyle:"with-border",onClick:W,round:!0,tooltip:j("general:cancel")}))),(I||T.filename)&&r.default.createElement(l.Drawer,{header:null,slug:k},r.default.createElement(s.EditUpload,{doc:T||void 0,fileName:I?.name||T?.filename,fileSrc:M||T?.url,imageCacheTag:Y,showCrop:$,showFocalPoint:q})),T&&U&&r.default.createElement(l.Drawer,{className:`${x}__previewDrawer`,hoverTitle:!0,slug:P,title:j("upload:sizesFor",{label:T?.filename})},r.default.createElement(c.default,{collection:n,doc:T})))}},12975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(49472),a=(e,t)=>t?e.fields.filter(e=>(0,r.fieldAffectsData)(e)&&"id"!==e.name||!0):e.fields},22729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});let r=w(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=w(n(82472)),u=w(n(68697)),s=n(94416),d=n(7695),c=n(86919),f=n(50444),p=n(95702),m=n(37123),h=n(62519),g=w(n(45649)),v=w(n(92376)),b=w(n(82748)),y=w(n(12975));function w(e){return e&&e.__esModule?e:{default:e}}function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}let k=e=>{let{collection:t,isEditing:n}=e,{admin:{components:{views:{Edit:w}={}}={}}={},slug:x}=t,[k]=(0,a.useState)(()=>(0,y.default)(t,n)),[P]=(0,a.useState)(()=>({...t,fields:k})),[E,A]=(0,a.useState)(),[D,O]=(0,a.useState)({depth:0,"fallback-locale":"null",locale:"",uploadEdits:void 0}),C=r.default.stringify(D),{code:M}=(0,h.useLocale)(),S=(0,c.useConfig)(),{routes:{admin:j,api:T},serverURL:_}=S,{params:{id:N}={}}=(0,i.useRouteMatch)(),L=(0,i.useHistory)(),[R,z]=(0,a.useState)(),[I,F]=(0,a.useState)(),{permissions:W,user:B}=(0,d.useAuth)(),U=(0,a.useRef)(B),{docPermissions:V,getDocPermissions:$,getDocPreferences:H,getVersions:q}=(0,f.useDocumentInfo)(),{t:Y}=(0,o.useTranslation)("general"),[{data:G,isError:K,isLoading:X}]=(0,l.default)(n?`${_}${T}/${x}/${N}`:"",{initialData:null,initialParams:{depth:0,draft:"true","fallback-locale":"null"}}),Q=(0,a.useCallback)(async(e,t)=>{let n=await H(),r=await (0,u.default)({id:N,config:S,data:e||{},fieldSchema:t?.fieldSchema,locale:M,operation:"update",preferences:n,t:Y,user:U.current,...t});z(r)},[H,N,M,Y,S]),J=(0,a.useCallback)(async e=>{q(),$(),F(e?.doc?.updatedAt),n?(Q(e.doc,{fieldSchema:P.fields}),O(e=>({...e,uploadEdits:void 0}))):A(`${j}/collections/${P.slug}/${e?.doc?.id}`)},[j,q,n,Q,$,P]);if((0,a.useEffect)(()=>{if(k&&(!n||G)){let e=async()=>{F(G?.updatedAt),Q(G,{fieldSchema:k,operation:n?"update":"create"})};e()}},[n,G,Q,k]),(0,a.useEffect)(()=>{E&&L.push(E)},[L,E]),(0,a.useEffect)(()=>{O(e=>({...e,locale:M}))},[M]),K)return a.default.createElement(v.default,{marginTop:"large"});let Z=`${_}${T}/${x}/${N}?locale=${M}${P.versions.drafts?"&draft=true":""}`,ee=`${_}${T}/${x}${n?`/${N}`:""}?${C}`,et=n&&V?.update?.permission||!n&&V?.create?.permission,en={id:N,action:ee,apiURL:Z,canAccessAdmin:W?.canAccessAdmin,collection:P,data:G,fieldTypes:s.fieldTypes,hasSavePermission:et,internalState:R,isEditing:n,isLoading:!R||!V||X,onSave:J,permissions:V,updatedAt:I||G?.updatedAt,user:B};return a.default.createElement(p.EditDepthContext.Provider,{value:1},a.default.createElement(m.FormQueryParams.Provider,{value:{formQueryParams:D,setFormQueryParams:O}},a.default.createElement(g.default,{CustomComponent:"function"==typeof w?w:void 0,DefaultComponent:b.default,componentProps:en})))}},25947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994),i=({data:e,field:t})=>{let{i18n:n,t:i}=(0,a.useTranslation)("general"),l=`${(e??[]).length} ${(0,o.getTranslation)(t?.labels?.plural||i("rows"),n)}`;return r.default.createElement("span",null,l)}},51432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(3994),i=({data:e,field:t})=>{let{i18n:n,t:i}=(0,a.useTranslation)("fields"),l=e?e.map(({blockType:e})=>e):[],u=t.blocks.map(e=>({label:(0,o.getTranslation)(e.labels.singular,n),slug:e.slug})),s=`0 ${(0,o.getTranslation)(t.labels.plural,n)}`,d=e=>e.map(e=>{let t=u.filter(t=>t.slug===e)?.[0];return t?.label}).join(", ");if(l.length>5){let e=l.length-5;s=`${l.length} ${(0,o.getTranslation)(t.labels.plural,n)} - ${i("fields:itemsAndMore",{count:e,items:d(l.slice(0,5))})}`}else l.length>0&&(s=`${l.length} ${(0,o.getTranslation)(1===l.length?t.labels.singular:t.labels.plural,n)} - ${d(l)}`);return r.default.createElement("span",null,s)}},63807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(31871);let a=({data:e})=>r.default.createElement("code",{className:"bool-cell"},r.default.createElement("span",null,JSON.stringify(e)))},25295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(57607);let a=({data:e,nowrap:t})=>{let n=e.length>100?`${e.substring(0,100)}\u2026`:e;return r.default.createElement("code",{className:"code-cell",style:t?{whiteSpace:"nowrap"}:{}},r.default.createElement("span",null,n))}},76262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(26177),i=n(86919),l=({data:e,field:t})=>{let{admin:{dateFormat:n}}=(0,i.useConfig)(),l=t?.admin?.date?.displayFormat||n,{i18n:u}=(0,a.useTranslation)();return r.default.createElement("span",null,e&&(0,o.formatDate)(e,l,u?.language))}},74032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(96540)),a=o(n(58822));function o(e){return e&&e.__esModule?e:{default:e}}n(78736);let i="file",l=({collection:e,data:t,rowData:n})=>r.default.createElement("div",{className:i},r.default.createElement(a.default,{className:`${i}__thumbnail`,collection:e,doc:{...n,filename:t},size:"small"}),r.default.createElement("span",{className:`${i}__filename`},String(t)))},8168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540));n(46476);let a=({data:e})=>{let t=e.length>100?`${e.substring(0,100)}\u2026`:e;return r.default.createElement("code",{className:"json-cell"},r.default.createElement("span",null,JSON.stringify(t)))}},19692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(43992),o=n(3994),i=function(e){return e&&e.__esModule?e:{default:e}}(n(85541)),l=n(63478),u=n(86919),s=n(87725);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}n(1548);let c=e=>{let{data:t,field:n}=e,d=(0,u.useConfig)(),{collections:c,routes:f}=d,[p,m]=(0,i.default)(),[h,g]=(0,r.useState)([]),{documents:v,getRelationships:b}=(0,s.useListRelationships)(),[y,w]=(0,r.useState)(!1),{i18n:x,t:k}=(0,a.useTranslation)("general"),P=m?.boundingClientRect?.top{if(t&&P&&!y){let e=[],r=Array.isArray(t)?t:[t];r.slice(0,r.length<3?r.length:3).forEach(t=>{"object"==typeof t&&"relationTo"in t&&"value"in t&&e.push(t),("number"==typeof t||"string"==typeof t)&&"relationTo"in n&&"string"==typeof n.relationTo&&e.push({relationTo:n.relationTo,value:t})}),b(e),w(!0),g(e)}},[t,n,c,P,f.api,y,b]),r.default.createElement("div",{className:"relationship-cell",ref:p},h.map(({relationTo:e,value:t},n)=>{let a=v[e][t],o=c.find(({slug:t})=>t===e),i=(0,l.formatUseAsTitle)({collection:o,config:d,doc:!1===a?null:a,i18n:x});return r.default.createElement(r.default.Fragment,{key:n},!1===a&&`${k("untitled")} - ID: ${t}`,null===a&&`${k("loading")}...`,a&&(i||`${k("untitled")} - ID: ${t}`),h.length>n+1&&", ")}),Array.isArray(t)&&t.length>3&&k("fields:itemsAndMore",{count:t.length-3,items:""}),0===h.length&&k("noLabel",{label:(0,o.getTranslation)(n?.label||"",x)}))}},51959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=e=>{let t=e.field.editor,n="LazyCellComponent"in t,a=(0,r.useMemo)(()=>n?r.default.lazy(()=>t.LazyCellComponent().then(e=>({default:e}))):null,[t,n]);return n?a&&r.default.createElement(r.default.Suspense,null,r.default.createElement(a,e)):r.default.createElement(t.CellComponent,e)}},91746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(49472),i=n(3994),l=({data:e,field:t})=>{let{i18n:n}=(0,a.useTranslation)(),l=e=>e.map(e=>{let r=t.options.filter(t=>t.value===e)?.[0]?.label;return(0,i.getTranslation)(r,n)}).join(", "),u="";return u=(0,o.optionsAreObjects)(t.options)?Array.isArray(e)?l(e):l([e]):Array.isArray(e)?e.join(", "):e,r.default.createElement("span",null,u)}},43652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=({data:e})=>{let t=e?.length>100?`${e.substr(0,100)}\u2026`:e;return r.default.createElement("span",null,t)}},73357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=m(n(25947)),a=m(n(51432)),o=m(n(63807)),i=m(n(25295)),l=m(n(76262)),u=m(n(74032)),s=m(n(8168)),d=m(n(19692)),c=m(n(51959)),f=m(n(91746)),p=m(n(43652));function m(e){return e&&e.__esModule?e:{default:e}}let h={File:u.default,array:r.default,blocks:a.default,checkbox:o.default,code:i.default,date:l.default,json:s.default,radio:f.default,relationship:d.default,richText:c.default,select:f.default,textarea:p.default,upload:d.default}},66646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=f(n(96540)),a=n(43992),o=n(30876),i=n(49472),l=n(3994),u=n(86919),s=f(n(45649)),d=f(n(73357)),c=f(n(25295));function f(e){return e&&e.__esModule?e:{default:e}}let p=e=>{let{cellData:t,className:n,collection:{slug:s},collection:f,field:p,link:m=!0,onClick:h,rowData:{id:g}={},rowData:v}=e,{routes:{admin:b}}=(0,u.useConfig)(),{i18n:y,t:w}=(0,a.useTranslation)("general"),x="span",k={className:n};if(m&&(x=o.Link,k.to=`${b}/collections/${s}/${g}`),"function"==typeof h&&(x="button",k.type="button",k.onClick=()=>{h(e)}),"id"===p.name)return r.default.createElement(x,k,r.default.createElement(c.default,{collection:f,data:`ID: ${t}`,field:p,nowrap:!0,rowData:v}));let P=t&&d.default[p.type];if(!P){if(!(f.upload&&(0,i.fieldAffectsData)(p))||"filename"!==p.name)return r.default.createElement(x,k,(""===t||void 0===t)&&"label"in p&&w("noLabel",{label:(0,l.getTranslation)("function"==typeof p.label?"data":p.label||"data",y)}),"string"==typeof t&&t,"number"==typeof t&&t,"object"==typeof t&&JSON.stringify(t));P=d.default.File}return r.default.createElement(x,k,r.default.createElement(P,{collection:f,data:t,field:p,rowData:v}))},m=e=>{let{cellData:t,className:n,colIndex:a,collection:o,field:{admin:{components:{Cell:i}={}}={}},field:l,link:u,onClick:d,rowData:c}=e;return r.default.createElement(s.default,{CustomComponent:i,DefaultComponent:p,componentProps:{cellData:t,className:n,colIndex:a,collection:o,field:l,link:u,onClick:d,rowData:c}})}},32964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return C}});let r=n(54701),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=D(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=A(n(23791)),l=n(3994),u=A(n(55182)),s=A(n(30134)),d=A(n(47601)),c=n(11897),f=n(59888),p=A(n(20904)),m=A(n(42281)),h=A(n(53150)),g=A(n(36669)),v=A(n(53010)),b=n(7992),y=n(55146),w=A(n(36167)),x=A(n(56731)),k=A(n(87068)),P=n(87725),E=n(49041);function A(e){return e&&e.__esModule?e:{default:e}}function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}n(18805);let O="collection-list",C=e=>{let{collection:{admin:{components:{AfterList:t,AfterListTable:n,BeforeList:A,BeforeListTable:D}={},description:C}={},labels:{plural:M,singular:S}},collection:j,customHeader:T,data:_,handlePageChange:N,handlePerPageChange:L,handleSearchChange:R,handleSortChange:z,handleWhereChange:I,hasCreatePermission:F,limit:W,modifySearchParams:B,newDocumentURL:U,resetParams:V,titleField:$}=e,{breakpoints:{s:H}}=(0,r.useWindowInfo)(),{i18n:q,t:Y}=(0,o.useTranslation)("general"),G=_.docs||[];return j.upload&&(G=G?.map(e=>({...e,filesize:i.default(e.filesize)}))),a.default.createElement("div",{className:O},Array.isArray(A)&&A.map((t,n)=>a.default.createElement(t,{key:n,...e})),a.default.createElement(k.default,{title:(0,l.getTranslation)(j.labels.plural,q)}),a.default.createElement(E.SelectionProvider,{docs:_.docs,totalDocs:_.totalDocs},a.default.createElement(c.Gutter,{className:`${O}__wrap`},a.default.createElement("header",{className:`${O}__header`},T&&T,!T&&a.default.createElement(a.Fragment,null,a.default.createElement("h1",null,(0,l.getTranslation)(M,q)),F&&a.default.createElement(g.default,{"aria-label":Y("createNewLabel",{label:(0,l.getTranslation)(S,q)}),to:U},Y("createNew")),!H&&a.default.createElement(p.default,{label:(0,l.getTranslation)(j.labels.plural,q)}),C&&a.default.createElement("div",{className:`${O}__sub-header`},a.default.createElement(x.default,{description:C})))),a.default.createElement(f.ListControls,{collection:j,handleSearchChange:R,handleSortChange:z,handleWhereChange:I,modifySearchQuery:B,resetParams:V,titleField:$}),Array.isArray(D)&&D.map((t,n)=>a.default.createElement(t,{key:n,...e})),!_.docs&&a.default.createElement(b.StaggeredShimmers,{className:`${O}__shimmer ${O}__shimmer--rows`,count:6}),_.docs&&_.docs.length>0&&a.default.createElement(P.RelationshipProvider,null,a.default.createElement(y.Table,{data:G})),_.docs&&0===_.docs.length&&a.default.createElement("div",{className:`${O}__no-results`},a.default.createElement("p",null,Y("noResults",{label:(0,l.getTranslation)(M,q)})),F&&U&&a.default.createElement(u.default,{el:"link",to:U},Y("createNewLabel",{label:(0,l.getTranslation)(S,q)}))),Array.isArray(n)&&n.map((t,n)=>a.default.createElement(t,{key:n,...e})),_.docs&&_.docs.length>0&&a.default.createElement("div",{className:`${O}__page-controls`},a.default.createElement(m.default,{disableHistoryChange:!1===B,hasNextPage:_.hasNextPage,hasPrevPage:_.hasPrevPage,limit:_.limit,nextPage:_.nextPage,numberOfNeighbors:1,onChange:N,page:_.page,prevPage:_.prevPage,totalPages:_.totalPages}),_?.totalDocs>0&&a.default.createElement(a.Fragment,null,a.default.createElement("div",{className:`${O}__page-info`},_.page*_.limit-(_.limit-1),"-",_.totalPages>1&&_.totalPages!==_.page?_.limit*_.page:_.totalDocs," ",Y("of")," ",_.totalDocs),a.default.createElement(h.default,{handleChange:L,limit:W,limits:j?.admin?.pagination?.limits,modifySearchParams:B,resetPage:_.totalDocs<=_.pagingCounter}),H&&a.default.createElement("div",{className:`${O}__list-selection`},a.default.createElement(a.Fragment,null,a.default.createElement(p.default,{label:(0,l.getTranslation)(j.labels.plural,q)}),a.default.createElement("div",{className:`${O}__list-selection-actions`},a.default.createElement(d.default,{collection:j,resetParams:V}),a.default.createElement(v.default,{collection:j,resetParams:V}),a.default.createElement(w.default,{collection:j,resetParams:V}),a.default.createElement(s.default,{collection:j,resetParams:V})))))))),Array.isArray(t)&&t.map((t,n)=>a.default.createElement(t,{key:n,...e})))}},87725:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RelationshipProvider:function(){return p},useListRelationships:function(){return m}});let r=d(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=d(n(36361)),l=n(86919),u=n(62519),s=n(32229);function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}let f=(0,a.createContext)({}),p=({children:e})=>{let[t,n]=(0,a.useReducer)(s.reducer,{}),d=(0,i.default)(t,100),c=(0,l.useConfig)(),{i18n:p}=(0,o.useTranslation)(),{code:m}=(0,u.useLocale)(),h=(0,a.useRef)(m),{routes:{api:g},serverURL:v}=c,b=(0,a.useCallback)(async(e=!1)=>{Object.entries(d).forEach(async([t,a])=>{let o=[];if(Object.entries(a).forEach(([t,n])=>{(null===n||e)&&o.push(t)}),o.length>0){let e=`${v}${g}/${t}`,a=r.default.stringify({depth:0,limit:250,locale:m,"where[id][in]":o},{addQueryPrefix:!0}),i=await fetch(`${e}${a}`,{credentials:"include",headers:{"Accept-Language":p.language}});if(i.ok){let e=await i.json();e.docs&&n({docs:e.docs,idsToLoad:o,relationTo:t,type:"ADD_LOADED"})}else n({docs:[],idsToLoad:o,relationTo:t,type:"ADD_LOADED"})}})},[d,v,g,p,m]);(0,a.useEffect)(()=>{b(m&&h.current!==m),h.current=m},[m,b]);let y=(0,a.useCallback)(async e=>{n({docs:e,type:"REQUEST"})},[]);return a.default.createElement(f.Provider,{value:{documents:t,getRelationships:y}},e)},m=()=>(0,a.useContext)(f)},32229:(e,t)=>{"use strict";function n(e,t){switch(t.type){case"REQUEST":{let n={...e};return t.docs.forEach(({relationTo:e,value:t})=>{"object"!=typeof n[e]&&(n[e]={}),n[e][t]=null}),n}case"ADD_LOADED":{let n={...e};"object"!=typeof n[t.relationTo]&&(n[t.relationTo]={});let r=[...t.idsToLoad];return Array.isArray(t.docs)&&t.docs.forEach(e=>{r.splice(r.indexOf(e.id),1),n[t.relationTo][e.id]=e}),r.forEach(e=>{n[t.relationTo][e]=!1}),n}default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return n}})},55633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(43992),o=n(19680),i=n(49041);n(66089);let l=()=>{let{t:e}=(0,a.useTranslation)("general"),{selectAll:t,toggleAll:n}=(0,i.useSelection)();return r.default.createElement(o.CheckboxInput,{"aria-label":e(t===i.SelectAllStatus.None?"selectAllRows":"deselectAllRows"),checked:t===i.SelectAllStatus.AllInPage||t===i.SelectAllStatus.AllAvailable,id:"select-all",onToggle:()=>n(),partialChecked:t===i.SelectAllStatus.Some,className:"select-all__checkbox"})}},77698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),a=n(19680),o=n(49041);n(91286);let i=({id:e})=>{let{selected:t,setSelection:n}=(0,o.useSelection)();return r.default.createElement(a.CheckboxInput,{checked:t[e],onToggle:()=>n(e),className:"select-row__checkbox"})}},49041:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{SelectAllStatus:function(){return r},SelectionProvider:function(){return d},useSelection:function(){return c}});let a=function(e){return e&&e.__esModule?e:{default:e}}(n(55373)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=n(30876),l=n(62519);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}!function(e){e.AllAvailable="allAvailable",e.AllInPage="allInPage",e.None="none",e.Some="some"}(r||(r={}));let s=(0,o.createContext)({}),d=({children:e,docs:t=[],totalDocs:n})=>{let u=(0,o.useRef)({}),d=(0,i.useHistory)(),{code:c}=(0,l.useLocale)(),[f,p]=(0,o.useState)({}),[m,h]=(0,o.useState)(r.None),[g,v]=(0,o.useState)(0),b=(0,o.useCallback)((e=!1)=>{let n={};e?(h(r.AllAvailable),t.forEach(({id:e})=>{n[e]=!0})):m===r.AllAvailable||m===r.AllInPage?(h(r.None),t.forEach(({id:e})=>{n[e]=!1})):t.forEach(({id:e})=>{n[e]=m!==r.Some}),p(n)},[t,m]),y=(0,o.useCallback)(e=>{let t=!f[e],n={...f,[e]:t};t||h(r.Some),p(n)},[f]),w=(0,o.useCallback)(e=>{let t;if(m===r.AllAvailable){let e=a.default.parse(d.location.search,{ignoreQueryPrefix:!0}).where;t=e||{id:{not_equals:""}}}else t={id:{in:Object.keys(f).filter(e=>f[e]).map(e=>e)}};return e&&(t={and:[{...e},t]}),a.default.stringify({locale:c,where:t},{addQueryPrefix:!0})},[d.location.search,m,f,c]);return(0,o.useEffect)(()=>{if(m===r.AllAvailable)return;let e=!1,t=!0;Object.values(f).forEach(n=>{t=t&&n,e=e||n}),t?h(r.AllInPage):e?h(r.Some):h(r.None)},[t,m,f]),(0,o.useEffect)(()=>{let e={};t.length&&(t.forEach(({id:t})=>{e[t]=!1}),p(e)),h(r.None)},[t,d]),(0,o.useEffect)(()=>{let e=m===r.AllAvailable?n:Object.keys(f).filter(e=>f[e]).length;v(e)},[m,f,n]),u.current={count:g,getQueryParams:w,selectAll:m,selected:f,setSelection:y,toggleAll:b,totalDocs:n},o.default.createElement(s.Provider,{value:u.current},e)},c=()=>(0,o.useContext)(s)},43415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),n(96540);let r=n(49472),a=e=>{let t=e.fields.findIndex(e=>(0,r.fieldAffectsData)(e)&&"id"===e.name)>-1,n=e.fields.reduce((e,t)=>(0,r.fieldIsPresentationalOnly)(t)||!0!==t.hidden&&t?.admin?.disabled!==!0?[...e,t]:e,t?[]:[{name:"id",admin:{disableBulkEdit:!0},label:"ID",type:"text"}]);return n}},42833:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});let r=y(n(55373)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(96540)),o=n(43992),i=n(30876),l=n(69335),u=y(n(82472)),s=n(94441),d=n(83949),c=n(62093),f=n(7695),p=n(86919),m=n(71849),h=y(n(45649)),g=n(7087),v=y(n(32964)),b=y(n(43415));function y(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}let x=(e,t)=>("and"in e?e.and.push(t):e={and:[e,t]},e),k=e=>{let{collection:t,collection:{admin:{components:{views:{List:n}={}}={},listSearchableFields:y,pagination:{defaultLimit:w}},labels:{plural:k},slug:P}}=e,{routes:{admin:E,api:A},serverURL:D}=(0,p.useConfig)(),O=`${t.slug}-list`,{permissions:C}=(0,f.useAuth)(),{setStepNav:M}=(0,d.useStepNav)(),{getPreference:S,setPreference:j}=(0,m.usePreferences)(),{limit:T,page:_,search:N,sort:L,where:R}=(0,g.useSearchParams)(),z=(0,i.useHistory)(),{t:I}=(0,o.useTranslation)("general"),[F,W]=(0,a.useState)(""),[B]=(0,a.useState)(()=>(0,b.default)(t)),U=C?.collections?.[P],V=U?.create?.permission,$=`${E}/collections/${P}/create`,[{data:H},{setParams:q}]=(0,u.default)(F,{initialParams:{page:1}}),Y=(0,s.useUseTitleField)(t);(0,a.useEffect)(()=>{M([{label:k}])},[M,k]);let G=(0,a.useCallback)((e={})=>{let t={depth:0,draft:"true",limit:T,page:e?.page,search:e?.search,sort:e?.sort,where:e?.where||{}};if(_&&(t.page=_),L&&(t.sort=L),R&&(t.where=R),t.invoke=(0,l.v4)(),N){let e={...R||{}},n=(y||[Y?.name]).map(e=>({[e]:{like:N}}),[]);if(n.length>0){let t={or:[...n]};e=x(e,t)}t.where=e}q(t)},[T,_,q,L,R,N,y,Y?.name]);return(0,a.useEffect)(()=>{W(`${D}${A}/${P}`),G()},[A,G,D,P]),(0,a.useEffect)(()=>{(async()=>{let e=await S(O),t=r.default.parse(z.location.search,{depth:0,ignoreQueryPrefix:!0}),n={...t,limit:t?.limit||e?.limit||w,sort:t?.sort||e?.sort},a=r.default.stringify(n,{addQueryPrefix:!0});a.length>1&&z.replace({search:a})})()},[t,S,O,z,I,w]),(0,a.useEffect)(()=>{j(O,{sort:L},!0)},[L,O,j]),(0,a.useEffect)(()=>{j(O,{limit:T},!0)},[T,O,j]),(0,a.useEffect)(()=>{if(H?.totalDocs&&H.pagingCounter>H.totalDocs){let e=r.default.parse(z.location.search,{depth:0,ignoreQueryPrefix:!0}),t=r.default.stringify({...e,page:H.totalPages},{addQueryPrefix:!0});z.replace({search:t})}},[H,z,G]),a.default.createElement(c.TableColumnsProvider,{collection:t},a.default.createElement(h.default,{CustomComponent:n,DefaultComponent:v.default,componentProps:{collection:{...t,fields:B},data:H,hasCreatePermission:V,limit:T||w,newDocumentURL:$,resetParams:G,titleField:Y}}))}},36361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(96540);function a(e,t){let[n,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>{a(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}},82730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useDebouncedCallback",{enumerable:!0,get:function(){return a}});let r=n(96540),a=(e,t)=>{let n=(0,r.useRef)();return(0,r.useCallback)((...r)=>{clearTimeout(n.current),n.current=setTimeout(()=>{clearTimeout(n.current),e(...r)},t)},[e,t])}},10075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useDelay",{enumerable:!0,get:function(){return o}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=(e,t=!1)=>{let[n,a]=r.useState(!1),o=r.useRef(),i=r.useCallback(()=>(a(!1),clearTimeout(o.current),o.current=setTimeout(()=>{a(!0)},e),()=>{clearTimeout(o.current)}),[e]);return r.useEffect(()=>{t&&i()},[i,t]),[n,i]}},45982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useDelayedRender",{enumerable:!0,get:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),a=n(10075);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}let i=({delayBeforeShow:e,inTimeout:t,minShowTime:n,outTimeout:o,show:i})=>{let l=t+n+o,[u,s]=(0,a.useDelay)(e),[d,c]=r.useState(!1),[f,p]=r.useState(!1),m=r.useRef(0),h=r.useRef(),g=r.useCallback(()=>{p(!0),h.current=setTimeout(()=>{c(!1),p(!1)},o)},[p,o]);return r.useEffect(()=>{let e=u&&!d&&i,t=d&&!i;if(e)m.current=Date.now(),c(!0);else if(t){let e=Date.now()-m.current,t=l-e;clearTimeout(h.current),h.current=setTimeout(g,Math.max(0,t))}},[d,i,g,l,u]),{isMounted:d,isUnmounting:f,triggerDelayedRender:s}}},64172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=n(95767),a=n(96540),o=n(69854),i=new Map([]),l={altleft:"alt",altright:"alt",controlleft:"ctrl",controlright:"ctrl",ctrlleft:"ctrl",ctrlright:"ctrl",escape:"esc",metaleft:"meta",metaright:"meta",osleft:"meta",osright:"meta",shiftleft:"shift",shiftright:"shift"},u=e=>(l[e.toLowerCase()]||e).trim().toLowerCase().replace("key",""),s=e=>{let t=u(e);"meta"===t&&i.forEach((e,t)=>"meta"!==t&&i.delete(t)),i.set(t,Date.now())},d=e=>{let t=u(e);"meta"===t&&i.clear(),i.delete(t)},c=(e,t)=>{let{cmdCtrlKey:n,editDepth:l,keyCodes:u}=e,{modalState:c}=(0,r.useModal)(),f=(0,a.useCallback)(e=>{let r=e.detail?.key?e.detail:e;if(void 0===r.key)return;i.forEach((e,t)=>{Date.now()-e>3e3&&i.delete(t)}),r.code&&s(r.code);let a=window.navigator.userAgent.includes("Mac OS X"),d=[...i.keys()].filter(e=>!["alt","ctrl","meta","shift"].includes(e));if((0,o.setsAreEqual)(new Set(d),new Set(u))&&(!n||a&&i.has("meta")||!a&&r.ctrlKey)){let e=(Object.keys(c).filter(e=>c[e]?.isOpen)?.length+1)??1;if(e!==l)return;t(r)}},[u,n,l,c,t]),p=(0,a.useCallback)(e=>{e.code&&d(e.code)},[]);(0,a.useEffect)(()=>(document.addEventListener("keydown",f,!1),document.addEventListener("bypassKeyDown",f,!1),document.addEventListener("keyup",p,!1),()=>{document.removeEventListener("keydown",f),document.removeEventListener("bypassKeyDown",f),document.removeEventListener("keyup",p)}),[f,p])}},85541:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(96540),a=({root:e=null,rootMargin:t="0px",threshold:n=0}={},a)=>{let[o,i]=(0,r.useState)(),[l,u]=(0,r.useState)(null),s=(0,r.useRef)(new window.IntersectionObserver(([e])=>i(e),{root:e,rootMargin:t,threshold:n}));return(0,r.useEffect)(()=>{if(a)return;let{current:e}=s;return e.disconnect(),l&&e.observe(l),()=>e.disconnect()},[l,a]),[u,o]}},79752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(96540),a=e=>(0,r.useEffect)(e,[])},82472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(55373)),a=n(96540),o=n(43992),i=n(60146),l=n(62519),u=(e,t={})=>{let{initialData:n={},initialParams:u={}}=t,{i18n:s}=(0,o.useTranslation)(),[d,c]=(0,a.useState)(n),[f,p]=(0,a.useState)(u),[m,h]=(0,a.useState)(!0),[g,v]=(0,a.useState)(!1),{code:b}=(0,l.useLocale)(),y=r.default.stringify({locale:b,..."object"==typeof f?f:{}},{addQueryPrefix:!0});return(0,a.useEffect)(()=>{let t=new AbortController,n=async()=>{v(!1),h(!0);try{let n=await i.requests.get(`${e}${y}`,{headers:{"Accept-Language":s.language},signal:t.signal});n.status>201&&v(!0);let r=await n.json();c(r),h(!1)}catch(e){t.signal.aborted||(v(!0),h(!1))}};return e?n():(v(!1),h(!1)),()=>{t.abort()}},[e,b,y,s.language]),[{data:d,isError:g,isLoading:m},{setParams:p}]}},32301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(96540),a=(e,t,n=[])=>{let a=(0,r.useRef)(Date.now());(0,r.useEffect)(()=>{let n=setTimeout(()=>{Date.now()-a.current>=t&&(e(),a.current=Date.now())},t-(Date.now()-a.current));return()=>{clearTimeout(n)}},[t,...n])}},78248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(43690)),a=n(86919),o=RegExp("^(?:[a-z]+:)?//","i"),i=new RegExp(/^data:image\/[a-z]+;base64,/),l=(e,t)=>{let{upload:{adminThumbnail:n,staticURL:l}}=e,{filename:u,mimeType:s,sizes:d,url:c}=t,{serverURL:f}=(0,a.useConfig)(),p=`${f}${l||""}`;if(o.test(l)&&(p=l),"function"==typeof n){let e=n({doc:t});return!!e&&(o.test(e)||i.test(e)?e:`${p}/${e}`)}return!!(0,r.default)(s)&&(void 0===n&&c?c:d?.[n]?.url?d[n].url:d?.[n]?.filename?`${p}/${d[n].filename}`:`${p}/${u}`)}},63478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUseAsTitle:function(){return s},default:function(){return d}});let r=n(43992),a=n(37205),o=n(3994),i=n(66461),l=n(86919),u=n(26177),s=e=>{let{collection:{admin:{useAsTitle:t}},collection:n,config:{admin:{dateFormat:r}},doc:o,field:i,i18n:l}=e;if(!i&&!o)return"";let s=i||(0,a.getObjectDotNotation)(o,n.admin.useAsTitle),d="string"==typeof s?s:s?.value,c=n?.fields?.find(e=>"name"in e&&e?.name===t),f=c?.type==="date";if(d&&f){let e=c?.admin?.date?.displayFormat||r;d=(0,u.formatDate)(d,e,l?.language)}return d},d=e=>{let{collection:t,global:n}=e,{i18n:a}=(0,r.useTranslation)(),u=(0,l.useConfig)(),d="",c=(0,i.useFormFields)(([e])=>{if(t)return e[t?.admin?.useAsTitle]});return t&&(d=s({collection:t,config:u,field:c,i18n:a})),n&&(d=(0,o.getTranslation)(n.label,a)||n.slug),d}},94441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUseTitleField",{enumerable:!0,get:function(){return o}});let r=n(19083),a=function(e){return e&&e.__esModule?e:{default:e}}(n(6545)),o=e=>{let{admin:{useAsTitle:t},fields:n}=e,o=(0,a.default)(n);return o.find(e=>(0,r.fieldAffectsData)(e)&&e.name===t)}},7874:(e,t,n)=>{"use strict";e=n.nmd(e),Object.defineProperty(t,"__esModule",{value:!0});let r=i(n(96540)),a=n(5338),o=i(n(61044));function i(e){return e&&e.__esModule?e:{default:e}}let l=document.getElementById("app"),u=(0,a.createRoot)(l);u.render(r.default.createElement(o.default,null)),e&&"hot"in e&&"object"==typeof e.hot&&"accept"in e.hot&&"function"==typeof e.hot.accept&&e.hot.accept()},94933:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSupportedDateLocale",{enumerable:!0,get:function(){return n}});let n=(e="enUS")=>({en:"enUS",my:"enUS",ua:"uk",zh:"zhCN"})[e]||e},26177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatDate:function(){return l},formatTimeToNow:function(){return u}});let r=n(55707),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(64123)),o=n(94933);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let l=(e,t,n)=>{let i=new Date(e),l=a[(0,o.getSupportedDateLocale)(n)];return(0,r.format)(i,t,{locale:l})},u=(e,t)=>{let n=new Date(e),i=a[(0,o.getSupportedDateLocale)(t)];return(0,r.formatDistanceToNow)(n,{locale:i})}},71542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSupportedMonacoLocale",{enumerable:!0,get:function(){return n}});let n=e=>({de:"de",es:"es",fr:"fr",it:"it",ja:"ja",ko:"ko",ru:"ru",zh:"zh-cn","zh-tw":"zh-tw"})[e]},90282:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{EntityType:function(){return r},groupNavItems:function(){return o}});let a=n(3994);function o(e,t,n){let r=e.reduce((e,r)=>{if(t?.[r.type.toLowerCase()]?.[r.entity.slug]?.read.permission){let t=(0,a.getTranslation)(r.entity.admin.group,n);if(r.entity.admin.group){let o=e.find(e=>(0,a.getTranslation)(e.label,n)===t),i=o;o||(i={entities:[],label:t},e.push(i)),i.entities.push(r)}else{let t=e.find(e=>(0,a.getTranslation)(e.label,n)===n.t(`general:${r.type}`));t.entities.push(r)}}return e},[{entities:[],label:n.t("general:collections")},{entities:[],label:n.t("general:globals")}]);return r.filter(e=>e.entities.length>0)}!function(e){e.collection="collections",e.global="globals"}(r||(r={}))},95924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"scrollToID",{enumerable:!0,get:function(){return n}});let n=e=>{let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect();window.scrollBy({behavior:"smooth",top:e.top-100})}}},69854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setsAreEqual",{enumerable:!0,get:function(){return n}});let n=(e,t)=>e.size===t.size&&Array.from(e).every(e=>t.has(e))},6398:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useResize",{enumerable:!0,get:function(){return a}});let r=n(96540),a=e=>{let[t,n]=(0,r.useState)();return(0,r.useEffect)(()=>{let t;let{current:r}=e;return r&&(t=new ResizeObserver(e=>{e.forEach(e=>{let{contentBoxSize:t,contentRect:r}=e,a=0,o=0;if(t){let e=Array.isArray(t)?t[0]:t;if(e){let{blockSize:t,inlineSize:n}=e;a=n,o=t}}else if(r){let{height:e,width:t}=r;a=t,o=e}n({height:o,width:a})})})).observe(r),()=>{t&&t.unobserve(r)}},[e]),{size:t}}},53666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=[{name:"loginAttempts",defaultValue:0,hidden:!0,type:"number"},{name:"lockUntil",hidden:!0,type:"date"}]},45503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(84471)),a=n(27234),o=(0,a.extractTranslations)(["authentication:enableAPIKey","authentication:apiKey"]),i=[{name:"enableAPIKey",admin:{components:{Field:()=>null}},defaultValue:!1,label:o["authentication:enableAPIKey"],type:"checkbox"},{name:"apiKey",admin:{components:{Field:()=>null}},hooks:{afterRead:[({req:e,value:t})=>t?e.payload.decrypt(t):void 0],beforeChange:[({req:e,value:t})=>t?e.payload.encrypt(t):void 0]},label:o["authentication:apiKey"],type:"text"},{name:"apiKeyIndex",admin:{disabled:!0},hidden:!0,hooks:{beforeValidate:[async({data:e,req:t,value:n})=>e.apiKey?r.default.createHmac("sha1",t.payload.secret).update(e.apiKey).digest("hex"):!1===e.enableAPIKey?null:n]},type:"text"}]},61454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(32534),a=n(27234),o=[{name:"email",admin:{components:{Field:()=>null}},label:(0,a.extractTranslations)(["general:email"])["general:email"],required:!0,type:"email",unique:!0,validate:r.email},{name:"resetPasswordToken",hidden:!0,type:"text"},{name:"resetPasswordExpiration",hidden:!0,type:"date"},{name:"salt",hidden:!0,type:"text"},{name:"hash",hidden:!0,type:"text"}],i=o},28387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=[{name:"_verified",access:{create:({req:{user:e}})=>!!e,read:({req:{user:e}})=>!!e,update:({req:{user:e}})=>!!e},admin:{components:{Field:()=>null}},type:"checkbox"},{name:"_verificationToken",hidden:!0,hooks:{beforeChange:[({data:e,operation:t,originalDoc:n,value:r})=>"update"===t&&e?._verified===!0&&n?._verified===!1?null:r]},type:"text"}]},42158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=({req:{user:e}})=>!!e},8075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaultUserCollection",{enumerable:!0,get:function(){return o}});let r=n(27234),a=(0,r.extractTranslations)(["general:user","general:users"]),o={admin:{useAsTitle:"email"},auth:{tokenExpiration:7200},fields:[],labels:{plural:a["general:users"],singular:a["general:user"]},slug:"users"}},82180:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(88228),a=async(e,t)=>{if(t){let n=await t(e);if(!n&&!e.disableErrors)throw new r.Forbidden(e.req.t);return n}if(e.req.user)return!0;if(!e.disableErrors)throw new r.Forbidden(e.req.t);return!1},o=a},91273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaults:function(){return a},authDefaults:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(42158)),a={access:{create:r.default,delete:r.default,read:r.default,unlock:r.default,update:r.default},admin:{components:{},enableRichTextLink:!0,enableRichTextRelationship:!0,pagination:{defaultLimit:10,limits:[5,10,25,50,100]},useAsTitle:"id"},auth:!1,custom:{},endpoints:[],fields:[],hooks:{afterChange:[],afterDelete:[],afterForgotPassword:[],afterLogin:[],afterLogout:[],afterMe:[],afterOperation:[],afterRead:[],afterRefresh:[],beforeChange:[],beforeDelete:[],beforeLogin:[],beforeOperation:[],beforeRead:[],beforeValidate:[]},timestamps:!0,upload:!1,versions:!1},o={cookies:{sameSite:"Lax",secure:!1},forgotPassword:{},lockTime:6e5,maxLoginAttempts:5,tokenExpiration:7200,verify:!1}},57648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=b(n(14744)),a=n(78682),o=b(n(53666)),i=b(n(45503)),l=b(n(61454)),u=b(n(28387)),s=b(n(49942)),d=n(86278),c=n(49472),f=b(n(68298)),p=n(27234),m=b(n(23523)),h=n(76630),g=b(n(85328)),v=n(91273);function b(e){return e&&e.__esModule?e:{default:e}}let y=(0,p.extractTranslations)(["general:createdAt","general:updatedAt"]),w=(e,t)=>{let n=(0,r.default)(v.defaults,t,{isMergeableObject:a.isPlainObject});if(!1!==n.timestamps){let e=null,t=null;n.fields.some(n=>((0,c.fieldAffectsData)(n)&&("updatedAt"===n.name&&(e=!0),"createdAt"===n.name&&(t=!0)),t&&e)),e||n.fields.push({name:"updatedAt",admin:{disableBulkEdit:!0,hidden:!0},label:y["general:updatedAt"],type:"date"}),t||n.fields.push({name:"createdAt",admin:{disableBulkEdit:!0,hidden:!0},index:!0,label:y["general:createdAt"],type:"date"})}if(n.labels=n.labels||(0,h.formatLabels)(n.slug),n.versions){if(!0===n.versions&&(n.versions={drafts:!1}),!1===n.timestamps)throw new s.default(t);n.versions.drafts&&(!0===n.versions.drafts&&(n.versions.drafts={autosave:!1}),!0===n.versions.drafts.autosave&&(n.versions.drafts.autosave={interval:2e3}),n.fields=(0,f.default)(n.fields,g.default))}if(n.upload){!0===n.upload&&(n.upload={}),n.upload.staticDir=n.upload.staticDir||n.slug,n.upload.staticURL=n.upload.staticURL||`/${n.slug}`,n.admin.useAsTitle=n.admin.useAsTitle&&"id"!==n.admin.useAsTitle?n.admin.useAsTitle:"filename";let t=(0,m.default)({collection:n,config:e});n.fields=(0,f.default)(n.fields,t)}if(n.auth){n.auth=(0,r.default)(v.authDefaults,"object"==typeof n.auth?n.auth:{},{isMergeableObject:a.isPlainObject});let e=[];n.auth.useAPIKey&&(e=e.concat(i.default)),!n.auth.disableLocalStrategy&&(e=e.concat(l.default),n.auth.verify&&(!0===n.auth.verify&&(n.auth.verify={}),e=e.concat(u.default)),n.auth.maxLoginAttempts>0&&(e=e.concat(o.default))),n.fields=(0,f.default)(n.fields,e)}let p=e.collections.map(e=>e.slug)||[];return n.fields=(0,d.sanitizeFields)({config:e,fields:n.fields,validRelationships:p}),n}},74665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildConfig",{enumerable:!0,get:function(){return a}});let r=n(99754);async function a(e){if(Array.isArray(e.plugins)){let t=await e.plugins.reduce(async(e,t)=>{let n=await e;return t(n)},Promise.resolve(e)),n=(0,r.sanitizeConfig)(t);return n}return(0,r.sanitizeConfig)(e)}},20551:(e,t,n)=>{"use strict";var r=n(65606);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaults",{enumerable:!0,get:function(){return o}});let a=function(e){return e&&e.__esModule?e:{default:e}}(n(57975)),o={admin:{avatar:"default",buildPath:a.default.resolve(r.cwd(),"./build"),components:{},css:a.default.resolve("/","../admin/scss/custom.css"),dateFormat:"MMMM do yyyy, h:mm a",disable:!1,inactivityRoute:"/logout-inactivity",indexHTML:a.default.resolve("/","../admin/index.html"),logoutRoute:"/logout",meta:{titleSuffix:"- Payload"}},collections:[],cookiePrefix:"payload",cors:[],csrf:[],custom:{},defaultDepth:2,defaultMaxTextLength:4e4,endpoints:[],express:{compression:{},json:{},middleware:[],postMiddleware:[],preMiddleware:[]},globals:[],graphQL:{disablePlaygroundInProduction:!0,maxComplexity:1e3,schemaOutputFile:`${"function"==typeof r?.cwd?r.cwd():""}/schema.graphql`},hooks:{},localization:!1,maxDepth:10,rateLimit:{max:500,window:9e5},routes:{admin:"/admin",api:"/api",graphQL:"/graphql",graphQLPlayground:"/graphql-playground"},serverURL:"",telemetry:!0,typescript:{outputFile:`${"function"==typeof r?.cwd?r.cwd():""}/payload-types.ts`},upload:{}}},99754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sanitizeConfig",{enumerable:!0,get:function(){return h}});let r=p(n(14744)),a=n(78682),o=n(8075),i=p(n(57648)),l=n(71965),u=n(88228),s=p(n(97477)),d=p(n(93889)),c=p(n(5135)),f=n(20551);function p(e){return e&&e.__esModule?e:{default:e}}let m=e=>{let t={...e};if(!t?.admin?.user){let e=t.collections.find(({auth:e})=>!!e);e?t.admin.user=e.slug:(t.admin.user=o.defaultUserCollection.slug,t.collections.push(o.defaultUserCollection))}if(!t.collections.find(({slug:e})=>e===t.admin.user))throw new u.InvalidConfiguration(`${t.admin.user} is not a valid admin user collection`);return t},h=e=>{let t=(0,r.default)(f.defaults,e,{isMergeableObject:a.isPlainObject});t.serverURL||(t.serverURL="");let n=m(t);if(n.localization&&n.localization.locales?.length>0){let e=n.localization.locales[0];"string"==typeof e?(n.localization.localeCodes=[...n.localization.locales],n.localization.locales=n.localization.locales.map(e=>({code:e,label:e,rtl:!1,toString:()=>e}))):(n.localization.localeCodes=n.localization.locales.reduce((e,t)=>(e.push(t.code),e),[]),n.localization.locales=n.localization.locales.map(e=>({...e,toString:()=>e.code})))}return t.collections.push((0,d.default)(t)),t.collections.push(l.migrationsCollection),n.collections=n.collections.map(e=>(0,i.default)(t,e)),(0,c.default)(n.collections),n.globals.length>0&&(n.globals=(0,s.default)(n)),""!==n.serverURL&&n.csrf.push(n.serverURL),n}},12948:(e,t)=>{"use strict";function n(e){return void 0!==e.transport}function r(e){return void 0!==e.transportOptions}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{hasTransport:function(){return n},hasTransportOptions:function(){return r}})},71965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"migrationsCollection",{enumerable:!0,get:function(){return n}});let n={admin:{hidden:!0},fields:[{name:"name",type:"text"},{name:"batch",type:"number"}],graphQL:!1,slug:"payload-migrations"}},47e3:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(86122));class a extends Error{data;isOperational;isPublic;status;constructor(e,t,n,r){super(e),this.name=this.constructor.name,this.message=e,this.status=t,this.data=n,this.isPublic=r,this.isOperational=!0,Error.captureStackTrace(this,this.constructor)}}let o=class extends a{constructor(e,t=r.default.INTERNAL_SERVER_ERROR,n=null,a=!1){super(e,t,n,a)}}},38410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:emailOrPasswordIncorrect"):"The email or password provided is incorrect.",r.default.UNAUTHORIZED)}}let l=i},21677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(e,t){super(`Collection ${e} already in use: "${t.join(", ")}"`)}}let o=a},29774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(e){super(`Global label "${e.label}" is already in use`)}}let o=a},43368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:deletingFile"):"There was an error deleting file.",r.default.INTERNAL_SERVER_ERROR)}}let l=i},7539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:problemUploadingFile"):"There was a problem while uploading the file.",r.default.BAD_REQUEST)}}let l=i},37113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:notAllowedToPerformAction"):"You are not allowed to perform this action.",r.default.FORBIDDEN)}}let l=i},70985:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e,r.default.INTERNAL_SERVER_ERROR)}}let l=i},87352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(e,t){super(`Field ${e.label} has invalid name '${t}'. Field names can not include periods (.) and must be alphanumeric.`)}}let o=a},83737:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(e,t){super(`Field ${e.label} has invalid relationship '${t}'.`)}}let o=a},70578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:userLocked"):"This user is locked due to having too many failed login attempts.",r.default.UNAUTHORIZED)}}let l=i},67200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(){super("payload.config.collection object is missing label")}}let o=a},16404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(e){super(`Field ${e.label} is missing options.`)}}let o=a},13790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(49472),a=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class o extends a.default{constructor(e){super(`Field${(0,r.fieldAffectsData)(e)?` "${e.name}"`:""} is either missing a field type or it does not match an available field type`)}}let i=o},74598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:noFilesUploaded"):"No files were uploaded.",r.default.BAD_REQUEST)}}let l=i},80341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:notFound"):"The requested resource was not found.",r.default.NOT_FOUND)}}let l=i},77508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e,t){let n=t?t("error:unspecific",{count:e.length}):`The following path${1===e.length?"":"s"} cannot be queried:`;super(`${n} ${e.map(e=>e.path).join(", ")}`,r.default.BAD_REQUEST,e)}}let l=i},49942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3));class a extends r.default{constructor(e){super(`Timestamps are required in the collection ${e.slug} because you have opted in to Versions.`)}}let o=a},69139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e){super(e?e("error:unauthorized"):"Unauthorized, you must be logged in to make this request.",r.default.UNAUTHORIZED)}}let l=i},6839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=o(n(86122)),a=o(n(47e3));function o(e){return e&&e.__esModule?e:{default:e}}class i extends a.default{constructor(e,t){let n=t?t("error:followingFieldsInvalid",{count:e.length}):`The following field${1===e.length?" is":"s are"} invalid:`;super(`${n} ${e.map(e=>e.field).join(", ")}`,r.default.BAD_REQUEST,e)}}let l=i},88228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{errorHandler:function(){return r.default},APIError:function(){return a.default},AuthenticationError:function(){return o.default},DuplicateCollection:function(){return i.default},DuplicateGlobal:function(){return l.default},ErrorDeletingFile:function(){return u.default},FileUploadError:function(){return s.default},Forbidden:function(){return d.default},InvalidConfiguration:function(){return c.default},InvalidFieldName:function(){return f.default},InvalidFieldRelationship:function(){return p.default},LockedAuth:function(){return m.default},MissingCollectionLabel:function(){return h.default},MissingFieldInputOptions:function(){return g.default},MissingFieldType:function(){return v.default},MissingFile:function(){return b.default},NotFound:function(){return y.default},QueryError:function(){return w.default},ValidationError:function(){return x.default}});let r=k(n(46706)),a=k(n(47e3)),o=k(n(38410)),i=k(n(21677)),l=k(n(29774)),u=k(n(43368)),s=k(n(7539)),d=k(n(37113)),c=k(n(70985)),f=k(n(87352)),p=k(n(83737)),m=k(n(70578)),h=k(n(67200)),g=k(n(16404)),v=k(n(13790)),b=k(n(74598)),y=k(n(80341)),w=k(n(77508)),x=k(n(6839));function k(e){return e&&e.__esModule?e:{default:e}}},76954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AccountGraphic:function(){return r.default},DefaultBlockImageGraphic:function(){return a.default},FileGraphic:function(){return o.default},IconGraphic:function(){return i.default},LogoGraphic:function(){return l.default},SearchGraphic:function(){return u.default}});let r=s(n(3953)),a=s(n(93409)),o=s(n(31320)),i=s(n(92487)),l=s(n(36937)),u=s(n(74922));function s(e){return e&&e.__esModule?e:{default:e}}},19083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{FileData:function(){return r.FileData},ImageSize:function(){return r.ImageSize},IncomingUploadType:function(){return r.IncomingUploadType},fieldAffectsData:function(){return a.fieldAffectsData},fieldHasMaxDepth:function(){return a.fieldHasMaxDepth},fieldHasSubFields:function(){return a.fieldHasSubFields},fieldIsArrayType:function(){return a.fieldIsArrayType},fieldIsBlockType:function(){return a.fieldIsBlockType},fieldIsLocalized:function(){return a.fieldIsLocalized},fieldIsPresentationalOnly:function(){return a.fieldIsPresentationalOnly},fieldSupportsMany:function(){return a.fieldSupportsMany},optionIsObject:function(){return a.optionIsObject},optionIsValue:function(){return a.optionIsValue},optionsAreObjects:function(){return a.optionsAreObjects},tabHasName:function(){return a.tabHasName},valueIsValueWithRelation:function(){return a.valueIsValueWithRelation},validOperators:function(){return o.validOperators}}),function(e,t){Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})}(n(45668),t);let r=n(95502),a=n(49472),o=n(43689)},46706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(86122)),a=i(n(47e3)),o=i(n(86001));function i(e){return e&&e.__esModule?e:{default:e}}let l=(e,t)=>async(n,i,l,u)=>{let s=(0,o.default)(n),d=n.status||r.default.INTERNAL_SERVER_ERROR;t.error(n.stack),e.debug||d!==r.default.INTERNAL_SERVER_ERROR||(s=(0,o.default)(new a.default("Something went wrong."))),e.debug&&!0===e.debug&&(s.stack=n.stack),i.collection&&"function"==typeof i.collection.config.hooks.afterError&&({response:s,status:d}=await i.collection.config.hooks.afterError(n,s,i.context,i.collection.config)||{response:s,status:d}),"function"==typeof e.hooks.afterError&&({response:s,status:d}=await e.hooks.afterError(n,s,i.context,i.collection.config)||{response:s,status:d}),l.status(d).send(s)}},86001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(47e3)),a=e=>{if(e){if(e instanceof r.default&&e.data)return{errors:[{name:e.name,data:e.data,message:e.message}]};if(!(e instanceof r.default||e instanceof Error)&&e.errors)return{errors:Object.keys(e.errors).reduce((t,n)=>(t.push({field:e.errors[n].path,message:e.errors[n].message}),t),[])};if(Array.isArray(e.message))return{errors:e.message};if(e.name)return{errors:[{message:e.message}]}}return{errors:[{message:"An unknown error occurred."}]}}},54920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=(e,t)=>"message"===t?{message:e}:e},35200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"baseBlockFields",{enumerable:!0,get:function(){return a}});let r=n(28743),a=[r.baseIDField,{name:"blockName",admin:{disabled:!0},label:"Block Name",required:!1,type:"text"}]},28743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"baseIDField",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(82808)),a={name:"id",admin:{disabled:!0},hooks:{beforeChange:[({operation:e,value:t})=>"create"!==e&&t||new r.default().toHexString()]},label:"ID",type:"text"}},86278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"sanitizeFields",{enumerable:!0,get:function(){return c}});let r=d(n(63285)),a=n(88228),o=n(76630),i=n(35200),l=n(28743),u=d(n(32534)),s=n(49472);function d(e){return e&&e.__esModule?e:{default:e}}let c=({config:e,fields:t,validRelationships:n})=>t?t.map(t=>{let d={...t};if(!d.type)throw new a.MissingFieldType(d);if((0,s.fieldAffectsData)(d)&&d.name.includes("."))throw new a.InvalidFieldName(d,d.name);if("richText"===d.type&&!d.editor&&e.editor&&(d.editor=e.editor),"name"in d&&d.name&&"object"!=typeof d.label&&"string"!=typeof d.label&&!1!==d.label&&(d.label=(0,o.toWords)(d.name)),"checkbox"===d.type&&void 0===d.defaultValue&&!0===d.required&&(d.defaultValue=!1),"relationship"===d.type||"upload"===d.type){if(n){let e=Array.isArray(d.relationTo)?d.relationTo:[d.relationTo];e.forEach(e=>{if(!n.includes(e))throw new a.InvalidFieldRelationship(d,e)})}"relationship"===d.type&&(d.min&&!d.minRows&&console.warn(`(payload): The "min" property is deprecated for the Relationship field "${d.name}" and will be removed in a future version. Please use "minRows" instead.`),d.max&&!d.maxRows&&console.warn(`(payload): The "max" property is deprecated for the Relationship field "${d.name}" and will be removed in a future version. Please use "maxRows" instead.`),d.minRows=d.minRows||d.min,d.maxRows=d.maxRows||d.max)}if("blocks"===d.type&&d.blocks&&(d.blocks=d.blocks.map(e=>({...e,fields:e.fields.concat(i.baseBlockFields)}))),"array"===d.type&&d.fields&&d.fields.push(l.baseIDField),("blocks"===d.type||"array"===d.type)&&d.label&&(d.labels=d.labels||(0,o.formatLabels)(d.name)),(0,s.fieldAffectsData)(d)){if(d.localized&&!e.localization&&delete d.localized,void 0===d.validate){let e=u.default[d.type];e?d.validate=(t,n)=>e(t,{...d,...n}):d.validate=()=>!0}d.hooks||(d.hooks={}),d.access||(d.access={})}return d.admin?d.admin.condition&&d.admin.components?.Field&&(d.admin.components.Field=(0,r.default)(d.admin.components?.Field)):d.admin={},"fields"in d&&d.fields&&(d.fields=c({config:e,fields:d.fields,validRelationships:n})),"tabs"===d.type&&(d.tabs=d.tabs.map(t=>{let r={...t};return(0,s.tabHasName)(t)&&void 0===t.label&&(r.label=(0,o.toWords)(t.name)),r.fields=c({config:e,fields:t.fields,validRelationships:n}),r})),"blocks"in d&&d.blocks&&(d.blocks=d.blocks.map(t=>{let r={...t};return r.labels=r.labels?r.labels:(0,o.formatLabels)(r.slug),r.fields=c({config:e,fields:t.fields,validRelationships:n}),r})),d}):[]},49472:(e,t)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&"relationTo"in e&&"value"in e}function r(e){return"group"===e.type||"array"===e.type||"row"===e.type||"collapsible"===e.type}function a(e){return"array"===e.type}function o(e){return"blocks"===e.type}function i(e){return"object"==typeof e}function l(e){return Array.isArray(e)&&"object"==typeof e?.[0]}function u(e){return"string"==typeof e}function s(e){return"select"===e.type||"relationship"===e.type}function d(e){return("upload"===e.type||"relationship"===e.type)&&"number"==typeof e.maxDepth}function c(e){return"ui"===e.type}function f(e){return"name"in e&&!c(e)}function p(e){return"name"in e}function m(e){return"localized"in e&&e.localized}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{valueIsValueWithRelation:function(){return n},fieldHasSubFields:function(){return r},fieldIsArrayType:function(){return a},fieldIsBlockType:function(){return o},optionIsObject:function(){return i},optionsAreObjects:function(){return l},optionIsValue:function(){return u},fieldSupportsMany:function(){return s},fieldHasMaxDepth:function(){return d},fieldIsPresentationalOnly:function(){return c},fieldAffectsData:function(){return f},tabHasName:function(){return p},fieldIsLocalized:function(){return m}})},14764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let n=async({defaultValue:e,locale:t,user:n,value:r})=>void 0!==r?r:e&&"function"==typeof e?e({locale:t,user:n}):e,r=n},21325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"promise",{enumerable:!0,get:function(){return u}});let r=n(49472),a=l(n(14764)),o=l(n(87830)),i=n(62957);function l(e){return e&&e.__esModule?e:{default:e}}let u=async({collection:e,context:t,currentDepth:n,depth:l,doc:u,field:s,fieldPromises:d,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:b,triggerAccessControl:y=!0,triggerHooks:w=!0})=>{(0,r.fieldAffectsData)(s)&&s.hidden&&void 0!==b[s.name]&&!v&&delete b[s.name];let x=f&&(0,r.fieldAffectsData)(s)&&"object"==typeof b[s.name]&&null!==b[s.name]&&s.localized&&"all"!==g.locale&&g.payload.config.localization;if(x){let{locale:e}=g,t=b[s.name][e],n=g.payload.config.localization&&g.payload.config.localization?.fallback&&g.fallbackLocale,r=t;if(n&&n!==e){let e=b[s.name][n],a=null==t;if(e)switch(s.type){case"text":case"textarea":(""===t||a)&&(r=e);break;default:a&&(r=e)}}b[s.name]=r}switch(s.type){case"group":void 0===b[s.name]&&(b[s.name]={});break;case"tabs":s.tabs.forEach(e=>{(0,r.tabHasName)(e)&&(void 0===b[e.name]||null===b[e.name])&&(b[e.name]={})});break;case"richText":{let e=s?.editor;if(e?.populationPromise){let r=e.populationPromise({context:t,currentDepth:n,depth:l,field:s,findMany:c,flattenLocales:f,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:b});r&&h.push(r)}if(e?.afterReadPromise){let t=e?.afterReadPromise({field:s,incomingEditorState:b[s.name],siblingDoc:b});t&&h.push(t)}break}case"point":{let e=b[s.name];Array.isArray(e?.coordinates)&&2===e.coordinates.length?b[s.name]=e.coordinates:b[s.name]=void 0}}if((0,r.fieldAffectsData)(s)){if(w&&s.hooks?.afterRead&&await s.hooks.afterRead.reduce(async(n,r)=>{await n;let a=s.localized&&("all"===g.locale||!f)&&"object"==typeof b[s.name];if(a){let n=Object.entries(b[s.name]).map(([n,a])=>(async()=>{let o=await r({collection:e,context:t,data:u,field:s,global:p,operation:"read",originalDoc:u,req:g,siblingData:b,value:a});void 0!==o&&(b[s.name][n]=o)})());await Promise.all(n)}else{let n=await r({collection:e,context:t,data:u,field:s,findMany:c,global:p,operation:"read",originalDoc:u,req:g,siblingData:b,value:b[s.name]});void 0!==n&&(b[s.name]=n)}},Promise.resolve()),y&&s.access&&s.access.read){let e=!!m||await s.access.read({id:u.id,data:u,doc:u,req:g,siblingData:b});e||delete b[s.name]}void 0===b[s.name]&&void 0!==s.defaultValue&&(b[s.name]=await (0,a.default)({defaultValue:s.defaultValue,locale:g.locale,user:g.user,value:b[s.name]})),("relationship"===s.type||"upload"===s.type)&&h.push((0,o.default)({currentDepth:n,depth:l,field:s,overrideAccess:m,req:g,showHiddenFields:v,siblingDoc:b}))}switch(s.type){case"group":{let r=b[s.name];"object"!=typeof b[s.name]&&(r={}),(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:s.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:r,triggerAccessControl:y,triggerHooks:w});break}case"array":{let r=b[s.name];Array.isArray(r)?r.forEach(r=>{(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:s.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:r||{},triggerAccessControl:y,triggerHooks:w})}):x||"object"!=typeof r||null===r?b[s.name]=[]:Object.values(r).forEach(r=>{Array.isArray(r)&&r.forEach(r=>{(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:s.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:r||{},triggerAccessControl:y,triggerHooks:w})})});break}case"blocks":{let r=b[s.name];Array.isArray(r)?r.forEach(r=>{let a=s.blocks.find(e=>e.slug===r.blockType);a&&(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:a.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:r||{},triggerAccessControl:y,triggerHooks:w})}):x||"object"!=typeof r||null===r?b[s.name]=[]:Object.values(r).forEach(r=>{Array.isArray(r)&&r.forEach(r=>{let a=s.blocks.find(e=>e.slug===r.blockType);a&&(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:a.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:r||{},triggerAccessControl:y,triggerHooks:w})})});break}case"row":case"collapsible":(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:s.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:b,triggerAccessControl:y,triggerHooks:w});break;case"tab":{let a=b;(0,r.tabHasName)(s)&&(a=b[s.name],"object"!=typeof b[s.name]&&(a={})),(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:s.fields,findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:a,triggerAccessControl:y,triggerHooks:w});break}case"tabs":(0,i.traverseFields)({collection:e,context:t,currentDepth:n,depth:l,doc:u,fieldPromises:d,fields:s.tabs.map(e=>({...e,type:"tab"})),findMany:c,flattenLocales:f,global:p,overrideAccess:m,populationPromises:h,req:g,showHiddenFields:v,siblingDoc:b,triggerAccessControl:y,triggerHooks:w})}}},87830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(49472),a=async({currentDepth:e,data:t,dataReference:n,depth:r,field:a,index:o,key:i,overrideAccess:l,req:u,showHiddenFields:s})=>{let d=Array.isArray(a.relationTo)?t.relationTo:a.relationTo,c=u.payload.collections[d];if(c){let d,f=Array.isArray(a.relationTo)?t.value:t;"string"!=typeof f&&"number"!=typeof f&&"function"==typeof f?.toString&&"object"!=typeof f&&(f=f.toString()),r&&e<=r&&(d=await u.payloadDataLoader.load(JSON.stringify([u.transactionID,c.config.slug,f,r,e+1,u.locale,u.fallbackLocale,l,s]))),d||(d=f),"number"==typeof o&&"string"==typeof i?Array.isArray(a.relationTo)?n[a.name][i][o].value=d:n[a.name][i][o]=d:"number"==typeof o||"string"==typeof i?Array.isArray(a.relationTo)?n[a.name][o??i].value=d:n[a.name][o??i]=d:Array.isArray(a.relationTo)?n[a.name].value=d:n[a.name]=d}},o=async({currentDepth:e,depth:t,field:n,overrideAccess:o,req:i,showHiddenFields:l,siblingDoc:u})=>{let s=(0,r.fieldHasMaxDepth)(n)&&n.maxDepth{Array.isArray(u[n.name][t])&&u[n.name][t].forEach((r,c)=>{let f=async()=>{await a({currentDepth:e,data:u[n.name][t][c],dataReference:u,depth:s,field:n,index:c,key:t,overrideAccess:o,req:i,showHiddenFields:l})};d.push(f())})}):Array.isArray(u[n.name])&&u[n.name].forEach((t,r)=>{let c=async()=>{t&&await a({currentDepth:e,data:t,dataReference:u,depth:s,field:n,index:r,overrideAccess:o,req:i,showHiddenFields:l})};d.push(c())}):"object"==typeof u[n.name]&&null!==u[n.name]&&"all"===i.locale?(Object.keys(u[n.name]).forEach(t=>{let r=async()=>{await a({currentDepth:e,data:u[n.name][t],dataReference:u,depth:s,field:n,key:t,overrideAccess:o,req:i,showHiddenFields:l})};d.push(r())}),await Promise.all(d)):u[n.name]&&await a({currentDepth:e,data:u[n.name],dataReference:u,depth:s,field:n,overrideAccess:o,req:i,showHiddenFields:l}),await Promise.all(d)},i=o},62957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"traverseFields",{enumerable:!0,get:function(){return a}});let r=n(21325),a=({collection:e,context:t,currentDepth:n,depth:a,doc:o,fieldPromises:i,fields:l,findMany:u,flattenLocales:s,global:d,overrideAccess:c,populationPromises:f,req:p,showHiddenFields:m,siblingDoc:h,triggerAccessControl:g=!0,triggerHooks:v=!0})=>{l.forEach(l=>{i.push((0,r.promise)({collection:e,context:t,currentDepth:n,depth:a,doc:o,field:l,fieldPromises:i,findMany:u,flattenLocales:s,global:d,overrideAccess:c,populationPromises:f,req:p,showHiddenFields:m,siblingDoc:h,triggerAccessControl:g,triggerHooks:v}))})}},68298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(14744)),a=n(49472),o=(e,t)=>{let n=[...e||[]];return t.forEach(e=>{let t=null;if((0,a.fieldAffectsData)(e)){let i=n.find((n,r)=>!!(0,a.fieldAffectsData)(n)&&n.name===e.name&&(t=r,!0));if(i){let l={...i};n.splice(t,1);let u=(0,r.default)(e,l);(0,a.fieldHasSubFields)(e)&&(0,a.fieldHasSubFields)(l)&&(u.fields=o(l.fields,e.fields)),n.push(u)}else n.push(e)}}),n},i=o},54249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=["text","textarea","code","json","number","email","radio","select","date"]},32534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{text:function(){return u},password:function(){return s},email:function(){return d},textarea:function(){return c},code:function(){return f},json:function(){return p},checkbox:function(){return m},date:function(){return h},richText:function(){return g},number:function(){return b},array:function(){return y},blocks:function(){return w},upload:function(){return k},relationship:function(){return P},select:function(){return E},radio:function(){return A},point:function(){return D},default:function(){return O}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(63546)),a=n(30368),o=n(18080),i=n(97270),l=n(49472),u=(e,{config:t,maxLength:n,minLength:r,required:a,t:o})=>{let i;return("number"==typeof t?.defaultMaxTextLength&&(i=t.defaultMaxTextLength),"number"==typeof n&&(i=n),e&&i&&e.length>i)?o("validation:shorterThanMax",{maxLength:i}):e&&r&&e?.length{let l;return("number"==typeof t?.defaultMaxTextLength&&(l=t.defaultMaxTextLength),"number"==typeof n&&(l=n),e&&l&&e.length>l)?i("validation:shorterThanMax",{maxLength:l}):e&&r&&e.length(!e||!!/\S[^\s@]*@\S+\.\S+/.test(e))&&(!!e||!t)||n("validation:emailAddress"),c=(e,{config:t,maxLength:n,minLength:r,payload:a,required:o,t:i})=>{let l;return("number"==typeof t?.defaultMaxTextLength&&(l=t.defaultMaxTextLength),"number"==typeof n&&(l=n),e&&l&&e.length>l)?i("validation:shorterThanMax",{maxLength:l}):e&&r&&e.length!t||void 0!==e||n("validation:required"),p=(e,{jsonError:t,required:n,t:r})=>n&&!e?r("validation:required"):void 0===t||r("validation:invalidInput"),m=(e,{required:t,t:n})=>(!e||"boolean"==typeof e)&&(!t||"boolean"==typeof e)||n("validation:trueOrFalse"),h=(e,{required:t,t:n})=>!!e&&!isNaN(Date.parse(e.toString()))||(e?n("validation:notValidDate",{value:e}):!t||n("validation:required")),g=async(e,t)=>{let n=t?.editor;return await n.validate(e,t)},v=(e,t)=>{let{maxRows:n,minRows:r,required:a,t:o}=t,i=Array.isArray(e)?e.length:0;return!a&&0===i||(r&&in?o("validation:requiresNoMoreThan",{count:n,label:o("rows")}):!a||!!i||o("validation:requiresAtLeast",{count:1,label:o("row")}))},b=(e,{hasMany:t,max:n,maxRows:r,min:a,minRows:i,required:l,t:u})=>{if(!0===t){let t=v(e,{maxRows:r,minRows:i,required:l,t:u});if("string"==typeof t)return t}if(!e&&!(0,o.isNumber)(e)){if(l)return u("validation:required");if(!l)return!0}let s=Array.isArray(e)?e:[e];for(let t of s){if(!(0,o.isNumber)(t))return u("validation:enterNumber");let r=parseFloat(t);if("number"==typeof n&&r>n)return u("validation:greaterThanMax",{label:u("value"),max:n,value:e});if("number"==typeof a&&rv(e,{maxRows:t,minRows:n,required:r,t:a}),w=(e,{maxRows:t,minRows:n,required:r,t:a})=>v(e,{maxRows:t,minRows:n,required:r,t:a}),x=async(e,{id:t,data:n,filterOptions:a,payload:o,relationTo:i,req:l,siblingData:u,t:s,user:d})=>{if(!r.default&&void 0!==a&&e){let r={},c="string"==typeof i?[i]:i,f=Array.isArray(e)?e:[e];await Promise.all(c.map(async e=>{let i="function"==typeof a?await a({id:t,data:n,relationTo:e,siblingData:u,user:d}):a,s=[];if(f.forEach(e=>{"object"==typeof e&&e?.value&&s.push(e.value),("string"==typeof e||"number"==typeof e)&&s.push(e)}),s.length>0){let t={and:[{id:{in:s}}]};i&&t.and.push(i);let n=await o.find({collection:e,depth:0,limit:0,pagination:!1,req:l,where:t});r[e]=n.docs.map(e=>e.id)}else r[e]=[]}));let p=f.filter(e=>{let t,n;return"string"==typeof i&&(t=i,("string"==typeof e||"number"==typeof e)&&(n=e)),Array.isArray(i)&&"object"==typeof e&&e?.relationTo&&(t=e.relationTo,n=e.value),-1===r[t].indexOf(n)});if(p.length>0)return p.reduce((e,t,n)=>`${e} ${JSON.stringify(t)}${p.length===n+1?",":""} `,s("validation:invalidSelections"))}return!0},k=(e,t)=>{if(!e&&t.required)return t.t("validation:required");if(!r.default&&null!=e){let n=t?.config?.collections?.find(e=>e.slug===t.relationTo)?.fields?.find(e=>l.fieldAffectsData(e)&&"id"===e.name),r=(0,a.getIDType)(n,t?.payload?.db?.defaultIDType);if(!(0,i.isValidID)(e,r))return t.t("validation:validUploadID")}return x(e,t)},P=async(e,t)=>{let{config:n,maxRows:o,minRows:u,payload:s,relationTo:d,required:c,t:f}=t;if((!e||Array.isArray(e)&&0===e.length)&&c)return f("validation:required");if(Array.isArray(e)&&e.length>0){if(u&&e.lengtho)return f("validation:greaterThanMax",{label:f("rows"),max:o,value:e.length})}if(!r.default&&null!=e){let t=Array.isArray(e)?e:[e],r=t.filter(e=>{let t,r;if("string"==typeof d&&(t=d,e&&(r=e)),Array.isArray(d)&&"object"==typeof e&&e?.relationTo&&(t=e.relationTo,r=e.value),null===r)return!1;let o=n?.collections?.find(e=>e.slug===t)?.fields?.find(e=>l.fieldAffectsData(e)&&"id"===e.name),u=(0,a.getIDType)(o,s?.db?.defaultIDType);return!(0,i.isValidID)(r,u)});if(r.length>0)return`This relationship field has the following invalid relationships: ${r.map((e,t)=>`${e} ${JSON.stringify(t)}`).join(", ")}`}return x(e,t)},E=(e,{hasMany:t,options:n,required:r,t:a})=>Array.isArray(e)&&e.some(e=>!n.some(t=>t===e||"string"!=typeof t&&t?.value===e))||"string"==typeof e&&!n.some(t=>t===e||"string"!=typeof t&&t.value===e)?a("validation:invalidSelection"):!(r&&(null==e||t&&Array.isArray(e)&&e?.length===0))||a("validation:required"),A=(e,{options:t,required:n,t:r})=>{if(e){let n=t.some(t=>t===e||"string"!=typeof t&&t.value===e);return n||r("validation:invalidSelection")}return!n||r("validation:required")},D=(e=["",""],{required:t,t:n})=>{let r=parseFloat(String(e[0])),a=parseFloat(String(e[1]));return t&&(e[0]&&e[1]&&"number"!=typeof r&&"number"!=typeof a||Number.isNaN(r)||Number.isNaN(a)||Array.isArray(e)&&2!==e.length)?n("validation:requiresTwoNumbers"):!(e[1]&&Number.isNaN(r)||e[0]&&Number.isNaN(a))||n("validation:invalidInput")},O={array:y,blocks:w,checkbox:m,code:f,date:h,email:d,json:p,number:b,password:s,point:D,radio:A,relationship:P,richText:g,select:E,text:u,textarea:c,upload:k}},97477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let r=d(n(42158)),a=n(86278),o=n(49472),i=d(n(68298)),l=d(n(24851)),u=n(76630),s=d(n(85328));function d(e){return e&&e.__esModule?e:{default:e}}let c=e=>{let{collections:t,globals:n}=e,d=n.map(n=>{let d={...n};d.label=d.label||(0,u.toWords)(d.slug),d.endpoints=d.endpoints??[],d.hooks||(d.hooks={}),d.access||(d.access={}),d.admin||(d.admin={}),d.access.read||(d.access.read=r.default),d.access.update||(d.access.update=r.default),d.hooks.beforeValidate||(d.hooks.beforeValidate=[]),d.hooks.beforeChange||(d.hooks.beforeChange=[]),d.hooks.afterChange||(d.hooks.afterChange=[]),d.hooks.beforeRead||(d.hooks.beforeRead=[]),d.hooks.afterRead||(d.hooks.afterRead=[]),d.versions&&(!0===d.versions&&(d.versions={drafts:!1}),d.versions.drafts&&(!0===d.versions.drafts&&(d.versions.drafts={autosave:!1}),!0===d.versions.drafts.autosave&&(d.versions.drafts.autosave={interval:2e3}),d.fields=(0,i.default)(d.fields,s.default))),d.custom||(d.custom={});let c=null,f=null;d.fields.some(e=>((0,o.fieldAffectsData)(e)&&("updatedAt"===e.name&&(c=!0),"createdAt"===e.name&&(f=!0)),f&&c)),c||d.fields.push({name:"updatedAt",admin:{disableBulkEdit:!0,hidden:!0},label:l.default["general:updatedAt"],type:"date"}),f||d.fields.push({name:"createdAt",admin:{disableBulkEdit:!0,hidden:!0},label:l.default["general:createdAt"],type:"date"});let p=t.map(e=>e.slug)||[];return d.fields=(0,a.sanitizeFields)({config:e,fields:d.fields,validRelationships:p}),d});return d}},49459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let r=l(n(42158)),a=l(n(82180)),o=l(n(80341)),i=l(n(69139));function l(e){return e&&e.__esModule?e:{default:e}}async function u(e){let{key:t,overrideAccess:n,req:{payload:l},req:u,user:s}=e;if(!s)throw new i.default(u.t);n||await (0,a.default)({req:u},r.default);let d={and:[{key:{equals:t}},{"user.value":{equals:s.id}},{"user.relationTo":{equals:s.collection}}]},c=await l.delete({collection:"payload-preferences",depth:0,user:s,where:d});if(1===c.docs.length)return c.docs[0];throw new o.default}let s=u},69999:(e,t)=>{"use strict";async function n(e){let{key:t,req:{payload:n},user:r}=e;if(!r)return null;let a={and:[{key:{equals:t}},{"user.value":{equals:r.id}},{"user.relationTo":{equals:r.collection}}]},{docs:o}=await n.find({collection:"payload-preferences",depth:0,pagination:!1,user:r,where:a});return 0===o.length?null:o[0]}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let r=n},4153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(42158)),a=i(n(82180)),o=i(n(69139));function i(e){return e&&e.__esModule?e:{default:e}}async function l(e){let{key:t,overrideAccess:n,req:{payload:i},req:l,user:u,value:s}=e;if(!u)throw new o.default(l.t);let d="payload-preferences",c={key:{equals:t},"user.relationTo":{equals:u.collection},"user.value":{equals:u.id}},f={key:t,user:{relationTo:u.collection,value:u.id},value:s};n||await (0,a.default)({req:l},r.default);try{await i.db.updateOne({collection:d,data:f,req:l,where:c})}catch(e){await i.db.create({collection:d,data:f,req:l})}return f}let u=l},93889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=i(n(19037)),a=i(n(94861)),o=i(n(90667));function i(e){return e&&e.__esModule?e:{default:e}}let l=({req:e})=>({"user.value":{equals:e?.user?.id}}),u=e=>({access:{delete:l,read:l},admin:{hidden:!0},endpoints:[{handler:a.default,method:"get",path:"/:key"},{handler:r.default,method:"delete",path:"/:key"},{handler:o.default,method:"post",path:"/:key"}],fields:[{name:"user",hooks:{beforeValidate:[({req:e})=>e?.user?{relationTo:e?.user.collection,value:e?.user.id}:null]},relationTo:e.collections.filter(e=>e.auth).map(e=>e.slug),required:!0,type:"relationship"},{name:"key",type:"text"},{name:"value",type:"json"}],slug:"payload-preferences"})},19037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(86122)),a=i(n(54920)),o=i(n(49459));function i(e){return e&&e.__esModule?e:{default:e}}async function l(e,t,n){try{return await (0,o.default)({key:e.params.key,req:e,user:e.user}),t.status(r.default.OK).json({...(0,a.default)(e.t("deletedSuccessfully"),"message")})}catch(e){return n(e)}}},94861:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=o(n(86122)),a=o(n(69999));function o(e){return e&&e.__esModule?e:{default:e}}async function i(e,t,n){try{let n=await (0,a.default)({key:e.params.key,req:e,user:e.user});return t.status(r.default.OK).json(n||{message:e.t("general:notFound"),value:null})}catch(e){return n(e)}}},90667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(n(86122)),a=i(n(54920)),o=i(n(4153));function i(e){return e&&e.__esModule?e:{default:e}}async function l(e,t,n){try{let n=await (0,o.default)({key:e.params.key,req:e,user:e.user,value:e.body.value||e.body});return t.status(r.default.OK).json({...(0,a.default)(e.t("general:updatedSuccessfully"),"message"),doc:n})}catch(e){return n(e)}}},99982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"defaultOptions",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(24851)),a={debug:!1,detection:{caches:["cookie","localStorage"],lookupCookie:"lng",lookupLocalStorage:"lng",order:["cookie","localStorage"]},fallbackLng:"en",interpolation:{escapeValue:!1},resources:r.default,supportedLngs:Object.keys(r.default)}},27234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"extractTranslations",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(24851)),a=e=>{let t={};return e.forEach(e=>{t[e]={}}),Object.entries(r.default).forEach(([n,r])=>{e.forEach(e=>{let[a,o]=e.split(":");t[e][n]=r[a][o]})}),t}},24851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return N}});let r=_(n(22731)),a=_(n(51187)),o=_(n(50563)),i=_(n(87218)),l=_(n(22195)),u=_(n(56347)),s=_(n(14828)),d=_(n(61869)),c=_(n(48608)),f=_(n(47762)),p=_(n(25391)),m=_(n(73657)),h=_(n(91121)),g=_(n(95534)),v=_(n(20910)),b=_(n(57368)),y=_(n(86574)),w=_(n(23100)),x=_(n(97604)),k=_(n(40619)),P=_(n(45359)),E=_(n(33584)),A=_(n(51709)),D=_(n(40601)),O=_(n(86484)),C=_(n(44382)),M=_(n(60190)),S=_(n(40213)),j=_(n(35246)),T=_(n(62196));function _(e){return e&&e.__esModule?e:{default:e}}let N={ar:r.default,az:a.default,bg:o.default,cs:i.default,de:l.default,en:u.default,es:s.default,fa:d.default,fr:c.default,hr:f.default,hu:p.default,it:m.default,ja:h.default,ko:g.default,my:v.default,nb:b.default,nl:y.default,pl:w.default,pt:x.default,ro:k.default,rs:P.default,rsLatin:E.default,ru:A.default,sv:D.default,th:O.default,tr:C.default,ua:M.default,vi:S.default,zh:j.default,zhTw:T.default}},5061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"i18nInit",{enumerable:!0,get:function(){return l}});let r=i(n(14744)),a=i(n(35543)),o=n(99982);function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return a.default.isInitialized||a.default.init({...(0,r.default)(o.defaultOptions,e||{})}),a.default}},43689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"validOperators",{enumerable:!0,get:function(){return n}});let n=["equals","contains","not_equals","in","all","not_in","exists","greater_than","greater_than_equal","less_than","less_than_equal","like","within","intersects","near"]},45668:(e,t)=>{"use strict";function n(e){return e?.createdAt&&e?.updatedAt}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"docHasTimestamps",{enumerable:!0,get:function(){return n}})},23791:(e,t)=>{"use strict";function n(e,t=0){if(0===e)return"0 bytes";let n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**r).toFixed(n))}${[" bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},23523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(27234),a=n(17221),o=(0,r.extractTranslations)(["upload:width","upload:height","upload:fileSize","upload:fileName","upload:sizes"]),i=({collection:e,config:t})=>{let n="object"==typeof e.upload?e.upload:{},r={name:"mimeType",admin:{hidden:!0,readOnly:!0},label:"MIME Type",type:"text"},i={name:"url",admin:{hidden:!0,readOnly:!0},label:"URL",type:"text"},l={name:"width",admin:{hidden:!0,readOnly:!0},label:o["upload:width"],type:"number"},u={name:"height",admin:{hidden:!0,readOnly:!0},label:o["upload:height"],type:"number"},s={name:"filesize",admin:{hidden:!0,readOnly:!0},label:o["upload:fileSize"],type:"number"},d={name:"filename",admin:{disableBulkEdit:!0,hidden:!0,readOnly:!0},index:!0,label:o["upload:fileName"],type:"text",unique:!0},c=[{...i,hooks:{afterRead:[({data:e})=>{if(e?.filename)return n.staticURL.startsWith("/")?`${t.serverURL}${n.staticURL}/${e.filename}`:`${n.staticURL}/${e.filename}`}]}},d,r,s,l,u];return n.mimeTypes&&(r.validate=(0,a.mimeTypeValidator)(n.mimeTypes)),n.imageSizes&&(c=c.concat([{name:"sizes",admin:{hidden:!0},fields:n.imageSizes.map(e=>({name:e.name,admin:{hidden:!0},fields:[{...i,hooks:{afterRead:[({data:r})=>{let a=r?.sizes?.[e.name]?.filename;return a?n.staticURL.startsWith("/")?`${t.serverURL}${n.staticURL}/${a}`:`${n.staticURL}/${a}`:null}]}},l,u,r,s,{...d,unique:!1}],label:e.name,type:"group"})),label:o["upload:Sizes"],type:"group"}])),c}},43690:(e,t)=>{"use strict";function n(e){return["image/jpeg","image/png","image/gif","image/svg+xml","image/webp"].indexOf(e)>-1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},17221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mimeTypeValidator",{enumerable:!0,get:function(){return n}});let n=e=>(t,{siblingData:n})=>{if(!n.filename)return!0;if(!t)return"Invalid file type";let r=e.map(e=>e.replace("*",""));return!!r.some(e=>t.startsWith(e))||`Invalid file type: '${t}'`}},95502:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},63546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},5135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(88228),a=e=>e.filter((t,n)=>e.indexOf(t)!==n),o=e=>{let t=a(e.map(e=>e.slug));if(t.length>0)throw new r.DuplicateCollection("slug",t)}},89574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"combineMerge",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(14744)),a=(e,t,n)=>{let a=e.slice();return t.forEach((t,o)=>{void 0===a[o]?a[o]=n.cloneUnlessOtherwiseSpecified(t,n):n.isMergeableObject(t)?a[o]=(0,r.default)(e[o],t,n):-1===e.indexOf(t)&&a.push(t)}),a}},92723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{withNullableJSONSchemaType:function(){return d},entityToJSONSchema:function(){return c},configToJSONSchema:function(){return f}});let r=n(55127),a=n(49472),o=n(77925),i=n(76630),l=e=>{let t=!!(e?.admin&&e?.admin?.condition);if(t)return!1;let n="required"in e&&!0===e.required;return!!(0,a.fieldAffectsData)(e)&&!!n||("fields"in e&&"array"!==e.type?e.fields.some(e=>l(e)):"tabs"===e.type&&e.tabs.some(e=>"name"in e&&e.fields.some(e=>l(e))))};function u(e){return e.map(e=>"object"==typeof e&&"value"in e?e.value:e)}function s(e){let t=[...e].reduce((e,{slug:t})=>(e[t]={$ref:`#/definitions/${t}`},e),{});return{additionalProperties:!1,properties:t,required:Object.keys(t),type:"object"}}function d(e,t){let n=[e];return t?e:(n.push("null"),n)}function c(e,t,n,s){let c=(0,o.deepCopyObject)(t),f=c.typescript?.interface?c.typescript.interface:(0,r.singular)((0,i.toWords)(c.slug,!0)),p=c.fields.find(e=>(0,a.fieldAffectsData)(e)&&"id"===e.name);p&&"group"!==p.type&&"tab"!==p.type?p.required=!0:c.fields.unshift({name:"id",required:!0,type:s}),"timestamps"in c&&!1!==c.timestamps&&(c.fields=c.fields.map(e=>(0,a.fieldAffectsData)(e)&&("createdAt"===e.name||"updatedAt"===e.name)?{...e,required:!0}:e)),"auth"in c&&c.auth&&!c.auth?.disableLocalStrategy&&c.fields.push({name:"password",type:"text"});let m=e.collections.reduce((e,t)=>{let n=t.fields.find(e=>"name"in e&&"id"===e.name);return e[t.slug]="text"===s?"string":"number",n&&(e[t.slug]="number"===n.type?"number":"string"),e},{});return{additionalProperties:!1,title:f,type:"object",...function e(t,n,r){let o=new Set;return{properties:Object.fromEntries(n.reduce((n,i)=>{let s;let c=(0,a.fieldAffectsData)(i)&&l(i);switch(c&&o.add(i.name),i.type){case"text":case"textarea":case"code":case"email":case"date":s={type:d("string",c)};break;case"number":s=!0===i.hasMany?{items:{type:"number"},type:d("array",c)}:{type:d("number",c)};break;case"checkbox":s={type:d("boolean",c)};break;case"json":s={type:["object","array","string","number","boolean","null"]};break;case"richText":s=i.editor.outputSchema?i.editor.outputSchema({field:i,isRequired:c}):{items:{type:"object"},type:d("array",c)};break;case"radio":s={enum:u(i.options),type:d("string",c)};break;case"select":{let e=u(i.options);s=i.hasMany?{items:{enum:e,type:"string"},type:d("array",c)}:{enum:e,type:d("string",c)};break}case"point":s={items:[{type:"number"},{type:"number"}],maxItems:2,minItems:2,type:d("array",c)};break;case"relationship":s=Array.isArray(i.relationTo)?i.hasMany?{items:{oneOf:i.relationTo.map(e=>({additionalProperties:!1,properties:{relationTo:{const:e},value:{oneOf:[{type:t[e]},{$ref:`#/definitions/${e}`}]}},required:["value","relationTo"],type:"object"}))},type:d("array",c)}:{oneOf:i.relationTo.map(e=>({additionalProperties:!1,properties:{relationTo:{const:e},value:{oneOf:[{type:t[e]},{$ref:`#/definitions/${e}`}]}},required:["value","relationTo"],type:d("object",c)}))}:i.hasMany?{items:{oneOf:[{type:t[i.relationTo]},{$ref:`#/definitions/${i.relationTo}`}]},type:d("array",c)}:{oneOf:[{type:d(t[i.relationTo],c)},{$ref:`#/definitions/${i.relationTo}`}]};break;case"upload":s={oneOf:[{type:t[i.relationTo]},{$ref:`#/definitions/${i.relationTo}`}]},c||s.oneOf.push({type:"null"});break;case"blocks":s={items:{oneOf:i.blocks.map(n=>{let a=e(t,n.fields,r),o={additionalProperties:!1,properties:{...a.properties,blockType:{const:n.slug}},required:["blockType",...a.required],type:"object"};return n.interfaceName?(r.set(n.interfaceName,o),{$ref:`#/definitions/${n.interfaceName}`}):o})},type:d("array",c)};break;case"array":s={items:{additionalProperties:!1,type:"object",...e(t,i.fields,r)},type:d("array",c)},i.interfaceName&&(r.set(i.interfaceName,s),s={$ref:`#/definitions/${i.interfaceName}`});break;case"row":case"collapsible":{let a=e(t,i.fields,r);Object.entries(a.properties).forEach(([e,t])=>{n.set(e,t)}),a.required.forEach(e=>{o.add(e)});break}case"tabs":i.tabs.forEach(i=>{let l=e(t,i.fields,r);(0,a.tabHasName)(i)?(n.set(i.name,{additionalProperties:!1,type:"object",...l}),o.add(i.name)):(Object.entries(l.properties).forEach(([e,t])=>{n.set(e,t)}),l.required.forEach(e=>{o.add(e)}))});break;case"group":s={additionalProperties:!1,type:"object",...e(t,i.fields,r)},i.interfaceName&&(r.set(i.interfaceName,s),s={$ref:`#/definitions/${i.interfaceName}`})}return s&&(0,a.fieldAffectsData)(i)&&n.set(i.name,s),n},new Map)),required:Array.from(o)}}(m,c.fields,n)}}function f(e,t){let n=new Map,r=[...e.globals,...e.collections].reduce((r,a)=>(r[a.slug]=c(e,a,n,t),r),{});return{additionalProperties:!1,definitions:{...r,...Object.fromEntries(n)},properties:{collections:s(e.collections||[]),globals:s(e.globals||[])},required:["collections","globals"],title:"Config",type:"object"}}},45512:(e,t)=>{"use strict";function n(e){return Array.isArray(e)?e:e.indexOf(",")>-1?e.split(","):[e]}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createArrayFromCommaDelineated",{enumerable:!0,get:function(){return n}})},77925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"deepCopyObject",{enumerable:!0,get:function(){return n}});let n=e=>{if(e instanceof Date)return e;if(e instanceof Set)return new Set(e);if(e instanceof Map)return new Map(e);if("object"!=typeof e||null===e)return e;let t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(r=>{let a=e[r];t[r]="object"==typeof a&&null!==a?n(a):a}),t}},48523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"deepMerge",{enumerable:!0,get:function(){return function e(t,n){let r={...t};for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&("object"==typeof n[a]&&!Array.isArray(n[a])&&t[a]?r[a]=e(t[a],n[a]):r[a]=n[a]);return r}}})},47861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fieldSchemaToJSON",{enumerable:!0,get:function(){return n}});let n=e=>e.reduce((e,t)=>{let r=e;switch(t.type){case"group":e.push({name:t.name,fields:n(t.fields),type:t.type});break;case"array":e.push({name:t.name,fields:n([...t.fields,{name:"id",type:"text"}]),type:t.type});break;case"blocks":e.push({name:t.name,blocks:t.blocks.reduce((e,t)=>(e[t.slug]={fields:n([...t.fields,{name:"id",type:"text"}])},e),{}),type:t.type});break;case"row":case"collapsible":r=r.concat(n(t.fields));break;case"tabs":{let e=[];t.tabs.forEach(r=>{if("name"in r){e.push({name:r.name,fields:n(r.fields),type:t.type});return}e=e.concat(n(r.fields))}),r=r.concat(e);break}case"relationship":case"upload":e.push({name:t.name,hasMany:"hasMany"in t&&!!t.hasMany,relationTo:t.relationTo,type:t.type});break;default:"name"in t&&e.push({name:t.name,type:t.type})}return r},[])},70821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findLocaleFromCode",{enumerable:!0,get:function(){return n}});let n=(e,t)=>e?.locales&&0!==e.locales.length?e.locales.find(e=>e?.code===t):null},6545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(49472),a=(e,t)=>e.reduce((e,n)=>(0,r.fieldAffectsData)(n)||t&&(0,r.fieldIsPresentationalOnly)(n)?[...e,n]:(0,r.fieldHasSubFields)(n)?[...e,...a(n.fields,t)]:"tabs"===n.type?[...e,...n.tabs.reduce((e,n)=>[...e,...(0,r.tabHasName)(n)?[{...n,type:"tab"}]:a(n.fields,t)],[])]:e,[]),o=a},76630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatLabels:function(){return l},formatNames:function(){return u},toWords:function(){return i}});let r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(55127));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o=e=>e.charAt(0).toUpperCase()+e.slice(1),i=(e,t=!1)=>{let n=(e||"").trim(),r=n.split(/[\s-]/),a=[];return r.forEach(e=>{if(""!==e){let t=e.split(/(?=[A-Z])/).join(" ");a.push(o(t))}}),t?a.join("").replace(/\s/g,""):a.join(" ")},l=e=>{let t=i(e);return(0,r.isPlural)(e)?{plural:t,singular:(0,r.singular)(t)}:{plural:(0,r.default)(t),singular:t}},u=e=>{let t=i(e,!0);return(0,r.isPlural)(e)?{plural:t,singular:(0,r.singular)(t)}:{plural:(0,r.default)(t),singular:t}}},30368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getIDType",{enumerable:!0,get:function(){return n}});let n=(e,t)=>e?"number"===e.type?"number":"text":t||"ObjectID"},37205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getObjectDotNotation",{enumerable:!0,get:function(){return n}});let n=(e,t,n)=>{if(!t||!e)return n;let r=t.split(".").reduce((e,t)=>e?.[t],e);return void 0===r?n:r}},3994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTranslation",{enumerable:!0,get:function(){return n}});let n=(e,t)=>{if("object"==typeof e){if(e[t.language])return e[t.language];let n=[];return"string"==typeof t.options.fallbackLng?n=[t.options.fallbackLng]:Array.isArray(t.options.fallbackLng)?n=t.options.fallbackLng:"object"==typeof t.options.fallbackLng?n=Object.keys(t.options.fallbackLng):"function"==typeof t.options.fallbackLng&&console.warn("Use of i18next fallbackLng functions are not supported."),e[n.find(t=>e[t])]??e[Object.keys(e)[0]]}return e}},5267:(e,t)=>{"use strict";function n(e,t){return[...new Map(e.map(e=>[e[t],e])).values()]}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}})},18080:(e,t)=>{"use strict";function n(e){return("string"!=typeof e||""!==e.trim())&&!Number.isNaN(Number(e))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNumber",{enumerable:!0,get:function(){return n}})},97270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isValidID",{enumerable:!0,get:function(){return a}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(82808)),a=(e,t)=>"text"===t?e&&"string"==typeof e:!("number"!=typeof e||Number.isNaN(e))||("ObjectID"===t?r.default.isValid(String(e)):void 0)},65314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setsAreEqual",{enumerable:!0,get:function(){return n}});let n=(e,t)=>e.size===t.size&&[...e].every(e=>t.has(e))},66827:(e,t)=>{"use strict";function n(e){return e.split(/\.(\d+)\./g).filter(Boolean)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"splitPathByArrayFields",{enumerable:!0,get:function(){return n}})},74271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},85516:(e,t)=>{"use strict";async function n(e){return new Promise(t=>{setTimeout(t,e)})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});let r=n},22748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let n=e=>{let t=e.split(" "),n=t.reduce((e,n,r)=>{let a=n.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return`${e}(?=.*(?:(?:[^\\p{L}\\p{N}])|^).*${a}.*(?=[^\\p{L}\\p{N}]|$))${r+1===t.length?".+":""}`},"");return RegExp(n,"i")}},85328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{statuses:function(){return o},default:function(){return l}});let r=n(27234),a=(0,r.extractTranslations)(["version:draft","version:published","version:status"]),o=[{label:a["version:draft"],value:"draft"},{label:a["version:published"],value:"published"}],i=[{name:"_status",admin:{components:{Field:()=>null},disableBulkEdit:!0},defaultValue:"draft",label:a["version:status"],options:o,type:"select"}],l=i},69335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=f(n(96342)),a=f(n(23724)),o=f(n(82553)),i=f(n(69770)),l=f(n(85728)),u=f(n(59623)),s=f(n(57333)),d=f(n(64174)),c=f(n(88208));function f(e){return e&&e.__esModule?e:{default:e}}},25743:(e,t)=>{"use strict";function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,a,o,i){var l;return r((l=r(r(t,e),r(a,i)))<>>32-o,n)}function o(e,t,n,r,o,i,l){return a(t&n|~t&r,e,t,o,i,l)}function i(e,t,n,r,o,i,l){return a(t&r|n&~r,e,t,o,i,l)}function l(e,t,n,r,o,i,l){return a(t^n^r,e,t,o,i,l)}function u(e,t,n,r,o,i,l){return a(n^(t|~r),e,t,o,i,l)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>a%32&255,o=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},85728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},88208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(57333));t.default=function(e){let t;if(!(0,r.default)(e))throw TypeError("Invalid UUID");let n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},95696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},44530:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};let r=new Uint8Array(16)},58986:(e,t)=>{"use strict";function n(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;d=s,s=u,u=n(l,30)>>>0,l=o,o=i}r[0]=r[0]+o>>>0,r[1]=r[1]+l>>>0,r[2]=r[2]+u>>>0,r[3]=r[3]+s>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},64174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=o;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(57333));let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function o(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}t.default=function(e,t=0){let n=o(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},96342:(e,t,n)=>{"use strict";let r,a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(44530)),i=n(64174);let l=0,u=0;t.default=function(e,t,n){let s=t&&n||0,d=t||Array(16),c=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:a;if(null==c||null==f){let t=e.random||(e.rng||o.default)();null==c&&(c=r=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=a=(t[6]<<8|t[7])&16383)}let p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:u+1,h=p-l+(m-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||p>l)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,u=m,a=f,p+=122192928e5;let g=((268435455&p)*1e4+m)%4294967296;d[s++]=g>>>24&255,d[s++]=g>>>16&255,d[s++]=g>>>8&255,d[s++]=255&g;let v=p/4294967296*1e4&268435455;d[s++]=v>>>8&255,d[s++]=255&v,d[s++]=v>>>24&15|16,d[s++]=v>>>16&255,d[s++]=f>>>8|128,d[s++]=255&f;for(let e=0;e<6;++e)d[s+e]=c[e];return t||(0,i.unsafeStringify)(d)}},23724:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(2025)),a=o(n(25743));function o(e){return e&&e.__esModule?e:{default:e}}let i=(0,r.default)("v3",48,a.default);t.default=i},2025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function l(e,o,i,l){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(82884)),a=i(n(44530)),o=n(64174);function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let i=e.random||(e.rng||a.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return(0,o.unsafeStringify)(i)}},69770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(2025)),a=o(n(58986));function o(e){return e&&e.__esModule?e:{default:e}}let i=(0,r.default)("v5",80,a.default);t.default=i},57333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(95696));t.default=function(e){return"string"==typeof e&&r.default.test(e)}},59623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(57333));t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},180:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{FileData:function(){return r.FileData},ImageSize:function(){return r.ImageSize},IncomingUploadType:function(){return r.IncomingUploadType},fieldAffectsData:function(){return a.fieldAffectsData},fieldHasMaxDepth:function(){return a.fieldHasMaxDepth},fieldHasSubFields:function(){return a.fieldHasSubFields},fieldIsArrayType:function(){return a.fieldIsArrayType},fieldIsBlockType:function(){return a.fieldIsBlockType},fieldIsLocalized:function(){return a.fieldIsLocalized},fieldIsPresentationalOnly:function(){return a.fieldIsPresentationalOnly},fieldSupportsMany:function(){return a.fieldSupportsMany},optionIsObject:function(){return a.optionIsObject},optionIsValue:function(){return a.optionIsValue},optionsAreObjects:function(){return a.optionsAreObjects},tabHasName:function(){return a.tabHasName},valueIsValueWithRelation:function(){return a.valueIsValueWithRelation},validOperators:function(){return o.validOperators}}),function(e,t){Object.keys(e).forEach(function(n){"default"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})})}(n(45668),t);let r=n(95502),a=n(49472),o=n(43689)},3605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{withMergedProps:function(){return r.withMergedProps},afterReadPromise:function(){return a.promise},afterReadTraverseFields:function(){return o.traverseFields},extractTranslations:function(){return i.extractTranslations},i18nInit:function(){return l.i18nInit},combineMerge:function(){return u.combineMerge},configToJSONSchema:function(){return s.configToJSONSchema},entityToJSONSchema:function(){return s.entityToJSONSchema},withNullableJSONSchemaType:function(){return s.withNullableJSONSchemaType},createArrayFromCommaDelineated:function(){return d.createArrayFromCommaDelineated},deepCopyObject:function(){return c.deepCopyObject},deepMerge:function(){return f.deepMerge},fieldSchemaToJSON:function(){return p.fieldSchemaToJSON},flattenTopLevelFields:function(){return m.default},formatLabels:function(){return h.formatLabels},formatNames:function(){return h.formatNames},toWords:function(){return h.toWords},getIDType:function(){return g.getIDType},getTranslation:function(){return v.getTranslation},isValidID:function(){return b.isValidID}});let r=n(96645),a=n(21325),o=n(62957),i=n(27234),l=n(5061),u=n(89574),s=n(92723),d=n(45512),c=n(77925),f=n(48523),p=n(47861),m=function(e){return e&&e.__esModule?e:{default:e}}(n(6545)),h=n(76630),g=n(30368),v=n(3994),b=n(97270)},55127:function(e){e.exports=function(){var e=[],t=[],n={},r={},a={};function o(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function l(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var a=r.length;a--;){var o=r[a];if(o[0].test(t))return function(e,t){return e.replace(t[0],function(n,r){var a,o,l=(a=t[1],o=arguments,a.replace(/\$(\d{1,2})/g,function(e,t){return o[t]||""}));return""===n?i(e[r-1],l):i(n,l)})}(t,o)}return t}function u(e,t,n){return function(r){var a=r.toLowerCase();return t.hasOwnProperty(a)?i(r,a):e.hasOwnProperty(a)?i(r,e[a]):l(a,r,n)}}function s(e,t,n,r){return function(r){var a=r.toLowerCase();return!!t.hasOwnProperty(a)||!e.hasOwnProperty(a)&&l(a,a,n)===a}}function d(e,t,n){var r=1===t?d.singular(e):d.plural(e);return(n?t+" ":"")+r}return d.plural=u(a,r,e),d.isPlural=s(a,r,e),d.singular=u(r,a,t),d.isSingular=s(r,a,t),d.addPluralRule=function(t,n){e.push([o(t),n])},d.addSingularRule=function(e,n){t.push([o(e),n])},d.addUncountableRule=function(e){if("string"==typeof e){n[e.toLowerCase()]=!0;return}d.addPluralRule(e,"$0"),d.addSingularRule(e,"$0")},d.addIrregularRule=function(e,t){t=t.toLowerCase(),a[e=e.toLowerCase()]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return d.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return d.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return d.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d}()},65606:e=>{var t,n,r,a=e.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var u=[],s=!1,d=-1;function c(){s&&r&&(s=!1,r.length?u=r.concat(u):d=-1,u.length&&f())}function f(){if(!s){var e=l(c);s=!0;for(var t=u.length;t;){for(r=u,u=[];++d1)for(var n=1;n{"use strict";var r=n(6925);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},55373:(e,t,n)=>{"use strict";var r=n(98636),a=n(62642),o=n(74765);e.exports={formats:o,parse:a,stringify:r}},62642:(e,t,n)=>{"use strict";var r=n(37720),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,s),c=-1,f=t.charset;if(t.charsetSentinel)for(p=0;p=0&&n.parseArrays&&d<=n.arrayLimit?(i=[])[d]=a:"__proto__"!==s&&(i[s]=a):i={0:a}}a=i}return a},d=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=l?o.slice(0,l.index):o,d=[];if(u){if(!n.plainObjects&&a.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var c=0;n.depth>0&&null!==(l=i.exec(o))&&c{"use strict";var r=n(920),a=n(37720),o=n(74765),i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,s=Array.prototype.push,d=function(e,t){s.apply(e,u(t)?t:[t])},c=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},m={},h=function e(t,n,o,i,l,s,c,f,h,g,v,b,y,w,x,k){for(var P,E,A=t,D=k,O=0,C=!1;void 0!==(D=D.get(m))&&!C;){var M=D.get(t);if(O+=1,void 0!==M){if(M===O)throw RangeError("Cyclic object value");C=!0}void 0===D.get(m)&&(O=0)}if("function"==typeof f?A=f(n,A):A instanceof Date?A=v(A):"comma"===o&&u(A)&&(A=a.maybeMap(A,function(e){return e instanceof Date?v(e):e})),null===A){if(l)return c&&!w?c(n,p.encoder,x,"key",b):n;A=""}if("string"==typeof(P=A)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||a.isBuffer(A))return c?[y(w?n:c(n,p.encoder,x,"key",b))+"="+y(c(A,p.encoder,x,"value",b))]:[y(n)+"="+y(String(A))];var S=[];if(void 0===A)return S;if("comma"===o&&u(A))w&&c&&(A=a.maybeMap(A,c)),E=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(f))E=f;else{var j=Object.keys(A);E=h?j.sort(h):j}for(var T=i&&u(A)&&1===A.length?n+"[]":n,_=0;_0?y+b:""}},37720:(e,t,n)=>{"use strict";var r=n(74765),a=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],a=0;a=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===r.RFC1738&&(40===d||41===d)){u+=l.charAt(s);continue}if(d<128){u+=i[d];continue}if(d<2048){u+=i[192|d>>6]+i[128|63&d];continue}if(d<55296||d>=57344){u+=i[224|d>>12]+i[128|d>>6&63]+i[128|63&d];continue}s+=1,u+=i[240|(d=65536+((1023&d)<<10|1023&l.charCodeAt(s)))>>18]+i[128|d>>12&63]+i[128|d>>6&63]+i[128|63&d]}return u},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;re.height),d(b,this.animationStateClasses.animatingToHeightZero,0===k.height),d(b,this.animationStateClasses.animatingToHeightAuto,"auto"===k.height),d(b,this.animationStateClasses.animatingToHeightSpecific,k.height>0),b)),A=this.getStaticStateClasses(k.height);(this.setState({animationStateClasses:E,height:x,overflow:"hidden",shouldUseTransitions:!P}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),P)?(k.shouldUseTransitions=!0,m(this.animationFrameIDs),this.animationFrameIDs=(f=function(){n.setState(k),v(i,{newHeight:k.height})},(p=[])[0]=requestAnimationFrame(function(){p[1]=requestAnimationFrame(function(){f()})}),p),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:A,shouldUseTransitions:!1}),n.hideContent(k.height),v(o,{newHeight:k.height})},w)):(v(i,{newHeight:x}),this.timeoutID=setTimeout(function(){k.animationStateClasses=A,k.shouldUseTransitions=!1,n.setState(k),"auto"!==a&&n.hideContent(x),v(o,{newHeight:x})},w))}}},{key:"componentWillUnmount",value:function(){m(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function(){if(this.prefersReducedMotion)return{delay:0,duration:0};var e=this.props;return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,u.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateOpacity,o=n.applyInlineTransitions,l=n.children,s=n.className,c=n.contentClassName,m=n.easing,h=n.id,g=n.style,v=this.state,b=v.height,y=v.overflow,w=v.animationStateClasses,x=v.shouldUseTransitions,k=this.getTimings(),P=k.duration,E=k.delay,A=a({},g,{height:b,overflow:y||g.overflow});x&&o&&(A.transition="height "+P+"ms "+m+" "+E+"ms",g.transition&&(A.transition=g.transition+", "+A.transition),A.WebkitTransition=A.transition);var D={};r&&(D.transition="opacity "+P+"ms "+m+" "+E+"ms",D.WebkitTransition=D.transition,0===b&&(D.opacity=0));var O=(0,u.default)((d(e={},w,!0),d(e,s,s),e)),C=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===b;return i.default.createElement("div",a({},p.apply(void 0,[this.props].concat(f)),{"aria-hidden":C,className:O,id:h,style:A}),i.default.createElement("div",{className:c,style:D,ref:function(e){return t.contentElement=e}},l))}}]),t}(i.default.Component);b.propTypes={"aria-hidden":l.default.bool,animateOpacity:l.default.bool,animationStateClasses:l.default.object,applyInlineTransitions:l.default.bool,children:l.default.any.isRequired,className:l.default.string,contentClassName:l.default.string,delay:l.default.number,duration:l.default.number,easing:l.default.string,height:function(e,t,n){var a=e[t];return"number"==typeof a&&a>=0||g(a)||"auto"===a?null:TypeError('value "'+a+'" of type "'+(void 0===a?"undefined":r(a))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:l.default.string,onAnimationEnd:l.default.func,onAnimationStart:l.default.func,style:l.default.object},b.defaultProps={animateOpacity:!1,animationStateClasses:c,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=b},59386:function(e,t,n){!function(e,t,n,r,a,o,i,l,u,s,d,c,f,p,m,h,g,v,b,y,w,x,k,P,E,A,D,O,C,M,S,j,T,_,N,L,R,z,I,F,W,B,U,V,$,H,q,Y,G,K,X,Q,J,Z,ee,et,en,er,ea,eo,ei,el,eu,es){"use strict";function ed(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ec=ed(t),ef=ed(r),ep=ed(a),em=ed(o),eh=ed(i),eg=ed(l),ev=ed(u),eb=ed(s),ey=ed(d),ew=ed(c),ex=ed(f),ek=ed(p),eP=ed(m),eE=ed(h),eA=ed(g),eD=ed(v),eO=ed(b),eC=ed(y),eM=ed(w),eS=ed(x),ej=ed(k),eT=ed(P),e_=ed(E),eN=ed(A),eL=ed(D),eR=ed(O),ez=ed(C),eI=ed(M),eF=ed(S),eW=ed(j),eB=ed(T),eU=ed(_),eV=ed(N),e$=ed(L),eH=ed(R),eq=ed(z),eY=ed(I),eG=ed(F),eK=ed(W),eX=ed(B),eQ=ed(U),eJ=ed(V),eZ=ed($),e0=ed(H),e1=ed(Y),e2=ed(G),e4=ed(K),e3=ed(X),e9=ed(Q),e5=ed(J),e6=ed(Z),e8=ed(ee),e7=ed(et),te=ed(en),tt=ed(er),tn=ed(ea),tr=ed(eo),ta=ed(ei),to=ed(el),ti=ed(es);function tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tu(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.excludeDateIntervals,i=t.includeDates,l=t.includeDateIntervals,u=t.filterDate;return t0(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return tW(e,t)})||o&&o.some(function(t){var n=t.start,r=t.end;return te.default(e,{start:n,end:r})})||i&&!i.some(function(t){return tW(e,t)})||l&&!l.some(function(t){var n=t.start,r=t.end;return te.default(e,{start:n,end:r})})||u&&!u(tO(e))||!1}function tG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(t){var n=t.start,r=t.end;return te.default(e,{start:n,end:r})}):n&&n.some(function(t){return tW(e,t)})||!1}function tK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate;return t0(e,{minDate:eQ.default(n),maxDate:e1.default(r)})||a&&a.some(function(t){return tI(e,t)})||o&&!o.some(function(t){return tI(e,t)})||i&&!i(tO(e))||!1}function tX(e,t,n,r){var a=eR.default(e),o=eN.default(e),i=eR.default(t),l=eN.default(t),u=eR.default(r);return a===i&&a===u?o<=n&&n<=l:a=n||ua:void 0}function tQ(e,t,n){if(!em.default(t)||!em.default(n))return!1;var r=eR.default(t),a=eR.default(n);return r<=e&&a>=e}function tJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate,l=new Date(e,0,1);return t0(l,{minDate:eZ.default(n),maxDate:e2.default(r)})||a&&a.some(function(e){return tz(l,e)})||o&&!o.some(function(e){return tz(l,e)})||i&&!i(tO(l))||!1}function tZ(e,t,n,r){var a=eR.default(e),o=eL.default(e),i=eR.default(t),l=eL.default(t),u=eR.default(r);return a===i&&a===u?o<=n&&n<=l:a=n||ua:void 0}function t0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&0>eq.default(e,n)||r&&eq.default(e,r)>0}function t1(e,t){return t.some(function(t){return eS.default(t)===eS.default(e)&&eM.default(t)===eM.default(e)})}function t2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,a=t.filterTime;return n&&t1(e,n)||r&&!t1(e,r)||a&&!a(e)||!1}function t4(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw Error("Both minTime and maxTime props required");var a,o=tO(),i=eW.default(eF.default(o,eM.default(e)),eS.default(e)),l=eW.default(eF.default(o,eM.default(n)),eS.default(n)),u=eW.default(eF.default(o,eM.default(r)),eS.default(r));try{a=!te.default(i,{start:l,end:u})}catch(e){a=!1}return a}function t3(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,a=eA.default(e,1);return n&&eY.default(n,a)>0||r&&r.every(function(e){return eY.default(e,a)>0})||!1}function t9(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,a=ew.default(e,1);return n&&eY.default(a,n)>0||r&&r.every(function(e){return eY.default(a,e)>0})||!1}function t5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,a=eO.default(e,1);return n&&eG.default(n,a)>0||r&&r.every(function(e){return eG.default(e,a)>0})||!1}function t6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,a=ek.default(e,1);return n&&eG.default(a,n)>0||r&&r.every(function(e){return eG.default(a,e)>0})||!1}function t8(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return eq.default(e,t)>=0});return e$.default(r)}return n?e$.default(n):t}function t7(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return 0>=eq.default(e,t)});return eH.default(r)}return n?eH.default(n):t}function ne(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,a=e.length;r1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil(eR.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}var nr,na=function(e){th(r,e);var n=ty(r);function r(e){td(this,r),tp(tb(a=n.call(this,e)),"renderOptions",function(){var e=a.props.year,t=a.state.yearsList.map(function(t){return ec.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:a.onChange.bind(tb(a),t),"aria-selected":e===t?"true":void 0},e===t?ec.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=a.props.minDate?eR.default(a.props.minDate):null,r=a.props.maxDate?eR.default(a.props.maxDate):null;return r&&a.state.yearsList.find(function(e){return e===r})||t.unshift(ec.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:a.incrementYears},ec.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&a.state.yearsList.find(function(e){return e===n})||t.push(ec.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:a.decrementYears},ec.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t}),tp(tb(a),"onChange",function(e){a.props.onChange(e)}),tp(tb(a),"handleClickOutside",function(){a.props.onCancel()}),tp(tb(a),"shiftYears",function(e){var t=a.state.yearsList.map(function(t){return t+e});a.setState({yearsList:t})}),tp(tb(a),"incrementYears",function(){return a.shiftYears(1)}),tp(tb(a),"decrementYears",function(){return a.shiftYears(-1)});var a,o=e.yearDropdownItemNumber,i=e.scrollableYearDropdown,l=o||(i?10:5);return a.state={yearsList:function(e,t,n,r){for(var a=[],o=0;o<2*t+1;o++){var i=e+t-o,l=!0;n&&(l=eR.default(n)<=i),r&&l&&(l=eR.default(r)>=i),l&&a.push(i)}return a}(a.props.year,l,a.props.minDate,a.props.maxDate)},a.dropdownRef=t.createRef(),a}return tf(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=ef.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ec.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(ec.default.Component),no=ta.default(na),ni=function(e){th(n,e);var t=ty(n);function n(){var e;td(this,n);for(var r=arguments.length,a=Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(n=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(n=!1)),n&&e.dayEl.current.focus({preventScroll:!0})}),tp(tb(e),"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(eT.default(e.props.day),e.props.day):eT.default(e.props.day)}),tp(tb(e),"render",function(){return ec.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents())}),e}return tf(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ec.default.Component),nm=function(e){th(n,e);var t=ty(n);function n(){var e;td(this,n);for(var r=arguments.length,a=Array(r),o=0;o=6,l=!n&&!e.isWeekInMonth(o);if(i||l){if(!e.props.peekNextMonth)break;a=!0}}return t}),tp(tb(e),"onMonthClick",function(t,n){e.handleDayClick(t_(eB.default(e.props.day,n)),t)}),tp(tb(e),"onMonthMouseEnter",function(t){e.handleDayMouseEnter(t_(eB.default(e.props.day,t)))}),tp(tb(e),"handleMonthNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())}),tp(tb(e),"onMonthKeyDown",function(t,n){var r=e.props,a=r.selected,o=r.preSelection,i=r.disabledKeyboardNavigation,l=r.showTwoColumnMonthYearPicker,u=r.showFourColumnMonthYearPicker,s=r.setPreSelection,d=t.key;if("Tab"!==d&&t.preventDefault(),!i){var c=u?nb:l?ng:nv,f=ny[c].verticalNavigationOffset,p=ny[c].grid;switch(d){case"Enter":e.onMonthClick(t,n),s(a);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,ew.default(o,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,eA.default(o,1));break;case"ArrowUp":e.handleMonthNavigation(p[0].includes(n)?n+12-f:n-f,eA.default(o,f));break;case"ArrowDown":e.handleMonthNavigation(p[p.length-1].includes(n)?n-12+f:n+f,ew.default(o,f))}}}),tp(tb(e),"onQuarterClick",function(t,n){e.handleDayClick(tL(eU.default(e.props.day,n)),t)}),tp(tb(e),"onQuarterMouseEnter",function(t){e.handleDayMouseEnter(tL(eU.default(e.props.day,t)))}),tp(tb(e),"handleQuarterNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())}),tp(tb(e),"onQuarterKeyDown",function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,ex.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,eD.default(e.props.preSelection,1))}}),tp(tb(e),"getMonthClassNames",function(t){var n=e.props,r=n.day,a=n.startDate,o=n.endDate,i=n.selected,l=n.minDate,u=n.maxDate,s=n.preSelection,d=n.monthClassName,c=n.excludeDates,f=n.includeDates,p=d?d(eB.default(r,t)):void 0,m=eB.default(r,t);return ef.default("react-datepicker__month-text","react-datepicker__month-".concat(t),p,{"react-datepicker__month-text--disabled":(l||u||c||f)&&tK(m,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(r,t,i),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&eN.default(s)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":tX(a,o,t,r),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})}),tp(tb(e),"getTabIndex",function(t){var n=eN.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),tp(tb(e),"getQuarterTabIndex",function(t){var n=eL.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),tp(tb(e),"getAriaLabel",function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,a=n.disabledDayAriaLabelPrefix,o=n.day,i=eB.default(o,t),l=e.isDisabled(i)||e.isExcluded(i)?void 0===a?"Not available":a:void 0===r?"Choose":r;return"".concat(l," ").concat(tM(i,"MMMM yyyy"))}),tp(tb(e),"getQuarterClassNames",function(t){var n=e.props,r=n.day,a=n.startDate,o=n.endDate,i=n.selected,l=n.minDate,u=n.maxDate,s=n.preSelection;return ef.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(l||u)&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate;return t0(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return tF(e,t)})||o&&!o.some(function(t){return tF(e,t)})||i&&!i(tO(e))||!1}(eU.default(r,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(r,t,i),"react-datepicker__quarter-text--keyboard-selected":eL.default(s)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":tZ(a,o,t,r),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})}),tp(tb(e),"getMonthContent",function(t){var n=e.props,r=n.showFullMonthYearPicker,a=n.renderMonthContent,o=n.locale,i=tq(t,o),l=tH(t,o);return a?a(t,i,l):r?l:i}),tp(tb(e),"getQuarterContent",function(t){var n,r=e.props,a=r.renderQuarterContent,o=(n=r.locale,tM(eU.default(tO(),t),"QQQ",n));return a?a(t,o):o}),tp(tb(e),"renderMonths",function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,r=t.showFourColumnMonthYearPicker,a=t.day,o=t.selected;return ny[r?nb:n?ng:nv].grid.map(function(t,n){return ec.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map(function(t,n){return ec.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,o)},e.getMonthContent(t))}))})}),tp(tb(e),"renderQuarters",function(){var t=e.props,n=t.day,r=t.selected;return ec.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(t,a){return ec.default.createElement("div",{key:a,ref:e.QUARTER_REFS[a],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))}))}),tp(tb(e),"getClassNames",function(){var t=e.props,n=t.selectingDate,r=t.selectsStart,a=t.selectsEnd,o=t.showMonthYearPicker,i=t.showQuarterYearPicker;return ef.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||a)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":i})}),e}return tf(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,a=e.ariaLabelPrefix;return ec.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(void 0===a?"month ":a," ").concat(tM(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ec.default.Component),nx=function(e){th(n,e);var t=ty(n);function n(){var e;td(this,n);for(var r=arguments.length,a=Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return nA.some(function(t){return e.indexOf(t)>=0})})(e.target)&&r.props.onDropdownFocus()}),tp(tb(r),"getDateInView",function(){var e=r.props,t=e.preSelection,n=e.selected,a=e.openToDate,o=t8(r.props),i=t7(r.props),l=tO();return a||n||t||(o&&e7.default(l,o)?o:i&&e8.default(l,i)?i:l)}),tp(tb(r),"increaseMonth",function(){r.setState(function(e){var t=e.date;return{date:ew.default(t,1)}},function(){return r.handleMonthChange(r.state.date)})}),tp(tb(r),"decreaseMonth",function(){r.setState(function(e){var t=e.date;return{date:eA.default(t,1)}},function(){return r.handleMonthChange(r.state.date)})}),tp(tb(r),"handleDayClick",function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)}),tp(tb(r),"handleDayMouseEnter",function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)}),tp(tb(r),"handleMonthMouseLeave",function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()}),tp(tb(r),"handleYearMouseEnter",function(e,t){r.setState({selectingDate:eV.default(tO(),t)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(e,t)}),tp(tb(r),"handleYearMouseLeave",function(e,t){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(e,t)}),tp(tb(r),"handleYearChange",function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)}),tp(tb(r),"handleMonthChange",function(e){r.handleCustomMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)}),tp(tb(r),"handleCustomMonthChange",function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0}))}),tp(tb(r),"handleMonthYearChange",function(e){r.handleYearChange(e),r.handleMonthChange(e)}),tp(tb(r),"changeYear",function(e){r.setState(function(t){var n=t.date;return{date:eV.default(n,e)}},function(){return r.handleYearChange(r.state.date)})}),tp(tb(r),"changeMonth",function(e){r.setState(function(t){var n=t.date;return{date:eB.default(n,e)}},function(){return r.handleMonthChange(r.state.date)})}),tp(tb(r),"changeMonthYear",function(e){r.setState(function(t){var n=t.date;return{date:eV.default(eB.default(n,eN.default(e)),eR.default(e))}},function(){return r.handleMonthYearChange(r.state.date)})}),tp(tb(r),"header",function(){var e=tT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(ec.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map(function(t){var n=eb.default(e,t),a=r.formatWeekday(n,r.props.locale),o=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ec.default.createElement("div",{key:t,className:ef.default("react-datepicker__day-name",o)},a)}))}),tp(tb(r),"formatWeekday",function(e,t){return r.props.formatWeekDay?(0,r.props.formatWeekDay)(tM(e,"EEEE",t)):r.props.useWeekdaysShort?tM(e,"EEE",t):tM(e,"EEEEEE",t)}),tp(tb(r),"decreaseYear",function(){r.setState(function(e){var t=e.date;return{date:eO.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),tp(tb(r),"clearSelectingDate",function(){r.setState({selectingDate:null})}),tp(tb(r),"renderPreviousButton",function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=t5(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,a=void 0===r?12:r,o=nn(tN(eO.default(e,a)),a).endPeriod,i=n&&eR.default(n);return i&&i>o||!1}(r.state.date,r.props);break;default:e=t3(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var a=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,i=o.previousMonthButtonLabel,l=o.previousYearButtonLabel,u=r.props,s=u.previousMonthAriaLabel,d=u.previousYearAriaLabel;return ec.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":a?void 0===d?"string"==typeof l?l:"Previous Year":d:void 0===s?"string"==typeof i?i:"Previous Month":s},ec.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous"},a?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}}),tp(tb(r),"increaseYear",function(){r.setState(function(e){var t=e.date;return{date:ek.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),tp(tb(r),"renderNextButton",function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=t6(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,a=void 0===r?12:r,o=nn(ek.default(e,a),a).startPeriod,i=n&&eR.default(n);return i&&i0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ec.default.createElement("div",{className:t.join(" ")},tM(e,r.props.dateFormat,r.props.locale))}),tp(tb(r),"renderYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ec.default.createElement(ni,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:eR.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),tp(tb(r),"renderMonthDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ec.default.createElement(ns,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:eN.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})}),tp(tb(r),"renderMonthYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ec.default.createElement(nf,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})}),tp(tb(r),"handleTodayButtonClick",function(e){r.props.onSelect(tR(),e),r.props.setPreSelection&&r.props.setPreSelection(tR())}),tp(tb(r),"renderTodayButton",function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ec.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)}),tp(tb(r),"renderDefaultHeader",function(e){var t=e.monthDate,n=e.i;return ec.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ec.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ec.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))}),tp(tb(r),"renderCustomHeader",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var a=t3(r.state.date,r.props),o=t9(r.state.date,r.props),i=t5(r.state.date,r.props),l=t6(r.state.date,r.props),u=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ec.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(tu(tu({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:a,nextMonthButtonDisabled:o,prevYearButtonDisabled:i,nextYearButtonDisabled:l})),u&&ec.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))}),tp(tb(r),"renderYearHeader",function(){var e=r.state.date,t=r.props,n=t.showYearPicker,a=nn(e,t.yearItemNumber),o=a.startPeriod,i=a.endPeriod;return ec.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(o," - ").concat(i):eR.default(e))}),tp(tb(r),"renderHeader",function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}}),tp(tb(r),"renderMonths",function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=eA.default(r.state.date,t),a=0;a0;e.push(ec.default.createElement("div",{key:l,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:i,i:a}),ec.default.createElement(nw,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:i,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:a,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:u,monthShowsDuplicateDaysStart:s})))}return e}}),tp(tb(r),"renderYears",function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ec.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ec.default.createElement(nk,tm({onDayClick:r.handleDayClick,selectingDate:r.state.selectingDate,clearSelectingDate:r.clearSelectingDate,date:r.state.date},r.props,{onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave}))):void 0}),tp(tb(r),"renderTimeSection",function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ec.default.createElement(nx,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})}),tp(tb(r),"renderInputTimeSection",function(){var e=new Date(r.props.selected),t=tC(e)&&r.props.selected?"".concat(nt(e.getHours()),":").concat(nt(e.getMinutes())):"";if(r.props.showTimeInput)return ec.default.createElement(nP,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})}),tp(tb(r),"renderAriaLiveRegion",function(){var e,t=nn(r.state.date,r.props.yearItemNumber),n=t.startPeriod,a=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(a):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?eR.default(r.state.date):"".concat(tH(eN.default(r.state.date),r.props.locale)," ").concat(eR.default(r.state.date)),ec.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)}),tp(tb(r),"renderChildren",function(){if(r.props.children)return ec.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)}),r.containerRef=ec.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return tf(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||tW(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!tW(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!tI(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return n&&t.handleCustomMonthChange(t.state.date)})}}},{key:"render",value:function(){var e=this.props.container||nE;return ec.default.createElement("div",{ref:this.containerRef},ec.default.createElement(e,{className:ef.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(ec.default.Component),nO=function(e){th(n,e);var t=ty(n);function n(e){var r;return td(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return tf(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return to.default.createPortal(this.props.children,this.el)}}]),n}(ec.default.Component),nC=function(e){return!e.disabled&&-1!==e.tabIndex},nM=function(e){th(n,e);var t=ty(n);function n(e){var r;return td(this,n),tp(tb(r=t.call(this,e)),"getTabChildren",function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(nC)}),tp(tb(r),"handleFocusStart",function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()}),tp(tb(r),"handleFocusEnd",function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()}),r.tabLoopRef=ec.default.createRef(),r}return tf(n,[{key:"render",value:function(){return this.props.enableTabLoop?ec.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ec.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ec.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ec.default.Component),nS=function(e){th(n,e);var t=ty(n);function n(){return td(this,n),t.apply(this,arguments)}return tf(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,a=t.hidePopper,o=t.popperComponent,i=t.popperModifiers,l=t.popperPlacement,u=t.popperProps,s=t.targetComponent,d=t.enableTabLoop,c=t.popperOnKeyDown,f=t.portalId,p=t.portalHost;if(!a){var m=ef.default("react-datepicker-popper",n);e=ec.default.createElement(eu.Popper,tm({modifiers:i,placement:l},u),function(e){var t=e.ref,n=e.style,r=e.placement,a=e.arrowProps;return ec.default.createElement(nM,{enableTabLoop:d},ec.default.createElement("div",{ref:t,style:n,className:m,"data-placement":r,onKeyDown:c},ec.default.cloneElement(o,{arrowProps:a})))})}this.props.popperContainer&&(e=ec.default.createElement(this.props.popperContainer,{},e)),f&&!a&&(e=ec.default.createElement(nO,{portalId:f,portalHost:p},e));var h=ef.default("react-datepicker-wrapper",r);return ec.default.createElement(eu.Manager,{className:"react-datepicker-manager"},ec.default.createElement(eu.Reference,null,function(e){var t=e.ref;return ec.default.createElement("div",{ref:t,className:h},s)}),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ec.default.Component),nj="react-datepicker-ignore-onclickoutside",nT=ta.default(nD),n_="Date input not valid.",nN=function(e){th(n,e);var t=ty(n);function n(e){var r;return td(this,n),tp(tb(r=t.call(this,e)),"getPreSelection",function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:tO()}),tp(tb(r),"calcInitialState",function(){var e,t=r.getPreSelection(),n=t8(r.props),a=t7(r.props),o=n&&e7.default(t,eK.default(n))?n:a&&e8.default(t,e0.default(a))?a:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:o,highlightDates:ne(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),tp(tb(r),"clearPreventFocusTimeout",function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)}),tp(tb(r),"setFocus",function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})}),tp(tb(r),"setBlur",function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()}),tp(tb(r),"setOpen",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:nR},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){t||r.setBlur(),r.setState({inputValue:null})})})}),tp(tb(r),"inputOk",function(){return ep.default(r.state.preSelection)}),tp(tb(r),"isCalendarOpen",function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open}),tp(tb(r),"handleFocus",function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})}),tp(tb(r),"cancelFocusInput",function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null}),tp(tb(r),"deferFocusInput",function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)}),tp(tb(r),"handleDropdownFocus",function(){r.cancelFocusInput()}),tp(tb(r),"handleBlur",function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})}),tp(tb(r),"handleCalendarClickOutside",function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()}),tp(tb(r),"handleChange",function(){for(var e=arguments.length,t=Array(e),n=0;n0&&(d=tn.default(o,i.slice(0,o.length),new Date)),tC(d)||(d=new Date(o))),tC(d)&&f?d:null));r.props.showTimeSelectOnly&&r.props.selected&&!tW(p,r.props.selected)&&(p=null==p?ti.default(r.props.selected,{hours:eS.default(r.props.selected),minutes:eM.default(r.props.selected),seconds:eC.default(r.props.selected)}):ti.default(r.props.selected,{hours:eS.default(p),minutes:eM.default(p),seconds:eC.default(p)})),!p&&a.target.value||r.setSelected(p,a,!0)}}),tp(tb(r),"handleSelect",function(e,t,n){if(r.setState({preventFocus:!0},function(){return r.preventFocusTimeout=setTimeout(function(){return r.setState({preventFocus:!1})},50),r.preventFocusTimeout}),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var a=r.props,o=a.startDate,i=a.endDate;!o||i||e7.default(e,o)||r.setOpen(!1)}}),tp(tb(r),"setSelected",function(e,t,n,a){var o=e;if(r.props.showYearPicker){if(null!==o&&tJ(eR.default(o),r.props))return}else if(r.props.showMonthYearPicker){if(null!==o&&tK(o,r.props))return}else if(null!==o&&tY(o,r.props))return;var i=r.props,l=i.onChange,u=i.selectsRange,s=i.startDate,d=i.endDate;if(!tB(r.props.selected,o)||r.props.allowSameDay||u){if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=tj(o,{hour:eS.default(r.props.selected),minute:eM.default(r.props.selected),second:eC.default(r.props.selected)})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:a})),u){var c=s&&!d,f=s&&d;s||d?c&&l(e7.default(o,s)?[o,null]:[s,o],t):l([o,null],t),f&&l([o,null],t)}else l(o,t)}n||(r.props.onSelect(o,t),r.setState({inputValue:null}))}),tp(tb(r),"setPreSelection",function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,a=!0;if(e){var o=eK.default(e);if(t&&n)a=tU(e,r.props.minDate,r.props.maxDate);else if(t){var i=eK.default(r.props.minDate);a=e8.default(e,i)||tB(o,i)}else if(n){var l=e0.default(r.props.maxDate);a=e7.default(e,l)||tB(o,l)}}a&&r.setState({preSelection:e})}),tp(tb(r),"handleTimeChange",function(e){var t=tj(r.props.selected?r.props.selected:r.getPreSelection(),{hour:eS.default(e),minute:eM.default(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}),tp(tb(r),"onInputClick",function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()}),tp(tb(r),"onInputKeyDown",function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var a=tO(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===nR?(r.handleSelect(a,e),r.props.shouldCloseOnSelect||r.setPreSelection(a)):r.setOpen(!1)):"Escape"===t?(e.preventDefault(),r.setOpen(!1)):"Tab"===t&&e.shiftKey&&r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:n_})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()}),tp(tb(r),"onPortalKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))}),tp(tb(r),"onDayKeyDown",function(e){r.props.onKeyDown(e);var t,n=e.key,a=tO(r.state.preSelection);if("Enter"===n)e.preventDefault(),r.handleSelect(a,e),r.props.shouldCloseOnSelect||r.setPreSelection(a);else if("Escape"===n)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:n_});else if(!r.props.disabledKeyboardNavigation){switch(n){case"ArrowLeft":t=eP.default(a,1);break;case"ArrowRight":t=eb.default(a,1);break;case"ArrowUp":t=eE.default(a,1);break;case"ArrowDown":t=ey.default(a,1);break;case"PageUp":t=eA.default(a,1);break;case"PageDown":t=ew.default(a,1);break;case"Home":t=eO.default(a,1);break;case"End":t=ek.default(a,1)}if(!t)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:n_}));if(e.preventDefault(),r.setState({lastPreSelectChange:nR}),r.props.adjustDateOnChange&&r.setSelected(t),r.setPreSelection(t),r.props.inline){var o=eN.default(a),i=eN.default(t),l=eR.default(a),u=eR.default(t);o!==i||l!==u?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}}),tp(tb(r),"onPopperKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))}),tp(tb(r),"onClearClick",function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})}),tp(tb(r),"clear",function(){r.onClearClick()}),tp(tb(r),"onScroll",function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)}),tp(tb(r),"renderCalendar",function(){return r.props.inline||r.isCalendarOpen()?ec.default.createElement(nT,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:nj,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showDateSelect:r.props.showDateSelect,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,renderMonthContent:r.props.renderMonthContent,renderQuarterContent:r.props.renderQuarterContent,renderYearContent:r.props.renderYearContent,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,onYearMouseEnter:r.props.onYearMouseEnter,onYearMouseLeave:r.props.onYearMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null}),tp(tb(r),"renderAriaLiveRegion",function(){var e,t=r.props,n=t.dateFormat,a=t.locale,o=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(tS(r.props.startDate,{dateFormat:o,locale:a}),". ").concat(r.props.endDate?"End date: "+tS(r.props.endDate,{dateFormat:o,locale:a}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(tS(r.props.selected,{dateFormat:n,locale:a})):r.props.showYearPicker?"Selected year: ".concat(tS(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?"Selected month: ".concat(tS(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(tS(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):"Selected date: ".concat(tS(r.props.selected,{dateFormat:o,locale:a})),ec.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)}),tp(tb(r),"renderDateInput",function(){var e,t=ef.default(r.props.className,tp({},nj,r.state.open)),n=r.props.customInput||ec.default.createElement("input",{type:"text"}),a=r.props.customInputRef||"ref",o="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=tS(e,n),a=t?tS(t,n):"";return"".concat(r," - ").concat(a)}(r.props.startDate,r.props.endDate,r.props):tS(r.props.selected,r.props);return ec.default.cloneElement(n,(tp(e={},a,function(e){r.input=e}),tp(e,"value",o),tp(e,"onBlur",r.handleBlur),tp(e,"onChange",r.handleChange),tp(e,"onClick",r.onInputClick),tp(e,"onFocus",r.handleFocus),tp(e,"onKeyDown",r.onInputKeyDown),tp(e,"id",r.props.id),tp(e,"name",r.props.name),tp(e,"form",r.props.form),tp(e,"autoFocus",r.props.autoFocus),tp(e,"placeholder",r.props.placeholderText),tp(e,"disabled",r.props.disabled),tp(e,"autoComplete",r.props.autoComplete),tp(e,"className",ef.default(n.props.className,t)),tp(e,"title",r.props.title),tp(e,"readOnly",r.props.readOnly),tp(e,"required",r.props.required),tp(e,"tabIndex",r.props.tabIndex),tp(e,"aria-describedby",r.props.ariaDescribedBy),tp(e,"aria-invalid",r.props.ariaInvalid),tp(e,"aria-labelledby",r.props.ariaLabelledBy),tp(e,"aria-required",r.props.ariaRequired),e))}),tp(tb(r),"renderClearButton",function(){var e=r.props,t=e.isClearable,n=e.selected,a=e.startDate,o=e.endDate,i=e.clearButtonTitle,l=e.clearButtonClassName,u=e.ariaLabelClose;return t&&(null!=n||null!=a||null!=o)?ec.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(void 0===l?"":l).trim(),"aria-label":void 0===u?"Close":u,onClick:r.onClearClick,title:i,tabIndex:-1}):null}),r.state=r.calcInitialState(),r}return tf(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?eN.default(n)!==eN.default(r)||eR.default(n)!==eR.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ne(this.props.highlightDates)}),t.focused||tB(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props.showIcon;return ec.default.createElement("div",{className:"react-datepicker__input-container".concat(e?" react-datepicker__view-calendar-icon":"")},e&&ec.default.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},ec.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ec.default.createElement(nM,{enableTabLoop:this.props.enableTabLoop},ec.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=ec.default.createElement(nO,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ec.default.createElement("div",null,this.renderInputContainer(),t)}return ec.default.createElement(nS,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(ec.default.Component),nL="input",nR="navigate";e.CalendarContainer=nE,e.default=nN,e.getDefaultLocale=tV,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(96540),n(5556),n(32485),n(15290),n(86828),n(30978),n(92890),n(21524),n(92998),n(82238),n(2118),n(29852),n(49317),n(979),n(33337),n(44327),n(12657),n(49326),n(9251),n(12563),n(68089),n(17512),n(50274),n(20863),n(32044),n(34158),n(72379),n(68519),n(41591),n(67375),n(67901),n(61328),n(56090),n(18895),n(10838),n(67440),n(40063),n(60667),n(82002),n(31127),n(27827),n(20543),n(66757),n(17054),n(66212),n(36462),n(19312),n(53039),n(25010),n(81810),n(2702),n(24125),n(60992),n(79672),n(27813),n(13652),n(10123),n(36657),n(1806),n(73908),n(40961),n(32430),n(94074))},97700:(e,t,n)=>{"use strict";var r,a;Object.defineProperty(t,"__esModule",{value:!0}),t.computeLineInformation=t.DiffMethod=t.DiffType=void 0;let o=n(4700);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"}(r=t.DiffType||(t.DiffType={})),function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson"}(a=t.DiffMethod||(t.DiffMethod={}));let i=e=>{if(""===e)return[];let t=e.replace(/\n$/,"").split("\n");return t},l=(e,t,n=a.CHARS)=>{let i=o[n](e,t),l={left:[],right:[]};return i.forEach(({added:e,removed:t,value:n})=>{let a={};return e&&(a.type=r.ADDED,a.value=n,l.right.push(a)),t&&(a.type=r.REMOVED,a.value=n,l.left.push(a)),t||e||(a.type=r.DEFAULT,a.value=n,l.right.push(a),l.left.push(a)),a}),l};t.computeLineInformation=(e,t,n=!1,u=a.CHARS,s=0)=>{let d=[];d="string"==typeof e&&"string"==typeof t?o.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):o.diffJson(e,t);let c=s,f=s,p=[],m=0,h=[],g=[],v=(e,t,a,o,s)=>{let p=i(e);return p.map((e,p)=>{let b={},y={};if(!g.includes(`${t}-${p}`)&&(!s||0===p)){if(a||o){let a=!0;if(o){f+=1,b.lineNumber=f,b.type=r.REMOVED,b.value=e||" ";let o=d[t+1];if(o&&o.added){let r=i(o.value)[p];if(r){let o=v(r,t,!0,!1,!0),{value:i,lineNumber:s,type:d}=o[0].right;if(g.push(`${t+1}-${p}`),y.lineNumber=s,b.value===i)a=!1,y.type=0,b.type=0,y.value=i;else if(y.type=d,n)y.value=i;else{let t=l(e,i,u);y.value=t.right,b.value=t.left}}}}else c+=1,y.lineNumber=c,y.type=r.ADDED,y.value=e;!a||s||h.includes(m)||h.push(m)}else f+=1,c+=1,b.lineNumber=f,b.type=r.DEFAULT,b.value=e,y.lineNumber=c,y.type=r.DEFAULT,y.value=e;return s||(m+=1),{right:y,left:b}}}).filter(Boolean)};return d.forEach(({added:e,removed:t,value:n},r)=>{p=[...p,...v(n,r,e,t)]}),{lineInformation:p,diffLines:h}}},94627:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffMethod=t.LineNumberPrefix=void 0;let a=n(96540),o=n(5556),i=n(32485),l=n(97700);Object.defineProperty(t,"DiffMethod",{enumerable:!0,get:function(){return l.DiffMethod}});let u=n(84461),s=n(41811),d=s.default||s;!function(e){e.LEFT="L",e.RIGHT="R"}(r=t.LineNumberPrefix||(t.LineNumberPrefix={}));class c extends a.Component{constructor(e){super(e),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0),this.onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=d(u.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,n)=>a.createElement("span",{key:n,className:(0,i.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===l.DiffType.ADDED,[this.styles.wordRemoved]:e.type===l.DiffType.REMOVED})},t?t(e.value):e.value)),this.renderLine=(e,t,n,r,o,u)=>{let s;let d=`${n}-${e}`,c=`${u}-${o}`,f=this.props.highlightLines.includes(d)||this.props.highlightLines.includes(c),p=t===l.DiffType.ADDED,m=t===l.DiffType.REMOVED,h=t===l.DiffType.CHANGED;return s=Array.isArray(r)?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r,a.createElement(a.Fragment,null,!this.props.hideLineNumbers&&a.createElement("td",{onClick:e&&this.onLineNumberClickProxy(d),className:(0,i.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f})},a.createElement("pre",{className:this.styles.lineNumber},e)),!this.props.splitView&&!this.props.hideLineNumbers&&a.createElement("td",{onClick:o&&this.onLineNumberClickProxy(c),className:(0,i.default)(this.styles.gutter,{[this.styles.emptyGutter]:!o,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f})},a.createElement("pre",{className:this.styles.lineNumber},o)),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:o,additionalPrefix:u,styles:this.styles}):null,a.createElement("td",{className:(0,i.default)(this.styles.marker,{[this.styles.emptyLine]:!s,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f})},a.createElement("pre",null,p&&"+",m&&"-")),a.createElement("td",{className:(0,i.default)(this.styles.content,{[this.styles.emptyLine]:!s,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f})},a.createElement("pre",{className:this.styles.contentText},s)))},this.renderSplitView=({left:e,right:t},n)=>a.createElement("tr",{key:n,className:this.styles.line},this.renderLine(e.lineNumber,e.type,r.LEFT,e.value),this.renderLine(t.lineNumber,t.type,r.RIGHT,t.value)),this.renderInlineView=({left:e,right:t},n)=>{let o;return e.type===l.DiffType.REMOVED&&t.type===l.DiffType.ADDED?a.createElement(a.Fragment,{key:n},a.createElement("tr",{className:this.styles.line},this.renderLine(e.lineNumber,e.type,r.LEFT,e.value,null)),a.createElement("tr",{className:this.styles.line},this.renderLine(null,t.type,r.RIGHT,t.value,t.lineNumber))):(e.type===l.DiffType.REMOVED&&(o=this.renderLine(e.lineNumber,e.type,r.LEFT,e.value,null)),e.type===l.DiffType.DEFAULT&&(o=this.renderLine(e.lineNumber,e.type,r.LEFT,e.value,t.lineNumber,r.RIGHT)),t.type===l.DiffType.ADDED&&(o=this.renderLine(null,t.type,r.RIGHT,t.value,t.lineNumber)),a.createElement("tr",{key:n,className:this.styles.line},o))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:o,splitView:l}=this.props,u=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):a.createElement("pre",{className:this.styles.codeFoldContent},"Expand ",e," lines ..."),s=a.createElement("td",null,a.createElement("a",{onClick:this.onBlockClickProxy(t),tabIndex:0},u)),d=!l&&!o;return a.createElement("tr",{key:`${n}-${r}`,className:this.styles.codeFold},!o&&a.createElement("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?a.createElement("td",{className:this.styles.codeFoldGutter}):null,a.createElement("td",{className:(0,i.default)({[this.styles.codeFoldGutter]:d})}),d?a.createElement(a.Fragment,null,a.createElement("td",null),s):a.createElement(a.Fragment,null,s,this.props.renderGutter?a.createElement("td",null):null,a.createElement("td",null)),a.createElement("td",null),a.createElement("td",null))},this.renderDiff=()=>{let{oldValue:e,newValue:t,splitView:n,disableWordDiff:r,compareMethod:o,linesOffset:i}=this.props,{lineInformation:u,diffLines:s}=(0,l.computeLineInformation)(e,t,r,o,i),d=this.props.extraLinesSurroundingDiff<0?0:this.props.extraLinesSurroundingDiff,c=[];return u.map((e,t)=>{let r=s[0],o=r-t;if(this.props.showDiffOnly&&(o===-d&&(c=[],s.shift()),e.left.type===l.DiffType.DEFAULT&&(o>d||void 0===r)&&!this.state.expandedBlocks.includes(r))){if(c.push(t+1),t===u.length-1&&c.length>1)return this.renderSkippedLineIndicator(c.length,r,e.left.lineNumber,e.right.lineNumber);if(t0){let{length:n}=c;return c=[],a.createElement(a.Fragment,{key:t},this.renderSkippedLineIndicator(n,r,e.left.lineNumber,e.right.lineNumber),i)}return i})},this.render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:o,splitView:u,hideLineNumbers:s}=this.props;if(this.props.compareMethod!==l.DiffMethod.JSON&&("string"!=typeof e||"string"!=typeof t))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,n);let d=this.renderDiff(),c=s?2:3,f=this.props.renderGutter?1:0,p=(r||o)&&a.createElement("tr",null,a.createElement("td",{colSpan:(u?c:s?2:4)+f,className:this.styles.titleBlock},a.createElement("pre",{className:this.styles.contentText},r)),u&&a.createElement("td",{colSpan:c+f,className:this.styles.titleBlock},a.createElement("pre",{className:this.styles.contentText},o)));return a.createElement("table",{className:(0,i.default)(this.styles.diffContainer,{[this.styles.splitView]:u})},a.createElement("tbody",null,p,d))},this.state={expandedBlocks:[]}}}c.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:l.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0},c.propTypes={oldValue:o.any.isRequired,newValue:o.any.isRequired,splitView:o.bool,disableWordDiff:o.bool,compareMethod:o.oneOf(Object.values(l.DiffMethod)),renderContent:o.func,renderGutter:o.func,onLineNumberClick:o.func,extraLinesSurroundingDiff:o.number,styles:o.object,hideLineNumbers:o.bool,showDiffOnly:o.bool,highlightLines:o.arrayOf(o.string),leftTitle:o.oneOfType([o.string,o.element]),rightTitle:o.oneOfType([o.string,o.element]),linesOffset:o.number},t.default=c},84461:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};Object.defineProperty(t,"__esModule",{value:!0});let a=n(32196);t.default=(e,t=!1)=>{let{variables:n={}}=e,o=r(e,["variables"]),i={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},n.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},n.dark||{})},l=t?i.dark:i.light,u=(0,a.css)({width:"100%",label:"content"}),s=(0,a.css)({[`.${u}`]:{width:"50%"},label:"split-view"}),d=(0,a.css)({width:"100%",background:l.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),c=(0,a.css)({color:l.codeFoldContentColor,label:"code-fold-content"}),f=(0,a.css)({color:l.diffViewerColor,label:"content-text"}),p=(0,a.css)({background:l.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${l.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${l.diffViewerTitleBorderColor}`},[`.${f}`]:{color:l.diffViewerTitleColor}}),m=(0,a.css)({color:l.gutterColor,label:"line-number"}),h=(0,a.css)({background:l.removedBackground,color:l.removedColor,pre:{color:l.removedColor},[`.${m}`]:{color:l.removedGutterColor},label:"diff-removed"}),g=(0,a.css)({background:l.addedBackground,color:l.addedColor,pre:{color:l.addedColor},[`.${m}`]:{color:l.addedGutterColor},label:"diff-added"}),v=(0,a.css)({background:l.changedBackground,[`.${m}`]:{color:l.gutterColor},label:"diff-changed"}),b=(0,a.css)({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),y=(0,a.css)({background:l.wordAddedBackground,label:"word-added"}),w=(0,a.css)({background:l.wordRemovedBackground,label:"word-removed"}),x=(0,a.css)({backgroundColor:l.codeFoldGutterBackground,label:"code-fold-gutter"}),k=(0,a.css)({backgroundColor:l.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),P=(0,a.css)({backgroundColor:l.emptyLineBackground,label:"empty-line"}),E=(0,a.css)({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${g}`]:{pre:{color:l.addedColor}},[`&.${h}`]:{pre:{color:l.removedColor}}}),A=(0,a.css)({background:l.highlightBackground,label:"highlighted-line",[`.${y}, .${w}`]:{backgroundColor:"initial"}}),D=(0,a.css)({label:"highlighted-gutter"}),O=(0,a.css)({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:l.gutterBackground,"&:hover":{cursor:"pointer",background:l.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${g}`]:{background:l.addedGutterBackground},[`&.${h}`]:{background:l.removedGutterBackground},[`&.${D}`]:{background:l.highlightGutterBackground,"&:hover":{background:l.highlightGutterBackground}}}),C=(0,a.css)({"&:hover":{background:l.gutterBackground,cursor:"initial"},label:"empty-gutter"}),M=(0,a.css)({verticalAlign:"baseline",label:"line"}),S={diffContainer:d,diffRemoved:h,diffAdded:g,diffChanged:v,splitView:s,marker:E,highlightedGutter:D,highlightedLine:A,gutter:O,line:M,wordDiff:b,wordAdded:y,wordRemoved:w,codeFoldGutter:x,codeFold:k,emptyGutter:C,emptyLine:P,lineNumber:m,contentText:f,content:u,codeFoldContent:c,titleBlock:p},j=Object.keys(o).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:(0,a.css)(o[t])}),{});return Object.keys(S).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:j[t]?(0,a.cx)(S[t],j[t]):S[t]}),{})}},85589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=function(e){for(var t,n=[],r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=function(e){for(var t=[],n=0;n"):r.removed&&t.push(""),t.push(function(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")}},17999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=function(e,t,n){return r.diff(e,t,n)},t.arrayDiff=void 0;var r=new(function(e){return e&&e.__esModule?e:{default:e}}(n(85969))).default;t.arrayDiff=r,r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}},85969:(e,t)=>{"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var a=this;function o(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var i=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,u=1,s=i+l;n.maxEditLength&&(s=Math.min(s,n.maxEditLength));var d=[{newPos:-1,components:[]}],c=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1>=i&&c+1>=l)return o([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var r=void 0,s=d[n-1],c=d[n+1],f=(c?c.newPos:0)-n;s&&(d[n-1]=void 0);var p=s&&s.newPos+1=i&&f+1>=l)return o(function(e,t,n,r,a){for(var o=0,i=t.length,l=0,u=0;oe.length?n:e}),s.value=e.join(c)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(u+=s.count)}}var f=t[i-1];return i>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[i-2].value+=f.value,t.pop()),t}(a,r.components,t,e,a.useLongestToken));d[n]=r}u++}if(r)!function e(){setTimeout(function(){if(u>s)return r();f()||e()},0)}();else for(;u<=s;){var p=f();if(p)return p}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var a=t.length,o=n.length,i=e.newPos,l=i-r,u=0;i+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(function(e){return e&&e.__esModule?e:{default:e}}(n(85969))).default;t.characterDiff=r},98705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=function(e,t,n){return r.diff(e,t,n)},t.cssDiff=void 0;var r=new(function(e){return e&&e.__esModule?e:{default:e}}(n(85969))).default;t.cssDiff=r,r.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},53258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=function(e,t,n){return l.diff(e,t,n)},t.canonicalize=u,t.jsonDiff=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(85969)),a=n(93578);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=Object.prototype.toString,l=new r.default;function u(e,t,n,r,a){for(t=t||[],n=n||[],r&&(e=r(a,e)),l=0;l{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=function(e,t,n){return o.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var r=(0,a.generateOptions)(n,{ignoreWhitespace:!0});return o.diff(e,t,r)},t.lineDiff=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(85969)),a=n(36571),o=new r.default;t.lineDiff=o,o.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=function(e,t,n){return r.diff(e,t,n)},t.sentenceDiff=void 0;var r=new(function(e){return e&&e.__esModule?e:{default:e}}(n(85969))).default;t.sentenceDiff=r,r.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},45940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=function(e,t,n){return n=(0,a.generateOptions)(n,{ignoreWhitespace:!0}),l.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return l.diff(e,t,n)},t.wordDiff=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(85969)),a=n(36571),o=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,i=/\S/,l=new r.default;t.wordDiff=l,l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!i.test(e)&&!i.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return a.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return o.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return o.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return l.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return u.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return s.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return s.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return d.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return c.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return c.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return f.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return p.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return m.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return m.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return m.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return h.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return g.convertChangesToXML}});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(85969)),a=n(75997),o=n(45940),i=n(93578),l=n(89981),u=n(98705),s=n(53258),d=n(17999),c=n(46489),f=n(70290),p=n(60697),m=n(13165),h=n(85589),g=n(51181)},46489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=o,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,r.parsePatch)(e));var n=0;!function r(){var a=e[n++];if(!a)return t.complete();t.loadFile(a,function(e,n){if(e)return t.complete(e);var i=o(n,a,t);t.patched(a,i,function(e){if(e)return t.complete(e);r()})})}()};var r=n(70290),a=function(e){return e&&e.__esModule?e:{default:e}}(n(28061));function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw Error("applyPatch only works with a single input.");t=t[0]}for(var o,i,l=e.split(/\r\n|[\n\v\f\r\x85]/),u=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,d=n.compareLine||function(e,t,n,r){return t===r},c=0,f=n.fuzzFactor||0,p=0,m=0,h=0;h0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===a||"-"===a){if(!d(t+1,l[t],a,o)&&++c>f)return!1;t++}}return!0}(g,y+b)){g.offset=m+=b;break}if(void 0===b)return!1;p=g.offset+g.oldStart+g.oldLines}for(var x=0,k=0;k0?D[0]:" ",C=D.length>0?D.substr(1):D,M=P.linedelimiters[A];if(" "===O)E++;else if("-"===O)l.splice(E,1),u.splice(E,1);else if("+"===O)l.splice(E,0,C),u.splice(E,0,M),E++;else if("\\"===O){var S=P.lines[A-1]?P.lines[A-1][0]:null;"+"===S?o=!0:"-"===S&&(i=!0)}}}if(o)for(;!l[l.length-1];)l.pop(),u.pop();else i&&(l.push(""),u.push("\n"));for(var j=0;j{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=i,t.formatPatch=l,t.createTwoFilesPatch=u,t.createPatch=function(e,t,n,r,a,o){return u(e,e,t,n,r,a,o)};var r=n(93578);function a(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?v(i.lines.slice(-u.context)):[]).length,f-=p.length)}(l=p).push.apply(l,a(r.map(function(e){return(t.added?"+":"-")+e}))),t.added?h+=r.length:m+=r.length}else{if(c){if(r.length<=2*u.context&&e=s.length-2&&r.length<=u.context){var x=/\n$/.test(n),k=/\n$/.test(o),P=0==r.length&&p.length>w.oldLines;!x&&P&&n.length>0&&p.splice(w.oldLines,0,"\\ No newline at end of file"),(x||P)&&k||p.push("\\ No newline at end of file")}d.push(w),c=0,f=0,p=[]}}m+=r.length,h+=r.length}}(g);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:l,hunks:d}}function v(e){return e.map(function(e){return" "+e})}}function l(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":" "+e.newHeader));for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=u,t.merge=function(e,t,n){e=s(e,n),t=s(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(d(e)?d(t)?(r.oldFileName=c(r,e.oldFileName,t.oldFileName),r.newFileName=c(r,e.newFileName,t.newFileName),r.oldHeader=c(r,e.oldHeader,t.oldHeader),r.newHeader=c(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var a=0,l=0,x=0,k=0;ae.length)&&(t=e.length);for(var n=0,r=Array(t);n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],o=0;function i(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var r="---"===t[1]?"old":"new",a=t[2].split(" ",2),i=a[0].replace(/\\\\/g,"\\");/^".*"$/.test(i)&&(i=i.substr(1,i.length-2)),e[r+"FileName"]=i,e[r+"Header"]=(a[1]||"").trim(),o++}}for(;o{"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=!0,a=!1,o=!1,i=1;return function l(){if(r&&!o){if(a?i++:r=!1,e+i<=n)return i;o=!0}if(!a)return(o||(r=!0),t<=e-i)?-i++:(a=!0,l())}}},36571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},22551:(e,t,n)=>{"use strict";/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,a,o,i,l,u,s=n(96540),d=n(69982);function c(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n