@spscommerce/ds-react 8.27.1 → 8.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +249 -247
- package/lib/index.umd.cjs +21 -21
- package/package.json +12 -12
package/lib/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(_,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@spscommerce/utils"),require("moment-timezone"),require("@spscommerce/ds-shared"),require("react-dom"),require("@spscommerce/ds-colors"),require("@sps-woodland/tabs"),require("@react-stately/collections"),require("@sps-woodland/illustrations")):typeof define=="function"&&define.amd?define(["exports","react","@spscommerce/utils","moment-timezone","@spscommerce/ds-shared","react-dom","@spscommerce/ds-colors","@sps-woodland/tabs","@react-stately/collections","@sps-woodland/illustrations"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_.DSReact={},_.React,_.utils,_.moment$4,_.dsShared,_.ReactDOM,_.dsColors,_.tabs,_.collections,_.illustrations))})(this,function(_,x,v,Je,W,vo,Oa,Ih,or,Hl){"use strict";var Jx=Object.defineProperty;var Nh=_=>{throw TypeError(_)};var Zx=(_,x,v)=>x in _?Jx(_,x,{enumerable:!0,configurable:!0,writable:!0,value:v}):_[x]=v;var Yt=(_,x,v)=>Zx(_,typeof x!="symbol"?x+"":x,v),kh=(_,x,v)=>x.has(_)||Nh("Cannot "+v);var rr=(_,x,v)=>(kh(_,x,"read from private field"),v?v.call(_):x.get(_)),La=(_,x,v)=>x.has(_)?Nh("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(_):x.set(_,v),hn=(_,x,v,Je)=>(kh(_,x,"write to private field"),Je?Je.call(_,v):x.set(_,v),v);var Qn,In,xn;function Wl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=Wl(x),ar=Wl(Je);function Gl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Gl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function G(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Gl(e))&&(r&&(r+=" "),r+=t);return r}const xh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ft=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=xh[n[e]&63];return t};function Sn(e){return x.useRef(e||ft())}function bt(e,t){const n=Sn(e),r=x.useRef(`${n.current}_ctrl`);return x.useEffect(()=>{t&&(t.id=r.current,t.update())},[t]),{wrapperId:n.current||void 0,controlId:r.current}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh="[object Object]";function _h(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Lh(e,t){return function(n){return e(t(n))}}var Oh=Function.prototype,Yl=Object.prototype,Ul=Oh.toString,Ph=Yl.hasOwnProperty,Rh=Ul.call(Object),Bh=Yl.toString,Ah=Lh(Object.getPrototypeOf,Object);function Fh(e){return!!e&&typeof e=="object"}function Vh(e){if(!Fh(e)||Bh.call(e)!=Mh||_h(e))return!1;var t=Ah(e);if(t===null)return!0;var n=Ph.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ul.call(n)==Rh}var $h=Vh;const zl=Pa($h),Et=new Set,sr=new Set,zt=new Set,yo=new Set;function jl(e){Et.has(e)||zt.has(e)||yo.has(e)||sr.add(e)}function ql(e){Et.has(e)||zt.has(e)||sr.has(e)||yo.add(e)}const tt=ar.default||ar,ir="MM/DD/YYYY",Kh="MM/DD/YYYY hh:mm A",Hh="MM/DD/YYYY HH:mm",Wh="hh:mm A",Gh="HH:mm",Yh=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/,_r=Symbol("Date Parse Error");function lr(e){return tt.isMoment(e)?e.year()*1e4+(e.month()+1)*100+e.date():e.year*1e4+e.month*100+e.date}const te=Object.freeze({createFrom(e,t){if(!e)return null;if(typeof e=="string"){if(t){const n=tt(e,t,!0);if(n.isValid())return Object.freeze({year:n.year(),month:n.month()+1,date:n.date()})}else{const n=Yh.exec(e);if(n){const[,r,a,s]=n;return Object.freeze({year:Number(s),month:Number(r),date:Number(a)})}}return Object.freeze({[_r]:!0,year:void 0,month:void 0,date:void 0})}return Object.freeze({year:e.year(),month:e.month()+1,date:e.date()})},createMomentFrom(e,t){if(!e)return null;let n=null;return typeof e=="string"?t?n=tt(e,t,!0):n=tt(e):tt.isMoment(e)?n=e:n=te.toMoment(e),n!==null&&tt.isMoment(n)&&n.isValid()?n:Object.freeze({[_r]:!0,year:void 0,month:void 0,date:void 0})},getRangeSeparator(e){return e!=null&&e.includes("-")?"/":"-"},createRangeFrom(e,t){if(!e)return null;if(t){const n=te.getRangeSeparator(t),r=new RegExp(`[^\\d]*${n}[^\\d]*`);return e.split(r).slice(0,2).map(a=>te.createFrom(a,t))}else return e.split(/[^\d]*-[^\d]*/).slice(0,2).map(n=>te.createFrom(n))},isValid(e){var t;return e?tt.isMoment(e)?e.isValid():typeof e=="object"&&typeof e.year=="number"&&typeof e.month=="number"&&typeof e.date=="number"&&((t=te.toMoment(e))==null?void 0:t.isValid()):!1},nullifyInvalidDate(e){return te.isValid(e)?e:null},toMoment(e){return e?tt.isMoment(e)?e:tt({...e,month:e.month-1}):null},toString(e,t){const n=te.toMoment(e);return n&&n.isValid()?n.format(t||ir):""},toStringRange(e,t){if(!e)return"";const n=te.getRangeSeparator(t);return e.slice(0,2).map(r=>te.toString(r,t)).join(n)},toDateTimeString(e,t=!1,n){return e&&tt.isMoment(e)&&e.isValid()?n?t?e.format(`${n} ${Gh}`):e.format(`${n} ${Wh}`):t?e.format(Hh):e.format(Kh):""},toDateTimeStringRange(e,t=!1,n){if(!e)return"";const r=te.getRangeSeparator(n);return e.map(a=>te.toDateTimeString(a,t,n)).join(r)},create(){const e=new Date;return Object.freeze({year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate()})},isSameDate(e,t){return e&&t&&e.year===t.year&&e.month===t.month&&e.date===t.date},isSameMonth(e,t){return e&&t&&e.year===t.year&&e.month===t.month},isAfter(e,t){return!e||!t?null:lr(e)>lr(t)},isBefore(e,t){return!e||!t?null:lr(e)<lr(t)},isInRange(e,t,n=!0){if(!e||!t||!t[0]||!t[1])return null;const r=lr(e),[a,s]=t.map(lr);return a&&s&&(n&&r>=a&&r<=s||!n&&r>a&&r<s)},prevMonth(e){return Object.freeze({year:e.month===1?e.year-1:e.year,month:e.month-1||12,date:e.date})},nextMonth(e){return Object.freeze({year:e.month===12?e.year+1:e.year,month:e.month+1>12?1:e.month+1,date:e.date})},createRangeFromPreset(e,t){if(typeof e.definition=="function")return e.definition();const n=tt(),r=n.clone().subtract(tt.duration(e.definition));return[te.createFrom(r,t),te.createFrom(n,t)]},createDateTimeRangeFromPreset(e){if(typeof e.definition=="function")return e.definition();let t;e.definition==="P0D"?t=tt().startOf("day"):t=tt().subtract(tt.duration(e.definition));const n=tt().endOf("day");return[t,n]},splitMomentInDateTimeParts(e,t=!1,n,r=!1){let a="";t?a=r?"23:59":"00:00":a=r?"11:59":"12:00";const s=r?"PM":"AM";return e&&tt.isMoment(e)&&e.isValid()?te.toDateTimeString(e,t,n).split(" "):["",a,t?void 0:s]},getCurrentMoment(){return tt()},validateTimeString(e,t=!1){if(!e)return!0;const n=e.split(":"),r=n[0]||"0",a=n[1]||"0",s=Number.isNaN(Number(r))?NaN:parseInt(r,10),l=Number.isNaN(Number(a))?NaN:parseInt(a,10),c=n.length<=2&&r.length<=2&&a.length<=2;return t?c&&s>=0&&s<=23&&l>=0&&l<=59:c&&(!Number.isNaN(s)&&r.length===1||s>=1)&&s<=12&&l>=0&&l<=59},padIncompleteTimeString(e,t=!1){if(!e)return"";const n=e.split(":"),r=parseInt(n[0]||"0",10),a=parseInt(n[1]||"0",10);if(t){const s=r<10?`0${r}`:`${r}`,l=a<10?`0${a}`:`${a}`;return`${s}:${l}`}else{const s=r===0?"12":r<10?`0${r}`:`${r}`,l=a<10?`0${a}`:`${a}`;return`${s}:${l}`}}}),Ra=["01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00"],Ba=["00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"];let To=ir;function Jl(e){To=e}const Lr=function(t){if(Array.isArray(t)){const n=Lr(t[0]),r=Lr(t[1]);return n||r}if(t&&t.hasOwnProperty("year")){if(t[_r])return{dateFormat:To};if(!te.isValid(t))return{dateValidity:!0}}return null};Et.add("dateFormat"),Et.add("dateValidity");const Zl=function(t){if(Array.isArray(t)){const n=Lr(t);if(n)return n;if(t&&te.isBefore(t[1],t[0]))return{dateRangeOrder:!0}}return null};Et.add("dateRangeOrder");const Xl=function({minDate:t,maxDate:n}){function r(a){const s=te.isBefore(a,t),l=te.isAfter(a,n),c={minExceeded:s?te.toString(t,To):null,maxExceeded:l?te.toString(n,To):null};return s||l?{dateConstraint:c}:null}return function(s){if(!s)return null;if(Array.isArray(s)){const l=r(s[0]),c=r(s[1]);return l||c}return s.hasOwnProperty("year")?r(s):null}};Et.add("dateConstraint");const Uh=Object.freeze(Object.defineProperty({__proto__:null,date:Lr,dateConstraint:Xl,dateRange:Zl,setDateFormat:Jl},Symbol.toStringTag,{value:"Module"}));function en(e,t){for(const n of[].concat(e)){const r=t(n);if(r)return r}return null}const zh=function(t){function n(r){return Number(r)>=t?null:{min:t}}return r=>en(r,n)};Et.add("min");const jh=function(t){function n(r){return Number(r)<=t?null:{max:t}}return r=>en(r,n)};sr.add("max");const qh=function(t){return typeof t>"u"||t===null||t===""||Number.isNaN(t)||(t==null?void 0:t.length)===0?{required:!0}:null};sr.add("required");const Jh=function(t){function n(r){return r===void 0||r.toString().length<t?{minLength:t}:null}return r=>en(r,n)};Et.add("minLength");const Zh=function(t){function n(r){return r==null||Array.isArray(r)&&r.length<t?{minLengthArray:t}:null}return r=>n(r)};Et.add("minLengthArray");const Xh=function(t){function n(r){return r===void 0||r.toString().length<=t?null:{maxLength:t}}return r=>en(r,n)};zt.add("maxLength");const Qh=function(t){function n(r){return r==null||Array.isArray(r)&&r.length<=t?null:{maxLengthArray:t}}return r=>n(r)};Et.add("maxLengthArray");const eS=function(t){const n=t instanceof RegExp?t:new RegExp(t);function r(a){return n.test(a)?null:{pattern:t}}return a=>en(a,r)};Et.add("pattern");const tS=function(e){function t(n){return new RegExp("^\\p{L}*$","u").test(n)?null:{alpha:!0}}return en(e,t)};zt.add("alpha");const nS=function(e){function t(n){return/^[0-9,. ]*$/.test(n)?null:{numeric:!0}}return en(e,t)};zt.add("numeric");const rS=function(e){function t(n){return/^-?[0-9,. ]*$/.test(n)?null:{positiveOrNegativeNumber:!0}}return en(e,t)};zt.add("positiveOrNegativeNumber");const oS=function(e){function t(n){return/^[^0-9]*$/.test(n)?null:{nonNumeric:!0}}return en(e,t)};zt.add("nonNumeric");const Eo=Object.freeze({...Uh,min:zh,max:jh,required:qh,minLength:Jh,minLengthArray:Zh,maxLength:Xh,maxLengthArray:Qh,pattern:eS,alpha:tS,numeric:nS,nonNumeric:oS,positiveOrNegativeNumber:rS,OnBlurErrorKeys:Et});function wo(e,t=[]){const n=t.reduce((r,a)=>Object.assign(r,a(e)||{}),{});return Object.keys(n).length?n:null}var jt=(e=>(e[e.ON_CHANGE=0]="ON_CHANGE",e[e.ON_BLUR=1]="ON_BLUR",e[e.ON_SUBMIT=2]="ON_SUBMIT",e))(jt||{});function aS(e,t={},n=[]){for(const[r,a]of Object.entries(t))a===0?jl(r):a===2&&ql(r);return o.useCallback(e,n)}class Rn{constructor(t,n){Yt(this,"validators",[]);La(this,Qn,null);La(this,In,null);La(this,xn,null);Yt(this,"preventativeErrors",[]);Yt(this,"submitted",!1);this.path=t,this.update=n}get errors(){return rr(this,Qn)===null&&rr(this,In)===null&&rr(this,xn)===null?null:{...rr(this,Qn)??{},...rr(this,In)??{},...rr(this,xn)??{}}}setValidators(t){return this.update(this.path,null,void 0,t),this}validate(t,n,r=!1){if(this.validators&&this.validators.length>0){const a=wo(t,this.validators);let s={onSubmit:{},onChange:{},onBlur:{}};a&&(s=Object.keys(a).reduce((l,c)=>(yo.has(c)?l.onSubmit[c]=a[c]:sr.has(c)?l.onChange[c]=a[c]:l.onBlur[c]=a[c],l),s)),(typeof n>"u"||n===jt.ON_CHANGE)&&hn(this,In,Object.keys(s.onChange).length===0?null:s.onChange),(typeof n>"u"||n===jt.ON_BLUR)&&hn(this,xn,Object.keys(s.onBlur).length===0?null:s.onBlur),(typeof n>"u"||n===jt.ON_SUBMIT)&&(hn(this,Qn,Object.keys(s.onSubmit).length===0?null:s.onSubmit),hn(this,In,Object.keys(s.onChange).length===0?null:s.onChange),hn(this,xn,Object.keys(s.onBlur).length===0?null:s.onBlur)),r||this.update(),this.isFocused()&&this.onFocus&&this.onFocus()}else this.errors&&(hn(this,Qn,null),hn(this,xn,null),hn(this,In,null),r||this.update());return this}isValid(){return!this.errors||this.isPristine()}hasErrors(){return!!this.errors}isVisibilyInvalid(){return!this.isValid()}hasError(t){return this.errors&&Object.prototype.hasOwnProperty.call(this.errors,t)}hasPreventativeError(t){return this.preventativeErrors.includes(t)}hasPreventativeErrors(){return this.preventativeErrors.length>0}isRequired(){return this.validators&&this.validators.indexOf(Eo.required)>-1}isSubmitted(){return this.submitted}onFocus(){}onBlur(){}}Qn=new WeakMap,In=new WeakMap,xn=new WeakMap;class Or extends Rn{constructor(){super(...arguments);Yt(this,"id",ft());Yt(this,"focused",!1);Yt(this,"pristine",!0)}setValue(n){if(this.preventativeErrors=[],this.validators&&this.validators.length>0){const r=wo(n,this.validators);if(r&&Object.keys(r).filter(s=>zt.has(s)).length>0){this.preventativeErrors=Object.keys(r);return}}this.update(this.path,n)}isPristine(){return this.pristine}markAsPristine(){return this.pristine=!0,this.update(),this}markAsDirty(){return this.pristine=!1,this.update(),this}isFocused(){return this.focused}markAsFocused(){return this.focused=!0,this.update(),this.onFocus&&this.onFocus(),this}markAsBlurred(){return this.update(this.path,null,!0),this.onBlur&&this.onBlur(),this.preventativeErrors=[],this}markAsSubmitted(){return this.submitted=!0,this.update(this.path,null,!1,void 0,!0),this}}class Bn extends Or{constructor(n,r,a){super(a?r:n,a||r);Yt(this,"fields");a&&this.inferMembers(n)}isFocused(){return super.isFocused()||this.rollup("isFocused")}isValid(){return super.isValid()&&this.rollup("isValid")}hasErrors(){return super.hasErrors()||Object.keys(this.fields).some(n=>this.fields[n].hasErrors())}contentsAreValid(){return this.rollup("isValid")&&this.rollup("contentsAreValid")}isPristine(){return super.isPristine()&&this.rollup("isPristine")}markAsPristine(){super.markAsPristine();for(const n of Object.keys(this.fields))this.fields[n].markAsPristine();return this}markAsDirty(){super.markAsDirty();for(const n of Object.keys(this.fields))this.fields[n].markAsDirty();return this}markAsBlurred(){super.markAsBlurred();for(const n of Object.keys(this.fields))this.fields[n].markAsBlurred();return this}markAsSubmitted(){super.markAsSubmitted();for(const n of Object.keys(this.fields))this.fields[n].markAsSubmitted();return this}inferSpsControl(n,r){return Co(n,[...this.path,r],this.update)}rollup(n){return Object.keys(this.fields).reduce((r,a)=>r&&(!this.fields[a][n]||this.fields[a][n]()),!0)}}class Ql extends Bn{inferMembers(t){this.fields={};for(const n of Object.keys(t))this.fields[n]=this.inferSpsControl(t[n],n)}}class ec extends Bn{inferMembers(t){this.fields=t.map((n,r)=>this.inferSpsControl(n,String(r)))}}function Co(e,t,n){return e instanceof Rn?(e.path=t,e.update=n,e):Array.isArray(e)?new ec(e,t,n):zl(e)?new Ql(e,t,n):new Or(t,n)}function Pr(e,t){return t.length===0||!e?e:Pr(e.fields[t[0]],t.slice(1,t.length))}function Aa(e,t){if(t.length===0||!e)return[e];const n=t[0];if(t=t.slice(1,t.length),n==="*"){const r=Array.isArray(e.fields)?e.fields:Object.keys(e.fields).map(a=>e.fields[a]);return t.length===0?r:r.reduce((a,s)=>[...a,...Aa(s,t)],[])}return Aa(e.fields[n],t)}function Fa(e,t,n){for(const r of Object.keys(t)){const a=t[r];for(const s of Aa(e,r.split(".")))s&&a&&n(s,a)}}function Do(e,t,n,r=!1,a=!1){Fa(t,n,(s,l)=>{s.validators=typeof l=="function"?l(e):l,r&&s.validate(v.getPath(e,s.path),void 0,a)})}function Va(e,t){const n=t[0];return t=t.slice(1),Array.isArray(e)?e.map((r,a)=>a===Number(n)?Va(r,t):r):zl(e)?Object.keys(e).reduce((r,a)=>Object.assign(r,{[a]:a===n?Va(e[a],t):e[a]}),{}):e}function sS(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("The initial value of useSpsForm() hook must be an object.")}function tc(e,t={}){sS(e);const[,n]=x.useState({}),r=x.useRef(!1);r.current=!1;const a=x.useRef(t),s=x.useCallback(h=>{var T,C;const S=u.current;let y;if(h)if(h.path)if(h.markAsBlurred){const E=Pr(S.formMeta,h.path);if(E){E.focused=!1;const N=v.getPath(S.formValue,h.path);E.validate(N,jt.ON_BLUR)}}else if(h.newValidators){if(a.current){const E=h.path.join(".");a.current={...a.current,[E]:h.newValidators},Do(S.formValue,S.formMeta,a.current,!0)}}else if(h.markAsSubmitted){const E=Pr(S.formMeta,h.path);if(E){E.submitted=!0;const N=v.getPath(S.formValue,h.path);E.validate(N,jt.ON_SUBMIT)}}else y=Va(S.formValue,h.path),v.setPath(y,h.path,h.value);else y=h.value;if((T=h==null?void 0:h.updateFormOptions)!=null&&T.validators&&(a.current={...a.current,...h.updateFormOptions.validators},Do(S.formValue,S.formMeta,a.current,((C=h.updateFormOptions)==null?void 0:C.runValidators)??!0)),y){S.formMeta.submitted=!1,v.deepFreeze(y);const E=v.diff(S.formValue,y);for(const{type:M,key:I,parentPath:k,objects:[,V]}of E){const R=Pr(S.formMeta,k);if(typeof I!="symbol"&&R){let w;switch(M){case v.DiffChange.ADDITION:R.fields[I]=Co(V[I],[...k,I],c);break;case v.DiffChange.DELETION:Array.isArray(R.fields)?R.fields[I]=void 0:delete R.fields[I];break;case v.DiffChange.ALTERATION:w=Co(V[I],[...k,I],c),(w instanceof Bn&&!(R.fields[I]instanceof Bn)||!(w instanceof Bn)&&R.fields[I]instanceof Bn)&&(w.pristine=!1,R.fields[I]=w);break}}}const N=new Set;if(E.filter(M=>M.type===v.DiffChange.DELETION).reduce((M,I)=>(M.has(I.parentPath)||M.add(I.parentPath),M),N),Array.from(N).forEach(M=>{const I=Pr(S.formMeta,M);Array.isArray(I.fields)&&(I.fields=I.fields.filter(k=>k!==void 0))}),a.current){Do(y,S.formMeta,a.current);const M=new Set;t&&Fa(S.formMeta,t,(I,k)=>{typeof k=="function"&&(I.validate(v.getPath(y,I.path)),M.add(I))});for(const{type:I,key:k,parentPath:V,objects:[,R]}of E)if(typeof k!="symbol"){let w=S.formMeta,P=y;if(w){for(const O of V)w=w.fields[O],P=P[O],M.has(w)||w.validate(P,jt.ON_CHANGE);if(I===v.DiffChange.ADDITION||I===v.DiffChange.ALTERATION){const O=w.fields[k];if(!M.has(O)&&(w.fields[k].validate(R[k],jt.ON_CHANGE),I===v.DiffChange.ADDITION&&O.fields))for(const[$,J]of Object.entries(O.fields))J.validate(R[k][$],jt.ON_CHANGE)}}}}}u.current={...S,formValue:y||S.formValue},r.current||n({})},[]),l=x.useCallback((h,S)=>{h||S?s({value:h,updateFormOptions:S}):s()},[s]),c=x.useCallback((h,S,y=!1,T,C=!1)=>{h?s({path:h,value:S,markAsBlurred:y,newValidators:T,markAsSubmitted:C}):l()},[s,l]),p=x.useMemo(()=>{v.deepFreeze(e);const h=Co(e,[],c);return t&&Do(e,h,t,!1,!0),h},[]),m=x.useCallback(()=>(u.current.formMeta.markAsDirty(),a.current&&Fa(u.current.formMeta,a.current,(h,S)=>{(typeof S=="function"||Array.isArray(S))&&h.validate(v.getPath(u.current.formValue,h.path))}),u.current.formMeta.isValid()),[]),f=x.useCallback(()=>u.current.formValue,[]),u=x.useRef({formValue:e,formMeta:p,updateForm:l,validateForm:m,getCurrentFormValue:f});return u.current}const at=o.forwardRef((e,t)=>{const{className:n,children:r,focusInputOnClick:a,formControl:s,formMeta:l,inputRef:c,onClick:p,...m}=e,f=o.useRef(),h=c||(t||f);function S(){h&&h!==t&&h.current&&h.current.focus()}function y(){h&&h!==t&&h.current&&l&&l instanceof Or&&l.markAsFocused()}function T(){h&&h!==t&&h.current&&l&&l instanceof Or&&l.markAsBlurred()}const C=G("sps-form-group",(s&&s.isRequired()||l&&l.isRequired())&&"sps-form-group--required",(s&&!s.isValid()||l&&l.isVisibilyInvalid())&&"sps-form-group--error",l&&l.hasPreventativeErrors()&&"sps-form-group--preventative-error",n);function E(N){a&&S(),p&&p(N)}return o.useEffect(()=>{function N(M){M.target.classList.contains("sps-form-control__clear-btn")&&M.preventDefault()}return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]),o.createElement("div",{...m,className:C,ref:t,tabIndex:-1,onClick:E,onFocus:y,onBlur:T},r)});Object.assign(at,{displayName:"SpsFormComponentWrapper"});function nc(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function rc(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function $a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return rc(n.overflowY,t)||rc(n.overflowX,t)||function(r){var a=function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)}(e)}return!1}function No(e,t,n,r,a,s,l,c){return s<e&&l>t||s>e&&l<t?0:s<=e&&c<=n||l>=t&&c>=n?s-e-r:l>t&&c<n||s<e&&c>n?l-t+a:0}var oc=function(e,t){var n=window,r=t.scrollMode,a=t.block,s=t.inline,l=t.boundary,c=t.skipOverflowHiddenElements,p=typeof l=="function"?l:function(ke){return ke!==l};if(!nc(e))throw new TypeError("Invalid target");for(var m,f,u=document.scrollingElement||document.documentElement,h=[],S=e;nc(S)&&p(S);){if((S=(f=(m=S).parentElement)==null?m.getRootNode().host||null:f)===u){h.push(S);break}S!=null&&S===document.body&&$a(S)&&!$a(document.documentElement)||S!=null&&$a(S,c)&&h.push(S)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,T=n.visualViewport?n.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,N=e.getBoundingClientRect(),M=N.height,I=N.width,k=N.top,V=N.right,R=N.bottom,w=N.left,P=a==="start"||a==="nearest"?k:a==="end"?R:k+M/2,O=s==="center"?w+I/2:s==="end"?V:w,$=[],J=0;J<h.length;J++){var L=h[J],Z=L.getBoundingClientRect(),A=Z.height,ne=Z.width,Y=Z.top,U=Z.right,ae=Z.bottom,H=Z.left;if(r==="if-needed"&&k>=0&&w>=0&&R<=T&&V<=y&&k>=Y&&R<=ae&&w>=H&&V<=U)return $;var q=getComputedStyle(L),re=parseInt(q.borderLeftWidth,10),oe=parseInt(q.borderTopWidth,10),j=parseInt(q.borderRightWidth,10),B=parseInt(q.borderBottomWidth,10),z=0,Q=0,ee="offsetWidth"in L?L.offsetWidth-L.clientWidth-re-j:0,de="offsetHeight"in L?L.offsetHeight-L.clientHeight-oe-B:0,ie="offsetWidth"in L?L.offsetWidth===0?0:ne/L.offsetWidth:0,le="offsetHeight"in L?L.offsetHeight===0?0:A/L.offsetHeight:0;if(u===L)z=a==="start"?P:a==="end"?P-T:a==="nearest"?No(E,E+T,T,oe,B,E+P,E+P+M,M):P-T/2,Q=s==="start"?O:s==="center"?O-y/2:s==="end"?O-y:No(C,C+y,y,re,j,C+O,C+O+I,I),z=Math.max(0,z+E),Q=Math.max(0,Q+C);else{z=a==="start"?P-Y-oe:a==="end"?P-ae+B+de:a==="nearest"?No(Y,ae,A,oe,B+de,P,P+M,M):P-(Y+A/2)+de/2,Q=s==="start"?O-H-re:s==="center"?O-(H+ne/2)+ee/2:s==="end"?O-U+j+ee:No(H,U,ne,re,j+ee,O,O+I,I);var se=L.scrollLeft,Ne=L.scrollTop;P+=Ne-(z=Math.max(0,Math.min(Ne+z/le,L.scrollHeight-A/le+de))),O+=se-(Q=Math.max(0,Math.min(se+Q/ie,L.scrollWidth-ne/ie+ee)))}$.push({el:L,top:z,left:Q})}return $};function ac(e){return e===Object(e)&&Object.keys(e).length!==0}function iS(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var a=r.el,s=r.top,l=r.left;a.scroll&&n?a.scroll({top:s,left:l,behavior:t}):(a.scrollTop=s,a.scrollLeft=l)})}function lS(e){return e===!1?{block:"end",inline:"nearest"}:ac(e)?e:{block:"start",inline:"nearest"}}function ko(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ac(t)&&typeof t.behavior=="function")return t.behavior(n?oc(e,t):[]);if(n){var r=lS(t);return iS(oc(e,r),r.behavior)}}const Ka=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),He=o.createContext(W.noI18nI18n),cS={alt:"string",size:"SpinnerSize",title:"string"};function Ha(e){const{alt:t,className:n,size:r=W.SpinnerSize.MEDIUM,"data-testid":a,title:s,unsafelyReplaceClassName:l,...c}=e,{t:p}=o.useContext(He),m=t||s||p("design-system:spinner.defaultAltText",{defaultValue:"Loading..."}),f=G(l||"sps-spinner",`sps-spinner--${r}`,n);return o.createElement("i",{className:f,"data-testid":a,title:m,...c})}Object.assign(Ha,{props:cS,displayName:"SpsSpinner"});const dS=60;function Io(e){return typeof e>"u"?"inherit":`${e}px`}function Wa(e){switch(e){case W.Position.TOP_LEFT:return W.Position.BOTTOM_LEFT;case W.Position.TOP_MIDDLE:return W.Position.BOTTOM_MIDDLE;case W.Position.TOP_RIGHT:return W.Position.BOTTOM_RIGHT;case W.Position.RIGHT_TOP:return W.Position.LEFT_TOP;case W.Position.RIGHT_MIDDLE:return W.Position.LEFT_MIDDLE;case W.Position.RIGHT_BOTTOM:return W.Position.LEFT_BOTTOM;case W.Position.BOTTOM_RIGHT:return W.Position.TOP_RIGHT;case W.Position.BOTTOM_MIDDLE:return W.Position.TOP_MIDDLE;case W.Position.BOTTOM_LEFT:return W.Position.TOP_LEFT;case W.Position.LEFT_BOTTOM:return W.Position.RIGHT_BOTTOM;case W.Position.LEFT_MIDDLE:return W.Position.RIGHT_MIDDLE;case W.Position.LEFT_TOP:return W.Position.RIGHT_TOP}}function pS(e,t,n,r,a,s,l,c){const p=l&&l.current,m=p?p.scrollTop:window.pageYOffset,f=c?0:m,u=p?p.scrollLeft:window.pageXOffset,h=c?0:u,[S,y]=e.split(" ");let T,C,E,N;switch(S){case"top":E=t.height-n.top-f-s[0];break;case"left":C=t.width-n.left-h-s[0];break;case"right":N=n.right+h-s[0];break;case"bottom":T=n.bottom+f-s[0];break;default:throw new Error(`Invalid position ${e}`)}switch(y){case"left":N=n.left+h+s[1];break;case"top":T=n.top+f+s[1];break;case"middle":S==="top"||S==="bottom"?N=n.left+h+n.width/2-a/2+s[1]:(S==="left"||S==="right")&&(T=n.top+f+n.height/2-r.height/2+s[1]);break;case"bottom":E=t.height-n.bottom-f+s[1];break;case"right":C=t.width-n.right-h+s[1];break;default:throw new Error(`Invalid position ${e}`)}return[T,C,E,N]}function An(e,t,n,{altPosition:r,setMinWidth:a=!1,setWidth:s=!1,parentElementRef:l,fixed:c=!1,offsets:p=[0,0]}){if(e.current&&t.current){const m=e.current.getBoundingClientRect(),f=t.current.getBoundingClientRect(),u=Math.max(document.documentElement.clientHeight,window.innerHeight||0),h=document.documentElement.getBoundingClientRect().width;let y=((l==null?void 0:l.current)??document.documentElement).getBoundingClientRect();c&&(y={x:0,y:0,width:h,height:u,top:0,left:0,bottom:u,right:h,toJSON(){return{width:h,height:u,top:0,left:0,bottom:u,right:h}}});const[T,C]=n.split(" ");let E=n;if(r&&(T==="top"&&f.top-m.height<dS||T==="right"&&f.right+m.width>h||T==="bottom"&&f.bottom+m.height>u||T==="left"&&f.left-m.width<0)&&(E=r),C==="left"&&f.left+m.width+((p==null?void 0:p[1])??0)>document.documentElement.getBoundingClientRect().right)switch(T){case"bottom":E=W.Position.BOTTOM_RIGHT;break;case"top":E=W.Position.TOP_RIGHT;break}const N=a?Math.max(f.width,m.width):m.width,M=s?f.width:N,[I,k,V,R]=pS(E,y,f,m,M,p,l,c),w={top:Io(I),right:Io(k),bottom:Io(V),left:Io(R)};return c&&(w.position="fixed",w.zIndex=W.ZStratum.BAR),a&&(w.minWidth=`${f.width}px`),s&&(w.width=`${f.width}px`),[w,E===r]}return[{},!1]}const kt=x.createContext(null);function cr(e,t=[]){const n=x.useContext(kt);return x.useMemo(()=>r=>{const s=n&&n.parentElementRef&&n.parentElementRef.current||document.body;let l=null,c=s.lastElementChild;for(;c&&c!==s.firstElementChild;){if(c.hasAttribute("data-portalid")&&c.getAttribute("data-portalid")===e){l=c;break}c=c.previousElementSibling}if(l)s.contains(l)||s.appendChild(l);else{l=document.createElement("div"),l.setAttribute("data-portalid",e);for(const p of t)l.classList.add(p);s.appendChild(l)}return vo.createPortal(r,l)},[n])}const Ga=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","0"];async function sc(e,t,n,r,a,s){const l=typeof e.options=="function"?e.options(t.value):e.options||[],c=l instanceof Promise,p=u=>u.replace(/([.?*+^$[\]\\(){}|-])/g,"");n({pending:c}),s.current=c?l:null;const m=c?await l||[]:l||[];if(c&&s.current!==l)return;let f=Array.from(m).filter(Boolean).map(u=>new W.SpsOptionListOption(u,typeof u=="function"?{textKey:"label",captionKey:"caption"}:{textKey:e.textKey,captionKey:e.captionKey}));if(e.nullOption&&f.unshift(new W.SpsOptionListOption(null,{text:e.nullOption})),t.value&&!e.disableDefaultOptionsFiltering){const u=p(t.value);n({replacementPattern:new RegExp(`(${u})`,"ig")}),f=f.filter(h=>{const S=new RegExp(u,"i"),y=p(h.text);return e.filterByTextAndCaptionKey?S.test(y)||S.test(p(h.caption)):S.test(y)})}else n({replacementPattern:null});if(e.disabledOptions)for(const u of f)e.disabledOptions.includes(u.value)&&(u.disabled=!0);r(Object.freeze(f)),e.onOptionListChanged&&e.onOptionListChanged(f.length),a(f.some(u=>u.value&&!!u.value.icon)),n({pending:!1})}function uS(e,t,n){const[r,a]=o.useState(Object.freeze([])),[s,l]=o.useState(!1),c=o.useRef(null),p=o.useRef(e.options);(typeof e.options!="function"||e.disableOptionsMemoization)&&(p.current=e.options);const m=o.useMemo(()=>typeof p.current=="function"?v.debounce(sc,typeof e.searchDebounce<"u"?e.searchDebounce:500):sc,[p.current,e.disabledOptions]);return o.useEffect(()=>{m(e,t,n,a,l,c)},[p.current,t.value,e.disabledOptions]),[r,s]}class gn{constructor(t,n){Yt(this,"nativeEvent");Yt(this,"currentTarget");Yt(this,"isPgStoppedInternal",!1);this.target=t,this.currentTarget=t,this.nativeEvent=new CustomEvent("change",n),Object.defineProperty(this.nativeEvent,"target",{value:t,writable:!1,configurable:!1,enumerable:!0})}get bubbles(){return this.nativeEvent.bubbles}get cancelable(){return this.nativeEvent.cancelable}get defaultPrevented(){return this.nativeEvent.defaultPrevented}get eventPhase(){return this.nativeEvent.eventPhase}get isTrusted(){return this.nativeEvent.isTrusted}get timeStamp(){return this.nativeEvent.timeStamp}get type(){return this.nativeEvent.type}preventDefault(){this.nativeEvent.preventDefault()}isDefaultPrevented(){return this.defaultPrevented}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPgStoppedInternal=!0}isPropagationStopped(){return this.isPgStoppedInternal}persist(){throw new Error("This is not a real React ChangeEvent. React does not permit the creation of SyntheticEvents in userland.")}}function mS(e,t){return{...e,...t}}function qt(e){return x.useReducer(mS,e)}function fS({hideInlineSearch:e,options:t,onSearchChange:n,search:r="",searchPlaceholder:a="Search…",searchInputRef:s}){const[l,c]=qt({isAsync:typeof t=="function",pending:!1,value:r,replacementPattern:null}),p=o.useCallback(S=>{c({value:S.target.value}),n&&n(S)},[n]),m=o.useCallback(S=>{S.nativeEvent.stopImmediatePropagation(),S.stopPropagation()},[]),f=o.useCallback(S=>{S.nativeEvent.stopImmediatePropagation(),c({value:""}),s!=null&&s.current&&(n&&n(new gn(s.current)),s.current.focus())},[n]),u=S=>{S&&(["Tab","Escape","Enter","Up","ArrowUp","Down","ArrowDown"].includes(S.key)||S.stopPropagation())};return o.useEffect(()=>{c({value:r})},[r]),[l.isAsync&&!e?o.createElement("div",{className:"sps-option-list__search sps-form-group sps-text-input"},o.createElement("div",{className:"sps-form-control"},!l.value&&o.createElement("i",{className:"sps-icon sps-icon-filter sps-text-input__icon"}),o.createElement("input",{type:"text",className:"sps-text-input__input",placeholder:a,ref:s,value:l.value,onChange:p,onClick:m,onKeyDown:u}),l.value&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:f}))):o.createElement(o.Fragment,null),l,c]}const hS=ko||Ka,SS=["Tab","Escape","Enter","Up","ArrowUp","Down","ArrowDown"];function gS(e,t,n){return n?(e&&e[n])===(t&&t[n]):e===t}function ic(e,t,n){return typeof n.value=="function"&&n.disabled?!0:t?!!(e!=null&&e.find(r=>{var a;return r[t]&&r[t]===((a=n==null?void 0:n.value)==null?void 0:a[t])})):!1}const Rr=o.forwardRef((e,t)=>{const{captionKey:n,comparisonKey:r,disabledOptions:a,options:s,tall:l,textKey:c,valueKey:p,zeroState:m,hideInlineSearch:f,onSearchChange:u,search:h,searchDebounce:S,searchPlaceholder:y,onSpecialActionSelect:T,attachTo:C,className:E,conformWidth:N,id:M,ignoreWidthStyles:I,isOpen:k,keepOpen:V,keyDown:R,nullOption:w,onOptionListChanged:P,onOptionSelected:O,onPositionFlip:$,onSelfToggle:J,optionRole:L,positionOverride:Z,selectedOption:A,specialAction:ne,unsafelyReplaceClassName:Y,loading:U,filterByTextAndCaptionKey:ae,maxHeightPx:H,maxHeightRem:q,disableOptionsMemoization:re,disableDefaultOptionsFiltering:oe,"data-testid":j,typeaheadEvent:B,...z}=e,Q=o.useMemo(()=>ne?new W.SpsOptionListOption(ne,{textKey:"label",captionKey:"caption"}):null,[ne]),[ee,de]=o.useState(-1),[ie,le]=o.useState(k),se=t||o.useRef(null),Ne=o.useRef(null),ke=o.useRef(null),it=cr("sps-option-list-portal"),lt=o.useContext(kt),[ut,ct]=Z||[W.Position.BOTTOM_LEFT,W.Position.TOP_LEFT],[[Pt,je],fe]=o.useState([{},!1]),Fe=o.useRef(null),[ve,Le,Qe]=fS({...e,searchInputRef:Fe}),[we,Ht]=uS(e,Le,Qe);o.useEffect(()=>{B&&pt(B)},[B]),o.useEffect(()=>{fe(ie?An(se,C,ut,{altPosition:ct,setMinWidth:!I,setWidth:!I&&N,...lt}):[{},!1])},[ie,ut,ct,we]),o.useEffect(()=>{let be;return ie&&(be=()=>{ie&&fe(An(se,C,ut,{altPosition:ct,setMinWidth:!I,setWidth:!I&&N,...lt}))},document.addEventListener("scroll",be)),()=>{be&&document.removeEventListener("scroll",be)}},[ie]),o.useEffect(()=>{de(-1)},[Le]);const Mn=G(Y||"sps-option-list","z-stratum-dropdown",ie&&"sps-option-list--open",Le.isAsync&&"sps-option-list--searchable",je&&"sps-option-list--opens-upward",ne&&ne.label&&"sps-option-list--has-special-action",E),ue=G(Y||"sps-option-list__options",l&&"sps-option-list__options--tall"),Se=o.useCallback(()=>{ie||(le(!0),Fe.current&&Fe.current.focus(),de(-1),J&&J(!0))},[ie,J]),Oe=o.useCallback(()=>{ie&&(le(!1),de(-1),J&&J(!1))},[ie,J]),Ze=o.useCallback((be,Te)=>{Te||be&&!be.disabled&&(typeof be.value=="function"?(be.value(),T&&T()):typeof O=="function"&&O(be.value),V||Oe())},[O,Oe]),Ie=o.useCallback((be,Te,Xe)=>{be.stopPropagation(),Ze(Te,Xe)},[Ze]),dt=o.useRef(a||[]);dt.current=a||[];const Tt=o.useCallback(be=>{switch(be.key){case"Tab":case"Escape":Oe();break;case"Enter":if(ee>-1){const Te=we[ee]||Q;be.preventDefault();const Xe=!!Te&&ic(dt.current,r||"",Te);!Xe&&Te&&typeof O=="function"&&typeof Te.value=="function"?Te.value():Te&&Ze(Te,Xe)}break;case"Up":case"ArrowUp":{let Te=ee;je?ee<=-1?Te=we.length-1:ee===0?ne&&(Te=we.length):ee<we.length&&(Te=ee-1):ee>-1&&(Te=ee-1),Te!==ee&&(be.preventDefault(),de(Te));break}case"Down":case"ArrowDown":{Se();let Te=ee;je?ee!==-1&&(ee>=we.length?Te=0:ee===we.length-1?Te=-1:Te=ee+1):ee<we.length-1+ +!!ne&&(Te=ee+1),Te!==ee&&(be.preventDefault(),de(Te));break}default:Se()}},[Oe,Se,ee,Ze,O,je,we]),Ae=o.useCallback(be=>{Se();const Te=we.findIndex(Xe=>{if(Xe.textKey){const Rt=Xe.textKey;return Xe.value[Rt].toLowerCase().charAt([0])===be.key.toLocaleLowerCase()}return Xe.value.toString().toLowerCase().charAt([0])===be.key.toLocaleLowerCase()});Te>-1&&de(Te)},[we]),pt=o.useCallback(be=>{be&&(SS.includes(be.key)?Tt(be):Ga.includes(be.key)&&!f&&Ae(be))},[Oe,Se,ee,Ze,O,je,we]);o.useEffect(()=>{if(lt!==null&&document.getElementsByClassName("sps-modal__body").length>0){const be=()=>{J&&J(!1)},Te=document.getElementsByClassName("sps-modal__body")[0];return Te.addEventListener("scroll",be),()=>{Te.removeEventListener("scroll",be)}}},[]),o.useEffect(()=>{ie&&ke.current&&hS(ke.current,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})},[ee,ie]),o.useEffect(()=>{le(k),k?Fe.current&&Fe.current.focus():de(-1)},[k]),o.useEffect(()=>{R&&pt(R)},[R]),o.useEffect(()=>{!ie&&Ne.current&&(Qe({value:""}),Ne.current.scrollTop=0),ie&&$&&$(je)},[ie]);const _n=H?H/16:q,Xt=_n?{maxHeight:`${_n}rem`}:{};function va(be,Te){return Te?o.createElement(o.Fragment,null,be.split(Te).map((Xe,Rt)=>Te.test(Xe)?o.createElement("u",{key:Rt},Xe):o.createElement(o.Fragment,{key:Rt},Xe))):o.createElement(o.Fragment,null,be)}return it(o.createElement("div",{className:Mn,id:M,"aria-activedescendant":ee>-1?`${M}-option-${ee}`:"",tabIndex:-1,ref:se,style:Pt,onMouseLeave:()=>de(-1),"data-testid":j,...z},ve,o.createElement("div",{className:ue,ref:Ne,"data-testid":`${j}-options`,style:Xt},!U&&!Le.pending&&m&&we.length===0&&o.createElement("div",{className:"sps-option-list__zero-state"},m),(U||Le.pending)&&o.createElement("div",{className:"sps-option-list__loading"},o.createElement(Ha,null)),!U&&!Le.pending&&we.map((be,Te)=>{const Xe=`${M}-option-${Te}`,Rt=gS(be.value,A,r),me=ic(dt.current,r||"",be);return o.createElement("a",{key:Xe,id:Xe,role:L,"aria-selected":Rt,href:be.href,className:G("sps-option-list__option",be.caption&&"sps-option-list__option--has-caption",be.disabled&&"sps-option-list__option--disabled",be.bold&&"sps-option-list__option--bold",(Rt||me)&&"sps-option-list__option--selected",ee===Te&&"sps-option-list__option--highlighted"),onClick:El=>Ie(El,be,me),onMouseOver:()=>de(Te),tabIndex:-1,ref:ee===Te?ke:null,"data-testid":`${j}-option-${Te}`},be.value&&be.value.icon&&o.createElement("i",{className:G("sps-icon","sps-option-list__option-icon",`sps-icon-${String(be.value.icon)}`)}),(!be.value||!be.value.icon&&Ht)&&o.createElement("span",{className:"sps-option-list__option-icon-spacer"}),o.createElement("span",null,va(be.text,Le.replacementPattern)),be.caption&&o.createElement("div",{className:"sps-option-list__option-caption"},o.createElement("span",null,va(be.caption,Le.replacementPattern))))})),Q&&(ne==null?void 0:ne.label)&&o.createElement("a",{className:G("sps-option-list__option","sps-option-list__special-action",ee===we.length&&"sps-option-list__option--highlighted",ne.disabled&&"sps-option-list__special-action--disabled"),href:Q.href,target:Q.href&&ne.newTab?"_blank":"_self",onClick:be=>Ie(be,Q),onMouseOver:()=>de(we.length),"data-testid":`${j}-special-action`},ne.icon&&o.createElement("i",{className:G("sps-icon","sps-option-list__option-icon",`sps-icon-${String(ne.icon)}`)}),!ne.icon&&Ht&&o.createElement("span",{className:"sps-option-list__option-icon-spacer"}),o.createElement("span",null,ne.label))))});Object.assign(Rr,{displayName:"SpsOptionList"});function bS(e,t,n=[]){return o.useMemo(()=>{function r(a){return o.createElement(e,{...a,...t},a.children)}return r},n)}function vt(e){return typeof e=="function"?e():e}const lc=function({children:e,elements:t}){if(t.length===0)return o.createElement(o.Fragment,null,e);const[n,r]=Array.isArray(t[0])?t[0]:[t[0]];return o.createElement(n,{...r??{}},o.createElement(lc,{elements:t.slice(1)},e))},cc=function({children:e,providers:t=[],...n}){return o.createElement("div",{...n},o.createElement(lc,{elements:t},e))},vS=function({children:e,className:t,...n}){return o.createElement(cc,{className:`sps-app ${t}`,...n},e)};function It(e=[],t=[]){const n=Array.isArray(e)?v.flatten(e):[e],r=t.map(s=>Array.isArray(s)?s:[s]),a=new Array(r.length+1).fill(null).map(()=>[]);for(const s of n){let l=!1;for(let c=0;c<r.length;c+=1)for(const{type:p,props:m={}}of r[c])if(s.type===p&&Object.keys(m).every(u=>m[u]===s.props[u])){l=!0,a[c].push(s);break}l||a[a.length-1].push(s)}return a}function dc(e,t,n){const r=Object.entries(t).filter(([,s])=>typeof s!="string"&&s.deprecated).map(([s])=>s),a=r.map(s=>n[s]);o.useEffect(()=>{a.find(s=>typeof s<"u")&&console.warn(`The following prop(s) of ${e} are deprecated: ${r.join(", ")}`)},a)}function Ya(e,t){const n=x.useRef(!1);x.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function Ua(e,t,n){const r=o.useRef(t(...n));o.useEffect(()=>(document.addEventListener(e,r.current,{capture:!0}),()=>document.removeEventListener(e,r.current)),[]),o.useEffect(()=>{document.removeEventListener(e,r.current),r.current=t(...n),document.addEventListener(e,r.current,{capture:!0})},n)}function pc(e,t,n){return function(a){var s,l;!((s=e.current)!=null&&s.contains(a.target))&&!((l=t.current)!=null&&l.contains(a.target))&&n()}}function dr(e,t,n){const r=o.useRef(!1),[a,s]=o.useState(!1),l=o.useCallback(()=>{r.current?r.current=!1:s(!0)},[]),c=o.useCallback((p=!1)=>{s(!1),r.current=p,n&&n()},[]);return Ua("mousedown",pc,[e,t,c]),Ua("pointerdown",pc,[e,t,c]),{showPopup:a,doShowPopup:l,doHidePopup:c}}const uc=e=>{const t=/(auto|scroll)/,n=(c,p)=>c.parentNode===null?p:n(c.parentNode,p.concat([c])),r=(c,p)=>getComputedStyle(c,null).getPropertyValue(p),a=c=>r(c,"overflow")+r(c,"overflow-y"),s=c=>t.test(a(c));return(c=>{if(!(c instanceof HTMLElement||c instanceof SVGElement))return;const p=n(c.parentNode,[]);for(let m=0;m<p.length;m+=1)if(s(p[m]))return p[m];return null})(e)};let za=0;function Br({isOpen:e,rootRef:t}){o.useLayoutEffect(()=>{let n,r,a;if(e&&t.current){za+=1,n=uc(t.current)||document.body,r=n===document.body?window.innerWidth-document.documentElement.clientWidth:n.offsetWidth-n.clientWidth,n.style.overflow="hidden";const s=window.getComputedStyle(n).paddingRight;if(n.style.paddingRight=s&&s!=="0px"?`calc(${s} + ${r}px)`:`${r}px`,n===document.body)if(a=document.getElementsByClassName("sps-navbar-container").item(0),a&&window.getComputedStyle(a).position==="fixed"){const l=window.getComputedStyle(a).paddingRight;a.style.paddingRight=l&&l!=="0px"?`calc(${l} + ${r}px)`:`${r}px`}else{const l=document.getElementsByTagName("nav").item(0);if(a=l==null?void 0:l.parentElement,a&&window.getComputedStyle(a).position==="fixed"){const c=window.getComputedStyle(a).paddingRight;a.style.paddingRight=c&&c!=="0px"?`calc(${c} + ${r}px)`:`${r}px`}}}return()=>{n&&(za-=1,za===0&&(n.style.overflow=null,n.style.paddingRight=null,a&&(a.style.paddingRight=null)))}},[e])}const yS={debounce:"number",disabled:"boolean",formMeta:"SpsFormFieldMeta<string>",icon:"SpsIcon",onChange:"React.ChangeEventHandler",onSelectionChange:"(newValue: string) => void",placeholder:"string",suggestions:{type:`
|
|
1
|
+
(function(_,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@spscommerce/utils"),require("moment-timezone"),require("@spscommerce/ds-shared"),require("react-dom"),require("@spscommerce/ds-colors"),require("@sps-woodland/tabs"),require("@react-stately/collections"),require("@sps-woodland/illustrations")):typeof define=="function"&&define.amd?define(["exports","react","@spscommerce/utils","moment-timezone","@spscommerce/ds-shared","react-dom","@spscommerce/ds-colors","@sps-woodland/tabs","@react-stately/collections","@sps-woodland/illustrations"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_.DSReact={},_.React,_.utils,_.moment$4,_.dsShared,_.ReactDOM,_.dsColors,_.tabs,_.collections,_.illustrations))})(this,function(_,x,v,Ze,W,vo,Oa,Ih,or,Hl){"use strict";var Jx=Object.defineProperty;var Nh=_=>{throw TypeError(_)};var Zx=(_,x,v)=>x in _?Jx(_,x,{enumerable:!0,configurable:!0,writable:!0,value:v}):_[x]=v;var Yt=(_,x,v)=>Zx(_,typeof x!="symbol"?x+"":x,v),kh=(_,x,v)=>x.has(_)||Nh("Cannot "+v);var rr=(_,x,v)=>(kh(_,x,"read from private field"),v?v.call(_):x.get(_)),La=(_,x,v)=>x.has(_)?Nh("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(_):x.set(_,v),hn=(_,x,v,Ze)=>(kh(_,x,"write to private field"),Ze?Ze.call(_,v):x.set(_,v),v);var Qn,In,xn;function Wl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=Wl(x),ar=Wl(Ze);function Gl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Gl(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function G(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Gl(e))&&(r&&(r+=" "),r+=t);return r}const xh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ft=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=xh[n[e]&63];return t};function Sn(e){return x.useRef(e||ft())}function bt(e,t){const n=Sn(e),r=x.useRef(`${n.current}_ctrl`);return x.useEffect(()=>{t&&(t.id=r.current,t.update())},[t]),{wrapperId:n.current||void 0,controlId:r.current}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mh="[object Object]";function _h(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Lh(e,t){return function(n){return e(t(n))}}var Oh=Function.prototype,Yl=Object.prototype,Ul=Oh.toString,Ph=Yl.hasOwnProperty,Rh=Ul.call(Object),Bh=Yl.toString,Ah=Lh(Object.getPrototypeOf,Object);function Fh(e){return!!e&&typeof e=="object"}function Vh(e){if(!Fh(e)||Bh.call(e)!=Mh||_h(e))return!1;var t=Ah(e);if(t===null)return!0;var n=Ph.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ul.call(n)==Rh}var $h=Vh;const zl=Pa($h),Et=new Set,sr=new Set,zt=new Set,yo=new Set;function jl(e){Et.has(e)||zt.has(e)||yo.has(e)||sr.add(e)}function ql(e){Et.has(e)||zt.has(e)||sr.has(e)||yo.add(e)}const tt=ar.default||ar,ir="MM/DD/YYYY",Kh="MM/DD/YYYY hh:mm A",Hh="MM/DD/YYYY HH:mm",Wh="hh:mm A",Gh="HH:mm",Yh=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/,_r=Symbol("Date Parse Error");function lr(e){return tt.isMoment(e)?e.year()*1e4+(e.month()+1)*100+e.date():e.year*1e4+e.month*100+e.date}const te=Object.freeze({createFrom(e,t){if(!e)return null;if(typeof e=="string"){if(t){const n=tt(e,t,!0);if(n.isValid())return Object.freeze({year:n.year(),month:n.month()+1,date:n.date()})}else{const n=Yh.exec(e);if(n){const[,r,a,s]=n;return Object.freeze({year:Number(s),month:Number(r),date:Number(a)})}}return Object.freeze({[_r]:!0,year:void 0,month:void 0,date:void 0})}return Object.freeze({year:e.year(),month:e.month()+1,date:e.date()})},createMomentFrom(e,t){if(!e)return null;let n=null;return typeof e=="string"?t?n=tt(e,t,!0):n=tt(e):tt.isMoment(e)?n=e:n=te.toMoment(e),n!==null&&tt.isMoment(n)&&n.isValid()?n:Object.freeze({[_r]:!0,year:void 0,month:void 0,date:void 0})},getRangeSeparator(e){return e!=null&&e.includes("-")?"/":"-"},createRangeFrom(e,t){if(!e)return null;if(t){const n=te.getRangeSeparator(t),r=new RegExp(`[^\\d]*${n}[^\\d]*`);return e.split(r).slice(0,2).map(a=>te.createFrom(a,t))}else return e.split(/[^\d]*-[^\d]*/).slice(0,2).map(n=>te.createFrom(n))},isValid(e){var t;return e?tt.isMoment(e)?e.isValid():typeof e=="object"&&typeof e.year=="number"&&typeof e.month=="number"&&typeof e.date=="number"&&((t=te.toMoment(e))==null?void 0:t.isValid()):!1},nullifyInvalidDate(e){return te.isValid(e)?e:null},toMoment(e){return e?tt.isMoment(e)?e:tt({...e,month:e.month-1}):null},toString(e,t){const n=te.toMoment(e);return n&&n.isValid()?n.format(t||ir):""},toStringRange(e,t){if(!e)return"";const n=te.getRangeSeparator(t);return e.slice(0,2).map(r=>te.toString(r,t)).join(n)},toDateTimeString(e,t=!1,n){return e&&tt.isMoment(e)&&e.isValid()?n?t?e.format(`${n} ${Gh}`):e.format(`${n} ${Wh}`):t?e.format(Hh):e.format(Kh):""},toDateTimeStringRange(e,t=!1,n){if(!e)return"";const r=te.getRangeSeparator(n);return e.map(a=>te.toDateTimeString(a,t,n)).join(r)},create(){const e=new Date;return Object.freeze({year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate()})},isSameDate(e,t){return e&&t&&e.year===t.year&&e.month===t.month&&e.date===t.date},isSameMonth(e,t){return e&&t&&e.year===t.year&&e.month===t.month},isAfter(e,t){return!e||!t?null:lr(e)>lr(t)},isBefore(e,t){return!e||!t?null:lr(e)<lr(t)},isInRange(e,t,n=!0){if(!e||!t||!t[0]||!t[1])return null;const r=lr(e),[a,s]=t.map(lr);return a&&s&&(n&&r>=a&&r<=s||!n&&r>a&&r<s)},prevMonth(e){return Object.freeze({year:e.month===1?e.year-1:e.year,month:e.month-1||12,date:e.date})},nextMonth(e){return Object.freeze({year:e.month===12?e.year+1:e.year,month:e.month+1>12?1:e.month+1,date:e.date})},createRangeFromPreset(e,t){if(typeof e.definition=="function")return e.definition();const n=tt(),r=n.clone().subtract(tt.duration(e.definition));return[te.createFrom(r,t),te.createFrom(n,t)]},createDateTimeRangeFromPreset(e){if(typeof e.definition=="function")return e.definition();let t;e.definition==="P0D"?t=tt().startOf("day"):t=tt().subtract(tt.duration(e.definition));const n=tt().endOf("day");return[t,n]},splitMomentInDateTimeParts(e,t=!1,n,r=!1){let a="";t?a=r?"23:59":"00:00":a=r?"11:59":"12:00";const s=r?"PM":"AM";return e&&tt.isMoment(e)&&e.isValid()?te.toDateTimeString(e,t,n).split(" "):["",a,t?void 0:s]},getCurrentMoment(){return tt()},validateTimeString(e,t=!1){if(!e)return!0;const n=e.split(":"),r=n[0]||"0",a=n[1]||"0",s=Number.isNaN(Number(r))?NaN:parseInt(r,10),l=Number.isNaN(Number(a))?NaN:parseInt(a,10),c=n.length<=2&&r.length<=2&&a.length<=2;return t?c&&s>=0&&s<=23&&l>=0&&l<=59:c&&(!Number.isNaN(s)&&r.length===1||s>=1)&&s<=12&&l>=0&&l<=59},padIncompleteTimeString(e,t=!1){if(!e)return"";const n=e.split(":"),r=parseInt(n[0]||"0",10),a=parseInt(n[1]||"0",10);if(t){const s=r<10?`0${r}`:`${r}`,l=a<10?`0${a}`:`${a}`;return`${s}:${l}`}else{const s=r===0?"12":r<10?`0${r}`:`${r}`,l=a<10?`0${a}`:`${a}`;return`${s}:${l}`}}}),Ra=["01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00"],Ba=["00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"];let To=ir;function Jl(e){To=e}const Lr=function(t){if(Array.isArray(t)){const n=Lr(t[0]),r=Lr(t[1]);return n||r}if(t&&t.hasOwnProperty("year")){if(t[_r])return{dateFormat:To};if(!te.isValid(t))return{dateValidity:!0}}return null};Et.add("dateFormat"),Et.add("dateValidity");const Zl=function(t){if(Array.isArray(t)){const n=Lr(t);if(n)return n;if(t&&te.isBefore(t[1],t[0]))return{dateRangeOrder:!0}}return null};Et.add("dateRangeOrder");const Xl=function({minDate:t,maxDate:n}){function r(a){const s=te.isBefore(a,t),l=te.isAfter(a,n),c={minExceeded:s?te.toString(t,To):null,maxExceeded:l?te.toString(n,To):null};return s||l?{dateConstraint:c}:null}return function(s){if(!s)return null;if(Array.isArray(s)){const l=r(s[0]),c=r(s[1]);return l||c}return s.hasOwnProperty("year")?r(s):null}};Et.add("dateConstraint");const Uh=Object.freeze(Object.defineProperty({__proto__:null,date:Lr,dateConstraint:Xl,dateRange:Zl,setDateFormat:Jl},Symbol.toStringTag,{value:"Module"}));function en(e,t){for(const n of[].concat(e)){const r=t(n);if(r)return r}return null}const zh=function(t){function n(r){return Number(r)>=t?null:{min:t}}return r=>en(r,n)};Et.add("min");const jh=function(t){function n(r){return Number(r)<=t?null:{max:t}}return r=>en(r,n)};sr.add("max");const qh=function(t){return typeof t>"u"||t===null||t===""||Number.isNaN(t)||(t==null?void 0:t.length)===0?{required:!0}:null};sr.add("required");const Jh=function(t){function n(r){return r===void 0||r.toString().length<t?{minLength:t}:null}return r=>en(r,n)};Et.add("minLength");const Zh=function(t){function n(r){return r==null||Array.isArray(r)&&r.length<t?{minLengthArray:t}:null}return r=>n(r)};Et.add("minLengthArray");const Xh=function(t){function n(r){return r===void 0||r.toString().length<=t?null:{maxLength:t}}return r=>en(r,n)};zt.add("maxLength");const Qh=function(t){function n(r){return r==null||Array.isArray(r)&&r.length<=t?null:{maxLengthArray:t}}return r=>n(r)};Et.add("maxLengthArray");const eS=function(t){const n=t instanceof RegExp?t:new RegExp(t);function r(a){return n.test(a)?null:{pattern:t}}return a=>en(a,r)};Et.add("pattern");const tS=function(e){function t(n){return new RegExp("^\\p{L}*$","u").test(n)?null:{alpha:!0}}return en(e,t)};zt.add("alpha");const nS=function(e){function t(n){return/^[0-9,. ]*$/.test(n)?null:{numeric:!0}}return en(e,t)};zt.add("numeric");const rS=function(e){function t(n){return/^-?[0-9,. ]*$/.test(n)?null:{positiveOrNegativeNumber:!0}}return en(e,t)};zt.add("positiveOrNegativeNumber");const oS=function(e){function t(n){return/^[^0-9]*$/.test(n)?null:{nonNumeric:!0}}return en(e,t)};zt.add("nonNumeric");const Eo=Object.freeze({...Uh,min:zh,max:jh,required:qh,minLength:Jh,minLengthArray:Zh,maxLength:Xh,maxLengthArray:Qh,pattern:eS,alpha:tS,numeric:nS,nonNumeric:oS,positiveOrNegativeNumber:rS,OnBlurErrorKeys:Et});function wo(e,t=[]){const n=t.reduce((r,a)=>Object.assign(r,a(e)||{}),{});return Object.keys(n).length?n:null}var jt=(e=>(e[e.ON_CHANGE=0]="ON_CHANGE",e[e.ON_BLUR=1]="ON_BLUR",e[e.ON_SUBMIT=2]="ON_SUBMIT",e))(jt||{});function aS(e,t={},n=[]){for(const[r,a]of Object.entries(t))a===0?jl(r):a===2&&ql(r);return o.useCallback(e,n)}class Rn{constructor(t,n){Yt(this,"validators",[]);La(this,Qn,null);La(this,In,null);La(this,xn,null);Yt(this,"preventativeErrors",[]);Yt(this,"submitted",!1);this.path=t,this.update=n}get errors(){return rr(this,Qn)===null&&rr(this,In)===null&&rr(this,xn)===null?null:{...rr(this,Qn)??{},...rr(this,In)??{},...rr(this,xn)??{}}}setValidators(t){return this.update(this.path,null,void 0,t),this}validate(t,n,r=!1){if(this.validators&&this.validators.length>0){const a=wo(t,this.validators);let s={onSubmit:{},onChange:{},onBlur:{}};a&&(s=Object.keys(a).reduce((l,c)=>(yo.has(c)?l.onSubmit[c]=a[c]:sr.has(c)?l.onChange[c]=a[c]:l.onBlur[c]=a[c],l),s)),(typeof n>"u"||n===jt.ON_CHANGE)&&hn(this,In,Object.keys(s.onChange).length===0?null:s.onChange),(typeof n>"u"||n===jt.ON_BLUR)&&hn(this,xn,Object.keys(s.onBlur).length===0?null:s.onBlur),(typeof n>"u"||n===jt.ON_SUBMIT)&&(hn(this,Qn,Object.keys(s.onSubmit).length===0?null:s.onSubmit),hn(this,In,Object.keys(s.onChange).length===0?null:s.onChange),hn(this,xn,Object.keys(s.onBlur).length===0?null:s.onBlur)),r||this.update(),this.isFocused()&&this.onFocus&&this.onFocus()}else this.errors&&(hn(this,Qn,null),hn(this,xn,null),hn(this,In,null),r||this.update());return this}isValid(){return!this.errors||this.isPristine()}hasErrors(){return!!this.errors}isVisibilyInvalid(){return!this.isValid()}hasError(t){return this.errors&&Object.prototype.hasOwnProperty.call(this.errors,t)}hasPreventativeError(t){return this.preventativeErrors.includes(t)}hasPreventativeErrors(){return this.preventativeErrors.length>0}isRequired(){return this.validators&&this.validators.indexOf(Eo.required)>-1}isSubmitted(){return this.submitted}onFocus(){}onBlur(){}}Qn=new WeakMap,In=new WeakMap,xn=new WeakMap;class Or extends Rn{constructor(){super(...arguments);Yt(this,"id",ft());Yt(this,"focused",!1);Yt(this,"pristine",!0)}setValue(n){if(this.preventativeErrors=[],this.validators&&this.validators.length>0){const r=wo(n,this.validators);if(r&&Object.keys(r).filter(s=>zt.has(s)).length>0){this.preventativeErrors=Object.keys(r);return}}this.update(this.path,n)}isPristine(){return this.pristine}markAsPristine(){return this.pristine=!0,this.update(),this}markAsDirty(){return this.pristine=!1,this.update(),this}isFocused(){return this.focused}markAsFocused(){return this.focused=!0,this.update(),this.onFocus&&this.onFocus(),this}markAsBlurred(){return this.update(this.path,null,!0),this.onBlur&&this.onBlur(),this.preventativeErrors=[],this}markAsSubmitted(){return this.submitted=!0,this.update(this.path,null,!1,void 0,!0),this}}class Bn extends Or{constructor(n,r,a){super(a?r:n,a||r);Yt(this,"fields");a&&this.inferMembers(n)}isFocused(){return super.isFocused()||this.rollup("isFocused")}isValid(){return super.isValid()&&this.rollup("isValid")}hasErrors(){return super.hasErrors()||Object.keys(this.fields).some(n=>this.fields[n].hasErrors())}contentsAreValid(){return this.rollup("isValid")&&this.rollup("contentsAreValid")}isPristine(){return super.isPristine()&&this.rollup("isPristine")}markAsPristine(){super.markAsPristine();for(const n of Object.keys(this.fields))this.fields[n].markAsPristine();return this}markAsDirty(){super.markAsDirty();for(const n of Object.keys(this.fields))this.fields[n].markAsDirty();return this}markAsBlurred(){super.markAsBlurred();for(const n of Object.keys(this.fields))this.fields[n].markAsBlurred();return this}markAsSubmitted(){super.markAsSubmitted();for(const n of Object.keys(this.fields))this.fields[n].markAsSubmitted();return this}inferSpsControl(n,r){return Co(n,[...this.path,r],this.update)}rollup(n){return Object.keys(this.fields).reduce((r,a)=>r&&(!this.fields[a][n]||this.fields[a][n]()),!0)}}class Ql extends Bn{inferMembers(t){this.fields={};for(const n of Object.keys(t))this.fields[n]=this.inferSpsControl(t[n],n)}}class ec extends Bn{inferMembers(t){this.fields=t.map((n,r)=>this.inferSpsControl(n,String(r)))}}function Co(e,t,n){return e instanceof Rn?(e.path=t,e.update=n,e):Array.isArray(e)?new ec(e,t,n):zl(e)?new Ql(e,t,n):new Or(t,n)}function Pr(e,t){return t.length===0||!e?e:Pr(e.fields[t[0]],t.slice(1,t.length))}function Aa(e,t){if(t.length===0||!e)return[e];const n=t[0];if(t=t.slice(1,t.length),n==="*"){const r=Array.isArray(e.fields)?e.fields:Object.keys(e.fields).map(a=>e.fields[a]);return t.length===0?r:r.reduce((a,s)=>[...a,...Aa(s,t)],[])}return Aa(e.fields[n],t)}function Fa(e,t,n){for(const r of Object.keys(t)){const a=t[r];for(const s of Aa(e,r.split(".")))s&&a&&n(s,a)}}function Do(e,t,n,r=!1,a=!1){Fa(t,n,(s,l)=>{s.validators=typeof l=="function"?l(e):l,r&&s.validate(v.getPath(e,s.path),void 0,a)})}function Va(e,t){const n=t[0];return t=t.slice(1),Array.isArray(e)?e.map((r,a)=>a===Number(n)?Va(r,t):r):zl(e)?Object.keys(e).reduce((r,a)=>Object.assign(r,{[a]:a===n?Va(e[a],t):e[a]}),{}):e}function sS(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("The initial value of useSpsForm() hook must be an object.")}function tc(e,t={}){sS(e);const[,n]=x.useState({}),r=x.useRef(!1);r.current=!1;const a=x.useRef(t),s=x.useCallback(h=>{var T,C;const S=u.current;let y;if(h)if(h.path)if(h.markAsBlurred){const E=Pr(S.formMeta,h.path);if(E){E.focused=!1;const N=v.getPath(S.formValue,h.path);E.validate(N,jt.ON_BLUR)}}else if(h.newValidators){if(a.current){const E=h.path.join(".");a.current={...a.current,[E]:h.newValidators},Do(S.formValue,S.formMeta,a.current,!0)}}else if(h.markAsSubmitted){const E=Pr(S.formMeta,h.path);if(E){E.submitted=!0;const N=v.getPath(S.formValue,h.path);E.validate(N,jt.ON_SUBMIT)}}else y=Va(S.formValue,h.path),v.setPath(y,h.path,h.value);else y=h.value;if((T=h==null?void 0:h.updateFormOptions)!=null&&T.validators&&(a.current={...a.current,...h.updateFormOptions.validators},Do(S.formValue,S.formMeta,a.current,((C=h.updateFormOptions)==null?void 0:C.runValidators)??!0)),y){S.formMeta.submitted=!1,v.deepFreeze(y);const E=v.diff(S.formValue,y);for(const{type:M,key:I,parentPath:k,objects:[,V]}of E){const R=Pr(S.formMeta,k);if(typeof I!="symbol"&&R){let w;switch(M){case v.DiffChange.ADDITION:R.fields[I]=Co(V[I],[...k,I],c);break;case v.DiffChange.DELETION:Array.isArray(R.fields)?R.fields[I]=void 0:delete R.fields[I];break;case v.DiffChange.ALTERATION:w=Co(V[I],[...k,I],c),(w instanceof Bn&&!(R.fields[I]instanceof Bn)||!(w instanceof Bn)&&R.fields[I]instanceof Bn)&&(w.pristine=!1,R.fields[I]=w);break}}}const N=new Set;if(E.filter(M=>M.type===v.DiffChange.DELETION).reduce((M,I)=>(M.has(I.parentPath)||M.add(I.parentPath),M),N),Array.from(N).forEach(M=>{const I=Pr(S.formMeta,M);Array.isArray(I.fields)&&(I.fields=I.fields.filter(k=>k!==void 0))}),a.current){Do(y,S.formMeta,a.current);const M=new Set;t&&Fa(S.formMeta,t,(I,k)=>{typeof k=="function"&&(I.validate(v.getPath(y,I.path)),M.add(I))});for(const{type:I,key:k,parentPath:V,objects:[,R]}of E)if(typeof k!="symbol"){let w=S.formMeta,P=y;if(w){for(const O of V)w=w.fields[O],P=P[O],M.has(w)||w.validate(P,jt.ON_CHANGE);if(I===v.DiffChange.ADDITION||I===v.DiffChange.ALTERATION){const O=w.fields[k];if(!M.has(O)&&(w.fields[k].validate(R[k],jt.ON_CHANGE),I===v.DiffChange.ADDITION&&O.fields))for(const[$,J]of Object.entries(O.fields))J.validate(R[k][$],jt.ON_CHANGE)}}}}}u.current={...S,formValue:y||S.formValue},r.current||n({})},[]),l=x.useCallback((h,S)=>{h||S?s({value:h,updateFormOptions:S}):s()},[s]),c=x.useCallback((h,S,y=!1,T,C=!1)=>{h?s({path:h,value:S,markAsBlurred:y,newValidators:T,markAsSubmitted:C}):l()},[s,l]),p=x.useMemo(()=>{v.deepFreeze(e);const h=Co(e,[],c);return t&&Do(e,h,t,!1,!0),h},[]),m=x.useCallback(()=>(u.current.formMeta.markAsDirty(),a.current&&Fa(u.current.formMeta,a.current,(h,S)=>{(typeof S=="function"||Array.isArray(S))&&h.validate(v.getPath(u.current.formValue,h.path))}),u.current.formMeta.isValid()),[]),f=x.useCallback(()=>u.current.formValue,[]),u=x.useRef({formValue:e,formMeta:p,updateForm:l,validateForm:m,getCurrentFormValue:f});return u.current}const at=o.forwardRef((e,t)=>{const{className:n,children:r,focusInputOnClick:a,formControl:s,formMeta:l,inputRef:c,onClick:p,...m}=e,f=o.useRef(),h=c||(t||f);function S(){h&&h!==t&&h.current&&h.current.focus()}function y(){h&&h!==t&&h.current&&l&&l instanceof Or&&l.markAsFocused()}function T(){h&&h!==t&&h.current&&l&&l instanceof Or&&l.markAsBlurred()}const C=G("sps-form-group",(s&&s.isRequired()||l&&l.isRequired())&&"sps-form-group--required",(s&&!s.isValid()||l&&l.isVisibilyInvalid())&&"sps-form-group--error",l&&l.hasPreventativeErrors()&&"sps-form-group--preventative-error",n);function E(N){a&&S(),p&&p(N)}return o.useEffect(()=>{function N(M){M.target.classList.contains("sps-form-control__clear-btn")&&M.preventDefault()}return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]),o.createElement("div",{...m,className:C,ref:t,tabIndex:-1,onClick:E,onFocus:y,onBlur:T},r)});Object.assign(at,{displayName:"SpsFormComponentWrapper"});function nc(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function rc(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function $a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return rc(n.overflowY,t)||rc(n.overflowX,t)||function(r){var a=function(s){if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)}(e)}return!1}function No(e,t,n,r,a,s,l,c){return s<e&&l>t||s>e&&l<t?0:s<=e&&c<=n||l>=t&&c>=n?s-e-r:l>t&&c<n||s<e&&c>n?l-t+a:0}var oc=function(e,t){var n=window,r=t.scrollMode,a=t.block,s=t.inline,l=t.boundary,c=t.skipOverflowHiddenElements,p=typeof l=="function"?l:function(Ie){return Ie!==l};if(!nc(e))throw new TypeError("Invalid target");for(var m,f,u=document.scrollingElement||document.documentElement,h=[],S=e;nc(S)&&p(S);){if((S=(f=(m=S).parentElement)==null?m.getRootNode().host||null:f)===u){h.push(S);break}S!=null&&S===document.body&&$a(S)&&!$a(document.documentElement)||S!=null&&$a(S,c)&&h.push(S)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,T=n.visualViewport?n.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,N=e.getBoundingClientRect(),M=N.height,I=N.width,k=N.top,V=N.right,R=N.bottom,w=N.left,P=a==="start"||a==="nearest"?k:a==="end"?R:k+M/2,O=s==="center"?w+I/2:s==="end"?V:w,$=[],J=0;J<h.length;J++){var L=h[J],Z=L.getBoundingClientRect(),A=Z.height,ne=Z.width,Y=Z.top,U=Z.right,ae=Z.bottom,H=Z.left;if(r==="if-needed"&&k>=0&&w>=0&&R<=T&&V<=y&&k>=Y&&R<=ae&&w>=H&&V<=U)return $;var q=getComputedStyle(L),re=parseInt(q.borderLeftWidth,10),oe=parseInt(q.borderTopWidth,10),j=parseInt(q.borderRightWidth,10),B=parseInt(q.borderBottomWidth,10),z=0,Q=0,ee="offsetWidth"in L?L.offsetWidth-L.clientWidth-re-j:0,de="offsetHeight"in L?L.offsetHeight-L.clientHeight-oe-B:0,ie="offsetWidth"in L?L.offsetWidth===0?0:ne/L.offsetWidth:0,le="offsetHeight"in L?L.offsetHeight===0?0:A/L.offsetHeight:0;if(u===L)z=a==="start"?P:a==="end"?P-T:a==="nearest"?No(E,E+T,T,oe,B,E+P,E+P+M,M):P-T/2,Q=s==="start"?O:s==="center"?O-y/2:s==="end"?O-y:No(C,C+y,y,re,j,C+O,C+O+I,I),z=Math.max(0,z+E),Q=Math.max(0,Q+C);else{z=a==="start"?P-Y-oe:a==="end"?P-ae+B+de:a==="nearest"?No(Y,ae,A,oe,B+de,P,P+M,M):P-(Y+A/2)+de/2,Q=s==="start"?O-H-re:s==="center"?O-(H+ne/2)+ee/2:s==="end"?O-U+j+ee:No(H,U,ne,re,j+ee,O,O+I,I);var se=L.scrollLeft,ke=L.scrollTop;P+=ke-(z=Math.max(0,Math.min(ke+z/le,L.scrollHeight-A/le+de))),O+=se-(Q=Math.max(0,Math.min(se+Q/ie,L.scrollWidth-ne/ie+ee)))}$.push({el:L,top:z,left:Q})}return $};function ac(e){return e===Object(e)&&Object.keys(e).length!==0}function iS(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var a=r.el,s=r.top,l=r.left;a.scroll&&n?a.scroll({top:s,left:l,behavior:t}):(a.scrollTop=s,a.scrollLeft=l)})}function lS(e){return e===!1?{block:"end",inline:"nearest"}:ac(e)?e:{block:"start",inline:"nearest"}}function ko(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ac(t)&&typeof t.behavior=="function")return t.behavior(n?oc(e,t):[]);if(n){var r=lS(t);return iS(oc(e,r),r.behavior)}}const Ka=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"})),He=o.createContext(W.noI18nI18n),cS={alt:"string",size:"SpinnerSize",title:"string"};function Ha(e){const{alt:t,className:n,size:r=W.SpinnerSize.MEDIUM,"data-testid":a,title:s,unsafelyReplaceClassName:l,...c}=e,{t:p}=o.useContext(He),m=t||s||p("design-system:spinner.defaultAltText",{defaultValue:"Loading..."}),f=G(l||"sps-spinner",`sps-spinner--${r}`,n);return o.createElement("i",{className:f,"data-testid":a,title:m,...c})}Object.assign(Ha,{props:cS,displayName:"SpsSpinner"});const dS=60;function Io(e){return typeof e>"u"?"inherit":`${e}px`}function Wa(e){switch(e){case W.Position.TOP_LEFT:return W.Position.BOTTOM_LEFT;case W.Position.TOP_MIDDLE:return W.Position.BOTTOM_MIDDLE;case W.Position.TOP_RIGHT:return W.Position.BOTTOM_RIGHT;case W.Position.RIGHT_TOP:return W.Position.LEFT_TOP;case W.Position.RIGHT_MIDDLE:return W.Position.LEFT_MIDDLE;case W.Position.RIGHT_BOTTOM:return W.Position.LEFT_BOTTOM;case W.Position.BOTTOM_RIGHT:return W.Position.TOP_RIGHT;case W.Position.BOTTOM_MIDDLE:return W.Position.TOP_MIDDLE;case W.Position.BOTTOM_LEFT:return W.Position.TOP_LEFT;case W.Position.LEFT_BOTTOM:return W.Position.RIGHT_BOTTOM;case W.Position.LEFT_MIDDLE:return W.Position.RIGHT_MIDDLE;case W.Position.LEFT_TOP:return W.Position.RIGHT_TOP}}function pS(e,t,n,r,a,s,l,c){const p=l&&l.current,m=p?p.scrollTop:window.pageYOffset,f=c?0:m,u=p?p.scrollLeft:window.pageXOffset,h=c?0:u,[S,y]=e.split(" ");let T,C,E,N;switch(S){case"top":E=t.height-n.top-f-s[0];break;case"left":C=t.width-n.left-h-s[0];break;case"right":N=n.right+h-s[0];break;case"bottom":T=n.bottom+f-s[0];break;default:throw new Error(`Invalid position ${e}`)}switch(y){case"left":N=n.left+h+s[1];break;case"top":T=n.top+f+s[1];break;case"middle":S==="top"||S==="bottom"?N=n.left+h+n.width/2-a/2+s[1]:(S==="left"||S==="right")&&(T=n.top+f+n.height/2-r.height/2+s[1]);break;case"bottom":E=t.height-n.bottom-f+s[1];break;case"right":C=t.width-n.right-h+s[1];break;default:throw new Error(`Invalid position ${e}`)}return[T,C,E,N]}function An(e,t,n,{altPosition:r,setMinWidth:a=!1,setWidth:s=!1,parentElementRef:l,fixed:c=!1,offsets:p=[0,0]}){if(e.current&&t.current){const m=e.current.getBoundingClientRect(),f=t.current.getBoundingClientRect(),u=Math.max(document.documentElement.clientHeight,window.innerHeight||0),h=document.documentElement.getBoundingClientRect().width;let y=((l==null?void 0:l.current)??document.documentElement).getBoundingClientRect();c&&(y={x:0,y:0,width:h,height:u,top:0,left:0,bottom:u,right:h,toJSON(){return{width:h,height:u,top:0,left:0,bottom:u,right:h}}});const[T,C]=n.split(" ");let E=n;if(r&&(T==="top"&&f.top-m.height<dS||T==="right"&&f.right+m.width>h||T==="bottom"&&f.bottom+m.height>u||T==="left"&&f.left-m.width<0)&&(E=r),C==="left"&&f.left+m.width+((p==null?void 0:p[1])??0)>document.documentElement.getBoundingClientRect().right)switch(T){case"bottom":E=W.Position.BOTTOM_RIGHT;break;case"top":E=W.Position.TOP_RIGHT;break}const N=a?Math.max(f.width,m.width):m.width,M=s?f.width:N,[I,k,V,R]=pS(E,y,f,m,M,p,l,c),w={top:Io(I),right:Io(k),bottom:Io(V),left:Io(R)};return c&&(w.position="fixed",w.zIndex=W.ZStratum.BAR),a&&(w.minWidth=`${f.width}px`),s&&(w.width=`${f.width}px`),[w,E===r]}return[{},!1]}const kt=x.createContext(null);function cr(e,t=[]){const n=x.useContext(kt);return x.useMemo(()=>r=>{const s=n&&n.parentElementRef&&n.parentElementRef.current||document.body;let l=null,c=s.lastElementChild;for(;c&&c!==s.firstElementChild;){if(c.hasAttribute("data-portalid")&&c.getAttribute("data-portalid")===e){l=c;break}c=c.previousElementSibling}if(l)s.contains(l)||s.appendChild(l);else{l=document.createElement("div"),l.setAttribute("data-portalid",e);for(const p of t)l.classList.add(p);s.appendChild(l)}return vo.createPortal(r,l)},[n])}const Ga=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","0"];async function sc(e,t,n,r,a,s){const l=typeof e.options=="function"?e.options(t.value):e.options||[],c=l instanceof Promise,p=u=>u.replace(/([.?*+^$[\]\\(){}|-])/g,"");n({pending:c}),s.current=c?l:null;const m=c?await l||[]:l||[];if(c&&s.current!==l)return;let f=Array.from(m).filter(Boolean).map(u=>new W.SpsOptionListOption(u,typeof u=="function"?{textKey:"label",captionKey:"caption"}:{textKey:e.textKey,captionKey:e.captionKey}));if(e.nullOption&&f.unshift(new W.SpsOptionListOption(null,{text:e.nullOption})),t.value&&!e.disableDefaultOptionsFiltering){const u=p(t.value);n({replacementPattern:new RegExp(`(${u})`,"ig")}),f=f.filter(h=>{const S=new RegExp(u,"i"),y=p(h.text);return e.filterByTextAndCaptionKey?S.test(y)||S.test(p(h.caption)):S.test(y)})}else n({replacementPattern:null});if(e.disabledOptions)for(const u of f)e.disabledOptions.includes(u.value)&&(u.disabled=!0);r(Object.freeze(f)),e.onOptionListChanged&&e.onOptionListChanged(f.length),a(f.some(u=>u.value&&!!u.value.icon)),n({pending:!1})}function uS(e,t,n){const[r,a]=o.useState(Object.freeze([])),[s,l]=o.useState(!1),c=o.useRef(null),p=o.useRef(e.options);(typeof e.options!="function"||e.disableOptionsMemoization)&&(p.current=e.options);const m=o.useMemo(()=>typeof p.current=="function"?v.debounce(sc,typeof e.searchDebounce<"u"?e.searchDebounce:500):sc,[p.current,e.disabledOptions]);return o.useEffect(()=>{m(e,t,n,a,l,c)},[p.current,t.value,e.disabledOptions]),[r,s]}class gn{constructor(t,n){Yt(this,"nativeEvent");Yt(this,"currentTarget");Yt(this,"isPgStoppedInternal",!1);this.target=t,this.currentTarget=t,this.nativeEvent=new CustomEvent("change",n),Object.defineProperty(this.nativeEvent,"target",{value:t,writable:!1,configurable:!1,enumerable:!0})}get bubbles(){return this.nativeEvent.bubbles}get cancelable(){return this.nativeEvent.cancelable}get defaultPrevented(){return this.nativeEvent.defaultPrevented}get eventPhase(){return this.nativeEvent.eventPhase}get isTrusted(){return this.nativeEvent.isTrusted}get timeStamp(){return this.nativeEvent.timeStamp}get type(){return this.nativeEvent.type}preventDefault(){this.nativeEvent.preventDefault()}isDefaultPrevented(){return this.defaultPrevented}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPgStoppedInternal=!0}isPropagationStopped(){return this.isPgStoppedInternal}persist(){throw new Error("This is not a real React ChangeEvent. React does not permit the creation of SyntheticEvents in userland.")}}function mS(e,t){return{...e,...t}}function qt(e){return x.useReducer(mS,e)}function fS({hideInlineSearch:e,options:t,onSearchChange:n,search:r="",searchPlaceholder:a="Search…",searchInputRef:s}){const[l,c]=qt({isAsync:typeof t=="function",pending:!1,value:r,replacementPattern:null}),p=o.useCallback(S=>{c({value:S.target.value}),n&&n(S)},[n]),m=o.useCallback(S=>{S.nativeEvent.stopImmediatePropagation(),S.stopPropagation()},[]),f=o.useCallback(S=>{S.nativeEvent.stopImmediatePropagation(),c({value:""}),s!=null&&s.current&&(n&&n(new gn(s.current)),s.current.focus())},[n]),u=S=>{S&&(["Tab","Escape","Enter","Up","ArrowUp","Down","ArrowDown"].includes(S.key)||S.stopPropagation())};return o.useEffect(()=>{c({value:r})},[r]),[l.isAsync&&!e?o.createElement("div",{className:"sps-option-list__search sps-form-group sps-text-input"},o.createElement("div",{className:"sps-form-control"},!l.value&&o.createElement("i",{className:"sps-icon sps-icon-filter sps-text-input__icon"}),o.createElement("input",{type:"text",className:"sps-text-input__input",placeholder:a,ref:s,value:l.value,onChange:p,onClick:m,onKeyDown:u}),l.value&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:f}))):o.createElement(o.Fragment,null),l,c]}const hS=ko||Ka,SS=["Tab","Escape","Enter","Up","ArrowUp","Down","ArrowDown"];function gS(e,t,n){return n?(e&&e[n])===(t&&t[n]):e===t}function ic(e,t,n){return typeof n.value=="function"&&n.disabled?!0:t?!!(e!=null&&e.find(r=>{var a;return r[t]&&r[t]===((a=n==null?void 0:n.value)==null?void 0:a[t])})):!1}const Rr=o.forwardRef((e,t)=>{const{captionKey:n,comparisonKey:r,disabledOptions:a,options:s,tall:l,textKey:c,valueKey:p,zeroState:m,hideInlineSearch:f,onSearchChange:u,search:h,searchDebounce:S,searchPlaceholder:y,onSpecialActionSelect:T,attachTo:C,className:E,conformWidth:N,id:M,ignoreWidthStyles:I,isOpen:k,keepOpen:V,keyDown:R,nullOption:w,onOptionListChanged:P,onOptionSelected:O,onPositionFlip:$,onSelfToggle:J,optionRole:L,positionOverride:Z,selectedOption:A,specialAction:ne,unsafelyReplaceClassName:Y,loading:U,filterByTextAndCaptionKey:ae,maxHeightPx:H,maxHeightRem:q,disableOptionsMemoization:re,disableDefaultOptionsFiltering:oe,"data-testid":j,typeaheadEvent:B,...z}=e,Q=o.useMemo(()=>ne?new W.SpsOptionListOption(ne,{textKey:"label",captionKey:"caption"}):null,[ne]),[ee,de]=o.useState(-1),[ie,le]=o.useState(k),se=t||o.useRef(null),ke=o.useRef(null),Ie=o.useRef(null),it=cr("sps-option-list-portal"),lt=o.useContext(kt),[ut,ct]=Z||[W.Position.BOTTOM_LEFT,W.Position.TOP_LEFT],[[Pt,je],fe]=o.useState([{},!1]),Fe=o.useRef(null),[ve,Oe,Qe]=fS({...e,searchInputRef:Fe}),[we,Ht]=uS(e,Oe,Qe);o.useEffect(()=>{B&&pt(B)},[B]),o.useEffect(()=>{fe(ie?An(se,C,ut,{altPosition:ct,setMinWidth:!I,setWidth:!I&&N,...lt}):[{},!1])},[ie,ut,ct,we]),o.useEffect(()=>{let be;return ie&&(be=()=>{ie&&fe(An(se,C,ut,{altPosition:ct,setMinWidth:!I,setWidth:!I&&N,...lt}))},document.addEventListener("scroll",be)),()=>{be&&document.removeEventListener("scroll",be)}},[ie]),o.useEffect(()=>{de(-1)},[Oe]);const Mn=G(Y||"sps-option-list","z-stratum-dropdown",ie&&"sps-option-list--open",Oe.isAsync&&"sps-option-list--searchable",je&&"sps-option-list--opens-upward",ne&&ne.label&&"sps-option-list--has-special-action",E),ue=G(Y||"sps-option-list__options",l&&"sps-option-list__options--tall"),Se=o.useCallback(()=>{ie||(le(!0),Fe.current&&Fe.current.focus(),de(-1),J&&J(!0))},[ie,J]),Ce=o.useCallback(()=>{ie&&(le(!1),de(-1),J&&J(!1))},[ie,J]),qe=o.useCallback((be,Te)=>{Te||be&&!be.disabled&&(typeof be.value=="function"?(be.value(),T&&T()):typeof O=="function"&&O(be.value),V||Ce())},[O,Ce]),xe=o.useCallback((be,Te,Xe)=>{be.stopPropagation(),qe(Te,Xe)},[qe]),dt=o.useRef(a||[]);dt.current=a||[];const Tt=o.useCallback(be=>{switch(be.key){case"Tab":case"Escape":Ce();break;case"Enter":if(ee>-1){const Te=we[ee]||Q;be.preventDefault();const Xe=!!Te&&ic(dt.current,r||"",Te);!Xe&&Te&&typeof O=="function"&&typeof Te.value=="function"?Te.value():Te&&qe(Te,Xe)}break;case"Up":case"ArrowUp":{let Te=ee;je?ee<=-1?Te=we.length-1:ee===0?ne&&(Te=we.length):ee<we.length&&(Te=ee-1):ee>-1&&(Te=ee-1),Te!==ee&&(be.preventDefault(),de(Te));break}case"Down":case"ArrowDown":{Se();let Te=ee;je?ee!==-1&&(ee>=we.length?Te=0:ee===we.length-1?Te=-1:Te=ee+1):ee<we.length-1+ +!!ne&&(Te=ee+1),Te!==ee&&(be.preventDefault(),de(Te));break}default:Se()}},[Ce,Se,ee,qe,O,je,we]),Ae=o.useCallback(be=>{Se();const Te=we.findIndex(Xe=>{if(Xe.textKey){const Rt=Xe.textKey;return Xe.value[Rt].toLowerCase().charAt([0])===be.key.toLocaleLowerCase()}return Xe.value.toString().toLowerCase().charAt([0])===be.key.toLocaleLowerCase()});Te>-1&&de(Te)},[we]),pt=o.useCallback(be=>{be&&(SS.includes(be.key)?Tt(be):Ga.includes(be.key)&&!f&&Ae(be))},[Ce,Se,ee,qe,O,je,we]);o.useEffect(()=>{if(lt!==null&&document.getElementsByClassName("sps-modal__body").length>0){const be=()=>{J&&J(!1)},Te=document.getElementsByClassName("sps-modal__body")[0];return Te.addEventListener("scroll",be),()=>{Te.removeEventListener("scroll",be)}}},[]),o.useEffect(()=>{ie&&Ie.current&&hS(Ie.current,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})},[ee,ie]),o.useEffect(()=>{le(k),k?Fe.current&&Fe.current.focus():de(-1)},[k]),o.useEffect(()=>{R&&pt(R)},[R]),o.useEffect(()=>{!ie&&ke.current&&(Qe({value:""}),ke.current.scrollTop=0),ie&&$&&$(je)},[ie]);const _n=H?H/16:q,Xt=_n?{maxHeight:`${_n}rem`}:{};function va(be,Te){return Te?o.createElement(o.Fragment,null,be.split(Te).map((Xe,Rt)=>Te.test(Xe)?o.createElement("u",{key:Rt},Xe):o.createElement(o.Fragment,{key:Rt},Xe))):o.createElement(o.Fragment,null,be)}return it(o.createElement("div",{className:Mn,id:M,"aria-activedescendant":ee>-1?`${M}-option-${ee}`:"",tabIndex:-1,ref:se,style:Pt,onMouseLeave:()=>de(-1),"data-testid":j,...z},ve,o.createElement("div",{className:ue,ref:ke,"data-testid":`${j}-options`,style:Xt},!U&&!Oe.pending&&m&&we.length===0&&o.createElement("div",{className:"sps-option-list__zero-state"},m),(U||Oe.pending)&&o.createElement("div",{className:"sps-option-list__loading"},o.createElement(Ha,null)),!U&&!Oe.pending&&we.map((be,Te)=>{const Xe=`${M}-option-${Te}`,Rt=gS(be.value,A,r),me=ic(dt.current,r||"",be);return o.createElement("a",{key:Xe,id:Xe,role:L,"aria-selected":Rt,href:be.href,className:G("sps-option-list__option",be.caption&&"sps-option-list__option--has-caption",be.disabled&&"sps-option-list__option--disabled",be.bold&&"sps-option-list__option--bold",(Rt||me)&&"sps-option-list__option--selected",ee===Te&&"sps-option-list__option--highlighted"),onClick:El=>xe(El,be,me),onMouseOver:()=>de(Te),tabIndex:-1,ref:ee===Te?Ie:null,"data-testid":`${j}-option-${Te}`},be.value&&be.value.icon&&o.createElement("i",{className:G("sps-icon","sps-option-list__option-icon",`sps-icon-${String(be.value.icon)}`)}),(!be.value||!be.value.icon&&Ht)&&o.createElement("span",{className:"sps-option-list__option-icon-spacer"}),o.createElement("span",null,va(be.text,Oe.replacementPattern)),be.caption&&o.createElement("div",{className:"sps-option-list__option-caption"},o.createElement("span",null,va(be.caption,Oe.replacementPattern))))})),Q&&(ne==null?void 0:ne.label)&&o.createElement("a",{className:G("sps-option-list__option","sps-option-list__special-action",ee===we.length&&"sps-option-list__option--highlighted",ne.disabled&&"sps-option-list__special-action--disabled"),href:Q.href,target:Q.href&&ne.newTab?"_blank":"_self",onClick:be=>xe(be,Q),onMouseOver:()=>de(we.length),"data-testid":`${j}-special-action`},ne.icon&&o.createElement("i",{className:G("sps-icon","sps-option-list__option-icon",`sps-icon-${String(ne.icon)}`)}),!ne.icon&&Ht&&o.createElement("span",{className:"sps-option-list__option-icon-spacer"}),o.createElement("span",null,ne.label))))});Object.assign(Rr,{displayName:"SpsOptionList"});function bS(e,t,n=[]){return o.useMemo(()=>{function r(a){return o.createElement(e,{...a,...t},a.children)}return r},n)}function vt(e){return typeof e=="function"?e():e}const lc=function({children:e,elements:t}){if(t.length===0)return o.createElement(o.Fragment,null,e);const[n,r]=Array.isArray(t[0])?t[0]:[t[0]];return o.createElement(n,{...r??{}},o.createElement(lc,{elements:t.slice(1)},e))},cc=function({children:e,providers:t=[],...n}){return o.createElement("div",{...n},o.createElement(lc,{elements:t},e))},vS=function({children:e,className:t,...n}){return o.createElement(cc,{className:`sps-app ${t}`,...n},e)};function It(e=[],t=[]){const n=Array.isArray(e)?v.flatten(e):[e],r=t.map(s=>Array.isArray(s)?s:[s]),a=new Array(r.length+1).fill(null).map(()=>[]);for(const s of n){let l=!1;for(let c=0;c<r.length;c+=1)for(const{type:p,props:m={}}of r[c])if(s.type===p&&Object.keys(m).every(u=>m[u]===s.props[u])){l=!0,a[c].push(s);break}l||a[a.length-1].push(s)}return a}function dc(e,t,n){const r=Object.entries(t).filter(([,s])=>typeof s!="string"&&s.deprecated).map(([s])=>s),a=r.map(s=>n[s]);o.useEffect(()=>{a.find(s=>typeof s<"u")&&console.warn(`The following prop(s) of ${e} are deprecated: ${r.join(", ")}`)},a)}function Ya(e,t){const n=x.useRef(!1);x.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function Ua(e,t,n){const r=o.useRef(t(...n));o.useEffect(()=>(document.addEventListener(e,r.current,{capture:!0}),()=>document.removeEventListener(e,r.current)),[]),o.useEffect(()=>{document.removeEventListener(e,r.current),r.current=t(...n),document.addEventListener(e,r.current,{capture:!0})},n)}function pc(e,t,n){return function(a){var s,l;!((s=e.current)!=null&&s.contains(a.target))&&!((l=t.current)!=null&&l.contains(a.target))&&n()}}function dr(e,t,n){const r=o.useRef(!1),[a,s]=o.useState(!1),l=o.useCallback(()=>{r.current?r.current=!1:s(!0)},[]),c=o.useCallback((p=!1)=>{s(!1),r.current=p,n&&n()},[]);return Ua("mousedown",pc,[e,t,c]),Ua("pointerdown",pc,[e,t,c]),{showPopup:a,doShowPopup:l,doHidePopup:c}}const uc=e=>{const t=/(auto|scroll)/,n=(c,p)=>c.parentNode===null?p:n(c.parentNode,p.concat([c])),r=(c,p)=>getComputedStyle(c,null).getPropertyValue(p),a=c=>r(c,"overflow")+r(c,"overflow-y"),s=c=>t.test(a(c));return(c=>{if(!(c instanceof HTMLElement||c instanceof SVGElement))return;const p=n(c.parentNode,[]);for(let m=0;m<p.length;m+=1)if(s(p[m]))return p[m];return null})(e)};let za=0;function Br({isOpen:e,rootRef:t}){o.useLayoutEffect(()=>{let n,r,a;if(e&&t.current){za+=1,n=uc(t.current)||document.body,r=n===document.body?window.innerWidth-document.documentElement.clientWidth:n.offsetWidth-n.clientWidth,n.style.overflow="hidden";const s=window.getComputedStyle(n).paddingRight;if(n.style.paddingRight=s&&s!=="0px"?`calc(${s} + ${r}px)`:`${r}px`,n===document.body)if(a=document.getElementsByClassName("sps-navbar-container").item(0),a&&window.getComputedStyle(a).position==="fixed"){const l=window.getComputedStyle(a).paddingRight;a.style.paddingRight=l&&l!=="0px"?`calc(${l} + ${r}px)`:`${r}px`}else{const l=document.getElementsByTagName("nav").item(0);if(a=l==null?void 0:l.parentElement,a&&window.getComputedStyle(a).position==="fixed"){const c=window.getComputedStyle(a).paddingRight;a.style.paddingRight=c&&c!=="0px"?`calc(${c} + ${r}px)`:`${r}px`}}}return()=>{n&&(za-=1,za===0&&(n.style.overflow=null,n.style.paddingRight=null,a&&(a.style.paddingRight=null)))}},[e])}const yS={debounce:"number",disabled:"boolean",formMeta:"SpsFormFieldMeta<string>",icon:"SpsIcon",onChange:"React.ChangeEventHandler",onSelectionChange:"(newValue: string) => void",placeholder:"string",suggestions:{type:`
|
|
2
2
|
Eventually<Iterable<string>>
|
|
3
3
|
| ((filter?: string) => Eventually<Iterable<string>>)
|
|
4
4
|
`,required:!0},tallOptionList:"boolean",value:"string",zeroState:"string",loading:"boolean",maxHeightOptionListPx:"number",maxHeightOptionListRem:"number",disableOptionsMemoization:"boolean",inputNotClearable:"boolean",autoFocusOnSelection:"boolean"};function Jt({className:e,debounce:t=0,disabled:n,formControl:r,formMeta:a,onChange:s,onSelectionChange:l,icon:c,id:p,placeholder:m="",suggestions:f,unsafelyReplaceClassName:u,tallOptionList:h,value:S="",zeroState:y,loading:T,maxHeightOptionListPx:C,maxHeightOptionListRem:E,disableOptionsMemoization:N,inputNotClearable:M,autoFocusOnSelection:I,"data-testid":k,...V}){const R=a||r,{wrapperId:w,controlId:P}=bt(p,R),[O,$]=qt({keyDown:null,opensUpward:!1}),J=o.useRef(null),L=o.useRef(null),Z=o.useRef(null),{showPopup:A,doShowPopup:ne,doHidePopup:Y}=dr(J,Z);function U(B,z,Q=!1){R&&(R.setValue(B),R.markAsDirty()),l&&Q?l(B):s&&s(z||new gn({value:B}))}function ae(B){L.current&&(L.current.value="",U("")),B.stopPropagation()}function H(B){U(B.target.value,B)}function q(B){n||(["Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(B.key)>-1&&(B.preventDefault(),B.persist()),B.stopPropagation(),$({keyDown:B})),B.key==="Tab"&&Y()}function re(B){B?ne():Y()}function oe(B){$({opensUpward:B})}const j=G(u||"sps-autocomplete",A&&"sps-autocomplete--open",A&&"z-stratum-dropdown",O.opensUpward&&"sps-autocomplete--opens-upward",n&&"sps-form-control--disabled",e);return o.useEffect(()=>{let B;return A&&(B=()=>{Y()},window.addEventListener("resize",B)),()=>{B&&window.removeEventListener("resize",B)}},[A]),Br({isOpen:A,rootRef:J}),o.createElement(at,{id:w,className:j,formControl:r,formMeta:a,inputRef:L,ref:J,focusInputOnClick:!0,onClick:B=>B.nativeEvent.stopImmediatePropagation(),"data-testid":`${k}`},o.createElement("div",{className:"sps-text-input"},o.createElement("div",{className:"sps-form-control"},c&&o.createElement("i",{className:G("sps-text-input__icon","sps-icon",`sps-icon-${c}`)}),o.createElement("input",{type:"text",ref:L,value:S,className:"sps-text-input__input",placeholder:m,onFocus:ne,onClick:ne,onChange:H,onKeyDown:q,disabled:n,id:P,"data-testid":`${k}__input`,...V}),S&&!n&&!M&&o.createElement("i",{"aria-label":"clear",className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:B=>ae(B)}))),o.createElement(Rr,{id:`${w}_options`,ref:Z,attachTo:J,isOpen:A,options:f,hideInlineSearch:!0,keyDown:O.keyDown,onOptionSelected:B=>{var z;U(B,void 0,!0),I&&((z=L.current)==null||z.focus())},onPositionFlip:oe,onSelfToggle:re,offsets:[1,0],search:S,searchDebounce:t,tall:h,zeroState:y,loading:T,maxHeightPx:C,maxHeightRem:E,disableOptionsMemoization:N}))}Object.assign(Jt,{props:yS,displayName:"SpsAutocomplete"});const mc={basic:{label:"Basic",examples:{basic:{react:v.code`
|
|
@@ -337,11 +337,11 @@
|
|
|
337
337
|
*
|
|
338
338
|
* This source code is licensed under the MIT license found in the
|
|
339
339
|
* LICENSE file in the root directory of this source tree.
|
|
340
|
-
*/var kc;function OS(){return kc||(kc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function M(se){return typeof se=="string"||typeof se=="function"||se===r||se===m||se===s||se===a||se===u||se===h||typeof se=="object"&&se!==null&&(se.$$typeof===y||se.$$typeof===S||se.$$typeof===l||se.$$typeof===c||se.$$typeof===f||se.$$typeof===C||se.$$typeof===E||se.$$typeof===N||se.$$typeof===T)}function I(se){if(typeof se=="object"&&se!==null){var
|
|
340
|
+
*/var kc;function OS(){return kc||(kc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function M(se){return typeof se=="string"||typeof se=="function"||se===r||se===m||se===s||se===a||se===u||se===h||typeof se=="object"&&se!==null&&(se.$$typeof===y||se.$$typeof===S||se.$$typeof===l||se.$$typeof===c||se.$$typeof===f||se.$$typeof===C||se.$$typeof===E||se.$$typeof===N||se.$$typeof===T)}function I(se){if(typeof se=="object"&&se!==null){var ke=se.$$typeof;switch(ke){case t:var Ie=se.type;switch(Ie){case p:case m:case r:case s:case a:case u:return Ie;default:var it=Ie&&Ie.$$typeof;switch(it){case c:case f:case y:case S:case l:return it;default:return ke}}case n:return ke}}}var k=p,V=m,R=c,w=l,P=t,O=f,$=r,J=y,L=S,Z=n,A=s,ne=a,Y=u,U=!1;function ae(se){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(se)||I(se)===p}function H(se){return I(se)===m}function q(se){return I(se)===c}function re(se){return I(se)===l}function oe(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function j(se){return I(se)===f}function B(se){return I(se)===r}function z(se){return I(se)===y}function Q(se){return I(se)===S}function ee(se){return I(se)===n}function de(se){return I(se)===s}function ie(se){return I(se)===a}function le(se){return I(se)===u}Be.AsyncMode=k,Be.ConcurrentMode=V,Be.ContextConsumer=R,Be.ContextProvider=w,Be.Element=P,Be.ForwardRef=O,Be.Fragment=$,Be.Lazy=J,Be.Memo=L,Be.Portal=Z,Be.Profiler=A,Be.StrictMode=ne,Be.Suspense=Y,Be.isAsyncMode=ae,Be.isConcurrentMode=H,Be.isContextConsumer=q,Be.isContextProvider=re,Be.isElement=oe,Be.isForwardRef=j,Be.isFragment=B,Be.isLazy=z,Be.isMemo=Q,Be.isPortal=ee,Be.isProfiler=de,Be.isStrictMode=ie,Be.isSuspense=le,Be.isValidElementType=M,Be.typeOf=I}()),Be}process.env.NODE_ENV==="production"?Ja.exports=LS():Ja.exports=OS();var Za=Ja.exports;/*
|
|
341
341
|
object-assign
|
|
342
342
|
(c) Sindre Sorhus
|
|
343
343
|
@license MIT
|
|
344
|
-
*/var Xa,Ic;function PS(){if(Ic)return Xa;Ic=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var p=Object.getOwnPropertyNames(l).map(function(f){return l[f]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(f){m[f]=f}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xa=a()?Object.assign:function(s,l){for(var c,p=r(s),m,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var u in c)t.call(c,u)&&(p[u]=c[u]);if(e){m=e(c);for(var h=0;h<m.length;h++)n.call(c,m[h])&&(p[m[h]]=c[m[h]])}}return p},Xa}var Qa,xc;function es(){if(xc)return Qa;xc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qa=e,Qa}var ts,Mc;function _c(){return Mc||(Mc=1,ts=Function.call.bind(Object.prototype.hasOwnProperty)),ts}var ns,Lc;function RS(){if(Lc)return ns;Lc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=es(),n={},r=_c();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,p,m){if(process.env.NODE_ENV!=="production"){for(var f in s)if(r(s,f)){var u;try{if(typeof s[f]!="function"){var h=Error((p||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=s[f](l,f,p,c,null,t)}catch(y){u=y}if(u&&!(u instanceof Error)&&e((p||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var S=m?m():"";e("Failed "+c+" type: "+u.message+(S??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ns=a,ns}var rs,Oc;function BS(){if(Oc)return rs;Oc=1;var e=Za,t=PS(),n=es(),r=_c(),a=RS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var p="Warning: "+c;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function l(){return null}return rs=function(c,p){var m=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(H){var q=H&&(m&&H[m]||H[f]);if(typeof q=="function")return q}var h="<<anonymous>>",S={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:N(),arrayOf:M,element:I(),elementType:k(),instanceOf:V,node:O(),objectOf:w,oneOf:R,oneOfType:P,shape:J,exact:L};function y(H,q){return H===q?H!==0||1/H===1/q:H!==H&&q!==q}function T(H,q){this.message=H,this.data=q&&typeof q=="object"?q:{},this.stack=""}T.prototype=Error.prototype;function C(H){if(process.env.NODE_ENV!=="production")var q={},re=0;function oe(B,z,Q,ee,de,ie,le){if(ee=ee||h,ie=ie||Q,le!==n){if(p){var se=new 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 se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var
|
|
344
|
+
*/var Xa,Ic;function PS(){if(Ic)return Xa;Ic=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var p=Object.getOwnPropertyNames(l).map(function(f){return l[f]});if(p.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(f){m[f]=f}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xa=a()?Object.assign:function(s,l){for(var c,p=r(s),m,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var u in c)t.call(c,u)&&(p[u]=c[u]);if(e){m=e(c);for(var h=0;h<m.length;h++)n.call(c,m[h])&&(p[m[h]]=c[m[h]])}}return p},Xa}var Qa,xc;function es(){if(xc)return Qa;xc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qa=e,Qa}var ts,Mc;function _c(){return Mc||(Mc=1,ts=Function.call.bind(Object.prototype.hasOwnProperty)),ts}var ns,Lc;function RS(){if(Lc)return ns;Lc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=es(),n={},r=_c();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,p,m){if(process.env.NODE_ENV!=="production"){for(var f in s)if(r(s,f)){var u;try{if(typeof s[f]!="function"){var h=Error((p||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=s[f](l,f,p,c,null,t)}catch(y){u=y}if(u&&!(u instanceof Error)&&e((p||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var S=m?m():"";e("Failed "+c+" type: "+u.message+(S??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ns=a,ns}var rs,Oc;function BS(){if(Oc)return rs;Oc=1;var e=Za,t=PS(),n=es(),r=_c(),a=RS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var p="Warning: "+c;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function l(){return null}return rs=function(c,p){var m=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function u(H){var q=H&&(m&&H[m]||H[f]);if(typeof q=="function")return q}var h="<<anonymous>>",S={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:N(),arrayOf:M,element:I(),elementType:k(),instanceOf:V,node:O(),objectOf:w,oneOf:R,oneOfType:P,shape:J,exact:L};function y(H,q){return H===q?H!==0||1/H===1/q:H!==H&&q!==q}function T(H,q){this.message=H,this.data=q&&typeof q=="object"?q:{},this.stack=""}T.prototype=Error.prototype;function C(H){if(process.env.NODE_ENV!=="production")var q={},re=0;function oe(B,z,Q,ee,de,ie,le){if(ee=ee||h,ie=ie||Q,le!==n){if(p){var se=new 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 se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=ee+":"+Q;!q[ke]&&re<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ie+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[ke]=!0,re++)}}return z[Q]==null?B?z[Q]===null?new T("The "+de+" `"+ie+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new T("The "+de+" `"+ie+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:H(z,Q,ee,de,ie)}var j=oe.bind(null,!1);return j.isRequired=oe.bind(null,!0),j}function E(H){function q(re,oe,j,B,z,Q){var ee=re[oe],de=ne(ee);if(de!==H){var ie=Y(ee);return new T("Invalid "+B+" `"+z+"` of type "+("`"+ie+"` supplied to `"+j+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return C(q)}function N(){return C(l)}function M(H){function q(re,oe,j,B,z){if(typeof H!="function")return new T("Property `"+z+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var Q=re[oe];if(!Array.isArray(Q)){var ee=ne(Q);return new T("Invalid "+B+" `"+z+"` of type "+("`"+ee+"` supplied to `"+j+"`, expected an array."))}for(var de=0;de<Q.length;de++){var ie=H(Q,de,j,B,z+"["+de+"]",n);if(ie instanceof Error)return ie}return null}return C(q)}function I(){function H(q,re,oe,j,B){var z=q[re];if(!c(z)){var Q=ne(z);return new T("Invalid "+j+" `"+B+"` of type "+("`"+Q+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(H)}function k(){function H(q,re,oe,j,B){var z=q[re];if(!e.isValidElementType(z)){var Q=ne(z);return new T("Invalid "+j+" `"+B+"` of type "+("`"+Q+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(H)}function V(H){function q(re,oe,j,B,z){if(!(re[oe]instanceof H)){var Q=H.name||h,ee=ae(re[oe]);return new T("Invalid "+B+" `"+z+"` of type "+("`"+ee+"` supplied to `"+j+"`, expected ")+("instance of `"+Q+"`."))}return null}return C(q)}function R(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function q(re,oe,j,B,z){for(var Q=re[oe],ee=0;ee<H.length;ee++)if(y(Q,H[ee]))return null;var de=JSON.stringify(H,function(le,se){var ke=Y(se);return ke==="symbol"?String(se):se});return new T("Invalid "+B+" `"+z+"` of value `"+String(Q)+"` "+("supplied to `"+j+"`, expected one of "+de+"."))}return C(q)}function w(H){function q(re,oe,j,B,z){if(typeof H!="function")return new T("Property `"+z+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var Q=re[oe],ee=ne(Q);if(ee!=="object")return new T("Invalid "+B+" `"+z+"` of type "+("`"+ee+"` supplied to `"+j+"`, expected an object."));for(var de in Q)if(r(Q,de)){var ie=H(Q,de,j,B,z+"."+de,n);if(ie instanceof Error)return ie}return null}return C(q)}function P(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var q=0;q<H.length;q++){var re=H[q];if(typeof re!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(re)+" at index "+q+"."),l}function oe(j,B,z,Q,ee){for(var de=[],ie=0;ie<H.length;ie++){var le=H[ie],se=le(j,B,z,Q,ee,n);if(se==null)return null;se.data&&r(se.data,"expectedType")&&de.push(se.data.expectedType)}var ke=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new T("Invalid "+Q+" `"+ee+"` supplied to "+("`"+z+"`"+ke+"."))}return C(oe)}function O(){function H(q,re,oe,j,B){return Z(q[re])?null:new T("Invalid "+j+" `"+B+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(H)}function $(H,q,re,oe,j){return new T((H||"React class")+": "+q+" type `"+re+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function J(H){function q(re,oe,j,B,z){var Q=re[oe],ee=ne(Q);if(ee!=="object")return new T("Invalid "+B+" `"+z+"` of type `"+ee+"` "+("supplied to `"+j+"`, expected `object`."));for(var de in H){var ie=H[de];if(typeof ie!="function")return $(j,B,z,de,Y(ie));var le=ie(Q,de,j,B,z+"."+de,n);if(le)return le}return null}return C(q)}function L(H){function q(re,oe,j,B,z){var Q=re[oe],ee=ne(Q);if(ee!=="object")return new T("Invalid "+B+" `"+z+"` of type `"+ee+"` "+("supplied to `"+j+"`, expected `object`."));var de=t({},re[oe],H);for(var ie in de){var le=H[ie];if(r(H,ie)&&typeof le!="function")return $(j,B,z,ie,Y(le));if(!le)return new T("Invalid "+B+" `"+z+"` key `"+ie+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(re[oe],null," ")+`
|
|
345
345
|
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."+ie,n);if(se)return se}return null}return C(q)}function Z(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(Z);if(H===null||c(H))return!0;var q=u(H);if(q){var re=q.call(H),oe;if(q!==H.entries){for(;!(oe=re.next()).done;)if(!Z(oe.value))return!1}else for(;!(oe=re.next()).done;){var j=oe.value;if(j&&!Z(j[1]))return!1}}else return!1;return!0;default:return!1}}function A(H,q){return H==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function ne(H){var q=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":A(q,H)?"symbol":q}function Y(H){if(typeof H>"u"||H===null)return""+H;var q=ne(H);if(q==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return q}function U(H){var q=Y(H);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function ae(H){return!H.constructor||!H.constructor.name?h:H.constructor.name}return S.checkPropTypes=a,S.resetWarningCache=a.resetWarningCache,S.PropTypes=S,S},rs}var os,Pc;function AS(){if(Pc)return os;Pc=1;var e=es();function t(){}function n(){}return n.resetWarningCache=t,os=function(){function r(l,c,p,m,f,u){if(u!==e){var h=new 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 h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},os}if(process.env.NODE_ENV!=="production"){var FS=Za,VS=!0;qa.exports=BS()(FS.isElement,VS)}else qa.exports=AS()();var $S=qa.exports;const pr=Pa($S);var as=x.createContext(null);process.env.NODE_ENV!=="production"&&(as.displayName="ReactRedux");function KS(e){e()}var Rc=KS,HS=function(t){return Rc=t},WS=function(){return Rc};function GS(){var e=WS(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var a=t;a;)a.callback(),a=a.next})},get:function(){for(var a=[],s=t;s;)a.push(s),s=s.next;return a},subscribe:function(a){var s=!0,l=n={callback:a,next:null,prev:n};return l.prev?l.prev.next=l:t=l,function(){!s||t===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:t=l.next)}}}}var Bc={notify:function(){},get:function(){return[]}};function Ac(e,t){var n,r=Bc;function a(u){return p(),r.subscribe(u)}function s(){r.notify()}function l(){f.onStateChange&&f.onStateChange()}function c(){return!!n}function p(){n||(n=t?t.addNestedSub(l):e.subscribe(l),r=GS())}function m(){n&&(n(),n=void 0,r.clear(),r=Bc)}var f={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:m,getListeners:function(){return r}};return f}var Fc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect;function Vc(e){var t=e.store,n=e.context,r=e.children,a=x.useMemo(function(){var c=Ac(t);return{store:t,subscription:c}},[t]),s=x.useMemo(function(){return t.getState()},[t]);Fc(function(){var c=a.subscription;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==t.getState()&&c.notifyNestedSubs(),function(){c.tryUnsubscribe(),c.onStateChange=null}},[a,s]);var l=n||as;return x.createElement(l.Provider,{value:a},r)}process.env.NODE_ENV!=="production"&&(Vc.propTypes={store:pr.shape({subscribe:pr.func.isRequired,dispatch:pr.func.isRequired,getState:pr.func.isRequired}),context:pr.object,children:pr.any});function xo(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var ss=Za,YS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},US={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},is={};is[ss.ForwardRef]=zS,is[ss.Memo]=$c;function Kc(e){return ss.isMemo(e)?$c:is[e.$$typeof]||YS}var jS=Object.defineProperty,qS=Object.getOwnPropertyNames,Hc=Object.getOwnPropertySymbols,JS=Object.getOwnPropertyDescriptor,ZS=Object.getPrototypeOf,Wc=Object.prototype;function Gc(e,t,n){if(typeof t!="string"){if(Wc){var r=ZS(t);r&&r!==Wc&&Gc(e,r,n)}var a=qS(t);Hc&&(a=a.concat(Hc(t)));for(var s=Kc(e),l=Kc(t),c=0;c<a.length;++c){var p=a[c];if(!US[p]&&!(n&&n[p])&&!(l&&l[p])&&!(s&&s[p])){var m=JS(t,p);try{jS(e,p,m)}catch{}}}}return e}var XS=Gc;const Yc=Pa(XS);var ls={exports:{}},Ve={};/** @license React v17.0.2
|
|
346
346
|
* react-is.production.min.js
|
|
347
347
|
*
|
|
@@ -356,7 +356,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
356
356
|
*
|
|
357
357
|
* This source code is licensed under the MIT license found in the
|
|
358
358
|
* LICENSE file in the root directory of this source tree.
|
|
359
|
-
*/var zc;function eg(){return zc||(zc=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,n=60107,r=60108,a=60114,s=60109,l=60110,c=60112,p=60113,m=60120,f=60115,u=60116,h=60121,S=60122,y=60117,T=60129,C=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),n=E("react.fragment"),r=E("react.strict_mode"),a=E("react.profiler"),s=E("react.provider"),l=E("react.context"),c=E("react.forward_ref"),p=E("react.suspense"),m=E("react.suspense_list"),f=E("react.memo"),u=E("react.lazy"),h=E("react.block"),S=E("react.server.block"),y=E("react.fundamental"),E("react.scope"),E("react.opaque.id"),T=E("react.debug_trace_mode"),E("react.offscreen"),C=E("react.legacy_hidden")}var N=!1;function M(le){return!!(typeof le=="string"||typeof le=="function"||le===n||le===a||le===T||le===r||le===p||le===m||le===C||N||typeof le=="object"&&le!==null&&(le.$$typeof===u||le.$$typeof===f||le.$$typeof===s||le.$$typeof===l||le.$$typeof===c||le.$$typeof===y||le.$$typeof===h||le[0]===S))}function I(le){if(typeof le=="object"&&le!==null){var se=le.$$typeof;switch(se){case e:var Ne=le.type;switch(Ne){case n:case a:case r:case p:case m:return Ne;default:var ke=Ne&&Ne.$$typeof;switch(ke){case l:case c:case u:case f:case s:return ke;default:return se}}case t:return se}}}var k=l,V=s,R=e,w=c,P=n,O=u,$=f,J=t,L=a,Z=r,A=p,ne=!1,Y=!1;function U(le){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(le){return Y||(Y=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(le){return I(le)===l}function q(le){return I(le)===s}function re(le){return typeof le=="object"&&le!==null&&le.$$typeof===e}function oe(le){return I(le)===c}function j(le){return I(le)===n}function B(le){return I(le)===u}function z(le){return I(le)===f}function Q(le){return I(le)===t}function ee(le){return I(le)===a}function de(le){return I(le)===r}function ie(le){return I(le)===p}$e.ContextConsumer=k,$e.ContextProvider=V,$e.Element=R,$e.ForwardRef=w,$e.Fragment=P,$e.Lazy=O,$e.Memo=$,$e.Portal=J,$e.Profiler=L,$e.StrictMode=Z,$e.Suspense=A,$e.isAsyncMode=U,$e.isConcurrentMode=ae,$e.isContextConsumer=H,$e.isContextProvider=q,$e.isElement=re,$e.isForwardRef=oe,$e.isFragment=j,$e.isLazy=B,$e.isMemo=z,$e.isPortal=Q,$e.isProfiler=ee,$e.isStrictMode=de,$e.isSuspense=ie,$e.isValidElementType=M,$e.typeOf=I}()),$e}process.env.NODE_ENV==="production"?ls.exports=QS():ls.exports=eg();var jc=ls.exports,tg=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ng=["reactReduxForwardedRef"],rg=[],og=[null,null],ag=function(t){try{return JSON.stringify(t)}catch{return String(t)}};function sg(e,t){var n=e[1];return[t.payload,n+1]}function qc(e,t,n){Fc(function(){return e.apply(void 0,t)},n)}function ig(e,t,n,r,a,s,l){e.current=r,t.current=a,n.current=!1,s.current&&(s.current=null,l())}function lg(e,t,n,r,a,s,l,c,p,m){if(e){var f=!1,u=null,h=function(){if(!f){var T=t.getState(),C,E;try{C=r(T,a.current)}catch(N){E=N,u=N}E||(u=null),C===s.current?l.current||p():(s.current=C,c.current=C,l.current=!0,m({type:"STORE_UPDATED",payload:{error:E}}))}};n.onStateChange=h,n.trySubscribe(),h();var S=function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u};return S}}var cg=function(){return[null,0]};function dg(e,t){t===void 0&&(t={});var n=t,r=n.getDisplayName,a=r===void 0?function(V){return"ConnectAdvanced("+V+")"}:r,s=n.methodName,l=s===void 0?"connectAdvanced":s,c=n.renderCountProp,p=c===void 0?void 0:c,m=n.shouldHandleStateChanges,f=m===void 0?!0:m,u=n.storeKey,h=u===void 0?"store":u,S=n.withRef,y=S===void 0?!1:S,T=n.forwardRef,C=T===void 0?!1:T,E=n.context,N=E===void 0?as:E,M=xo(n,tg);if(process.env.NODE_ENV!=="production"){if(p!==void 0)throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");if(y)throw new Error("withRef is removed. To access the wrapped instance, use a ref on the connected component");var I="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";if(h!=="store")throw new Error("storeKey has been removed and does not do anything. "+I)}var k=N;return function(R){if(process.env.NODE_ENV!=="production"&&!jc.isValidElementType(R))throw new Error("You must pass a component to the function returned by "+(l+". Instead received "+ag(R)));var w=R.displayName||R.name||"Component",P=a(w),O=ye({},M,{getDisplayName:a,methodName:l,renderCountProp:p,shouldHandleStateChanges:f,storeKey:h,displayName:P,wrappedComponentName:w,WrappedComponent:R}),$=M.pure;function J(Y){return e(Y.dispatch,O)}var L=$?x.useMemo:function(Y){return Y()};function Z(Y){var U=x.useMemo(function(){var ve=Y.reactReduxForwardedRef,Le=xo(Y,ng);return[Y.context,ve,Le]},[Y]),ae=U[0],H=U[1],q=U[2],re=x.useMemo(function(){return ae&&ae.Consumer&&jc.isContextConsumer(x.createElement(ae.Consumer,null))?ae:k},[ae,k]),oe=x.useContext(re),j=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,B=!!oe&&!!oe.store;if(process.env.NODE_ENV!=="production"&&!j&&!B)throw new Error('Could not find "store" in the context of '+('"'+P+'". Either wrap the root component in a <Provider>, ')+"or pass a custom React context provider to <Provider> and the corresponding "+("React context consumer to "+P+" in connect options."));var z=j?Y.store:oe.store,Q=x.useMemo(function(){return J(z)},[z]),ee=x.useMemo(function(){if(!f)return og;var ve=Ac(z,j?null:oe.subscription),Le=ve.notifyNestedSubs.bind(ve);return[ve,Le]},[z,j,oe]),de=ee[0],ie=ee[1],le=x.useMemo(function(){return j?oe:ye({},oe,{subscription:de})},[j,oe,de]),se=x.useReducer(sg,rg,cg),Ne=se[0],ke=Ne[0],it=se[1];if(ke&&ke.error)throw ke.error;var lt=x.useRef(),ut=x.useRef(q),ct=x.useRef(),Pt=x.useRef(!1),je=L(function(){return ct.current&&q===ut.current?ct.current:Q(z.getState(),q)},[z,ke,q]);qc(ig,[ut,lt,Pt,q,je,ct,ie]),qc(lg,[f,z,de,Q,ut,lt,Pt,ct,ie,it],[z,de,Q]);var fe=x.useMemo(function(){return x.createElement(R,ye({},je,{ref:H}))},[H,R,je]),Fe=x.useMemo(function(){return f?x.createElement(re.Provider,{value:le},fe):fe},[re,fe,le]);return Fe}var A=$?x.memo(Z):Z;if(A.WrappedComponent=R,A.displayName=Z.displayName=P,C){var ne=x.forwardRef(function(U,ae){return x.createElement(A,ye({},U,{reactReduxForwardedRef:ae}))});return ne.displayName=P,ne.WrappedComponent=R,Yc(ne,R)}return Yc(A,R)}}function Jc(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function cs(e,t){if(Jc(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!Jc(e[n[a]],t[n[a]]))return!1;return!0}function pg(e,t){var n={},r=function(l){var c=e[l];typeof c=="function"&&(n[l]=function(){return t(c.apply(void 0,arguments))})};for(var a in e)r(a);return n}function ug(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function Zc(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Xc(e,t,n){ug(e)||Zc(n+"() in "+t+" must return a plain object. Instead received "+e+".")}function ds(e){return function(n,r){var a=e(n,r);function s(){return a}return s.dependsOnOwnProps=!1,s}}function Qc(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function ed(e,t){return function(r,a){var s=a.displayName,l=function(p,m){return l.dependsOnOwnProps?l.mapToProps(p,m):l.mapToProps(p)};return l.dependsOnOwnProps=!0,l.mapToProps=function(p,m){l.mapToProps=e,l.dependsOnOwnProps=Qc(e);var f=l(p,m);return typeof f=="function"&&(l.mapToProps=f,l.dependsOnOwnProps=Qc(f),f=l(p,m)),process.env.NODE_ENV!=="production"&&Xc(f,s,t),f},l}}function mg(e){return typeof e=="function"?ed(e,"mapDispatchToProps"):void 0}function fg(e){return e?void 0:ds(function(t){return{dispatch:t}})}function hg(e){return e&&typeof e=="object"?ds(function(t){return pg(e,t)}):void 0}const Sg=[mg,fg,hg];function gg(e){return typeof e=="function"?ed(e,"mapStateToProps"):void 0}function bg(e){return e?void 0:ds(function(){return{}})}const vg=[gg,bg];function yg(e,t,n){return ye({},n,e,t)}function Tg(e){return function(n,r){var a=r.displayName,s=r.pure,l=r.areMergedPropsEqual,c=!1,p;return function(f,u,h){var S=e(f,u,h);return c?(!s||!l(S,p))&&(p=S):(c=!0,p=S,process.env.NODE_ENV!=="production"&&Xc(p,a,"mergeProps")),p}}}function Eg(e){return typeof e=="function"?Tg(e):void 0}function wg(e){return e?void 0:function(){return yg}}const Cg=[Eg,wg];function ps(e,t,n){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||Zc("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps."));else throw new Error("Unexpected value for "+t+" in "+n+".")}function Dg(e,t,n,r){ps(e,"mapStateToProps",r),ps(t,"mapDispatchToProps",r),ps(n,"mergeProps",r)}var Ng=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function kg(e,t,n,r){return function(s,l){return n(e(s,l),t(r,l),l)}}function Ig(e,t,n,r,a){var s=a.areStatesEqual,l=a.areOwnPropsEqual,c=a.areStatePropsEqual,p=!1,m,f,u,h,S;function y(M,I){return m=M,f=I,u=e(m,f),h=t(r,f),S=n(u,h,f),p=!0,S}function T(){return u=e(m,f),t.dependsOnOwnProps&&(h=t(r,f)),S=n(u,h,f),S}function C(){return e.dependsOnOwnProps&&(u=e(m,f)),t.dependsOnOwnProps&&(h=t(r,f)),S=n(u,h,f),S}function E(){var M=e(m,f),I=!c(M,u);return u=M,I&&(S=n(u,h,f)),S}function N(M,I){var k=!l(I,f),V=!s(M,m,I,f);return m=M,f=I,k&&V?T():k?C():V?E():S}return function(I,k){return p?N(I,k):y(I,k)}}function xg(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,a=t.initMergeProps,s=xo(t,Ng),l=n(e,s),c=r(e,s),p=a(e,s);process.env.NODE_ENV!=="production"&&Dg(l,c,p,s.displayName);var m=s.pure?Ig:kg;return m(l,c,p,e,s)}var Mg=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function us(e,t,n){for(var r=t.length-1;r>=0;r--){var a=t[r](e);if(a)return a}return function(s,l){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+l.wrappedComponentName+".")}}function _g(e,t){return e===t}function Lg(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?dg:n,a=t.mapStateToPropsFactories,s=a===void 0?vg:a,l=t.mapDispatchToPropsFactories,c=l===void 0?Sg:l,p=t.mergePropsFactories,m=p===void 0?Cg:p,f=t.selectorFactory,u=f===void 0?xg:f;return function(S,y,T,C){C===void 0&&(C={});var E=C,N=E.pure,M=N===void 0?!0:N,I=E.areStatesEqual,k=I===void 0?_g:I,V=E.areOwnPropsEqual,R=V===void 0?cs:V,w=E.areStatePropsEqual,P=w===void 0?cs:w,O=E.areMergedPropsEqual,$=O===void 0?cs:O,J=xo(E,Mg),L=us(S,s,"mapStateToProps"),Z=us(y,c,"mapDispatchToProps"),A=us(T,m,"mergeProps");return r(u,ye({methodName:"connect",getDisplayName:function(Y){return"Connect("+Y+")"},shouldHandleStateChanges:!!S,initMapStateToProps:L,initMapDispatchToProps:Z,initMergeProps:A,pure:M,areStatesEqual:k,areOwnPropsEqual:R,areStatePropsEqual:P,areMergedPropsEqual:$},J))}}const td=Lg();HS(vo.unstable_batchedUpdates);function Og(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function nd(e,t){var n=x.useState(function(){return{inputs:t,result:e()}})[0],r=x.useRef(!0),a=x.useRef(n),s=r.current||!!(t&&a.current.inputs&&Og(t,a.current.inputs)),l=s?a.current:{inputs:t,result:e()};return x.useEffect(function(){r.current=!1,a.current=l},[l]),l.result}function Pg(e,t){return nd(function(){return e},t)}var Me=nd,ge=Pg,Rg=process.env.NODE_ENV==="production",ms="Invariant failed";function rd(e,t){if(Rg)throw new Error(ms);var n=typeof t=="function"?t():t,r=n?"".concat(ms,": ").concat(n):ms;throw new Error(r)}var At=function(t){var n=t.top,r=t.right,a=t.bottom,s=t.left,l=r-s,c=a-n,p={top:n,right:r,bottom:a,left:s,width:l,height:c,x:s,y:n,center:{x:(r+s)/2,y:(a+n)/2}};return p},fs=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}},od=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},Bg=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},hs={top:0,right:0,bottom:0,left:0},Ss=function(t){var n=t.borderBox,r=t.margin,a=r===void 0?hs:r,s=t.border,l=s===void 0?hs:s,c=t.padding,p=c===void 0?hs:c,m=At(fs(n,a)),f=At(od(n,l)),u=At(od(f,p));return{marginBox:m,borderBox:At(n),paddingBox:f,contentBox:u,margin:a,border:l,padding:p}},xt=function(t){var n=t.slice(0,-2),r=t.slice(-2);if(r!=="px")return 0;var a=Number(n);return isNaN(a)&&(process.env.NODE_ENV!=="production"?rd(!1,"Could not parse value [raw: "+t+", without suffix: "+n+"]"):rd()),a},Ag=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Mo=function(t,n){var r=t.borderBox,a=t.border,s=t.margin,l=t.padding,c=Bg(r,n);return Ss({borderBox:c,border:a,margin:s,padding:l})},_o=function(t,n){return n===void 0&&(n=Ag()),Mo(t,n)},ad=function(t,n){var r={top:xt(n.marginTop),right:xt(n.marginRight),bottom:xt(n.marginBottom),left:xt(n.marginLeft)},a={top:xt(n.paddingTop),right:xt(n.paddingRight),bottom:xt(n.paddingBottom),left:xt(n.paddingLeft)},s={top:xt(n.borderTopWidth),right:xt(n.borderRightWidth),bottom:xt(n.borderBottomWidth),left:xt(n.borderLeftWidth)};return Ss({borderBox:t,margin:r,padding:a,border:s})},sd=function(t){var n=t.getBoundingClientRect(),r=window.getComputedStyle(t);return ad(n,r)},id=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fg(e,t){return!!(e===t||id(e)&&id(t))}function Vg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fg(e[n],t[n]))return!1;return!0}function nt(e,t){t===void 0&&(t=Vg);var n,r=[],a,s=!1;function l(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return s&&n===this&&t(c,r)||(a=e.apply(this,c),s=!0,n=this,r=c),a}return l}var Vr=function(t){var n=[],r=null,a=function(){for(var l=arguments.length,c=new Array(l),p=0;p<l;p++)c[p]=arguments[p];n=c,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return a.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},a},$g=process.env.NODE_ENV==="production",Kg=/[ \t]{2,}/g,Hg=/^[ \t]*/gm,ld=function(t){return t.replace(Kg," ").replace(Hg,"").trim()},Wg=function(t){return ld(`
|
|
359
|
+
*/var zc;function eg(){return zc||(zc=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,n=60107,r=60108,a=60114,s=60109,l=60110,c=60112,p=60113,m=60120,f=60115,u=60116,h=60121,S=60122,y=60117,T=60129,C=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;e=E("react.element"),t=E("react.portal"),n=E("react.fragment"),r=E("react.strict_mode"),a=E("react.profiler"),s=E("react.provider"),l=E("react.context"),c=E("react.forward_ref"),p=E("react.suspense"),m=E("react.suspense_list"),f=E("react.memo"),u=E("react.lazy"),h=E("react.block"),S=E("react.server.block"),y=E("react.fundamental"),E("react.scope"),E("react.opaque.id"),T=E("react.debug_trace_mode"),E("react.offscreen"),C=E("react.legacy_hidden")}var N=!1;function M(le){return!!(typeof le=="string"||typeof le=="function"||le===n||le===a||le===T||le===r||le===p||le===m||le===C||N||typeof le=="object"&&le!==null&&(le.$$typeof===u||le.$$typeof===f||le.$$typeof===s||le.$$typeof===l||le.$$typeof===c||le.$$typeof===y||le.$$typeof===h||le[0]===S))}function I(le){if(typeof le=="object"&&le!==null){var se=le.$$typeof;switch(se){case e:var ke=le.type;switch(ke){case n:case a:case r:case p:case m:return ke;default:var Ie=ke&&ke.$$typeof;switch(Ie){case l:case c:case u:case f:case s:return Ie;default:return se}}case t:return se}}}var k=l,V=s,R=e,w=c,P=n,O=u,$=f,J=t,L=a,Z=r,A=p,ne=!1,Y=!1;function U(le){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(le){return Y||(Y=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(le){return I(le)===l}function q(le){return I(le)===s}function re(le){return typeof le=="object"&&le!==null&&le.$$typeof===e}function oe(le){return I(le)===c}function j(le){return I(le)===n}function B(le){return I(le)===u}function z(le){return I(le)===f}function Q(le){return I(le)===t}function ee(le){return I(le)===a}function de(le){return I(le)===r}function ie(le){return I(le)===p}$e.ContextConsumer=k,$e.ContextProvider=V,$e.Element=R,$e.ForwardRef=w,$e.Fragment=P,$e.Lazy=O,$e.Memo=$,$e.Portal=J,$e.Profiler=L,$e.StrictMode=Z,$e.Suspense=A,$e.isAsyncMode=U,$e.isConcurrentMode=ae,$e.isContextConsumer=H,$e.isContextProvider=q,$e.isElement=re,$e.isForwardRef=oe,$e.isFragment=j,$e.isLazy=B,$e.isMemo=z,$e.isPortal=Q,$e.isProfiler=ee,$e.isStrictMode=de,$e.isSuspense=ie,$e.isValidElementType=M,$e.typeOf=I}()),$e}process.env.NODE_ENV==="production"?ls.exports=QS():ls.exports=eg();var jc=ls.exports,tg=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ng=["reactReduxForwardedRef"],rg=[],og=[null,null],ag=function(t){try{return JSON.stringify(t)}catch{return String(t)}};function sg(e,t){var n=e[1];return[t.payload,n+1]}function qc(e,t,n){Fc(function(){return e.apply(void 0,t)},n)}function ig(e,t,n,r,a,s,l){e.current=r,t.current=a,n.current=!1,s.current&&(s.current=null,l())}function lg(e,t,n,r,a,s,l,c,p,m){if(e){var f=!1,u=null,h=function(){if(!f){var T=t.getState(),C,E;try{C=r(T,a.current)}catch(N){E=N,u=N}E||(u=null),C===s.current?l.current||p():(s.current=C,c.current=C,l.current=!0,m({type:"STORE_UPDATED",payload:{error:E}}))}};n.onStateChange=h,n.trySubscribe(),h();var S=function(){if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u};return S}}var cg=function(){return[null,0]};function dg(e,t){t===void 0&&(t={});var n=t,r=n.getDisplayName,a=r===void 0?function(V){return"ConnectAdvanced("+V+")"}:r,s=n.methodName,l=s===void 0?"connectAdvanced":s,c=n.renderCountProp,p=c===void 0?void 0:c,m=n.shouldHandleStateChanges,f=m===void 0?!0:m,u=n.storeKey,h=u===void 0?"store":u,S=n.withRef,y=S===void 0?!1:S,T=n.forwardRef,C=T===void 0?!1:T,E=n.context,N=E===void 0?as:E,M=xo(n,tg);if(process.env.NODE_ENV!=="production"){if(p!==void 0)throw new Error("renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension");if(y)throw new Error("withRef is removed. To access the wrapped instance, use a ref on the connected component");var I="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";if(h!=="store")throw new Error("storeKey has been removed and does not do anything. "+I)}var k=N;return function(R){if(process.env.NODE_ENV!=="production"&&!jc.isValidElementType(R))throw new Error("You must pass a component to the function returned by "+(l+". Instead received "+ag(R)));var w=R.displayName||R.name||"Component",P=a(w),O=ye({},M,{getDisplayName:a,methodName:l,renderCountProp:p,shouldHandleStateChanges:f,storeKey:h,displayName:P,wrappedComponentName:w,WrappedComponent:R}),$=M.pure;function J(Y){return e(Y.dispatch,O)}var L=$?x.useMemo:function(Y){return Y()};function Z(Y){var U=x.useMemo(function(){var ve=Y.reactReduxForwardedRef,Oe=xo(Y,ng);return[Y.context,ve,Oe]},[Y]),ae=U[0],H=U[1],q=U[2],re=x.useMemo(function(){return ae&&ae.Consumer&&jc.isContextConsumer(x.createElement(ae.Consumer,null))?ae:k},[ae,k]),oe=x.useContext(re),j=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,B=!!oe&&!!oe.store;if(process.env.NODE_ENV!=="production"&&!j&&!B)throw new Error('Could not find "store" in the context of '+('"'+P+'". Either wrap the root component in a <Provider>, ')+"or pass a custom React context provider to <Provider> and the corresponding "+("React context consumer to "+P+" in connect options."));var z=j?Y.store:oe.store,Q=x.useMemo(function(){return J(z)},[z]),ee=x.useMemo(function(){if(!f)return og;var ve=Ac(z,j?null:oe.subscription),Oe=ve.notifyNestedSubs.bind(ve);return[ve,Oe]},[z,j,oe]),de=ee[0],ie=ee[1],le=x.useMemo(function(){return j?oe:ye({},oe,{subscription:de})},[j,oe,de]),se=x.useReducer(sg,rg,cg),ke=se[0],Ie=ke[0],it=se[1];if(Ie&&Ie.error)throw Ie.error;var lt=x.useRef(),ut=x.useRef(q),ct=x.useRef(),Pt=x.useRef(!1),je=L(function(){return ct.current&&q===ut.current?ct.current:Q(z.getState(),q)},[z,Ie,q]);qc(ig,[ut,lt,Pt,q,je,ct,ie]),qc(lg,[f,z,de,Q,ut,lt,Pt,ct,ie,it],[z,de,Q]);var fe=x.useMemo(function(){return x.createElement(R,ye({},je,{ref:H}))},[H,R,je]),Fe=x.useMemo(function(){return f?x.createElement(re.Provider,{value:le},fe):fe},[re,fe,le]);return Fe}var A=$?x.memo(Z):Z;if(A.WrappedComponent=R,A.displayName=Z.displayName=P,C){var ne=x.forwardRef(function(U,ae){return x.createElement(A,ye({},U,{reactReduxForwardedRef:ae}))});return ne.displayName=P,ne.WrappedComponent=R,Yc(ne,R)}return Yc(A,R)}}function Jc(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function cs(e,t){if(Jc(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!Jc(e[n[a]],t[n[a]]))return!1;return!0}function pg(e,t){var n={},r=function(l){var c=e[l];typeof c=="function"&&(n[l]=function(){return t(c.apply(void 0,arguments))})};for(var a in e)r(a);return n}function ug(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function Zc(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Xc(e,t,n){ug(e)||Zc(n+"() in "+t+" must return a plain object. Instead received "+e+".")}function ds(e){return function(n,r){var a=e(n,r);function s(){return a}return s.dependsOnOwnProps=!1,s}}function Qc(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function ed(e,t){return function(r,a){var s=a.displayName,l=function(p,m){return l.dependsOnOwnProps?l.mapToProps(p,m):l.mapToProps(p)};return l.dependsOnOwnProps=!0,l.mapToProps=function(p,m){l.mapToProps=e,l.dependsOnOwnProps=Qc(e);var f=l(p,m);return typeof f=="function"&&(l.mapToProps=f,l.dependsOnOwnProps=Qc(f),f=l(p,m)),process.env.NODE_ENV!=="production"&&Xc(f,s,t),f},l}}function mg(e){return typeof e=="function"?ed(e,"mapDispatchToProps"):void 0}function fg(e){return e?void 0:ds(function(t){return{dispatch:t}})}function hg(e){return e&&typeof e=="object"?ds(function(t){return pg(e,t)}):void 0}const Sg=[mg,fg,hg];function gg(e){return typeof e=="function"?ed(e,"mapStateToProps"):void 0}function bg(e){return e?void 0:ds(function(){return{}})}const vg=[gg,bg];function yg(e,t,n){return ye({},n,e,t)}function Tg(e){return function(n,r){var a=r.displayName,s=r.pure,l=r.areMergedPropsEqual,c=!1,p;return function(f,u,h){var S=e(f,u,h);return c?(!s||!l(S,p))&&(p=S):(c=!0,p=S,process.env.NODE_ENV!=="production"&&Xc(p,a,"mergeProps")),p}}}function Eg(e){return typeof e=="function"?Tg(e):void 0}function wg(e){return e?void 0:function(){return yg}}const Cg=[Eg,wg];function ps(e,t,n){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||Zc("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps."));else throw new Error("Unexpected value for "+t+" in "+n+".")}function Dg(e,t,n,r){ps(e,"mapStateToProps",r),ps(t,"mapDispatchToProps",r),ps(n,"mergeProps",r)}var Ng=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function kg(e,t,n,r){return function(s,l){return n(e(s,l),t(r,l),l)}}function Ig(e,t,n,r,a){var s=a.areStatesEqual,l=a.areOwnPropsEqual,c=a.areStatePropsEqual,p=!1,m,f,u,h,S;function y(M,I){return m=M,f=I,u=e(m,f),h=t(r,f),S=n(u,h,f),p=!0,S}function T(){return u=e(m,f),t.dependsOnOwnProps&&(h=t(r,f)),S=n(u,h,f),S}function C(){return e.dependsOnOwnProps&&(u=e(m,f)),t.dependsOnOwnProps&&(h=t(r,f)),S=n(u,h,f),S}function E(){var M=e(m,f),I=!c(M,u);return u=M,I&&(S=n(u,h,f)),S}function N(M,I){var k=!l(I,f),V=!s(M,m,I,f);return m=M,f=I,k&&V?T():k?C():V?E():S}return function(I,k){return p?N(I,k):y(I,k)}}function xg(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,a=t.initMergeProps,s=xo(t,Ng),l=n(e,s),c=r(e,s),p=a(e,s);process.env.NODE_ENV!=="production"&&Dg(l,c,p,s.displayName);var m=s.pure?Ig:kg;return m(l,c,p,e,s)}var Mg=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function us(e,t,n){for(var r=t.length-1;r>=0;r--){var a=t[r](e);if(a)return a}return function(s,l){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+l.wrappedComponentName+".")}}function _g(e,t){return e===t}function Lg(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?dg:n,a=t.mapStateToPropsFactories,s=a===void 0?vg:a,l=t.mapDispatchToPropsFactories,c=l===void 0?Sg:l,p=t.mergePropsFactories,m=p===void 0?Cg:p,f=t.selectorFactory,u=f===void 0?xg:f;return function(S,y,T,C){C===void 0&&(C={});var E=C,N=E.pure,M=N===void 0?!0:N,I=E.areStatesEqual,k=I===void 0?_g:I,V=E.areOwnPropsEqual,R=V===void 0?cs:V,w=E.areStatePropsEqual,P=w===void 0?cs:w,O=E.areMergedPropsEqual,$=O===void 0?cs:O,J=xo(E,Mg),L=us(S,s,"mapStateToProps"),Z=us(y,c,"mapDispatchToProps"),A=us(T,m,"mergeProps");return r(u,ye({methodName:"connect",getDisplayName:function(Y){return"Connect("+Y+")"},shouldHandleStateChanges:!!S,initMapStateToProps:L,initMapDispatchToProps:Z,initMergeProps:A,pure:M,areStatesEqual:k,areOwnPropsEqual:R,areStatePropsEqual:P,areMergedPropsEqual:$},J))}}const td=Lg();HS(vo.unstable_batchedUpdates);function Og(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function nd(e,t){var n=x.useState(function(){return{inputs:t,result:e()}})[0],r=x.useRef(!0),a=x.useRef(n),s=r.current||!!(t&&a.current.inputs&&Og(t,a.current.inputs)),l=s?a.current:{inputs:t,result:e()};return x.useEffect(function(){r.current=!1,a.current=l},[l]),l.result}function Pg(e,t){return nd(function(){return e},t)}var _e=nd,ge=Pg,Rg=process.env.NODE_ENV==="production",ms="Invariant failed";function rd(e,t){if(Rg)throw new Error(ms);var n=typeof t=="function"?t():t,r=n?"".concat(ms,": ").concat(n):ms;throw new Error(r)}var At=function(t){var n=t.top,r=t.right,a=t.bottom,s=t.left,l=r-s,c=a-n,p={top:n,right:r,bottom:a,left:s,width:l,height:c,x:s,y:n,center:{x:(r+s)/2,y:(a+n)/2}};return p},fs=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}},od=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},Bg=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},hs={top:0,right:0,bottom:0,left:0},Ss=function(t){var n=t.borderBox,r=t.margin,a=r===void 0?hs:r,s=t.border,l=s===void 0?hs:s,c=t.padding,p=c===void 0?hs:c,m=At(fs(n,a)),f=At(od(n,l)),u=At(od(f,p));return{marginBox:m,borderBox:At(n),paddingBox:f,contentBox:u,margin:a,border:l,padding:p}},xt=function(t){var n=t.slice(0,-2),r=t.slice(-2);if(r!=="px")return 0;var a=Number(n);return isNaN(a)&&(process.env.NODE_ENV!=="production"?rd(!1,"Could not parse value [raw: "+t+", without suffix: "+n+"]"):rd()),a},Ag=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Mo=function(t,n){var r=t.borderBox,a=t.border,s=t.margin,l=t.padding,c=Bg(r,n);return Ss({borderBox:c,border:a,margin:s,padding:l})},_o=function(t,n){return n===void 0&&(n=Ag()),Mo(t,n)},ad=function(t,n){var r={top:xt(n.marginTop),right:xt(n.marginRight),bottom:xt(n.marginBottom),left:xt(n.marginLeft)},a={top:xt(n.paddingTop),right:xt(n.paddingRight),bottom:xt(n.paddingBottom),left:xt(n.paddingLeft)},s={top:xt(n.borderTopWidth),right:xt(n.borderRightWidth),bottom:xt(n.borderBottomWidth),left:xt(n.borderLeftWidth)};return Ss({borderBox:t,margin:r,padding:a,border:s})},sd=function(t){var n=t.getBoundingClientRect(),r=window.getComputedStyle(t);return ad(n,r)},id=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fg(e,t){return!!(e===t||id(e)&&id(t))}function Vg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fg(e[n],t[n]))return!1;return!0}function nt(e,t){t===void 0&&(t=Vg);var n,r=[],a,s=!1;function l(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return s&&n===this&&t(c,r)||(a=e.apply(this,c),s=!0,n=this,r=c),a}return l}var Vr=function(t){var n=[],r=null,a=function(){for(var l=arguments.length,c=new Array(l),p=0;p<l;p++)c[p]=arguments[p];n=c,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return a.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},a},$g=process.env.NODE_ENV==="production",Kg=/[ \t]{2,}/g,Hg=/^[ \t]*/gm,ld=function(t){return t.replace(Kg," ").replace(Hg,"").trim()},Wg=function(t){return ld(`
|
|
360
360
|
%creact-beautiful-dnd
|
|
361
361
|
|
|
362
362
|
%c`+ld(t)+`
|
|
@@ -438,7 +438,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
438
438
|
-moz-user-select: none;
|
|
439
439
|
-ms-user-select: none;
|
|
440
440
|
overflow-anchor: none;
|
|
441
|
-
`}},l=[r,n,a,s];return{always:Xr(l,"always"),resting:Xr(l,"resting"),dragging:Xr(l,"dragging"),dropAnimating:Xr(l,"dropAnimating"),userCancel:Xr(l,"userCancel")}},Dt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect,Ws=function(){var t=document.querySelector("head");return t||(process.env.NODE_ENV!=="production"?K(!1,"Cannot find the head to append a style to"):K()),t},dp=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function Ty(e,t){var n=
|
|
441
|
+
`}},l=[r,n,a,s];return{always:Xr(l,"always"),resting:Xr(l,"resting"),dragging:Xr(l,"dragging"),dropAnimating:Xr(l,"dropAnimating"),userCancel:Xr(l,"userCancel")}},Dt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect,Ws=function(){var t=document.querySelector("head");return t||(process.env.NODE_ENV!=="production"?K(!1,"Cannot find the head to append a style to"):K()),t},dp=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function Ty(e,t){var n=_e(function(){return yy(e)},[e]),r=x.useRef(null),a=x.useRef(null),s=ge(nt(function(u){var h=a.current;h||(process.env.NODE_ENV!=="production"?K(!1,"Cannot set dynamic style element if it is not set"):K()),h.textContent=u}),[]),l=ge(function(u){var h=r.current;h||(process.env.NODE_ENV!=="production"?K(!1,"Cannot set dynamic style element if it is not set"):K()),h.textContent=u},[]);Dt(function(){!r.current&&!a.current||(process.env.NODE_ENV!=="production"?K(!1,"style elements already mounted"):K());var u=dp(t),h=dp(t);return r.current=u,a.current=h,u.setAttribute(hr+"-always",e),h.setAttribute(hr+"-dynamic",e),Ws().appendChild(u),Ws().appendChild(h),l(n.always),s(n.resting),function(){var S=function(T){var C=T.current;C||(process.env.NODE_ENV!=="production"?K(!1,"Cannot unmount ref as it is not set"):K()),Ws().removeChild(C),T.current=null};S(r),S(a)}},[t,l,s,n.always,n.resting,e]);var c=ge(function(){return s(n.dragging)},[s,n.dragging]),p=ge(function(u){if(u==="DROP"){s(n.dropAnimating);return}s(n.userCancel)},[s,n.dropAnimating,n.userCancel]),m=ge(function(){a.current&&s(n.resting)},[s,n.resting]),f=_e(function(){return{dragging:c,dropping:p,resting:m}},[c,p,m]);return f}var pp=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Qr(e){return e instanceof pp(e).HTMLElement}function up(e,t){var n="["+Sr.contextId+'="'+e+'"]',r=gd(document.querySelectorAll(n));if(!r.length)return process.env.NODE_ENV!=="production"&&We('Unable to find any drag handles in the context "'+e+'"'),null;var a=yn(r,function(s){return s.getAttribute(Sr.draggableId)===t});return a?Qr(a)?a:(process.env.NODE_ENV!=="production"&&We("drag handle needs to be a HTMLElement"),null):(process.env.NODE_ENV!=="production"&&We('Unable to find drag handle with id "'+t+'" as no handle with a matching id was found'),null)}function Ey(e){var t=x.useRef({}),n=x.useRef(null),r=x.useRef(null),a=x.useRef(!1),s=ge(function(h,S){var y={id:h,focus:S};return t.current[h]=y,function(){var C=t.current,E=C[h];E!==y&&delete C[h]}},[]),l=ge(function(h){var S=up(e,h);S&&S!==document.activeElement&&S.focus()},[e]),c=ge(function(h,S){n.current===h&&(n.current=S)},[]),p=ge(function(){r.current||a.current&&(r.current=requestAnimationFrame(function(){r.current=null;var h=n.current;h&&l(h)}))},[l]),m=ge(function(h){n.current=null;var S=document.activeElement;S&&S.getAttribute(Sr.draggableId)===h&&(n.current=h)},[]);Dt(function(){return a.current=!0,function(){a.current=!1;var h=r.current;h&&cancelAnimationFrame(h)}},[]);var f=_e(function(){return{register:s,tryRecordFocus:m,tryRestoreFocusRecorded:p,tryShiftRecord:c}},[s,m,p,c]);return f}function wy(){var e={draggables:{},droppables:{}},t=[];function n(u){return t.push(u),function(){var S=t.indexOf(u);S!==-1&&t.splice(S,1)}}function r(u){t.length&&t.forEach(function(h){return h(u)})}function a(u){return e.draggables[u]||null}function s(u){var h=a(u);return h||(process.env.NODE_ENV!=="production"?K(!1,"Cannot find draggable entry with id ["+u+"]"):K()),h}var l={register:function(h){e.draggables[h.descriptor.id]=h,r({type:"ADDITION",value:h})},update:function(h,S){var y=e.draggables[S.descriptor.id];y&&y.uniqueId===h.uniqueId&&(delete e.draggables[S.descriptor.id],e.draggables[h.descriptor.id]=h)},unregister:function(h){var S=h.descriptor.id,y=a(S);y&&h.uniqueId===y.uniqueId&&(delete e.draggables[S],r({type:"REMOVAL",value:h}))},getById:s,findById:a,exists:function(h){return!!a(h)},getAllByType:function(h){return Po(e.draggables).filter(function(S){return S.descriptor.type===h})}};function c(u){return e.droppables[u]||null}function p(u){var h=c(u);return h||(process.env.NODE_ENV!=="production"?K(!1,"Cannot find droppable entry with id ["+u+"]"):K()),h}var m={register:function(h){e.droppables[h.descriptor.id]=h},unregister:function(h){var S=c(h.descriptor.id);S&&h.uniqueId===S.uniqueId&&delete e.droppables[h.descriptor.id]},getById:p,findById:c,exists:function(h){return!!c(h)},getAllByType:function(h){return Po(e.droppables).filter(function(S){return S.descriptor.type===h})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:l,droppable:m,subscribe:n,clean:f}}function Cy(){var e=_e(wy,[]);return x.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Gs=x.createContext(null),eo=function(){var e=document.body;return e||(process.env.NODE_ENV!=="production"?K(!1,"Cannot find document.body"):K()),e},Dy={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Ny=function(t){return"rbd-announcement-"+t};function ky(e){var t=_e(function(){return Ny(e)},[e]),n=x.useRef(null);x.useEffect(function(){var s=document.createElement("div");return n.current=s,s.id=t,s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),ye(s.style,Dy),eo().appendChild(s),function(){setTimeout(function(){var p=eo();p.contains(s)&&p.removeChild(s),s===n.current&&(n.current=null)})}},[t]);var r=ge(function(a){var s=n.current;if(s){s.textContent=a;return}process.env.NODE_ENV!=="production"&&We(`
|
|
442
442
|
A screen reader message was trying to be announced but it was unable to do so.
|
|
443
443
|
This can occur if you unmount your <DragDropContext /> in your onDragEnd.
|
|
444
444
|
Consider calling provided.announce() before the unmount so that the instruction will
|
|
@@ -447,7 +447,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
447
447
|
Message not passed to screen reader:
|
|
448
448
|
|
|
449
449
|
"`+a+`"
|
|
450
|
-
`)},[]);return r}var mp=0,Iy={separator:"::"};function xy(){mp=0}function Ys(e,t){return t===void 0&&(t=Iy),
|
|
450
|
+
`)},[]);return r}var mp=0,Iy={separator:"::"};function xy(){mp=0}function Ys(e,t){return t===void 0&&(t=Iy),_e(function(){return""+e+t.separator+mp++},[t.separator,e])}function My(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function _y(e){var t=e.contextId,n=e.text,r=Ys("hidden-text",{separator:"-"}),a=_e(function(){return My({contextId:t,uniqueId:r})},[r,t]);return x.useEffect(function(){var l=document.createElement("div");return l.id=a,l.textContent=n,l.style.display="none",eo().appendChild(l),function(){var p=eo();p.contains(l)&&p.removeChild(l)}},[a,n]),a}var Ko=x.createContext(null),Ly={react:"^16.8.5 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.5 || ^17.0.0 || ^18.0.0"},Oy=/(\d+)\.(\d+)\.(\d+)/,fp=function(t){var n=Oy.exec(t);n==null&&(process.env.NODE_ENV!=="production"?K(!1,"Unable to parse React version "+t):K());var r=Number(n[1]),a=Number(n[2]),s=Number(n[3]);return{major:r,minor:a,patch:s,raw:t}},Py=function(t,n){return n.major>t.major?!0:n.major<t.major?!1:n.minor>t.minor?!0:n.minor<t.minor?!1:n.patch>=t.patch},Ry=function(e,t){var n=fp(e),r=fp(t);Py(n,r)||process.env.NODE_ENV!=="production"&&We(`
|
|
451
451
|
React version: [`+r.raw+`]
|
|
452
452
|
does not satisfy expected peer dependency version: [`+n.raw+`]
|
|
453
453
|
|
|
@@ -474,7 +474,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
474
474
|
A setup problem was encountered.
|
|
475
475
|
|
|
476
476
|
> `+n.message+`
|
|
477
|
-
`)}},t)})}function Ay(){to(function(){Ry(Ly.react,x.version),By(document)},[])}function js(e){var t=x.useRef(e);return x.useEffect(function(){t.current=e}),t}function Fy(){var e=null;function t(){return!!e}function n(l){return l===e}function r(l){e&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot claim lock as it is already claimed"):K());var c={abandon:l};return e=c,c}function a(){e||(process.env.NODE_ENV!=="production"?K(!1,"Cannot release lock when there is no lock"):K()),e=null}function s(){e&&(e.abandon(),a())}return{isClaimed:t,isActive:n,claim:r,release:a,tryAbandon:s}}var Vy=9,$y=13,qs=27,hp=32,Ky=33,Hy=34,Wy=35,Gy=36,Yy=37,Uy=38,zy=39,jy=40,Ho,qy=(Ho={},Ho[$y]=!0,Ho[Vy]=!0,Ho),Sp=function(e){qy[e.keyCode]&&e.preventDefault()},Wo=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=yn(t,function(r){return"on"+r in document});return n||e}(),gp=0,bp=5;function Jy(e,t){return Math.abs(t.x-e.x)>=bp||Math.abs(t.y-e.y)>=bp}var vp={type:"IDLE"};function Zy(e){var t=e.cancel,n=e.completed,r=e.getPhase,a=e.setPhase;return[{eventName:"mousemove",fn:function(l){var c=l.button,p=l.clientX,m=l.clientY;if(c===gp){var f={x:p,y:m},u=r();if(u.type==="DRAGGING"){l.preventDefault(),u.actions.move(f);return}u.type!=="PENDING"&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot be IDLE"):K());var h=u.point;if(Jy(h,f)){l.preventDefault();var S=u.actions.fluidLift(f);a({type:"DRAGGING",actions:S})}}}},{eventName:"mouseup",fn:function(l){var c=r();if(c.type!=="DRAGGING"){t();return}l.preventDefault(),c.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(l){r().type==="DRAGGING"&&l.preventDefault(),t()}},{eventName:"keydown",fn:function(l){var c=r();if(c.type==="PENDING"){t();return}if(l.keyCode===qs){l.preventDefault(),t();return}Sp(l)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(l){var c=r();if(c.type==="IDLE"&&(process.env.NODE_ENV!=="production"?K(!1,"Unexpected phase"):K()),c.actions.shouldRespectForcePress()){t();return}l.preventDefault()}},{eventName:Wo,fn:t}]}function yp(e){var t=x.useRef(vp),n=x.useRef(bn),r=
|
|
477
|
+
`)}},t)})}function Ay(){to(function(){Ry(Ly.react,x.version),By(document)},[])}function js(e){var t=x.useRef(e);return x.useEffect(function(){t.current=e}),t}function Fy(){var e=null;function t(){return!!e}function n(l){return l===e}function r(l){e&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot claim lock as it is already claimed"):K());var c={abandon:l};return e=c,c}function a(){e||(process.env.NODE_ENV!=="production"?K(!1,"Cannot release lock when there is no lock"):K()),e=null}function s(){e&&(e.abandon(),a())}return{isClaimed:t,isActive:n,claim:r,release:a,tryAbandon:s}}var Vy=9,$y=13,qs=27,hp=32,Ky=33,Hy=34,Wy=35,Gy=36,Yy=37,Uy=38,zy=39,jy=40,Ho,qy=(Ho={},Ho[$y]=!0,Ho[Vy]=!0,Ho),Sp=function(e){qy[e.keyCode]&&e.preventDefault()},Wo=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=yn(t,function(r){return"on"+r in document});return n||e}(),gp=0,bp=5;function Jy(e,t){return Math.abs(t.x-e.x)>=bp||Math.abs(t.y-e.y)>=bp}var vp={type:"IDLE"};function Zy(e){var t=e.cancel,n=e.completed,r=e.getPhase,a=e.setPhase;return[{eventName:"mousemove",fn:function(l){var c=l.button,p=l.clientX,m=l.clientY;if(c===gp){var f={x:p,y:m},u=r();if(u.type==="DRAGGING"){l.preventDefault(),u.actions.move(f);return}u.type!=="PENDING"&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot be IDLE"):K());var h=u.point;if(Jy(h,f)){l.preventDefault();var S=u.actions.fluidLift(f);a({type:"DRAGGING",actions:S})}}}},{eventName:"mouseup",fn:function(l){var c=r();if(c.type!=="DRAGGING"){t();return}l.preventDefault(),c.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(l){r().type==="DRAGGING"&&l.preventDefault(),t()}},{eventName:"keydown",fn:function(l){var c=r();if(c.type==="PENDING"){t();return}if(l.keyCode===qs){l.preventDefault(),t();return}Sp(l)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(l){var c=r();if(c.type==="IDLE"&&(process.env.NODE_ENV!=="production"?K(!1,"Unexpected phase"):K()),c.actions.shouldRespectForcePress()){t();return}l.preventDefault()}},{eventName:Wo,fn:t}]}function yp(e){var t=x.useRef(vp),n=x.useRef(bn),r=_e(function(){return{eventName:"mousedown",fn:function(u){if(!u.defaultPrevented&&u.button===gp&&!(u.ctrlKey||u.metaKey||u.shiftKey||u.altKey)){var h=e.findClosestDraggableId(u);if(h){var S=e.tryGetLock(h,l,{sourceEvent:u});if(S){u.preventDefault();var y={x:u.clientX,y:u.clientY};n.current(),m(S,y)}}}}}},[e]),a=_e(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(u){if(!u.defaultPrevented){var h=e.findClosestDraggableId(u);if(h){var S=e.findOptionsForDraggable(h);S&&(S.shouldRespectForcePress||e.canGetLock(h)&&u.preventDefault())}}}}},[e]),s=ge(function(){var u={passive:!1,capture:!0};n.current=Mt(window,[a,r],u)},[a,r]),l=ge(function(){var f=t.current;f.type!=="IDLE"&&(t.current=vp,n.current(),s())},[s]),c=ge(function(){var f=t.current;l(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[l]),p=ge(function(){var u={capture:!0,passive:!1},h=Zy({cancel:c,completed:l,getPhase:function(){return t.current},setPhase:function(y){t.current=y}});n.current=Mt(window,h,u)},[c,l]),m=ge(function(u,h){t.current.type!=="IDLE"&&(process.env.NODE_ENV!=="production"?K(!1,"Expected to move from IDLE to PENDING drag"):K()),t.current={type:"PENDING",point:h,actions:u},p()},[p]);Dt(function(){return s(),function(){n.current()}},[s])}var gr;function Xy(){}var Qy=(gr={},gr[Hy]=!0,gr[Ky]=!0,gr[Gy]=!0,gr[Wy]=!0,gr);function eT(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(s){if(s.keyCode===qs){s.preventDefault(),n();return}if(s.keyCode===hp){s.preventDefault(),r();return}if(s.keyCode===jy){s.preventDefault(),e.moveDown();return}if(s.keyCode===Uy){s.preventDefault(),e.moveUp();return}if(s.keyCode===zy){s.preventDefault(),e.moveRight();return}if(s.keyCode===Yy){s.preventDefault(),e.moveLeft();return}if(Qy[s.keyCode]){s.preventDefault();return}Sp(s)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Wo,fn:n}]}function Tp(e){var t=x.useRef(Xy),n=_e(function(){return{eventName:"keydown",fn:function(s){if(s.defaultPrevented||s.keyCode!==hp)return;var l=e.findClosestDraggableId(s);if(!l)return;var c=e.tryGetLock(l,f,{sourceEvent:s});if(!c)return;s.preventDefault();var p=!0,m=c.snapLift();t.current();function f(){p||(process.env.NODE_ENV!=="production"?K(!1,"Cannot stop capturing a keyboard drag when not capturing"):K()),p=!1,t.current(),r()}t.current=Mt(window,eT(m,f),{capture:!0,passive:!1})}}},[e]),r=ge(function(){var s={passive:!1,capture:!0};t.current=Mt(window,[n],s)},[n]);Dt(function(){return r(),function(){t.current()}},[r])}var Js={type:"IDLE"},tT=120,nT=.15;function rT(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(a){a.preventDefault()}},{eventName:"keydown",fn:function(a){if(n().type!=="DRAGGING"){t();return}a.keyCode===qs&&a.preventDefault(),t()}},{eventName:Wo,fn:t}]}function oT(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(s){var l=r();if(l.type!=="DRAGGING"){t();return}l.hasMoved=!0;var c=s.touches[0],p=c.clientX,m=c.clientY,f={x:p,y:m};s.preventDefault(),l.actions.move(f)}},{eventName:"touchend",fn:function(s){var l=r();if(l.type!=="DRAGGING"){t();return}s.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(s){if(r().type!=="DRAGGING"){t();return}s.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(s){var l=r();l.type==="IDLE"&&(process.env.NODE_ENV,K());var c=s.touches[0];if(c){var p=c.force>=nT;if(p){var m=l.actions.shouldRespectForcePress();if(l.type==="PENDING"){m&&t();return}if(m){if(l.hasMoved){s.preventDefault();return}t();return}s.preventDefault()}}}},{eventName:Wo,fn:t}]}function Ep(e){var t=x.useRef(Js),n=x.useRef(bn),r=ge(function(){return t.current},[]),a=ge(function(S){t.current=S},[]),s=_e(function(){return{eventName:"touchstart",fn:function(S){if(!S.defaultPrevented){var y=e.findClosestDraggableId(S);if(y){var T=e.tryGetLock(y,c,{sourceEvent:S});if(T){var C=S.touches[0],E=C.clientX,N=C.clientY,M={x:E,y:N};n.current(),u(T,M)}}}}}},[e]),l=ge(function(){var S={capture:!0,passive:!1};n.current=Mt(window,[s],S)},[s]),c=ge(function(){var h=t.current;h.type!=="IDLE"&&(h.type==="PENDING"&&clearTimeout(h.longPressTimerId),a(Js),n.current(),l())},[l,a]),p=ge(function(){var h=t.current;c(),h.type==="DRAGGING"&&h.actions.cancel({shouldBlockNextClick:!0}),h.type==="PENDING"&&h.actions.abort()},[c]),m=ge(function(){var S={capture:!0,passive:!1},y={cancel:p,completed:c,getPhase:r},T=Mt(window,oT(y),S),C=Mt(window,rT(y),S);n.current=function(){T(),C()}},[p,r,c]),f=ge(function(){var S=r();S.type!=="PENDING"&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot start dragging from phase "+S.type):K());var y=S.actions.fluidLift(S.point);a({type:"DRAGGING",actions:y,hasMoved:!1})},[r,a]),u=ge(function(S,y){r().type!=="IDLE"&&(process.env.NODE_ENV!=="production"?K(!1,"Expected to move from IDLE to PENDING drag"):K());var T=setTimeout(f,tT);a({type:"PENDING",point:y,actions:S,longPressTimerId:T}),m()},[m,r,a,f]);Dt(function(){return l(),function(){n.current();var y=r();y.type==="PENDING"&&(clearTimeout(y.longPressTimerId),a(Js))}},[r,l,a]),Dt(function(){var S=Mt(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return S},[])}function aT(e){zs(function(){var t=js(e);to(function(){t.current.length!==e.length&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot change the amount of sensor hooks after mounting"):K(!1))})})}var sT={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function wp(e,t){if(t==null)return!1;var n=!!sT[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:wp(e,t.parentElement)}function iT(e,t){var n=t.target;return Qr(n)?wp(e,n):!1}var lT=function(e){return At(e.getBoundingClientRect()).center};function cT(e){return e instanceof pp(e).Element}var dT=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=yn(t,function(r){return r in Element.prototype});return n||e}();function Cp(e,t){return e==null?null:e[dT](t)?e:Cp(e.parentElement,t)}function pT(e,t){return e.closest?e.closest(t):Cp(e,t)}function uT(e){return"["+Sr.contextId+'="'+e+'"]'}function mT(e,t){var n=t.target;if(!cT(n))return process.env.NODE_ENV!=="production"&&We("event.target must be a Element"),null;var r=uT(e),a=pT(n,r);return a?Qr(a)?a:(process.env.NODE_ENV!=="production"&&We("drag handle must be a HTMLElement"),null):null}function fT(e,t){var n=mT(e,t);return n?n.getAttribute(Sr.draggableId):null}function hT(e,t){var n="["+Hs.contextId+'="'+e+'"]',r=gd(document.querySelectorAll(n)),a=yn(r,function(s){return s.getAttribute(Hs.id)===t});return a?Qr(a)?a:(process.env.NODE_ENV!=="production"&&We("Draggable element is not a HTMLElement"),null):null}function ST(e){e.preventDefault()}function Go(e){var t=e.expected,n=e.phase,r=e.isLockActive,a=e.shouldWarn;return r()?t!==n?(a&&process.env.NODE_ENV!=="production"&&We(`
|
|
478
478
|
Cannot perform action.
|
|
479
479
|
The actions you used belong to an outdated phase
|
|
480
480
|
|
|
@@ -492,7 +492,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
492
492
|
|
|
493
493
|
- Throw away your action handlers when forceStop() is called
|
|
494
494
|
- Check actions.isActive() if you really need to
|
|
495
|
-
`),!1)}function Dp(e){var t=e.lockAPI,n=e.store,r=e.registry,a=e.draggableId;if(t.isClaimed())return!1;var s=r.draggable.findById(a);return s?!(!s.options.isEnabled||!ep(n.getState(),a)):(process.env.NODE_ENV!=="production"&&We("Unable to find draggable with id: "+a),!1)}function gT(e){var t=e.lockAPI,n=e.contextId,r=e.store,a=e.registry,s=e.draggableId,l=e.forceSensorStop,c=e.sourceEvent,p=Dp({lockAPI:t,store:r,registry:a,draggableId:s});if(!p)return null;var m=a.draggable.getById(s),f=hT(n,m.descriptor.id);if(!f)return process.env.NODE_ENV!=="production"&&We("Unable to find draggable element with id: "+s),null;if(c&&!m.options.canDragInteractiveElements&&iT(f,c))return null;var u=t.claim(l||bn),h="PRE_DRAG";function S(){return m.options.shouldRespectForcePress}function y(){return t.isActive(u)}function T(V,R){Go({expected:V,phase:h,isLockActive:y,shouldWarn:!0})&&r.dispatch(R())}var C=T.bind(null,"DRAGGING");function E(V){function R(){t.release(),h="COMPLETED"}h!=="PRE_DRAG"&&(R(),h!=="PRE_DRAG"&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot lift in phase "+h):K())),r.dispatch(av(V.liftActionArgs)),h="DRAGGING";function w(P,O){if(O===void 0&&(O={shouldBlockNextClick:!1}),V.cleanup(),O.shouldBlockNextClick){var $=Mt(window,[{eventName:"click",fn:ST,options:{once:!0,passive:!1,capture:!0}}]);setTimeout($)}R(),r.dispatch(Gd({reason:P}))}return ye({isActive:function(){return Go({expected:"DRAGGING",phase:h,isLockActive:y,shouldWarn:!1})},shouldRespectForcePress:S,drop:function(O){return w("DROP",O)},cancel:function(O){return w("CANCEL",O)}},V.actions)}function N(V){var R=Vr(function(P){C(function(){return Wd({client:P})})}),w=E({liftActionArgs:{id:s,clientSelection:V,movementMode:"FLUID"},cleanup:function(){return R.cancel()},actions:{move:R}});return ye({},w,{move:R})}function M(){var V={moveUp:function(){return C(fv)},moveRight:function(){return C(Sv)},moveDown:function(){return C(hv)},moveLeft:function(){return C(gv)}};return E({liftActionArgs:{id:s,clientSelection:lT(f),movementMode:"SNAP"},cleanup:bn,actions:V})}function I(){var V=Go({expected:"PRE_DRAG",phase:h,isLockActive:y,shouldWarn:!0});V&&t.release()}var k={isActive:function(){return Go({expected:"PRE_DRAG",phase:h,isLockActive:y,shouldWarn:!1})},shouldRespectForcePress:S,fluidLift:N,snapLift:M,abort:I};return k}var bT=[yp,Tp,Ep];function vT(e){var t=e.contextId,n=e.store,r=e.registry,a=e.customSensors,s=e.enableDefaultSensors,l=[].concat(s?bT:[],a||[]),c=x.useState(function(){return Fy()})[0],p=ge(function(N,M){N.isDragging&&!M.isDragging&&c.tryAbandon()},[c]);Dt(function(){var N=n.getState(),M=n.subscribe(function(){var I=n.getState();p(N,I),N=I});return M},[c,n,p]),Dt(function(){return c.tryAbandon},[c.tryAbandon]);var m=ge(function(E){return Dp({lockAPI:c,registry:r,store:n,draggableId:E})},[c,r,n]),f=ge(function(E,N,M){return gT({lockAPI:c,registry:r,contextId:t,store:n,draggableId:E,forceSensorStop:N,sourceEvent:M&&M.sourceEvent?M.sourceEvent:null})},[t,c,r,n]),u=ge(function(E){return fT(t,E)},[t]),h=ge(function(E){var N=r.draggable.findById(E);return N?N.options:null},[r.draggable]),S=ge(function(){c.isClaimed()&&(c.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(Ms()))},[c,n]),y=ge(c.isClaimed,[c]),T=
|
|
495
|
+
`),!1)}function Dp(e){var t=e.lockAPI,n=e.store,r=e.registry,a=e.draggableId;if(t.isClaimed())return!1;var s=r.draggable.findById(a);return s?!(!s.options.isEnabled||!ep(n.getState(),a)):(process.env.NODE_ENV!=="production"&&We("Unable to find draggable with id: "+a),!1)}function gT(e){var t=e.lockAPI,n=e.contextId,r=e.store,a=e.registry,s=e.draggableId,l=e.forceSensorStop,c=e.sourceEvent,p=Dp({lockAPI:t,store:r,registry:a,draggableId:s});if(!p)return null;var m=a.draggable.getById(s),f=hT(n,m.descriptor.id);if(!f)return process.env.NODE_ENV!=="production"&&We("Unable to find draggable element with id: "+s),null;if(c&&!m.options.canDragInteractiveElements&&iT(f,c))return null;var u=t.claim(l||bn),h="PRE_DRAG";function S(){return m.options.shouldRespectForcePress}function y(){return t.isActive(u)}function T(V,R){Go({expected:V,phase:h,isLockActive:y,shouldWarn:!0})&&r.dispatch(R())}var C=T.bind(null,"DRAGGING");function E(V){function R(){t.release(),h="COMPLETED"}h!=="PRE_DRAG"&&(R(),h!=="PRE_DRAG"&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot lift in phase "+h):K())),r.dispatch(av(V.liftActionArgs)),h="DRAGGING";function w(P,O){if(O===void 0&&(O={shouldBlockNextClick:!1}),V.cleanup(),O.shouldBlockNextClick){var $=Mt(window,[{eventName:"click",fn:ST,options:{once:!0,passive:!1,capture:!0}}]);setTimeout($)}R(),r.dispatch(Gd({reason:P}))}return ye({isActive:function(){return Go({expected:"DRAGGING",phase:h,isLockActive:y,shouldWarn:!1})},shouldRespectForcePress:S,drop:function(O){return w("DROP",O)},cancel:function(O){return w("CANCEL",O)}},V.actions)}function N(V){var R=Vr(function(P){C(function(){return Wd({client:P})})}),w=E({liftActionArgs:{id:s,clientSelection:V,movementMode:"FLUID"},cleanup:function(){return R.cancel()},actions:{move:R}});return ye({},w,{move:R})}function M(){var V={moveUp:function(){return C(fv)},moveRight:function(){return C(Sv)},moveDown:function(){return C(hv)},moveLeft:function(){return C(gv)}};return E({liftActionArgs:{id:s,clientSelection:lT(f),movementMode:"SNAP"},cleanup:bn,actions:V})}function I(){var V=Go({expected:"PRE_DRAG",phase:h,isLockActive:y,shouldWarn:!0});V&&t.release()}var k={isActive:function(){return Go({expected:"PRE_DRAG",phase:h,isLockActive:y,shouldWarn:!1})},shouldRespectForcePress:S,fluidLift:N,snapLift:M,abort:I};return k}var bT=[yp,Tp,Ep];function vT(e){var t=e.contextId,n=e.store,r=e.registry,a=e.customSensors,s=e.enableDefaultSensors,l=[].concat(s?bT:[],a||[]),c=x.useState(function(){return Fy()})[0],p=ge(function(N,M){N.isDragging&&!M.isDragging&&c.tryAbandon()},[c]);Dt(function(){var N=n.getState(),M=n.subscribe(function(){var I=n.getState();p(N,I),N=I});return M},[c,n,p]),Dt(function(){return c.tryAbandon},[c.tryAbandon]);var m=ge(function(E){return Dp({lockAPI:c,registry:r,store:n,draggableId:E})},[c,r,n]),f=ge(function(E,N,M){return gT({lockAPI:c,registry:r,contextId:t,store:n,draggableId:E,forceSensorStop:N,sourceEvent:M&&M.sourceEvent?M.sourceEvent:null})},[t,c,r,n]),u=ge(function(E){return fT(t,E)},[t]),h=ge(function(E){var N=r.draggable.findById(E);return N?N.options:null},[r.draggable]),S=ge(function(){c.isClaimed()&&(c.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(Ms()))},[c,n]),y=ge(c.isClaimed,[c]),T=_e(function(){return{canGetLock:m,tryGetLock:f,findClosestDraggableId:u,findOptionsForDraggable:h,tryReleaseLock:S,isLockClaimed:y}},[m,f,u,h,S,y]);aT(l);for(var C=0;C<l.length;C++)l[C](T)}var yT=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function no(e){return e.current||(process.env.NODE_ENV!=="production"?K(!1,"Could not find store from lazy ref"):K()),e.current}function TT(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,a=e.nonce,s=e.dragHandleUsageInstructions,l=x.useRef(null);Ay();var c=js(e),p=ge(function(){return yT(c.current)},[c]),m=ky(t),f=_y({contextId:t,text:s}),u=Ty(t,a),h=ge(function(P){no(l).dispatch(P)},[]),S=_e(function(){return Cc({publishWhileDragging:iv,updateDroppableScroll:cv,updateDroppableIsEnabled:dv,updateDroppableIsCombineEnabled:pv,collectionStarting:lv},h)},[h]),y=Cy(),T=_e(function(){return Qv(y,S)},[y,S]),C=_e(function(){return Sy(ye({scrollWindow:ey,scrollDroppable:T.scrollDroppable},Cc({move:Wd},h)))},[T.scrollDroppable,h]),E=Ey(t),N=_e(function(){return qv({announce:m,autoScroller:C,dimensionMarshal:T,focusMarshal:E,getResponders:p,styleMarshal:u})},[m,C,T,E,p,u]);process.env.NODE_ENV!=="production"&&l.current&&l.current!==N&&process.env.NODE_ENV!=="production"&&We("unexpected store change"),l.current=N;var M=ge(function(){var P=no(l),O=P.getState();O.phase!=="IDLE"&&P.dispatch(Ms())},[]),I=ge(function(){var P=no(l).getState();return P.isDragging||P.phase==="DROP_ANIMATING"},[]),k=_e(function(){return{isDragging:I,tryAbort:M}},[I,M]);n(k);var V=ge(function(P){return ep(no(l).getState(),P)},[]),R=ge(function(){return Hn(no(l).getState())},[]),w=_e(function(){return{marshal:T,focus:E,contextId:t,canLift:V,isMovementAllowed:R,dragHandleUsageInstructionsId:f,registry:y}},[t,T,f,E,V,R,y]);return vT({contextId:t,store:N,registry:y,customSensors:r,enableDefaultSensors:e.enableDefaultSensors!==!1}),x.useEffect(function(){return M},[M]),x.createElement(Ko.Provider,{value:w},x.createElement(Vc,{context:Gs,store:N},e.children))}var Np=0;function ET(){Np=0}function wT(){return _e(function(){return""+Np++},[])}function CT(){ET(),xy()}function kp(e){var t=wT(),n=e.dragHandleUsageInstructions||Oo.dragHandleUsageInstructions;return x.createElement(jg,null,function(r){return x.createElement(TT,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var Zs=function(t){return function(n){return t===n}},DT=Zs("scroll"),NT=Zs("auto"),kT=Zs("visible"),Ip=function(t,n){return n(t.overflowX)||n(t.overflowY)},IT=function(t,n){return n(t.overflowX)&&n(t.overflowY)},xp=function(t){var n=window.getComputedStyle(t),r={overflowX:n.overflowX,overflowY:n.overflowY};return Ip(r,DT)||Ip(r,NT)},xT=function(){if(process.env.NODE_ENV==="production")return!1;var t=eo(),n=document.documentElement;if(n||(process.env.NODE_ENV,K()),!xp(t))return!1;var r=window.getComputedStyle(n),a={overflowX:r.overflowX,overflowY:r.overflowY};return IT(a,kT)||process.env.NODE_ENV!=="production"&&We(`
|
|
496
496
|
We have detected that your <body> element might be a scroll container.
|
|
497
497
|
We have found no reliable way of detecting whether the <body> element is a scroll container.
|
|
498
498
|
Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)
|
|
@@ -507,7 +507,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
507
507
|
Nested scroll containers are currently not supported.
|
|
508
508
|
|
|
509
509
|
We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131
|
|
510
|
-
`)}},Xs=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_T=function e(t){if(!t)return!1;var n=window.getComputedStyle(t);return n.position==="fixed"?!0:e(t.parentElement)},LT=function(e){var t=Mp(e),n=_T(e);return{closestScrollable:t,isFixedOnPage:n}},OT=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,a=e.isFixedOnPage,s=e.direction,l=e.client,c=e.page,p=e.closest,m=function(){if(!p)return null;var S=p.scrollSize,y=p.client,T=Jd({scrollHeight:S.scrollHeight,scrollWidth:S.scrollWidth,height:y.paddingBox.height,width:y.paddingBox.width});return{pageMarginBox:p.page.marginBox,frameClient:y,scrollSize:S,shouldClipSubject:p.shouldClipSubject,scroll:{initial:p.scroll,current:p.scroll,max:T,diff:{value:rt,displacement:rt}}}}(),f=s==="vertical"?Ts:Ed,u=mr({page:c,withPlaceholder:null,axis:f,frame:m}),h={descriptor:t,isCombineEnabled:r,isFixedOnPage:a,axis:f,isEnabled:n,client:l,page:c,frame:m,subject:u};return h},PT=function(t,n){var r=sd(t);if(!n||t!==n)return r;var a=r.paddingBox.top-n.scrollTop,s=r.paddingBox.left-n.scrollLeft,l=a+n.scrollHeight,c=s+n.scrollWidth,p={top:a,right:c,bottom:l,left:s},m=fs(p,r.border),f=Ss({borderBox:m,margin:r.margin,border:r.border,padding:r.padding});return f},RT=function(e){var t=e.ref,n=e.descriptor,r=e.env,a=e.windowScroll,s=e.direction,l=e.isDropDisabled,c=e.isCombineEnabled,p=e.shouldClipSubject,m=r.closestScrollable,f=PT(t,m),u=_o(f,a),h=function(){if(!m)return null;var y=sd(m),T={scrollHeight:m.scrollHeight,scrollWidth:m.scrollWidth};return{client:y,page:_o(y,a),scroll:Xs(m),scrollSize:T,shouldClipSubject:p}}(),S=OT({descriptor:n,isEnabled:!l,isCombineEnabled:c,isFixedOnPage:r.isFixedOnPage,direction:s,client:f,page:u,closest:h});return S},BT={passive:!1},AT={passive:!0},_p=function(e){return e.shouldPublishImmediately?BT:AT};function Yo(e){var t=x.useContext(e);return t||(process.env.NODE_ENV!=="production"?K(!1,"Could not find required context"):K()),t}var Uo=function(t){return t&&t.env.closestScrollable||null};function FT(e){var t=x.useRef(null),n=Yo(Ko),r=Ys("droppable"),a=n.registry,s=n.marshal,l=js(e),c=
|
|
510
|
+
`)}},Xs=function(e){return{x:e.scrollLeft,y:e.scrollTop}},_T=function e(t){if(!t)return!1;var n=window.getComputedStyle(t);return n.position==="fixed"?!0:e(t.parentElement)},LT=function(e){var t=Mp(e),n=_T(e);return{closestScrollable:t,isFixedOnPage:n}},OT=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,a=e.isFixedOnPage,s=e.direction,l=e.client,c=e.page,p=e.closest,m=function(){if(!p)return null;var S=p.scrollSize,y=p.client,T=Jd({scrollHeight:S.scrollHeight,scrollWidth:S.scrollWidth,height:y.paddingBox.height,width:y.paddingBox.width});return{pageMarginBox:p.page.marginBox,frameClient:y,scrollSize:S,shouldClipSubject:p.shouldClipSubject,scroll:{initial:p.scroll,current:p.scroll,max:T,diff:{value:rt,displacement:rt}}}}(),f=s==="vertical"?Ts:Ed,u=mr({page:c,withPlaceholder:null,axis:f,frame:m}),h={descriptor:t,isCombineEnabled:r,isFixedOnPage:a,axis:f,isEnabled:n,client:l,page:c,frame:m,subject:u};return h},PT=function(t,n){var r=sd(t);if(!n||t!==n)return r;var a=r.paddingBox.top-n.scrollTop,s=r.paddingBox.left-n.scrollLeft,l=a+n.scrollHeight,c=s+n.scrollWidth,p={top:a,right:c,bottom:l,left:s},m=fs(p,r.border),f=Ss({borderBox:m,margin:r.margin,border:r.border,padding:r.padding});return f},RT=function(e){var t=e.ref,n=e.descriptor,r=e.env,a=e.windowScroll,s=e.direction,l=e.isDropDisabled,c=e.isCombineEnabled,p=e.shouldClipSubject,m=r.closestScrollable,f=PT(t,m),u=_o(f,a),h=function(){if(!m)return null;var y=sd(m),T={scrollHeight:m.scrollHeight,scrollWidth:m.scrollWidth};return{client:y,page:_o(y,a),scroll:Xs(m),scrollSize:T,shouldClipSubject:p}}(),S=OT({descriptor:n,isEnabled:!l,isCombineEnabled:c,isFixedOnPage:r.isFixedOnPage,direction:s,client:f,page:u,closest:h});return S},BT={passive:!1},AT={passive:!0},_p=function(e){return e.shouldPublishImmediately?BT:AT};function Yo(e){var t=x.useContext(e);return t||(process.env.NODE_ENV!=="production"?K(!1,"Could not find required context"):K()),t}var Uo=function(t){return t&&t.env.closestScrollable||null};function FT(e){var t=x.useRef(null),n=Yo(Ko),r=Ys("droppable"),a=n.registry,s=n.marshal,l=js(e),c=_e(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),p=x.useRef(c),m=_e(function(){return nt(function(I,k){t.current||(process.env.NODE_ENV!=="production"?K(!1,"Can only update scroll when dragging"):K());var V={x:I,y:k};s.updateDroppableScroll(c.id,V)})},[c.id,s]),f=ge(function(){var I=t.current;return!I||!I.env.closestScrollable?rt:Xs(I.env.closestScrollable)},[]),u=ge(function(){var I=f();m(I.x,I.y)},[f,m]),h=_e(function(){return Vr(u)},[u]),S=ge(function(){var I=t.current,k=Uo(I);I&&k||(process.env.NODE_ENV!=="production"?K(!1,"Could not find scroll options while scrolling"):K());var V=I.scrollOptions;if(V.shouldPublishImmediately){u();return}h()},[h,u]),y=ge(function(I,k){t.current&&(process.env.NODE_ENV!=="production"?K(!1,"Cannot collect a droppable while a drag is occurring"):K());var V=l.current,R=V.getDroppableRef();R||(process.env.NODE_ENV!=="production"?K(!1,"Cannot collect without a droppable ref"):K());var w=LT(R),P={ref:R,descriptor:c,env:w,scrollOptions:k};t.current=P;var O=RT({ref:R,descriptor:c,env:w,windowScroll:I,direction:V.direction,isDropDisabled:V.isDropDisabled,isCombineEnabled:V.isCombineEnabled,shouldClipSubject:!V.ignoreContainerClipping}),$=w.closestScrollable;return $&&($.setAttribute(cp.contextId,n.contextId),$.addEventListener("scroll",S,_p(P.scrollOptions)),process.env.NODE_ENV!=="production"&&MT($)),O},[n.contextId,c,S,l]),T=ge(function(){var I=t.current,k=Uo(I);return I&&k||(process.env.NODE_ENV!=="production"?K(!1,"Can only recollect Droppable client for Droppables that have a scroll container"):K()),Xs(k)},[]),C=ge(function(){var I=t.current;I||(process.env.NODE_ENV!=="production"?K(!1,"Cannot stop drag when no active drag"):K());var k=Uo(I);t.current=null,k&&(h.cancel(),k.removeAttribute(cp.contextId),k.removeEventListener("scroll",S,_p(I.scrollOptions)))},[S,h]),E=ge(function(I){var k=t.current;k||(process.env.NODE_ENV!=="production"?K(!1,"Cannot scroll when there is no drag"):K());var V=Uo(k);V||(process.env.NODE_ENV!=="production"?K(!1,"Cannot scroll a droppable with no closest scrollable"):K()),V.scrollTop+=I.y,V.scrollLeft+=I.x},[]),N=_e(function(){return{getDimensionAndWatchScroll:y,getScrollWhileDragging:T,dragStopped:C,scroll:E}},[C,y,T,E]),M=_e(function(){return{uniqueId:r,descriptor:c,callbacks:N}},[N,c,r]);Dt(function(){return p.current=M.descriptor,a.droppable.register(M),function(){t.current&&(process.env.NODE_ENV!=="production"&&We("Unsupported: changing the droppableId or type of a Droppable during a drag"),C()),a.droppable.unregister(M)}},[N,c,C,M,s,a.droppable]),Dt(function(){t.current&&s.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)},[e.isDropDisabled,s]),Dt(function(){t.current&&s.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)},[e.isCombineEnabled,s])}function Qs(){}var Lp={width:0,height:0,margin:eb},VT=function(t){var n=t.isAnimatingOpenOnMount,r=t.placeholder,a=t.animate;return n||a==="close"?Lp:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},$T=function(t){var n=t.isAnimatingOpenOnMount,r=t.placeholder,a=t.animate,s=VT({isAnimatingOpenOnMount:n,placeholder:r,animate:a});return{display:r.display,boxSizing:"border-box",width:s.width,height:s.height,marginTop:s.margin.top,marginRight:s.margin.right,marginBottom:s.margin.bottom,marginLeft:s.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:a!=="none"?Jr.placeholder:null}};function KT(e){var t=x.useRef(null),n=ge(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),r=e.animate,a=e.onTransitionEnd,s=e.onClose,l=e.contextId,c=x.useState(e.animate==="open"),p=c[0],m=c[1];x.useEffect(function(){return p?r!=="open"?(n(),m(!1),Qs):t.current?Qs:(t.current=setTimeout(function(){t.current=null,m(!1)}),n):Qs},[r,p,n]);var f=ge(function(h){h.propertyName==="height"&&(a(),r==="close"&&s())},[r,s,a]),u=$T({isAnimatingOpenOnMount:p,animate:e.animate,placeholder:e.placeholder});return x.createElement(e.placeholder.tagName,{style:u,"data-rbd-placeholder-context-id":l,onTransitionEnd:f,ref:e.innerRef})}var HT=x.memo(KT),ei=x.createContext(null);function Op(e){e&&Qr(e)||(process.env.NODE_ENV!=="production"?K(!1,`
|
|
511
511
|
provided.innerRef has not been provided with a HTMLElement.
|
|
512
512
|
|
|
513
513
|
You can find a guide on using the innerRef callback functions at:
|
|
@@ -518,8 +518,8 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
518
518
|
|
|
519
519
|
Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.
|
|
520
520
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/api/droppable.md
|
|
521
|
-
`)}}],YT=[function(t){var n=t.props;n.renderClone||(process.env.NODE_ENV!=="production"?K(!1,"Must provide a clone render function (renderClone) for virtual lists"):K())},function(t){var n=t.getPlaceholderRef;n()&&(process.env.NODE_ENV!=="production"?K(!1,"Expected virtual list to not have a placeholder"):K())}];function UT(e){to(function(){ni(e,WT),e.props.mode==="standard"&&ni(e,GT),e.props.mode==="virtual"&&ni(e,YT)})}var zT=function(e){Sc(t,e);function t(){for(var r,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s))||this,r.state={isVisible:!!r.props.on,data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){r.state.animate==="close"&&r.setState({isVisible:!1})},r}t.getDerivedStateFromProps=function(a,s){return a.shouldAnimate?a.on?{isVisible:!0,data:a.on,animate:"open"}:s.isVisible?{isVisible:!0,data:s.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!a.on,data:a.on,animate:"none"}};var n=t.prototype;return n.render=function(){if(!this.state.isVisible)return null;var a={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(a)},t}(x.PureComponent),Pp={dragging:5e3,dropAnimating:4500},jT=function(t,n){return n?Jr.drop(n.duration):t?Jr.snap:Jr.fluid},qT=function(t,n){return t?n?qr.opacity.drop:qr.opacity.combining:null},JT=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function ZT(e){var t=e.dimension,n=t.client,r=e.offset,a=e.combineWith,s=e.dropping,l=!!a,c=JT(e),p=!!s,m=p?Ps.drop(r,l):Ps.moveTo(r),f={position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:jT(c,s),transform:m,opacity:qT(l,p),zIndex:p?Pp.dropAnimating:Pp.dragging,pointerEvents:"none"};return f}function XT(e){return{transform:Ps.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function QT(e){return e.type==="DRAGGING"?ZT(e):XT(e)}function eE(e,t,n){n===void 0&&(n=rt);var r=window.getComputedStyle(t),a=t.getBoundingClientRect(),s=ad(a,r),l=_o(s,n),c={client:s,tagName:t.tagName.toLowerCase(),display:r.display},p={x:s.marginBox.width,y:s.marginBox.height},m={descriptor:e,placeholder:c,displaceBy:p,client:s,page:l};return m}function tE(e){var t=Ys("draggable"),n=e.descriptor,r=e.registry,a=e.getDraggableRef,s=e.canDragInteractiveElements,l=e.shouldRespectForcePress,c=e.isEnabled,p=
|
|
522
|
-
Provided: [type: `+typeof a+"] (value: "+a+")"):K(!1)),ob(e.index)||(process.env.NODE_ENV!=="production"?K(!1,r(a)+" requires an integer index prop"):K(!1)),e.mapped.type!=="DRAGGING"&&(Op(n()),e.isEnabled&&(up(t,a)||(process.env.NODE_ENV!=="production"?K(!1,r(a)+" Unable to find drag handle"):K(!1))))})}function rE(e){zs(function(){var t=x.useRef(e);to(function(){e!==t.current&&(process.env.NODE_ENV!=="production"?K(!1,"Draggable isClone prop value changed during component life"):K(!1))},[e])})}function oE(e){e.preventDefault()}function aE(e){var t=x.useRef(null),n=ge(function(P){t.current=P},[]),r=ge(function(){return t.current},[]),a=Yo(Ko),s=a.contextId,l=a.dragHandleUsageInstructionsId,c=a.registry,p=Yo(ei),m=p.type,f=p.droppableId,u=Me(function(){return{id:e.draggableId,index:e.index,type:m,droppableId:f}},[e.draggableId,e.index,m,f]),h=e.children,S=e.draggableId,y=e.isEnabled,T=e.shouldRespectForcePress,C=e.canDragInteractiveElements,E=e.isClone,N=e.mapped,M=e.dropAnimationFinished;if(nE(e,s,r),rE(E),!E){var I=Me(function(){return{descriptor:u,registry:c,getDraggableRef:r,canDragInteractiveElements:C,shouldRespectForcePress:T,isEnabled:y}},[u,c,r,C,T,y]);tE(I)}var k=Me(function(){return y?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":S,"data-rbd-drag-handle-context-id":s,draggable:!1,onDragStart:oE}:null},[s,l,S,y]),V=ge(function(P){N.type==="DRAGGING"&&N.dropping&&P.propertyName==="transform"&&M()},[M,N]),R=Me(function(){var P=QT(N),O=N.type==="DRAGGING"&&N.dropping?V:null,$={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":s,"data-rbd-draggable-id":S,style:P,onTransitionEnd:O},dragHandleProps:k};return $},[s,k,S,N,V,n]),w=Me(function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}},[u.droppableId,u.id,u.index,u.type]);return h(R,N.snapshot,w)}var Rp=function(e,t){return e===t},Bp=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},sE=function(t){return t.combine?t.combine.draggableId:null},iE=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function lE(){var e=nt(function(a,s){return{x:a,y:s}}),t=nt(function(a,s,l,c,p){return{isDragging:!0,isClone:s,isDropAnimating:!!p,dropAnimation:p,mode:a,draggingOver:l,combineWith:c,combineTargetFor:null}}),n=nt(function(a,s,l,c,p,m,f){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:p,combineWith:m,mode:s,offset:a,dimension:l,forceShouldAnimate:f,snapshot:t(s,c,p,m,null)}}}),r=function(s,l){if(s.isDragging){if(s.critical.draggable.id!==l.draggableId)return null;var c=s.current.client.offset,p=s.dimensions.draggables[l.draggableId],m=Ct(s.impact),f=iE(s.impact),u=s.forceShouldAnimate;return n(e(c.x,c.y),s.movementMode,p,l.isClone,m,f,u)}if(s.phase==="DROP_ANIMATING"){var h=s.completed;if(h.result.draggableId!==l.draggableId)return null;var S=l.isClone,y=s.dimensions.draggables[l.draggableId],T=h.result,C=T.mode,E=Bp(T),N=sE(T),M=s.dropDuration,I={duration:M,curve:Ls.drop,moveTo:s.newHomeClientOffset,opacity:N?qr.opacity.drop:null,scale:N?qr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:s.newHomeClientOffset,dimension:y,dropping:I,draggingOver:E,combineWith:N,mode:C,forceShouldAnimate:null,snapshot:t(C,S,E,N,I)}}}return null};return r}function Ap(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var cE={mapped:{type:"SECONDARY",offset:rt,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ap(null)}};function dE(){var e=nt(function(l,c){return{x:l,y:c}}),t=nt(Ap),n=nt(function(l,c,p){return c===void 0&&(c=null),{mapped:{type:"SECONDARY",offset:l,combineTargetFor:c,shouldAnimateDisplacement:p,snapshot:t(c)}}}),r=function(c){return c?n(rt,c,!0):null},a=function(c,p,m,f){var u=m.displaced.visible[c],h=!!(f.inVirtualList&&f.effected[c]),S=Bo(m),y=S&&S.draggableId===c?p:null;if(!u){if(!h)return r(y);if(m.displaced.invisible[c])return null;var T=ur(f.displacedBy.point),C=e(T.x,T.y);return n(C,y,!0)}if(h)return r(y);var E=m.displacedBy.point,N=e(E.x,E.y);return n(N,y,u.shouldAnimate)},s=function(c,p){if(c.isDragging)return c.critical.draggable.id===p.draggableId?null:a(p.draggableId,c.critical.draggable.id,c.impact,c.afterCritical);if(c.phase==="DROP_ANIMATING"){var m=c.completed;return m.result.draggableId===p.draggableId?null:a(p.draggableId,m.result.draggableId,m.impact,m.afterCritical)}return null};return s}var pE=function(){var t=lE(),n=dE(),r=function(s,l){return t(s,l)||n(s,l)||cE};return r},uE={dropAnimationFinished:Yd},mE=td(pE,uE,null,{context:Gs,pure:!0,areStatePropsEqual:Rp})(aE);function Fp(e){var t=Yo(ei),n=t.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:x.createElement(mE,e)}function Vp(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return x.createElement(Fp,ye({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function fE(e){var t=x.useContext(Ko);t||(process.env.NODE_ENV!=="production"?K(!1,"Could not find app context"):K());var n=t.contextId,r=t.isMovementAllowed,a=x.useRef(null),s=x.useRef(null),l=e.children,c=e.droppableId,p=e.type,m=e.mode,f=e.direction,u=e.ignoreContainerClipping,h=e.isDropDisabled,S=e.isCombineEnabled,y=e.snapshot,T=e.useClone,C=e.updateViewportMaxScroll,E=e.getContainerForClone,N=ge(function(){return a.current},[]),M=ge(function(J){a.current=J},[]),I=ge(function(){return s.current},[]),k=ge(function(J){s.current=J},[]);UT({props:e,getDroppableRef:N,getPlaceholderRef:I});var V=ge(function(){r()&&C({maxScroll:Xd()})},[r,C]);FT({droppableId:c,type:p,mode:m,direction:f,isDropDisabled:h,isCombineEnabled:S,ignoreContainerClipping:u,getDroppableRef:N});var R=x.createElement(zT,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(J){var L=J.onClose,Z=J.data,A=J.animate;return x.createElement(HT,{placeholder:Z,onClose:L,innerRef:k,animate:A,contextId:n,onTransitionEnd:V})}),w=Me(function(){return{innerRef:M,placeholder:R,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}},[n,c,R,M]),P=T?T.dragging.draggableId:null,O=Me(function(){return{droppableId:c,type:p,isUsingCloneFor:P}},[c,P,p]);function $(){if(!T)return null;var J=T.dragging,L=T.render,Z=x.createElement(Fp,{draggableId:J.draggableId,index:J.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(A,ne){return L(A,ne,J)});return vo.createPortal(Z,E())}return x.createElement(ei.Provider,{value:O},l(w,y),$())}var ri=function(t,n){return t===n.droppable.type},$p=function(t,n){return n.draggables[t.draggable.id]},hE=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=ye({},t,{shouldAnimatePlaceholder:!1}),r=nt(function(l){return{draggableId:l.id,type:l.type,source:{index:l.index,droppableId:l.droppableId}}}),a=nt(function(l,c,p,m,f,u){var h=f.descriptor.id,S=f.descriptor.droppableId===l;if(S){var y=u?{render:u,dragging:r(f.descriptor)}:null,T={isDraggingOver:p,draggingOverWith:p?h:null,draggingFromThisWith:h,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:T,useClone:y}}if(!c)return n;if(!m)return t;var C={isDraggingOver:p,draggingOverWith:h,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:C,useClone:null}}),s=function(c,p){var m=p.droppableId,f=p.type,u=!p.isDropDisabled,h=p.renderClone;if(c.isDragging){var S=c.critical;if(!ri(f,S))return n;var y=$p(S,c.dimensions),T=Ct(c.impact)===m;return a(m,u,T,T,y,h)}if(c.phase==="DROP_ANIMATING"){var C=c.completed;if(!ri(f,C.critical))return n;var E=$p(C.critical,c.dimensions);return a(m,u,Bp(C.result)===m,Ct(C.impact)===m,E,h)}if(c.phase==="IDLE"&&c.completed&&!c.shouldFlush){var N=c.completed;if(!ri(f,N.critical))return n;var M=Ct(N.impact)===m,I=!!(N.impact.at&&N.impact.at.type==="COMBINE"),k=N.critical.droppable.id===m;return M?I?t:n:k?t:n}return n};return s},SE={updateViewportMaxScroll:mv};function gE(){return document.body||(process.env.NODE_ENV!=="production"?K(!1,"document.body is not ready"):K()),document.body}var bE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:gE},oi=td(hE,SE,null,{context:Gs,pure:!0,areStatePropsEqual:Rp})(fE);oi.defaultProps=bE;const vE={disabled:"boolean",href:"string",icon:"SpsIcon",kind:"ButtonKind",spinning:"boolean",spinningTitle:"string",type:"ButtonType"};function Ue(e){const{children:t,className:n,href:r,icon:a,kind:s=W.ButtonKind.DEFAULT,spinning:l,spinningTitle:c,type:p=W.ButtonType.BUTTON,unsafelyReplaceClassName:m,...f}=e;let{disabled:u}=e;l&&(u=!0);const{t:h}=o.useContext(He),S=G(m||"sps-button",`sps-button--${s}`,u&&"sps-button--disabled",l&&"sps-button--spinning",n),y=a&&o.createElement("i",{className:G("sps-icon",`sps-icon-${a}`),"aria-hidden":"true"}),T=l&&o.createElement("div",{className:"sps-spinner"},c||h("design-system:button.spinningTitle"));return o.createElement("div",{className:S},r?o.createElement("a",{...f,href:r,className:"sps-button__clickable-element"},y,t,T):o.createElement("button",{...f,type:p,className:"sps-button__clickable-element",disabled:u},y,t,T))}Object.assign(Ue,{props:vE,displayName:"SpsButton"});const yE={content:"ReactNodeLike",icon:"SpsIcon",title:"string"};function Kp(e){const{content:t,className:n,icon:r,title:a,"data-testid":s,unsafelyReplaceClassName:l,...c}=e,p=G(l||"sps-card__header",n);return o.createElement("div",{className:p,title:a,...c},o.createElement("div",{className:"sps-card__title"}," ",r&&o.createElement("i",{"aria-hidden":"true",className:`sps-icon sps-icon-${r}`})," ",a),o.createElement("div",{className:"sps-card__header-content"},t))}Object.assign(Kp,{props:yE,displayName:"SpsCardHeader"});const TE={icon:"SpsIcon",kind:"TagKind"};function Ft(e){const{children:t,className:n,icon:r,kind:a=W.TagKind.DEFAULT,"data-testid":s,unsafelyReplaceClassName:l,...c}=e,p=o.Children.toArray(t).filter(f=>typeof f=="string").join(""),m=G(l||"sps-tag",`sps-tag--${a}`,n);return o.createElement("span",{className:m,"data-testid":`${s}__tag`,title:p,...c},r&&o.createElement("i",{"aria-hidden":"true",className:`sps-icon sps-icon-${r}`,"data-testid":`${s}__icon`}),t)}Object.assign(Ft,{props:TE,displayName:"SpsTag"});const EE={activateTab:"Function",active:"boolean",icon:"SpsIcon",label:"string",index:"number",tag:"string",tagKind:"TagKind",tagIcon:"SpsIcon"};function ai(e){const{activateTab:t,active:n,children:r,className:a,label:s,icon:l,id:c,index:p=0,tag:m,tagKind:f,tagIcon:u,"data-testid":h,unsafelyReplaceClassName:S,...y}=e,T=()=>{t&&t(this,p,r)},C=N=>{(N.key==="Enter"||N.key===" "||N.key==="Spacebar")&&(N.preventDefault(),N.stopPropagation(),t&&t(this,p,r))},E=G(S||"sps-nav__item","sps-nav__link",n&&"active",a);return o.createElement("a",{className:E,onClick:T,"data-toggle":"tab",id:c,role:"tab","aria-controls":c,...y,tabIndex:0,onKeyDown:C},l&&o.createElement("i",{className:`sps-icon sps-icon-${l}`}),o.createElement("span",null,s),m&&o.createElement(Ft,{kind:f||W.TagKind.KEY,icon:u},m))}Object.assign(ai,{props:EE,displayName:"SpsCardTabbedPane"});function wE(e,t,n){const[r,a]=o.useState({index:0,content:null}),s=o.useCallback((l,c,p)=>{a({index:c,content:p})},[]);return o.useEffect(()=>{function l(m){for(const f of m){const u=f.props;a({...r,content:u.children});break}}function c(m,f){for(let u=0;u<=m.length;u+=1){const h=m[u];if(h&&h.props&&(h.props.id&&h.props.id===f||h.props.label&&h.props.label===f)){a({content:h.props.children,index:u});break}}}const p=o.Children.toArray(e);n&&t?c(p,t):n&&l(p)},[t,e]),[r,s]}const CE={activeTab:"string",footer:"ReactNodeOrRenderFn",headerContent:"ReactNodeOrRenderFn",headerIcon:"SpsIcon",headerTitle:"string"};function si(e){o.useEffect(()=>{console.log(["App developers: There's a new card component! Update for improved performance,","fewer bugs, and increased flexibility. Reach out to the design system help Slack","channel if you have any questions!"].join(" "))},[]);const{activeTab:t,children:n,className:r,footer:a,headerContent:s,headerIcon:l,headerTitle:c,"data-testid":p,unsafelyReplaceClassName:m,...f}=e,u=o.Children.toArray(n).some(T=>o.isValidElement(T)&&T.type===ai),[h,S]=wE(n,t,u),y=G(m||"sps-card",r);return o.createElement("div",{...f,className:y,"data-testid":`${p}__card`},(c||s)&&o.createElement(Kp,{title:c,content:vt(s),icon:l,"data-testid":`${p}__header`}),u===!0?o.createElement(o.Fragment,null,o.createElement("nav",{className:"sps-nav sps-nav--tabs",role:"tablist","data-testid":`${p}__tabs`},o.Children.map(n,(T,C)=>{if(o.isValidElement(T))return o.cloneElement(T,{active:C===h.index,index:C,activateTab:S,"data-testid":`${p}__tab`})})),o.createElement("div",{className:"sps-card__body","data-testid":`${p}__body--tab-active`},h.content)):o.createElement("div",{className:"sps-card__body","data-testid":`${p}__body`},n),a&&o.createElement("div",{className:"sps-card__footer","data-testid":`${p}__footer`},vt(a)))}Object.assign(si,{props:CE,displayName:"SpsCard"});function ii(e,t){const[n,...r]=v.crumblePath(t);return r.length?e.members[n].get(r):e.members[n]}function DE(e=[],t={}){return{validators:[],...t,_type:"Array",members:[...e],errors:null,invalid:!1,isValid(){const n=this;return!n.invalid&&n.members.every(r=>r.isValid())},isRequired(){const n=this;return n.validators&&n.validators.indexOf(Eo.required)>-1},hasError(n){const r=this;return r.errors&&Object.prototype.hasOwnProperty.call(r.errors,n)},length:e.length,setInitValue(n){for(const[r,a]of this.members.entries())a.setInitValue(n[r]);return this},getValue(){return this.members.map(n=>n.getValue())},setValue(n=[]){for(const[r,a]of this.members.entries())a.setValue(n[r]);return this},update(){return this},isFocused(){return this.members.some(n=>n.isFocused())},focus(){const n=this;return n.members.length&&n.members[0].focus(),this},blur(){for(const n of this.members)n.blur();return this},isPristine(){return this.members.every(n=>n.isPristine())},markAsPristine(){for(const n of this.members)n.markAsPristine();return this},markAsDirty(){for(const n of this.members)n.markAsDirty();return this},reset(n){const r=this;r.members=[...e],r.length=e.length;for(const[a,s]of r.members.entries())n&&a<n.length?s.reset(n[a]):s.reset();return r.update(),this},get(n){return ii(this,n)},at(n){return this.members[n]},push(n){const r=this;return r.members.push(n),r.length=r.members.length,r.update(),this},insert(n,r){const a=this;return a.members.splice(n,0,r),a.length=a.members.length,a.update(),this},removeAt(n){const r=this;return r.members.splice(n,1),r.length=r.members.length,r.update(),this},setControl(n,r){const a=this;return a.members[n]=r,a.update(),this}}}function NE(e,t={}){return{validators:[],id:ft(),...t,_type:"Control",initValue:e,setInitValue(n){return this.value=n,this.initValue=n,this},value:e,getValue(){return this.value},setValue(n){return this.value=n,this.update(),this},errors:null,invalid:!1,isValid(){return!this.invalid},hasError(n){return this.errors&&Object.prototype.hasOwnProperty.call(this.errors,n)},focused:!1,isFocused(){return this.focused},pristine:!0,isPristine(){return this.pristine},isRequired(){return this.validators&&this.validators.indexOf(Eo.required)>-1},update(){return this},focus(){return this.focused=!0,this.update(),this.onFocus&&this.onFocus(),this},blur(){return this.focused=!1,this.update(),this.onBlur&&this.onBlur(),this},markAsPristine(){return this.pristine=!0,this.update(),this},markAsDirty(){return this.pristine=!1,this.update(),this},reset(n=this.initValue){return this.value=n,this.pristine=!0,this.update(),this}}}function kE(e={},t={}){return{validators:[],...t,_type:"Group",members:{...e},errors:null,invalid:!1,isValid(){return!this.invalid&&Object.keys(this.members).every(n=>this.members[n].isValid())},hasError(n){return this.errors&&Object.prototype.hasOwnProperty.call(this.errors,n)},setInitValue(n={}){for(const r of Object.keys(this.members))this.members[r].setInitValue(n[r]);return this},getValue(){return Object.keys(this.members).reduce((n,r)=>Object.assign(n,{[r]:this.members[r].getValue()}),{})},setValue(n={}){for(const r of Object.keys(this.members))this.members[r].setValue(n[r]);return this},update(){return this},isFocused(){return Object.keys(this.members).some(n=>this.members[n].isFocused())},focus(){const n=Object.keys(this.members);return n.length&&this.members[n[0]].focus(),this},blur(){for(const n of Object.keys(this.members))this.members[n].blur();return this},isPristine(){return Object.keys(this.members).every(n=>this.members[n].isPristine())},markAsPristine(){for(const n of Object.keys(this.members))this.members[n].markAsPristine();return this},markAsDirty(){for(const n of Object.keys(this.members))this.members[n].markAsDirty();return this},reset(n){this.members={...e};for(const r of Object.keys(this.members))n&&Object.prototype.hasOwnProperty.call(n,r)?this.members[r].reset(n[r]):this.members[r].reset();return this.update(),this},get(n){return ii(this,n)},addControl(n,r){if(this.contains(n))throw new Error(`Form group already contains a control called "${n}".`);return this.members[n]=r,this.update(),this},removeControl(n){return delete this.members[n],this.update(),this},setControl(n,r){return this.members[n]=r,this.update(),this},contains(n){return Object.keys(this.members).indexOf(n)>-1}}}function IE(e,t){t&&e.setInitValue(t);const[n,r]=x.useState(),[a,s]=x.useState([]),[l,c]=x.useReducer(p=>{for(const m of a)for(const f of v.traversePath(p,m))f.validators&&f.validators.length&&(f.errors=wo(f.getValue(),f.validators),f.invalid=!!f.errors&&!f.pristine);return r(void 0),s([]),{...p}},e);return v.forEachNestedObject(l,(p,m)=>{m._type&&(m.update=function(){return a.push(p),s(a),n||r(window.setTimeout(c,0)),this})}),l}function xE(e,t=null){const[n,r]=x.useState(t),a=x.useRef(()=>null);return x.useEffect(()=>{const s=()=>n;if(e.validators){const l=e.validators.indexOf(a.current);l===-1?e.validators.push(s):e.validators[l]=s,e.update(),a.current=s}},[n]),[n,r]}const Hp={formMeta:"SpsFormSetMeta<any>",onSubmit:"React.FormEventHandler"},ro=o.forwardRef((e,t)=>{const{children:n,onSubmit:r,formArray:a,formGroup:s,formMeta:l,...c}=e,p=s||a;function m(f){f.preventDefault(),p&&p.markAsDirty(),l&&(l.markAsDirty(),l.markAsBlurred(),l.markAsSubmitted()),r&&r(f)}return o.createElement("form",{ref:t,onSubmit:m,...c},n)});Object.assign(ro,{props:Hp,displayName:"SpsForm"});const Wp={},ME={ideal:{label:"Ideal",examples:{ideal:{react:v.code`
|
|
521
|
+
`)}}],YT=[function(t){var n=t.props;n.renderClone||(process.env.NODE_ENV!=="production"?K(!1,"Must provide a clone render function (renderClone) for virtual lists"):K())},function(t){var n=t.getPlaceholderRef;n()&&(process.env.NODE_ENV!=="production"?K(!1,"Expected virtual list to not have a placeholder"):K())}];function UT(e){to(function(){ni(e,WT),e.props.mode==="standard"&&ni(e,GT),e.props.mode==="virtual"&&ni(e,YT)})}var zT=function(e){Sc(t,e);function t(){for(var r,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s))||this,r.state={isVisible:!!r.props.on,data:r.props.on,animate:r.props.shouldAnimate&&r.props.on?"open":"none"},r.onClose=function(){r.state.animate==="close"&&r.setState({isVisible:!1})},r}t.getDerivedStateFromProps=function(a,s){return a.shouldAnimate?a.on?{isVisible:!0,data:a.on,animate:"open"}:s.isVisible?{isVisible:!0,data:s.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!a.on,data:a.on,animate:"none"}};var n=t.prototype;return n.render=function(){if(!this.state.isVisible)return null;var a={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(a)},t}(x.PureComponent),Pp={dragging:5e3,dropAnimating:4500},jT=function(t,n){return n?Jr.drop(n.duration):t?Jr.snap:Jr.fluid},qT=function(t,n){return t?n?qr.opacity.drop:qr.opacity.combining:null},JT=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function ZT(e){var t=e.dimension,n=t.client,r=e.offset,a=e.combineWith,s=e.dropping,l=!!a,c=JT(e),p=!!s,m=p?Ps.drop(r,l):Ps.moveTo(r),f={position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:jT(c,s),transform:m,opacity:qT(l,p),zIndex:p?Pp.dropAnimating:Pp.dragging,pointerEvents:"none"};return f}function XT(e){return{transform:Ps.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function QT(e){return e.type==="DRAGGING"?ZT(e):XT(e)}function eE(e,t,n){n===void 0&&(n=rt);var r=window.getComputedStyle(t),a=t.getBoundingClientRect(),s=ad(a,r),l=_o(s,n),c={client:s,tagName:t.tagName.toLowerCase(),display:r.display},p={x:s.marginBox.width,y:s.marginBox.height},m={descriptor:e,placeholder:c,displaceBy:p,client:s,page:l};return m}function tE(e){var t=Ys("draggable"),n=e.descriptor,r=e.registry,a=e.getDraggableRef,s=e.canDragInteractiveElements,l=e.shouldRespectForcePress,c=e.isEnabled,p=_e(function(){return{canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}},[s,c,l]),m=ge(function(S){var y=a();return y||(process.env.NODE_ENV!=="production"?K(!1,"Cannot get dimension when no ref is set"):K()),eE(n,y,S)},[n,a]),f=_e(function(){return{uniqueId:t,descriptor:n,options:p,getDimension:m}},[n,m,p,t]),u=x.useRef(f),h=x.useRef(!0);Dt(function(){return r.draggable.register(u.current),function(){return r.draggable.unregister(u.current)}},[r.draggable]),Dt(function(){if(h.current){h.current=!1;return}var S=u.current;u.current=f,r.draggable.update(f,S)},[f,r.draggable])}function nE(e,t,n){to(function(){function r(s){return"Draggable[id: "+s+"]: "}var a=e.draggableId;a||(process.env.NODE_ENV!=="production"?K(!1,"Draggable requires a draggableId"):K(!1)),typeof a!="string"&&(process.env.NODE_ENV!=="production"?K(!1,`Draggable requires a [string] draggableId.
|
|
522
|
+
Provided: [type: `+typeof a+"] (value: "+a+")"):K(!1)),ob(e.index)||(process.env.NODE_ENV!=="production"?K(!1,r(a)+" requires an integer index prop"):K(!1)),e.mapped.type!=="DRAGGING"&&(Op(n()),e.isEnabled&&(up(t,a)||(process.env.NODE_ENV!=="production"?K(!1,r(a)+" Unable to find drag handle"):K(!1))))})}function rE(e){zs(function(){var t=x.useRef(e);to(function(){e!==t.current&&(process.env.NODE_ENV!=="production"?K(!1,"Draggable isClone prop value changed during component life"):K(!1))},[e])})}function oE(e){e.preventDefault()}function aE(e){var t=x.useRef(null),n=ge(function(P){t.current=P},[]),r=ge(function(){return t.current},[]),a=Yo(Ko),s=a.contextId,l=a.dragHandleUsageInstructionsId,c=a.registry,p=Yo(ei),m=p.type,f=p.droppableId,u=_e(function(){return{id:e.draggableId,index:e.index,type:m,droppableId:f}},[e.draggableId,e.index,m,f]),h=e.children,S=e.draggableId,y=e.isEnabled,T=e.shouldRespectForcePress,C=e.canDragInteractiveElements,E=e.isClone,N=e.mapped,M=e.dropAnimationFinished;if(nE(e,s,r),rE(E),!E){var I=_e(function(){return{descriptor:u,registry:c,getDraggableRef:r,canDragInteractiveElements:C,shouldRespectForcePress:T,isEnabled:y}},[u,c,r,C,T,y]);tE(I)}var k=_e(function(){return y?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":S,"data-rbd-drag-handle-context-id":s,draggable:!1,onDragStart:oE}:null},[s,l,S,y]),V=ge(function(P){N.type==="DRAGGING"&&N.dropping&&P.propertyName==="transform"&&M()},[M,N]),R=_e(function(){var P=QT(N),O=N.type==="DRAGGING"&&N.dropping?V:null,$={innerRef:n,draggableProps:{"data-rbd-draggable-context-id":s,"data-rbd-draggable-id":S,style:P,onTransitionEnd:O},dragHandleProps:k};return $},[s,k,S,N,V,n]),w=_e(function(){return{draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}},[u.droppableId,u.id,u.index,u.type]);return h(R,N.snapshot,w)}var Rp=function(e,t){return e===t},Bp=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},sE=function(t){return t.combine?t.combine.draggableId:null},iE=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function lE(){var e=nt(function(a,s){return{x:a,y:s}}),t=nt(function(a,s,l,c,p){return{isDragging:!0,isClone:s,isDropAnimating:!!p,dropAnimation:p,mode:a,draggingOver:l,combineWith:c,combineTargetFor:null}}),n=nt(function(a,s,l,c,p,m,f){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:p,combineWith:m,mode:s,offset:a,dimension:l,forceShouldAnimate:f,snapshot:t(s,c,p,m,null)}}}),r=function(s,l){if(s.isDragging){if(s.critical.draggable.id!==l.draggableId)return null;var c=s.current.client.offset,p=s.dimensions.draggables[l.draggableId],m=Ct(s.impact),f=iE(s.impact),u=s.forceShouldAnimate;return n(e(c.x,c.y),s.movementMode,p,l.isClone,m,f,u)}if(s.phase==="DROP_ANIMATING"){var h=s.completed;if(h.result.draggableId!==l.draggableId)return null;var S=l.isClone,y=s.dimensions.draggables[l.draggableId],T=h.result,C=T.mode,E=Bp(T),N=sE(T),M=s.dropDuration,I={duration:M,curve:Ls.drop,moveTo:s.newHomeClientOffset,opacity:N?qr.opacity.drop:null,scale:N?qr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:s.newHomeClientOffset,dimension:y,dropping:I,draggingOver:E,combineWith:N,mode:C,forceShouldAnimate:null,snapshot:t(C,S,E,N,I)}}}return null};return r}function Ap(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var cE={mapped:{type:"SECONDARY",offset:rt,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ap(null)}};function dE(){var e=nt(function(l,c){return{x:l,y:c}}),t=nt(Ap),n=nt(function(l,c,p){return c===void 0&&(c=null),{mapped:{type:"SECONDARY",offset:l,combineTargetFor:c,shouldAnimateDisplacement:p,snapshot:t(c)}}}),r=function(c){return c?n(rt,c,!0):null},a=function(c,p,m,f){var u=m.displaced.visible[c],h=!!(f.inVirtualList&&f.effected[c]),S=Bo(m),y=S&&S.draggableId===c?p:null;if(!u){if(!h)return r(y);if(m.displaced.invisible[c])return null;var T=ur(f.displacedBy.point),C=e(T.x,T.y);return n(C,y,!0)}if(h)return r(y);var E=m.displacedBy.point,N=e(E.x,E.y);return n(N,y,u.shouldAnimate)},s=function(c,p){if(c.isDragging)return c.critical.draggable.id===p.draggableId?null:a(p.draggableId,c.critical.draggable.id,c.impact,c.afterCritical);if(c.phase==="DROP_ANIMATING"){var m=c.completed;return m.result.draggableId===p.draggableId?null:a(p.draggableId,m.result.draggableId,m.impact,m.afterCritical)}return null};return s}var pE=function(){var t=lE(),n=dE(),r=function(s,l){return t(s,l)||n(s,l)||cE};return r},uE={dropAnimationFinished:Yd},mE=td(pE,uE,null,{context:Gs,pure:!0,areStatePropsEqual:Rp})(aE);function Fp(e){var t=Yo(ei),n=t.isUsingCloneFor;return n===e.draggableId&&!e.isClone?null:x.createElement(mE,e)}function Vp(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return x.createElement(Fp,ye({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}function fE(e){var t=x.useContext(Ko);t||(process.env.NODE_ENV!=="production"?K(!1,"Could not find app context"):K());var n=t.contextId,r=t.isMovementAllowed,a=x.useRef(null),s=x.useRef(null),l=e.children,c=e.droppableId,p=e.type,m=e.mode,f=e.direction,u=e.ignoreContainerClipping,h=e.isDropDisabled,S=e.isCombineEnabled,y=e.snapshot,T=e.useClone,C=e.updateViewportMaxScroll,E=e.getContainerForClone,N=ge(function(){return a.current},[]),M=ge(function(J){a.current=J},[]),I=ge(function(){return s.current},[]),k=ge(function(J){s.current=J},[]);UT({props:e,getDroppableRef:N,getPlaceholderRef:I});var V=ge(function(){r()&&C({maxScroll:Xd()})},[r,C]);FT({droppableId:c,type:p,mode:m,direction:f,isDropDisabled:h,isCombineEnabled:S,ignoreContainerClipping:u,getDroppableRef:N});var R=x.createElement(zT,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(J){var L=J.onClose,Z=J.data,A=J.animate;return x.createElement(HT,{placeholder:Z,onClose:L,innerRef:k,animate:A,contextId:n,onTransitionEnd:V})}),w=_e(function(){return{innerRef:M,placeholder:R,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}},[n,c,R,M]),P=T?T.dragging.draggableId:null,O=_e(function(){return{droppableId:c,type:p,isUsingCloneFor:P}},[c,P,p]);function $(){if(!T)return null;var J=T.dragging,L=T.render,Z=x.createElement(Fp,{draggableId:J.draggableId,index:J.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(A,ne){return L(A,ne,J)});return vo.createPortal(Z,E())}return x.createElement(ei.Provider,{value:O},l(w,y),$())}var ri=function(t,n){return t===n.droppable.type},$p=function(t,n){return n.draggables[t.draggable.id]},hE=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},n=ye({},t,{shouldAnimatePlaceholder:!1}),r=nt(function(l){return{draggableId:l.id,type:l.type,source:{index:l.index,droppableId:l.droppableId}}}),a=nt(function(l,c,p,m,f,u){var h=f.descriptor.id,S=f.descriptor.droppableId===l;if(S){var y=u?{render:u,dragging:r(f.descriptor)}:null,T={isDraggingOver:p,draggingOverWith:p?h:null,draggingFromThisWith:h,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:T,useClone:y}}if(!c)return n;if(!m)return t;var C={isDraggingOver:p,draggingOverWith:h,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:C,useClone:null}}),s=function(c,p){var m=p.droppableId,f=p.type,u=!p.isDropDisabled,h=p.renderClone;if(c.isDragging){var S=c.critical;if(!ri(f,S))return n;var y=$p(S,c.dimensions),T=Ct(c.impact)===m;return a(m,u,T,T,y,h)}if(c.phase==="DROP_ANIMATING"){var C=c.completed;if(!ri(f,C.critical))return n;var E=$p(C.critical,c.dimensions);return a(m,u,Bp(C.result)===m,Ct(C.impact)===m,E,h)}if(c.phase==="IDLE"&&c.completed&&!c.shouldFlush){var N=c.completed;if(!ri(f,N.critical))return n;var M=Ct(N.impact)===m,I=!!(N.impact.at&&N.impact.at.type==="COMBINE"),k=N.critical.droppable.id===m;return M?I?t:n:k?t:n}return n};return s},SE={updateViewportMaxScroll:mv};function gE(){return document.body||(process.env.NODE_ENV!=="production"?K(!1,"document.body is not ready"):K()),document.body}var bE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:gE},oi=td(hE,SE,null,{context:Gs,pure:!0,areStatePropsEqual:Rp})(fE);oi.defaultProps=bE;const vE={disabled:"boolean",href:"string",icon:"SpsIcon",kind:"ButtonKind",spinning:"boolean",spinningTitle:"string",type:"ButtonType"};function Ue(e){const{children:t,className:n,href:r,icon:a,kind:s=W.ButtonKind.DEFAULT,spinning:l,spinningTitle:c,type:p=W.ButtonType.BUTTON,unsafelyReplaceClassName:m,...f}=e;let{disabled:u}=e;l&&(u=!0);const{t:h}=o.useContext(He),S=G(m||"sps-button",`sps-button--${s}`,u&&"sps-button--disabled",l&&"sps-button--spinning",n),y=a&&o.createElement("i",{className:G("sps-icon",`sps-icon-${a}`),"aria-hidden":"true"}),T=l&&o.createElement("div",{className:"sps-spinner"},c||h("design-system:button.spinningTitle"));return o.createElement("div",{className:S},r?o.createElement("a",{...f,href:r,className:"sps-button__clickable-element"},y,t,T):o.createElement("button",{...f,type:p,className:"sps-button__clickable-element",disabled:u},y,t,T))}Object.assign(Ue,{props:vE,displayName:"SpsButton"});const yE={content:"ReactNodeLike",icon:"SpsIcon",title:"string"};function Kp(e){const{content:t,className:n,icon:r,title:a,"data-testid":s,unsafelyReplaceClassName:l,...c}=e,p=G(l||"sps-card__header",n);return o.createElement("div",{className:p,title:a,...c},o.createElement("div",{className:"sps-card__title"}," ",r&&o.createElement("i",{"aria-hidden":"true",className:`sps-icon sps-icon-${r}`})," ",a),o.createElement("div",{className:"sps-card__header-content"},t))}Object.assign(Kp,{props:yE,displayName:"SpsCardHeader"});const TE={icon:"SpsIcon",kind:"TagKind"};function Ft(e){const{children:t,className:n,icon:r,kind:a=W.TagKind.DEFAULT,"data-testid":s,unsafelyReplaceClassName:l,...c}=e,p=o.Children.toArray(t).filter(f=>typeof f=="string").join(""),m=G(l||"sps-tag",`sps-tag--${a}`,n);return o.createElement("span",{className:m,"data-testid":`${s}__tag`,title:p,...c},r&&o.createElement("i",{"aria-hidden":"true",className:`sps-icon sps-icon-${r}`,"data-testid":`${s}__icon`}),t)}Object.assign(Ft,{props:TE,displayName:"SpsTag"});const EE={activateTab:"Function",active:"boolean",icon:"SpsIcon",label:"string",index:"number",tag:"string",tagKind:"TagKind",tagIcon:"SpsIcon"};function ai(e){const{activateTab:t,active:n,children:r,className:a,label:s,icon:l,id:c,index:p=0,tag:m,tagKind:f,tagIcon:u,"data-testid":h,unsafelyReplaceClassName:S,...y}=e,T=()=>{t&&t(this,p,r)},C=N=>{(N.key==="Enter"||N.key===" "||N.key==="Spacebar")&&(N.preventDefault(),N.stopPropagation(),t&&t(this,p,r))},E=G(S||"sps-nav__item","sps-nav__link",n&&"active",a);return o.createElement("a",{className:E,onClick:T,"data-toggle":"tab",id:c,role:"tab","aria-controls":c,...y,tabIndex:0,onKeyDown:C},l&&o.createElement("i",{className:`sps-icon sps-icon-${l}`}),o.createElement("span",null,s),m&&o.createElement(Ft,{kind:f||W.TagKind.KEY,icon:u},m))}Object.assign(ai,{props:EE,displayName:"SpsCardTabbedPane"});function wE(e,t,n){const[r,a]=o.useState({index:0,content:null}),s=o.useCallback((l,c,p)=>{a({index:c,content:p})},[]);return o.useEffect(()=>{function l(m){for(const f of m){const u=f.props;a({...r,content:u.children});break}}function c(m,f){for(let u=0;u<=m.length;u+=1){const h=m[u];if(h&&h.props&&(h.props.id&&h.props.id===f||h.props.label&&h.props.label===f)){a({content:h.props.children,index:u});break}}}const p=o.Children.toArray(e);n&&t?c(p,t):n&&l(p)},[t,e]),[r,s]}const CE={activeTab:"string",footer:"ReactNodeOrRenderFn",headerContent:"ReactNodeOrRenderFn",headerIcon:"SpsIcon",headerTitle:"string"};function si(e){o.useEffect(()=>{console.log(["App developers: There's a new card component! Update for improved performance,","fewer bugs, and increased flexibility. Reach out to the design system help Slack","channel if you have any questions!"].join(" "))},[]);const{activeTab:t,children:n,className:r,footer:a,headerContent:s,headerIcon:l,headerTitle:c,"data-testid":p,unsafelyReplaceClassName:m,...f}=e,u=o.Children.toArray(n).some(T=>o.isValidElement(T)&&T.type===ai),[h,S]=wE(n,t,u),y=G(m||"sps-card",r);return o.createElement("div",{...f,className:y,"data-testid":`${p}__card`},(c||s)&&o.createElement(Kp,{title:c,content:vt(s),icon:l,"data-testid":`${p}__header`}),u===!0?o.createElement(o.Fragment,null,o.createElement("nav",{className:"sps-nav sps-nav--tabs",role:"tablist","data-testid":`${p}__tabs`},o.Children.map(n,(T,C)=>{if(o.isValidElement(T))return o.cloneElement(T,{active:C===h.index,index:C,activateTab:S,"data-testid":`${p}__tab`})})),o.createElement("div",{className:"sps-card__body","data-testid":`${p}__body--tab-active`},h.content)):o.createElement("div",{className:"sps-card__body","data-testid":`${p}__body`},n),a&&o.createElement("div",{className:"sps-card__footer","data-testid":`${p}__footer`},vt(a)))}Object.assign(si,{props:CE,displayName:"SpsCard"});function ii(e,t){const[n,...r]=v.crumblePath(t);return r.length?e.members[n].get(r):e.members[n]}function DE(e=[],t={}){return{validators:[],...t,_type:"Array",members:[...e],errors:null,invalid:!1,isValid(){const n=this;return!n.invalid&&n.members.every(r=>r.isValid())},isRequired(){const n=this;return n.validators&&n.validators.indexOf(Eo.required)>-1},hasError(n){const r=this;return r.errors&&Object.prototype.hasOwnProperty.call(r.errors,n)},length:e.length,setInitValue(n){for(const[r,a]of this.members.entries())a.setInitValue(n[r]);return this},getValue(){return this.members.map(n=>n.getValue())},setValue(n=[]){for(const[r,a]of this.members.entries())a.setValue(n[r]);return this},update(){return this},isFocused(){return this.members.some(n=>n.isFocused())},focus(){const n=this;return n.members.length&&n.members[0].focus(),this},blur(){for(const n of this.members)n.blur();return this},isPristine(){return this.members.every(n=>n.isPristine())},markAsPristine(){for(const n of this.members)n.markAsPristine();return this},markAsDirty(){for(const n of this.members)n.markAsDirty();return this},reset(n){const r=this;r.members=[...e],r.length=e.length;for(const[a,s]of r.members.entries())n&&a<n.length?s.reset(n[a]):s.reset();return r.update(),this},get(n){return ii(this,n)},at(n){return this.members[n]},push(n){const r=this;return r.members.push(n),r.length=r.members.length,r.update(),this},insert(n,r){const a=this;return a.members.splice(n,0,r),a.length=a.members.length,a.update(),this},removeAt(n){const r=this;return r.members.splice(n,1),r.length=r.members.length,r.update(),this},setControl(n,r){const a=this;return a.members[n]=r,a.update(),this}}}function NE(e,t={}){return{validators:[],id:ft(),...t,_type:"Control",initValue:e,setInitValue(n){return this.value=n,this.initValue=n,this},value:e,getValue(){return this.value},setValue(n){return this.value=n,this.update(),this},errors:null,invalid:!1,isValid(){return!this.invalid},hasError(n){return this.errors&&Object.prototype.hasOwnProperty.call(this.errors,n)},focused:!1,isFocused(){return this.focused},pristine:!0,isPristine(){return this.pristine},isRequired(){return this.validators&&this.validators.indexOf(Eo.required)>-1},update(){return this},focus(){return this.focused=!0,this.update(),this.onFocus&&this.onFocus(),this},blur(){return this.focused=!1,this.update(),this.onBlur&&this.onBlur(),this},markAsPristine(){return this.pristine=!0,this.update(),this},markAsDirty(){return this.pristine=!1,this.update(),this},reset(n=this.initValue){return this.value=n,this.pristine=!0,this.update(),this}}}function kE(e={},t={}){return{validators:[],...t,_type:"Group",members:{...e},errors:null,invalid:!1,isValid(){return!this.invalid&&Object.keys(this.members).every(n=>this.members[n].isValid())},hasError(n){return this.errors&&Object.prototype.hasOwnProperty.call(this.errors,n)},setInitValue(n={}){for(const r of Object.keys(this.members))this.members[r].setInitValue(n[r]);return this},getValue(){return Object.keys(this.members).reduce((n,r)=>Object.assign(n,{[r]:this.members[r].getValue()}),{})},setValue(n={}){for(const r of Object.keys(this.members))this.members[r].setValue(n[r]);return this},update(){return this},isFocused(){return Object.keys(this.members).some(n=>this.members[n].isFocused())},focus(){const n=Object.keys(this.members);return n.length&&this.members[n[0]].focus(),this},blur(){for(const n of Object.keys(this.members))this.members[n].blur();return this},isPristine(){return Object.keys(this.members).every(n=>this.members[n].isPristine())},markAsPristine(){for(const n of Object.keys(this.members))this.members[n].markAsPristine();return this},markAsDirty(){for(const n of Object.keys(this.members))this.members[n].markAsDirty();return this},reset(n){this.members={...e};for(const r of Object.keys(this.members))n&&Object.prototype.hasOwnProperty.call(n,r)?this.members[r].reset(n[r]):this.members[r].reset();return this.update(),this},get(n){return ii(this,n)},addControl(n,r){if(this.contains(n))throw new Error(`Form group already contains a control called "${n}".`);return this.members[n]=r,this.update(),this},removeControl(n){return delete this.members[n],this.update(),this},setControl(n,r){return this.members[n]=r,this.update(),this},contains(n){return Object.keys(this.members).indexOf(n)>-1}}}function IE(e,t){t&&e.setInitValue(t);const[n,r]=x.useState(),[a,s]=x.useState([]),[l,c]=x.useReducer(p=>{for(const m of a)for(const f of v.traversePath(p,m))f.validators&&f.validators.length&&(f.errors=wo(f.getValue(),f.validators),f.invalid=!!f.errors&&!f.pristine);return r(void 0),s([]),{...p}},e);return v.forEachNestedObject(l,(p,m)=>{m._type&&(m.update=function(){return a.push(p),s(a),n||r(window.setTimeout(c,0)),this})}),l}function xE(e,t=null){const[n,r]=x.useState(t),a=x.useRef(()=>null);return x.useEffect(()=>{const s=()=>n;if(e.validators){const l=e.validators.indexOf(a.current);l===-1?e.validators.push(s):e.validators[l]=s,e.update(),a.current=s}},[n]),[n,r]}const Hp={formMeta:"SpsFormSetMeta<any>",onSubmit:"React.FormEventHandler"},ro=o.forwardRef((e,t)=>{const{children:n,onSubmit:r,formArray:a,formGroup:s,formMeta:l,...c}=e,p=s||a;function m(f){f.preventDefault(),p&&p.markAsDirty(),l&&(l.markAsDirty(),l.markAsBlurred(),l.markAsSubmitted()),r&&r(f)}return o.createElement("form",{ref:t,onSubmit:m,...c},n)});Object.assign(ro,{props:Hp,displayName:"SpsForm"});const Wp={},ME={ideal:{label:"Ideal",examples:{ideal:{react:v.code`
|
|
523
523
|
import {
|
|
524
524
|
SpsForm,
|
|
525
525
|
SpsLabel,
|
|
@@ -1510,7 +1510,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
1510
1510
|
</div>
|
|
1511
1511
|
);
|
|
1512
1512
|
}
|
|
1513
|
-
`}}}},HE=ko||Ka,WE={action:"SpsActionMethod",captionKey:"string",comparisonKey:"string",disabled:"boolean",formMeta:"SpsFormFieldMeta<any>",notClearable:"boolean",options:"Eventually<any[]> | (filter?: string) => Eventually<any[]>",onChange:"ChangeEventHandler",onOpen:"OnOpenHandler",placeholder:"string",searchDebounce:"number",searchPlaceholder:"string",tallOptionList:"boolean",textKey:"string",valueKey:"string",value:"any",zeroState:"string",autoFixWidth:"boolean",loading:"boolean",filterByTextAndCaptionKey:"boolean",maxHeightOptionListPx:"number",maxHeightOptionListRem:"number",disableOptionsMemoization:"boolean",onBeforeChange:"(value: string) => boolean | Promise<boolean>"},Yn=o.forwardRef((e,t)=>{const{action:n,autoFixWidth:r=!1,captionKey:a,className:s,comparisonKey:l,disabled:c,formControl:p,formMeta:m,id:f,notClearable:u,options:h,onChange:S,onClick:y,onOpen:T,placeholder:C,searchDebounce:E,searchPlaceholder:N="Search…",tallOptionList:M,textKey:I,valueKey:k,unsafelyReplaceClassName:V,value:R,zeroState:w,loading:P,filterByTextAndCaptionKey:O,maxHeightOptionListPx:$,maxHeightOptionListRem:J,"data-testid":L,disableOptionsMemoization:Z,disableDefaultOptionsFiltering:A,onBeforeChange:ne,...Y}=e,U=m||p,{wrapperId:ae,controlId:H}=bt(f,U),q=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),{t:j}=o.useContext(He),[B,z]=qt({isOpen:!1,value:R,text:"",keyDown:null,opensUpward:!1,optionIds:""}),[Q,ee]=o.useState();function de(fe){z({value:fe,text:fe&&I?fe[I]:fe})}async function ie(fe){const Fe=fe&&k&&typeof fe=="object"?fe[k]:fe;ne&&!await ne(Fe)||(de(fe),U&&(U.setValue(Fe),U.markAsDirty()),S&&S(new gn({value:Fe})))}o.useEffect(()=>{de(R)},[R,I]);function le(){ie(void 0)}function se(){z({isOpen:!1})}function
|
|
1513
|
+
`}}}},HE=ko||Ka,WE={action:"SpsActionMethod",captionKey:"string",comparisonKey:"string",disabled:"boolean",formMeta:"SpsFormFieldMeta<any>",notClearable:"boolean",options:"Eventually<any[]> | (filter?: string) => Eventually<any[]>",onChange:"ChangeEventHandler",onOpen:"OnOpenHandler",placeholder:"string",searchDebounce:"number",searchPlaceholder:"string",tallOptionList:"boolean",textKey:"string",valueKey:"string",value:"any",zeroState:"string",autoFixWidth:"boolean",loading:"boolean",filterByTextAndCaptionKey:"boolean",maxHeightOptionListPx:"number",maxHeightOptionListRem:"number",disableOptionsMemoization:"boolean",onBeforeChange:"(value: string) => boolean | Promise<boolean>"},Yn=o.forwardRef((e,t)=>{const{action:n,autoFixWidth:r=!1,captionKey:a,className:s,comparisonKey:l,disabled:c,formControl:p,formMeta:m,id:f,notClearable:u,options:h,onChange:S,onClick:y,onOpen:T,placeholder:C,searchDebounce:E,searchPlaceholder:N="Search…",tallOptionList:M,textKey:I,valueKey:k,unsafelyReplaceClassName:V,value:R,zeroState:w,loading:P,filterByTextAndCaptionKey:O,maxHeightOptionListPx:$,maxHeightOptionListRem:J,"data-testid":L,disableOptionsMemoization:Z,disableDefaultOptionsFiltering:A,onBeforeChange:ne,...Y}=e,U=m||p,{wrapperId:ae,controlId:H}=bt(f,U),q=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),{t:j}=o.useContext(He),[B,z]=qt({isOpen:!1,value:R,text:"",keyDown:null,opensUpward:!1,optionIds:""}),[Q,ee]=o.useState();function de(fe){z({value:fe,text:fe&&I?fe[I]:fe})}async function ie(fe){const Fe=fe&&k&&typeof fe=="object"?fe[k]:fe;ne&&!await ne(Fe)||(de(fe),U&&(U.setValue(Fe),U.markAsDirty()),S&&S(new gn({value:Fe})))}o.useEffect(()=>{de(R)},[R,I]);function le(){ie(void 0)}function se(){z({isOpen:!1})}function ke(fe){fe.nativeEvent.stopImmediatePropagation(),c||z({isOpen:!B.isOpen})}function Ie(fe){c||(["Up","ArrowUp","Down","ArrowDown"," ","Spacebar"].indexOf(fe.key)>-1&&fe.preventDefault(),Ga.includes(fe.key)&&(ee(fe),fe.preventDefault()),fe.persist(),z({keyDown:fe}))}function it(fe){z({isOpen:fe})}function lt(fe){z({opensUpward:fe})}function ut(fe){fe.detail!==ae&&z({isOpen:!1})}function ct(fe){z({optionIds:new Array(fe).fill("").map((Fe,ve)=>`${ae}-options-option-${ve}`).join(",")})}o.useEffect(()=>(document.addEventListener("click",se),document.addEventListener("DropdownOpened",ut),()=>{document.removeEventListener("click",se),document.removeEventListener("DropdownOpened",ut)}),[]),o.useLayoutEffect(()=>{if(r&&oe.current&&q.current){q.current.style.width="";const Fe=`${q.current.getBoundingClientRect().width+6}px`;q.current.style.width=Fe,oe.current.style.width=Fe,oe.current.style.maxWidth=Fe}}),Ya(()=>{if(B.isOpen){re.current&&HE(re.current,{scrollMode:"if-needed"}),T==null||T();const fe=document.createEvent("CustomEvent");fe.initCustomEvent("DropdownOpened",!1,!1,ae),document.dispatchEvent(fe)}},[B.isOpen]),o.useImperativeHandle(t,()=>({focus:()=>{var fe;(fe=re.current)==null||fe.focus()}})),o.useEffect(()=>{let fe;return B.isOpen&&(fe=()=>{z({isOpen:!1})},window.addEventListener("resize",fe)),()=>{fe&&window.removeEventListener("resize",fe)}},[B.isOpen]),Br({isOpen:B.isOpen,rootRef:re});const Pt=G(V||"sps-select",B.isOpen&&"sps-select--open",B.isOpen&&"z-stratum-dropdown",B.opensUpward&&"sps-select--opens-upward",s),je=B.text||C||j("design-system:select.defaultPlaceholder",{defaultValue:"Select one..."});return o.createElement(at,{id:ae,className:Pt,onKeyDown:Ie,formControl:p,formMeta:m,ref:re,role:"listbox","aria-owns":B.optionIds,"data-testid":L,onClick:y,...Y},o.createElement("div",{className:G("sps-select__dropctrl",c&&"disabled"),id:H,tabIndex:0,onClick:ke,ref:oe,title:je,"data-testid":`${L}-dropctrl`},o.createElement("div",{className:"sps-select__dropctrl-content"},o.createElement("span",{className:G("sps-select__value",!B.text&&"sps-select__value--placeholder"),"data-testid":`${L}-value`},je),B.value&&!u&&!c&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-select__clear-btn",onClick:le,"data-testid":`${L}-clear-value`}),o.createElement("i",{className:"sps-icon sps-icon-chevron-down sps-select__dropctrl-icon"}))),o.createElement(Rr,{id:`${ae}-options`,ref:q,attachTo:oe,captionKey:a,comparisonKey:l,isOpen:B.isOpen,keyDown:B.keyDown,options:h,onOptionSelected:ie,onPositionFlip:lt,onSelfToggle:it,searchDebounce:E,searchPlaceholder:N,selectedOption:B.value,specialAction:n,tall:M,textKey:I,filterByTextAndCaptionKey:O,optionRole:"option",valueKey:k,onOptionListChanged:ct,zeroState:w,ignoreWidthStyles:r,loading:P,maxHeightPx:$,maxHeightRem:J,disableOptionsMemoization:Z,disableDefaultOptionsFiltering:A,"data-testid":`${L}-option-list`,typeaheadEvent:Q}))});Object.assign(Yn,{props:WE,displayName:"SpsSelect"});const nu={general:{label:"General Usage",description:({NavigateTo:e})=>x.createElement(x.Fragment,null,x.createElement("h5",null,"Use a Select:"),x.createElement("ul",null,x.createElement("li",{className:"mb-2"},"When a list of predetermined values can be provided.")),x.createElement("h5",null,"Do Not Use a Select:"),x.createElement("ul",null,x.createElement("li",{className:"mb-2"},"When there are only two possible options. Consider"," ",x.createElement(e,{to:"checkbox"},"Checkboxes")," or"," ",x.createElement(e,{to:"radio-buttons"},"Radio Buttons")," insead."),x.createElement("li",{className:"mb-2"},"When it is ideal to display all available options without requiring a click. Consider"," ",x.createElement(e,{to:"checkbox"},"Checkboxes")," or"," ",x.createElement(e,{to:"radio-buttons"},"Radio Buttons")," insead.")),x.createElement("h5",null,"Using Selects in a Form"),x.createElement("p",null,"Reference the ",x.createElement(e,{to:"form"},"Forms")," page for guidelines for placing inputs in Form layouts"))},basic:{label:"Basic Selects",description:()=>x.createElement("p",null,"Basic Selects include a label and dropdown menu containing a list of options. The user is allowed to make a single selection."),examples:{basic:{react:v.code`
|
|
1514
1514
|
import { SpsLabel, SpsSelect, useSpsForm } from "@spscommerce/ds-react";
|
|
1515
1515
|
function DemoComponent() {
|
|
1516
1516
|
const colors = ["red", "blue", "green"];
|
|
@@ -1823,7 +1823,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
1823
1823
|
</div>
|
|
1824
1824
|
);
|
|
1825
1825
|
}
|
|
1826
|
-
`}}}},GE={formMeta:"SpsFormSetMeta<any>",stacked:"boolean"};function br({children:e,className:t,formArray:n,formGroup:r,formMeta:a,stacked:s,"data-testid":l,unsafelyReplaceClassName:c,...p}){const m=r||n,f=m||a,[u,h]=o.useState(!1);o.useEffect(()=>{if(f){const y=f.isFocused();!u&&y&&f.onFocus?f.onFocus():u&&!y&&f.onBlur&&f.onBlur(),h(y)}});const S=G(c||"sps-form-group",(m&&m.invalid||a&&(!a.isValid()||!a.contentsAreValid()))&&"sps-form-group--error",t);return o.createElement("div",{className:S,"data-testid":l,...p},o.createElement("div",{className:G("sps-input-group",s&&"sps-input-group--stacked")},e))}Object.assign(br,{props:GE,displayName:"SpsInputGroup"});const YE={disabled:"boolean",formMeta:"SpsFormFieldMeta<SimpleMomentRange>",maxDate:"SimpleDate",minDate:"SimpleDate",onChange:"(newMomentRange: SimpleMomentRange) => void",presets:"Array<DateTimePreset>",value:"SimpleMomentRange",showTwoMonths:"boolean",twentyFourHour:"boolean",format:"string",placeholder12h:"string",placeholder24h:"string"},ru="sps-datepicker",ou=["AM","PM"],au=[{definition:"P0D",label:"design-system:datepicker.preset.today"},{definition:"() => [null, {month: 1, date: 1, year: 3000}]",label:"design-system:datepicker.preset.before"},{definition:"() => [{month: 1, date: 1, year: 1990}, null]",label:"design-system:datepicker.preset.after"},{definition:"P7D",label:"design-system:datepicker.preset.sevenDays"},{definition:"P30D",label:"design-system:datepicker.preset.thirtyDays"},{definition:"P60D",label:"design-system:datepicker.preset.sixtyDays"},{definition:"P90D",label:"design-system:datepicker.preset.ninetyDays"},{definition:"P1Y",label:"design-system:datepicker.preset.oneYear"}];function mi({className:e,disabled:t,formMeta:n,id:r,maxDate:a,minDate:s,onChange:l,presets:c=au,value:p,showTwoMonths:m=!1,twentyFourHour:f=!1,format:u,"data-testid":h,placeholder24h:S="00:00",placeholder12h:y="12:00"}){const{t:T}=o.useContext(He),{wrapperId:C,controlId:E}=bt(r&&`${r}_from`,n),{wrapperId:N,controlId:M}=bt(r&&`${r}_to`,n),I=o.useRef(null),k=o.useRef(null),V=o.useRef(null),R=o.useRef(null),w=o.useRef(null),P=te.splitMomentInDateTimeParts(Array.isArray(p)?p[0]:void 0,f,u),O=te.splitMomentInDateTimeParts(Array.isArray(p)?p[1]:void 0,f,u,!0),[$,J]=o.useState(P[0]),[L,Z]=o.useState(O[0]),[A,ne]=o.useState(P[1]),[Y,U]=o.useState(O[1]),[ae,H]=o.useState(P[2]),[q,re]=o.useState(O[2]),[oe,j]=o.useState(null),{showPopup:B,doShowPopup:z,doHidePopup:Q}=dr(I,w);function ee(ue){n&&(n.setValue(ue),n.markAsDirty()),l&&l(ue)}function de(ue){return ue&&/^design-system:/.test(ue.label)?T(ue.label):ue.label}const ie=oe&&de(oe)==="Before",le=oe&&de(oe)==="After";function se(ue){const Se=p||[],Oe=te.toMoment(ue);let Ze;if(ie)Ze=[null,Oe],Q(!0);else if(le)Ze=[Oe,null],Q(!0);else if(!Se[0]||Se[1]||Oe!=null&&Oe.isBefore(Se[0])){let Ie=parseInt((A==null?void 0:A.split(":")[0])||"0",10);!f&&Ie===12&&(Ie=0);const dt=parseInt((A==null?void 0:A.split(":")[1])||"0",10);Oe==null||Oe.set("hour",ae==="PM"?12+Ie:Ie<12?Ie:0),Oe==null||Oe.set("minute",dt),Ze=[Oe,null],j(null)}else{let Ie=parseInt((Y==null?void 0:Y.split(":")[0])||"0",10);!f&&Ie===12&&(Ie=0);const dt=parseInt((Y==null?void 0:Y.split(":")[1])||"0",10);Oe==null||Oe.set("hour",q==="PM"?12+Ie:Ie),Oe==null||Oe.set("minute",dt),Ze=[Se[0],Oe],Q(!0),j(null)}ee(Ze)}function Ne(ue){J(ue.target.value)}function ke(ue){te.validateTimeString(ue.target.value,f)&&ne(ue.target.value)}function it(ue,Se,Oe){const Ze=$,Ie=Se??A,dt=ae;if(Ze===P[0]&&Ie===P[1]&&dt===P[2])return;const Tt=te.createFrom(Ze,u);if(Tt&&te.isValid(Tt)){const Ae=te.toMoment(Tt);let pt=parseInt((Ie==null?void 0:Ie.split(":")[0])||"0",10);!f&&pt===12&&(pt=0);const _n=parseInt((Ie==null?void 0:Ie.split(":")[1])||"0",10);Ae==null||Ae.set("hour",dt==="PM"?12+pt:pt),Ae==null||Ae.set("minute",_n);const Xt=[Ae,(Ae==null?void 0:Ae.isBefore(p==null?void 0:p[1]))&&(p==null?void 0:p[1])||null];ee(Xt)}}function lt(ue){te.validateTimeString(ue??A,f)&&(ne(te.padIncompleteTimeString(ue??A,f)),setTimeout(()=>it(void 0,ue),0))}function ut(ue){H(ue.target.value)}function ct(ue){te.validateTimeString(ue,f)&&(ne(ue),setTimeout(()=>lt(ue),0))}o.useEffect(()=>{ae!==P[2]&&it()},[ae]);function Pt(ue){Z(ue.target.value)}function je(ue){te.validateTimeString(ue.target.value,f)&&U(ue.target.value)}function fe(ue,Se,Oe){const Ze=L,Ie=Se??Y,dt=q;if(Ze===O[0]&&Ie===O[1]&&dt===O[2])return;const Tt=te.createFrom(Ze,u);if(Tt&&te.isValid(Tt)){const Ae=te.toMoment(Tt);let pt=parseInt((Ie==null?void 0:Ie.split(":")[0])||"0",10);!f&&pt===12&&(pt=0);const _n=parseInt((Ie==null?void 0:Ie.split(":")[1])||"0",10);Ae==null||Ae.set("hour",dt==="PM"?12+pt:pt),Ae==null||Ae.set("minute",_n);const Xt=[(Ae==null?void 0:Ae.isAfter(p==null?void 0:p[0]))&&(p==null?void 0:p[0])||null,Ae];ee(Xt)}}function Fe(ue){te.validateTimeString(ue??Y,f)&&(U(te.padIncompleteTimeString(ue??Y,f)),setTimeout(()=>fe(void 0,ue),0))}function ve(ue){re(ue.target.value)}function Le(ue){te.validateTimeString(ue,f)&&(U(ue),setTimeout(()=>Fe(ue),0))}o.useEffect(()=>{q!==O[2]&&fe()},[q]);function Qe(){ee([null,null]),j(null)}function we(ue){return function(Se){switch(Se.key){case"Tab":Q();break;case"Backspace":Se.target.selectionStart===0&&p&&!Array.isArray(p)&&Qe();break;case"Enter":ue==="from"?it():ue==="to"&&fe();break}}}function Ht(ue){if(!ue){j(null),ee([null,null]);return}j(ue);const Se=te.createDateTimeRangeFromPreset(ue);ue&&de(ue)==="Before"?!p||Array.isArray(p)&&p[0]&&p[1]?ee([null,null]):Array.isArray(p)&&p[0]?ee([null,te.toMoment(te.createFrom(p[0],u))]):Array.isArray(p)&&p[1]&&ee([null,te.toMoment(te.createFrom(p[1],u))]):ue&&de(ue)==="After"?!p||Array.isArray(p)&&p[0]&&p[1]?ee([null,null]):Array.isArray(p)&&p[0]?ee([te.toMoment(te.createFrom(p[0],u)),null]):Array.isArray(p)&&p[1]&&ee([te.toMoment(te.createFrom(p[1],u)),null]):JSON.stringify(p)!==JSON.stringify(Se)&&ee([Se[0],Se[1]])}o.useEffect(()=>{p&&Array.isArray(p)&&!p.length&&Qe()},[p]),o.useEffect(()=>{if(p&&Array.isArray(p)&&Array.isArray(p)){if(p[0]&&!p[1]){const ue=c.find(Se=>de(Se)==="After");ue&&Ht(ue)}else if(!p[0]&&p[1]){const ue=c.find(Se=>de(Se)==="Before");ue&&Ht(ue)}else if(p[0]&&p[1]){const ue=te.toDateTimeStringRange(p,f,u),Se=c.find(Oe=>ue===te.toDateTimeStringRange(te.createDateTimeRangeFromPreset(Oe),f,u));Se&&Ht(Se)}}},[]),o.useEffect(()=>{P[0]?J(P[0]):J(""),P[1]?ne(P[1]):ne(f?"00:00":"12:00"),f||(P[2]?H(P[2]):H("AM")),O[0]?Z(O[0]):Z(""),O[1]?U(O[1]):U(f?"23:59":"11:59"),f||(O[2]?re(O[2]):re("PM"))},[P[0],P[1],P[2],O[0],O[1],O[2],f]);const Mn=G(ru,"sps-text-input",B&&`${ru}--open`,e);return o.createElement(o.Fragment,null,o.createElement("div",{className:G("sps-datetime-range-picker")},o.createElement("div",{className:G("sps-datetime-range-picker__pair")},o.createElement(at,{id:C,className:Mn,formMeta:n,inputRef:k,focusInputOnClick:!0,ref:I},o.createElement("div",{className:G("sps-form-control",t&&"disabled")},o.createElement("i",{className:G("sps-text-input__icon","sps-icon","sps-icon-calendar")}),oe&&o.createElement("div",{"data-testid":`${h}_selected_preset`,className:"sps-datepicker__selected-preset"},o.createElement("span",{className:"sps-tag sps-tag--info"},de(oe))),o.createElement("input",{type:"text",ref:k,className:"sps-text-input__input","data-testid":`${h}_from_date_input`,id:E,placeholder:!$&&!oe?(u==null?void 0:u.toUpperCase())||ir:ie?O[0]:le?P[0]:void 0,onChange:Ne,onClick:z,onFocus:z,onBlur:()=>it(),onKeyDown:we("from"),value:oe?"":$,disabled:t}),p&&!t&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:Qe}))),!oe&&(f?o.createElement(Jt,{className:"sps-time-input",placeholder:S,suggestions:Ba,zeroState:"Custom time",value:A,onChange:ke,onBlur:()=>lt(),onSelectionChange:ct,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}):o.createElement(br,null,o.createElement(Jt,{className:"sps-time-input",placeholder:y,suggestions:Ra,zeroState:"Custom time",value:A,onChange:ke,onBlur:()=>lt(),onSelectionChange:ct,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}),o.createElement(Yn,{options:ou,value:ae,onChange:ut,disabled:t,notClearable:!0})))),!oe&&o.createElement("span",{className:G("sps-datepicker__to")},"to"),!oe&&o.createElement("div",{className:G("sps-datetime-range-picker__pair")},o.createElement(at,{id:N,className:Mn,formMeta:n,inputRef:R,focusInputOnClick:!0,ref:V},o.createElement("div",{className:G("sps-form-control",t&&"disabled")},o.createElement("i",{className:G("sps-text-input__icon","sps-icon","sps-icon-calendar")}),oe&&o.createElement("div",{"data-testid":`${h}_selected_preset`,className:"sps-datepicker__selected-preset"},o.createElement("span",{className:"sps-tag sps-tag--info"},de(oe))),o.createElement("input",{type:"text",ref:R,className:"sps-text-input__input","data-testid":`${h}_to_date_input`,id:M,placeholder:!L&&!oe?(u==null?void 0:u.toUpperCase())||ir:void 0,onChange:Pt,onClick:z,onFocus:z,onKeyDown:we("to"),onBlur:()=>fe(),value:L,disabled:t}),p&&!t&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:Qe}))),f?o.createElement(Jt,{className:"sps-time-input",placeholder:S,suggestions:Ba,zeroState:"Custom time",value:Y,onChange:je,onBlur:()=>Fe(),onSelectionChange:Le,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}):o.createElement(br,null,o.createElement(Jt,{className:"sps-time-input",placeholder:y,suggestions:Ra,zeroState:"Custom time",value:Y,onChange:je,onBlur:()=>Fe(),onSelectionChange:Le,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}),o.createElement(Yn,{options:ou,value:q,onChange:ve,disabled:t,notClearable:!0})))),o.createElement(Jo,{isOpen:B,attachTo:I,ref:w},o.createElement("div",{className:"sps-datepicker__presets"},o.createElement("fieldset",null,o.createElement("legend",{className:"sps-datepicker__presets-label"},T("design-system:datepicker.presetsLabel",{defaultValue:"Ranges"})),o.createElement("div",{className:"sps-custom-control sps-custom-radio sps-custom-control--no-error"},o.createElement("input",{"data-testid":`${h}_presets_custom_input`,type:"radio",id:`sps-date-range-picker-${C}__range-custom`,className:"sps-custom-control__input",checked:!oe,name:`sps-date-range-picker-${C}__range`,onChange:()=>Ht()}),o.createElement("label",{className:"sps-custom-control__label",htmlFor:`sps-date-range-picker-${C}__range-custom`},T("design-system:datepicker.preset.custom",{defaultValue:"Custom"}))),c.map((ue,Se)=>o.createElement("div",{key:de(ue),className:"sps-custom-control sps-custom-radio sps-custom-control--no-error"},o.createElement("input",{type:"radio","data-testid":`${h}_preset_option_${ue.label}`,id:`sps-date-range-picker-${C}__range-${Se}`,name:`sps-date-range-picker-${C}__range`,onChange:()=>Ht(ue),checked:oe!=null&&oe.definition?oe.definition===ue.definition:!1,className:"sps-custom-control__input"}),o.createElement("label",{className:"sps-custom-control__label",htmlFor:`sps-date-range-picker-${C}__range-${Se}`},de(ue)))))),o.createElement(qo,{"data-testid":`${h}_calendar`,selectedRange:Array.isArray(p)?[te.createFrom(p[0],u),te.createFrom(p[1],u)]:void 0,onNewSelection:se,minDate:s,maxDate:a,showTwoMonths:m,selectedPreset:oe&&de(oe)})))}Object.assign(mi,{props:YE,displayName:"SpsDateTimeRangePicker"});const su={basic:{label:"Basic",examples:{basic:{react:v.code`
|
|
1826
|
+
`}}}},GE={formMeta:"SpsFormSetMeta<any>",stacked:"boolean"};function br({children:e,className:t,formArray:n,formGroup:r,formMeta:a,stacked:s,"data-testid":l,unsafelyReplaceClassName:c,...p}){const m=r||n,f=m||a,[u,h]=o.useState(!1);o.useEffect(()=>{if(f){const y=f.isFocused();!u&&y&&f.onFocus?f.onFocus():u&&!y&&f.onBlur&&f.onBlur(),h(y)}});const S=G(c||"sps-form-group",(m&&m.invalid||a&&(!a.isValid()||!a.contentsAreValid()))&&"sps-form-group--error",t);return o.createElement("div",{className:S,"data-testid":l,...p},o.createElement("div",{className:G("sps-input-group",s&&"sps-input-group--stacked")},e))}Object.assign(br,{props:GE,displayName:"SpsInputGroup"});const YE={disabled:"boolean",formMeta:"SpsFormFieldMeta<SimpleMomentRange>",maxDate:"SimpleDate",minDate:"SimpleDate",onChange:"(newMomentRange: SimpleMomentRange) => void",presets:"Array<DateTimePreset>",value:"SimpleMomentRange",showTwoMonths:"boolean",twentyFourHour:"boolean",format:"string",placeholder12h:"string",placeholder24h:"string"},ru="sps-datepicker",ou=["AM","PM"],au=[{definition:"P0D",label:"design-system:datepicker.preset.today"},{definition:"() => [null, {month: 1, date: 1, year: 3000}]",label:"design-system:datepicker.preset.before"},{definition:"() => [{month: 1, date: 1, year: 1990}, null]",label:"design-system:datepicker.preset.after"},{definition:"P7D",label:"design-system:datepicker.preset.sevenDays"},{definition:"P30D",label:"design-system:datepicker.preset.thirtyDays"},{definition:"P60D",label:"design-system:datepicker.preset.sixtyDays"},{definition:"P90D",label:"design-system:datepicker.preset.ninetyDays"},{definition:"P1Y",label:"design-system:datepicker.preset.oneYear"}];function mi({className:e,disabled:t,formMeta:n,id:r,maxDate:a,minDate:s,onChange:l,presets:c=au,value:p,showTwoMonths:m=!1,twentyFourHour:f=!1,format:u,"data-testid":h,placeholder24h:S="00:00",placeholder12h:y="12:00"}){const{t:T}=o.useContext(He),{wrapperId:C,controlId:E}=bt(r&&`${r}_from`,n),{wrapperId:N,controlId:M}=bt(r&&`${r}_to`,n),I=o.useRef(null),k=o.useRef(null),V=o.useRef(null),R=o.useRef(null),w=o.useRef(null),P=te.splitMomentInDateTimeParts(Array.isArray(p)?p[0]:void 0,f,u),O=te.splitMomentInDateTimeParts(Array.isArray(p)?p[1]:void 0,f,u,!0),[$,J]=o.useState(P[0]),[L,Z]=o.useState(O[0]),[A,ne]=o.useState(P[1]),[Y,U]=o.useState(O[1]),[ae,H]=o.useState(P[2]),[q,re]=o.useState(O[2]),[oe,j]=o.useState(null),{showPopup:B,doShowPopup:z,doHidePopup:Q}=dr(I,w);function ee(ue){n&&(n.setValue(ue),n.markAsDirty()),l&&l(ue)}function de(ue){return ue&&/^design-system:/.test(ue.label)?T(ue.label):ue.label}const ie=oe&&de(oe)==="Before",le=oe&&de(oe)==="After";function se(ue){const Se=p||[],Ce=te.toMoment(ue);let qe;if(ie)qe=[null,Ce],Q(!0);else if(le)qe=[Ce,null],Q(!0);else if(!Se[0]||Se[1]||Ce!=null&&Ce.isBefore(te.toMoment(te.createFrom(Se[0],u)))){let xe=parseInt((A==null?void 0:A.split(":")[0])||"0",10);!f&&xe===12&&(xe=0);const dt=parseInt((A==null?void 0:A.split(":")[1])||"0",10);Ce==null||Ce.set("hour",ae==="PM"?12+xe:xe<12?xe:0),Ce==null||Ce.set("minute",dt),qe=[Ce,null],j(null)}else{let xe=parseInt((Y==null?void 0:Y.split(":")[0])||"0",10);!f&&xe===12&&(xe=0);const dt=parseInt((Y==null?void 0:Y.split(":")[1])||"0",10);Ce==null||Ce.set("hour",q==="PM"?12+xe:xe),Ce==null||Ce.set("minute",dt),Ce!=null&&Ce.isBefore(Se[0])?qe=[Ce,null]:(qe=[Se[0],Ce],Q(!0)),j(null)}ee(qe)}function ke(ue){J(ue.target.value)}function Ie(ue){te.validateTimeString(ue.target.value,f)&&ne(ue.target.value)}function it(ue,Se,Ce){const qe=$,xe=Se??A,dt=ae;if(qe===P[0]&&xe===P[1]&&dt===P[2])return;const Tt=te.createFrom(qe,u);if(Tt&&te.isValid(Tt)){const Ae=te.toMoment(Tt);let pt=parseInt((xe==null?void 0:xe.split(":")[0])||"0",10);!f&&pt===12&&(pt=0);const _n=parseInt((xe==null?void 0:xe.split(":")[1])||"0",10);Ae==null||Ae.set("hour",dt==="PM"?12+pt:pt),Ae==null||Ae.set("minute",_n);const Xt=[Ae,(Ae==null?void 0:Ae.isBefore(p==null?void 0:p[1]))&&(p==null?void 0:p[1])||null];ee(Xt)}}function lt(ue){te.validateTimeString(ue??A,f)&&(ne(te.padIncompleteTimeString(ue??A,f)),setTimeout(()=>it(void 0,ue),0))}function ut(ue){H(ue.target.value)}function ct(ue){te.validateTimeString(ue,f)&&(ne(ue),setTimeout(()=>lt(ue),0))}o.useEffect(()=>{ae!==P[2]&&it()},[ae]);function Pt(ue){Z(ue.target.value)}function je(ue){te.validateTimeString(ue.target.value,f)&&U(ue.target.value)}function fe(ue,Se,Ce){const qe=L,xe=Se??Y,dt=q;if(qe===O[0]&&xe===O[1]&&dt===O[2])return;const Tt=te.createFrom(qe,u);if(Tt&&te.isValid(Tt)){const Ae=te.toMoment(Tt);let pt=parseInt((xe==null?void 0:xe.split(":")[0])||"0",10);!f&&pt===12&&(pt=0);const _n=parseInt((xe==null?void 0:xe.split(":")[1])||"0",10);Ae==null||Ae.set("hour",dt==="PM"?12+pt:pt),Ae==null||Ae.set("minute",_n);const Xt=[(Ae==null?void 0:Ae.isAfter(p==null?void 0:p[0]))&&(p==null?void 0:p[0])||null,Ae];ee(Xt)}}function Fe(ue){te.validateTimeString(ue??Y,f)&&(U(te.padIncompleteTimeString(ue??Y,f)),setTimeout(()=>fe(void 0,ue),0))}function ve(ue){re(ue.target.value)}function Oe(ue){te.validateTimeString(ue,f)&&(U(ue),setTimeout(()=>Fe(ue),0))}o.useEffect(()=>{q!==O[2]&&fe()},[q]);function Qe(){ee([null,null]),j(null)}function we(ue){return function(Se){switch(Se.key){case"Tab":Q();break;case"Backspace":Se.target.selectionStart===0&&p&&!Array.isArray(p)&&Qe();break;case"Enter":ue==="from"?it():ue==="to"&&fe();break}}}function Ht(ue){if(!ue){j(null),ee([null,null]);return}j(ue);const Se=te.createDateTimeRangeFromPreset(ue);ue&&de(ue)==="Before"?!p||Array.isArray(p)&&p[0]&&p[1]?ee([null,null]):Array.isArray(p)&&p[0]?ee([null,te.toMoment(te.createFrom(p[0],u))]):Array.isArray(p)&&p[1]&&ee([null,te.toMoment(te.createFrom(p[1],u))]):ue&&de(ue)==="After"?!p||Array.isArray(p)&&p[0]&&p[1]?ee([null,null]):Array.isArray(p)&&p[0]?ee([te.toMoment(te.createFrom(p[0],u)),null]):Array.isArray(p)&&p[1]&&ee([te.toMoment(te.createFrom(p[1],u)),null]):JSON.stringify(p)!==JSON.stringify(Se)&&ee([Se[0],Se[1]])}o.useEffect(()=>{p&&Array.isArray(p)&&!p.length&&Qe()},[p]),o.useEffect(()=>{if(p&&Array.isArray(p)&&Array.isArray(p)){if(p[0]&&!p[1]){const ue=c.find(Se=>de(Se)==="After");ue&&Ht(ue)}else if(!p[0]&&p[1]){const ue=c.find(Se=>de(Se)==="Before");ue&&Ht(ue)}else if(p[0]&&p[1]){const ue=te.toDateTimeStringRange(p,f,u),Se=c.find(Ce=>ue===te.toDateTimeStringRange(te.createDateTimeRangeFromPreset(Ce),f,u));Se&&Ht(Se)}}},[]),o.useEffect(()=>{P[0]?J(P[0]):J(""),P[1]?ne(P[1]):ne(f?"00:00":"12:00"),f||(P[2]?H(P[2]):H("AM")),O[0]?Z(O[0]):Z(""),O[1]?U(O[1]):U(f?"23:59":"11:59"),f||(O[2]?re(O[2]):re("PM"))},[P[0],P[1],P[2],O[0],O[1],O[2],f]);const Mn=G(ru,"sps-text-input",B&&`${ru}--open`,e);return o.createElement(o.Fragment,null,o.createElement("div",{className:G("sps-datetime-range-picker")},o.createElement("div",{className:G("sps-datetime-range-picker__pair")},o.createElement(at,{id:C,className:Mn,formMeta:n,inputRef:k,focusInputOnClick:!0,ref:I},o.createElement("div",{className:G("sps-form-control",t&&"disabled")},o.createElement("i",{className:G("sps-text-input__icon","sps-icon","sps-icon-calendar")}),oe&&o.createElement("div",{"data-testid":`${h}_selected_preset`,className:"sps-datepicker__selected-preset"},o.createElement("span",{className:"sps-tag sps-tag--info"},de(oe))),o.createElement("input",{type:"text",ref:k,className:"sps-text-input__input","data-testid":`${h}_from_date_input`,id:E,placeholder:!$&&!oe?(u==null?void 0:u.toUpperCase())||ir:ie?O[0]:le?P[0]:void 0,onChange:ke,onClick:z,onFocus:z,onBlur:()=>it(),onKeyDown:we("from"),value:oe?"":$,disabled:t}),p&&!t&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:Qe}))),!oe&&(f?o.createElement(Jt,{className:"sps-time-input",placeholder:S,suggestions:Ba,zeroState:"Custom time",value:A,onChange:Ie,onBlur:()=>lt(),onSelectionChange:ct,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}):o.createElement(br,null,o.createElement(Jt,{className:"sps-time-input",placeholder:y,suggestions:Ra,zeroState:"Custom time",value:A,onChange:Ie,onBlur:()=>lt(),onSelectionChange:ct,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}),o.createElement(Yn,{options:ou,value:ae,onChange:ut,disabled:t,notClearable:!0})))),!oe&&o.createElement("span",{className:G("sps-datepicker__to")},"to"),!oe&&o.createElement("div",{className:G("sps-datetime-range-picker__pair")},o.createElement(at,{id:N,className:Mn,formMeta:n,inputRef:R,focusInputOnClick:!0,ref:V},o.createElement("div",{className:G("sps-form-control",t&&"disabled")},o.createElement("i",{className:G("sps-text-input__icon","sps-icon","sps-icon-calendar")}),oe&&o.createElement("div",{"data-testid":`${h}_selected_preset`,className:"sps-datepicker__selected-preset"},o.createElement("span",{className:"sps-tag sps-tag--info"},de(oe))),o.createElement("input",{type:"text",ref:R,className:"sps-text-input__input","data-testid":`${h}_to_date_input`,id:M,placeholder:!L&&!oe?(u==null?void 0:u.toUpperCase())||ir:void 0,onChange:Pt,onClick:z,onFocus:z,onKeyDown:we("to"),onBlur:()=>fe(),value:L,disabled:t}),p&&!t&&o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:Qe}))),f?o.createElement(Jt,{className:"sps-time-input",placeholder:S,suggestions:Ba,zeroState:"Custom time",value:Y,onChange:je,onBlur:()=>Fe(),onSelectionChange:Oe,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}):o.createElement(br,null,o.createElement(Jt,{className:"sps-time-input",placeholder:y,suggestions:Ra,zeroState:"Custom time",value:Y,onChange:je,onBlur:()=>Fe(),onSelectionChange:Oe,disabled:t,inputNotClearable:!0,autoFocusOnSelection:!0}),o.createElement(Yn,{options:ou,value:q,onChange:ve,disabled:t,notClearable:!0})))),o.createElement(Jo,{isOpen:B,attachTo:I,ref:w},o.createElement("div",{className:"sps-datepicker__presets"},o.createElement("fieldset",null,o.createElement("legend",{className:"sps-datepicker__presets-label"},T("design-system:datepicker.presetsLabel",{defaultValue:"Ranges"})),o.createElement("div",{className:"sps-custom-control sps-custom-radio sps-custom-control--no-error"},o.createElement("input",{"data-testid":`${h}_presets_custom_input`,type:"radio",id:`sps-date-range-picker-${C}__range-custom`,className:"sps-custom-control__input",checked:!oe,name:`sps-date-range-picker-${C}__range`,onChange:()=>Ht()}),o.createElement("label",{className:"sps-custom-control__label",htmlFor:`sps-date-range-picker-${C}__range-custom`},T("design-system:datepicker.preset.custom",{defaultValue:"Custom"}))),c.map((ue,Se)=>o.createElement("div",{key:de(ue),className:"sps-custom-control sps-custom-radio sps-custom-control--no-error"},o.createElement("input",{type:"radio","data-testid":`${h}_preset_option_${ue.label}`,id:`sps-date-range-picker-${C}__range-${Se}`,name:`sps-date-range-picker-${C}__range`,onChange:()=>Ht(ue),checked:oe!=null&&oe.definition?oe.definition===ue.definition:!1,className:"sps-custom-control__input"}),o.createElement("label",{className:"sps-custom-control__label",htmlFor:`sps-date-range-picker-${C}__range-${Se}`},de(ue)))))),o.createElement(qo,{"data-testid":`${h}_calendar`,selectedRange:Array.isArray(p)?[te.createFrom(p[0],u),te.createFrom(p[1],u)]:void 0,onNewSelection:se,minDate:s,maxDate:a,showTwoMonths:m,selectedPreset:oe&&de(oe)})))}Object.assign(mi,{props:YE,displayName:"SpsDateTimeRangePicker"});const su={basic:{label:"Basic",examples:{basic:{react:v.code`
|
|
1827
1827
|
import {
|
|
1828
1828
|
useSpsForm,
|
|
1829
1829
|
SpsLabel,
|
|
@@ -1974,7 +1974,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var se=le(Q,ie,j,B,z+"."
|
|
|
1974
1974
|
`}}}};function Zt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fi={exports:{}},iu;function tn(){return iu||(iu=1,function(e,t){(function(n,r){e.exports=r()})(Ut,function(){var n;function r(){return n.apply(null,arguments)}function a(i){n=i}function s(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function l(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function c(i,d){return Object.prototype.hasOwnProperty.call(i,d)}function p(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var d;for(d in i)if(c(i,d))return!1;return!0}function m(i){return i===void 0}function f(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function u(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function h(i,d){var g=[],b,D=i.length;for(b=0;b<D;++b)g.push(d(i[b],b));return g}function S(i,d){for(var g in d)c(d,g)&&(i[g]=d[g]);return c(d,"toString")&&(i.toString=d.toString),c(d,"valueOf")&&(i.valueOf=d.valueOf),i}function y(i,d,g,b){return rh(i,d,g,b,!0).utc()}function T(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function C(i){return i._pf==null&&(i._pf=T()),i._pf}var E;Array.prototype.some?E=Array.prototype.some:E=function(i){var d=Object(this),g=d.length>>>0,b;for(b=0;b<g;b++)if(b in d&&i.call(this,d[b],b,d))return!0;return!1};function N(i){var d=null,g=!1,b=i._d&&!isNaN(i._d.getTime());if(b&&(d=C(i),g=E.call(d.parsedDateParts,function(D){return D!=null}),b=d.overflow<0&&!d.empty&&!d.invalidEra&&!d.invalidMonth&&!d.invalidWeekday&&!d.weekdayMismatch&&!d.nullInput&&!d.invalidFormat&&!d.userInvalidated&&(!d.meridiem||d.meridiem&&g),i._strict&&(b=b&&d.charsLeftOver===0&&d.unusedTokens.length===0&&d.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(i))i._isValid=b;else return b;return i._isValid}function M(i){var d=y(NaN);return i!=null?S(C(d),i):C(d).userInvalidated=!0,d}var I=r.momentProperties=[],k=!1;function V(i,d){var g,b,D,F=I.length;if(m(d._isAMomentObject)||(i._isAMomentObject=d._isAMomentObject),m(d._i)||(i._i=d._i),m(d._f)||(i._f=d._f),m(d._l)||(i._l=d._l),m(d._strict)||(i._strict=d._strict),m(d._tzm)||(i._tzm=d._tzm),m(d._isUTC)||(i._isUTC=d._isUTC),m(d._offset)||(i._offset=d._offset),m(d._pf)||(i._pf=C(d)),m(d._locale)||(i._locale=d._locale),F>0)for(g=0;g<F;g++)b=I[g],D=d[b],m(D)||(i[b]=D);return i}function R(i){V(this,i),this._d=new Date(i._d!=null?i._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),k===!1&&(k=!0,r.updateOffset(this),k=!1)}function w(i){return i instanceof R||i!=null&&i._isAMomentObject!=null}function P(i){r.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+i)}function O(i,d){var g=!0;return S(function(){if(r.deprecationHandler!=null&&r.deprecationHandler(null,i),g){var b=[],D,F,X,he=arguments.length;for(F=0;F<he;F++){if(D="",typeof arguments[F]=="object"){D+=`
|
|
1975
1975
|
[`+F+"] ";for(X in arguments[0])c(arguments[0],X)&&(D+=X+": "+arguments[0][X]+", ");D=D.slice(0,-2)}else D=arguments[F];b.push(D)}P(i+`
|
|
1976
1976
|
Arguments: `+Array.prototype.slice.call(b).join("")+`
|
|
1977
|
-
`+new Error().stack),g=!1}return d.apply(this,arguments)},d)}var $={};function J(i,d){r.deprecationHandler!=null&&r.deprecationHandler(i,d),$[i]||(P(d),$[i]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function L(i){return typeof Function<"u"&&i instanceof Function||Object.prototype.toString.call(i)==="[object Function]"}function Z(i){var d,g;for(g in i)c(i,g)&&(d=i[g],L(d)?this[g]=d:this["_"+g]=d);this._config=i,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(i,d){var g=S({},i),b;for(b in d)c(d,b)&&(l(i[b])&&l(d[b])?(g[b]={},S(g[b],i[b]),S(g[b],d[b])):d[b]!=null?g[b]=d[b]:delete g[b]);for(b in i)c(i,b)&&!c(d,b)&&l(i[b])&&(g[b]=S({},g[b]));return g}function ne(i){i!=null&&this.set(i)}var Y;Object.keys?Y=Object.keys:Y=function(i){var d,g=[];for(d in i)c(i,d)&&g.push(d);return g};var U={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ae(i,d,g){var b=this._calendar[i]||this._calendar.sameElse;return L(b)?b.call(d,g):b}function H(i,d,g){var b=""+Math.abs(i),D=d-b.length,F=i>=0;return(F?g?"+":"":"-")+Math.pow(10,Math.max(0,D)).toString().substr(1)+b}var q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},j={};function B(i,d,g,b){var D=b;typeof b=="string"&&(D=function(){return this[b]()}),i&&(j[i]=D),d&&(j[d[0]]=function(){return H(D.apply(this,arguments),d[1],d[2])}),g&&(j[g]=function(){return this.localeData().ordinal(D.apply(this,arguments),i)})}function z(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function Q(i){var d=i.match(q),g,b;for(g=0,b=d.length;g<b;g++)j[d[g]]?d[g]=j[d[g]]:d[g]=z(d[g]);return function(D){var F="",X;for(X=0;X<b;X++)F+=L(d[X])?d[X].call(D,i):d[X];return F}}function ee(i,d){return i.isValid()?(d=de(d,i.localeData()),oe[d]=oe[d]||Q(d),oe[d](i)):i.localeData().invalidDate()}function de(i,d){var g=5;function b(D){return d.longDateFormat(D)||D}for(re.lastIndex=0;g>=0&&re.test(i);)i=i.replace(re,b),re.lastIndex=0,g-=1;return i}var ie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function le(i){var d=this._longDateFormat[i],g=this._longDateFormat[i.toUpperCase()];return d||!g?d:(this._longDateFormat[i]=g.match(q).map(function(b){return b==="MMMM"||b==="MM"||b==="DD"||b==="dddd"?b.slice(1):b}).join(""),this._longDateFormat[i])}var se="Invalid date";function Ne(){return this._invalidDate}var ke="%d",it=/\d{1,2}/;function lt(i){return this._ordinal.replace("%d",i)}var ut={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ct(i,d,g,b){var D=this._relativeTime[g];return L(D)?D(i,d,g,b):D.replace(/%d/i,i)}function Pt(i,d){var g=this._relativeTime[i>0?"future":"past"];return L(g)?g(d):g.replace(/%s/i,d)}var je={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fe(i){return typeof i=="string"?je[i]||je[i.toLowerCase()]:void 0}function Fe(i){var d={},g,b;for(b in i)c(i,b)&&(g=fe(b),g&&(d[g]=i[b]));return d}var ve={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Le(i){var d=[],g;for(g in i)c(i,g)&&d.push({unit:g,priority:ve[g]});return d.sort(function(b,D){return b.priority-D.priority}),d}var Qe=/\d/,we=/\d\d/,Ht=/\d{3}/,Mn=/\d{4}/,ue=/[+-]?\d{6}/,Se=/\d\d?/,Oe=/\d\d\d\d?/,Ze=/\d\d\d\d\d\d?/,Ie=/\d{1,3}/,dt=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,Ae=/\d+/,pt=/[+-]?\d+/,_n=/Z|[+-]\d\d:?\d\d/gi,Xt=/Z|[+-]\d\d(?::?\d\d)?/gi,va=/[+-]?\d+(\.\d{1,3})?/,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Te=/^[1-9]\d?/,Xe=/^([1-9]\d|\d)/,Rt;Rt={};function me(i,d,g){Rt[i]=L(d)?d:function(b,D){return b&&g?g:d}}function El(i,d){return c(Rt,i)?Rt[i](d._strict,d._locale):new RegExp(bN(i))}function bN(i){return an(i.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,g,b,D,F){return g||b||D||F}))}function an(i){return i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Bt(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function Ce(i){var d=+i,g=0;return d!==0&&isFinite(d)&&(g=Bt(d)),g}var wl={};function Ke(i,d){var g,b=d,D;for(typeof i=="string"&&(i=[i]),f(d)&&(b=function(F,X){X[d]=Ce(F)}),D=i.length,g=0;g<D;g++)wl[i[g]]=b}function po(i,d){Ke(i,function(g,b,D,F){D._w=D._w||{},d(g,D._w,D,F)})}function vN(i,d,g){d!=null&&c(wl,i)&&wl[i](d,g._a,g,i)}function ya(i){return i%4===0&&i%100!==0||i%400===0}var mt=0,sn=1,Qt=2,et=3,Wt=4,ln=5,er=6,yN=7,TN=8;B("Y",0,0,function(){var i=this.year();return i<=9999?H(i,4):"+"+i}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),me("Y",pt),me("YY",Se,we),me("YYYY",dt,Mn),me("YYYYY",Tt,ue),me("YYYYYY",Tt,ue),Ke(["YYYYY","YYYYYY"],mt),Ke("YYYY",function(i,d){d[mt]=i.length===2?r.parseTwoDigitYear(i):Ce(i)}),Ke("YY",function(i,d){d[mt]=r.parseTwoDigitYear(i)}),Ke("Y",function(i,d){d[mt]=parseInt(i,10)});function uo(i){return ya(i)?366:365}r.parseTwoDigitYear=function(i){return Ce(i)+(Ce(i)>68?1900:2e3)};var Kf=Dr("FullYear",!0);function EN(){return ya(this.year())}function Dr(i,d){return function(g){return g!=null?(Hf(this,i,g),r.updateOffset(this,d),this):mo(this,i)}}function mo(i,d){if(!i.isValid())return NaN;var g=i._d,b=i._isUTC;switch(d){case"Milliseconds":return b?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return b?g.getUTCSeconds():g.getSeconds();case"Minutes":return b?g.getUTCMinutes():g.getMinutes();case"Hours":return b?g.getUTCHours():g.getHours();case"Date":return b?g.getUTCDate():g.getDate();case"Day":return b?g.getUTCDay():g.getDay();case"Month":return b?g.getUTCMonth():g.getMonth();case"FullYear":return b?g.getUTCFullYear():g.getFullYear();default:return NaN}}function Hf(i,d,g){var b,D,F,X,he;if(!(!i.isValid()||isNaN(g))){switch(b=i._d,D=i._isUTC,d){case"Milliseconds":return void(D?b.setUTCMilliseconds(g):b.setMilliseconds(g));case"Seconds":return void(D?b.setUTCSeconds(g):b.setSeconds(g));case"Minutes":return void(D?b.setUTCMinutes(g):b.setMinutes(g));case"Hours":return void(D?b.setUTCHours(g):b.setHours(g));case"Date":return void(D?b.setUTCDate(g):b.setDate(g));case"FullYear":break;default:return}F=g,X=i.month(),he=i.date(),he=he===29&&X===1&&!ya(F)?28:he,D?b.setUTCFullYear(F,X,he):b.setFullYear(F,X,he)}}function wN(i){return i=fe(i),L(this[i])?this[i]():this}function CN(i,d){if(typeof i=="object"){i=Fe(i);var g=Le(i),b,D=g.length;for(b=0;b<D;b++)this[g[b].unit](i[g[b].unit])}else if(i=fe(i),L(this[i]))return this[i](d);return this}function DN(i,d){return(i%d+d)%d}var qe;Array.prototype.indexOf?qe=Array.prototype.indexOf:qe=function(i){var d;for(d=0;d<this.length;++d)if(this[d]===i)return d;return-1};function Cl(i,d){if(isNaN(i)||isNaN(d))return NaN;var g=DN(d,12);return i+=(d-g)/12,g===1?ya(i)?29:28:31-g%7%2}B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(i){return this.localeData().monthsShort(this,i)}),B("MMMM",0,0,function(i){return this.localeData().months(this,i)}),me("M",Se,Te),me("MM",Se,we),me("MMM",function(i,d){return d.monthsShortRegex(i)}),me("MMMM",function(i,d){return d.monthsRegex(i)}),Ke(["M","MM"],function(i,d){d[sn]=Ce(i)-1}),Ke(["MMM","MMMM"],function(i,d,g,b){var D=g._locale.monthsParse(i,b,g._strict);D!=null?d[sn]=D:C(g).invalidMonth=i});var NN="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Wf="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gf=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kN=be,IN=be;function xN(i,d){return i?s(this._months)?this._months[i.month()]:this._months[(this._months.isFormat||Gf).test(d)?"format":"standalone"][i.month()]:s(this._months)?this._months:this._months.standalone}function MN(i,d){return i?s(this._monthsShort)?this._monthsShort[i.month()]:this._monthsShort[Gf.test(d)?"format":"standalone"][i.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function _N(i,d,g){var b,D,F,X=i.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],b=0;b<12;++b)F=y([2e3,b]),this._shortMonthsParse[b]=this.monthsShort(F,"").toLocaleLowerCase(),this._longMonthsParse[b]=this.months(F,"").toLocaleLowerCase();return g?d==="MMM"?(D=qe.call(this._shortMonthsParse,X),D!==-1?D:null):(D=qe.call(this._longMonthsParse,X),D!==-1?D:null):d==="MMM"?(D=qe.call(this._shortMonthsParse,X),D!==-1?D:(D=qe.call(this._longMonthsParse,X),D!==-1?D:null)):(D=qe.call(this._longMonthsParse,X),D!==-1?D:(D=qe.call(this._shortMonthsParse,X),D!==-1?D:null))}function LN(i,d,g){var b,D,F;if(this._monthsParseExact)return _N.call(this,i,d,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),b=0;b<12;b++){if(D=y([2e3,b]),g&&!this._longMonthsParse[b]&&(this._longMonthsParse[b]=new RegExp("^"+this.months(D,"").replace(".","")+"$","i"),this._shortMonthsParse[b]=new RegExp("^"+this.monthsShort(D,"").replace(".","")+"$","i")),!g&&!this._monthsParse[b]&&(F="^"+this.months(D,"")+"|^"+this.monthsShort(D,""),this._monthsParse[b]=new RegExp(F.replace(".",""),"i")),g&&d==="MMMM"&&this._longMonthsParse[b].test(i))return b;if(g&&d==="MMM"&&this._shortMonthsParse[b].test(i))return b;if(!g&&this._monthsParse[b].test(i))return b}}function Yf(i,d){if(!i.isValid())return i;if(typeof d=="string"){if(/^\d+$/.test(d))d=Ce(d);else if(d=i.localeData().monthsParse(d),!f(d))return i}var g=d,b=i.date();return b=b<29?b:Math.min(b,Cl(i.year(),g)),i._isUTC?i._d.setUTCMonth(g,b):i._d.setMonth(g,b),i}function Uf(i){return i!=null?(Yf(this,i),r.updateOffset(this,!0),this):mo(this,"Month")}function ON(){return Cl(this.year(),this.month())}function PN(i){return this._monthsParseExact?(c(this,"_monthsRegex")||zf.call(this),i?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=kN),this._monthsShortStrictRegex&&i?this._monthsShortStrictRegex:this._monthsShortRegex)}function RN(i){return this._monthsParseExact?(c(this,"_monthsRegex")||zf.call(this),i?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=IN),this._monthsStrictRegex&&i?this._monthsStrictRegex:this._monthsRegex)}function zf(){function i(Ee,De){return De.length-Ee.length}var d=[],g=[],b=[],D,F,X,he;for(D=0;D<12;D++)F=y([2e3,D]),X=an(this.monthsShort(F,"")),he=an(this.months(F,"")),d.push(X),g.push(he),b.push(he),b.push(X);d.sort(i),g.sort(i),b.sort(i),this._monthsRegex=new RegExp("^("+b.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function BN(i,d,g,b,D,F,X){var he;return i<100&&i>=0?(he=new Date(i+400,d,g,b,D,F,X),isFinite(he.getFullYear())&&he.setFullYear(i)):he=new Date(i,d,g,b,D,F,X),he}function fo(i){var d,g;return i<100&&i>=0?(g=Array.prototype.slice.call(arguments),g[0]=i+400,d=new Date(Date.UTC.apply(null,g)),isFinite(d.getUTCFullYear())&&d.setUTCFullYear(i)):d=new Date(Date.UTC.apply(null,arguments)),d}function Ta(i,d,g){var b=7+d-g,D=(7+fo(i,0,b).getUTCDay()-d)%7;return-D+b-1}function jf(i,d,g,b,D){var F=(7+g-b)%7,X=Ta(i,b,D),he=1+7*(d-1)+F+X,Ee,De;return he<=0?(Ee=i-1,De=uo(Ee)+he):he>uo(i)?(Ee=i+1,De=he-uo(i)):(Ee=i,De=he),{year:Ee,dayOfYear:De}}function ho(i,d,g){var b=Ta(i.year(),d,g),D=Math.floor((i.dayOfYear()-b-1)/7)+1,F,X;return D<1?(X=i.year()-1,F=D+cn(X,d,g)):D>cn(i.year(),d,g)?(F=D-cn(i.year(),d,g),X=i.year()+1):(X=i.year(),F=D),{week:F,year:X}}function cn(i,d,g){var b=Ta(i,d,g),D=Ta(i+1,d,g);return(uo(i)-b+D)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),me("w",Se,Te),me("ww",Se,we),me("W",Se,Te),me("WW",Se,we),po(["w","ww","W","WW"],function(i,d,g,b){d[b.substr(0,1)]=Ce(i)});function AN(i){return ho(i,this._week.dow,this._week.doy).week}var FN={dow:0,doy:6};function VN(){return this._week.dow}function $N(){return this._week.doy}function KN(i){var d=this.localeData().week(this);return i==null?d:this.add((i-d)*7,"d")}function HN(i){var d=ho(this,1,4).week;return i==null?d:this.add((i-d)*7,"d")}B("d",0,"do","day"),B("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),B("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),B("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),me("d",Se),me("e",Se),me("E",Se),me("dd",function(i,d){return d.weekdaysMinRegex(i)}),me("ddd",function(i,d){return d.weekdaysShortRegex(i)}),me("dddd",function(i,d){return d.weekdaysRegex(i)}),po(["dd","ddd","dddd"],function(i,d,g,b){var D=g._locale.weekdaysParse(i,b,g._strict);D!=null?d.d=D:C(g).invalidWeekday=i}),po(["d","e","E"],function(i,d,g,b){d[b]=Ce(i)});function WN(i,d){return typeof i!="string"?i:isNaN(i)?(i=d.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function GN(i,d){return typeof i=="string"?d.weekdaysParse(i)%7||7:isNaN(i)?null:i}function Dl(i,d){return i.slice(d,7).concat(i.slice(0,d))}var YN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),UN="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zN=be,jN=be,qN=be;function JN(i,d){var g=s(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(d)?"format":"standalone"];return i===!0?Dl(g,this._week.dow):i?g[i.day()]:g}function ZN(i){return i===!0?Dl(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function XN(i){return i===!0?Dl(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function QN(i,d,g){var b,D,F,X=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],b=0;b<7;++b)F=y([2e3,1]).day(b),this._minWeekdaysParse[b]=this.weekdaysMin(F,"").toLocaleLowerCase(),this._shortWeekdaysParse[b]=this.weekdaysShort(F,"").toLocaleLowerCase(),this._weekdaysParse[b]=this.weekdays(F,"").toLocaleLowerCase();return g?d==="dddd"?(D=qe.call(this._weekdaysParse,X),D!==-1?D:null):d==="ddd"?(D=qe.call(this._shortWeekdaysParse,X),D!==-1?D:null):(D=qe.call(this._minWeekdaysParse,X),D!==-1?D:null):d==="dddd"?(D=qe.call(this._weekdaysParse,X),D!==-1||(D=qe.call(this._shortWeekdaysParse,X),D!==-1)?D:(D=qe.call(this._minWeekdaysParse,X),D!==-1?D:null)):d==="ddd"?(D=qe.call(this._shortWeekdaysParse,X),D!==-1||(D=qe.call(this._weekdaysParse,X),D!==-1)?D:(D=qe.call(this._minWeekdaysParse,X),D!==-1?D:null)):(D=qe.call(this._minWeekdaysParse,X),D!==-1||(D=qe.call(this._weekdaysParse,X),D!==-1)?D:(D=qe.call(this._shortWeekdaysParse,X),D!==-1?D:null))}function ek(i,d,g){var b,D,F;if(this._weekdaysParseExact)return QN.call(this,i,d,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),b=0;b<7;b++){if(D=y([2e3,1]).day(b),g&&!this._fullWeekdaysParse[b]&&(this._fullWeekdaysParse[b]=new RegExp("^"+this.weekdays(D,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[b]=new RegExp("^"+this.weekdaysShort(D,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[b]=new RegExp("^"+this.weekdaysMin(D,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[b]||(F="^"+this.weekdays(D,"")+"|^"+this.weekdaysShort(D,"")+"|^"+this.weekdaysMin(D,""),this._weekdaysParse[b]=new RegExp(F.replace(".",""),"i")),g&&d==="dddd"&&this._fullWeekdaysParse[b].test(i))return b;if(g&&d==="ddd"&&this._shortWeekdaysParse[b].test(i))return b;if(g&&d==="dd"&&this._minWeekdaysParse[b].test(i))return b;if(!g&&this._weekdaysParse[b].test(i))return b}}function tk(i){if(!this.isValid())return i!=null?this:NaN;var d=mo(this,"Day");return i!=null?(i=WN(i,this.localeData()),this.add(i-d,"d")):d}function nk(i){if(!this.isValid())return i!=null?this:NaN;var d=(this.day()+7-this.localeData()._week.dow)%7;return i==null?d:this.add(i-d,"d")}function rk(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var d=GN(i,this.localeData());return this.day(this.day()%7?d:d-7)}else return this.day()||7}function ok(i){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Nl.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=zN),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function ak(i){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Nl.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jN),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sk(i){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Nl.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qN),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nl(){function i(gt,fn){return fn.length-gt.length}var d=[],g=[],b=[],D=[],F,X,he,Ee,De;for(F=0;F<7;F++)X=y([2e3,1]).day(F),he=an(this.weekdaysMin(X,"")),Ee=an(this.weekdaysShort(X,"")),De=an(this.weekdays(X,"")),d.push(he),g.push(Ee),b.push(De),D.push(he),D.push(Ee),D.push(De);d.sort(i),g.sort(i),b.sort(i),D.sort(i),this._weekdaysRegex=new RegExp("^("+D.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+b.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+d.join("|")+")","i")}function kl(){return this.hours()%12||12}function ik(){return this.hours()||24}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,kl),B("k",["kk",2],0,ik),B("hmm",0,0,function(){return""+kl.apply(this)+H(this.minutes(),2)}),B("hmmss",0,0,function(){return""+kl.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)});function Jf(i,d){B(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),d)})}Jf("a",!0),Jf("A",!1);function Zf(i,d){return d._meridiemParse}me("a",Zf),me("A",Zf),me("H",Se,Xe),me("h",Se,Te),me("k",Se,Te),me("HH",Se,we),me("hh",Se,we),me("kk",Se,we),me("hmm",Oe),me("hmmss",Ze),me("Hmm",Oe),me("Hmmss",Ze),Ke(["H","HH"],et),Ke(["k","kk"],function(i,d,g){var b=Ce(i);d[et]=b===24?0:b}),Ke(["a","A"],function(i,d,g){g._isPm=g._locale.isPM(i),g._meridiem=i}),Ke(["h","hh"],function(i,d,g){d[et]=Ce(i),C(g).bigHour=!0}),Ke("hmm",function(i,d,g){var b=i.length-2;d[et]=Ce(i.substr(0,b)),d[Wt]=Ce(i.substr(b)),C(g).bigHour=!0}),Ke("hmmss",function(i,d,g){var b=i.length-4,D=i.length-2;d[et]=Ce(i.substr(0,b)),d[Wt]=Ce(i.substr(b,2)),d[ln]=Ce(i.substr(D)),C(g).bigHour=!0}),Ke("Hmm",function(i,d,g){var b=i.length-2;d[et]=Ce(i.substr(0,b)),d[Wt]=Ce(i.substr(b))}),Ke("Hmmss",function(i,d,g){var b=i.length-4,D=i.length-2;d[et]=Ce(i.substr(0,b)),d[Wt]=Ce(i.substr(b,2)),d[ln]=Ce(i.substr(D))});function lk(i){return(i+"").toLowerCase().charAt(0)==="p"}var ck=/[ap]\.?m?\.?/i,dk=Dr("Hours",!0);function pk(i,d,g){return i>11?g?"pm":"PM":g?"am":"AM"}var Xf={calendar:U,longDateFormat:ie,invalidDate:se,ordinal:ke,dayOfMonthOrdinalParse:it,relativeTime:ut,months:NN,monthsShort:Wf,week:FN,weekdays:YN,weekdaysMin:UN,weekdaysShort:qf,meridiemParse:ck},ze={},So={},go;function uk(i,d){var g,b=Math.min(i.length,d.length);for(g=0;g<b;g+=1)if(i[g]!==d[g])return g;return b}function Qf(i){return i&&i.toLowerCase().replace("_","-")}function mk(i){for(var d=0,g,b,D,F;d<i.length;){for(F=Qf(i[d]).split("-"),g=F.length,b=Qf(i[d+1]),b=b?b.split("-"):null;g>0;){if(D=Ea(F.slice(0,g).join("-")),D)return D;if(b&&b.length>=g&&uk(F,b)>=g-1)break;g--}d++}return go}function fk(i){return!!(i&&i.match("^[^/\\\\]*$"))}function Ea(i){var d=null,g;if(ze[i]===void 0&&e&&e.exports&&fk(i))try{d=go._abbr,g=Zt,g("./locale/"+i),Ln(d)}catch{ze[i]=null}return ze[i]}function Ln(i,d){var g;return i&&(m(d)?g=dn(i):g=Il(i,d),g?go=g:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),go._abbr}function Il(i,d){if(d!==null){var g,b=Xf;if(d.abbr=i,ze[i]!=null)J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),b=ze[i]._config;else if(d.parentLocale!=null)if(ze[d.parentLocale]!=null)b=ze[d.parentLocale]._config;else if(g=Ea(d.parentLocale),g!=null)b=g._config;else return So[d.parentLocale]||(So[d.parentLocale]=[]),So[d.parentLocale].push({name:i,config:d}),null;return ze[i]=new ne(A(b,d)),So[i]&&So[i].forEach(function(D){Il(D.name,D.config)}),Ln(i),ze[i]}else return delete ze[i],null}function hk(i,d){if(d!=null){var g,b,D=Xf;ze[i]!=null&&ze[i].parentLocale!=null?ze[i].set(A(ze[i]._config,d)):(b=Ea(i),b!=null&&(D=b._config),d=A(D,d),b==null&&(d.abbr=i),g=new ne(d),g.parentLocale=ze[i],ze[i]=g),Ln(i)}else ze[i]!=null&&(ze[i].parentLocale!=null?(ze[i]=ze[i].parentLocale,i===Ln()&&Ln(i)):ze[i]!=null&&delete ze[i]);return ze[i]}function dn(i){var d;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return go;if(!s(i)){if(d=Ea(i),d)return d;i=[i]}return mk(i)}function Sk(){return Y(ze)}function xl(i){var d,g=i._a;return g&&C(i).overflow===-2&&(d=g[sn]<0||g[sn]>11?sn:g[Qt]<1||g[Qt]>Cl(g[mt],g[sn])?Qt:g[et]<0||g[et]>24||g[et]===24&&(g[Wt]!==0||g[ln]!==0||g[er]!==0)?et:g[Wt]<0||g[Wt]>59?Wt:g[ln]<0||g[ln]>59?ln:g[er]<0||g[er]>999?er:-1,C(i)._overflowDayOfYear&&(d<mt||d>Qt)&&(d=Qt),C(i)._overflowWeeks&&d===-1&&(d=yN),C(i)._overflowWeekday&&d===-1&&(d=TN),C(i).overflow=d),i}var gk=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bk=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vk=/Z|[+-]\d\d(?::?\d\d)?/,wa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ml=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yk=/^\/?Date\((-?\d+)/i,Tk=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ek={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function eh(i){var d,g,b=i._i,D=gk.exec(b)||bk.exec(b),F,X,he,Ee,De=wa.length,gt=Ml.length;if(D){for(C(i).iso=!0,d=0,g=De;d<g;d++)if(wa[d][1].exec(D[1])){X=wa[d][0],F=wa[d][2]!==!1;break}if(X==null){i._isValid=!1;return}if(D[3]){for(d=0,g=gt;d<g;d++)if(Ml[d][1].exec(D[3])){he=(D[2]||" ")+Ml[d][0];break}if(he==null){i._isValid=!1;return}}if(!F&&he!=null){i._isValid=!1;return}if(D[4])if(vk.exec(D[4]))Ee="Z";else{i._isValid=!1;return}i._f=X+(he||"")+(Ee||""),Ll(i)}else i._isValid=!1}function wk(i,d,g,b,D,F){var X=[Ck(i),Wf.indexOf(d),parseInt(g,10),parseInt(b,10),parseInt(D,10)];return F&&X.push(parseInt(F,10)),X}function Ck(i){var d=parseInt(i,10);return d<=49?2e3+d:d<=999?1900+d:d}function Dk(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nk(i,d,g){if(i){var b=qf.indexOf(i),D=new Date(d[0],d[1],d[2]).getDay();if(b!==D)return C(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function kk(i,d,g){if(i)return Ek[i];if(d)return 0;var b=parseInt(g,10),D=b%100,F=(b-D)/100;return F*60+D}function th(i){var d=Tk.exec(Dk(i._i)),g;if(d){if(g=wk(d[4],d[3],d[2],d[5],d[6],d[7]),!Nk(d[1],g,i))return;i._a=g,i._tzm=kk(d[8],d[9],d[10]),i._d=fo.apply(null,i._a),i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),C(i).rfc2822=!0}else i._isValid=!1}function Ik(i){var d=yk.exec(i._i);if(d!==null){i._d=new Date(+d[1]);return}if(eh(i),i._isValid===!1)delete i._isValid;else return;if(th(i),i._isValid===!1)delete i._isValid;else return;i._strict?i._isValid=!1:r.createFromInputFallback(i)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(i){i._d=new Date(i._i+(i._useUTC?" UTC":""))});function Nr(i,d,g){return i??d??g}function xk(i){var d=new Date(r.now());return i._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()]}function _l(i){var d,g,b=[],D,F,X;if(!i._d){for(D=xk(i),i._w&&i._a[Qt]==null&&i._a[sn]==null&&Mk(i),i._dayOfYear!=null&&(X=Nr(i._a[mt],D[mt]),(i._dayOfYear>uo(X)||i._dayOfYear===0)&&(C(i)._overflowDayOfYear=!0),g=fo(X,0,i._dayOfYear),i._a[sn]=g.getUTCMonth(),i._a[Qt]=g.getUTCDate()),d=0;d<3&&i._a[d]==null;++d)i._a[d]=b[d]=D[d];for(;d<7;d++)i._a[d]=b[d]=i._a[d]==null?d===2?1:0:i._a[d];i._a[et]===24&&i._a[Wt]===0&&i._a[ln]===0&&i._a[er]===0&&(i._nextDay=!0,i._a[et]=0),i._d=(i._useUTC?fo:BN).apply(null,b),F=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[et]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==F&&(C(i).weekdayMismatch=!0)}}function Mk(i){var d,g,b,D,F,X,he,Ee,De;d=i._w,d.GG!=null||d.W!=null||d.E!=null?(F=1,X=4,g=Nr(d.GG,i._a[mt],ho(Ye(),1,4).year),b=Nr(d.W,1),D=Nr(d.E,1),(D<1||D>7)&&(Ee=!0)):(F=i._locale._week.dow,X=i._locale._week.doy,De=ho(Ye(),F,X),g=Nr(d.gg,i._a[mt],De.year),b=Nr(d.w,De.week),d.d!=null?(D=d.d,(D<0||D>6)&&(Ee=!0)):d.e!=null?(D=d.e+F,(d.e<0||d.e>6)&&(Ee=!0)):D=F),b<1||b>cn(g,F,X)?C(i)._overflowWeeks=!0:Ee!=null?C(i)._overflowWeekday=!0:(he=jf(g,b,D,F,X),i._a[mt]=he.year,i._dayOfYear=he.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function Ll(i){if(i._f===r.ISO_8601){eh(i);return}if(i._f===r.RFC_2822){th(i);return}i._a=[],C(i).empty=!0;var d=""+i._i,g,b,D,F,X,he=d.length,Ee=0,De,gt;for(D=de(i._f,i._locale).match(q)||[],gt=D.length,g=0;g<gt;g++)F=D[g],b=(d.match(El(F,i))||[])[0],b&&(X=d.substr(0,d.indexOf(b)),X.length>0&&C(i).unusedInput.push(X),d=d.slice(d.indexOf(b)+b.length),Ee+=b.length),j[F]?(b?C(i).empty=!1:C(i).unusedTokens.push(F),vN(F,b,i)):i._strict&&!b&&C(i).unusedTokens.push(F);C(i).charsLeftOver=he-Ee,d.length>0&&C(i).unusedInput.push(d),i._a[et]<=12&&C(i).bigHour===!0&&i._a[et]>0&&(C(i).bigHour=void 0),C(i).parsedDateParts=i._a.slice(0),C(i).meridiem=i._meridiem,i._a[et]=_k(i._locale,i._a[et],i._meridiem),De=C(i).era,De!==null&&(i._a[mt]=i._locale.erasConvertYear(De,i._a[mt])),_l(i),xl(i)}function _k(i,d,g){var b;return g==null?d:i.meridiemHour!=null?i.meridiemHour(d,g):(i.isPM!=null&&(b=i.isPM(g),b&&d<12&&(d+=12),!b&&d===12&&(d=0)),d)}function Lk(i){var d,g,b,D,F,X,he=!1,Ee=i._f.length;if(Ee===0){C(i).invalidFormat=!0,i._d=new Date(NaN);return}for(D=0;D<Ee;D++)F=0,X=!1,d=V({},i),i._useUTC!=null&&(d._useUTC=i._useUTC),d._f=i._f[D],Ll(d),N(d)&&(X=!0),F+=C(d).charsLeftOver,F+=C(d).unusedTokens.length*10,C(d).score=F,he?F<b&&(b=F,g=d):(b==null||F<b||X)&&(b=F,g=d,X&&(he=!0));S(i,g||d)}function Ok(i){if(!i._d){var d=Fe(i._i),g=d.day===void 0?d.date:d.day;i._a=h([d.year,d.month,g,d.hour,d.minute,d.second,d.millisecond],function(b){return b&&parseInt(b,10)}),_l(i)}}function Pk(i){var d=new R(xl(nh(i)));return d._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function nh(i){var d=i._i,g=i._f;return i._locale=i._locale||dn(i._l),d===null||g===void 0&&d===""?M({nullInput:!0}):(typeof d=="string"&&(i._i=d=i._locale.preparse(d)),w(d)?new R(xl(d)):(u(d)?i._d=d:s(g)?Lk(i):g?Ll(i):Rk(i),N(i)||(i._d=null),i))}function Rk(i){var d=i._i;m(d)?i._d=new Date(r.now()):u(d)?i._d=new Date(d.valueOf()):typeof d=="string"?Ik(i):s(d)?(i._a=h(d.slice(0),function(g){return parseInt(g,10)}),_l(i)):l(d)?Ok(i):f(d)?i._d=new Date(d):r.createFromInputFallback(i)}function rh(i,d,g,b,D){var F={};return(d===!0||d===!1)&&(b=d,d=void 0),(g===!0||g===!1)&&(b=g,g=void 0),(l(i)&&p(i)||s(i)&&i.length===0)&&(i=void 0),F._isAMomentObject=!0,F._useUTC=F._isUTC=D,F._l=g,F._i=i,F._f=d,F._strict=b,Pk(F)}function Ye(i,d,g,b){return rh(i,d,g,b,!1)}var Bk=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=Ye.apply(null,arguments);return this.isValid()&&i.isValid()?i<this?this:i:M()}),Ak=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=Ye.apply(null,arguments);return this.isValid()&&i.isValid()?i>this?this:i:M()});function oh(i,d){var g,b;if(d.length===1&&s(d[0])&&(d=d[0]),!d.length)return Ye();for(g=d[0],b=1;b<d.length;++b)(!d[b].isValid()||d[b][i](g))&&(g=d[b]);return g}function Fk(){var i=[].slice.call(arguments,0);return oh("isBefore",i)}function Vk(){var i=[].slice.call(arguments,0);return oh("isAfter",i)}var $k=function(){return Date.now?Date.now():+new Date},bo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Kk(i){var d,g=!1,b,D=bo.length;for(d in i)if(c(i,d)&&!(qe.call(bo,d)!==-1&&(i[d]==null||!isNaN(i[d]))))return!1;for(b=0;b<D;++b)if(i[bo[b]]){if(g)return!1;parseFloat(i[bo[b]])!==Ce(i[bo[b]])&&(g=!0)}return!0}function Hk(){return this._isValid}function Wk(){return Gt(NaN)}function Ca(i){var d=Fe(i),g=d.year||0,b=d.quarter||0,D=d.month||0,F=d.week||d.isoWeek||0,X=d.day||0,he=d.hour||0,Ee=d.minute||0,De=d.second||0,gt=d.millisecond||0;this._isValid=Kk(d),this._milliseconds=+gt+De*1e3+Ee*6e4+he*1e3*60*60,this._days=+X+F*7,this._months=+D+b*3+g*12,this._data={},this._locale=dn(),this._bubble()}function Da(i){return i instanceof Ca}function Ol(i){return i<0?Math.round(-1*i)*-1:Math.round(i)}function Gk(i,d,g){var b=Math.min(i.length,d.length),D=Math.abs(i.length-d.length),F=0,X;for(X=0;X<b;X++)Ce(i[X])!==Ce(d[X])&&F++;return F+D}function ah(i,d){B(i,0,0,function(){var g=this.utcOffset(),b="+";return g<0&&(g=-g,b="-"),b+H(~~(g/60),2)+d+H(~~g%60,2)})}ah("Z",":"),ah("ZZ",""),me("Z",Xt),me("ZZ",Xt),Ke(["Z","ZZ"],function(i,d,g){g._useUTC=!0,g._tzm=Pl(Xt,i)});var Yk=/([\+\-]|\d\d)/gi;function Pl(i,d){var g=(d||"").match(i),b,D,F;return g===null?null:(b=g[g.length-1]||[],D=(b+"").match(Yk)||["-",0,0],F=+(D[1]*60)+Ce(D[2]),F===0?0:D[0]==="+"?F:-F)}function Rl(i,d){var g,b;return d._isUTC?(g=d.clone(),b=(w(i)||u(i)?i.valueOf():Ye(i).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+b),r.updateOffset(g,!1),g):Ye(i).local()}function Bl(i){return-Math.round(i._d.getTimezoneOffset())}r.updateOffset=function(){};function Uk(i,d,g){var b=this._offset||0,D;if(!this.isValid())return i!=null?this:NaN;if(i!=null){if(typeof i=="string"){if(i=Pl(Xt,i),i===null)return this}else Math.abs(i)<16&&!g&&(i=i*60);return!this._isUTC&&d&&(D=Bl(this)),this._offset=i,this._isUTC=!0,D!=null&&this.add(D,"m"),b!==i&&(!d||this._changeInProgress?ch(this,Gt(i-b,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?b:Bl(this)}function zk(i,d){return i!=null?(typeof i!="string"&&(i=-i),this.utcOffset(i,d),this):-this.utcOffset()}function jk(i){return this.utcOffset(0,i)}function qk(i){return this._isUTC&&(this.utcOffset(0,i),this._isUTC=!1,i&&this.subtract(Bl(this),"m")),this}function Jk(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var i=Pl(_n,this._i);i!=null?this.utcOffset(i):this.utcOffset(0,!0)}return this}function Zk(i){return this.isValid()?(i=i?Ye(i).utcOffset():0,(this.utcOffset()-i)%60===0):!1}function Xk(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qk(){if(!m(this._isDSTShifted))return this._isDSTShifted;var i={},d;return V(i,this),i=nh(i),i._a?(d=i._isUTC?y(i._a):Ye(i._a),this._isDSTShifted=this.isValid()&&Gk(i._a,d.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function eI(){return this.isValid()?!this._isUTC:!1}function tI(){return this.isValid()?this._isUTC:!1}function sh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var nI=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,rI=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gt(i,d){var g=i,b=null,D,F,X;return Da(i)?g={ms:i._milliseconds,d:i._days,M:i._months}:f(i)||!isNaN(+i)?(g={},d?g[d]=+i:g.milliseconds=+i):(b=nI.exec(i))?(D=b[1]==="-"?-1:1,g={y:0,d:Ce(b[Qt])*D,h:Ce(b[et])*D,m:Ce(b[Wt])*D,s:Ce(b[ln])*D,ms:Ce(Ol(b[er]*1e3))*D}):(b=rI.exec(i))?(D=b[1]==="-"?-1:1,g={y:tr(b[2],D),M:tr(b[3],D),w:tr(b[4],D),d:tr(b[5],D),h:tr(b[6],D),m:tr(b[7],D),s:tr(b[8],D)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(X=oI(Ye(g.from),Ye(g.to)),g={},g.ms=X.milliseconds,g.M=X.months),F=new Ca(g),Da(i)&&c(i,"_locale")&&(F._locale=i._locale),Da(i)&&c(i,"_isValid")&&(F._isValid=i._isValid),F}Gt.fn=Ca.prototype,Gt.invalid=Wk;function tr(i,d){var g=i&&parseFloat(i.replace(",","."));return(isNaN(g)?0:g)*d}function ih(i,d){var g={};return g.months=d.month()-i.month()+(d.year()-i.year())*12,i.clone().add(g.months,"M").isAfter(d)&&--g.months,g.milliseconds=+d-+i.clone().add(g.months,"M"),g}function oI(i,d){var g;return i.isValid()&&d.isValid()?(d=Rl(d,i),i.isBefore(d)?g=ih(i,d):(g=ih(d,i),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function lh(i,d){return function(g,b){var D,F;return b!==null&&!isNaN(+b)&&(J(d,"moment()."+d+"(period, number) is deprecated. Please use moment()."+d+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),F=g,g=b,b=F),D=Gt(g,b),ch(this,D,i),this}}function ch(i,d,g,b){var D=d._milliseconds,F=Ol(d._days),X=Ol(d._months);i.isValid()&&(b=b??!0,X&&Yf(i,mo(i,"Month")+X*g),F&&Hf(i,"Date",mo(i,"Date")+F*g),D&&i._d.setTime(i._d.valueOf()+D*g),b&&r.updateOffset(i,F||X))}var aI=lh(1,"add"),sI=lh(-1,"subtract");function dh(i){return typeof i=="string"||i instanceof String}function iI(i){return w(i)||u(i)||dh(i)||f(i)||cI(i)||lI(i)||i===null||i===void 0}function lI(i){var d=l(i)&&!p(i),g=!1,b=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],D,F,X=b.length;for(D=0;D<X;D+=1)F=b[D],g=g||c(i,F);return d&&g}function cI(i){var d=s(i),g=!1;return d&&(g=i.filter(function(b){return!f(b)&&dh(i)}).length===0),d&&g}function dI(i){var d=l(i)&&!p(i),g=!1,b=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],D,F;for(D=0;D<b.length;D+=1)F=b[D],g=g||c(i,F);return d&&g}function pI(i,d){var g=i.diff(d,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function uI(i,d){arguments.length===1&&(arguments[0]?iI(arguments[0])?(i=arguments[0],d=void 0):dI(arguments[0])&&(d=arguments[0],i=void 0):(i=void 0,d=void 0));var g=i||Ye(),b=Rl(g,this).startOf("day"),D=r.calendarFormat(this,b)||"sameElse",F=d&&(L(d[D])?d[D].call(this,g):d[D]);return this.format(F||this.localeData().calendar(D,this,Ye(g)))}function mI(){return new R(this)}function fI(i,d){var g=w(i)?i:Ye(i);return this.isValid()&&g.isValid()?(d=fe(d)||"millisecond",d==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(d).valueOf()):!1}function hI(i,d){var g=w(i)?i:Ye(i);return this.isValid()&&g.isValid()?(d=fe(d)||"millisecond",d==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(d).valueOf()<g.valueOf()):!1}function SI(i,d,g,b){var D=w(i)?i:Ye(i),F=w(d)?d:Ye(d);return this.isValid()&&D.isValid()&&F.isValid()?(b=b||"()",(b[0]==="("?this.isAfter(D,g):!this.isBefore(D,g))&&(b[1]===")"?this.isBefore(F,g):!this.isAfter(F,g))):!1}function gI(i,d){var g=w(i)?i:Ye(i),b;return this.isValid()&&g.isValid()?(d=fe(d)||"millisecond",d==="millisecond"?this.valueOf()===g.valueOf():(b=g.valueOf(),this.clone().startOf(d).valueOf()<=b&&b<=this.clone().endOf(d).valueOf())):!1}function bI(i,d){return this.isSame(i,d)||this.isAfter(i,d)}function vI(i,d){return this.isSame(i,d)||this.isBefore(i,d)}function yI(i,d,g){var b,D,F;if(!this.isValid())return NaN;if(b=Rl(i,this),!b.isValid())return NaN;switch(D=(b.utcOffset()-this.utcOffset())*6e4,d=fe(d),d){case"year":F=Na(this,b)/12;break;case"month":F=Na(this,b);break;case"quarter":F=Na(this,b)/3;break;case"second":F=(this-b)/1e3;break;case"minute":F=(this-b)/6e4;break;case"hour":F=(this-b)/36e5;break;case"day":F=(this-b-D)/864e5;break;case"week":F=(this-b-D)/6048e5;break;default:F=this-b}return g?F:Bt(F)}function Na(i,d){if(i.date()<d.date())return-Na(d,i);var g=(d.year()-i.year())*12+(d.month()-i.month()),b=i.clone().add(g,"months"),D,F;return d-b<0?(D=i.clone().add(g-1,"months"),F=(d-b)/(b-D)):(D=i.clone().add(g+1,"months"),F=(d-b)/(D-b)),-(g+F)||0}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function TI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function EI(i){if(!this.isValid())return null;var d=i!==!0,g=d?this.clone().utc():this;return g.year()<0||g.year()>9999?ee(g,d?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?d?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ee(g,"Z")):ee(g,d?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",d="",g,b,D,F;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",d="Z"),g="["+i+'("]',b=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",D="-MM-DD[T]HH:mm:ss.SSS",F=d+'[")]',this.format(g+b+D+F)}function CI(i){i||(i=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var d=ee(this,i);return this.localeData().postformat(d)}function DI(i,d){return this.isValid()&&(w(i)&&i.isValid()||Ye(i).isValid())?Gt({to:this,from:i}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()}function NI(i){return this.from(Ye(),i)}function kI(i,d){return this.isValid()&&(w(i)&&i.isValid()||Ye(i).isValid())?Gt({from:this,to:i}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()}function II(i){return this.to(Ye(),i)}function ph(i){var d;return i===void 0?this._locale._abbr:(d=dn(i),d!=null&&(this._locale=d),this)}var uh=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function mh(){return this._locale}var ka=1e3,kr=60*ka,Ia=60*kr,fh=(365*400+97)*24*Ia;function Ir(i,d){return(i%d+d)%d}function hh(i,d,g){return i<100&&i>=0?new Date(i+400,d,g)-fh:new Date(i,d,g).valueOf()}function Sh(i,d,g){return i<100&&i>=0?Date.UTC(i+400,d,g)-fh:Date.UTC(i,d,g)}function xI(i){var d,g;if(i=fe(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sh:hh,i){case"year":d=g(this.year(),0,1);break;case"quarter":d=g(this.year(),this.month()-this.month()%3,1);break;case"month":d=g(this.year(),this.month(),1);break;case"week":d=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":d=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":d=g(this.year(),this.month(),this.date());break;case"hour":d=this._d.valueOf(),d-=Ir(d+(this._isUTC?0:this.utcOffset()*kr),Ia);break;case"minute":d=this._d.valueOf(),d-=Ir(d,kr);break;case"second":d=this._d.valueOf(),d-=Ir(d,ka);break}return this._d.setTime(d),r.updateOffset(this,!0),this}function MI(i){var d,g;if(i=fe(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sh:hh,i){case"year":d=g(this.year()+1,0,1)-1;break;case"quarter":d=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":d=g(this.year(),this.month()+1,1)-1;break;case"week":d=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":d=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":d=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":d=this._d.valueOf(),d+=Ia-Ir(d+(this._isUTC?0:this.utcOffset()*kr),Ia)-1;break;case"minute":d=this._d.valueOf(),d+=kr-Ir(d,kr)-1;break;case"second":d=this._d.valueOf(),d+=ka-Ir(d,ka)-1;break}return this._d.setTime(d),r.updateOffset(this,!0),this}function _I(){return this._d.valueOf()-(this._offset||0)*6e4}function LI(){return Math.floor(this.valueOf()/1e3)}function OI(){return new Date(this.valueOf())}function PI(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function RI(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function BI(){return this.isValid()?this.toISOString():null}function AI(){return N(this)}function FI(){return S({},C(this))}function VI(){return C(this).overflow}function $I(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),me("N",Al),me("NN",Al),me("NNN",Al),me("NNNN",ZI),me("NNNNN",XI),Ke(["N","NN","NNN","NNNN","NNNNN"],function(i,d,g,b){var D=g._locale.erasParse(i,b,g._strict);D?C(g).era=D:C(g).invalidEra=i}),me("y",Ae),me("yy",Ae),me("yyy",Ae),me("yyyy",Ae),me("yo",QI),Ke(["y","yy","yyy","yyyy"],mt),Ke(["yo"],function(i,d,g,b){var D;g._locale._eraYearOrdinalRegex&&(D=i.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?d[mt]=g._locale.eraYearOrdinalParse(i,D):d[mt]=parseInt(i,10)});function KI(i,d){var g,b,D,F=this._eras||dn("en")._eras;for(g=0,b=F.length;g<b;++g){switch(typeof F[g].since){case"string":D=r(F[g].since).startOf("day"),F[g].since=D.valueOf();break}switch(typeof F[g].until){case"undefined":F[g].until=1/0;break;case"string":D=r(F[g].until).startOf("day").valueOf(),F[g].until=D.valueOf();break}}return F}function HI(i,d,g){var b,D,F=this.eras(),X,he,Ee;for(i=i.toUpperCase(),b=0,D=F.length;b<D;++b)if(X=F[b].name.toUpperCase(),he=F[b].abbr.toUpperCase(),Ee=F[b].narrow.toUpperCase(),g)switch(d){case"N":case"NN":case"NNN":if(he===i)return F[b];break;case"NNNN":if(X===i)return F[b];break;case"NNNNN":if(Ee===i)return F[b];break}else if([X,he,Ee].indexOf(i)>=0)return F[b]}function WI(i,d){var g=i.since<=i.until?1:-1;return d===void 0?r(i.since).year():r(i.since).year()+(d-i.offset)*g}function GI(){var i,d,g,b=this.localeData().eras();for(i=0,d=b.length;i<d;++i)if(g=this.clone().startOf("day").valueOf(),b[i].since<=g&&g<=b[i].until||b[i].until<=g&&g<=b[i].since)return b[i].name;return""}function YI(){var i,d,g,b=this.localeData().eras();for(i=0,d=b.length;i<d;++i)if(g=this.clone().startOf("day").valueOf(),b[i].since<=g&&g<=b[i].until||b[i].until<=g&&g<=b[i].since)return b[i].narrow;return""}function UI(){var i,d,g,b=this.localeData().eras();for(i=0,d=b.length;i<d;++i)if(g=this.clone().startOf("day").valueOf(),b[i].since<=g&&g<=b[i].until||b[i].until<=g&&g<=b[i].since)return b[i].abbr;return""}function zI(){var i,d,g,b,D=this.localeData().eras();for(i=0,d=D.length;i<d;++i)if(g=D[i].since<=D[i].until?1:-1,b=this.clone().startOf("day").valueOf(),D[i].since<=b&&b<=D[i].until||D[i].until<=b&&b<=D[i].since)return(this.year()-r(D[i].since).year())*g+D[i].offset;return this.year()}function jI(i){return c(this,"_erasNameRegex")||Fl.call(this),i?this._erasNameRegex:this._erasRegex}function qI(i){return c(this,"_erasAbbrRegex")||Fl.call(this),i?this._erasAbbrRegex:this._erasRegex}function JI(i){return c(this,"_erasNarrowRegex")||Fl.call(this),i?this._erasNarrowRegex:this._erasRegex}function Al(i,d){return d.erasAbbrRegex(i)}function ZI(i,d){return d.erasNameRegex(i)}function XI(i,d){return d.erasNarrowRegex(i)}function QI(i,d){return d._eraYearOrdinalRegex||Ae}function Fl(){var i=[],d=[],g=[],b=[],D,F,X,he,Ee,De=this.eras();for(D=0,F=De.length;D<F;++D)X=an(De[D].name),he=an(De[D].abbr),Ee=an(De[D].narrow),d.push(X),i.push(he),g.push(Ee),b.push(X),b.push(he),b.push(Ee);this._erasRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+d.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xa(i,d){B(0,[i,i.length],0,d)}xa("gggg","weekYear"),xa("ggggg","weekYear"),xa("GGGG","isoWeekYear"),xa("GGGGG","isoWeekYear"),me("G",pt),me("g",pt),me("GG",Se,we),me("gg",Se,we),me("GGGG",dt,Mn),me("gggg",dt,Mn),me("GGGGG",Tt,ue),me("ggggg",Tt,ue),po(["gggg","ggggg","GGGG","GGGGG"],function(i,d,g,b){d[b.substr(0,2)]=Ce(i)}),po(["gg","GG"],function(i,d,g,b){d[b]=r.parseTwoDigitYear(i)});function ex(i){return gh.call(this,i,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function tx(i){return gh.call(this,i,this.isoWeek(),this.isoWeekday(),1,4)}function nx(){return cn(this.year(),1,4)}function rx(){return cn(this.isoWeekYear(),1,4)}function ox(){var i=this.localeData()._week;return cn(this.year(),i.dow,i.doy)}function ax(){var i=this.localeData()._week;return cn(this.weekYear(),i.dow,i.doy)}function gh(i,d,g,b,D){var F;return i==null?ho(this,b,D).year:(F=cn(i,b,D),d>F&&(d=F),sx.call(this,i,d,g,b,D))}function sx(i,d,g,b,D){var F=jf(i,d,g,b,D),X=fo(F.year,0,F.dayOfYear);return this.year(X.getUTCFullYear()),this.month(X.getUTCMonth()),this.date(X.getUTCDate()),this}B("Q",0,"Qo","quarter"),me("Q",Qe),Ke("Q",function(i,d){d[sn]=(Ce(i)-1)*3});function ix(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}B("D",["DD",2],"Do","date"),me("D",Se,Te),me("DD",Se,we),me("Do",function(i,d){return i?d._dayOfMonthOrdinalParse||d._ordinalParse:d._dayOfMonthOrdinalParseLenient}),Ke(["D","DD"],Qt),Ke("Do",function(i,d){d[Qt]=Ce(i.match(Se)[0])});var bh=Dr("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),me("DDD",Ie),me("DDDD",Ht),Ke(["DDD","DDDD"],function(i,d,g){g._dayOfYear=Ce(i)});function lx(i){var d=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?d:this.add(i-d,"d")}B("m",["mm",2],0,"minute"),me("m",Se,Xe),me("mm",Se,we),Ke(["m","mm"],Wt);var cx=Dr("Minutes",!1);B("s",["ss",2],0,"second"),me("s",Se,Xe),me("ss",Se,we),Ke(["s","ss"],ln);var dx=Dr("Seconds",!1);B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return this.millisecond()*10}),B(0,["SSSSS",5],0,function(){return this.millisecond()*100}),B(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),B(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),B(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),B(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),me("S",Ie,Qe),me("SS",Ie,we),me("SSS",Ie,Ht);var On,vh;for(On="SSSS";On.length<=9;On+="S")me(On,Ae);function px(i,d){d[er]=Ce(("0."+i)*1e3)}for(On="S";On.length<=9;On+="S")Ke(On,px);vh=Dr("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");function ux(){return this._isUTC?"UTC":""}function mx(){return this._isUTC?"Coordinated Universal Time":""}var ce=R.prototype;ce.add=aI,ce.calendar=uI,ce.clone=mI,ce.diff=yI,ce.endOf=MI,ce.format=CI,ce.from=DI,ce.fromNow=NI,ce.to=kI,ce.toNow=II,ce.get=wN,ce.invalidAt=VI,ce.isAfter=fI,ce.isBefore=hI,ce.isBetween=SI,ce.isSame=gI,ce.isSameOrAfter=bI,ce.isSameOrBefore=vI,ce.isValid=AI,ce.lang=uh,ce.locale=ph,ce.localeData=mh,ce.max=Ak,ce.min=Bk,ce.parsingFlags=FI,ce.set=CN,ce.startOf=xI,ce.subtract=sI,ce.toArray=PI,ce.toObject=RI,ce.toDate=OI,ce.toISOString=EI,ce.inspect=wI,typeof Symbol<"u"&&Symbol.for!=null&&(ce[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ce.toJSON=BI,ce.toString=TI,ce.unix=LI,ce.valueOf=_I,ce.creationData=$I,ce.eraName=GI,ce.eraNarrow=YI,ce.eraAbbr=UI,ce.eraYear=zI,ce.year=Kf,ce.isLeapYear=EN,ce.weekYear=ex,ce.isoWeekYear=tx,ce.quarter=ce.quarters=ix,ce.month=Uf,ce.daysInMonth=ON,ce.week=ce.weeks=KN,ce.isoWeek=ce.isoWeeks=HN,ce.weeksInYear=ox,ce.weeksInWeekYear=ax,ce.isoWeeksInYear=nx,ce.isoWeeksInISOWeekYear=rx,ce.date=bh,ce.day=ce.days=tk,ce.weekday=nk,ce.isoWeekday=rk,ce.dayOfYear=lx,ce.hour=ce.hours=dk,ce.minute=ce.minutes=cx,ce.second=ce.seconds=dx,ce.millisecond=ce.milliseconds=vh,ce.utcOffset=Uk,ce.utc=jk,ce.local=qk,ce.parseZone=Jk,ce.hasAlignedHourOffset=Zk,ce.isDST=Xk,ce.isLocal=eI,ce.isUtcOffset=tI,ce.isUtc=sh,ce.isUTC=sh,ce.zoneAbbr=ux,ce.zoneName=mx,ce.dates=O("dates accessor is deprecated. Use date instead.",bh),ce.months=O("months accessor is deprecated. Use month instead",Uf),ce.years=O("years accessor is deprecated. Use year instead",Kf),ce.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zk),ce.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qk);function fx(i){return Ye(i*1e3)}function hx(){return Ye.apply(null,arguments).parseZone()}function yh(i){return i}var Pe=ne.prototype;Pe.calendar=ae,Pe.longDateFormat=le,Pe.invalidDate=Ne,Pe.ordinal=lt,Pe.preparse=yh,Pe.postformat=yh,Pe.relativeTime=ct,Pe.pastFuture=Pt,Pe.set=Z,Pe.eras=KI,Pe.erasParse=HI,Pe.erasConvertYear=WI,Pe.erasAbbrRegex=qI,Pe.erasNameRegex=jI,Pe.erasNarrowRegex=JI,Pe.months=xN,Pe.monthsShort=MN,Pe.monthsParse=LN,Pe.monthsRegex=RN,Pe.monthsShortRegex=PN,Pe.week=AN,Pe.firstDayOfYear=$N,Pe.firstDayOfWeek=VN,Pe.weekdays=JN,Pe.weekdaysMin=XN,Pe.weekdaysShort=ZN,Pe.weekdaysParse=ek,Pe.weekdaysRegex=ok,Pe.weekdaysShortRegex=ak,Pe.weekdaysMinRegex=sk,Pe.isPM=lk,Pe.meridiem=pk;function Ma(i,d,g,b){var D=dn(),F=y().set(b,d);return D[g](F,i)}function Th(i,d,g){if(f(i)&&(d=i,i=void 0),i=i||"",d!=null)return Ma(i,d,g,"month");var b,D=[];for(b=0;b<12;b++)D[b]=Ma(i,b,g,"month");return D}function Vl(i,d,g,b){typeof i=="boolean"?(f(d)&&(g=d,d=void 0),d=d||""):(d=i,g=d,i=!1,f(d)&&(g=d,d=void 0),d=d||"");var D=dn(),F=i?D._week.dow:0,X,he=[];if(g!=null)return Ma(d,(g+F)%7,b,"day");for(X=0;X<7;X++)he[X]=Ma(d,(X+F)%7,b,"day");return he}function Sx(i,d){return Th(i,d,"months")}function gx(i,d){return Th(i,d,"monthsShort")}function bx(i,d,g){return Vl(i,d,g,"weekdays")}function vx(i,d,g){return Vl(i,d,g,"weekdaysShort")}function yx(i,d,g){return Vl(i,d,g,"weekdaysMin")}Ln("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var d=i%10,g=Ce(i%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th";return i+g}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",Ln),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",dn);var pn=Math.abs;function Tx(){var i=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),i.milliseconds=pn(i.milliseconds),i.seconds=pn(i.seconds),i.minutes=pn(i.minutes),i.hours=pn(i.hours),i.months=pn(i.months),i.years=pn(i.years),this}function Eh(i,d,g,b){var D=Gt(d,g);return i._milliseconds+=b*D._milliseconds,i._days+=b*D._days,i._months+=b*D._months,i._bubble()}function Ex(i,d){return Eh(this,i,d,1)}function wx(i,d){return Eh(this,i,d,-1)}function wh(i){return i<0?Math.floor(i):Math.ceil(i)}function Cx(){var i=this._milliseconds,d=this._days,g=this._months,b=this._data,D,F,X,he,Ee;return i>=0&&d>=0&&g>=0||i<=0&&d<=0&&g<=0||(i+=wh($l(g)+d)*864e5,d=0,g=0),b.milliseconds=i%1e3,D=Bt(i/1e3),b.seconds=D%60,F=Bt(D/60),b.minutes=F%60,X=Bt(F/60),b.hours=X%24,d+=Bt(X/24),Ee=Bt(Ch(d)),g+=Ee,d-=wh($l(Ee)),he=Bt(g/12),g%=12,b.days=d,b.months=g,b.years=he,this}function Ch(i){return i*4800/146097}function $l(i){return i*146097/4800}function Dx(i){if(!this.isValid())return NaN;var d,g,b=this._milliseconds;if(i=fe(i),i==="month"||i==="quarter"||i==="year")switch(d=this._days+b/864e5,g=this._months+Ch(d),i){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(d=this._days+Math.round($l(this._months)),i){case"week":return d/7+b/6048e5;case"day":return d+b/864e5;case"hour":return d*24+b/36e5;case"minute":return d*1440+b/6e4;case"second":return d*86400+b/1e3;case"millisecond":return Math.floor(d*864e5)+b;default:throw new Error("Unknown unit "+i)}}function un(i){return function(){return this.as(i)}}var Dh=un("ms"),Nx=un("s"),kx=un("m"),Ix=un("h"),xx=un("d"),Mx=un("w"),_x=un("M"),Lx=un("Q"),Ox=un("y"),Px=Dh;function Rx(){return Gt(this)}function Bx(i){return i=fe(i),this.isValid()?this[i+"s"]():NaN}function nr(i){return function(){return this.isValid()?this._data[i]:NaN}}var Ax=nr("milliseconds"),Fx=nr("seconds"),Vx=nr("minutes"),$x=nr("hours"),Kx=nr("days"),Hx=nr("months"),Wx=nr("years");function Gx(){return Bt(this.days()/7)}var mn=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Yx(i,d,g,b,D){return D.relativeTime(d||1,!!g,i,b)}function Ux(i,d,g,b){var D=Gt(i).abs(),F=mn(D.as("s")),X=mn(D.as("m")),he=mn(D.as("h")),Ee=mn(D.as("d")),De=mn(D.as("M")),gt=mn(D.as("w")),fn=mn(D.as("y")),Pn=F<=g.ss&&["s",F]||F<g.s&&["ss",F]||X<=1&&["m"]||X<g.m&&["mm",X]||he<=1&&["h"]||he<g.h&&["hh",he]||Ee<=1&&["d"]||Ee<g.d&&["dd",Ee];return g.w!=null&&(Pn=Pn||gt<=1&&["w"]||gt<g.w&&["ww",gt]),Pn=Pn||De<=1&&["M"]||De<g.M&&["MM",De]||fn<=1&&["y"]||["yy",fn],Pn[2]=d,Pn[3]=+i>0,Pn[4]=b,Yx.apply(null,Pn)}function zx(i){return i===void 0?mn:typeof i=="function"?(mn=i,!0):!1}function jx(i,d){return xr[i]===void 0?!1:d===void 0?xr[i]:(xr[i]=d,i==="s"&&(xr.ss=d-1),!0)}function qx(i,d){if(!this.isValid())return this.localeData().invalidDate();var g=!1,b=xr,D,F;return typeof i=="object"&&(d=i,i=!1),typeof i=="boolean"&&(g=i),typeof d=="object"&&(b=Object.assign({},xr,d),d.s!=null&&d.ss==null&&(b.ss=d.s-1)),D=this.localeData(),F=Ux(this,!g,b,D),g&&(F=D.pastFuture(+this,F)),D.postformat(F)}var Kl=Math.abs;function Mr(i){return(i>0)-(i<0)||+i}function _a(){if(!this.isValid())return this.localeData().invalidDate();var i=Kl(this._milliseconds)/1e3,d=Kl(this._days),g=Kl(this._months),b,D,F,X,he=this.asSeconds(),Ee,De,gt,fn;return he?(b=Bt(i/60),D=Bt(b/60),i%=60,b%=60,F=Bt(g/12),g%=12,X=i?i.toFixed(3).replace(/\.?0+$/,""):"",Ee=he<0?"-":"",De=Mr(this._months)!==Mr(he)?"-":"",gt=Mr(this._days)!==Mr(he)?"-":"",fn=Mr(this._milliseconds)!==Mr(he)?"-":"",Ee+"P"+(F?De+F+"Y":"")+(g?De+g+"M":"")+(d?gt+d+"D":"")+(D||b||i?"T":"")+(D?fn+D+"H":"")+(b?fn+b+"M":"")+(i?fn+X+"S":"")):"P0D"}var xe=Ca.prototype;xe.isValid=Hk,xe.abs=Tx,xe.add=Ex,xe.subtract=wx,xe.as=Dx,xe.asMilliseconds=Dh,xe.asSeconds=Nx,xe.asMinutes=kx,xe.asHours=Ix,xe.asDays=xx,xe.asWeeks=Mx,xe.asMonths=_x,xe.asQuarters=Lx,xe.asYears=Ox,xe.valueOf=Px,xe._bubble=Cx,xe.clone=Rx,xe.get=Bx,xe.milliseconds=Ax,xe.seconds=Fx,xe.minutes=Vx,xe.hours=$x,xe.days=Kx,xe.weeks=Gx,xe.months=Hx,xe.years=Wx,xe.humanize=qx,xe.toISOString=_a,xe.toString=_a,xe.toJSON=_a,xe.locale=ph,xe.localeData=mh,xe.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_a),xe.lang=uh,B("X",0,0,"unix"),B("x",0,0,"valueOf"),me("x",pt),me("X",va),Ke("X",function(i,d,g){g._d=new Date(parseFloat(i)*1e3)}),Ke("x",function(i,d,g){g._d=new Date(Ce(i))});//! moment.js
|
|
1977
|
+
`+new Error().stack),g=!1}return d.apply(this,arguments)},d)}var $={};function J(i,d){r.deprecationHandler!=null&&r.deprecationHandler(i,d),$[i]||(P(d),$[i]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function L(i){return typeof Function<"u"&&i instanceof Function||Object.prototype.toString.call(i)==="[object Function]"}function Z(i){var d,g;for(g in i)c(i,g)&&(d=i[g],L(d)?this[g]=d:this["_"+g]=d);this._config=i,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(i,d){var g=S({},i),b;for(b in d)c(d,b)&&(l(i[b])&&l(d[b])?(g[b]={},S(g[b],i[b]),S(g[b],d[b])):d[b]!=null?g[b]=d[b]:delete g[b]);for(b in i)c(i,b)&&!c(d,b)&&l(i[b])&&(g[b]=S({},g[b]));return g}function ne(i){i!=null&&this.set(i)}var Y;Object.keys?Y=Object.keys:Y=function(i){var d,g=[];for(d in i)c(i,d)&&g.push(d);return g};var U={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ae(i,d,g){var b=this._calendar[i]||this._calendar.sameElse;return L(b)?b.call(d,g):b}function H(i,d,g){var b=""+Math.abs(i),D=d-b.length,F=i>=0;return(F?g?"+":"":"-")+Math.pow(10,Math.max(0,D)).toString().substr(1)+b}var q=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},j={};function B(i,d,g,b){var D=b;typeof b=="string"&&(D=function(){return this[b]()}),i&&(j[i]=D),d&&(j[d[0]]=function(){return H(D.apply(this,arguments),d[1],d[2])}),g&&(j[g]=function(){return this.localeData().ordinal(D.apply(this,arguments),i)})}function z(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function Q(i){var d=i.match(q),g,b;for(g=0,b=d.length;g<b;g++)j[d[g]]?d[g]=j[d[g]]:d[g]=z(d[g]);return function(D){var F="",X;for(X=0;X<b;X++)F+=L(d[X])?d[X].call(D,i):d[X];return F}}function ee(i,d){return i.isValid()?(d=de(d,i.localeData()),oe[d]=oe[d]||Q(d),oe[d](i)):i.localeData().invalidDate()}function de(i,d){var g=5;function b(D){return d.longDateFormat(D)||D}for(re.lastIndex=0;g>=0&&re.test(i);)i=i.replace(re,b),re.lastIndex=0,g-=1;return i}var ie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function le(i){var d=this._longDateFormat[i],g=this._longDateFormat[i.toUpperCase()];return d||!g?d:(this._longDateFormat[i]=g.match(q).map(function(b){return b==="MMMM"||b==="MM"||b==="DD"||b==="dddd"?b.slice(1):b}).join(""),this._longDateFormat[i])}var se="Invalid date";function ke(){return this._invalidDate}var Ie="%d",it=/\d{1,2}/;function lt(i){return this._ordinal.replace("%d",i)}var ut={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ct(i,d,g,b){var D=this._relativeTime[g];return L(D)?D(i,d,g,b):D.replace(/%d/i,i)}function Pt(i,d){var g=this._relativeTime[i>0?"future":"past"];return L(g)?g(d):g.replace(/%s/i,d)}var je={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fe(i){return typeof i=="string"?je[i]||je[i.toLowerCase()]:void 0}function Fe(i){var d={},g,b;for(b in i)c(i,b)&&(g=fe(b),g&&(d[g]=i[b]));return d}var ve={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Oe(i){var d=[],g;for(g in i)c(i,g)&&d.push({unit:g,priority:ve[g]});return d.sort(function(b,D){return b.priority-D.priority}),d}var Qe=/\d/,we=/\d\d/,Ht=/\d{3}/,Mn=/\d{4}/,ue=/[+-]?\d{6}/,Se=/\d\d?/,Ce=/\d\d\d\d?/,qe=/\d\d\d\d\d\d?/,xe=/\d{1,3}/,dt=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,Ae=/\d+/,pt=/[+-]?\d+/,_n=/Z|[+-]\d\d:?\d\d/gi,Xt=/Z|[+-]\d\d(?::?\d\d)?/gi,va=/[+-]?\d+(\.\d{1,3})?/,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Te=/^[1-9]\d?/,Xe=/^([1-9]\d|\d)/,Rt;Rt={};function me(i,d,g){Rt[i]=L(d)?d:function(b,D){return b&&g?g:d}}function El(i,d){return c(Rt,i)?Rt[i](d._strict,d._locale):new RegExp(bN(i))}function bN(i){return an(i.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,g,b,D,F){return g||b||D||F}))}function an(i){return i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Bt(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function De(i){var d=+i,g=0;return d!==0&&isFinite(d)&&(g=Bt(d)),g}var wl={};function Ke(i,d){var g,b=d,D;for(typeof i=="string"&&(i=[i]),f(d)&&(b=function(F,X){X[d]=De(F)}),D=i.length,g=0;g<D;g++)wl[i[g]]=b}function po(i,d){Ke(i,function(g,b,D,F){D._w=D._w||{},d(g,D._w,D,F)})}function vN(i,d,g){d!=null&&c(wl,i)&&wl[i](d,g._a,g,i)}function ya(i){return i%4===0&&i%100!==0||i%400===0}var mt=0,sn=1,Qt=2,et=3,Wt=4,ln=5,er=6,yN=7,TN=8;B("Y",0,0,function(){var i=this.year();return i<=9999?H(i,4):"+"+i}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),me("Y",pt),me("YY",Se,we),me("YYYY",dt,Mn),me("YYYYY",Tt,ue),me("YYYYYY",Tt,ue),Ke(["YYYYY","YYYYYY"],mt),Ke("YYYY",function(i,d){d[mt]=i.length===2?r.parseTwoDigitYear(i):De(i)}),Ke("YY",function(i,d){d[mt]=r.parseTwoDigitYear(i)}),Ke("Y",function(i,d){d[mt]=parseInt(i,10)});function uo(i){return ya(i)?366:365}r.parseTwoDigitYear=function(i){return De(i)+(De(i)>68?1900:2e3)};var Kf=Dr("FullYear",!0);function EN(){return ya(this.year())}function Dr(i,d){return function(g){return g!=null?(Hf(this,i,g),r.updateOffset(this,d),this):mo(this,i)}}function mo(i,d){if(!i.isValid())return NaN;var g=i._d,b=i._isUTC;switch(d){case"Milliseconds":return b?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return b?g.getUTCSeconds():g.getSeconds();case"Minutes":return b?g.getUTCMinutes():g.getMinutes();case"Hours":return b?g.getUTCHours():g.getHours();case"Date":return b?g.getUTCDate():g.getDate();case"Day":return b?g.getUTCDay():g.getDay();case"Month":return b?g.getUTCMonth():g.getMonth();case"FullYear":return b?g.getUTCFullYear():g.getFullYear();default:return NaN}}function Hf(i,d,g){var b,D,F,X,he;if(!(!i.isValid()||isNaN(g))){switch(b=i._d,D=i._isUTC,d){case"Milliseconds":return void(D?b.setUTCMilliseconds(g):b.setMilliseconds(g));case"Seconds":return void(D?b.setUTCSeconds(g):b.setSeconds(g));case"Minutes":return void(D?b.setUTCMinutes(g):b.setMinutes(g));case"Hours":return void(D?b.setUTCHours(g):b.setHours(g));case"Date":return void(D?b.setUTCDate(g):b.setDate(g));case"FullYear":break;default:return}F=g,X=i.month(),he=i.date(),he=he===29&&X===1&&!ya(F)?28:he,D?b.setUTCFullYear(F,X,he):b.setFullYear(F,X,he)}}function wN(i){return i=fe(i),L(this[i])?this[i]():this}function CN(i,d){if(typeof i=="object"){i=Fe(i);var g=Oe(i),b,D=g.length;for(b=0;b<D;b++)this[g[b].unit](i[g[b].unit])}else if(i=fe(i),L(this[i]))return this[i](d);return this}function DN(i,d){return(i%d+d)%d}var Je;Array.prototype.indexOf?Je=Array.prototype.indexOf:Je=function(i){var d;for(d=0;d<this.length;++d)if(this[d]===i)return d;return-1};function Cl(i,d){if(isNaN(i)||isNaN(d))return NaN;var g=DN(d,12);return i+=(d-g)/12,g===1?ya(i)?29:28:31-g%7%2}B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(i){return this.localeData().monthsShort(this,i)}),B("MMMM",0,0,function(i){return this.localeData().months(this,i)}),me("M",Se,Te),me("MM",Se,we),me("MMM",function(i,d){return d.monthsShortRegex(i)}),me("MMMM",function(i,d){return d.monthsRegex(i)}),Ke(["M","MM"],function(i,d){d[sn]=De(i)-1}),Ke(["MMM","MMMM"],function(i,d,g,b){var D=g._locale.monthsParse(i,b,g._strict);D!=null?d[sn]=D:C(g).invalidMonth=i});var NN="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Wf="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gf=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kN=be,IN=be;function xN(i,d){return i?s(this._months)?this._months[i.month()]:this._months[(this._months.isFormat||Gf).test(d)?"format":"standalone"][i.month()]:s(this._months)?this._months:this._months.standalone}function MN(i,d){return i?s(this._monthsShort)?this._monthsShort[i.month()]:this._monthsShort[Gf.test(d)?"format":"standalone"][i.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function _N(i,d,g){var b,D,F,X=i.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],b=0;b<12;++b)F=y([2e3,b]),this._shortMonthsParse[b]=this.monthsShort(F,"").toLocaleLowerCase(),this._longMonthsParse[b]=this.months(F,"").toLocaleLowerCase();return g?d==="MMM"?(D=Je.call(this._shortMonthsParse,X),D!==-1?D:null):(D=Je.call(this._longMonthsParse,X),D!==-1?D:null):d==="MMM"?(D=Je.call(this._shortMonthsParse,X),D!==-1?D:(D=Je.call(this._longMonthsParse,X),D!==-1?D:null)):(D=Je.call(this._longMonthsParse,X),D!==-1?D:(D=Je.call(this._shortMonthsParse,X),D!==-1?D:null))}function LN(i,d,g){var b,D,F;if(this._monthsParseExact)return _N.call(this,i,d,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),b=0;b<12;b++){if(D=y([2e3,b]),g&&!this._longMonthsParse[b]&&(this._longMonthsParse[b]=new RegExp("^"+this.months(D,"").replace(".","")+"$","i"),this._shortMonthsParse[b]=new RegExp("^"+this.monthsShort(D,"").replace(".","")+"$","i")),!g&&!this._monthsParse[b]&&(F="^"+this.months(D,"")+"|^"+this.monthsShort(D,""),this._monthsParse[b]=new RegExp(F.replace(".",""),"i")),g&&d==="MMMM"&&this._longMonthsParse[b].test(i))return b;if(g&&d==="MMM"&&this._shortMonthsParse[b].test(i))return b;if(!g&&this._monthsParse[b].test(i))return b}}function Yf(i,d){if(!i.isValid())return i;if(typeof d=="string"){if(/^\d+$/.test(d))d=De(d);else if(d=i.localeData().monthsParse(d),!f(d))return i}var g=d,b=i.date();return b=b<29?b:Math.min(b,Cl(i.year(),g)),i._isUTC?i._d.setUTCMonth(g,b):i._d.setMonth(g,b),i}function Uf(i){return i!=null?(Yf(this,i),r.updateOffset(this,!0),this):mo(this,"Month")}function ON(){return Cl(this.year(),this.month())}function PN(i){return this._monthsParseExact?(c(this,"_monthsRegex")||zf.call(this),i?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=kN),this._monthsShortStrictRegex&&i?this._monthsShortStrictRegex:this._monthsShortRegex)}function RN(i){return this._monthsParseExact?(c(this,"_monthsRegex")||zf.call(this),i?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=IN),this._monthsStrictRegex&&i?this._monthsStrictRegex:this._monthsRegex)}function zf(){function i(Ee,Ne){return Ne.length-Ee.length}var d=[],g=[],b=[],D,F,X,he;for(D=0;D<12;D++)F=y([2e3,D]),X=an(this.monthsShort(F,"")),he=an(this.months(F,"")),d.push(X),g.push(he),b.push(he),b.push(X);d.sort(i),g.sort(i),b.sort(i),this._monthsRegex=new RegExp("^("+b.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function BN(i,d,g,b,D,F,X){var he;return i<100&&i>=0?(he=new Date(i+400,d,g,b,D,F,X),isFinite(he.getFullYear())&&he.setFullYear(i)):he=new Date(i,d,g,b,D,F,X),he}function fo(i){var d,g;return i<100&&i>=0?(g=Array.prototype.slice.call(arguments),g[0]=i+400,d=new Date(Date.UTC.apply(null,g)),isFinite(d.getUTCFullYear())&&d.setUTCFullYear(i)):d=new Date(Date.UTC.apply(null,arguments)),d}function Ta(i,d,g){var b=7+d-g,D=(7+fo(i,0,b).getUTCDay()-d)%7;return-D+b-1}function jf(i,d,g,b,D){var F=(7+g-b)%7,X=Ta(i,b,D),he=1+7*(d-1)+F+X,Ee,Ne;return he<=0?(Ee=i-1,Ne=uo(Ee)+he):he>uo(i)?(Ee=i+1,Ne=he-uo(i)):(Ee=i,Ne=he),{year:Ee,dayOfYear:Ne}}function ho(i,d,g){var b=Ta(i.year(),d,g),D=Math.floor((i.dayOfYear()-b-1)/7)+1,F,X;return D<1?(X=i.year()-1,F=D+cn(X,d,g)):D>cn(i.year(),d,g)?(F=D-cn(i.year(),d,g),X=i.year()+1):(X=i.year(),F=D),{week:F,year:X}}function cn(i,d,g){var b=Ta(i,d,g),D=Ta(i+1,d,g);return(uo(i)-b+D)/7}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),me("w",Se,Te),me("ww",Se,we),me("W",Se,Te),me("WW",Se,we),po(["w","ww","W","WW"],function(i,d,g,b){d[b.substr(0,1)]=De(i)});function AN(i){return ho(i,this._week.dow,this._week.doy).week}var FN={dow:0,doy:6};function VN(){return this._week.dow}function $N(){return this._week.doy}function KN(i){var d=this.localeData().week(this);return i==null?d:this.add((i-d)*7,"d")}function HN(i){var d=ho(this,1,4).week;return i==null?d:this.add((i-d)*7,"d")}B("d",0,"do","day"),B("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),B("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),B("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),me("d",Se),me("e",Se),me("E",Se),me("dd",function(i,d){return d.weekdaysMinRegex(i)}),me("ddd",function(i,d){return d.weekdaysShortRegex(i)}),me("dddd",function(i,d){return d.weekdaysRegex(i)}),po(["dd","ddd","dddd"],function(i,d,g,b){var D=g._locale.weekdaysParse(i,b,g._strict);D!=null?d.d=D:C(g).invalidWeekday=i}),po(["d","e","E"],function(i,d,g,b){d[b]=De(i)});function WN(i,d){return typeof i!="string"?i:isNaN(i)?(i=d.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function GN(i,d){return typeof i=="string"?d.weekdaysParse(i)%7||7:isNaN(i)?null:i}function Dl(i,d){return i.slice(d,7).concat(i.slice(0,d))}var YN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),UN="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zN=be,jN=be,qN=be;function JN(i,d){var g=s(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(d)?"format":"standalone"];return i===!0?Dl(g,this._week.dow):i?g[i.day()]:g}function ZN(i){return i===!0?Dl(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function XN(i){return i===!0?Dl(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function QN(i,d,g){var b,D,F,X=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],b=0;b<7;++b)F=y([2e3,1]).day(b),this._minWeekdaysParse[b]=this.weekdaysMin(F,"").toLocaleLowerCase(),this._shortWeekdaysParse[b]=this.weekdaysShort(F,"").toLocaleLowerCase(),this._weekdaysParse[b]=this.weekdays(F,"").toLocaleLowerCase();return g?d==="dddd"?(D=Je.call(this._weekdaysParse,X),D!==-1?D:null):d==="ddd"?(D=Je.call(this._shortWeekdaysParse,X),D!==-1?D:null):(D=Je.call(this._minWeekdaysParse,X),D!==-1?D:null):d==="dddd"?(D=Je.call(this._weekdaysParse,X),D!==-1||(D=Je.call(this._shortWeekdaysParse,X),D!==-1)?D:(D=Je.call(this._minWeekdaysParse,X),D!==-1?D:null)):d==="ddd"?(D=Je.call(this._shortWeekdaysParse,X),D!==-1||(D=Je.call(this._weekdaysParse,X),D!==-1)?D:(D=Je.call(this._minWeekdaysParse,X),D!==-1?D:null)):(D=Je.call(this._minWeekdaysParse,X),D!==-1||(D=Je.call(this._weekdaysParse,X),D!==-1)?D:(D=Je.call(this._shortWeekdaysParse,X),D!==-1?D:null))}function ek(i,d,g){var b,D,F;if(this._weekdaysParseExact)return QN.call(this,i,d,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),b=0;b<7;b++){if(D=y([2e3,1]).day(b),g&&!this._fullWeekdaysParse[b]&&(this._fullWeekdaysParse[b]=new RegExp("^"+this.weekdays(D,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[b]=new RegExp("^"+this.weekdaysShort(D,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[b]=new RegExp("^"+this.weekdaysMin(D,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[b]||(F="^"+this.weekdays(D,"")+"|^"+this.weekdaysShort(D,"")+"|^"+this.weekdaysMin(D,""),this._weekdaysParse[b]=new RegExp(F.replace(".",""),"i")),g&&d==="dddd"&&this._fullWeekdaysParse[b].test(i))return b;if(g&&d==="ddd"&&this._shortWeekdaysParse[b].test(i))return b;if(g&&d==="dd"&&this._minWeekdaysParse[b].test(i))return b;if(!g&&this._weekdaysParse[b].test(i))return b}}function tk(i){if(!this.isValid())return i!=null?this:NaN;var d=mo(this,"Day");return i!=null?(i=WN(i,this.localeData()),this.add(i-d,"d")):d}function nk(i){if(!this.isValid())return i!=null?this:NaN;var d=(this.day()+7-this.localeData()._week.dow)%7;return i==null?d:this.add(i-d,"d")}function rk(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var d=GN(i,this.localeData());return this.day(this.day()%7?d:d-7)}else return this.day()||7}function ok(i){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Nl.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=zN),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function ak(i){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Nl.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jN),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sk(i){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Nl.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qN),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nl(){function i(gt,fn){return fn.length-gt.length}var d=[],g=[],b=[],D=[],F,X,he,Ee,Ne;for(F=0;F<7;F++)X=y([2e3,1]).day(F),he=an(this.weekdaysMin(X,"")),Ee=an(this.weekdaysShort(X,"")),Ne=an(this.weekdays(X,"")),d.push(he),g.push(Ee),b.push(Ne),D.push(he),D.push(Ee),D.push(Ne);d.sort(i),g.sort(i),b.sort(i),D.sort(i),this._weekdaysRegex=new RegExp("^("+D.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+b.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+d.join("|")+")","i")}function kl(){return this.hours()%12||12}function ik(){return this.hours()||24}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,kl),B("k",["kk",2],0,ik),B("hmm",0,0,function(){return""+kl.apply(this)+H(this.minutes(),2)}),B("hmmss",0,0,function(){return""+kl.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)});function Jf(i,d){B(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),d)})}Jf("a",!0),Jf("A",!1);function Zf(i,d){return d._meridiemParse}me("a",Zf),me("A",Zf),me("H",Se,Xe),me("h",Se,Te),me("k",Se,Te),me("HH",Se,we),me("hh",Se,we),me("kk",Se,we),me("hmm",Ce),me("hmmss",qe),me("Hmm",Ce),me("Hmmss",qe),Ke(["H","HH"],et),Ke(["k","kk"],function(i,d,g){var b=De(i);d[et]=b===24?0:b}),Ke(["a","A"],function(i,d,g){g._isPm=g._locale.isPM(i),g._meridiem=i}),Ke(["h","hh"],function(i,d,g){d[et]=De(i),C(g).bigHour=!0}),Ke("hmm",function(i,d,g){var b=i.length-2;d[et]=De(i.substr(0,b)),d[Wt]=De(i.substr(b)),C(g).bigHour=!0}),Ke("hmmss",function(i,d,g){var b=i.length-4,D=i.length-2;d[et]=De(i.substr(0,b)),d[Wt]=De(i.substr(b,2)),d[ln]=De(i.substr(D)),C(g).bigHour=!0}),Ke("Hmm",function(i,d,g){var b=i.length-2;d[et]=De(i.substr(0,b)),d[Wt]=De(i.substr(b))}),Ke("Hmmss",function(i,d,g){var b=i.length-4,D=i.length-2;d[et]=De(i.substr(0,b)),d[Wt]=De(i.substr(b,2)),d[ln]=De(i.substr(D))});function lk(i){return(i+"").toLowerCase().charAt(0)==="p"}var ck=/[ap]\.?m?\.?/i,dk=Dr("Hours",!0);function pk(i,d,g){return i>11?g?"pm":"PM":g?"am":"AM"}var Xf={calendar:U,longDateFormat:ie,invalidDate:se,ordinal:Ie,dayOfMonthOrdinalParse:it,relativeTime:ut,months:NN,monthsShort:Wf,week:FN,weekdays:YN,weekdaysMin:UN,weekdaysShort:qf,meridiemParse:ck},ze={},So={},go;function uk(i,d){var g,b=Math.min(i.length,d.length);for(g=0;g<b;g+=1)if(i[g]!==d[g])return g;return b}function Qf(i){return i&&i.toLowerCase().replace("_","-")}function mk(i){for(var d=0,g,b,D,F;d<i.length;){for(F=Qf(i[d]).split("-"),g=F.length,b=Qf(i[d+1]),b=b?b.split("-"):null;g>0;){if(D=Ea(F.slice(0,g).join("-")),D)return D;if(b&&b.length>=g&&uk(F,b)>=g-1)break;g--}d++}return go}function fk(i){return!!(i&&i.match("^[^/\\\\]*$"))}function Ea(i){var d=null,g;if(ze[i]===void 0&&e&&e.exports&&fk(i))try{d=go._abbr,g=Zt,g("./locale/"+i),Ln(d)}catch{ze[i]=null}return ze[i]}function Ln(i,d){var g;return i&&(m(d)?g=dn(i):g=Il(i,d),g?go=g:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),go._abbr}function Il(i,d){if(d!==null){var g,b=Xf;if(d.abbr=i,ze[i]!=null)J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),b=ze[i]._config;else if(d.parentLocale!=null)if(ze[d.parentLocale]!=null)b=ze[d.parentLocale]._config;else if(g=Ea(d.parentLocale),g!=null)b=g._config;else return So[d.parentLocale]||(So[d.parentLocale]=[]),So[d.parentLocale].push({name:i,config:d}),null;return ze[i]=new ne(A(b,d)),So[i]&&So[i].forEach(function(D){Il(D.name,D.config)}),Ln(i),ze[i]}else return delete ze[i],null}function hk(i,d){if(d!=null){var g,b,D=Xf;ze[i]!=null&&ze[i].parentLocale!=null?ze[i].set(A(ze[i]._config,d)):(b=Ea(i),b!=null&&(D=b._config),d=A(D,d),b==null&&(d.abbr=i),g=new ne(d),g.parentLocale=ze[i],ze[i]=g),Ln(i)}else ze[i]!=null&&(ze[i].parentLocale!=null?(ze[i]=ze[i].parentLocale,i===Ln()&&Ln(i)):ze[i]!=null&&delete ze[i]);return ze[i]}function dn(i){var d;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return go;if(!s(i)){if(d=Ea(i),d)return d;i=[i]}return mk(i)}function Sk(){return Y(ze)}function xl(i){var d,g=i._a;return g&&C(i).overflow===-2&&(d=g[sn]<0||g[sn]>11?sn:g[Qt]<1||g[Qt]>Cl(g[mt],g[sn])?Qt:g[et]<0||g[et]>24||g[et]===24&&(g[Wt]!==0||g[ln]!==0||g[er]!==0)?et:g[Wt]<0||g[Wt]>59?Wt:g[ln]<0||g[ln]>59?ln:g[er]<0||g[er]>999?er:-1,C(i)._overflowDayOfYear&&(d<mt||d>Qt)&&(d=Qt),C(i)._overflowWeeks&&d===-1&&(d=yN),C(i)._overflowWeekday&&d===-1&&(d=TN),C(i).overflow=d),i}var gk=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bk=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vk=/Z|[+-]\d\d(?::?\d\d)?/,wa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ml=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yk=/^\/?Date\((-?\d+)/i,Tk=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ek={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function eh(i){var d,g,b=i._i,D=gk.exec(b)||bk.exec(b),F,X,he,Ee,Ne=wa.length,gt=Ml.length;if(D){for(C(i).iso=!0,d=0,g=Ne;d<g;d++)if(wa[d][1].exec(D[1])){X=wa[d][0],F=wa[d][2]!==!1;break}if(X==null){i._isValid=!1;return}if(D[3]){for(d=0,g=gt;d<g;d++)if(Ml[d][1].exec(D[3])){he=(D[2]||" ")+Ml[d][0];break}if(he==null){i._isValid=!1;return}}if(!F&&he!=null){i._isValid=!1;return}if(D[4])if(vk.exec(D[4]))Ee="Z";else{i._isValid=!1;return}i._f=X+(he||"")+(Ee||""),Ll(i)}else i._isValid=!1}function wk(i,d,g,b,D,F){var X=[Ck(i),Wf.indexOf(d),parseInt(g,10),parseInt(b,10),parseInt(D,10)];return F&&X.push(parseInt(F,10)),X}function Ck(i){var d=parseInt(i,10);return d<=49?2e3+d:d<=999?1900+d:d}function Dk(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nk(i,d,g){if(i){var b=qf.indexOf(i),D=new Date(d[0],d[1],d[2]).getDay();if(b!==D)return C(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function kk(i,d,g){if(i)return Ek[i];if(d)return 0;var b=parseInt(g,10),D=b%100,F=(b-D)/100;return F*60+D}function th(i){var d=Tk.exec(Dk(i._i)),g;if(d){if(g=wk(d[4],d[3],d[2],d[5],d[6],d[7]),!Nk(d[1],g,i))return;i._a=g,i._tzm=kk(d[8],d[9],d[10]),i._d=fo.apply(null,i._a),i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),C(i).rfc2822=!0}else i._isValid=!1}function Ik(i){var d=yk.exec(i._i);if(d!==null){i._d=new Date(+d[1]);return}if(eh(i),i._isValid===!1)delete i._isValid;else return;if(th(i),i._isValid===!1)delete i._isValid;else return;i._strict?i._isValid=!1:r.createFromInputFallback(i)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(i){i._d=new Date(i._i+(i._useUTC?" UTC":""))});function Nr(i,d,g){return i??d??g}function xk(i){var d=new Date(r.now());return i._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()]}function _l(i){var d,g,b=[],D,F,X;if(!i._d){for(D=xk(i),i._w&&i._a[Qt]==null&&i._a[sn]==null&&Mk(i),i._dayOfYear!=null&&(X=Nr(i._a[mt],D[mt]),(i._dayOfYear>uo(X)||i._dayOfYear===0)&&(C(i)._overflowDayOfYear=!0),g=fo(X,0,i._dayOfYear),i._a[sn]=g.getUTCMonth(),i._a[Qt]=g.getUTCDate()),d=0;d<3&&i._a[d]==null;++d)i._a[d]=b[d]=D[d];for(;d<7;d++)i._a[d]=b[d]=i._a[d]==null?d===2?1:0:i._a[d];i._a[et]===24&&i._a[Wt]===0&&i._a[ln]===0&&i._a[er]===0&&(i._nextDay=!0,i._a[et]=0),i._d=(i._useUTC?fo:BN).apply(null,b),F=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[et]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==F&&(C(i).weekdayMismatch=!0)}}function Mk(i){var d,g,b,D,F,X,he,Ee,Ne;d=i._w,d.GG!=null||d.W!=null||d.E!=null?(F=1,X=4,g=Nr(d.GG,i._a[mt],ho(Ye(),1,4).year),b=Nr(d.W,1),D=Nr(d.E,1),(D<1||D>7)&&(Ee=!0)):(F=i._locale._week.dow,X=i._locale._week.doy,Ne=ho(Ye(),F,X),g=Nr(d.gg,i._a[mt],Ne.year),b=Nr(d.w,Ne.week),d.d!=null?(D=d.d,(D<0||D>6)&&(Ee=!0)):d.e!=null?(D=d.e+F,(d.e<0||d.e>6)&&(Ee=!0)):D=F),b<1||b>cn(g,F,X)?C(i)._overflowWeeks=!0:Ee!=null?C(i)._overflowWeekday=!0:(he=jf(g,b,D,F,X),i._a[mt]=he.year,i._dayOfYear=he.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function Ll(i){if(i._f===r.ISO_8601){eh(i);return}if(i._f===r.RFC_2822){th(i);return}i._a=[],C(i).empty=!0;var d=""+i._i,g,b,D,F,X,he=d.length,Ee=0,Ne,gt;for(D=de(i._f,i._locale).match(q)||[],gt=D.length,g=0;g<gt;g++)F=D[g],b=(d.match(El(F,i))||[])[0],b&&(X=d.substr(0,d.indexOf(b)),X.length>0&&C(i).unusedInput.push(X),d=d.slice(d.indexOf(b)+b.length),Ee+=b.length),j[F]?(b?C(i).empty=!1:C(i).unusedTokens.push(F),vN(F,b,i)):i._strict&&!b&&C(i).unusedTokens.push(F);C(i).charsLeftOver=he-Ee,d.length>0&&C(i).unusedInput.push(d),i._a[et]<=12&&C(i).bigHour===!0&&i._a[et]>0&&(C(i).bigHour=void 0),C(i).parsedDateParts=i._a.slice(0),C(i).meridiem=i._meridiem,i._a[et]=_k(i._locale,i._a[et],i._meridiem),Ne=C(i).era,Ne!==null&&(i._a[mt]=i._locale.erasConvertYear(Ne,i._a[mt])),_l(i),xl(i)}function _k(i,d,g){var b;return g==null?d:i.meridiemHour!=null?i.meridiemHour(d,g):(i.isPM!=null&&(b=i.isPM(g),b&&d<12&&(d+=12),!b&&d===12&&(d=0)),d)}function Lk(i){var d,g,b,D,F,X,he=!1,Ee=i._f.length;if(Ee===0){C(i).invalidFormat=!0,i._d=new Date(NaN);return}for(D=0;D<Ee;D++)F=0,X=!1,d=V({},i),i._useUTC!=null&&(d._useUTC=i._useUTC),d._f=i._f[D],Ll(d),N(d)&&(X=!0),F+=C(d).charsLeftOver,F+=C(d).unusedTokens.length*10,C(d).score=F,he?F<b&&(b=F,g=d):(b==null||F<b||X)&&(b=F,g=d,X&&(he=!0));S(i,g||d)}function Ok(i){if(!i._d){var d=Fe(i._i),g=d.day===void 0?d.date:d.day;i._a=h([d.year,d.month,g,d.hour,d.minute,d.second,d.millisecond],function(b){return b&&parseInt(b,10)}),_l(i)}}function Pk(i){var d=new R(xl(nh(i)));return d._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function nh(i){var d=i._i,g=i._f;return i._locale=i._locale||dn(i._l),d===null||g===void 0&&d===""?M({nullInput:!0}):(typeof d=="string"&&(i._i=d=i._locale.preparse(d)),w(d)?new R(xl(d)):(u(d)?i._d=d:s(g)?Lk(i):g?Ll(i):Rk(i),N(i)||(i._d=null),i))}function Rk(i){var d=i._i;m(d)?i._d=new Date(r.now()):u(d)?i._d=new Date(d.valueOf()):typeof d=="string"?Ik(i):s(d)?(i._a=h(d.slice(0),function(g){return parseInt(g,10)}),_l(i)):l(d)?Ok(i):f(d)?i._d=new Date(d):r.createFromInputFallback(i)}function rh(i,d,g,b,D){var F={};return(d===!0||d===!1)&&(b=d,d=void 0),(g===!0||g===!1)&&(b=g,g=void 0),(l(i)&&p(i)||s(i)&&i.length===0)&&(i=void 0),F._isAMomentObject=!0,F._useUTC=F._isUTC=D,F._l=g,F._i=i,F._f=d,F._strict=b,Pk(F)}function Ye(i,d,g,b){return rh(i,d,g,b,!1)}var Bk=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=Ye.apply(null,arguments);return this.isValid()&&i.isValid()?i<this?this:i:M()}),Ak=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=Ye.apply(null,arguments);return this.isValid()&&i.isValid()?i>this?this:i:M()});function oh(i,d){var g,b;if(d.length===1&&s(d[0])&&(d=d[0]),!d.length)return Ye();for(g=d[0],b=1;b<d.length;++b)(!d[b].isValid()||d[b][i](g))&&(g=d[b]);return g}function Fk(){var i=[].slice.call(arguments,0);return oh("isBefore",i)}function Vk(){var i=[].slice.call(arguments,0);return oh("isAfter",i)}var $k=function(){return Date.now?Date.now():+new Date},bo=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Kk(i){var d,g=!1,b,D=bo.length;for(d in i)if(c(i,d)&&!(Je.call(bo,d)!==-1&&(i[d]==null||!isNaN(i[d]))))return!1;for(b=0;b<D;++b)if(i[bo[b]]){if(g)return!1;parseFloat(i[bo[b]])!==De(i[bo[b]])&&(g=!0)}return!0}function Hk(){return this._isValid}function Wk(){return Gt(NaN)}function Ca(i){var d=Fe(i),g=d.year||0,b=d.quarter||0,D=d.month||0,F=d.week||d.isoWeek||0,X=d.day||0,he=d.hour||0,Ee=d.minute||0,Ne=d.second||0,gt=d.millisecond||0;this._isValid=Kk(d),this._milliseconds=+gt+Ne*1e3+Ee*6e4+he*1e3*60*60,this._days=+X+F*7,this._months=+D+b*3+g*12,this._data={},this._locale=dn(),this._bubble()}function Da(i){return i instanceof Ca}function Ol(i){return i<0?Math.round(-1*i)*-1:Math.round(i)}function Gk(i,d,g){var b=Math.min(i.length,d.length),D=Math.abs(i.length-d.length),F=0,X;for(X=0;X<b;X++)De(i[X])!==De(d[X])&&F++;return F+D}function ah(i,d){B(i,0,0,function(){var g=this.utcOffset(),b="+";return g<0&&(g=-g,b="-"),b+H(~~(g/60),2)+d+H(~~g%60,2)})}ah("Z",":"),ah("ZZ",""),me("Z",Xt),me("ZZ",Xt),Ke(["Z","ZZ"],function(i,d,g){g._useUTC=!0,g._tzm=Pl(Xt,i)});var Yk=/([\+\-]|\d\d)/gi;function Pl(i,d){var g=(d||"").match(i),b,D,F;return g===null?null:(b=g[g.length-1]||[],D=(b+"").match(Yk)||["-",0,0],F=+(D[1]*60)+De(D[2]),F===0?0:D[0]==="+"?F:-F)}function Rl(i,d){var g,b;return d._isUTC?(g=d.clone(),b=(w(i)||u(i)?i.valueOf():Ye(i).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+b),r.updateOffset(g,!1),g):Ye(i).local()}function Bl(i){return-Math.round(i._d.getTimezoneOffset())}r.updateOffset=function(){};function Uk(i,d,g){var b=this._offset||0,D;if(!this.isValid())return i!=null?this:NaN;if(i!=null){if(typeof i=="string"){if(i=Pl(Xt,i),i===null)return this}else Math.abs(i)<16&&!g&&(i=i*60);return!this._isUTC&&d&&(D=Bl(this)),this._offset=i,this._isUTC=!0,D!=null&&this.add(D,"m"),b!==i&&(!d||this._changeInProgress?ch(this,Gt(i-b,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?b:Bl(this)}function zk(i,d){return i!=null?(typeof i!="string"&&(i=-i),this.utcOffset(i,d),this):-this.utcOffset()}function jk(i){return this.utcOffset(0,i)}function qk(i){return this._isUTC&&(this.utcOffset(0,i),this._isUTC=!1,i&&this.subtract(Bl(this),"m")),this}function Jk(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var i=Pl(_n,this._i);i!=null?this.utcOffset(i):this.utcOffset(0,!0)}return this}function Zk(i){return this.isValid()?(i=i?Ye(i).utcOffset():0,(this.utcOffset()-i)%60===0):!1}function Xk(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qk(){if(!m(this._isDSTShifted))return this._isDSTShifted;var i={},d;return V(i,this),i=nh(i),i._a?(d=i._isUTC?y(i._a):Ye(i._a),this._isDSTShifted=this.isValid()&&Gk(i._a,d.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function eI(){return this.isValid()?!this._isUTC:!1}function tI(){return this.isValid()?this._isUTC:!1}function sh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var nI=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,rI=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gt(i,d){var g=i,b=null,D,F,X;return Da(i)?g={ms:i._milliseconds,d:i._days,M:i._months}:f(i)||!isNaN(+i)?(g={},d?g[d]=+i:g.milliseconds=+i):(b=nI.exec(i))?(D=b[1]==="-"?-1:1,g={y:0,d:De(b[Qt])*D,h:De(b[et])*D,m:De(b[Wt])*D,s:De(b[ln])*D,ms:De(Ol(b[er]*1e3))*D}):(b=rI.exec(i))?(D=b[1]==="-"?-1:1,g={y:tr(b[2],D),M:tr(b[3],D),w:tr(b[4],D),d:tr(b[5],D),h:tr(b[6],D),m:tr(b[7],D),s:tr(b[8],D)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(X=oI(Ye(g.from),Ye(g.to)),g={},g.ms=X.milliseconds,g.M=X.months),F=new Ca(g),Da(i)&&c(i,"_locale")&&(F._locale=i._locale),Da(i)&&c(i,"_isValid")&&(F._isValid=i._isValid),F}Gt.fn=Ca.prototype,Gt.invalid=Wk;function tr(i,d){var g=i&&parseFloat(i.replace(",","."));return(isNaN(g)?0:g)*d}function ih(i,d){var g={};return g.months=d.month()-i.month()+(d.year()-i.year())*12,i.clone().add(g.months,"M").isAfter(d)&&--g.months,g.milliseconds=+d-+i.clone().add(g.months,"M"),g}function oI(i,d){var g;return i.isValid()&&d.isValid()?(d=Rl(d,i),i.isBefore(d)?g=ih(i,d):(g=ih(d,i),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function lh(i,d){return function(g,b){var D,F;return b!==null&&!isNaN(+b)&&(J(d,"moment()."+d+"(period, number) is deprecated. Please use moment()."+d+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),F=g,g=b,b=F),D=Gt(g,b),ch(this,D,i),this}}function ch(i,d,g,b){var D=d._milliseconds,F=Ol(d._days),X=Ol(d._months);i.isValid()&&(b=b??!0,X&&Yf(i,mo(i,"Month")+X*g),F&&Hf(i,"Date",mo(i,"Date")+F*g),D&&i._d.setTime(i._d.valueOf()+D*g),b&&r.updateOffset(i,F||X))}var aI=lh(1,"add"),sI=lh(-1,"subtract");function dh(i){return typeof i=="string"||i instanceof String}function iI(i){return w(i)||u(i)||dh(i)||f(i)||cI(i)||lI(i)||i===null||i===void 0}function lI(i){var d=l(i)&&!p(i),g=!1,b=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],D,F,X=b.length;for(D=0;D<X;D+=1)F=b[D],g=g||c(i,F);return d&&g}function cI(i){var d=s(i),g=!1;return d&&(g=i.filter(function(b){return!f(b)&&dh(i)}).length===0),d&&g}function dI(i){var d=l(i)&&!p(i),g=!1,b=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],D,F;for(D=0;D<b.length;D+=1)F=b[D],g=g||c(i,F);return d&&g}function pI(i,d){var g=i.diff(d,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function uI(i,d){arguments.length===1&&(arguments[0]?iI(arguments[0])?(i=arguments[0],d=void 0):dI(arguments[0])&&(d=arguments[0],i=void 0):(i=void 0,d=void 0));var g=i||Ye(),b=Rl(g,this).startOf("day"),D=r.calendarFormat(this,b)||"sameElse",F=d&&(L(d[D])?d[D].call(this,g):d[D]);return this.format(F||this.localeData().calendar(D,this,Ye(g)))}function mI(){return new R(this)}function fI(i,d){var g=w(i)?i:Ye(i);return this.isValid()&&g.isValid()?(d=fe(d)||"millisecond",d==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(d).valueOf()):!1}function hI(i,d){var g=w(i)?i:Ye(i);return this.isValid()&&g.isValid()?(d=fe(d)||"millisecond",d==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(d).valueOf()<g.valueOf()):!1}function SI(i,d,g,b){var D=w(i)?i:Ye(i),F=w(d)?d:Ye(d);return this.isValid()&&D.isValid()&&F.isValid()?(b=b||"()",(b[0]==="("?this.isAfter(D,g):!this.isBefore(D,g))&&(b[1]===")"?this.isBefore(F,g):!this.isAfter(F,g))):!1}function gI(i,d){var g=w(i)?i:Ye(i),b;return this.isValid()&&g.isValid()?(d=fe(d)||"millisecond",d==="millisecond"?this.valueOf()===g.valueOf():(b=g.valueOf(),this.clone().startOf(d).valueOf()<=b&&b<=this.clone().endOf(d).valueOf())):!1}function bI(i,d){return this.isSame(i,d)||this.isAfter(i,d)}function vI(i,d){return this.isSame(i,d)||this.isBefore(i,d)}function yI(i,d,g){var b,D,F;if(!this.isValid())return NaN;if(b=Rl(i,this),!b.isValid())return NaN;switch(D=(b.utcOffset()-this.utcOffset())*6e4,d=fe(d),d){case"year":F=Na(this,b)/12;break;case"month":F=Na(this,b);break;case"quarter":F=Na(this,b)/3;break;case"second":F=(this-b)/1e3;break;case"minute":F=(this-b)/6e4;break;case"hour":F=(this-b)/36e5;break;case"day":F=(this-b-D)/864e5;break;case"week":F=(this-b-D)/6048e5;break;default:F=this-b}return g?F:Bt(F)}function Na(i,d){if(i.date()<d.date())return-Na(d,i);var g=(d.year()-i.year())*12+(d.month()-i.month()),b=i.clone().add(g,"months"),D,F;return d-b<0?(D=i.clone().add(g-1,"months"),F=(d-b)/(b-D)):(D=i.clone().add(g+1,"months"),F=(d-b)/(D-b)),-(g+F)||0}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function TI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function EI(i){if(!this.isValid())return null;var d=i!==!0,g=d?this.clone().utc():this;return g.year()<0||g.year()>9999?ee(g,d?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?d?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ee(g,"Z")):ee(g,d?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function wI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",d="",g,b,D,F;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",d="Z"),g="["+i+'("]',b=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",D="-MM-DD[T]HH:mm:ss.SSS",F=d+'[")]',this.format(g+b+D+F)}function CI(i){i||(i=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var d=ee(this,i);return this.localeData().postformat(d)}function DI(i,d){return this.isValid()&&(w(i)&&i.isValid()||Ye(i).isValid())?Gt({to:this,from:i}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()}function NI(i){return this.from(Ye(),i)}function kI(i,d){return this.isValid()&&(w(i)&&i.isValid()||Ye(i).isValid())?Gt({from:this,to:i}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()}function II(i){return this.to(Ye(),i)}function ph(i){var d;return i===void 0?this._locale._abbr:(d=dn(i),d!=null&&(this._locale=d),this)}var uh=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function mh(){return this._locale}var ka=1e3,kr=60*ka,Ia=60*kr,fh=(365*400+97)*24*Ia;function Ir(i,d){return(i%d+d)%d}function hh(i,d,g){return i<100&&i>=0?new Date(i+400,d,g)-fh:new Date(i,d,g).valueOf()}function Sh(i,d,g){return i<100&&i>=0?Date.UTC(i+400,d,g)-fh:Date.UTC(i,d,g)}function xI(i){var d,g;if(i=fe(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sh:hh,i){case"year":d=g(this.year(),0,1);break;case"quarter":d=g(this.year(),this.month()-this.month()%3,1);break;case"month":d=g(this.year(),this.month(),1);break;case"week":d=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":d=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":d=g(this.year(),this.month(),this.date());break;case"hour":d=this._d.valueOf(),d-=Ir(d+(this._isUTC?0:this.utcOffset()*kr),Ia);break;case"minute":d=this._d.valueOf(),d-=Ir(d,kr);break;case"second":d=this._d.valueOf(),d-=Ir(d,ka);break}return this._d.setTime(d),r.updateOffset(this,!0),this}function MI(i){var d,g;if(i=fe(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Sh:hh,i){case"year":d=g(this.year()+1,0,1)-1;break;case"quarter":d=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":d=g(this.year(),this.month()+1,1)-1;break;case"week":d=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":d=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":d=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":d=this._d.valueOf(),d+=Ia-Ir(d+(this._isUTC?0:this.utcOffset()*kr),Ia)-1;break;case"minute":d=this._d.valueOf(),d+=kr-Ir(d,kr)-1;break;case"second":d=this._d.valueOf(),d+=ka-Ir(d,ka)-1;break}return this._d.setTime(d),r.updateOffset(this,!0),this}function _I(){return this._d.valueOf()-(this._offset||0)*6e4}function LI(){return Math.floor(this.valueOf()/1e3)}function OI(){return new Date(this.valueOf())}function PI(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function RI(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function BI(){return this.isValid()?this.toISOString():null}function AI(){return N(this)}function FI(){return S({},C(this))}function VI(){return C(this).overflow}function $I(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),me("N",Al),me("NN",Al),me("NNN",Al),me("NNNN",ZI),me("NNNNN",XI),Ke(["N","NN","NNN","NNNN","NNNNN"],function(i,d,g,b){var D=g._locale.erasParse(i,b,g._strict);D?C(g).era=D:C(g).invalidEra=i}),me("y",Ae),me("yy",Ae),me("yyy",Ae),me("yyyy",Ae),me("yo",QI),Ke(["y","yy","yyy","yyyy"],mt),Ke(["yo"],function(i,d,g,b){var D;g._locale._eraYearOrdinalRegex&&(D=i.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?d[mt]=g._locale.eraYearOrdinalParse(i,D):d[mt]=parseInt(i,10)});function KI(i,d){var g,b,D,F=this._eras||dn("en")._eras;for(g=0,b=F.length;g<b;++g){switch(typeof F[g].since){case"string":D=r(F[g].since).startOf("day"),F[g].since=D.valueOf();break}switch(typeof F[g].until){case"undefined":F[g].until=1/0;break;case"string":D=r(F[g].until).startOf("day").valueOf(),F[g].until=D.valueOf();break}}return F}function HI(i,d,g){var b,D,F=this.eras(),X,he,Ee;for(i=i.toUpperCase(),b=0,D=F.length;b<D;++b)if(X=F[b].name.toUpperCase(),he=F[b].abbr.toUpperCase(),Ee=F[b].narrow.toUpperCase(),g)switch(d){case"N":case"NN":case"NNN":if(he===i)return F[b];break;case"NNNN":if(X===i)return F[b];break;case"NNNNN":if(Ee===i)return F[b];break}else if([X,he,Ee].indexOf(i)>=0)return F[b]}function WI(i,d){var g=i.since<=i.until?1:-1;return d===void 0?r(i.since).year():r(i.since).year()+(d-i.offset)*g}function GI(){var i,d,g,b=this.localeData().eras();for(i=0,d=b.length;i<d;++i)if(g=this.clone().startOf("day").valueOf(),b[i].since<=g&&g<=b[i].until||b[i].until<=g&&g<=b[i].since)return b[i].name;return""}function YI(){var i,d,g,b=this.localeData().eras();for(i=0,d=b.length;i<d;++i)if(g=this.clone().startOf("day").valueOf(),b[i].since<=g&&g<=b[i].until||b[i].until<=g&&g<=b[i].since)return b[i].narrow;return""}function UI(){var i,d,g,b=this.localeData().eras();for(i=0,d=b.length;i<d;++i)if(g=this.clone().startOf("day").valueOf(),b[i].since<=g&&g<=b[i].until||b[i].until<=g&&g<=b[i].since)return b[i].abbr;return""}function zI(){var i,d,g,b,D=this.localeData().eras();for(i=0,d=D.length;i<d;++i)if(g=D[i].since<=D[i].until?1:-1,b=this.clone().startOf("day").valueOf(),D[i].since<=b&&b<=D[i].until||D[i].until<=b&&b<=D[i].since)return(this.year()-r(D[i].since).year())*g+D[i].offset;return this.year()}function jI(i){return c(this,"_erasNameRegex")||Fl.call(this),i?this._erasNameRegex:this._erasRegex}function qI(i){return c(this,"_erasAbbrRegex")||Fl.call(this),i?this._erasAbbrRegex:this._erasRegex}function JI(i){return c(this,"_erasNarrowRegex")||Fl.call(this),i?this._erasNarrowRegex:this._erasRegex}function Al(i,d){return d.erasAbbrRegex(i)}function ZI(i,d){return d.erasNameRegex(i)}function XI(i,d){return d.erasNarrowRegex(i)}function QI(i,d){return d._eraYearOrdinalRegex||Ae}function Fl(){var i=[],d=[],g=[],b=[],D,F,X,he,Ee,Ne=this.eras();for(D=0,F=Ne.length;D<F;++D)X=an(Ne[D].name),he=an(Ne[D].abbr),Ee=an(Ne[D].narrow),d.push(X),i.push(he),g.push(Ee),b.push(X),b.push(he),b.push(Ee);this._erasRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+d.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xa(i,d){B(0,[i,i.length],0,d)}xa("gggg","weekYear"),xa("ggggg","weekYear"),xa("GGGG","isoWeekYear"),xa("GGGGG","isoWeekYear"),me("G",pt),me("g",pt),me("GG",Se,we),me("gg",Se,we),me("GGGG",dt,Mn),me("gggg",dt,Mn),me("GGGGG",Tt,ue),me("ggggg",Tt,ue),po(["gggg","ggggg","GGGG","GGGGG"],function(i,d,g,b){d[b.substr(0,2)]=De(i)}),po(["gg","GG"],function(i,d,g,b){d[b]=r.parseTwoDigitYear(i)});function ex(i){return gh.call(this,i,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function tx(i){return gh.call(this,i,this.isoWeek(),this.isoWeekday(),1,4)}function nx(){return cn(this.year(),1,4)}function rx(){return cn(this.isoWeekYear(),1,4)}function ox(){var i=this.localeData()._week;return cn(this.year(),i.dow,i.doy)}function ax(){var i=this.localeData()._week;return cn(this.weekYear(),i.dow,i.doy)}function gh(i,d,g,b,D){var F;return i==null?ho(this,b,D).year:(F=cn(i,b,D),d>F&&(d=F),sx.call(this,i,d,g,b,D))}function sx(i,d,g,b,D){var F=jf(i,d,g,b,D),X=fo(F.year,0,F.dayOfYear);return this.year(X.getUTCFullYear()),this.month(X.getUTCMonth()),this.date(X.getUTCDate()),this}B("Q",0,"Qo","quarter"),me("Q",Qe),Ke("Q",function(i,d){d[sn]=(De(i)-1)*3});function ix(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}B("D",["DD",2],"Do","date"),me("D",Se,Te),me("DD",Se,we),me("Do",function(i,d){return i?d._dayOfMonthOrdinalParse||d._ordinalParse:d._dayOfMonthOrdinalParseLenient}),Ke(["D","DD"],Qt),Ke("Do",function(i,d){d[Qt]=De(i.match(Se)[0])});var bh=Dr("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),me("DDD",xe),me("DDDD",Ht),Ke(["DDD","DDDD"],function(i,d,g){g._dayOfYear=De(i)});function lx(i){var d=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?d:this.add(i-d,"d")}B("m",["mm",2],0,"minute"),me("m",Se,Xe),me("mm",Se,we),Ke(["m","mm"],Wt);var cx=Dr("Minutes",!1);B("s",["ss",2],0,"second"),me("s",Se,Xe),me("ss",Se,we),Ke(["s","ss"],ln);var dx=Dr("Seconds",!1);B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return this.millisecond()*10}),B(0,["SSSSS",5],0,function(){return this.millisecond()*100}),B(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),B(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),B(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),B(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),me("S",xe,Qe),me("SS",xe,we),me("SSS",xe,Ht);var On,vh;for(On="SSSS";On.length<=9;On+="S")me(On,Ae);function px(i,d){d[er]=De(("0."+i)*1e3)}for(On="S";On.length<=9;On+="S")Ke(On,px);vh=Dr("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");function ux(){return this._isUTC?"UTC":""}function mx(){return this._isUTC?"Coordinated Universal Time":""}var ce=R.prototype;ce.add=aI,ce.calendar=uI,ce.clone=mI,ce.diff=yI,ce.endOf=MI,ce.format=CI,ce.from=DI,ce.fromNow=NI,ce.to=kI,ce.toNow=II,ce.get=wN,ce.invalidAt=VI,ce.isAfter=fI,ce.isBefore=hI,ce.isBetween=SI,ce.isSame=gI,ce.isSameOrAfter=bI,ce.isSameOrBefore=vI,ce.isValid=AI,ce.lang=uh,ce.locale=ph,ce.localeData=mh,ce.max=Ak,ce.min=Bk,ce.parsingFlags=FI,ce.set=CN,ce.startOf=xI,ce.subtract=sI,ce.toArray=PI,ce.toObject=RI,ce.toDate=OI,ce.toISOString=EI,ce.inspect=wI,typeof Symbol<"u"&&Symbol.for!=null&&(ce[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ce.toJSON=BI,ce.toString=TI,ce.unix=LI,ce.valueOf=_I,ce.creationData=$I,ce.eraName=GI,ce.eraNarrow=YI,ce.eraAbbr=UI,ce.eraYear=zI,ce.year=Kf,ce.isLeapYear=EN,ce.weekYear=ex,ce.isoWeekYear=tx,ce.quarter=ce.quarters=ix,ce.month=Uf,ce.daysInMonth=ON,ce.week=ce.weeks=KN,ce.isoWeek=ce.isoWeeks=HN,ce.weeksInYear=ox,ce.weeksInWeekYear=ax,ce.isoWeeksInYear=nx,ce.isoWeeksInISOWeekYear=rx,ce.date=bh,ce.day=ce.days=tk,ce.weekday=nk,ce.isoWeekday=rk,ce.dayOfYear=lx,ce.hour=ce.hours=dk,ce.minute=ce.minutes=cx,ce.second=ce.seconds=dx,ce.millisecond=ce.milliseconds=vh,ce.utcOffset=Uk,ce.utc=jk,ce.local=qk,ce.parseZone=Jk,ce.hasAlignedHourOffset=Zk,ce.isDST=Xk,ce.isLocal=eI,ce.isUtcOffset=tI,ce.isUtc=sh,ce.isUTC=sh,ce.zoneAbbr=ux,ce.zoneName=mx,ce.dates=O("dates accessor is deprecated. Use date instead.",bh),ce.months=O("months accessor is deprecated. Use month instead",Uf),ce.years=O("years accessor is deprecated. Use year instead",Kf),ce.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zk),ce.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qk);function fx(i){return Ye(i*1e3)}function hx(){return Ye.apply(null,arguments).parseZone()}function yh(i){return i}var Pe=ne.prototype;Pe.calendar=ae,Pe.longDateFormat=le,Pe.invalidDate=ke,Pe.ordinal=lt,Pe.preparse=yh,Pe.postformat=yh,Pe.relativeTime=ct,Pe.pastFuture=Pt,Pe.set=Z,Pe.eras=KI,Pe.erasParse=HI,Pe.erasConvertYear=WI,Pe.erasAbbrRegex=qI,Pe.erasNameRegex=jI,Pe.erasNarrowRegex=JI,Pe.months=xN,Pe.monthsShort=MN,Pe.monthsParse=LN,Pe.monthsRegex=RN,Pe.monthsShortRegex=PN,Pe.week=AN,Pe.firstDayOfYear=$N,Pe.firstDayOfWeek=VN,Pe.weekdays=JN,Pe.weekdaysMin=XN,Pe.weekdaysShort=ZN,Pe.weekdaysParse=ek,Pe.weekdaysRegex=ok,Pe.weekdaysShortRegex=ak,Pe.weekdaysMinRegex=sk,Pe.isPM=lk,Pe.meridiem=pk;function Ma(i,d,g,b){var D=dn(),F=y().set(b,d);return D[g](F,i)}function Th(i,d,g){if(f(i)&&(d=i,i=void 0),i=i||"",d!=null)return Ma(i,d,g,"month");var b,D=[];for(b=0;b<12;b++)D[b]=Ma(i,b,g,"month");return D}function Vl(i,d,g,b){typeof i=="boolean"?(f(d)&&(g=d,d=void 0),d=d||""):(d=i,g=d,i=!1,f(d)&&(g=d,d=void 0),d=d||"");var D=dn(),F=i?D._week.dow:0,X,he=[];if(g!=null)return Ma(d,(g+F)%7,b,"day");for(X=0;X<7;X++)he[X]=Ma(d,(X+F)%7,b,"day");return he}function Sx(i,d){return Th(i,d,"months")}function gx(i,d){return Th(i,d,"monthsShort")}function bx(i,d,g){return Vl(i,d,g,"weekdays")}function vx(i,d,g){return Vl(i,d,g,"weekdaysShort")}function yx(i,d,g){return Vl(i,d,g,"weekdaysMin")}Ln("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var d=i%10,g=De(i%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th";return i+g}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",Ln),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",dn);var pn=Math.abs;function Tx(){var i=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),i.milliseconds=pn(i.milliseconds),i.seconds=pn(i.seconds),i.minutes=pn(i.minutes),i.hours=pn(i.hours),i.months=pn(i.months),i.years=pn(i.years),this}function Eh(i,d,g,b){var D=Gt(d,g);return i._milliseconds+=b*D._milliseconds,i._days+=b*D._days,i._months+=b*D._months,i._bubble()}function Ex(i,d){return Eh(this,i,d,1)}function wx(i,d){return Eh(this,i,d,-1)}function wh(i){return i<0?Math.floor(i):Math.ceil(i)}function Cx(){var i=this._milliseconds,d=this._days,g=this._months,b=this._data,D,F,X,he,Ee;return i>=0&&d>=0&&g>=0||i<=0&&d<=0&&g<=0||(i+=wh($l(g)+d)*864e5,d=0,g=0),b.milliseconds=i%1e3,D=Bt(i/1e3),b.seconds=D%60,F=Bt(D/60),b.minutes=F%60,X=Bt(F/60),b.hours=X%24,d+=Bt(X/24),Ee=Bt(Ch(d)),g+=Ee,d-=wh($l(Ee)),he=Bt(g/12),g%=12,b.days=d,b.months=g,b.years=he,this}function Ch(i){return i*4800/146097}function $l(i){return i*146097/4800}function Dx(i){if(!this.isValid())return NaN;var d,g,b=this._milliseconds;if(i=fe(i),i==="month"||i==="quarter"||i==="year")switch(d=this._days+b/864e5,g=this._months+Ch(d),i){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(d=this._days+Math.round($l(this._months)),i){case"week":return d/7+b/6048e5;case"day":return d+b/864e5;case"hour":return d*24+b/36e5;case"minute":return d*1440+b/6e4;case"second":return d*86400+b/1e3;case"millisecond":return Math.floor(d*864e5)+b;default:throw new Error("Unknown unit "+i)}}function un(i){return function(){return this.as(i)}}var Dh=un("ms"),Nx=un("s"),kx=un("m"),Ix=un("h"),xx=un("d"),Mx=un("w"),_x=un("M"),Lx=un("Q"),Ox=un("y"),Px=Dh;function Rx(){return Gt(this)}function Bx(i){return i=fe(i),this.isValid()?this[i+"s"]():NaN}function nr(i){return function(){return this.isValid()?this._data[i]:NaN}}var Ax=nr("milliseconds"),Fx=nr("seconds"),Vx=nr("minutes"),$x=nr("hours"),Kx=nr("days"),Hx=nr("months"),Wx=nr("years");function Gx(){return Bt(this.days()/7)}var mn=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Yx(i,d,g,b,D){return D.relativeTime(d||1,!!g,i,b)}function Ux(i,d,g,b){var D=Gt(i).abs(),F=mn(D.as("s")),X=mn(D.as("m")),he=mn(D.as("h")),Ee=mn(D.as("d")),Ne=mn(D.as("M")),gt=mn(D.as("w")),fn=mn(D.as("y")),Pn=F<=g.ss&&["s",F]||F<g.s&&["ss",F]||X<=1&&["m"]||X<g.m&&["mm",X]||he<=1&&["h"]||he<g.h&&["hh",he]||Ee<=1&&["d"]||Ee<g.d&&["dd",Ee];return g.w!=null&&(Pn=Pn||gt<=1&&["w"]||gt<g.w&&["ww",gt]),Pn=Pn||Ne<=1&&["M"]||Ne<g.M&&["MM",Ne]||fn<=1&&["y"]||["yy",fn],Pn[2]=d,Pn[3]=+i>0,Pn[4]=b,Yx.apply(null,Pn)}function zx(i){return i===void 0?mn:typeof i=="function"?(mn=i,!0):!1}function jx(i,d){return xr[i]===void 0?!1:d===void 0?xr[i]:(xr[i]=d,i==="s"&&(xr.ss=d-1),!0)}function qx(i,d){if(!this.isValid())return this.localeData().invalidDate();var g=!1,b=xr,D,F;return typeof i=="object"&&(d=i,i=!1),typeof i=="boolean"&&(g=i),typeof d=="object"&&(b=Object.assign({},xr,d),d.s!=null&&d.ss==null&&(b.ss=d.s-1)),D=this.localeData(),F=Ux(this,!g,b,D),g&&(F=D.pastFuture(+this,F)),D.postformat(F)}var Kl=Math.abs;function Mr(i){return(i>0)-(i<0)||+i}function _a(){if(!this.isValid())return this.localeData().invalidDate();var i=Kl(this._milliseconds)/1e3,d=Kl(this._days),g=Kl(this._months),b,D,F,X,he=this.asSeconds(),Ee,Ne,gt,fn;return he?(b=Bt(i/60),D=Bt(b/60),i%=60,b%=60,F=Bt(g/12),g%=12,X=i?i.toFixed(3).replace(/\.?0+$/,""):"",Ee=he<0?"-":"",Ne=Mr(this._months)!==Mr(he)?"-":"",gt=Mr(this._days)!==Mr(he)?"-":"",fn=Mr(this._milliseconds)!==Mr(he)?"-":"",Ee+"P"+(F?Ne+F+"Y":"")+(g?Ne+g+"M":"")+(d?gt+d+"D":"")+(D||b||i?"T":"")+(D?fn+D+"H":"")+(b?fn+b+"M":"")+(i?fn+X+"S":"")):"P0D"}var Me=Ca.prototype;Me.isValid=Hk,Me.abs=Tx,Me.add=Ex,Me.subtract=wx,Me.as=Dx,Me.asMilliseconds=Dh,Me.asSeconds=Nx,Me.asMinutes=kx,Me.asHours=Ix,Me.asDays=xx,Me.asWeeks=Mx,Me.asMonths=_x,Me.asQuarters=Lx,Me.asYears=Ox,Me.valueOf=Px,Me._bubble=Cx,Me.clone=Rx,Me.get=Bx,Me.milliseconds=Ax,Me.seconds=Fx,Me.minutes=Vx,Me.hours=$x,Me.days=Kx,Me.weeks=Gx,Me.months=Hx,Me.years=Wx,Me.humanize=qx,Me.toISOString=_a,Me.toString=_a,Me.toJSON=_a,Me.locale=ph,Me.localeData=mh,Me.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_a),Me.lang=uh,B("X",0,0,"unix"),B("x",0,0,"valueOf"),me("x",pt),me("X",va),Ke("X",function(i,d,g){g._d=new Date(parseFloat(i)*1e3)}),Ke("x",function(i,d,g){g._d=new Date(De(i))});//! moment.js
|
|
1978
1978
|
return r.version="2.30.1",a(Ye),r.fn=ce,r.min=Fk,r.max=Vk,r.now=$k,r.utc=y,r.unix=fx,r.months=Sx,r.isDate=u,r.locale=Ln,r.invalid=M,r.duration=Gt,r.isMoment=w,r.weekdays=bx,r.parseZone=hx,r.localeData=dn,r.isDuration=Da,r.monthsShort=gx,r.weekdaysMin=yx,r.defineLocale=Il,r.updateLocale=hk,r.locales=Sk,r.weekdaysShort=vx,r.normalizeUnits=fe,r.relativeTimeRounding=zx,r.relativeTimeThreshold=jx,r.calendarFormat=pI,r.prototype=ce,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})}(fi)),fi.exports}(function(e,t){(function(n,r){r(typeof Zt=="function"?tn():n.moment)})(Ut,function(n){//! moment.js locale configuration
|
|
1979
1979
|
var r=n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var s=a%10,l=~~(a%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return a+l},week:{dow:0,doy:4}});return r})})(),function(e,t){(function(n,r){r(typeof Zt=="function"?tn():n.moment)})(Ut,function(n){//! moment.js locale configuration
|
|
1980
1980
|
var r=n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var s=a%10,l=~~(a%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return a+l}});return r})}(),function(e,t){(function(n,r){r(typeof Zt=="function"?tn():n.moment)})(Ut,function(n){//! moment.js locale configuration
|
|
@@ -1984,7 +1984,7 @@ var r=n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juill
|
|
|
1984
1984
|
var r=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,s=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,l=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],c=n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:r,monthsShortStrictRegex:a,monthsParse:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(p,m){switch(m){case"D":return p+(p===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return p+(p===1?"er":"e");case"w":case"W":return p+(p===1?"re":"e")}},week:{dow:1,doy:4}});return c})}(),function(e,t){(function(n,r){r(typeof Zt=="function"?tn():n.moment)})(Ut,function(n){//! moment.js locale configuration
|
|
1985
1985
|
var r="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],l=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,c=n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(p,m){return p?/-MMM-/.test(m)?a[p.month()]:r[p.month()]:r},monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return c})}(),function(e,t){(function(n,r){r(typeof Zt=="function"?tn():n.moment)})(Ut,function(n){//! moment.js locale configuration
|
|
1986
1986
|
var r=n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,s){return a===12&&(a=0),s==="凌晨"||s==="早上"||s==="上午"?a:s==="下午"||s==="晚上"?a+12:a>=11?a:a+12},meridiem:function(a,s,l){var c=a*100+s;return c<600?"凌晨":c<900?"早上":c<1130?"上午":c<1230?"中午":c<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(a){return a.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(a){return this.week()!==a.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(a,s){switch(s){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"周";default:return a}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return r})}(),function(e,t){(function(n,r){r(typeof Zt=="function"?tn():n.moment)})(Ut,function(n){//! moment.js locale configuration
|
|
1987
|
-
var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,s){if(a===12&&(a=0),s==="凌晨"||s==="早上"||s==="上午")return a;if(s==="中午")return a>=11?a:a+12;if(s==="下午"||s==="晚上")return a+12},meridiem:function(a,s,l){var c=a*100+s;return c<600?"凌晨":c<900?"早上":c<1130?"上午":c<1230?"中午":c<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(a,s){switch(s){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"週";default:return a}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return r})}();const UE=
|
|
1987
|
+
var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,s){if(a===12&&(a=0),s==="凌晨"||s==="早上"||s==="上午")return a;if(s==="中午")return a>=11?a:a+12;if(s==="下午"||s==="晚上")return a+12},meridiem:function(a,s,l){var c=a*100+s;return c<600?"凌晨":c<900?"早上":c<1130?"上午":c<1230?"中午":c<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(a,s){switch(s){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"週";default:return a}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return r})}();const UE=Ze.locale(),vr=Ze.locales();vr.indexOf("en-US")===-1&&Ze.defineLocale("en-US",{parentLocale:"en",longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY @ LT",LLLL:"dddd MMMM D, YYYY @ LT"}}),vr.indexOf("en-US24")===-1&&Ze.defineLocale("en-US24",{parentLocale:"en-US",longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss"}}),vr.indexOf("en-PH")===-1&&(Ze.defineLocale("en-PH",{parentLocale:"en-GB"}),Ze.updateLocale("en-PH",{longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A"}})),vr.indexOf("en-IN")===-1&&(Ze.defineLocale("en-IN",{parentLocale:"en-GB"}),Ze.updateLocale("en-IN",{longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",ll:"D-MMM-YYYY"}})),vr.indexOf("en-SG")===-1&&(Ze.defineLocale("en-SG",{parentLocale:"en-IN"}),Ze.updateLocale("en-SG",{longDateFormat:{ll:"D MMM YYYY"}})),vr.indexOf("en-HK")===-1&&Ze.defineLocale("en-HK",{parentLocale:"en-GB"}),Ze.locale(UE);const zE={ISO_8601:"ISO_8601",ISO_8601_UTC:"ISO_8601_UTC",SHORT_TIME:"LT",SHORT_TIME_ZONE:"LT z",LONG_TIME:"LTS",LONG_TIME_ZONE:"LTS z",NUM_DATE:"L",SHORT_DATE:"ll",LONG_DATE:"LL",SHORT_DATETIME:"lll",SHORT_DATETIME_ZONE:"lll z",LONG_DATETIME:"LLL",LONG_DATETIME_ZONE:"LLL z",SHORT_FULLDATETIME:"llll",SHORT_FULLDATETIME_ZONE:"llll z",LONG_FULLDATETIME:"LLLL",LONG_FULLDATETIME_ZONE:"LLLL z"},jE={currentUser:"any",dateToFormat:"string | Date",format:"string",locale:"string",relative:"boolean",relativeHrs:"number",tz:"string"};function qE(e,t,n=0){if(!n&&!t)return!1;if(t)return!0;const r=Ze(e);return Ze().diff(r,"hours")<n}function JE({locale:e=window.navigator.language,tz:t=Ze.tz.guess(),dateToFormat:n,format:r,currentUser:a,relative:s,relativeHrs:l,children:c}){let p=t,m=e;a&&a.preferences&&(p=p||a.preferences.timezone,m=m||a.preferences.locale);const f=r?zE[r]:"lll",u=n||String(c),h=Ze(u);if(h.locale(m),!h.isValid())throw new Error("invalid date");return h.tz(p),qE(u,s||!1,l)?h.fromNow():h.format(f)}function hi(e){const{dateToFormat:t,locale:n,tz:r,format:a,currentUser:s,relative:l,relativeHrs:c,children:p,...m}=e;return o.createElement("span",{className:"sps-datetime",...m},JE({locale:n,tz:r,dateToFormat:t,format:a,currentUser:s,relative:l,relativeHrs:c,children:p}))}Object.assign(hi,{props:jE,displayName:"SpsDateTime"});const lu={basic:{label:"Datetime Component",description:"<p>Formats dates</p>",examples:{basicAttribute:{imports:v.code`
|
|
1988
1988
|
import { SpsDateTime } from "@spscommerce/ds-react";
|
|
1989
1989
|
`,jsx:v.code`
|
|
1990
1990
|
<SpsDateTime dateToFormat="2018-09-11T16:32:52.822000Z" />
|
|
@@ -1992,7 +1992,7 @@ var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
1992
1992
|
import { SpsDateTime } from "@spscommerce/ds-react";
|
|
1993
1993
|
`,jsx:v.code`
|
|
1994
1994
|
<SpsDateTime>2018-09-11T16:32:52.822000Z</SpsDateTime>
|
|
1995
|
-
`}}}},cu={compact:"boolean",wideTerms:"boolean",widerTerms:"boolean"};function Zo(e){const{children:t,className:n,compact:r=!1,"data-testid":a,unsafelyReplaceClassName:s,wideTerms:l=!1,widerTerms:c=!1,...p}=e,m=o.Children.map(t,(u,h)=>{if(u.type.toString()!==o.Fragment.toString()){const T=parseInt(`${h/2}`,10)+1;return o.cloneElement(u,{style:{...u.props.style,msGridRow:T}})}const S=u.props.children;return o.Children.map(S,T=>o.cloneElement(T,{style:{...T.props.style,msGridRow:h+1}}))}),f=G(s||"sps-description-list",r&&"sps-description-list--compact",l&&"sps-description-list--wide-terms",c&&"sps-description-list--wider-terms",n);return o.createElement("dl",{className:f,"data-testid":`${a}`,...p},m)}Object.assign(Zo,{props:cu,displayName:"SpsDescriptionList / SpsDl"});function du(e){return o.createElement(Zo,{...e})}Object.assign(du,{props:cu,displayName:"SpsDescriptionList / SpsDl"});const pu={};function Xo(e){const{children:t,className:n,"data-testid":r,unsafelyReplaceClassName:a,...s}=e,l=G(a||"sps-description-list__definition",n);return o.createElement("dd",{className:l,"data-testid":`${r}`,...s},t)}Object.assign(Xo,{props:pu,displayName:"SpsDescriptionListDefinition / SpsDd"});function uu(e){return o.createElement(Xo,{...e})}Object.assign(uu,{props:pu,displayName:"SpsDescriptionListDefinition / SpsDd"});var
|
|
1995
|
+
`}}}},cu={compact:"boolean",wideTerms:"boolean",widerTerms:"boolean"};function Zo(e){const{children:t,className:n,compact:r=!1,"data-testid":a,unsafelyReplaceClassName:s,wideTerms:l=!1,widerTerms:c=!1,...p}=e,m=o.Children.map(t,(u,h)=>{if(u.type.toString()!==o.Fragment.toString()){const T=parseInt(`${h/2}`,10)+1;return o.cloneElement(u,{style:{...u.props.style,msGridRow:T}})}const S=u.props.children;return o.Children.map(S,T=>o.cloneElement(T,{style:{...T.props.style,msGridRow:h+1}}))}),f=G(s||"sps-description-list",r&&"sps-description-list--compact",l&&"sps-description-list--wide-terms",c&&"sps-description-list--wider-terms",n);return o.createElement("dl",{className:f,"data-testid":`${a}`,...p},m)}Object.assign(Zo,{props:cu,displayName:"SpsDescriptionList / SpsDl"});function du(e){return o.createElement(Zo,{...e})}Object.assign(du,{props:cu,displayName:"SpsDescriptionList / SpsDl"});const pu={};function Xo(e){const{children:t,className:n,"data-testid":r,unsafelyReplaceClassName:a,...s}=e,l=G(a||"sps-description-list__definition",n);return o.createElement("dd",{className:l,"data-testid":`${r}`,...s},t)}Object.assign(Xo,{props:pu,displayName:"SpsDescriptionListDefinition / SpsDd"});function uu(e){return o.createElement(Xo,{...e})}Object.assign(uu,{props:pu,displayName:"SpsDescriptionListDefinition / SpsDd"});var Le=(e=>(e.VISIBLE="visible",e.DEFER_VISIBLE="defer_visible",e.HIDDEN="hidden",e.DELAYED_HIDDEN="delayed_hidden",e))(Le||{});function Qo(e){return e==="visible"?"hidden":"visible"}const mu=13,Un=new Map,ZE={for:{type:"React.MutableRefObject<any> | string",required:!0},hideDelay:"number",isShown:"TooltipVisibility",kind:"TooltipKind",offsets:"[number, number]",onDeferred:"() => void",position:"Position",altPosition:"Position",showOn:"TooltipShowTrigger",title:"string | ReactNode"};function Lt({children:e,className:t,for:n,"data-testid":r,hideDelay:a=W.TOOLTIP_HIDE_DELAY_MS_DEFAULT,isShown:s,kind:l=W.TooltipKind.DEFAULT,offsets:c=[0,0],onDeferred:p,position:m=W.Position.TOP_MIDDLE,altPosition:f=Wa(m),showOn:u=W.TooltipShowTrigger.MOUSEOVER,style:h,title:S,unsafelyReplaceClassName:y}){const T=o.useRef({instanceKey:Symbol("ds-react:tooltip:instance-key"),prevIsShown:s,hideTimer:null}),[C,E]=o.useState(!1),N=o.useRef(null),M=typeof n=="string"?o.useRef(document.getElementById(n)):n,I=o.useRef(null),k=o.useCallback(()=>{T.current.hideTimer&&(window.clearTimeout(T.current.hideTimer),T.current.hideTimer=null)},[]),V=o.useCallback(()=>{k(),E(!1)},[]),R=o.useCallback((U=!1)=>{var ae;if(U===!0&&Un.size>0)return p&&p(),!1;if(((ae=N.current)==null?void 0:ae.textContent)==="")return console.warn("SpsTooltip is empty; aborting show"),!1;k();for(const H of Un.values())H();return E(!0),!0},[]),w=o.useCallback(U=>{U&&U.stopPropagation(),E(ae=>ae?(V(),!1):R())},[]),P=o.useCallback(U=>{N.current&&!N.current.contains(U.target)&&V()},[]),O=o.useCallback(()=>{k(),T.current.hideTimer=window.setTimeout(V,a)},[]),$=o.useCallback(U=>{var B,z,Q,ee,de,ie;const[ae,H]=U.split(" "),q=(B=M==null?void 0:M.current)==null?void 0:B.getBoundingClientRect(),re=I.current?parseInt(((z=getComputedStyle(I.current))==null?void 0:z.width)||"0",10):0,oe=re*Math.sqrt(2),j=(oe-re)/2;if(["top","bottom"].includes(ae)&&H!=="middle"){if(!(q!=null&&q.width)||q.width>50)return 0;const le=I.current?parseInt(((Q=getComputedStyle(I.current))==null?void 0:Q.left)||"0",10):0,se=I.current?parseInt(((ee=getComputedStyle(I.current))==null?void 0:ee.right)||"0",10):0,Ie=(le<se?le:se)-j+oe/2;return q.width/2-Ie}else if(["left","right"].includes(ae)&&H!=="middle"){if(q!=null&&q.height&&q.height>50)return 0;const le=I.current?parseInt(((de=getComputedStyle(I.current))==null?void 0:de.top)||"0",10):0,se=I.current?parseInt(((ie=getComputedStyle(I.current))==null?void 0:ie.bottom)||"0",10):0,Ie=(le<se?le:se)-j+oe/2;return q.height/2-Ie}else return 0},[]);o.useEffect(()=>{if(typeof n=="string"&&(M.current=document.getElementById(n)),C?Un.set(T.current.instanceKey,V):Un.has(T.current.instanceKey)&&Un.delete(T.current.instanceKey),u===W.TooltipShowTrigger.MANUAL){if(s!==T.current.prevIsShown)switch(s){case"visible":R();break;case"defer_visible":R(!0);break;case"hidden":V();break;case"delayed_hidden":O();break}T.current.prevIsShown=s}},[C,s]),o.useEffect(()=>{if(M.current)switch(u){case W.TooltipShowTrigger.MOUSEOVER:M.current.addEventListener("mouseenter",R),M.current.addEventListener("mouseleave",O);break;case W.TooltipShowTrigger.CLICK:M.current.addEventListener("click",w),document.addEventListener("click",P);break;case W.TooltipShowTrigger.MANUAL:break}},[M]),o.useEffect(()=>{var U;((U=N.current)==null?void 0:U.textContent)===""&&C&&(T.current.hideTimer&&(clearTimeout(T.current.hideTimer),T.current.hideTimer=null),E(!1))},[e,C]),o.useEffect(()=>()=>{Un.has(T.current.instanceKey)&&Un.delete(T.current.instanceKey),M.current&&(M.current.removeEventListener("mouseenter",R),M.current.removeEventListener("mouseleave",O),M.current.removeEventListener("click",w),document.removeEventListener("click",P))},[]);const J=cr("sps-tooltip-portal"),L=o.useContext(kt),[[Z,A],ne]=o.useState([{},!1]);o.useEffect(()=>{ne(C?An(N,M,m,{altPosition:f,setMinWidth:!1,offsets:[c[0]-mu,c[1]+$(m)],...L}):[{},!1])},[C,m,f,c[0],c[1],e]),o.useEffect(()=>{const U=()=>{C&&ne(An(N,M,m,{altPosition:f,setMinWidth:!1,offsets:[c[0]-mu,c[1]+$(m)],...L}))};return document.addEventListener("scroll",U),()=>{document.removeEventListener("scroll",U)}},[C]);const Y=G(y||"sps-tooltip","z-stratum-tip",`sps-tooltip--${l}`,`sps-tooltip--pos-${(A?f:m).replace(" ","-")}`,C&&"sps-tooltip--shown",t);return J(o.createElement("div",{role:"tooltip",className:Y,"data-testid":r,ref:N,style:{...h,...Z},onMouseEnter:u===W.TooltipShowTrigger.MOUSEOVER?k:void 0,onMouseLeave:u===W.TooltipShowTrigger.MOUSEOVER?O:void 0},S&&(typeof S=="string"?o.createElement("span",{className:"sps-tooltip__title d-block"},S):S),o.createElement("span",{className:"sps-tooltip__body d-block"},e),o.createElement("span",{ref:I,className:"sps-tooltip__caret"})))}Object.assign(Lt,{props:ZE,displayName:"SpsTooltip"});const fu={error:"boolean",errors:"ReactNodeOrRenderFn",help:"ReactNodeOrRenderFn",labelFor:"SpsFormFieldMeta<any>",required:"boolean"};function ea(e){const{children:t,className:n,error:r,errors:a,help:s,labelFor:l,required:c,"data-testid":p,unsafelyReplaceClassName:m,...f}=e,u=o.useRef(null),h=o.useRef();function S(){var k;return(h==null?void 0:h.current)&&((k=h.current.parentElement)==null?void 0:k.classList.contains("sps-form-group--error"))}function y(){return l&&!l.isPristine()&&!l.isValid()}const[T,C]=o.useState(),[E,N]=o.useState(Le.HIDDEN);o.useEffect(()=>{C(y()||S()?W.TooltipKind.ERROR:W.TooltipKind.HELP)}),o.useEffect(()=>{var R;h.current=(R=u==null?void 0:u.current)==null?void 0:R.getElementsByClassName("sps-form-group__label")[0];const k=()=>N(Le.VISIBLE),V=()=>N(Le.HIDDEN);return h.current&&(h.current.addEventListener("focus",k),h.current.addEventListener("blur",V)),()=>{h.current&&(h.current.removeEventListener("focus",k),h.current.removeEventListener("blur",V))}}),l&&(l.onFocus=()=>N(Le.VISIBLE),l.onBlur=()=>N(Le.HIDDEN));const M=G(m||"sps-description-list__term",(c||l&&l.isRequired())&&"sps-description-list__term--required",(r||y())&&"sps-description-list__term--error",n);function I(){N(E===Le.VISIBLE?Le.HIDDEN:Le.VISIBLE)}return o.createElement(o.Fragment,null,o.createElement("dt",{className:M,"data-testid":`${p}`,ref:u,onMouseEnter:()=>N(Le.VISIBLE),onMouseLeave:()=>N(Le.DELAYED_HIDDEN),onClick:I,...f},t),o.createElement(Lt,{kind:T,for:u,showOn:W.TooltipShowTrigger.MANUAL,isShown:E},vt(T===W.TooltipKind.ERROR?a:s)))}Object.assign(ea,{props:fu,displayName:"SpsDescriptionListTerm / SpsDt"});function hu(e){return o.createElement(ea,{...e})}Object.assign(hu,{props:fu,displayName:"SpsDescriptionListTerm / SpsDt"});const Su={general:{label:"General Usage",description:()=>x.createElement(x.Fragment,null,x.createElement("p",null,"Description Lists should be used to group a series of related terms (and their accompanying descriptions) together in a tabular-like format."),x.createElement("p",null,"Note: Description Lists are not the required pattern for listing terms and descriptions, but should be used when it benefits the legibility of the content over other typographic formats such as unordered lists or tables."),x.createElement("h5",null,"Use a Description List"),x.createElement("ul",null,x.createElement("li",{className:"mb-2"},"To display two or more terms that have accompanying descriptions or values.")),x.createElement("h5",null,"Do Not Use a Description List"),x.createElement("ul",null,x.createElement("li",{className:"mb-2"},"To display a single term"),x.createElement("li",{className:"mb-2"},"If the listed terms do not have descriptions")))},basic:{label:"Basic Description Lists",description:()=>x.createElement("p",null,"Description Lists are available in two sizes. Additionally, the left column can be set to one of three different width options to best accomodate the content in each specific use case."),examples:{oneToThree:{description:()=>x.createElement("h5",null,"1-to-3"),react:v.code`
|
|
1996
1996
|
import { SpsDl, SpsDt, SpsDd } from "@spscommerce/ds-react";
|
|
1997
1997
|
function DemoComponent() {
|
|
1998
1998
|
return (
|
|
@@ -2703,7 +2703,7 @@ var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
2703
2703
|
</SpsTable>
|
|
2704
2704
|
)
|
|
2705
2705
|
}
|
|
2706
|
-
`}}}},ew={checked:"boolean",onChange:"ChangeEventHandler",indeterminate:"boolean",disabled:"boolean",options:"Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"};function Si(e){const{options:t,className:n,checked:r,onChange:a,indeterminate:s,disabled:l,"data-testid":c,...p}=e,m=G("sps-checkbox-dropdown",n);return o.createElement("span",{className:m,"data-testid":c,...p},o.createElement(Fn,{indeterminate:s,checked:r,disabled:l,onChange:a,inline:!0,"data-testid":`${c}__checkbox`}),o.createElement(zn,{disabled:l,options:t,icon:W.SpsIcon.CHEVRON_DOWN,"data-testid":`${c}__dropdown`}))}Object.assign(Si,{props:ew,displayName:"SpsCheckboxDropdown"});const tw={errors:"ReactNodeOrRenderFn",formMeta:"SpsFormSetMeta<any>",legend:"string",hasRequiredFields:"boolean",optional:"boolean",enabled:"boolean",onToggled:"(isEnabled: boolean) => void",tooltip:"string",applyNestedStyles:"boolean"};function gi({children:e,className:t,errors:n,formArray:r,formGroup:a,formMeta:s,legend:l,unsafelyReplaceClassName:c,hasRequiredFields:p=!1,optional:m=!1,enabled:f=!1,onToggled:u,tooltip:h,applyNestedStyles:S,"data-testid":y,errorsTooltipTrigger:T=W.TooltipShowTrigger.CLICK,errorsTooltipPosition:C=W.Position.LEFT_MIDDLE}){const E=a||r,N=o.useRef(null),M=o.useRef(null),[I,k]=o.useState(
|
|
2706
|
+
`}}}},ew={checked:"boolean",onChange:"ChangeEventHandler",indeterminate:"boolean",disabled:"boolean",options:"Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"};function Si(e){const{options:t,className:n,checked:r,onChange:a,indeterminate:s,disabled:l,"data-testid":c,...p}=e,m=G("sps-checkbox-dropdown",n);return o.createElement("span",{className:m,"data-testid":c,...p},o.createElement(Fn,{indeterminate:s,checked:r,disabled:l,onChange:a,inline:!0,"data-testid":`${c}__checkbox`}),o.createElement(zn,{disabled:l,options:t,icon:W.SpsIcon.CHEVRON_DOWN,"data-testid":`${c}__dropdown`}))}Object.assign(Si,{props:ew,displayName:"SpsCheckboxDropdown"});const tw={errors:"ReactNodeOrRenderFn",formMeta:"SpsFormSetMeta<any>",legend:"string",hasRequiredFields:"boolean",optional:"boolean",enabled:"boolean",onToggled:"(isEnabled: boolean) => void",tooltip:"string",applyNestedStyles:"boolean"};function gi({children:e,className:t,errors:n,formArray:r,formGroup:a,formMeta:s,legend:l,unsafelyReplaceClassName:c,hasRequiredFields:p=!1,optional:m=!1,enabled:f=!1,onToggled:u,tooltip:h,applyNestedStyles:S,"data-testid":y,errorsTooltipTrigger:T=W.TooltipShowTrigger.CLICK,errorsTooltipPosition:C=W.Position.LEFT_MIDDLE}){const E=a||r,N=o.useRef(null),M=o.useRef(null),[I,k]=o.useState(Le.HIDDEN),[V,R]=o.useState(!1),[w,P]=o.useState(f);Ya(()=>{u==null||u(w)},[w]),o.useEffect(()=>{if(E||s){const J=E&&E.isFocused()||s&&s.isFocused();!V&&J?k(Le.VISIBLE):V&&!J&&k(Le.HIDDEN),R(J||!1)}});const O=G(c||S?"nested-styles-fieldset":"sps-fieldset",(E&&!E.isPristine()&&E.invalid||s&&(!s.isValid()||!s.contentsAreValid()))&&"sps-fieldset--error",t,m&&!w&&"sps-fieldset--collapsed",p&&"sps-fieldset--required-fields");function $(){k(I===Le.VISIBLE?Le.HIDDEN:Le.VISIBLE)}return o.createElement("div",{className:"sps-fieldset-container"},o.createElement("fieldset",{className:O,"data-testid":y},o.createElement("legend",{className:"sps-fieldset__legend",ref:N,onMouseEnter:()=>k(Le.VISIBLE),onMouseLeave:()=>k(Le.DELAYED_HIDDEN),onClick:$},m&&o.createElement(Fn,{checked:w,className:"d-inline-flex pr-1",onChange:J=>{P(J.target.checked)},"data-testid":`${y}__checkbox`}),l,h&&o.createElement("span",{className:"sps-fieldset__legend-icon",ref:M},o.createElement(Vt,{icon:W.SpsIcon.INFO_CIRCLE,"data-testid":`${y}__info-icon`}))),h&&o.createElement(Lt,{for:M},h),!!n&&o.createElement(Lt,{for:N,kind:W.TooltipKind.ERROR,showOn:T,position:C,isShown:I},vt(n)),e))}Object.assign(gi,{props:tw,displayName:"SpsFieldset"});const bu={basic:{label:"Basic Content Sections",description:"info about basic content sections",examples:{basic:{react:v.code`
|
|
2707
2707
|
import {
|
|
2708
2708
|
useSpsForm,
|
|
2709
2709
|
SpsFieldset,
|
|
@@ -3004,7 +3004,7 @@ var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
3004
3004
|
</React.Fragment>
|
|
3005
3005
|
);
|
|
3006
3006
|
}
|
|
3007
|
-
`}}}},rw={for:{type:"SpsFormMetaBase<any>",required:!0},description:"string",stronglySuggested:"boolean",help:"ReactNodeOrRenderFn",helpIcon:"SpsIcon",helpIconColor:"string",errors:"ReactNodeOrRenderFn"};function vi({children:e,className:t,description:n,for:r,stronglySuggested:a,help:s,helpIcon:l=W.SpsIcon.QUESTION_CIRCLE,helpIconColor:c="blue200",errors:p,unsafelyReplaceClassName:m,"data-testid":f,...u}){const{t:h}=o.useContext(He),S=o.useRef(null),y=o.useRef(null),T=o.useRef(null),C=o.useRef(null),[E,N]=o.useState(
|
|
3007
|
+
`}}}},rw={for:{type:"SpsFormMetaBase<any>",required:!0},description:"string",stronglySuggested:"boolean",help:"ReactNodeOrRenderFn",helpIcon:"SpsIcon",helpIconColor:"string",errors:"ReactNodeOrRenderFn"};function vi({children:e,className:t,description:n,for:r,stronglySuggested:a,help:s,helpIcon:l=W.SpsIcon.QUESTION_CIRCLE,helpIconColor:c="blue200",errors:p,unsafelyReplaceClassName:m,"data-testid":f,...u}){const{t:h}=o.useContext(He),S=o.useRef(null),y=o.useRef(null),T=o.useRef(null),C=o.useRef(null),[E,N]=o.useState(Le.HIDDEN),[M,I]=o.useState(Le.HIDDEN),[k,V]=o.useState(Le.HIDDEN),[R,w]=o.useState(Le.HIDDEN),P={maxLength:"This field accepts a maximum number of characters.",alpha:"This field accepts only alphabetic values.",numeric:"This field accpets only numerical values (zero or greater).",positiveOrNegativeNumber:"This field accpets only numerical values.",nonNumeric:"This field accepts only non-numerical values."};function O(){V(Le.HIDDEN),N(Le.HIDDEN)}function $(){I(Le.HIDDEN),w(Le.HIDDEN)}function J(z){z.preventDefault(),$(),V(Qo(k))}function L(){return r&&(r instanceof Rn&&r.isVisibilyInvalid()||!(r instanceof Rn)&&!r.isValid())?[M,I]:r&&r instanceof Rn&&r.hasPreventativeErrors()?[R,w]:[Le.HIDDEN,()=>{}]}function Z(){$();const[z,Q]=L();Q(Qo(z))}function A(){$();const[,z]=L();z(Le.VISIBLE)}function ne(z){z.preventDefault(),$(),N(Qo(E))}o.useEffect(()=>{r&&(r.onFocus=A,r.onBlur=$)},[r]);const Y=G(m||"sps-form-group__label-container",t),[U,ae]=r instanceof Rn?[r,void 0]:[void 0,r];function H(z,Q){return{dateFormat:`Please enter a date in the format ${Q}.`,dateRangeOrder:"End date cannot be before start date.",dateValidity:"Please enter a valid date.",max:`Please enter a value no greater than ${Q}.`,maxLength:`Please enter no more than ${Q} characters.`,min:`Please enter a value no less than ${Q}.`,minLength:`Please enter at least ${Q} characters.`,required:"This field is required."}[z]}function q(){var z;if(U){for(const Q of["dateFormat","dateRangeOrder","dateValidity","required","minLength"])if(U.hasError(Q))return h(`design-system:label.errors.${Q}`,{context:U.errors?U.errors[Q]:"",defaultValue:`${H(Q,U.errors?U.errors[Q]:"")}`});if(U.hasError("dateConstraint")){const Q=(z=U.errors)==null?void 0:z.dateConstraint,ee=Q.minExceeded?"min":"max";return h(`design-system:label.errors.dateConstraint.${ee}`,{context:Q,defaultValue:ee==="min"?`Please enter a date on or after ${typeof Q=="object"?Q.minExceeded:Q}`:`Please enter a date on or prior to ${typeof Q=="object"?Q.maxExceeded:Q}`})}}return null}function re(){if(U){for(const z of zt)if(U.hasPreventativeError(z))return h(`design-system:label.preventativeErrors.${z}`,{defaultValue:`${P[z]}`})}return null}const[oe,j]=It(e,[{type:Vt}]);o.useEffect(()=>{U!=null&&U.hasPreventativeErrors()&&w(Le.VISIBLE)},[U==null?void 0:U.hasPreventativeErrors()]);const B=o.useRef(null);return o.useEffect(()=>{function z(Q){var ee;(ee=B.current)!=null&&ee.contains(Q.target)||O()}return document.addEventListener("click",z),()=>{document.removeEventListener("click",z)}},[]),o.createElement(at,{ref:B,formMeta:U,formControl:ae},o.createElement("div",{className:Y},o.createElement("button",{className:G("sps-icon-button-wrapper","suggested-icon",!a&&"d-none"),tabIndex:0,onClick:J,type:"button","aria-label":`${j} Strongly Suggested Help`,hidden:!a},o.createElement("i",{ref:y,"data-testid":`${f}__suggested-icon`,className:G("sps-icon","sps-icon-exclamation-triangle","orange200","sps-form-group__label-suggested-icon",!a&&"d-none")})),o.createElement("i",{ref:S,"data-testid":`${f}__error-icon`,className:G("sps-icon","sps-icon-exclamation-circle","sps-form-group__label--error-icon"),onClick:Z,"aria-label":`${j} Error Help`}),o.createElement("label",{htmlFor:r&&"id"in r?r.id:void 0,className:"sps-form-group__label","data-testid":f,...u},o.createElement("span",{ref:C,className:"sps-form-group__label-content"},j)),o.createElement("button",{className:G("sps-icon-button-wrapper",!s&&"d-none"),tabIndex:0,onClick:ne,type:"button","aria-label":`${j} Help`,hidden:!s},o.createElement("i",{ref:T,"data-testid":`${f}__help-icon`,className:G("sps-icon",`sps-icon-${l}`,c,!s&&"d-none"),onClick:ne})),oe),o.createElement(Lt,{kind:W.TooltipKind.DEFAULT,for:T,showOn:W.TooltipShowTrigger.MANUAL,isShown:E,altPosition:W.Position.TOP_MIDDLE},vt(s)),o.createElement(Lt,{kind:W.TooltipKind.ERROR,for:S,showOn:W.TooltipShowTrigger.MANUAL,isShown:M,altPosition:W.Position.LEFT_MIDDLE},vt(p)||q()),(U==null?void 0:U.hasPreventativeErrors())&&o.createElement(Lt,{kind:W.TooltipKind.WARNING,for:C,showOn:W.TooltipShowTrigger.MANUAL,isShown:R,altPosition:W.Position.LEFT_MIDDLE},vt(p)||re()),o.createElement(Lt,{kind:W.TooltipKind.DEFAULT,for:y,position:W.Position.TOP_LEFT,altPosition:W.Position.TOP_LEFT,showOn:W.TooltipShowTrigger.MANUAL,isShown:k},h("design-system:label.stronglySuggested")),n&&o.createElement("div",{className:"sps-form-control__description","data-testid":`${f}__description`},n))}Object.assign(vi,{props:rw,displayName:"SpsLabel"});const yu={general:{label:"General Usage",description:()=>o.createElement("p",null,"In almost all cases, input fields should be paired with a label describing the value to be entered into the field. Certain labels can be accompanied by icons to provide additional information or context about that particular field.")},basic:{label:"Basic Label",examples:{basic:{react:v.code`
|
|
3008
3008
|
import {
|
|
3009
3009
|
SpsLabel,
|
|
3010
3010
|
SpsTextInput,
|
|
@@ -5387,7 +5387,7 @@ var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
5387
5387
|
</>
|
|
5388
5388
|
);
|
|
5389
5389
|
}
|
|
5390
|
-
`}}}},bw={captionKey:"string",clearSearchOnBlur:"boolean",clearSearchOnEnter:"boolean",debounce:"number",disabled:"boolean",disableSelected:"boolean",comparisonKey:"string",formMeta:"SpsFormFieldMeta<any[]>",hideSelected:"boolean",icon:"SpsIcon",onChange:"ChangeEventHandler",onSearchChange:"(searchText: string) => void",options:"Eventually<any[]> | (filter?: string) => Eventually<any[]>",placeholder:"string",tallOptionList:"boolean",textKey:"string",value:"any",zeroState:"string",loading:"boolean",filterByTextAndCaptionKey:"boolean",maxHeightOptionListPx:"number",maxHeightOptionListRem:"number",disableOptionsMemoization:"boolean"};function Ci({action:e,captionKey:t,className:n,clearSearchOnBlur:r,clearSearchOnEnter:a,debounce:s,disabled:l,disableSelected:c=!1,comparisonKey:p,formControl:m,formMeta:f,hideSelected:u,id:h,onChange:S,onSearchChange:y,options:T,placeholder:C,tallOptionList:E,textKey:N,unsafelyReplaceClassName:M,value:I,zeroState:k="There are no matching options.",loading:V,filterByTextAndCaptionKey:R,icon:w,maxHeightOptionListPx:P,maxHeightOptionListRem:O,disableOptionsMemoization:$,"data-testid":J,...L}){const Z=I??[],A=f||m,{wrapperId:ne,controlId:Y}=bt(h,A),[U,ae]=qt({keyDown:null,opensUpward:!1,searchText:"",activeTagIndex:null,optionIds:""});o.useEffect(()=>{y&&y(U.searchText)},[U.searchText]);const H=o.useRef(null),q=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),j=o.useRef(null);function B(){r&&ae({searchText:""})}const{showPopup:z,doShowPopup:Q,doHidePopup:ee}=dr(H,oe,B);function de(){ae({activeTagIndex:null}),Q()}function ie(){setTimeout(()=>{var ve;(ve=re.current)==null||ve.focus()},0)}function le(ve){if(j.current&&j.current.children.length&&typeof ve=="number"){const
|
|
5390
|
+
`}}}},bw={captionKey:"string",clearSearchOnBlur:"boolean",clearSearchOnEnter:"boolean",debounce:"number",disabled:"boolean",disableSelected:"boolean",comparisonKey:"string",formMeta:"SpsFormFieldMeta<any[]>",hideSelected:"boolean",icon:"SpsIcon",onChange:"ChangeEventHandler",onSearchChange:"(searchText: string) => void",options:"Eventually<any[]> | (filter?: string) => Eventually<any[]>",placeholder:"string",tallOptionList:"boolean",textKey:"string",value:"any",zeroState:"string",loading:"boolean",filterByTextAndCaptionKey:"boolean",maxHeightOptionListPx:"number",maxHeightOptionListRem:"number",disableOptionsMemoization:"boolean"};function Ci({action:e,captionKey:t,className:n,clearSearchOnBlur:r,clearSearchOnEnter:a,debounce:s,disabled:l,disableSelected:c=!1,comparisonKey:p,formControl:m,formMeta:f,hideSelected:u,id:h,onChange:S,onSearchChange:y,options:T,placeholder:C,tallOptionList:E,textKey:N,unsafelyReplaceClassName:M,value:I,zeroState:k="There are no matching options.",loading:V,filterByTextAndCaptionKey:R,icon:w,maxHeightOptionListPx:P,maxHeightOptionListRem:O,disableOptionsMemoization:$,"data-testid":J,...L}){const Z=I??[],A=f||m,{wrapperId:ne,controlId:Y}=bt(h,A),[U,ae]=qt({keyDown:null,opensUpward:!1,searchText:"",activeTagIndex:null,optionIds:""});o.useEffect(()=>{y&&y(U.searchText)},[U.searchText]);const H=o.useRef(null),q=o.useRef(null),re=o.useRef(null),oe=o.useRef(null),j=o.useRef(null);function B(){r&&ae({searchText:""})}const{showPopup:z,doShowPopup:Q,doHidePopup:ee}=dr(H,oe,B);function de(){ae({activeTagIndex:null}),Q()}function ie(){setTimeout(()=>{var ve;(ve=re.current)==null||ve.focus()},0)}function le(ve){if(j.current&&j.current.children.length&&typeof ve=="number"){const Oe=j.current.children[ve],Qe=Oe==null?void 0:Oe.querySelector(".sps-clickable-tag__icon");Qe&&Qe.focus()}}function se(ve){ae({searchText:""}),A&&(A.setValue(ve),A.markAsDirty()),S&&S(new gn({value:ve}))}function ke(ve){Z.indexOf(ve)===-1&&se([...Z,ve]),ie()}function Ie(ve){const Oe=Z.filter((Qe,we)=>we!==ve);se(Oe)}function it(ve){ae({searchText:ve.target.value})}function lt(ve){var Oe,Qe;if(!l){const we=!u&&!ve.target.selectionStart&&Z&&Z.length;switch(ve.key){case"Backspace":if(U.activeTagIndex===Z.length-1){Ie(U.activeTagIndex),ie();return}if(U.activeTagIndex!==null){Ie(U.activeTagIndex);return}if(we){se(Z.slice(0,Z.length-1));return}break;case"Delete":if(U.activeTagIndex!==null){Ie(U.activeTagIndex);return}break;case"Up":case"ArrowUp":case"Down":case"ArrowDown":ve.preventDefault();break;case"Left":case"ArrowLeft":if(we){U.activeTagIndex===null?(ae({activeTagIndex:Z.length-1}),ee(),le(Z.length-1)):U.activeTagIndex>0&&(ae({activeTagIndex:U.activeTagIndex-1}),ee(),le(U.activeTagIndex-1));return}break;case"Right":case"ArrowRight":if(U.activeTagIndex!==null){U.activeTagIndex===Z.length-1?(ae({activeTagIndex:null}),Q(),(Oe=re.current)==null||Oe.focus()):(ae({activeTagIndex:U.activeTagIndex+1}),le(U.activeTagIndex+1));return}break;case"Tab":ee();break;case"Escape":ee(),(Qe=re.current)==null||Qe.blur();break;case"Enter":a&&ae({searchText:""});break}ve.persist(),ae({keyDown:ve})}}function ut(ve){ae({opensUpward:ve})}function ct(ve){se([]),ve.stopPropagation()}function Pt(ve){ae({optionIds:new Array(ve).fill("").map((Oe,Qe)=>`${ne}-options-option-${Qe}`).join(",")})}const je=o.useCallback(()=>{ae({searchText:""}),ie()},[]),fe=G(M||"sps-multi-select",z&&"sps-multi-select--open",z&&"z-stratum-dropdown",U.opensUpward&&"sps-multi-select--opens-upward",l&&"sps-form-control--disabled",n),Fe=new Array(Z.length).fill(0).map((ve,Oe)=>`${ne}_tag-${Oe}`);return o.useEffect(()=>{let ve;return z&&(ve=()=>{ee()},window.addEventListener("resize",ve)),()=>{ve&&window.removeEventListener("resize",ve)}},[z]),Br({isOpen:z,rootRef:H}),o.createElement(at,{id:ne,className:fe,formControl:m,formMeta:f,ref:H,inputRef:re,focusInputOnClick:!0,onKeyDown:lt,role:"listbox","aria-multiselectable":!0,"aria-activedescendant":Fe[U.activeTagIndex||0],"aria-owns":U.optionIds},o.createElement("div",{className:"sps-text-input",ref:q},o.createElement("div",{className:G("sps-form-control",Z&&!l&&"sps-form-control--clearable")},w&&o.createElement("i",{className:G("sps-text-input__icon","sps-icon",`sps-icon-${w}`)}),o.createElement("div",{className:"sps-multi-select__tags-and-input",ref:j},u?null:Z.map((ve,Oe)=>o.createElement(Ar,{id:Fe[Oe],role:"option",disabled:l,"aria-selected":"true",key:Fe[Oe],onRemove:()=>Ie(Oe)},N?ve[N]:ve)),o.createElement("input",{type:"text",ref:re,"data-testid":`${J}__option-list-input`,value:U.searchText,className:"sps-text-input__input",placeholder:Z.length===0?C:void 0,id:Y,onClick:de,onChange:it,onFocus:de,onKeyDown:lt,disabled:l,role:"listbox","aria-multiselectable":"true","aria-owns":Fe.join(" "),...L})),Z.length!==0&&!l?o.createElement("i",{className:"sps-icon sps-icon-x-circle sps-form-control__clear-btn",onClick:ve=>ct(ve)}):null)),o.createElement(Rr,{id:`${ne}_options`,ref:oe,"data-testid":`${J}__option-list`,attachTo:q,captionKey:t,disabledOptions:c?Z:null,isOpen:z,comparisonKey:p,keepOpen:!0,keyDown:U.keyDown,options:T,specialAction:e,onOptionSelected:ke,onPositionFlip:ut,hideInlineSearch:!0,optionRole:"option",onOptionListChanged:Pt,filterByTextAndCaptionKey:R,searchDebounce:s,search:U.searchText,tall:E,textKey:N,zeroState:k,loading:V,maxHeightPx:P,maxHeightRem:O,disableOptionsMemoization:$,onSpecialActionSelect:je}))}Object.assign(Ci,{props:bw,displayName:"SpsMultiSelect"});const Hu={general:{label:"General Usage",description:({NavigateTo:e})=>o.createElement(o.Fragment,null,o.createElement("h5",null,"Use a Mulit-Select"),o.createElement("ul",null,o.createElement("li",null,"When a list of predetermined values can be provided and the input allows multiple entries.")),o.createElement("h5",null,"Do Not Use a Multi-Select:"),o.createElement("ul",null,o.createElement("li",{className:"mb-2"},"When there are only two possible options. Consider"," ",o.createElement(e,{to:"checkbox"},"Checkboxes")," or"," ",o.createElement(e,{to:"radio-buttons"},"Radio Buttons")," instead."),o.createElement("li",null,"When it is ideal to display all available options without requiring a click. Consider"," ",o.createElement(e,{to:"checkbox"},"Checkboxes")," or"," ",o.createElement(e,{to:"radio-buttons"},"Radio Buttons")," instead.")),o.createElement("h5",null,"Using Multi-Selects in a Form"),o.createElement("p",null,"Reference the ",o.createElement(e,{to:"form"},"Forms")," page for guidelines for placing"," ",o.createElement(e,{to:"text-inputs"},"Inputs")," in Form Layouts."))},basicMuliSelect:{label:"Basic Multi-Selects",description:"Basic Multi-Selects include a label and dropdown menu including a list of options. The user is allowed to make a single selection.",examples:{basic:{react:v.code`
|
|
5391
5391
|
import {
|
|
5392
5392
|
SpsLabel,
|
|
5393
5393
|
SpsMultiSelect,
|
|
@@ -7115,7 +7115,7 @@ var r=n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_
|
|
|
7115
7115
|
</SpsSummaryListRow>
|
|
7116
7116
|
);
|
|
7117
7117
|
}
|
|
7118
|
-
`}}}},Nw={tasks:"ReactSpsTask[]",taskQueuePosition:"Position",notificationText:"string",tooltipConfig:"{ position: Position, kind: TooltipKind }",onClose:"() => void",onOpen:"() => void",onClearCompleted:"() => void",suppressTooltips:"boolean"};function Mi({tasks:e=[],taskQueuePosition:t=W.Position.BOTTOM_RIGHT,notificationText:n,tooltipConfig:r={},onOpen:a,onClose:s,onClearCompleted:l,className:c,"data-testid":p,unsafelyReplaceClassName:m,suppressTooltips:f=!1,...u}){const{t:h}=o.useContext(He),S=!!e.length,[y,T]=o.useState(!1),[C,E]=o.useState(S),N=o.useRef(null),M=o.useRef(null),I=o.useCallback(()=>{T(!1),s&&s()},[]);o.useEffect(()=>{y?window.addEventListener("resize",I):window.removeEventListener("resize",I)},[y]);const k=cr("sps-task-queue-portal"),V=o.useContext(kt),[R]=y?An(M,N,t,{altPosition:t,...V}):[{},!1],w=r.position||W.Position.BOTTOM_RIGHT,P=r.kind||W.TooltipKind.DEFAULT,O=e.filter(H=>H.unread).length,$=e.filter(H=>H.status===W.SpsTaskStatus.IN_PROGRESS).length,J=e.some(H=>H.status===W.SpsTaskStatus.COMPLETED||H.status===W.SpsTaskStatus.ERRORED),L=o.useRef(s);L.current=s;const Z=o.useRef(null),A=()=>{S&&!y?(T(!0),a&&a()):y&&(T(!1),s&&s()),Z.current&&(Z.current.scrollTop=0)},ne=H=>H.status===W.SpsTaskStatus.IN_PROGRESS?W.SpsTaskStatusIcons[H.status]:`sps-icon sps-icon-${W.SpsTaskStatusIcons[H.status]}`;o.useEffect(()=>{y&&!S&&(T(!1),L.current&&L.current())},[y,S]);const Y=o.useRef();o.useEffect(()=>{O>0?(E(!0),Y.current&&window.clearTimeout(Y.current),Y.current=window.setTimeout(()=>{Y.current=void 0,E(!1)},W.TASK_QUEUE_NOTIFICATION_DURATION_MS)):(Y.current&&(window.clearTimeout(Y.current),Y.current=void 0),E(!1))},[O]),o.useEffect(()=>{var q;const H=()=>{T(re=>(re&&L.current&&L.current(),!1))};return(q=document.getElementById("root"))==null||q.addEventListener("click",H),()=>{var re;(re=document.getElementById("root"))==null||re.removeEventListener("click",H)}},[]),Br({isOpen:y,rootRef:N}),o.useEffect(()=>()=>{Y.current&&window.clearTimeout(Y.current)},[]);const U=G(m||"sps-task-queue",y&&"sps-task-queue--open",y&&"z-stratum-dropdown",!S&&"sps-task-queue--no-tasks",c);function ae(H){return(H.actions||[]).map(q=>{if(o.isValidElement(q)){const re=q;if(re.type!==Ue||re.props.kind!==W.ButtonKind.ICON)throw new Error("Task queue task action must be a config object or an SpsButton of kind ICON");return re}else{const re=q;return o.createElement("div",{key:re.icon,className:"sps-button sps-button--icon"},o.createElement("button",{type:"button",title:re.label,disabled:re.disabled,onClick:()=>{re.onClick&&re.onClick(H)}},re.caption,re.icon&&o.createElement("i",{className:`sps-icon sps-icon-${re.icon}`,"aria-hidden":"true"})))}})}return o.createElement("div",{className:U,onClick:H=>{H.nativeEvent.stopImmediatePropagation()},"data-testid":p,...u},o.createElement("button",{type:"button",ref:N,className:"sps-task-queue__button",title:"Task Queue",onClick:A},!!O&&o.createElement("span",{className:"sps-tag sps-tag--info"},O),$?o.createElement("span",{className:"sps-spinner sps-spinner--small"}):o.createElement("i",{className:"sps-icon sps-icon-list","aria-hidden":"true"})),o.createElement(Lt,{for:N,position:w,kind:P,showOn:S?W.TooltipShowTrigger.MANUAL:W.TooltipShowTrigger.MOUSEOVER,isShown:C&&!y?
|
|
7118
|
+
`}}}},Nw={tasks:"ReactSpsTask[]",taskQueuePosition:"Position",notificationText:"string",tooltipConfig:"{ position: Position, kind: TooltipKind }",onClose:"() => void",onOpen:"() => void",onClearCompleted:"() => void",suppressTooltips:"boolean"};function Mi({tasks:e=[],taskQueuePosition:t=W.Position.BOTTOM_RIGHT,notificationText:n,tooltipConfig:r={},onOpen:a,onClose:s,onClearCompleted:l,className:c,"data-testid":p,unsafelyReplaceClassName:m,suppressTooltips:f=!1,...u}){const{t:h}=o.useContext(He),S=!!e.length,[y,T]=o.useState(!1),[C,E]=o.useState(S),N=o.useRef(null),M=o.useRef(null),I=o.useCallback(()=>{T(!1),s&&s()},[]);o.useEffect(()=>{y?window.addEventListener("resize",I):window.removeEventListener("resize",I)},[y]);const k=cr("sps-task-queue-portal"),V=o.useContext(kt),[R]=y?An(M,N,t,{altPosition:t,...V}):[{},!1],w=r.position||W.Position.BOTTOM_RIGHT,P=r.kind||W.TooltipKind.DEFAULT,O=e.filter(H=>H.unread).length,$=e.filter(H=>H.status===W.SpsTaskStatus.IN_PROGRESS).length,J=e.some(H=>H.status===W.SpsTaskStatus.COMPLETED||H.status===W.SpsTaskStatus.ERRORED),L=o.useRef(s);L.current=s;const Z=o.useRef(null),A=()=>{S&&!y?(T(!0),a&&a()):y&&(T(!1),s&&s()),Z.current&&(Z.current.scrollTop=0)},ne=H=>H.status===W.SpsTaskStatus.IN_PROGRESS?W.SpsTaskStatusIcons[H.status]:`sps-icon sps-icon-${W.SpsTaskStatusIcons[H.status]}`;o.useEffect(()=>{y&&!S&&(T(!1),L.current&&L.current())},[y,S]);const Y=o.useRef();o.useEffect(()=>{O>0?(E(!0),Y.current&&window.clearTimeout(Y.current),Y.current=window.setTimeout(()=>{Y.current=void 0,E(!1)},W.TASK_QUEUE_NOTIFICATION_DURATION_MS)):(Y.current&&(window.clearTimeout(Y.current),Y.current=void 0),E(!1))},[O]),o.useEffect(()=>{var q;const H=()=>{T(re=>(re&&L.current&&L.current(),!1))};return(q=document.getElementById("root"))==null||q.addEventListener("click",H),()=>{var re;(re=document.getElementById("root"))==null||re.removeEventListener("click",H)}},[]),Br({isOpen:y,rootRef:N}),o.useEffect(()=>()=>{Y.current&&window.clearTimeout(Y.current)},[]);const U=G(m||"sps-task-queue",y&&"sps-task-queue--open",y&&"z-stratum-dropdown",!S&&"sps-task-queue--no-tasks",c);function ae(H){return(H.actions||[]).map(q=>{if(o.isValidElement(q)){const re=q;if(re.type!==Ue||re.props.kind!==W.ButtonKind.ICON)throw new Error("Task queue task action must be a config object or an SpsButton of kind ICON");return re}else{const re=q;return o.createElement("div",{key:re.icon,className:"sps-button sps-button--icon"},o.createElement("button",{type:"button",title:re.label,disabled:re.disabled,onClick:()=>{re.onClick&&re.onClick(H)}},re.caption,re.icon&&o.createElement("i",{className:`sps-icon sps-icon-${re.icon}`,"aria-hidden":"true"})))}})}return o.createElement("div",{className:U,onClick:H=>{H.nativeEvent.stopImmediatePropagation()},"data-testid":p,...u},o.createElement("button",{type:"button",ref:N,className:"sps-task-queue__button",title:"Task Queue",onClick:A},!!O&&o.createElement("span",{className:"sps-tag sps-tag--info"},O),$?o.createElement("span",{className:"sps-spinner sps-spinner--small"}):o.createElement("i",{className:"sps-icon sps-icon-list","aria-hidden":"true"})),o.createElement(Lt,{for:N,position:w,kind:P,showOn:S?W.TooltipShowTrigger.MANUAL:W.TooltipShowTrigger.MOUSEOVER,isShown:C&&!y?Le.VISIBLE:Le.HIDDEN,hideDelay:Number(S)&&W.TASK_QUEUE_NOTIFICATION_DURATION_MS},!f&&C&&(n||h("design-system:taskQueue.newTask",{defaultValue:"You have a new task in your queue."})),!f&&!C&&!S&&h("design-system:taskQueue.noTasks",{defaultValue:"There are currently no tasks in your queue."})),k(o.createElement("div",{ref:M,className:G("sps-task-queue__task-list",y&&"sps-task-queue__task-list--open","z-stratum-dropdown"),style:R},o.createElement("div",{ref:Z,className:"sps-task-queue__task-list-tasks"},e.map((H,q)=>o.createElement("div",{key:q,className:G("sps-task-queue__task",H.unread&&"sps-task-queue__task--unread")},o.createElement("i",{className:ne(H)}),o.createElement("div",{className:"sps-task-queue__task-description"},o.createElement("div",{className:"sps-task-queue__task-heading"},H.heading),H.subheading&&o.createElement("div",{className:"sps-task-queue__task-subheading",title:H.subheading},H.subheading)),H.actions&&!!H.actions.length&&o.createElement("div",{className:"sps-task-queue__task-actions"},ae(H))))),J&&l&&o.createElement("div",{className:"sps-task-queue__footer"},o.createElement("div",{className:"sps-button sps-button--link"},o.createElement("button",{type:"button",onClick:l},h("design-system:taskQueue.clearCompleted",{defaultValue:"Clear Completed"})))))))}Object.assign(Mi,{props:Nw,displayName:"SpsTaskQueue"});const Ju={inProgress:{label:"Task Queue in progress",description:"<p>Info about Task Queue</p>",examples:{inProgress:{react:v.code`
|
|
7119
7119
|
import { SpsTaskQueue } from "@spscommerce/ds-react";
|
|
7120
7120
|
import { SpsTaskStatus, SpsIcon } from "@spscommerce/ds-shared";
|
|
7121
7121
|
|
|
@@ -11441,4 +11441,4 @@ ${t.join("").replace("]","\\]").replace(" ","\\s")}]+`);return e.split(n).filter
|
|
|
11441
11441
|
</SpsCard>
|
|
11442
11442
|
</div>
|
|
11443
11443
|
</div>
|
|
11444
|
-
`}}}};_.AsTypingErrorKeys=sr,_.ContentOrderExample=wf,_.DEFAULT_DATETIME_PRESETS=au,_.DEFAULT_PRESETS=pi,_.DragDropContext=kp,_.Draggable=Vp,_.Droppable=oi,_.FauxChangeEvent=gn,_.I18nContext=He,_.MANIFEST=Ww,_.ModalAction=Cf,_.OnBlurErrorKeys=Et,_.OnSubmitErrorKeys=yo,_.PortalContext=kt,_.PreventativeErrorKeys=zt,_.Provide=cc,_.SimpleDateUtils=te,_.SpsAddRemoveFormRowExamples=ME,_.SpsAdvancedSearch=mf,_.SpsAdvancedSearchExamples=vD,_.SpsApp=vS,_.SpsAutocomplete=Jt,_.SpsAutocompleteExamples=mc,_.SpsButton=Ue,_.SpsButtonExamples=pw,_.SpsButtonGroup=Ru,_.SpsCard=si,_.SpsCardTabbedPane=ai,_.SpsCardV2=pf,_.SpsCardV2Footer=pl,_.SpsCardV2Header=ul,_.SpsCardV2Title=uf,_.SpsCheckbox=Fn,_.SpsCheckboxDropdown=Si,_.SpsCheckboxExamples=fc,_.SpsClickableTag=Ar,_.SpsClickableTagExamples=hc,_.SpsColumnChooser=li,_.SpsColumnChooserColumn=zo,_.SpsColumnChooserExamples=Gp,_.SpsConditionalField=Hi,_.SpsConditionalFieldExamples=mm,_.SpsContentRow=ci,_.SpsContentRowCol=Gn,_.SpsContentRowExamples=Yp,_.SpsContentRowExpansion=jo,_.SpsContextBar=yD,_.SpsCurrencyInput=ff,_.SpsCurrencyInputExamples=CD,_.SpsDateRangePicker=ui,_.SpsDateRangePickerExamples=tu,_.SpsDateTime=hi,_.SpsDateTimeRangePicker=mi,_.SpsDateTimeRangePickerExamples=su,_.SpsDatepicker=di,_.SpsDatepickerExamples=Xp,_.SpsDatetimeExamples=lu,_.SpsDd=uu,_.SpsDescriptionList=Zo,_.SpsDescriptionListDefinition=Xo,_.SpsDescriptionListExamples=Su,_.SpsDescriptionListTerm=ea,_.SpsDl=du,_.SpsDropdown=zn,_.SpsDropdownExamples=gu,_.SpsDt=hu,_.SpsFeedbackBlock=Ai,_.SpsFeedbackBlockExamples=Pw,_.SpsFieldset=gi,_.SpsFieldsetExamples=bu,_.SpsFilterPanel=Fi,_.SpsFilterPanelCap=$i,_.SpsFilterPanelExamples=um,_.SpsFilterPanelFilterBox=Ki,_.SpsFilterPanelSection=Vi,_.SpsFilterTile=Rf,_.SpsFilterTileList=Bf,_.SpsFilterTileListExamples=fN,_.SpsFocusedTask=fl,_.SpsFocusedTaskActions=ml,_.SpsFocusedTaskExamples=kD,_.SpsForm=ro,_.SpsFormArrayMeta=ec,_.SpsFormComponentWrapper=at,_.SpsFormExamples=Wp,_.SpsFormFieldMeta=Or,_.SpsFormGroupMeta=Ql,_.SpsFormMetaBase=Rn,_.SpsFormSetMeta=Bn,_.SpsGrowler=hl,_.SpsGrowlerExamples=MD,_.SpsI=Vt,_.SpsIconButtonPanel=Bu,_.SpsIncrementor=bi,_.SpsIncrementorExamples=vu,_.SpsInputGroup=br,_.SpsInsightTile=hf,_.SpsInsights=_D,_.SpsKeyValueList=Sf,_.SpsKeyValueListItem=gf,_.SpsKeyValueTag=bf,_.SpsKeyValueTagExamples=BD,_.SpsLabel=vi,_.SpsLabelExamples=yu,_.SpsListActionBar=yi,_.SpsListActionBarExamples=Fu,_.SpsListToolbar=Tf,_.SpsListToolbarExamples=GD,_.SpsListToolbarSearch=gl,_.SpsListToolbarSearchInfo=bl,_.SpsListToolbarSortBy=Ef,_.SpsMicroBlock=Ti,_.SpsMicroBlockExamples=Vu,_.SpsMicroZeroState=Vf,_.SpsModal=Ei,_.SpsModalExamples=Ku,_.SpsModalFooter=na,_.SpsMultiSelect=Ci,_.SpsMultiSelectExamples=Hu,_.SpsMultiValueTextInput=Wi,_.SpsMultiValueTextInputExamples=hm,_.SpsPageSelector=ra,_.SpsPageSubtitle=Nf,_.SpsPageTitle=Df,_.SpsPageTitleExamples=qD,_.SpsPagination=Di,_.SpsPaginationExamples=Wu,_.SpsProductBar=kf,_.SpsProductBarExamples=XD,_.SpsProductBarTab=vl,_.SpsProgressBar=If,_.SpsProgressBarExamples=eN,_.SpsProgressRing=Pi,_.SpsRadioButton=Ni,_.SpsRadioButtonExamples=Gu,_.SpsScrollableContainer=xf,_.SpsSearchResultsBar=yf,_.SpsSearchResultsBarExamples=VD,_.SpsSearchResultsBarV2=Sl,_.SpsSelect=Yn,_.SpsSelectExamples=nu,_.SpsSideNav=Uu,_.SpsSideNavExamples=zu,_.SpsSlackLink=Mf,_.SpsSlackLinkExamples=rN,_.SpsSlideInPanel=wi,_.SpsSlideInPanelExamples=$u,_.SpsSortingHeader=_f,_.SpsSortingHeaderCell=yl,_.SpsSortingHeaderExamples=sN,_.SpsSpinner=Ha,_.SpsSplitButton=ki,_.SpsSplitButtonExamples=ju,_.SpsSteppedProgressBar=Lf,_.SpsSteppedProgressBarExamples=lN,_.SpsSummaryListColumn=xi,_.SpsSummaryListExamples=qu,_.SpsSummaryListExpansion=ao,_.SpsSummaryListRow=Ii,_.SpsTab=af,_.SpsTabPanel=sf,_.SpsTable=jn,_.SpsTableBody=Cn,_.SpsTableCell=pe,_.SpsTableExamples=Au,_.SpsTableHead=wn,_.SpsTableHeader=ot,_.SpsTableRow=Ge,_.SpsTabsV2=dl,_.SpsTag=Ft,_.SpsTagExamples=fw,_.SpsTaskQueue=Mi,_.SpsTaskQueueExamples=Ju,_.SpsTbody=Lu,_.SpsTd=Pu,_.SpsTextInput=aa,_.SpsTextInputExamples=Zu,_.SpsTextarea=_i,_.SpsTextareaExamples=Xu,_.SpsTh=Nu,_.SpsThead=Iu,_.SpsTile=Of,_.SpsTileList=Pf,_.SpsTileListExamples=pN,_.SpsTimeInput=Gi,_.SpsTimeInputExamples=gm,_.SpsToggle=Li,_.SpsToggleExamples=em,_.SpsTooltip=Lt,_.SpsTooltipExamples=tm,_.SpsTooltipTitle=Oi,_.SpsTr=Mu,_.SpsValidators=Eo,_.SpsVerticalRule=Tl,_.SpsVr=Ff,_.SpsWf=rm,_.SpsWfDoc=sm,_.SpsWfDs=lm,_.SpsWfStep=dm,_.SpsWizardExamples=om,_.SpsWizardSidebar=Ri,_.SpsWizardSubstep=Bi,_.SpsWorkflow=sa,_.SpsWorkflowDocument=ia,_.SpsWorkflowDocumentStatus=la,_.SpsWorkflowExamples=pm,_.SpsWorkflowStep=ca,_.SpsZeroState=$f,_.SpsZeroStateExamples=gN,_.TooltipVisibility=
|
|
11444
|
+
`}}}};_.AsTypingErrorKeys=sr,_.ContentOrderExample=wf,_.DEFAULT_DATETIME_PRESETS=au,_.DEFAULT_PRESETS=pi,_.DragDropContext=kp,_.Draggable=Vp,_.Droppable=oi,_.FauxChangeEvent=gn,_.I18nContext=He,_.MANIFEST=Ww,_.ModalAction=Cf,_.OnBlurErrorKeys=Et,_.OnSubmitErrorKeys=yo,_.PortalContext=kt,_.PreventativeErrorKeys=zt,_.Provide=cc,_.SimpleDateUtils=te,_.SpsAddRemoveFormRowExamples=ME,_.SpsAdvancedSearch=mf,_.SpsAdvancedSearchExamples=vD,_.SpsApp=vS,_.SpsAutocomplete=Jt,_.SpsAutocompleteExamples=mc,_.SpsButton=Ue,_.SpsButtonExamples=pw,_.SpsButtonGroup=Ru,_.SpsCard=si,_.SpsCardTabbedPane=ai,_.SpsCardV2=pf,_.SpsCardV2Footer=pl,_.SpsCardV2Header=ul,_.SpsCardV2Title=uf,_.SpsCheckbox=Fn,_.SpsCheckboxDropdown=Si,_.SpsCheckboxExamples=fc,_.SpsClickableTag=Ar,_.SpsClickableTagExamples=hc,_.SpsColumnChooser=li,_.SpsColumnChooserColumn=zo,_.SpsColumnChooserExamples=Gp,_.SpsConditionalField=Hi,_.SpsConditionalFieldExamples=mm,_.SpsContentRow=ci,_.SpsContentRowCol=Gn,_.SpsContentRowExamples=Yp,_.SpsContentRowExpansion=jo,_.SpsContextBar=yD,_.SpsCurrencyInput=ff,_.SpsCurrencyInputExamples=CD,_.SpsDateRangePicker=ui,_.SpsDateRangePickerExamples=tu,_.SpsDateTime=hi,_.SpsDateTimeRangePicker=mi,_.SpsDateTimeRangePickerExamples=su,_.SpsDatepicker=di,_.SpsDatepickerExamples=Xp,_.SpsDatetimeExamples=lu,_.SpsDd=uu,_.SpsDescriptionList=Zo,_.SpsDescriptionListDefinition=Xo,_.SpsDescriptionListExamples=Su,_.SpsDescriptionListTerm=ea,_.SpsDl=du,_.SpsDropdown=zn,_.SpsDropdownExamples=gu,_.SpsDt=hu,_.SpsFeedbackBlock=Ai,_.SpsFeedbackBlockExamples=Pw,_.SpsFieldset=gi,_.SpsFieldsetExamples=bu,_.SpsFilterPanel=Fi,_.SpsFilterPanelCap=$i,_.SpsFilterPanelExamples=um,_.SpsFilterPanelFilterBox=Ki,_.SpsFilterPanelSection=Vi,_.SpsFilterTile=Rf,_.SpsFilterTileList=Bf,_.SpsFilterTileListExamples=fN,_.SpsFocusedTask=fl,_.SpsFocusedTaskActions=ml,_.SpsFocusedTaskExamples=kD,_.SpsForm=ro,_.SpsFormArrayMeta=ec,_.SpsFormComponentWrapper=at,_.SpsFormExamples=Wp,_.SpsFormFieldMeta=Or,_.SpsFormGroupMeta=Ql,_.SpsFormMetaBase=Rn,_.SpsFormSetMeta=Bn,_.SpsGrowler=hl,_.SpsGrowlerExamples=MD,_.SpsI=Vt,_.SpsIconButtonPanel=Bu,_.SpsIncrementor=bi,_.SpsIncrementorExamples=vu,_.SpsInputGroup=br,_.SpsInsightTile=hf,_.SpsInsights=_D,_.SpsKeyValueList=Sf,_.SpsKeyValueListItem=gf,_.SpsKeyValueTag=bf,_.SpsKeyValueTagExamples=BD,_.SpsLabel=vi,_.SpsLabelExamples=yu,_.SpsListActionBar=yi,_.SpsListActionBarExamples=Fu,_.SpsListToolbar=Tf,_.SpsListToolbarExamples=GD,_.SpsListToolbarSearch=gl,_.SpsListToolbarSearchInfo=bl,_.SpsListToolbarSortBy=Ef,_.SpsMicroBlock=Ti,_.SpsMicroBlockExamples=Vu,_.SpsMicroZeroState=Vf,_.SpsModal=Ei,_.SpsModalExamples=Ku,_.SpsModalFooter=na,_.SpsMultiSelect=Ci,_.SpsMultiSelectExamples=Hu,_.SpsMultiValueTextInput=Wi,_.SpsMultiValueTextInputExamples=hm,_.SpsPageSelector=ra,_.SpsPageSubtitle=Nf,_.SpsPageTitle=Df,_.SpsPageTitleExamples=qD,_.SpsPagination=Di,_.SpsPaginationExamples=Wu,_.SpsProductBar=kf,_.SpsProductBarExamples=XD,_.SpsProductBarTab=vl,_.SpsProgressBar=If,_.SpsProgressBarExamples=eN,_.SpsProgressRing=Pi,_.SpsRadioButton=Ni,_.SpsRadioButtonExamples=Gu,_.SpsScrollableContainer=xf,_.SpsSearchResultsBar=yf,_.SpsSearchResultsBarExamples=VD,_.SpsSearchResultsBarV2=Sl,_.SpsSelect=Yn,_.SpsSelectExamples=nu,_.SpsSideNav=Uu,_.SpsSideNavExamples=zu,_.SpsSlackLink=Mf,_.SpsSlackLinkExamples=rN,_.SpsSlideInPanel=wi,_.SpsSlideInPanelExamples=$u,_.SpsSortingHeader=_f,_.SpsSortingHeaderCell=yl,_.SpsSortingHeaderExamples=sN,_.SpsSpinner=Ha,_.SpsSplitButton=ki,_.SpsSplitButtonExamples=ju,_.SpsSteppedProgressBar=Lf,_.SpsSteppedProgressBarExamples=lN,_.SpsSummaryListColumn=xi,_.SpsSummaryListExamples=qu,_.SpsSummaryListExpansion=ao,_.SpsSummaryListRow=Ii,_.SpsTab=af,_.SpsTabPanel=sf,_.SpsTable=jn,_.SpsTableBody=Cn,_.SpsTableCell=pe,_.SpsTableExamples=Au,_.SpsTableHead=wn,_.SpsTableHeader=ot,_.SpsTableRow=Ge,_.SpsTabsV2=dl,_.SpsTag=Ft,_.SpsTagExamples=fw,_.SpsTaskQueue=Mi,_.SpsTaskQueueExamples=Ju,_.SpsTbody=Lu,_.SpsTd=Pu,_.SpsTextInput=aa,_.SpsTextInputExamples=Zu,_.SpsTextarea=_i,_.SpsTextareaExamples=Xu,_.SpsTh=Nu,_.SpsThead=Iu,_.SpsTile=Of,_.SpsTileList=Pf,_.SpsTileListExamples=pN,_.SpsTimeInput=Gi,_.SpsTimeInputExamples=gm,_.SpsToggle=Li,_.SpsToggleExamples=em,_.SpsTooltip=Lt,_.SpsTooltipExamples=tm,_.SpsTooltipTitle=Oi,_.SpsTr=Mu,_.SpsValidators=Eo,_.SpsVerticalRule=Tl,_.SpsVr=Ff,_.SpsWf=rm,_.SpsWfDoc=sm,_.SpsWfDs=lm,_.SpsWfStep=dm,_.SpsWizardExamples=om,_.SpsWizardSidebar=Ri,_.SpsWizardSubstep=Bi,_.SpsWorkflow=sa,_.SpsWorkflowDocument=ia,_.SpsWorkflowDocumentStatus=la,_.SpsWorkflowExamples=pm,_.SpsWorkflowStep=ca,_.SpsZeroState=$f,_.SpsZeroStateExamples=gN,_.TooltipVisibility=Le,_.ValidationMode=jt,_.addOnChangeErrorKey=jl,_.addOnSubmitErrorKey=ql,_.bindProps=bS,_.contentOf=vt,_.date=Lr,_.dateConstraint=Xl,_.dateRange=Zl,_.findParentBranches=oa,_.flipPosition=Wa,_.formArray=DE,_.formControl=NE,_.formGroup=kE,_.getMember=ii,_.getPosition=An,_.letterAndNumberKeys=Ga,_.resetServerContext=CT,_.selectChildren=It,_.setDateFormat=Jl,_.toggleTooltipState=Qo,_.useCheckDeprecatedProps=dc,_.useColumnCellResizer=Cu,_.useColumnHeaderResizer=wu,_.useCustomValidator=aS,_.useDidUpdateEffect=Ya,_.useDocumentEventListener=Ua,_.useElementId=Sn,_.useForm=IE,_.useGrowlers=xD,_.useInputPopup=dr,_.useKeyboardSensor=Tp,_.useModals=YD,_.useMouseSensor=yp,_.usePatchReducer=qt,_.usePortal=cr,_.useServerSideValidation=xE,_.useSpsAction=UD,_.useSpsForm=tc,_.useTouchSensor=Ep,_.validate=wo,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|