@byuckchon-frontend/utils 1.4.3 → 1.5.0
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/dist/index.mjs +2456 -2007
- package/dist/index.umd.js +10 -9
- package/dist/src/DateUtils/index.d.ts +4 -0
- package/dist/src/validate/index.d.ts +1 -4
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
(function(ce,nt){typeof exports=="object"&&typeof module<"u"?nt(exports):typeof define=="function"&&define.amd?define(["exports"],nt):(ce=typeof globalThis<"u"?globalThis:ce||self,nt(ce.index={}))})(this,(function(ce){"use strict";const nt=()=>({formatPhoneNumber:i=>{const a=(i??"").replace(/\D/g,"");if(/^1[568]\d{7}$/.test(a))return a.replace(/^(\d{4})(\d{4})$/,"$1-$2");if(a.startsWith("02")){if(a.length===9)return a.replace(/^(\d{2})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===10)return a.replace(/^(\d{2})(\d{4})(\d{4})$/,"$1-$2-$3")}if(/^0\d+/.test(a)){if(a.length===10)return a.replace(/^(\d{3})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===11)return a.replace(/^(\d{3})(\d{4})(\d{4})$/,"$1-$2-$3")}return i},formatBizNumber:i=>{const a=(i??"").replace(/\D/g,"");return a.length===10?a.replace(/^(\d{3})(\d{2})(\d{5})$/,"$1-$2-$3"):a.length===13?a.replace(/^(\d{6})(\d{7})$/,"$1-$2"):String(i??"")},formatDate:i=>{if(!(i instanceof Date)||isNaN(i.getTime()))return"";const a=i.getHours(),l=i.getMinutes(),f=a<12?"오전":"오후",d=a%12===0?12:a%12;return`${f} ${d}시 ${l}분`},Masker:{maskName:i=>{const a=(i??"").trim(),l=[...a].length;if(l<=0)return"";if(l===1)return"*";if(l===2){const[b]=[...a];return`${b}*`}const f=[...a],d=f[0],p=f[l-1],w="*".repeat(l-2);return`${d}${w}${p}`},maskPhoneNumber:i=>{if(i.includes("-")){const p=i.split("-");if(p.length===3){const[w,b,E]=p;return`${w}-${"*".repeat(b.replace(/\D/g,"").length||4)}-${E}`}if(p.length===2){const[w,b]=p,E=b.replace(/\D/g,""),y=E.slice(-4),m=Math.max(1,E.length-y.length);return`${w}-${"*".repeat(m)}${y}`}return i}const a=i.replace(/\D/g,"");if(a.length<8)return i;const l=a.slice(0,3),f=a.slice(-4),d=Math.max(1,a.length-(l.length+f.length));return`${l}${"*".repeat(d)}${f}`}},commanizeData:i=>{const a=String(i??"").trim();if(!a)return"";const l=a.replace(/,/g,""),f=l.startsWith("-")?"-":"",d=l.replace(/^-/,""),[p,w]=d.split("."),b=p.replace(/\B(?=(\d{3})+(?!\d))/g,",");return f+b+(w!==void 0?`.${w}`:"")},decommanizeData:i=>i.replace(/,/g,"")}),So=/^[A-Za-z0-9]([A-Za-z0-9_.+-]*[A-Za-z0-9])?@[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?\.[A-Za-z]{2,}$/,Po=/^010(\d{4})(\d{4})$/,Mo=/^(070|02|031|032|033|034|035|036|037|038|039|041|042|043|051|052|053|054|055|061|062|063|064|070|071|072)[0-9]{3,4}[0-9]{4}$/,No=/([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))/,Co=/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,Lo=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+~`\-={}[\]:;"'<>,.?/\\]).{10,}$/,ko=/^d{2}([0]\d|[1][0-2])([0][1-9]|[1-2]\d|[3][0-1])[-]*[1-4]\d{6}$/,Io=/^(?:[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[1,2][0-9]|3[0,1]))-[1-8][0-9]{6}$/,Fo=/^https?:\/\/(?:[-\w.])+(?:\.[a-zA-Z]{2,})+(?::\d+)?(?:\/[^\s]*)?$/i,vo=/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|zip|rar)$/i;function Ho(t){return So.test(t)}function Uo(t){return Po.test(t)}function Bo(t){return Mo.test(t)}function Wo(t){return No.test(t)}function $o(t){return Co.test(t)}function qo(t){return Lo.test(t)}function Yo(t){return ko.test(t)}function zo(t){return Io.test(t)}function jo(t){const e=t.replace(/-/gi,"").split("").map(n=>parseInt(n,10));if(e.length===10){if(e.every(s=>s===0))return!1;const n=[1,3,7,1,3,7,1,3,5];let r=0;for(let s=0;s<9;s++)r+=n[s]*e[s];const o=(10-r%10)%10;return e[9]===o}return!1}function Go(t){return Fo.test(t)}function Xo(t,e=10){const n=typeof t=="string"?t:t.name;return!(!vo.test(n)||t instanceof File&&t.size/1048576>e)}const Vo={email:Ho,phone:Uo,homePhone:Bo,birth6:Wo,birth8:$o,password:qo,juminAfter2020:zo,juminBefore2020:Yo,corporateRegiNumber:jo,url:Go,file:Xo};function In(t,e){return function(){return t.apply(e,arguments)}}const{toString:Qo}=Object.prototype,{getPrototypeOf:At}=Object,{iterator:Rt,toStringTag:Fn}=Symbol,xt=(t=>e=>{const n=Qo.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),de=t=>(t=t.toLowerCase(),e=>xt(e)===t),Dt=t=>e=>typeof e===t,{isArray:qe}=Array,Ye=Dt("undefined");function rt(t){return t!==null&&!Ye(t)&&t.constructor!==null&&!Ye(t.constructor)&&re(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const vn=de("ArrayBuffer");function Ko(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&vn(t.buffer),e}const Jo=Dt("string"),re=Dt("function"),Hn=Dt("number"),ot=t=>t!==null&&typeof t=="object",Zo=t=>t===!0||t===!1,St=t=>{if(xt(t)!=="object")return!1;const e=At(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fn in t)&&!(Rt in t)},es=t=>{if(!ot(t)||rt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},ts=de("Date"),ns=de("File"),rs=t=>!!(t&&typeof t.uri<"u"),os=t=>t&&typeof t.getParts<"u",ss=de("Blob"),is=de("FileList"),as=t=>ot(t)&&re(t.pipe);function cs(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Un=cs(),Bn=typeof Un.FormData<"u"?Un.FormData:void 0,us=t=>{if(!t)return!1;if(Bn&&t instanceof Bn)return!0;const e=At(t);if(!e||e===Object.prototype||!re(t.append))return!1;const n=xt(t);return n==="formdata"||n==="object"&&re(t.toString)&&t.toString()==="[object FormData]"},ls=de("URLSearchParams"),[fs,ds,ms,hs]=["ReadableStream","Request","Response","Headers"].map(de),ps=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function st(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),qe(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(rt(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(r=0;r<i;r++)a=s[r],e.call(null,t[a],a,t)}}function Wn(t,e){if(rt(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Ce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$n=t=>!Ye(t)&&t!==Ce;function zt(...t){const{caseless:e,skipUndefined:n}=$n(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=e&&Wn(r,i)||i,l=jt(r,a)?r[a]:void 0;St(l)&&St(s)?r[a]=zt(l,s):St(s)?r[a]=zt({},s):qe(s)?r[a]=s.slice():(!n||!Ye(s))&&(r[a]=s)};for(let s=0,i=t.length;s<i;s++)t[s]&&st(t[s],o);return r}const gs=(t,e,n,{allOwnKeys:r}={})=>(st(e,(o,s)=>{n&&re(o)?Object.defineProperty(t,s,{__proto__:null,value:In(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),ws=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ys=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},bs=(t,e,n,r)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&At(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ts=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Es=t=>{if(!t)return null;if(qe(t))return t;let e=t.length;if(!Hn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_s=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&At(Uint8Array)),Os=(t,e)=>{const r=(t&&t[Rt]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},As=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Rs=de("HTMLFormElement"),xs=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),jt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ds=de("RegExp"),qn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};st(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},Ss=t=>{qn(t,(e,n)=>{if(re(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(re(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ps=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return qe(t)?r(t):r(String(t).split(e)),n},Ms=()=>{},Ns=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Cs(t){return!!(t&&re(t.append)&&t[Fn]==="FormData"&&t[Rt])}const Ls=t=>{const e=new Array(10),n=(r,o)=>{if(ot(r)){if(e.indexOf(r)>=0)return;if(rt(r))return r;if(!("toJSON"in r)){e[o]=r;const s=qe(r)?[]:{};return st(r,(i,a)=>{const l=n(i,o+1);!Ye(l)&&(s[a]=l)}),e[o]=void 0,s}}return r};return n(t,0)},ks=de("AsyncFunction"),Is=t=>t&&(ot(t)||re(t))&&re(t.then)&&re(t.catch),Yn=((t,e)=>t?setImmediate:e?((n,r)=>(Ce.addEventListener("message",({source:o,data:s})=>{o===Ce&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ce.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",re(Ce.postMessage)),Fs=typeof queueMicrotask<"u"?queueMicrotask.bind(Ce):typeof process<"u"&&process.nextTick||Yn,u={isArray:qe,isArrayBuffer:vn,isBuffer:rt,isFormData:us,isArrayBufferView:Ko,isString:Jo,isNumber:Hn,isBoolean:Zo,isObject:ot,isPlainObject:St,isEmptyObject:es,isReadableStream:fs,isRequest:ds,isResponse:ms,isHeaders:hs,isUndefined:Ye,isDate:ts,isFile:ns,isReactNativeBlob:rs,isReactNative:os,isBlob:ss,isRegExp:Ds,isFunction:re,isStream:as,isURLSearchParams:ls,isTypedArray:_s,isFileList:is,forEach:st,merge:zt,extend:gs,trim:ps,stripBOM:ws,inherits:ys,toFlatObject:bs,kindOf:xt,kindOfTest:de,endsWith:Ts,toArray:Es,forEachEntry:Os,matchAll:As,isHTMLForm:Rs,hasOwnProperty:jt,hasOwnProp:jt,reduceDescriptors:qn,freezeMethods:Ss,toObjectSet:Ps,toCamelCase:xs,noop:Ms,toFiniteNumber:Ns,findKey:Wn,global:Ce,isContextDefined:$n,isSpecCompliantForm:Cs,toJSONObject:Ls,isAsyncFn:ks,isThenable:Is,setImmediate:Yn,asap:Fs,isIterable:t=>t!=null&&re(t[Rt])},vs=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hs=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
2
|
-
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[zn]=this[zn]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=it(i);r[a]||(zs(o,i),r[a]=!0)}return u.isArray(e)?e.forEach(s):s(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(J.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),u.freezeMethods(J);const js="[REDACTED ****]";function Gs(t){if(u.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(u.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Xs(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||u.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof J&&(s=s.toJSON()),r.push(s);let i;if(u.isArray(s))i=[],s.forEach((a,l)=>{const f=o(a);u.isUndefined(f)||(i[l]=f)});else{if(!u.isPlainObject(s)&&Gs(s))return r.pop(),s;i=Object.create(null);for(const[a,l]of Object.entries(s)){const f=n.has(a.toLowerCase())?js:o(l);u.isUndefined(f)||(i[a]=f)}}return r.pop(),i};return o(t)}let T=class xo extends Error{static from(e,n,r,o,s,i){const a=new xo(e.message,n||e.code,r,o,s);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,n,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&u.hasOwnProp(e,"redact")?e.redact:void 0,r=u.isArray(n)&&n.length>0?Xs(e,n):u.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",T.ERR_BAD_OPTION="ERR_BAD_OPTION",T.ECONNABORTED="ECONNABORTED",T.ETIMEDOUT="ETIMEDOUT",T.ECONNREFUSED="ECONNREFUSED",T.ERR_NETWORK="ERR_NETWORK",T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",T.ERR_DEPRECATED="ERR_DEPRECATED",T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",T.ERR_BAD_REQUEST="ERR_BAD_REQUEST",T.ERR_CANCELED="ERR_CANCELED",T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",T.ERR_INVALID_URL="ERR_INVALID_URL",T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Vs=null;function Xt(t){return u.isPlainObject(t)||u.isArray(t)}function jn(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function Vt(t,e,n){return t?t.concat(e).map(function(o,s){return o=jn(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Qs(t){return u.isArray(t)&&!t.some(Xt)}const Ks=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function Mt(t,e,n){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!u.isUndefined(g[m])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,f=a&&u.isSpecCompliantForm(e);if(!u.isFunction(o))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(u.isDate(y))return y.toISOString();if(u.isBoolean(y))return y.toString();if(!f&&u.isBlob(y))throw new T("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(y)||u.isTypedArray(y)?f&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function p(y,m,g){let x=y;if(u.isReactNative(e)&&u.isReactNativeBlob(y))return e.append(Vt(g,m,s),d(y)),!1;if(y&&!g&&typeof y=="object"){if(u.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=JSON.stringify(y);else if(u.isArray(y)&&Qs(y)||(u.isFileList(y)||u.endsWith(m,"[]"))&&(x=u.toArray(y)))return m=jn(m),x.forEach(function(O,k){!(u.isUndefined(O)||O===null)&&e.append(i===!0?Vt([m],k,s):i===null?m:m+"[]",d(O))}),!1}return Xt(y)?!0:(e.append(Vt(g,m,s),d(y)),!1)}const w=[],b=Object.assign(Ks,{defaultVisitor:p,convertValue:d,isVisitable:Xt});function E(y,m,g=0){if(!u.isUndefined(y)){if(g>l)throw new T("Object is too deeply nested ("+g+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(w.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));w.push(y),u.forEach(y,function(R,O){(!(u.isUndefined(R)||R===null)&&o.call(e,R,u.isString(O)?O.trim():O,m,b))===!0&&E(R,m?m.concat(O):[O],g+1)}),w.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return E(t),e}function Gn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Qt(t,e){this._pairs=[],t&&Mt(t,this,e)}const Xn=Qt.prototype;Xn.append=function(e,n){this._pairs.push([e,n])},Xn.toString=function(e){const n=e?function(r){return e.call(this,r,Gn)}:Gn;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Js(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vn(t,e,n){if(!e)return t;const r=n&&n.encode||Js,o=u.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(e,o):i=u.isURLSearchParams(e)?e.toString():new Qt(e,o).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Qn{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jt=typeof window<"u"&&typeof document<"u",Zt=typeof navigator=="object"&&navigator||void 0,ei=Jt&&(!Zt||["ReactNative","NativeScript","NS"].indexOf(Zt.product)<0),ti=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ni=Jt&&window.location.href||"http://localhost",Q={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jt,hasStandardBrowserEnv:ei,hasStandardBrowserWebWorkerEnv:ti,navigator:Zt,origin:ni},Symbol.toStringTag,{value:"Module"})),...Zs};function ri(t,e){return Mt(t,new Q.classes.URLSearchParams,{visitor:function(n,r,o,s){return Q.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function oi(t){return u.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function si(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function Kn(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&u.isArray(o)?o.length:i,l?(u.hasOwnProp(o,i)?o[i]=u.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!a):((!o[i]||!u.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&u.isArray(o[i])&&(o[i]=si(o[i])),!a)}if(u.isFormData(t)&&u.isFunction(t.entries)){const n={};return u.forEachEntry(t,(r,o)=>{e(oi(r),o,n,0)}),n}return null}const ze=(t,e)=>t!=null&&u.hasOwnProp(t,e)?t[e]:void 0;function ii(t,e,n){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const at={transitional:Kt,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=u.isObject(e);if(s&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return o?JSON.stringify(Kn(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e)||u.isReadableStream(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){const l=ze(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ri(e,l).toString();if((a=u.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=ze(this,"env"),d=f&&f.FormData;return Mt(a?{"files[]":e}:e,d&&new d,l)}}return s||o?(n.setContentType("application/json",!1),ii(e)):e}],transformResponse:[function(e){const n=ze(this,"transitional")||at.transitional,r=n&&n.forcedJSONParsing,o=ze(this,"responseType"),s=o==="json";if(u.isResponse(e)||u.isReadableStream(e))return e;if(e&&u.isString(e)&&(r&&!o||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,ze(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,ze(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch","query"],t=>{at.headers[t]={}});function en(t,e){const n=this||at,r=e||n,o=J.from(r.headers);let s=r.data;return u.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Jn(t){return!!(t&&t.__CANCEL__)}let ct=class extends T{constructor(e,n,r){super(e??"canceled",T.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Zn(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new T("Request failed with status code "+n.status,n.status>=400&&n.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,n.config,n.request,n))}function ai(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function ci(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(l){const f=Date.now(),d=r[s];i||(i=f),n[o]=l,r[o]=f;let p=s,w=0;for(;p!==o;)w+=n[p++],p=p%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),f-i<e)return;const b=d&&f-d;return b?Math.round(w*1e3/b):void 0}}function ui(t,e){let n=0,r=1e3/e,o,s;const i=(f,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t(...f)};return[(...f)=>{const d=Date.now(),p=d-n;p>=r?i(f,d):(o=f,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const Nt=(t,e,n=3)=>{let r=0;const o=ci(50,250);return ui(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=a!=null?Math.min(i,a):i,f=Math.max(0,l-r),d=o(f);r=Math.max(r,l);const p={loaded:l,total:a,progress:a?l/a:void 0,bytes:f,rate:d||void 0,estimated:d&&a?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(p)},n)},er=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},tr=t=>(...e)=>u.asap(()=>t(...e)),li=Q.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Q.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Q.origin),Q.navigator&&/(msie|trident)/i.test(Q.navigator.userAgent)):()=>!0,fi=Q.hasStandardBrowserEnv?{write(t,e,n,r,o,s,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];u.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),u.isString(r)&&a.push(`path=${r}`),u.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),u.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)return decodeURIComponent(r.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function di(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function mi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function nr(t,e,n){let r=!di(e);return t&&(r||n===!1)?mi(t,e):e}const rr=t=>t instanceof J?{...t}:t;function Le(t,e){e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,d,p,w){return u.isPlainObject(f)&&u.isPlainObject(d)?u.merge.call({caseless:w},f,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function o(f,d,p,w){if(u.isUndefined(d)){if(!u.isUndefined(f))return r(void 0,f,p,w)}else return r(f,d,p,w)}function s(f,d){if(!u.isUndefined(d))return r(void 0,d)}function i(f,d){if(u.isUndefined(d)){if(!u.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function a(f,d,p){if(u.hasOwnProp(e,p))return r(f,d);if(u.hasOwnProp(t,p))return r(void 0,f)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(f,d,p)=>o(rr(f),rr(d),p,!0)};return u.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const p=u.hasOwnProp(l,d)?l[d]:o,w=u.hasOwnProp(t,d)?t[d]:void 0,b=u.hasOwnProp(e,d)?e[d]:void 0,E=p(w,b,d);u.isUndefined(E)&&p!==a||(n[d]=E)}),n}const hi=["content-type","content-length"];function pi(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e).forEach(([r,o])=>{hi.includes(r.toLowerCase())&&t.set(r,o)})}const gi=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),or=t=>{const e=Le({},t),n=w=>u.hasOwnProp(e,w)?e[w]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),f=n("baseURL"),d=n("allowAbsoluteUrls"),p=n("url");if(e.headers=a=J.from(a),e.url=Vn(nr(f,p,d),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?gi(l.password):""))),u.isFormData(r)&&(Q.hasStandardBrowserEnv||Q.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):u.isFunction(r.getHeaders)&&pi(a,r.getHeaders(),n("formDataHeaderPolicy"))),Q.hasStandardBrowserEnv&&(u.isFunction(o)&&(o=o(e)),o===!0||o==null&&li(e.url))){const b=s&&i&&fi.read(i);b&&a.set(s,b)}return e},wi=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=or(t);let s=o.data;const i=J.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:f}=o,d,p,w,b,E;function y(){b&&b(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function g(){if(!m)return;const R=J.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:R,config:t,request:m};Zn(function(ve){n(ve),y()},function(ve){r(ve),y()},k),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(g)},m.onabort=function(){m&&(r(new T("Request aborted",T.ECONNABORTED,t,m)),y(),m=null)},m.onerror=function(O){const k=O&&O.message?O.message:"Network Error",se=new T(k,T.ERR_NETWORK,t,m);se.event=O||null,r(se),y(),m=null},m.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Kt;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new T(O,k.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,m)),y(),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&u.forEach(i.toJSON(),function(O,k){m.setRequestHeader(k,O)}),u.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),a&&a!=="json"&&(m.responseType=o.responseType),f&&([w,E]=Nt(f,!0),m.addEventListener("progress",w)),l&&m.upload&&([p,b]=Nt(l),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=R=>{m&&(r(!R||R.type?new ct(null,t,m):R),m.abort(),y(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const x=ai(o.url);if(x&&!Q.protocols.includes(x)){r(new T("Unsupported protocol "+x+":",T.ERR_BAD_REQUEST,t));return}m.send(s||null)})},yi=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(f){if(!o){o=!0,a();const d=f instanceof Error?f:this.reason;r.abort(d instanceof T?d:new ct(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,s(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),t=null)};t.forEach(f=>f.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>u.asap(a),l}},bi=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Ti=async function*(t,e){for await(const n of Ei(t))yield*bi(n,e)},Ei=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},sr=(t,e,n,r)=>{const o=Ti(t,e);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:f,value:d}=await o.next();if(f){a(),l.close();return}let p=d.byteLength;if(n){let w=s+=p;n(w)}l.enqueue(new Uint8Array(d))}catch(f){throw a(f),f}},cancel(l){return a(l),o.return()}},{highWaterMark:2})};function _i(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let i=r.length;const a=r.length;for(let b=0;b<a;b++)if(r.charCodeAt(b)===37&&b+2<a){const E=r.charCodeAt(b+1),y=r.charCodeAt(b+2);(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(i-=2,b+=2)}let l=0,f=a-1;const d=b=>b>=2&&r.charCodeAt(b-2)===37&&r.charCodeAt(b-1)===51&&(r.charCodeAt(b)===68||r.charCodeAt(b)===100);f>=0&&(r.charCodeAt(f)===61?(l++,f--):d(f)&&(l++,f-=3)),l===1&&f>=0&&(r.charCodeAt(f)===61||d(f))&&l++;const w=Math.floor(i/4)*3-(l||0);return w>0?w:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let i=0,a=r.length;i<a;i++){const l=r.charCodeAt(i);if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&i+1<a){const f=r.charCodeAt(i+1);f>=56320&&f<=57343?(s+=4,i++):s+=3}else s+=3}return s}const tn="1.16.0",ir=64*1024,{isFunction:Ct}=u,ar=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Oi=t=>{const e=u.global??globalThis,{ReadableStream:n,TextEncoder:r}=e;t=u.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:i}=t,a=o?Ct(o):typeof fetch=="function",l=Ct(s),f=Ct(i);if(!a)return!1;const d=a&&Ct(n),p=a&&(typeof r=="function"?(g=>x=>g.encode(x))(new r):async g=>new Uint8Array(await new s(g).arrayBuffer())),w=l&&d&&ar(()=>{let g=!1;const x=new s(Q.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),R=x.headers.has("Content-Type");return x.body!=null&&x.body.cancel(),g&&!R}),b=f&&d&&ar(()=>u.isReadableStream(new i("").body)),E={stream:b&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!E[g]&&(E[g]=(x,R)=>{let O=x&&x[g];if(O)return O.call(x);throw new T(`Response type '${g}' is not supported`,T.ERR_NOT_SUPPORT,R)})});const y=async g=>{if(g==null)return 0;if(u.isBlob(g))return g.size;if(u.isSpecCompliantForm(g))return(await new s(Q.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(u.isArrayBufferView(g)||u.isArrayBuffer(g))return g.byteLength;if(u.isURLSearchParams(g)&&(g=g+""),u.isString(g))return(await p(g)).byteLength},m=async(g,x)=>{const R=u.toFiniteNumber(g.getContentLength());return R??y(x)};return async g=>{let{url:x,method:R,data:O,signal:k,cancelToken:se,timeout:ve,onDownloadProgress:wt,onUploadProgress:Bt,responseType:be,headers:H,withCredentials:Ae="same-origin",fetchOptions:He,maxContentLength:te,maxBodyLength:yt}=or(g);const Ue=u.isNumber(te)&&te>-1,En=u.isNumber(yt)&&yt>-1;let bt=o||fetch;be=be?(be+"").toLowerCase():"text";let Te=yi([k,se&&se.toAbortSignal()],ve),ne=null;const I=Te&&Te.unsubscribe&&(()=>{Te.unsubscribe()});let Tt;try{if(Ue&&typeof x=="string"&&x.startsWith("data:")&&_i(x)>te)throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne);if(En&&R!=="get"&&R!=="head"){const P=await m(H,O);if(typeof P=="number"&&isFinite(P)&&P>yt)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,g,ne)}if(Bt&&w&&R!=="get"&&R!=="head"&&(Tt=await m(H,O))!==0){let P=new s(x,{method:"POST",body:O,duplex:"half"}),xe;if(u.isFormData(O)&&(xe=P.headers.get("content-type"))&&H.setContentType(xe),P.body){const[Ne,Be]=er(Tt,Nt(tr(Bt)));O=sr(P.body,ir,Ne,Be)}}u.isString(Ae)||(Ae=Ae?"include":"omit");const M=l&&"credentials"in s.prototype;if(u.isFormData(O)){const P=H.getContentType();P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P)&&H.delete("content-type")}H.set("User-Agent","axios/"+tn,!1);const me={...He,signal:Te,method:R.toUpperCase(),headers:H.normalize().toJSON(),body:O,duplex:"half",credentials:M?Ae:void 0};ne=l&&new s(x,me);let C=await(l?bt(ne,He):bt(x,me));if(Ue){const P=u.toFiniteNumber(C.headers.get("content-length"));if(P!=null&&P>te)throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne)}const Re=b&&(be==="stream"||be==="response");if(b&&C.body&&(wt||Ue||Re&&I)){const P={};["status","statusText","headers"].forEach(he=>{P[he]=C[he]});const xe=u.toFiniteNumber(C.headers.get("content-length")),[Ne,Be]=wt&&er(xe,Nt(tr(wt),!0))||[];let Et=0;const De=he=>{if(Ue&&(Et=he,Et>te))throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne);Ne&&Ne(he)};C=new i(sr(C.body,ir,De,()=>{Be&&Be(),I&&I()}),P)}be=be||"text";let ie=await E[u.findKey(E,be)||"text"](C,g);if(Ue&&!b&&!Re){let P;if(ie!=null&&(typeof ie.byteLength=="number"?P=ie.byteLength:typeof ie.size=="number"?P=ie.size:typeof ie=="string"&&(P=typeof r=="function"?new r().encode(ie).byteLength:ie.length)),typeof P=="number"&&P>te)throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne)}return!Re&&I&&I(),await new Promise((P,xe)=>{Zn(P,xe,{data:ie,headers:J.from(C.headers),status:C.status,statusText:C.statusText,config:g,request:ne})})}catch(M){if(I&&I(),Te&&Te.aborted&&Te.reason instanceof T){const me=Te.reason;throw me.config=g,ne&&(me.request=ne),M!==me&&(me.cause=M),me}throw M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,g,ne,M&&M.response),{cause:M.cause||M}):T.from(M,M&&M.code,g,ne,M&&M.response)}}},Ai=new Map,cr=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let i=s.length,a=i,l,f,d=Ai;for(;a--;)l=s[a],f=d.get(l),f===void 0&&d.set(l,f=a?new Map:Oi(e)),d=f;return f};cr();const nn={http:Vs,xhr:wi,fetch:{get:cr}};u.forEach(nn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const ur=t=>`- ${t}`,Ri=t=>u.isFunction(t)||t===null||t===!1;function xi(t,e){t=u.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let i=0;i<n;i++){r=t[i];let a;if(o=r,!Ri(r)&&(o=nn[(a=String(r)).toLowerCase()],o===void 0))throw new T(`Unknown adapter '${a}'`);if(o&&(u.isFunction(o)||(o=o.get(e))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,f])=>`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
4
|
-
`+i.map(
|
|
5
|
-
`):" "+
|
|
1
|
+
(function(he,bt){typeof exports=="object"&&typeof module<"u"?bt(exports):typeof define=="function"&&define.amd?define(["exports"],bt):(he=typeof globalThis<"u"?globalThis:he||self,bt(he.index={}))})(this,(function(he){"use strict";const bt=()=>({formatPhoneNumber:i=>{const c=(i??"").replace(/\D/g,"");if(/^1[568]\d{7}$/.test(c))return c.replace(/^(\d{4})(\d{4})$/,"$1-$2");if(c.startsWith("02")){if(c.length===9)return c.replace(/^(\d{2})(\d{3})(\d{4})$/,"$1-$2-$3");if(c.length===10)return c.replace(/^(\d{2})(\d{4})(\d{4})$/,"$1-$2-$3")}if(/^0\d+/.test(c)){if(c.length===10)return c.replace(/^(\d{3})(\d{3})(\d{4})$/,"$1-$2-$3");if(c.length===11)return c.replace(/^(\d{3})(\d{4})(\d{4})$/,"$1-$2-$3")}return i},formatBizNumber:i=>{const c=(i??"").replace(/\D/g,"");return c.length===10?c.replace(/^(\d{3})(\d{2})(\d{5})$/,"$1-$2-$3"):c.length===13?c.replace(/^(\d{6})(\d{7})$/,"$1-$2"):String(i??"")},formatDate:i=>{if(!(i instanceof Date)||isNaN(i.getTime()))return"";const c=i.getHours(),l=i.getMinutes(),d=c<12?"오전":"오후",h=c%12===0?12:c%12;return`${d} ${h}시 ${l}분`},Masker:{maskName:i=>{const c=(i??"").trim(),l=[...c].length;if(l<=0)return"";if(l===1)return"*";if(l===2){const[E]=[...c];return`${E}*`}const d=[...c],h=d[0],p=d[l-1],g="*".repeat(l-2);return`${h}${g}${p}`},maskPhoneNumber:i=>{if(i.includes("-")){const p=i.split("-");if(p.length===3){const[g,E,A]=p;return`${g}-${"*".repeat(E.replace(/\D/g,"").length||4)}-${A}`}if(p.length===2){const[g,E]=p,A=E.replace(/\D/g,""),D=A.slice(-4),y=Math.max(1,A.length-D.length);return`${g}-${"*".repeat(y)}${D}`}return i}const c=i.replace(/\D/g,"");if(c.length<8)return i;const l=c.slice(0,3),d=c.slice(-4),h=Math.max(1,c.length-(l.length+d.length));return`${l}${"*".repeat(h)}${d}`}},commanizeData:i=>{const c=String(i??"").trim();if(!c)return"";const l=c.replace(/,/g,""),d=l.startsWith("-")?"-":"",h=l.replace(/^-/,""),[p,g]=h.split("."),E=p.replace(/\B(?=(\d{3})+(?!\d))/g,",");return d+E+(g!==void 0?`.${g}`:"")},decommanizeData:i=>i.replace(/,/g,"")}),os=/^[A-Za-z0-9]([A-Za-z0-9_.+-]*[A-Za-z0-9])?@[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?\.[A-Za-z]{2,}$/,ss=/^010(\d{4})(\d{4})$/,is=/^(070|02|031|032|033|034|035|036|037|038|039|041|042|043|051|052|053|054|055|061|062|063|064|070|071|072)[0-9]{3,4}[0-9]{4}$/,as=/([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))/,cs=/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,us=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+~`\-={}[\]:;"'<>,.?/\\]).{10,}$/,ls=/^d{2}([0]\d|[1][0-2])([0][1-9]|[1-2]\d|[3][0-1])[-]*[1-4]\d{6}$/,fs=/^(?:[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[1,2][0-9]|3[0,1]))-[1-8][0-9]{6}$/,ds=/^https?:\/\/(?:[-\w.])+(?:\.[a-zA-Z]{2,})+(?::\d+)?(?:\/[^\s]*)?$/i,hs=/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|zip|rar)$/i;function ms(t){return os.test(t)}function ps(t){return ss.test(t)}function gs(t){return is.test(t)}function ys(t){return as.test(t)}function ws(t){return cs.test(t)}function bs(t){return us.test(t)}function Ts(t){return ls.test(t)}function Es(t){return fs.test(t)}function _s(t){const e=t.replace(/[^0-9]/g,"");if(e.length!==10||/^0+$/.test(e))return!1;const n=e.split("").map(l=>parseInt(l,10)),r=[1,3,7,1,3,7,1,3,5];let o=0;for(let l=0;l<8;l++)o+=r[l]*n[l];const s=r[8]*n[8];o+=Math.floor(s/10)+s%10;const i=o%10,c=i===0?0:10-i;return n[9]===c}function Os(t){return ds.test(t)}function As(t,e=10){const n=typeof t=="string"?t:t.name;return!(!hs.test(n)||t instanceof File&&t.size/1048576>e)}const Rs={email:ms,phone:ps,homePhone:gs,birth6:ys,birth8:ws,password:bs,juminAfter2020:Es,juminBefore2020:Ts,corporateRegiNumber:_s,url:Os,file:As};function rr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ss}=Object.prototype,{getPrototypeOf:et}=Object,{iterator:Tt,toStringTag:or}=Symbol,vt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Et=(t,e)=>{let n=t;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),vt(n,e))return!0;n=et(n)}return!1},xs=(t,e)=>t!=null&&Et(t,e)?t[e]:void 0,ln=(t=>e=>{const n=Ss.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ye=t=>(t=t.toLowerCase(),e=>ln(e)===t),Ut=t=>e=>typeof e===t,{isArray:We}=Array,tt=Ut("undefined");function nt(t){return t!==null&&!tt(t)&&t.constructor!==null&&!tt(t.constructor)&&le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const sr=ye("ArrayBuffer");function Ds(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&sr(t.buffer),e}const Ps=Ut("string"),le=Ut("function"),ir=Ut("number"),rt=t=>t!==null&&typeof t=="object",Ms=t=>t===!0||t===!1,Ht=t=>{if(!rt(t))return!1;const e=et(t);return(e===null||e===Object.prototype||et(e)===null)&&!Et(t,or)&&!Et(t,Tt)},Ns=t=>{if(!rt(t)||nt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Cs=ye("Date"),Ls=ye("File"),ks=t=>!!(t&&typeof t.uri<"u"),Is=t=>t&&typeof t.getParts<"u",Fs=ye("Blob"),vs=ye("FileList"),Us=t=>rt(t)&&le(t.pipe);function Hs(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ar=Hs(),cr=typeof ar.FormData<"u"?ar.FormData:void 0,Bs=t=>{if(!t)return!1;if(cr&&t instanceof cr)return!0;const e=et(t);if(!e||e===Object.prototype||!le(t.append))return!1;const n=ln(t);return n==="formdata"||n==="object"&&le(t.toString)&&t.toString()==="[object FormData]"},$s=ye("URLSearchParams"),[Ws,zs,qs,Ys]=["ReadableStream","Request","Response","Headers"].map(ye),js=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _t(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),We(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(nt(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let c;for(r=0;r<i;r++)c=s[r],e.call(null,t[c],c,t)}}function ur(t,e){if(nt(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lr=t=>!tt(t)&&t!==ze;function fn(...t){const{caseless:e,skipUndefined:n}=lr(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=e&&typeof i=="string"&&ur(r,i)||i,l=vt(r,c)?r[c]:void 0;Ht(l)&&Ht(s)?r[c]=fn(l,s):Ht(s)?r[c]=fn({},s):We(s)?r[c]=s.slice():(!n||!tt(s))&&(r[c]=s)};for(let s=0,i=t.length;s<i;s++){const c=t[s];if(!c||nt(c)||(_t(c,o),typeof c!="object"||We(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let d=0;d<l.length;d++){const h=l[d];oi.call(c,h)&&o(c[h],h)}}return r}const Gs=(t,e,n,{allOwnKeys:r}={})=>(_t(e,(o,s)=>{n&&le(o)?Object.defineProperty(t,s,{__proto__:null,value:rr(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Xs=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Vs=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},Qs=(t,e,n,r)=>{let o,s,i;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!c[i]&&(e[i]=t[i],c[i]=!0);t=n!==!1&&et(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ks=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Js=t=>{if(!t)return null;if(We(t))return t;let e=t.length;if(!ir(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Zs=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&et(Uint8Array)),ei=(t,e)=>{const r=(t&&t[Tt]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},ti=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ni=ye("HTMLFormElement"),ri=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:oi}=Object.prototype,si=ye("RegExp"),fr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};_t(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},ii=t=>{fr(t,(e,n)=>{if(le(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(le(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ai=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return We(t)?r(t):r(String(t).split(e)),n},ci=()=>{},ui=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function li(t){return!!(t&&le(t.append)&&t[or]==="FormData"&&t[Tt])}const fi=t=>{const e=new WeakSet,n=r=>{if(rt(r)){if(e.has(r))return;if(nt(r))return r;if(!("toJSON"in r)){e.add(r);const o=We(r)?[]:{};return _t(r,(s,i)=>{const c=n(s);!tt(c)&&(o[i]=c)}),e.delete(r),o}}return r};return n(t)},di=ye("AsyncFunction"),hi=t=>t&&(rt(t)||le(t))&&le(t.then)&&le(t.catch),dr=((t,e)=>t?setImmediate:e?((n,r)=>(ze.addEventListener("message",({source:o,data:s})=>{o===ze&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ze.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",le(ze.postMessage)),mi=typeof queueMicrotask<"u"?queueMicrotask.bind(ze):typeof process<"u"&&process.nextTick||dr,hr=t=>t!=null&&le(t[Tt]),u={isArray:We,isArrayBuffer:sr,isBuffer:nt,isFormData:Bs,isArrayBufferView:Ds,isString:Ps,isNumber:ir,isBoolean:Ms,isObject:rt,isPlainObject:Ht,isEmptyObject:Ns,isReadableStream:Ws,isRequest:zs,isResponse:qs,isHeaders:Ys,isUndefined:tt,isDate:Cs,isFile:Ls,isReactNativeBlob:ks,isReactNative:Is,isBlob:Fs,isRegExp:si,isFunction:le,isStream:Us,isURLSearchParams:$s,isTypedArray:Zs,isFileList:vs,forEach:_t,merge:fn,extend:Gs,trim:js,stripBOM:Xs,inherits:Vs,toFlatObject:Qs,kindOf:ln,kindOfTest:ye,endsWith:Ks,toArray:Js,forEachEntry:ei,matchAll:ti,isHTMLForm:ni,hasOwnProperty:vt,hasOwnProp:vt,hasOwnInPrototypeChain:Et,getSafeProp:xs,reduceDescriptors:fr,freezeMethods:ii,toObjectSet:ai,toCamelCase:ri,noop:ci,toFiniteNumber:ui,findKey:ur,global:ze,isContextDefined:lr,isSpecCompliantForm:li,toJSONObject:fi,isAsyncFn:di,isThenable:hi,setImmediate:dr,asap:mi,isIterable:hr,isSafeIterable:t=>t!=null&&Et(t,Tt)&&hr(t)},pi=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gi=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
2
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&pi[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};function yi(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const wi=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),bi=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function dn(t,e){return u.isArray(t)?t.map(n=>dn(n,e)):yi(String(t).replace(e,""))}const Ti=t=>dn(t,wi),Ei=t=>dn(t,bi);function mr(t){const e=Object.create(null);return u.forEach(t.toJSON(),(n,r)=>{e[r]=Ei(n)}),e}const pr=Symbol("internals");function Ot(t){return t&&String(t).trim().toLowerCase()}function Bt(t){return t===!1||t==null?t:u.isArray(t)?t.map(Bt):Ti(String(t))}function _i(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Oi=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hn(t,e,n,r,o){if(u.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!u.isString(e)){if(u.isString(r))return e.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(e)}}function Ai(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ri(t,e){const n=u.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}let oe=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(c,l,d){const h=Ot(l);if(!h)return;const p=u.findKey(o,h);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||l]=Bt(c))}const i=(c,l)=>u.forEach(c,(d,h)=>s(d,h,l));if(u.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(u.isString(e)&&(e=e.trim())&&!Oi(e))i(gi(e),n);else if(u.isObject(e)&&u.isSafeIterable(e)){let c=Object.create(null),l,d;for(const h of e){if(!u.isArray(h))throw new TypeError("Object iterator must return a key-value pair");d=h[0],u.hasOwnProp(c,d)?(l=c[d],c[d]=u.isArray(l)?[...l,h[1]]:[l,h[1]]):c[d]=h[1]}i(c,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=Ot(e),e){const r=u.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return _i(o);if(u.isFunction(n))return n.call(this,o,r);if(u.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ot(e),e){const r=u.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||hn(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=Ot(i),i){const c=u.findKey(r,i);c&&(!n||hn(r,r[c],c,n))&&(delete r[c],o=!0)}}return u.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||hn(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return u.forEach(this,(o,s)=>{const i=u.findKey(r,s);if(i){n[i]=Bt(o),delete n[s];return}const c=e?Ai(s):String(s).trim();c!==s&&delete n[s],n[c]=Bt(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return u.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&u.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[pr]=this[pr]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=Ot(i);r[c]||(Ri(o,i),r[c]=!0)}return u.isArray(e)?e.forEach(s):s(e),this}};oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(oe.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),u.freezeMethods(oe);const Si="[REDACTED ****]";function xi(t){if(u.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(u.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Di(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||u.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof oe&&(s=s.toJSON()),r.push(s);let i;if(u.isArray(s))i=[],s.forEach((c,l)=>{const d=o(c);u.isUndefined(d)||(i[l]=d)});else{if(!u.isPlainObject(s)&&xi(s))return r.pop(),s;i=Object.create(null);for(const[c,l]of Object.entries(s)){const d=n.has(c.toLowerCase())?Si:o(l);u.isUndefined(d)||(i[c]=d)}}return r.pop(),i};return o(t)}let T=class ns extends Error{static from(e,n,r,o,s,i){const c=new ns(e.message,n||e.code,r,o,s);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,e.status!=null&&c.status==null&&(c.status=e.status),i&&Object.assign(c,i),c}constructor(e,n,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&u.hasOwnProp(e,"redact")?e.redact:void 0,r=u.isArray(n)&&n.length>0?Di(e,n):u.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",T.ERR_BAD_OPTION="ERR_BAD_OPTION",T.ECONNABORTED="ECONNABORTED",T.ETIMEDOUT="ETIMEDOUT",T.ECONNREFUSED="ECONNREFUSED",T.ERR_NETWORK="ERR_NETWORK",T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",T.ERR_DEPRECATED="ERR_DEPRECATED",T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",T.ERR_BAD_REQUEST="ERR_BAD_REQUEST",T.ERR_CANCELED="ERR_CANCELED",T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",T.ERR_INVALID_URL="ERR_INVALID_URL",T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Pi=null,gr=100;function mn(t){return u.isPlainObject(t)||u.isArray(t)}function yr(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function pn(t,e,n){return t?t.concat(e).map(function(o,s){return o=yr(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Mi(t){return u.isArray(t)&&!t.some(mn)}const Ni=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function $t(t,e,n){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,R){return!u.isUndefined(R[_])});const r=n.metaTokens,o=n.visitor||A,s=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?gr:n.maxDepth,d=c&&u.isSpecCompliantForm(e),h=[];if(!u.isFunction(o))throw new TypeError("visitor must be a function");function p(m){if(m===null)return"";if(u.isDate(m))return m.toISOString();if(u.isBoolean(m))return m.toString();if(!d&&u.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");if(u.isArrayBuffer(m)||u.isTypedArray(m)){if(d&&typeof c=="function")return new c([m]);if(typeof Buffer<"u")return Buffer.from(m);throw new T("Blob is not supported. Use a Buffer instead.",T.ERR_NOT_SUPPORT)}return m}function g(m){if(m>l)throw new T("Object is too deeply nested ("+m+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(m,_){if(l===1/0)return JSON.stringify(m);const R=[];return JSON.stringify(m,function(k,P){if(!u.isObject(P))return P;for(;R.length&&R[R.length-1]!==this;)R.pop();return R.push(P),g(_+R.length-1),P})}function A(m,_,R){let S=m;if(u.isReactNative(e)&&u.isReactNativeBlob(m))return e.append(pn(R,_,s),p(m)),!1;if(m&&!R&&typeof m=="object"){if(u.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=E(m,1);else if(u.isArray(m)&&Mi(m)||(u.isFileList(m)||u.endsWith(_,"[]"))&&(S=u.toArray(m)))return _=yr(_),S.forEach(function(P,ie){!(u.isUndefined(P)||P===null)&&e.append(i===!0?pn([_],ie,s):i===null?_:_+"[]",p(P))}),!1}return mn(m)?!0:(e.append(pn(R,_,s),p(m)),!1)}const D=Object.assign(Ni,{defaultVisitor:A,convertValue:p,isVisitable:mn});function y(m,_,R=0){if(!u.isUndefined(m)){if(g(R),h.indexOf(m)!==-1)throw new Error("Circular reference detected in "+_.join("."));h.push(m),u.forEach(m,function(k,P){(!(u.isUndefined(k)||k===null)&&o.call(e,k,u.isString(P)?P.trim():P,_,D))===!0&&y(k,_?_.concat(P):[P],R+1)}),h.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return y(t),e}function wr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function gn(t,e){this._pairs=[],t&&$t(t,this,e)}const br=gn.prototype;br.append=function(e,n){this._pairs.push([e,n])},br.toString=function(e){const n=e?r=>e.call(this,r,wr):wr;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Ci(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Tr(t,e,n){if(!e)return t;t=t||"";const r=u.isFunction(n)?{serialize:n}:n,o=u.getSafeProp(r,"encode")||Ci,s=u.getSafeProp(r,"serialize");let i;if(s?i=s(e,r):i=u.isURLSearchParams(e)?e.toString():new gn(e,r).toString(o),i){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Er{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const yn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Li={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:gn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},wn=typeof window<"u"&&typeof document<"u",bn=typeof navigator=="object"&&navigator||void 0,ki=wn&&(!bn||["ReactNative","NativeScript","NS"].indexOf(bn.product)<0),Ii=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fi=wn&&window.location.href||"http://localhost",Z={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wn,hasStandardBrowserEnv:ki,hasStandardBrowserWebWorkerEnv:Ii,navigator:bn,origin:Fi},Symbol.toStringTag,{value:"Module"})),...Li};function vi(t,e){return $t(t,new Z.classes.URLSearchParams,{visitor:function(n,r,o,s){return Z.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const _r=gr;function Or(t){if(t>_r)throw new T("FormData field is too deeply nested ("+t+" levels). Max depth: "+_r,T.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ui(t){const e=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(t))!==null;)Or(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function Hi(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function Ar(t){function e(n,r,o,s){Or(s);let i=n[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=s>=n.length;return i=!i&&u.isArray(o)?o.length:i,l?(u.hasOwnProp(o,i)?o[i]=u.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!c):((!u.hasOwnProp(o,i)||!u.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&u.isArray(o[i])&&(o[i]=Hi(o[i])),!c)}if(u.isFormData(t)&&u.isFunction(t.entries)){const n={};return u.forEachEntry(t,(r,o)=>{e(Ui(r),o,n,0)}),n}return null}const ot=(t,e)=>t!=null&&u.hasOwnProp(t,e)?t[e]:void 0;function Bi(t,e,n){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const At={transitional:yn,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=u.isObject(e);if(s&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return o?JSON.stringify(Ar(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e)||u.isReadableStream(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){const l=ot(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return vi(e,l).toString();if((c=u.isFileList(e))||r.indexOf("multipart/form-data")>-1){const d=ot(this,"env"),h=d&&d.FormData;return $t(c?{"files[]":e}:e,h&&new h,l)}}return s||o?(n.setContentType("application/json",!1),Bi(e)):e}],transformResponse:[function(e){const n=ot(this,"transitional")||At.transitional,r=n&&n.forcedJSONParsing,o=ot(this,"responseType"),s=o==="json";if(u.isResponse(e)||u.isReadableStream(e))return e;if(e&&u.isString(e)&&(r&&!o||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,ot(this,"parseReviver"))}catch(l){if(c)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,ot(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z.classes.FormData,Blob:Z.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch","query"],t=>{At.headers[t]={}});function Tn(t,e){const n=this||At,r=e||n,o=oe.from(r.headers);let s=r.data;return u.forEach(t,function(c){s=c.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Rr(t){return!!(t&&t.__CANCEL__)}let Rt=class extends T{constructor(e,n,r){super(e??"canceled",T.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Sr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new T("Request failed with status code "+n.status,n.status>=400&&n.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,n.config,n.request,n))}function $i(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function Wi(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),h=r[s];i||(i=d),n[o]=l,r[o]=d;let p=s,g=0;for(;p!==o;)g+=n[p++],p=p%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),d-i<e)return;const E=h&&d-h;return E?Math.round(g*1e3/E):void 0}}function zi(t,e){let n=0,r=1e3/e,o,s;const i=(d,h=Date.now())=>{n=h,o=null,s&&(clearTimeout(s),s=null),t(...d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=r?i(d,h):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const Wt=(t,e,n=3)=>{let r=0;const o=Wi(50,250);return zi(s=>{if(!s||typeof s.loaded!="number")return;const i=s.loaded,c=s.lengthComputable?s.total:void 0,l=c!=null?Math.min(i,c):i,d=Math.max(0,l-r),h=o(d);r=Math.max(r,l);const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:h||void 0,estimated:h&&c?(c-l)/h:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(p)},n)},xr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Dr=t=>(...e)=>u.asap(()=>t(...e)),qi=Z.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Z.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Z.origin),Z.navigator&&/(msie|trident)/i.test(Z.navigator.userAgent)):()=>!0,Yi=Z.hasStandardBrowserEnv?{write(t,e,n,r,o,s,i){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];u.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),u.isString(r)&&c.push(`path=${r}`),u.isString(o)&&c.push(`domain=${o}`),s===!0&&c.push("secure"),u.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ji(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Gi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const Xi=/^https?:(?!\/\/)/i,Vi=/[\t\n\r]/g;function Qi(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function Ki(t){return Qi(t).replace(Vi,"")}function Pr(t,e){if(typeof t=="string"&&Xi.test(Ki(t)))throw new T('Invalid URL: missing "//" after protocol',T.ERR_INVALID_URL,e)}function Mr(t,e,n,r){Pr(e,r);let o=!ji(e);return t&&(o||n===!1)?(Pr(t,r),Gi(t,e)):e}const Nr=t=>t instanceof oe?{...t}:t;function qe(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(h,p,g,E){return u.isPlainObject(h)&&u.isPlainObject(p)?u.merge.call({caseless:E},h,p):u.isPlainObject(p)?u.merge({},p):u.isArray(p)?p.slice():p}function o(h,p,g,E){if(u.isUndefined(p)){if(!u.isUndefined(h))return r(void 0,h,g,E)}else return r(h,p,g,E)}function s(h,p){if(!u.isUndefined(p))return r(void 0,p)}function i(h,p){if(u.isUndefined(p)){if(!u.isUndefined(h))return r(void 0,h)}else return r(void 0,p)}function c(h){const p=u.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!u.isUndefined(p))if(u.isPlainObject(p)){if(u.hasOwnProp(p,h))return p[h]}else return;const g=u.hasOwnProp(t,"transitional")?t.transitional:void 0;if(u.isPlainObject(g)&&u.hasOwnProp(g,h))return g[h]}function l(h,p,g){if(u.hasOwnProp(e,g))return r(h,p);if(u.hasOwnProp(t,g))return r(void 0,h)}const d={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:l,headers:(h,p,g)=>o(Nr(h),Nr(p),g,!0)};return u.forEach(Object.keys({...t,...e}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=u.hasOwnProp(d,p)?d[p]:o,E=u.hasOwnProp(t,p)?t[p]:void 0,A=u.hasOwnProp(e,p)?e[p]:void 0,D=g(E,A,p);u.isUndefined(D)&&g!==l||(n[p]=D)}),u.hasOwnProp(e,"validateStatus")&&u.isUndefined(e.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(u.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}const Ji=["content-type","content-length"];function Zi(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([r,o])=>{Ji.includes(r.toLowerCase())&&t.set(r,o)})}const ea=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Cr(t){const e=qe({},t),n=g=>u.hasOwnProp(e,g)?e[g]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const l=n("auth"),d=n("baseURL"),h=n("allowAbsoluteUrls"),p=n("url");if(e.headers=c=oe.from(c),e.url=Tr(Mr(d,p,h,e),n("params"),n("paramsSerializer")),l){const g=u.getSafeProp(l,"username")||"",E=u.getSafeProp(l,"password")||"";try{c.set("Authorization","Basic "+btoa(g+":"+(E?ea(E):"")))}catch(A){throw T.from(A,T.ERR_BAD_OPTION_VALUE,t)}}if(u.isFormData(r)&&(Z.hasStandardBrowserEnv||Z.hasStandardBrowserWebWorkerEnv||u.isReactNative(r)?c.setContentType(void 0):u.isFunction(r.getHeaders)&&Zi(c,r.getHeaders(),n("formDataHeaderPolicy"))),Z.hasStandardBrowserEnv&&(u.isFunction(o)&&(o=o(e)),o===!0||o==null&&qi(e.url))){const E=s&&i&&Yi.read(i);E&&c.set(s,E)}return e}const ta=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Cr(t);let s=o.data;const i=oe.from(o.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:d}=o,h,p,g,E,A;function D(){E&&E(),A&&A(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function m(){if(!y)return;const R=oe.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),k={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:R,config:t,request:y};Sr(function(ie){n(ie),D()},function(ie){r(ie),D()},k),y=null}"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(m)},y.onabort=function(){y&&(r(new T("Request aborted",T.ECONNABORTED,t,y)),D(),y=null)},y.onerror=function(S){const k=S&&S.message?S.message:"Network Error",P=new T(k,T.ERR_NETWORK,t,y);P.event=S||null,r(P),D(),y=null},y.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||yn;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new T(S,k.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,y)),D(),y=null},s===void 0&&i.setContentType(null),"setRequestHeader"in y&&u.forEach(mr(i),function(S,k){y.setRequestHeader(k,S)}),u.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),c&&c!=="json"&&(y.responseType=o.responseType),d&&([g,A]=Wt(d,!0),y.addEventListener("progress",g)),l&&y.upload&&([p,E]=Wt(l),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",E)),(o.cancelToken||o.signal)&&(h=R=>{y&&(r(!R||R.type?new Rt(null,t,y):R),y.abort(),D(),y=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const _=$i(o.url);if(_&&!Z.protocols.includes(_)){r(new T("Unsupported protocol "+_+":",T.ERR_BAD_REQUEST,t)),D();return}y.send(s||null)})},na=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const o=function(l){if(!r){r=!0,i();const d=l instanceof Error?l:this.reason;n.abort(d instanceof T?d:new Rt(d instanceof Error?d.message:d))}};let s=e&&setTimeout(()=>{s=null,o(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),t=null)};t.forEach(l=>l.addEventListener("abort",o,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>u.asap(i),c},ra=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},oa=async function*(t,e){for await(const n of sa(t))yield*ra(n,e)},sa=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Lr=(t,e,n,r)=>{const o=oa(t,e);let s=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:h}=await o.next();if(d){c(),l.close();return}let p=h.byteLength;if(n){let g=s+=p;n(g)}l.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(l){return c(l),o.return()}},{highWaterMark:2})},zt=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,ia=(t,e,n)=>e+2<n&&zt(t.charCodeAt(e+1))&&zt(t.charCodeAt(e+2));function aa(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let i=r.length;const c=r.length;for(let E=0;E<c;E++)if(r.charCodeAt(E)===37&&E+2<c){const A=r.charCodeAt(E+1),D=r.charCodeAt(E+2);zt(A)&&zt(D)&&(i-=2,E+=2)}let l=0,d=c-1;const h=E=>E>=2&&r.charCodeAt(E-2)===37&&r.charCodeAt(E-1)===51&&(r.charCodeAt(E)===68||r.charCodeAt(E)===100);d>=0&&(r.charCodeAt(d)===61?(l++,d--):h(d)&&(l++,d-=3)),l===1&&d>=0&&(r.charCodeAt(d)===61||h(d))&&l++;const g=Math.floor(i/4)*3-(l||0);return g>0?g:0}let s=0;for(let i=0,c=r.length;i<c;i++){const l=r.charCodeAt(i);if(l===37&&ia(r,i,c))s+=1,i+=2;else if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&i+1<c){const d=r.charCodeAt(i+1);d>=56320&&d<=57343?(s+=4,i++):s+=3}else s+=3}return s}const En="1.18.1",kr=64*1024,{isFunction:qt}=u,ca=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Ir=t=>{if(!u.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Fr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ua=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},la=t=>{const e=u.global!==void 0&&u.global!==null?u.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=u.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:i}=t,c=o?qt(o):typeof fetch=="function",l=qt(s),d=qt(i);if(!c)return!1;const h=c&&qt(n),p=c&&(typeof r=="function"?(m=>_=>m.encode(_))(new r):async m=>new Uint8Array(await new s(m).arrayBuffer())),g=l&&h&&Fr(()=>{let m=!1;const _=new s(Z.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),R=_.headers.has("Content-Type");return _.body!=null&&_.body.cancel(),m&&!R}),E=d&&h&&Fr(()=>u.isReadableStream(new i("").body)),A={stream:E&&(m=>m.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!A[m]&&(A[m]=(_,R)=>{let S=_&&_[m];if(S)return S.call(_);throw new T(`Response type '${m}' is not supported`,T.ERR_NOT_SUPPORT,R)})});const D=async m=>{if(m==null)return 0;if(u.isBlob(m))return m.size;if(u.isSpecCompliantForm(m))return(await new s(Z.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(u.isArrayBufferView(m)||u.isArrayBuffer(m))return m.byteLength;if(u.isURLSearchParams(m)&&(m=m+""),u.isString(m))return(await p(m)).byteLength},y=async(m,_)=>{const R=u.toFiniteNumber(m.getContentLength());return R??D(_)};return async m=>{let{url:_,method:R,data:S,signal:k,cancelToken:P,timeout:ie,onDownloadProgress:Ve,onUploadProgress:lt,responseType:fe,headers:we,withCredentials:be="same-origin",fetchOptions:Qt,maxContentLength:me,maxBodyLength:Me}=Cr(m);const Ne=u.isNumber(me)&&me>-1,ft=u.isNumber(Me)&&Me>-1,Bn=H=>u.hasOwnProp(m,H)?m[H]:void 0;let Kt=o||fetch;fe=fe?(fe+"").toLowerCase():"text";let Re=na([k,P&&P.toAbortSignal()],ie),M=null;const Ce=Re&&Re.unsubscribe&&(()=>{Re.unsubscribe()});let Ue,Qe=null;const Jt=()=>new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,m,M);try{let H;const de=Bn("auth");if(de){const x=u.getSafeProp(de,"username")||"",ae=u.getSafeProp(de,"password")||"";H={username:x,password:ae}}if(ua(_)){const x=new URL(_,Z.origin);if(!H&&(x.username||x.password)){const ae=Ir(x.username),re=Ir(x.password);H={username:ae,password:re}}(x.username||x.password)&&(x.username="",x.password="",_=x.href)}if(H&&(we.delete("authorization"),we.set("Authorization","Basic "+btoa(ca((H.username||"")+":"+(H.password||""))))),Ne&&typeof _=="string"&&_.startsWith("data:")&&aa(_)>me)throw new T("maxContentLength size of "+me+" exceeded",T.ERR_BAD_RESPONSE,m,M);if(ft&&R!=="get"&&R!=="head"){const x=await D(S);if(typeof x=="number"&&isFinite(x)&&(Ue=x,x>Me))throw Jt()}const Ke=ft&&(u.isReadableStream(S)||u.isStream(S)),Zt=(x,ae,re)=>Lr(x,kr,Se=>{if(ft&&Se>Me)throw Qe=Jt();ae&&ae(Se)},re);if(g&&R!=="get"&&R!=="head"&&(lt||Ke)){if(Ue=Ue??await y(we,S),Ue!==0||Ke){let x=new s(_,{method:"POST",body:S,duplex:"half"}),ae;if(u.isFormData(S)&&(ae=x.headers.get("content-type"))&&we.setContentType(ae),x.body){const[re,Se]=lt&&xr(Ue,Wt(Dr(lt)))||[];S=Zt(x.body,re,Se)}}}else if(Ke&&!l&&h&&R!=="get"&&R!=="head")S=Zt(S);else if(Ke&&l&&!g&&R!=="get"&&R!=="head")throw new T("Stream request bodies are not supported by the current fetch implementation",T.ERR_NOT_SUPPORT,m,M);u.isString(be)||(be=be?"include":"omit");const en=l&&"credentials"in s.prototype;if(u.isFormData(S)){const x=we.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&we.delete("content-type")}we.set("User-Agent","axios/"+En,!1);const B={...Qt,signal:Re,method:R.toUpperCase(),headers:mr(we.normalize()),body:S,duplex:"half",credentials:en?be:void 0};M=l&&new s(_,B);let pe=await(l?Kt(M,Qt):Kt(_,B));const $=oe.from(pe.headers);if(Ne){const x=u.toFiniteNumber($.getContentLength());if(x!=null&&x>me)throw new T("maxContentLength size of "+me+" exceeded",T.ERR_BAD_RESPONSE,m,M)}const dt=E&&(fe==="stream"||fe==="response");if(E&&pe.body&&(Ve||Ne||dt&&Ce)){const x={};["status","statusText","headers"].forEach(He=>{x[He]=pe[He]});const ae=u.toFiniteNumber($.getContentLength()),[re,Se]=Ve&&xr(ae,Wt(Dr(Ve),!0))||[];let ht=0;const tn=He=>{if(Ne&&(ht=He,ht>me))throw new T("maxContentLength size of "+me+" exceeded",T.ERR_BAD_RESPONSE,m,M);re&&re(He)};pe=new i(Lr(pe.body,kr,tn,()=>{Se&&Se(),Ce&&Ce()}),x)}fe=fe||"text";let v=await A[u.findKey(A,fe)||"text"](pe,m);if(Ne&&!E&&!dt){let x;if(v!=null&&(typeof v.byteLength=="number"?x=v.byteLength:typeof v.size=="number"?x=v.size:typeof v=="string"&&(x=typeof r=="function"?new r().encode(v).byteLength:v.length)),typeof x=="number"&&x>me)throw new T("maxContentLength size of "+me+" exceeded",T.ERR_BAD_RESPONSE,m,M)}return!dt&&Ce&&Ce(),await new Promise((x,ae)=>{Sr(x,ae,{data:v,headers:oe.from(pe.headers),status:pe.status,statusText:pe.statusText,config:m,request:M})})}catch(H){if(Ce&&Ce(),Re&&Re.aborted&&Re.reason instanceof T){const de=Re.reason;throw de.config=m,M&&(de.request=M),H!==de&&Object.defineProperty(de,"cause",{__proto__:null,value:H,writable:!0,enumerable:!1,configurable:!0}),de}if(Qe)throw M&&!Qe.request&&(Qe.request=M),Qe;if(H instanceof T)throw M&&!H.request&&(H.request=M),H;if(H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)){const de=new T("Network Error",T.ERR_NETWORK,m,M,H&&H.response);throw Object.defineProperty(de,"cause",{__proto__:null,value:H.cause||H,writable:!0,enumerable:!1,configurable:!0}),de}throw T.from(H,H&&H.code,m,M,H&&H.response)}}},fa=new Map,vr=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let i=s.length,c=i,l,d,h=fa;for(;c--;)l=s[c],d=h.get(l),d===void 0&&h.set(l,d=c?new Map:la(e)),h=d;return d};vr();const _n={http:Pi,xhr:ta,fetch:{get:vr}};u.forEach(_n,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ur=t=>`- ${t}`,da=t=>u.isFunction(t)||t===null||t===!1;function ha(t,e){t=u.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let i=0;i<n;i++){r=t[i];let c;if(o=r,!da(r)&&(o=_n[(c=String(r)).toLowerCase()],o===void 0))throw new T(`Unknown adapter '${c}'`);if(o&&(u.isFunction(o)||(o=o.get(e))))break;s[c||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
|
|
4
|
+
`+i.map(Ur).join(`
|
|
5
|
+
`):" "+Ur(i[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+c,T.ERR_NOT_SUPPORT)}return o}const Hr={getAdapter:ha,adapters:_n};function On(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Rt(null,t)}function Br(t){return On(t),t.headers=oe.from(t.headers),t.data=Tn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Hr.getAdapter(t.adapter||At.adapter,t)(t).then(function(r){On(t),t.response=r;try{r.data=Tn.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=oe.from(r.headers),r},function(r){if(!Rr(r)&&(On(t),r&&r.response)){t.response=r.response;try{r.response.data=Tn.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=oe.from(r.response.headers)}return Promise.reject(r)})}const Yt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Yt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const $r={};Yt.transitional=function(e,n,r){function o(s,i){return"[Axios v"+En+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(e===!1)throw new T(o(i," has been removed"+(n?" in "+n:"")),T.ERR_DEPRECATED);return n&&!$r[i]&&($r[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,c):!0}},Yt.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function ma(t,e,n){if(typeof t!="object"||t===null)throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(i){const c=t[s],l=c===void 0||i(c,s,t);if(l!==!0)throw new T("option "+s+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new T("Unknown option "+s,T.ERR_BAD_OPTION)}}const jt={assertOptions:ma,validators:Yt},se=jt.validators;let Ye=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Er,response:new Er}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const i=o.stack.indexOf(`
|
|
6
6
|
`);return i===-1?"":o.stack.slice(i+1)})();try{if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
7
|
-
`),
|
|
8
|
-
`,i+1),l=
|
|
9
|
-
`+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Le(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&kt.assertOptions(r,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean),legacyInterceptorReqResOrdering:ue.transitional(ue.boolean)},!1),o!=null&&(u.isFunction(o)?n.paramsSerializer={serialize:o}:kt.assertOptions(o,{encode:ue.function,serialize:ue.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),kt.assertOptions(n,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&u.merge(s.common,s[n.method]);s&&u.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete s[E]}),n.headers=J.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;l=l&&y.synchronous;const m=n.transitional||Kt;m&&m.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let d,p=0,w;if(!l){const E=[fr.bind(this),void 0];for(E.unshift(...a),E.push(...f),w=E.length,d=Promise.resolve(n);p<w;)d=d.then(E[p++],E[p++]);return d}w=a.length;let b=n;for(;p<w;){const E=a[p++],y=a[p++];try{b=E(b)}catch(m){y.call(this,m);break}}try{d=fr.call(this,b)}catch(E){return Promise.reject(E)}for(p=0,w=f.length;p<w;)d=d.then(f[p++],f[p++]);return d}getUri(e){e=Le(this.defaults,e);const n=nr(e.baseURL,e.url,e.allowAbsoluteUrls);return Vn(n,e.params,e.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(e){ke.prototype[e]=function(n,r){return this.request(Le(r||{},{method:e,url:n,data:(r||{}).data}))}}),u.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,i,a){return this.request(Le(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}ke.prototype[e]=n(),e!=="query"&&(ke.prototype[e+"Form"]=n(!0))});let Si=class Do{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new ct(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Do(function(o){e=o}),cancel:e}}};function Pi(t){return function(n){return t.apply(null,n)}}function Mi(t){return u.isObject(t)&&t.isAxiosError===!0}const on={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(on).forEach(([t,e])=>{on[e]=t});function mr(t){const e=new ke(t),n=In(ke.prototype.request,e);return u.extend(n,ke.prototype,e,{allOwnKeys:!0}),u.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return mr(Le(t,o))},n}const W=mr(at);W.Axios=ke,W.CanceledError=ct,W.CancelToken=Si,W.isCancel=Jn,W.VERSION=tn,W.toFormData=Mt,W.AxiosError=T,W.Cancel=W.CanceledError,W.all=function(e){return Promise.all(e)},W.spread=Pi,W.isAxiosError=Mi,W.mergeConfig=Le,W.AxiosHeaders=J,W.formToJSON=t=>Kn(u.isHTMLForm(t)?new FormData(t):t),W.getAdapter=lr.getAdapter,W.HttpStatusCode=on,W.default=W;const{Axios:qu,AxiosError:Yu,CanceledError:zu,isCancel:ju,CancelToken:Gu,VERSION:Xu,all:Vu,Cancel:Qu,isAxiosError:Ku,spread:Ju,toFormData:Zu,AxiosHeaders:el,HttpStatusCode:tl,formToJSON:nl,getAdapter:rl,mergeConfig:ol,create:sl}=W,Ni=({error:t,message:e="알 수 없는 에러가 발생했습니다.",callback:n})=>W.isAxiosError(t)?(n?.(),{type:"axios",message:t.response?.data?.message??e,status:t.response?.status}):t instanceof Error?(n?.(),{type:"client",message:t.message||e}):(n?.(),{type:"unknown",message:e}),hr=(t,e={})=>{const{removeUndefined:n=!0,removeNull:r=!0,removeEmptyString:o=!0,removeEmptyArray:s=!0,removeEmptyObject:i=!0,normalizeNumbers:a=!1,normalizeBooleans:l=!1,normalizeNested:f=!1}=e,d=w=>{switch(!0){case(n&&w===void 0):return!0;case(r&&w===null):return!0;case(o&&w===""):return!0;case(s&&Array.isArray(w)&&w.length===0):return!0;case(i&&typeof w=="object"&&w!==null&&!Array.isArray(w)&&Object.keys(w).length===0):return!0;default:return!1}},p=w=>{if(typeof w=="object"&&w!==null){if(Array.isArray(w))return f?w.map(b=>p(b)).filter(b=>!d(b)):w;if(typeof w=="object")return f?hr(w,e):w}if(typeof w=="string"){const b=w.trim();if(l){const E=b.toLowerCase();if(E==="true")return!0;if(E==="false")return!1}return b}return a&&typeof w=="number"?String(w):w};return Object.fromEntries(Object.entries(t).map(([w,b])=>[w,p(b)]).filter(([,w])=>!d(w)))};function Oe(){return typeof window>"u"||"Deno"in globalThis}function Ci(){return!Oe()}function pr(){return Oe()?!1:/ipad|iphone/i.test(navigator.userAgent)}function gr(){return Oe()?!1:/Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.platform)}function wr(){return Oe()?!1:/Android/i.test(navigator.userAgent)}function Li(){return Oe()?!1:/MSIE|Trident/i.test(navigator.userAgent)}function yr(){return Oe()?!1:/KAKAOTALK/i.test(navigator.userAgent)}function sn(){return Oe()?!1:pr()?"ios":wr()?"android":"web"}function ki(){const t=sn();return t==="ios"||t==="android"}function Ii(){if(Oe())return"server";if(yr())return"kakao";const t=sn();return t==="ios"||t==="android"?t:gr()?"macos":"web"}const Fi={isServer:Oe,isClient:Ci,isIOS:pr,isAndroid:wr,isMacOS:gr,isIE:Li,isKakaoWebView:yr,isMobileWeb:ki,getOSByUserAgent:sn,getPlatform:Ii};const{entries:br,setPrototypeOf:Tr,isFrozen:vi,getPrototypeOf:Hi,getOwnPropertyDescriptor:Ui}=Object;let{freeze:Z,seal:le,create:je}=Object,{apply:an,construct:cn}=typeof Reflect<"u"&&Reflect;Z||(Z=function(e){return e}),le||(le=function(e){return e}),an||(an=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return e.apply(n,o)}),cn||(cn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new e(...r)});const ut=Y(Array.prototype.forEach),Bi=Y(Array.prototype.lastIndexOf),Er=Y(Array.prototype.pop),lt=Y(Array.prototype.push),Wi=Y(Array.prototype.splice),ee=Array.isArray,ft=Y(String.prototype.toLowerCase),un=Y(String.prototype.toString),_r=Y(String.prototype.match),Ge=Y(String.prototype.replace),Or=Y(String.prototype.indexOf),$i=Y(String.prototype.trim),qi=Y(Number.prototype.toString),Yi=Y(Boolean.prototype.toString),Ar=typeof BigInt>"u"?null:Y(BigInt.prototype.toString),Rr=typeof Symbol>"u"?null:Y(Symbol.prototype.toString),U=Y(Object.prototype.hasOwnProperty),dt=Y(Object.prototype.toString),V=Y(RegExp.prototype.test),It=zi(TypeError);function Y(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return an(t,e,r)}}function zi(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cn(t,n)}}function D(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ft;if(Tr&&Tr(t,null),!ee(e))return t;let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(vi(e)||(e[r]=s),o=s)}t[o]=!0}return t}function ji(t){for(let e=0;e<t.length;e++)U(t,e)||(t[e]=null);return t}function oe(t){const e=je(null);for(const[n,r]of br(t))U(t,n)&&(ee(r)?e[n]=ji(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=oe(r):e[n]=r);return e}function Gi(t){switch(typeof t){case"string":return t;case"number":return qi(t);case"boolean":return Yi(t);case"bigint":return Ar?Ar(t):"0";case"symbol":return Rr?Rr(t):"Symbol()";case"undefined":return dt(t);case"function":case"object":{if(t===null)return dt(t);const e=t,n=Xe(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:dt(r)}return dt(t)}default:return dt(t)}}function Xe(t,e){for(;t!==null;){const r=Ui(t,e);if(r){if(r.get)return Y(r.get);if(typeof r.value=="function")return Y(r.value)}t=Hi(t)}function n(){return null}return n}function Xi(t){try{return V(t,""),!0}catch{return!1}}const xr=Z(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ln=Z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fn=Z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Vi=Z(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dn=Z(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qi=Z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dr=Z(["#text"]),Sr=Z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mn=Z(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pr=Z(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ft=Z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ki=le(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ji=le(/<%[\w\W]*|[\w\W]*%>/gm),Zi=le(/\$\{[\w\W]*/gm),ea=le(/^data-[\-\w.\u00B7-\uFFFF]+$/),ta=le(/^aria-[\-\w]+$/),Mr=le(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),na=le(/^(?:\w+script|data):/i),ra=le(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nr=le(/^html$/i),oa=le(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cr=Object.freeze({__proto__:null,ARIA_ATTR:ta,ATTR_WHITESPACE:ra,CUSTOM_ELEMENT:oa,DATA_ATTR:ea,DOCTYPE_NAME:Nr,ERB_EXPR:Ji,IS_ALLOWED_URI:Mr,IS_SCRIPT_OR_DATA:na,MUSTACHE_EXPR:Ki,TMPLIT_EXPR:Zi});const mt={element:1,text:3,progressingInstruction:7,comment:8,document:9},sa=function(){return typeof window>"u"?null:window},ia=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Lr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sa();const e=A=>kr(A);if(e.version="3.4.2",e.removed=[],!t||!t.document||t.document.nodeType!==mt.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:f,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:w,trustedTypes:b}=t,E=l.prototype,y=Xe(E,"cloneNode"),m=Xe(E,"remove"),g=Xe(E,"nextSibling"),x=Xe(E,"childNodes"),R=Xe(E,"parentNode");if(typeof i=="function"){const A=n.createElement("template");A.content&&A.content.ownerDocument&&(n=A.content.ownerDocument)}let O,k="";const{implementation:se,createNodeIterator:ve,createDocumentFragment:wt,getElementsByTagName:Bt}=n,{importNode:be}=r;let H=Lr();e.isSupported=typeof br=="function"&&typeof R=="function"&&se&&se.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ae,ERB_EXPR:He,TMPLIT_EXPR:te,DATA_ATTR:yt,ARIA_ATTR:Ue,IS_SCRIPT_OR_DATA:En,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:Te}=Cr;let{IS_ALLOWED_URI:ne}=Cr,I=null;const Tt=D({},[...xr,...ln,...fn,...dn,...Dr]);let M=null;const me=D({},[...Sr,...mn,...Pr,...Ft]);let C=Object.seal(je(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,ie=null;const P=Object.seal(je(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,Ne=!0,Be=!1,Et=!0,De=!1,he=!0,We=!1,_n=!1,On=!1,Je=!1,Wt=!1,$t=!1,ao=!0,co=!1;const uo="user-content-";let An=!0,_t=!1,Ze={},Ee=null;const Rn=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let lo=null;const fo=D({},["audio","video","img","source","image","track"]);let xn=null;const mo=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Yt="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml";let et=_e,Dn=!1,Sn=null;const Mu=D({},[qt,Yt,_e],un);let Pn=D({},["mi","mo","mn","ms","mtext"]),Mn=D({},["annotation-xml"]);const Nu=D({},["title","style","font","a","script"]);let Ot=null;const Cu=["application/xhtml+xml","text/html"],Lu="text/html";let j=null,tt=null;const ku=n.createElement("form"),ho=function(c){return c instanceof RegExp||c instanceof Function},Nn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt&&tt===c)return;(!c||typeof c!="object")&&(c={}),c=oe(c),Ot=Cu.indexOf(c.PARSER_MEDIA_TYPE)===-1?Lu:c.PARSER_MEDIA_TYPE,j=Ot==="application/xhtml+xml"?un:ft,I=U(c,"ALLOWED_TAGS")&&ee(c.ALLOWED_TAGS)?D({},c.ALLOWED_TAGS,j):Tt,M=U(c,"ALLOWED_ATTR")&&ee(c.ALLOWED_ATTR)?D({},c.ALLOWED_ATTR,j):me,Sn=U(c,"ALLOWED_NAMESPACES")&&ee(c.ALLOWED_NAMESPACES)?D({},c.ALLOWED_NAMESPACES,un):Mu,xn=U(c,"ADD_URI_SAFE_ATTR")&&ee(c.ADD_URI_SAFE_ATTR)?D(oe(mo),c.ADD_URI_SAFE_ATTR,j):mo,lo=U(c,"ADD_DATA_URI_TAGS")&&ee(c.ADD_DATA_URI_TAGS)?D(oe(fo),c.ADD_DATA_URI_TAGS,j):fo,Ee=U(c,"FORBID_CONTENTS")&&ee(c.FORBID_CONTENTS)?D({},c.FORBID_CONTENTS,j):Rn,Re=U(c,"FORBID_TAGS")&&ee(c.FORBID_TAGS)?D({},c.FORBID_TAGS,j):oe({}),ie=U(c,"FORBID_ATTR")&&ee(c.FORBID_ATTR)?D({},c.FORBID_ATTR,j):oe({}),Ze=U(c,"USE_PROFILES")?c.USE_PROFILES&&typeof c.USE_PROFILES=="object"?oe(c.USE_PROFILES):c.USE_PROFILES:!1,xe=c.ALLOW_ARIA_ATTR!==!1,Ne=c.ALLOW_DATA_ATTR!==!1,Be=c.ALLOW_UNKNOWN_PROTOCOLS||!1,Et=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=c.SAFE_FOR_TEMPLATES||!1,he=c.SAFE_FOR_XML!==!1,We=c.WHOLE_DOCUMENT||!1,Je=c.RETURN_DOM||!1,Wt=c.RETURN_DOM_FRAGMENT||!1,$t=c.RETURN_TRUSTED_TYPE||!1,On=c.FORCE_BODY||!1,ao=c.SANITIZE_DOM!==!1,co=c.SANITIZE_NAMED_PROPS||!1,An=c.KEEP_CONTENT!==!1,_t=c.IN_PLACE||!1,ne=Xi(c.ALLOWED_URI_REGEXP)?c.ALLOWED_URI_REGEXP:Mr,et=typeof c.NAMESPACE=="string"?c.NAMESPACE:_e,Pn=U(c,"MATHML_TEXT_INTEGRATION_POINTS")&&c.MATHML_TEXT_INTEGRATION_POINTS&&typeof c.MATHML_TEXT_INTEGRATION_POINTS=="object"?oe(c.MATHML_TEXT_INTEGRATION_POINTS):D({},["mi","mo","mn","ms","mtext"]),Mn=U(c,"HTML_INTEGRATION_POINTS")&&c.HTML_INTEGRATION_POINTS&&typeof c.HTML_INTEGRATION_POINTS=="object"?oe(c.HTML_INTEGRATION_POINTS):D({},["annotation-xml"]);const h=U(c,"CUSTOM_ELEMENT_HANDLING")&&c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING=="object"?oe(c.CUSTOM_ELEMENT_HANDLING):je(null);if(C=je(null),U(h,"tagNameCheck")&&ho(h.tagNameCheck)&&(C.tagNameCheck=h.tagNameCheck),U(h,"attributeNameCheck")&&ho(h.attributeNameCheck)&&(C.attributeNameCheck=h.attributeNameCheck),U(h,"allowCustomizedBuiltInElements")&&typeof h.allowCustomizedBuiltInElements=="boolean"&&(C.allowCustomizedBuiltInElements=h.allowCustomizedBuiltInElements),De&&(Ne=!1),Wt&&(Je=!0),Ze&&(I=D({},Dr),M=je(null),Ze.html===!0&&(D(I,xr),D(M,Sr)),Ze.svg===!0&&(D(I,ln),D(M,mn),D(M,Ft)),Ze.svgFilters===!0&&(D(I,fn),D(M,mn),D(M,Ft)),Ze.mathMl===!0&&(D(I,dn),D(M,Pr),D(M,Ft))),P.tagCheck=null,P.attributeCheck=null,U(c,"ADD_TAGS")&&(typeof c.ADD_TAGS=="function"?P.tagCheck=c.ADD_TAGS:ee(c.ADD_TAGS)&&(I===Tt&&(I=oe(I)),D(I,c.ADD_TAGS,j))),U(c,"ADD_ATTR")&&(typeof c.ADD_ATTR=="function"?P.attributeCheck=c.ADD_ATTR:ee(c.ADD_ATTR)&&(M===me&&(M=oe(M)),D(M,c.ADD_ATTR,j))),U(c,"ADD_URI_SAFE_ATTR")&&ee(c.ADD_URI_SAFE_ATTR)&&D(xn,c.ADD_URI_SAFE_ATTR,j),U(c,"FORBID_CONTENTS")&&ee(c.FORBID_CONTENTS)&&(Ee===Rn&&(Ee=oe(Ee)),D(Ee,c.FORBID_CONTENTS,j)),U(c,"ADD_FORBID_CONTENTS")&&ee(c.ADD_FORBID_CONTENTS)&&(Ee===Rn&&(Ee=oe(Ee)),D(Ee,c.ADD_FORBID_CONTENTS,j)),An&&(I["#text"]=!0),We&&D(I,["html","head","body"]),I.table&&(D(I,["tbody"]),delete Re.tbody),c.TRUSTED_TYPES_POLICY){if(typeof c.TRUSTED_TYPES_POLICY.createHTML!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof c.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=c.TRUSTED_TYPES_POLICY,k=O.createHTML("")}else O===void 0&&(O=ia(b,o)),O!==null&&typeof k=="string"&&(k=O.createHTML(""));Z&&Z(c),tt=c},po=D({},[...ln,...fn,...Vi]),go=D({},[...dn,...Qi]),Iu=function(c){let h=R(c);(!h||!h.tagName)&&(h={namespaceURI:et,tagName:"template"});const _=ft(c.tagName),F=ft(h.tagName);return Sn[c.namespaceURI]?c.namespaceURI===Yt?h.namespaceURI===_e?_==="svg":h.namespaceURI===qt?_==="svg"&&(F==="annotation-xml"||Pn[F]):!!po[_]:c.namespaceURI===qt?h.namespaceURI===_e?_==="math":h.namespaceURI===Yt?_==="math"&&Mn[F]:!!go[_]:c.namespaceURI===_e?h.namespaceURI===Yt&&!Mn[F]||h.namespaceURI===qt&&!Pn[F]?!1:!go[_]&&(Nu[_]||!po[_]):!!(Ot==="application/xhtml+xml"&&Sn[c.namespaceURI]):!1},pe=function(c){lt(e.removed,{element:c});try{R(c).removeChild(c)}catch{m(c)}},$e=function(c,h){try{lt(e.removed,{attribute:h.getAttributeNode(c),from:h})}catch{lt(e.removed,{attribute:null,from:h})}if(h.removeAttribute(c),c==="is")if(Je||Wt)try{pe(h)}catch{}else try{h.setAttribute(c,"")}catch{}},wo=function(c){let h=null,_=null;if(On)c="<remove></remove>"+c;else{const z=_r(c,/^[\r\n\t ]+/);_=z&&z[0]}Ot==="application/xhtml+xml"&&et===_e&&(c='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+c+"</body></html>");const F=O?O.createHTML(c):c;if(et===_e)try{h=new w().parseFromString(F,Ot)}catch{}if(!h||!h.documentElement){h=se.createDocument(et,"template",null);try{h.documentElement.innerHTML=Dn?k:F}catch{}}const K=h.body||h.documentElement;return c&&_&&K.insertBefore(n.createTextNode(_),K.childNodes[0]||null),et===_e?Bt.call(h,We?"html":"body")[0]:We?h.documentElement:K},yo=function(c){return ve.call(c.ownerDocument||c,c,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Cn=function(c){return c instanceof p&&(typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||!(c.attributes instanceof d)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function")},Ln=function(c){return typeof a=="function"&&c instanceof a};function Se(A,c,h){ut(A,_=>{_.call(e,c,h,tt)})}const bo=function(c){let h=null;if(Se(H.beforeSanitizeElements,c,null),Cn(c))return pe(c),!0;const _=j(c.nodeName);if(Se(H.uponSanitizeElement,c,{tagName:_,allowedTags:I}),he&&c.hasChildNodes()&&!Ln(c.firstElementChild)&&V(/<[/\w!]/g,c.innerHTML)&&V(/<[/\w!]/g,c.textContent)||he&&c.namespaceURI===_e&&_==="style"&&Ln(c.firstElementChild)||c.nodeType===mt.progressingInstruction||he&&c.nodeType===mt.comment&&V(/<[/\w]/g,c.data))return pe(c),!0;if(Re[_]||!(P.tagCheck instanceof Function&&P.tagCheck(_))&&!I[_]){if(!Re[_]&&Eo(_)&&(C.tagNameCheck instanceof RegExp&&V(C.tagNameCheck,_)||C.tagNameCheck instanceof Function&&C.tagNameCheck(_)))return!1;if(An&&!Ee[_]){const F=R(c)||c.parentNode,K=x(c)||c.childNodes;if(K&&F){const z=K.length;for(let ae=z-1;ae>=0;--ae){const fe=y(K[ae],!0);F.insertBefore(fe,g(c))}}}return pe(c),!0}return c instanceof l&&!Iu(c)||(_==="noscript"||_==="noembed"||_==="noframes")&&V(/<\/no(script|embed|frames)/i,c.innerHTML)?(pe(c),!0):(De&&c.nodeType===mt.text&&(h=c.textContent,ut([Ae,He,te],F=>{h=Ge(h,F," ")}),c.textContent!==h&&(lt(e.removed,{element:c.cloneNode()}),c.textContent=h)),Se(H.afterSanitizeElements,c,null),!1)},To=function(c,h,_){if(ie[h]||ao&&(h==="id"||h==="name")&&(_ in n||_ in ku))return!1;const F=M[h]||P.attributeCheck instanceof Function&&P.attributeCheck(h,c);if(!(Ne&&!ie[h]&&V(yt,h))){if(!(xe&&V(Ue,h))){if(!F||ie[h]){if(!(Eo(c)&&(C.tagNameCheck instanceof RegExp&&V(C.tagNameCheck,c)||C.tagNameCheck instanceof Function&&C.tagNameCheck(c))&&(C.attributeNameCheck instanceof RegExp&&V(C.attributeNameCheck,h)||C.attributeNameCheck instanceof Function&&C.attributeNameCheck(h,c))||h==="is"&&C.allowCustomizedBuiltInElements&&(C.tagNameCheck instanceof RegExp&&V(C.tagNameCheck,_)||C.tagNameCheck instanceof Function&&C.tagNameCheck(_))))return!1}else if(!xn[h]){if(!V(ne,Ge(_,bt,""))){if(!((h==="src"||h==="xlink:href"||h==="href")&&c!=="script"&&Or(_,"data:")===0&&lo[c])){if(!(Be&&!V(En,Ge(_,bt,"")))){if(_)return!1}}}}}}return!0},Fu=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Eo=function(c){return!Fu[ft(c)]&&V(Te,c)},_o=function(c){Se(H.beforeSanitizeAttributes,c,null);const{attributes:h}=c;if(!h||Cn(c))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let F=h.length;for(;F--;){const K=h[F],{name:z,namespaceURI:ae,value:fe}=K,ge=j(z),kn=fe;let X=z==="value"?kn:$i(kn);if(_.attrName=ge,_.attrValue=X,_.keepAttr=!0,_.forceKeepAttr=void 0,Se(H.uponSanitizeAttribute,c,_),X=_.attrValue,co&&(ge==="id"||ge==="name")&&Or(X,uo)!==0&&($e(z,c),X=uo+X),he&&V(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,X)){$e(z,c);continue}if(ge==="attributename"&&_r(X,"href")){$e(z,c);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){$e(z,c);continue}if(!Et&&V(/\/>/i,X)){$e(z,c);continue}De&&ut([Ae,He,te],Ro=>{X=Ge(X,Ro," ")});const Ao=j(c.nodeName);if(!To(Ao,ge,X)){$e(z,c);continue}if(O&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!ae)switch(b.getAttributeType(Ao,ge)){case"TrustedHTML":{X=O.createHTML(X);break}case"TrustedScriptURL":{X=O.createScriptURL(X);break}}if(X!==kn)try{ae?c.setAttributeNS(ae,z,X):c.setAttribute(z,X),Cn(c)?pe(c):Er(e.removed)}catch{$e(z,c)}}Se(H.afterSanitizeAttributes,c,null)},Oo=function(c){let h=null;const _=yo(c);for(Se(H.beforeSanitizeShadowDOM,c,null);h=_.nextNode();)Se(H.uponSanitizeShadowNode,h,null),bo(h),_o(h),h.content instanceof s&&Oo(h.content);Se(H.afterSanitizeShadowDOM,c,null)};return e.sanitize=function(A){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,_=null,F=null,K=null;if(Dn=!A,Dn&&(A="<!-->"),typeof A!="string"&&!Ln(A)&&(A=Gi(A),typeof A!="string"))throw It("dirty is not a string, aborting");if(!e.isSupported)return A;if(_n||Nn(c),e.removed=[],typeof A=="string"&&(_t=!1),_t){const fe=A.nodeName;if(typeof fe=="string"){const ge=j(fe);if(!I[ge]||Re[ge])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof a)h=wo("<!---->"),_=h.ownerDocument.importNode(A,!0),_.nodeType===mt.element&&_.nodeName==="BODY"||_.nodeName==="HTML"?h=_:h.appendChild(_);else{if(!Je&&!De&&!We&&A.indexOf("<")===-1)return O&&$t?O.createHTML(A):A;if(h=wo(A),!h)return Je?null:$t?k:""}h&&On&&pe(h.firstChild);const z=yo(_t?A:h);for(;F=z.nextNode();)bo(F),_o(F),F.content instanceof s&&Oo(F.content);if(_t)return A;if(Je){if(De){h.normalize();let fe=h.innerHTML;ut([Ae,He,te],ge=>{fe=Ge(fe,ge," ")}),h.innerHTML=fe}if(Wt)for(K=wt.call(h.ownerDocument);h.firstChild;)K.appendChild(h.firstChild);else K=h;return(M.shadowroot||M.shadowrootmode)&&(K=be.call(r,K,!0)),K}let ae=We?h.outerHTML:h.innerHTML;return We&&I["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&V(Nr,h.ownerDocument.doctype.name)&&(ae="<!DOCTYPE "+h.ownerDocument.doctype.name+`>
|
|
10
|
-
`+ae),De&&ut([Ae,He,te],fe=>{ae=Ge(ae,fe," ")}),O&&$t?O.createHTML(ae):ae},e.setConfig=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn(A),_n=!0},e.clearConfig=function(){tt=null,_n=!1},e.isValidAttribute=function(A,c,h){tt||Nn({});const _=j(A),F=j(c);return To(_,F,h)},e.addHook=function(A,c){typeof c=="function"&<(H[A],c)},e.removeHook=function(A,c){if(c!==void 0){const h=Bi(H[A],c);return h===-1?void 0:Wi(H[A],h,1)[0]}return Er(H[A])},e.removeHooks=function(A){H[A]=[]},e.removeAllHooks=function(){H=Lr()},e}var aa=kr();const ca={addElements:[],allowElements:[],allowAttributes:{},dropElements:[],dropAttributes:{}},Ir=t=>t?Array.from(new Set(Object.values(t).flat())):[],ua=({content:t,config:e})=>{const n={...ca,...e},r=Ir(n.allowAttributes),o=r.length>0?{ALLOWED_ATTR:[...new Set([...r,"class","id","style"])]}:{},s=Ir(n.dropAttributes),i=s.length>0?{FORBID_ATTR:s}:{},a=n.addElements&&n.addElements.length>0&&!(n.allowElements&&n.allowElements.length>0)?{ADD_TAGS:n.addElements}:{},l=n.allowElements&&n.allowElements.length>0?{ALLOWED_TAGS:n.allowElements}:{},f=n.dropElements&&n.dropElements.length>0?{FORBID_TAGS:n.dropElements}:{},d={ALLOW_UNKNOWN_PROTOCOLS:!1,...a,...l,...i,...o,...f};return aa.sanitize(t,d)},Fr=6048e5,la=864e5,vr=6e4,Hr=36e5,fa=1e3,Ur=Symbol.for("constructDateFrom");function G(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Ur in t?t[Ur](e):t instanceof Date?new t.constructor(e):new Date(e)}function N(t,e){return G(e||t,t)}function Br(t,e,n){const r=N(t,n?.in);return isNaN(e)?G(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let da={};function Ve(){return da}function Pe(t,e){const n=Ve(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=N(t,e?.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Qe(t,e){return Pe(t,{...e,weekStartsOn:1})}function Wr(t,e){const n=N(t,e?.in),r=n.getFullYear(),o=G(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Qe(o),i=G(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=Qe(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function vt(t){const e=N(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Ie(t,...e){const n=G.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function $r(t,e){const n=N(t,e?.in);return n.setHours(0,0,0,0),n}function qr(t,e,n){const[r,o]=Ie(n?.in,t,e),s=$r(r),i=$r(o),a=+s-vt(s),l=+i-vt(i);return Math.round((a-l)/la)}function ma(t,e){const n=Wr(t,e),r=G(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Qe(r)}function ht(t,e){const n=+N(t)-+N(e);return n<0?-1:n>0?1:n}function ha(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function pa(t){return!(!ha(t)&&typeof t!="number"||isNaN(+N(t)))}function ga(t,e,n){const[r,o]=Ie(n?.in,t,e),s=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return s*12+i}function wa(t,e,n){const[r,o]=Ie(n?.in,t,e);return r.getFullYear()-o.getFullYear()}function Yr(t,e,n){const[r,o]=Ie(n?.in,t,e),s=zr(r,o),i=Math.abs(qr(r,o));r.setDate(r.getDate()-s*i);const a=+(zr(r,o)===-s),l=s*(i-a);return l===0?0:l}function zr(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function hn(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function ya(t,e,n){const[r,o]=Ie(n?.in,t,e),s=(+r-+o)/Hr;return hn(n?.roundingMethod)(s)}function ba(t,e){return+N(t)-+N(e)}function Ta(t,e,n){const r=ba(t,e)/vr;return hn(n?.roundingMethod)(r)}function Ea(t,e){const n=N(t,e?.in);return n.setHours(23,59,59,999),n}function _a(t,e){const n=N(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Oa(t,e){const n=N(t,e?.in);return+Ea(n,e)==+_a(n,e)}function Aa(t,e,n){const[r,o,s]=Ie(n?.in,t,t,e),i=ht(o,s),a=Math.abs(ga(o,s));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*a);let l=ht(o,s)===-i;Oa(r)&&a===1&&ht(r,s)===1&&(l=!1);const f=i*(a-+l);return f===0?0:f}function Ra(t,e,n){const r=Yr(t,e,n)/7;return hn(n?.roundingMethod)(r)}function xa(t,e,n){const[r,o]=Ie(n?.in,t,e),s=ht(r,o),i=Math.abs(wa(r,o));r.setFullYear(1584),o.setFullYear(1584);const a=ht(r,o)===-s,l=s*(i-+a);return l===0?0:l}function Da(t,e){const n=N(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Sa={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Pa=(t,e,n)=>{let r;const o=Sa[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pn(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ma={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Na={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ca={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},La={date:pn({formats:Ma,defaultWidth:"full"}),time:pn({formats:Na,defaultWidth:"full"}),dateTime:pn({formats:Ca,defaultWidth:"full"})},ka={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ia=(t,e,n,r)=>ka[t];function pt(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):i;o=t.formattingValues[a]||t.formattingValues[i]}else{const i=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;o=t.values[a]||t.values[i]}const s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}const Fa={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},va={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ha={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ua={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ba={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$a={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:pt({values:Fa,defaultWidth:"wide"}),quarter:pt({values:va,defaultWidth:"wide",argumentCallback:t=>t-1}),month:pt({values:Ha,defaultWidth:"wide"}),day:pt({values:Ua,defaultWidth:"wide"}),dayPeriod:pt({values:Ba,defaultWidth:"wide",formattingValues:Wa,defaultFormattingWidth:"wide"})};function gt(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const i=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Ya(a,p=>p.test(i)):qa(a,p=>p.test(i));let f;f=t.valueCallback?t.valueCallback(l):l,f=n.valueCallback?n.valueCallback(f):f;const d=e.slice(i.length);return{value:f,rest:d}}}function qa(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Ya(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function za(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],s=e.match(t.parsePattern);if(!s)return null;let i=t.valueCallback?t.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const a=e.slice(o.length);return{value:i,rest:a}}}const ja=/^(\d+)(th|st|nd|rd)?/i,Ga=/\d+/i,Xa={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Va={any:[/^b/i,/^(a|c)/i]},Qa={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ka={any:[/1/i,/2/i,/3/i,/4/i]},Ja={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Za={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ec={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},tc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oc={ordinalNumber:za({matchPattern:ja,parsePattern:Ga,valueCallback:t=>parseInt(t,10)}),era:gt({matchPatterns:Xa,defaultMatchWidth:"wide",parsePatterns:Va,defaultParseWidth:"any"}),quarter:gt({matchPatterns:Qa,defaultMatchWidth:"wide",parsePatterns:Ka,defaultParseWidth:"any",valueCallback:t=>t+1}),month:gt({matchPatterns:Ja,defaultMatchWidth:"wide",parsePatterns:Za,defaultParseWidth:"any"}),day:gt({matchPatterns:ec,defaultMatchWidth:"wide",parsePatterns:tc,defaultParseWidth:"any"}),dayPeriod:gt({matchPatterns:nc,defaultMatchWidth:"any",parsePatterns:rc,defaultParseWidth:"any"})},jr={code:"en-US",formatDistance:Pa,formatLong:La,formatRelative:Ia,localize:$a,match:oc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sc(t,e){const n=N(t,e?.in);return qr(n,Da(n))+1}function Gr(t,e){const n=N(t,e?.in),r=+Qe(n)-+ma(n);return Math.round(r/Fr)+1}function gn(t,e){const n=N(t,e?.in),r=n.getFullYear(),o=Ve(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=G(e?.in||t,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const a=Pe(i,e),l=G(e?.in||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const f=Pe(l,e);return+n>=+a?r+1:+n>=+f?r:r-1}function ic(t,e){const n=Ve(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=gn(t,e),s=G(e?.in||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Pe(s,e)}function Xr(t,e){const n=N(t,e?.in),r=+Pe(n,e)-+ic(n,e);return Math.round(r/Fr)+1}function S(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Me={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return S(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):S(n+1,2)},d(t,e){return S(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return S(t.getHours()%12||12,e.length)},H(t,e){return S(t.getHours(),e.length)},m(t,e){return S(t.getMinutes(),e.length)},s(t,e){return S(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return S(o,e.length)}},Ke={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vr={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Me.y(t,e)},Y:function(t,e,n,r){const o=gn(t,r),s=o>0?o:1-o;if(e==="YY"){const i=s%100;return S(i,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):S(s,e.length)},R:function(t,e){const n=Wr(t);return S(n,e.length)},u:function(t,e){const n=t.getFullYear();return S(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return S(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return S(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Me.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return S(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=Xr(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):S(o,e.length)},I:function(t,e,n){const r=Gr(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):S(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Me.d(t,e)},D:function(t,e,n){const r=sc(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):S(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return S(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return S(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return S(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=Ke.noon:r===0?o=Ke.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=Ke.evening:r>=12?o=Ke.afternoon:r>=4?o=Ke.morning:o=Ke.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Me.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Me.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Me.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Me.s(t,e)},S:function(t,e){return Me.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Kr(r);case"XXXX":case"XX":return Fe(r);default:return Fe(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Kr(r);case"xxxx":case"xx":return Fe(r);default:return Fe(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Qr(r,":");default:return"GMT"+Fe(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Qr(r,":");default:return"GMT"+Fe(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return S(r,e.length)},T:function(t,e,n){return S(+t,e.length)}};function Qr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+e+S(s,2)}function Kr(t,e){return t%60===0?(t>0?"-":"+")+S(Math.abs(t)/60,2):Fe(t,e)}function Fe(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=S(Math.trunc(r/60),2),s=S(r%60,2);return n+o+e+s}const Jr=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Zr=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},wn={p:Zr,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Jr(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Jr(r,e)).replace("{{time}}",Zr(o,e))}},ac=/^D+$/,cc=/^Y+$/,uc=["D","DD","YY","YYYY"];function eo(t){return ac.test(t)}function to(t){return cc.test(t)}function yn(t,e,n){const r=lc(t,e,n);if(console.warn(r),uc.includes(t))throw new RangeError(r)}function lc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mc=/^'([^]*?)'?$/,hc=/''/g,pc=/[a-zA-Z]/;function gc(t,e,n){const r=Ve(),o=r.locale??jr,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=N(t,n?.in);if(!pa(a))throw new RangeError("Invalid time value");let l=e.match(dc).map(d=>{const p=d[0];if(p==="p"||p==="P"){const w=wn[p];return w(d,o.formatLong)}return d}).join("").match(fc).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const p=d[0];if(p==="'")return{isToken:!1,value:wc(d)};if(Vr[p])return{isToken:!0,value:d};if(p.match(pc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const f={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return l.map(d=>{if(!d.isToken)return d.value;const p=d.value;(to(p)||eo(p))&&yn(p,e,String(t));const w=Vr[p[0]];return w(a,p,o.localize,f)}).join("")}function wc(t){const e=t.match(mc);return e?e[1].replace(hc,"'"):t}function yc(t,e){const n=N(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",o="";const s="-",i=":";{const a=S(n.getDate(),2),l=S(n.getMonth()+1,2);r=`${S(n.getFullYear(),4)}${s}${l}${s}${a}`}{const a=n.getTimezoneOffset();if(a!==0){const b=Math.abs(a),E=S(Math.trunc(b/60),2),y=S(b%60,2);o=`${a<0?"+":"-"}${E}:${y}`}else o="Z";const l=S(n.getHours(),2),f=S(n.getMinutes(),2),d=S(n.getSeconds(),2),p=r===""?"":"T",w=[l,f,d].join(i);r=`${r}${p}${w}${o}`}return r}function bc(){return Object.assign({},Ve())}function Tc(t,e){const n=N(t,e?.in).getDay();return n===0?7:n}function Ec(t,e){return+N(t)>+N(e)}function _c(t,e){return+N(t)<+N(e)}function Oc(t,e){const n=Ac(e)?new e(0):G(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function Ac(t){return typeof t=="function"&&t.prototype?.constructor===t}const Rc=10;class no{subPriority=0;validate(e,n){return!0}}class xc extends no{constructor(e,n,r,o,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=o,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class Dc extends no{priority=Rc;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>G(n,r))}set(e,n){return n.timestampIsSet?e:G(e,Oc(e,this.context))}}class L{run(e,n,r,o){const s=this.parse(e,n,r,o);return s?{setter:new xc(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class Sc extends L{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const $={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},we={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(t,e){return t&&{value:e(t.value),rest:t.rest}}function v(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ye(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*Hr+s*vr+i*fa),rest:e.slice(n[0].length)}}function ro(t){return v($.anyDigitsSigned,t)}function B(t,e){switch(t){case 1:return v($.singleDigit,e);case 2:return v($.twoDigits,e);case 3:return v($.threeDigits,e);case 4:return v($.fourDigits,e);default:return v(new RegExp("^\\d{1,"+t+"}"),e)}}function Ht(t,e){switch(t){case 1:return v($.singleDigitSigned,e);case 2:return v($.twoDigitsSigned,e);case 3:return v($.threeDigitsSigned,e);case 4:return v($.fourDigitsSigned,e);default:return v(new RegExp("^-?\\d{1,"+t+"}"),e)}}function bn(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function oo(t,e){const n=e>0,r=n?e:1-e;let o;if(r<=50)o=t||100;else{const s=r+50,i=Math.trunc(s/100)*100,a=t>=s%100;o=t+i-(a?100:0)}return n?o:1-o}function so(t){return t%400===0||t%4===0&&t%100!==0}class Pc extends L{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return q(B(4,e),o);case"yo":return q(r.ordinalNumber(e,{unit:"year"}),o);default:return q(B(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const o=e.getFullYear();if(r.isTwoDigitYear){const i=oo(r.year,o);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const s=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class Mc extends L{priority=130;parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return q(B(4,e),o);case"Yo":return q(r.ordinalNumber(e,{unit:"year"}),o);default:return q(B(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,o){const s=gn(e,o);if(r.isTwoDigitYear){const a=oo(r.year,s);return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Pe(e,o)}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Pe(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Nc extends L{priority=130;parse(e,n){return Ht(n==="R"?4:n.length,e)}set(e,n,r){const o=G(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Qe(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Cc extends L{priority=130;parse(e,n){return Ht(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Lc extends L{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return B(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class kc extends L{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return B(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Ic extends L{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"M":return q(v($.month,e),o);case"MM":return q(B(2,e),o);case"Mo":return q(r.ordinalNumber(e,{unit:"month"}),o);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Fc extends L{priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"L":return q(v($.month,e),o);case"LL":return q(B(2,e),o);case"Lo":return q(r.ordinalNumber(e,{unit:"month"}),o);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function vc(t,e,n){const r=N(t,n?.in),o=Xr(r,n)-e;return r.setDate(r.getDate()-o*7),N(r,n?.in)}class Hc extends L{priority=100;parse(e,n,r){switch(n){case"w":return v($.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,o){return Pe(vc(e,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Uc(t,e,n){const r=N(t,n?.in),o=Gr(r,n)-e;return r.setDate(r.getDate()-o*7),r}class Bc extends L{priority=100;parse(e,n,r){switch(n){case"I":return v($.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Qe(Uc(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Wc=[31,28,31,30,31,30,31,31,30,31,30,31],$c=[31,29,31,30,31,30,31,31,30,31,30,31];class qc extends L{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return v($.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return B(n.length,e)}}validate(e,n){const r=e.getFullYear(),o=so(r),s=e.getMonth();return o?n>=1&&n<=$c[s]:n>=1&&n<=Wc[s]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Yc extends L{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return v($.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return B(n.length,e)}}validate(e,n){const r=e.getFullYear();return so(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Tn(t,e,n){const r=Ve(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=N(t,n?.in),i=s.getDay(),l=(e%7+7)%7,f=7-o,d=e<0||e>6?e-(i+f)%7:(l+f)%7-(i+f)%7;return Br(s,d,n)}class zc extends L{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Tn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class jc extends L{priority=90;parse(e,n,r,o){const s=i=>{const a=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return q(B(n.length,e),s);case"eo":return q(r.ordinalNumber(e,{unit:"day"}),s);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Tn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class Gc extends L{priority=90;parse(e,n,r,o){const s=i=>{const a=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return q(B(n.length,e),s);case"co":return q(r.ordinalNumber(e,{unit:"day"}),s);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Tn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Xc(t,e,n){const r=N(t,n?.in),o=Tc(r,n),s=e-o;return Br(r,s,n)}class Vc extends L{priority=90;parse(e,n,r){const o=s=>s===0?7:s;switch(n){case"i":case"ii":return B(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return q(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return q(r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return q(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);default:return q(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=Xc(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Qc extends L{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(bn(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class Kc extends L{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(bn(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class Jc extends L{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(bn(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class Zc extends L{priority=70;parse(e,n,r){switch(n){case"h":return v($.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const o=e.getHours()>=12;return o&&r<12?e.setHours(r+12,0,0,0):!o&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class eu extends L{priority=70;parse(e,n,r){switch(n){case"H":return v($.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class tu extends L{priority=70;parse(e,n,r){switch(n){case"K":return v($.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class nu extends L{priority=70;parse(e,n,r){switch(n){case"k":return v($.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const o=r<=24?r%24:r;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class ru extends L{priority=60;parse(e,n,r){switch(n){case"m":return v($.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class ou extends L{priority=50;parse(e,n,r){switch(n){case"s":return v($.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class su extends L{priority=30;parse(e,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return q(B(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class iu extends L{priority=10;parse(e,n){switch(n){case"X":return ye(we.basicOptionalMinutes,e);case"XX":return ye(we.basic,e);case"XXXX":return ye(we.basicOptionalSeconds,e);case"XXXXX":return ye(we.extendedOptionalSeconds,e);default:return ye(we.extended,e)}}set(e,n,r){return n.timestampIsSet?e:G(e,e.getTime()-vt(e)-r)}incompatibleTokens=["t","T","x"]}class au extends L{priority=10;parse(e,n){switch(n){case"x":return ye(we.basicOptionalMinutes,e);case"xx":return ye(we.basic,e);case"xxxx":return ye(we.basicOptionalSeconds,e);case"xxxxx":return ye(we.extendedOptionalSeconds,e);default:return ye(we.extended,e)}}set(e,n,r){return n.timestampIsSet?e:G(e,e.getTime()-vt(e)-r)}incompatibleTokens=["t","T","X"]}class cu extends L{priority=40;parse(e){return ro(e)}set(e,n,r){return[G(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class uu extends L{priority=20;parse(e){return ro(e)}set(e,n,r){return[G(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const lu={G:new Sc,y:new Pc,Y:new Mc,R:new Nc,u:new Cc,Q:new Lc,q:new kc,M:new Ic,L:new Fc,w:new Hc,I:new Bc,d:new qc,D:new Yc,E:new zc,e:new jc,c:new Gc,i:new Vc,a:new Qc,b:new Kc,B:new Jc,h:new Zc,H:new eu,K:new tu,k:new nu,m:new ru,s:new ou,S:new su,X:new iu,x:new au,t:new cu,T:new uu},fu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,du=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mu=/^'([^]*?)'?$/,hu=/''/g,pu=/\S/,gu=/[a-zA-Z]/;function wu(t,e,n,r){const o=()=>G(n,NaN),s=bc(),i=s.locale??jr,a=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?o():N(n,r?.in);const f={firstWeekContainsDate:a,weekStartsOn:l,locale:i},d=[new Dc(r?.in,n)],p=e.match(du).map(m=>{const g=m[0];if(g in wn){const x=wn[g];return x(m,i.formatLong)}return m}).join("").match(fu),w=[];for(let m of p){to(m)&&yn(m,e,t),eo(m)&&yn(m,e,t);const g=m[0],x=lu[g];if(x){const{incompatibleTokens:R}=x;if(Array.isArray(R)){const k=w.find(se=>R.includes(se.token)||se.token===g);if(k)throw new RangeError(`The format string mustn't contain \`${k.fullToken}\` and \`${m}\` at the same time`)}else if(x.incompatibleTokens==="*"&&w.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);w.push({token:g,fullToken:m});const O=x.run(t,m,i.match,f);if(!O)return o();d.push(O.setter),t=O.rest}else{if(g.match(gu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");if(m==="''"?m="'":g==="'"&&(m=yu(m)),t.indexOf(m)===0)t=t.slice(m.length);else return o()}}if(t.length>0&&pu.test(t))return o();const b=d.map(m=>m.priority).sort((m,g)=>g-m).filter((m,g,x)=>x.indexOf(m)===g).map(m=>d.filter(g=>g.priority===m).sort((g,x)=>x.subPriority-g.subPriority)).map(m=>m[0]);let E=N(n,r?.in);if(isNaN(+E))return o();const y={};for(const m of b){if(!m.validate(E,f))return o();const g=m.set(E,y,f);Array.isArray(g)?(E=g[0],Object.assign(y,g[1])):E=g}return E}function yu(t){return t.match(mu)[1].replace(hu,"'")}const Ut=t=>{const e=typeof t=="string"?new Date(t):t;if(isNaN(e.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");return e},bu=t=>{const e=Ut(t),n=540*60*1e3;return new Date(e.getTime()+n)},Tu=t=>{const e=Ut(t),n=540*60*1e3;return new Date(e.getTime()-n)},io=(t,e="yyyy-MM-dd")=>{const n=Ut(t);return gc(n,e)},Eu=t=>yc(t),_u=(t,e)=>wu(t,e??"yyyy-MM-dd",new Date),Ou=(t,e)=>_c(t,e)?t:e,Au=(t,e)=>Ec(t,e)?t:e,Ru=(t,e)=>{const n=new Date,r=n>=t,s={...{direction:r?"전":"후",seconds:r?"방금":"잠시",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년"},...e},i=[{diffFunc:Ta,limit:60,label:s.minutes},{diffFunc:ya,limit:24,label:s.hours},{diffFunc:Yr,limit:7,label:s.days},{diffFunc:Ra,limit:5,label:s.weeks},{diffFunc:Aa,limit:12,label:s.months},{diffFunc:xa,limit:1/0,label:s.years}];for(const a of i){const l=Math.abs(a.diffFunc(n,t));if(l>=1&&l<a.limit)return`${l}${a.label} ${s.direction}`}return r?`${s.seconds} ${s.direction}`:`${s.seconds} ${s.direction}`},xu=(t,e={})=>{const{use12Hour:n=!0,showPeriod:r=!0,showSeconds:o=!1,includeDate:s=!1,includeWeekday:i=!1,timeSeparator:a=":",dateFormat:l="yyyy-MM-dd",dateTimeSeparator:f=" ",padHours:d=!0,periodLabels:p={am:"오전",pm:"오후"},weekdayLabels:w=["일","월","화","수","목","금","토"]}=e,b=Ut(t),E=b.getHours(),y=b.getMinutes(),m=b.getSeconds();let g="";if(n){const R=E<12?p.am:p.pm,O=E%12||12,k=d?O.toString().padStart(2,"0"):O.toString();g=r?`${R} ${k}`:k}else g=d?E.toString().padStart(2,"0"):E.toString();const x=y.toString().padStart(2,"0");if(g+=`${a}${x}`,o){const R=m.toString().padStart(2,"0");g+=`${a}${R}`}if(s){let O=io(b,l);if(i){const k=w[b.getDay()];O+=` (${k})`}return`${O}${f}${g}`}return g};function Du(t,e){const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}const Su=Object.freeze(Object.defineProperty({__proto__:null,afterDate:Au,beforeDate:Ou,formatDate:io,formatToCustomKoreanTime:xu,isSameDay:Du,isSameMinute:(t,e)=>{const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e,o=n.setSeconds(0,0),s=r.setSeconds(0,0);return o===s},kstToUtc:Tu,parseDate:_u,relativeTime:Ru,toISO:Eu,utcToKst:bu},Symbol.toStringTag,{value:"Module"})),Pu=Object.freeze(Object.defineProperty({__proto__:null,convertVideoLinks:t=>{let e=t;const n=r=>`<iframe src="${r}" frameborder="0" allowfullscreen style="display:block;width:100%;max-width:100%;aspect-ratio:16 / 9;height:auto;"></iframe>`;return e=e.replace(/https?:\/\/youtu\.be\/([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e=e.replace(/https?:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e},iframeHTMLRenderer:{htmlBlock:{iframe(t){return[{type:"openTag",tagName:"iframe",outerNewLine:!0,attributes:t.attrs},{type:"html",content:t.childrenHTML??""},{type:"closeTag",tagName:"iframe",outerNewLine:!0}]}}}},Symbol.toStringTag,{value:"Module"}));ce.FormatData=nt,ce.SanitizeHtml=ua,ce.dateUtils=Su,ce.editorUtils=Pu,ce.filterParams=hr,ce.handleError=Ni,ce.userAgent=Fi,ce.validate=Vo,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
|
|
7
|
+
`),c=i===-1?-1:s.indexOf(`
|
|
8
|
+
`,i+1),l=c===-1?"":s.slice(c+1);String(r.stack).endsWith(l)||(r.stack+=`
|
|
9
|
+
`+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=qe(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&jt.assertOptions(r,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean),legacyInterceptorReqResOrdering:se.transitional(se.boolean),advertiseZstdAcceptEncoding:se.transitional(se.boolean),validateStatusUndefinedResolves:se.transitional(se.boolean)},!1),o!=null&&(u.isFunction(o)?n.paramsSerializer={serialize:o}:jt.assertOptions(o,{encode:se.function,serialize:se.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),jt.assertOptions(n,{baseUrl:se.spelling("baseURL"),withXsrfToken:se.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&u.merge(s.common,s[n.method]);s&&u.forEach(["delete","get","head","post","put","patch","query","common"],A=>{delete s[A]}),n.headers=oe.concat(i,s);const c=[];let l=!0;this.interceptors.request.forEach(function(D){if(typeof D.runWhen=="function"&&D.runWhen(n)===!1)return;l=l&&D.synchronous;const y=n.transitional||yn;y&&y.legacyInterceptorReqResOrdering?c.unshift(D.fulfilled,D.rejected):c.push(D.fulfilled,D.rejected)});const d=[];this.interceptors.response.forEach(function(D){d.push(D.fulfilled,D.rejected)});let h,p=0,g;if(!l){const A=[Br.bind(this),void 0];for(A.unshift(...c),A.push(...d),g=A.length,h=Promise.resolve(n);p<g;)h=h.then(A[p++],A[p++]);return h}g=c.length;let E=n;for(;p<g;){const A=c[p++],D=c[p++];try{E=A(E)}catch(y){D.call(this,y);break}}try{h=Br.call(this,E)}catch(A){return Promise.reject(A)}for(p=0,g=d.length;p<g;)h=h.then(d[p++],d[p++]);return h}getUri(e){e=qe(this.defaults,e);const n=Mr(e.baseURL,e.url,e.allowAbsoluteUrls,e);return Tr(n,e.params,e.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(e){Ye.prototype[e]=function(n,r){return this.request(qe(r||{},{method:e,url:n,data:r&&u.hasOwnProp(r,"data")?r.data:void 0}))}}),u.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,i,c){return this.request(qe(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Ye.prototype[e]=n(),e!=="query"&&(Ye.prototype[e+"Form"]=n(!0))});let pa=class rs{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,c){r.reason||(r.reason=new Rt(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new rs(function(o){e=o}),cancel:e}}};function ga(t){return function(n){return t.apply(null,n)}}function ya(t){return u.isObject(t)&&t.isAxiosError===!0}const An={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(An).forEach(([t,e])=>{An[e]=t});function Wr(t){const e=new Ye(t),n=rr(Ye.prototype.request,e);return u.extend(n,Ye.prototype,e,{allOwnKeys:!0}),u.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Wr(qe(t,o))},n}const Y=Wr(At);Y.Axios=Ye,Y.CanceledError=Rt,Y.CancelToken=pa,Y.isCancel=Rr,Y.VERSION=En,Y.toFormData=$t,Y.AxiosError=T,Y.Cancel=Y.CanceledError,Y.all=function(e){return Promise.all(e)},Y.spread=ga,Y.isAxiosError=ya,Y.mergeConfig=qe,Y.AxiosHeaders=oe,Y.formToJSON=t=>Ar(u.isHTMLForm(t)?new FormData(t):t),Y.getAdapter=Hr.getAdapter,Y.HttpStatusCode=An,Y.default=Y;const{Axios:Ql,AxiosError:Kl,CanceledError:Jl,isCancel:Zl,CancelToken:ef,VERSION:tf,all:nf,Cancel:rf,isAxiosError:of,spread:sf,toFormData:af,AxiosHeaders:cf,HttpStatusCode:uf,formToJSON:lf,getAdapter:ff,mergeConfig:df,create:hf}=Y,wa=({error:t,message:e="알 수 없는 에러가 발생했습니다.",callback:n})=>Y.isAxiosError(t)?(n?.(),{type:"axios",message:t.response?.data?.message??e,status:t.response?.status}):t instanceof Error?(n?.(),{type:"client",message:t.message||e}):(n?.(),{type:"unknown",message:e}),zr=(t,e={})=>{const{removeUndefined:n=!0,removeNull:r=!0,removeEmptyString:o=!0,removeEmptyArray:s=!0,removeEmptyObject:i=!0,normalizeNumbers:c=!1,normalizeBooleans:l=!1,normalizeNested:d=!1}=e,h=g=>{switch(!0){case(n&&g===void 0):return!0;case(r&&g===null):return!0;case(o&&g===""):return!0;case(s&&Array.isArray(g)&&g.length===0):return!0;case(i&&typeof g=="object"&&g!==null&&!Array.isArray(g)&&Object.keys(g).length===0):return!0;default:return!1}},p=g=>{if(typeof g=="object"&&g!==null){if(Array.isArray(g))return d?g.map(E=>p(E)).filter(E=>!h(E)):g;if(typeof g=="object")return d?zr(g,e):g}if(typeof g=="string"){const E=g.trim();if(l){const A=E.toLowerCase();if(A==="true")return!0;if(A==="false")return!1}return E}return c&&typeof g=="number"?String(g):g};return Object.fromEntries(Object.entries(t).map(([g,E])=>[g,p(E)]).filter(([,g])=>!h(g)))};function Pe(){return typeof window>"u"||"Deno"in globalThis}function ba(){return!Pe()}function qr(){return Pe()?!1:/ipad|iphone/i.test(navigator.userAgent)}function Yr(){return Pe()?!1:/Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.platform)}function jr(){return Pe()?!1:/Android/i.test(navigator.userAgent)}function Ta(){return Pe()?!1:/MSIE|Trident/i.test(navigator.userAgent)}function Gr(){return Pe()?!1:/KAKAOTALK/i.test(navigator.userAgent)}function Rn(){return Pe()?!1:qr()?"ios":jr()?"android":"web"}function Ea(){const t=Rn();return t==="ios"||t==="android"}function _a(){if(Pe())return"server";if(Gr())return"kakao";const t=Rn();return t==="ios"||t==="android"?t:Yr()?"macos":"web"}const Oa={isServer:Pe,isClient:ba,isIOS:qr,isAndroid:jr,isMacOS:Yr,isIE:Ta,isKakaoWebView:Gr,isMobileWeb:Ea,getOSByUserAgent:Rn,getPlatform:_a};function Xr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Aa(t){if(Array.isArray(t))return t}function Ra(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,c=[],l=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(h){d=!0,o=h}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return c}}function Sa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xa(t,e){return Aa(t)||Ra(t,e)||Da(t,e)||Sa()}function Da(t,e){if(t){if(typeof t=="string")return Xr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(t,e):void 0}}const Vr=Object.entries,Qr=Object.setPrototypeOf,Pa=Object.isFrozen,Ma=Object.getPrototypeOf,Na=Object.getOwnPropertyDescriptor;let ee=Object.freeze,te=Object.seal,st=Object.create,Kr=typeof Reflect<"u"&&Reflect,Sn=Kr.apply,xn=Kr.construct;ee||(ee=function(e){return e}),te||(te=function(e){return e}),Sn||(Sn=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return e.apply(n,o)}),xn||(xn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new e(...r)});const St=X(Array.prototype.forEach),Ca=X(Array.prototype.lastIndexOf),Jr=X(Array.prototype.pop),it=X(Array.prototype.push),La=X(Array.prototype.splice),ke=Array.isArray,xt=X(String.prototype.toLowerCase),Dn=X(String.prototype.toString),Zr=X(String.prototype.match),Dt=X(String.prototype.replace),eo=X(String.prototype.indexOf),ka=X(String.prototype.trim),Ia=X(Number.prototype.toString),Fa=X(Boolean.prototype.toString),to=typeof BigInt>"u"?null:X(BigInt.prototype.toString),no=typeof Symbol>"u"?null:X(Symbol.prototype.toString),Q=X(Object.prototype.hasOwnProperty),Pt=X(Object.prototype.toString),ne=X(RegExp.prototype.test),je=va(TypeError);function X(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Sn(t,e,r)}}function va(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xn(t,n)}}function L(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xt;if(Qr&&Qr(t,null),!ke(e))return t;let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(Pa(e)||(e[r]=s),o=s)}t[o]=!0}return t}function Ua(t){for(let e=0;e<t.length;e++)Q(t,e)||(t[e]=null);return t}function ce(t){const e=st(null);for(const r of Vr(t)){var n=xa(r,2);const o=n[0],s=n[1];Q(t,o)&&(ke(s)?e[o]=Ua(s):s&&typeof s=="object"&&s.constructor===Object?e[o]=ce(s):e[o]=s)}return e}function Ha(t){switch(typeof t){case"string":return t;case"number":return Ia(t);case"boolean":return Fa(t);case"bigint":return to?to(t):"0";case"symbol":return no?no(t):"Symbol()";case"undefined":return Pt(t);case"function":case"object":{if(t===null)return Pt(t);const e=t,n=Ee(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:Pt(r)}return Pt(t)}default:return Pt(t)}}function Ee(t,e){for(;t!==null;){const r=Na(t,e);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}t=Ma(t)}function n(){return null}return n}function Ba(t){try{return ne(t,""),!0}catch{return!1}}const ro=ee(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Pn=ee(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mn=ee(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$a=ee(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nn=ee(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Wa=ee(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oo=ee(["#text"]),so=ee(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Cn=ee(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),io=ee(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Gt=ee(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),za=te(/{{[\w\W]*|^[\w\W]*}}/g),qa=te(/<%[\w\W]*|^[\w\W]*%>/g),Ya=te(/\${[\w\W]*/g),ja=te(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ga=te(/^aria-[\-\w]+$/),ao=te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xa=te(/^(?:\w+script|data):/i),Va=te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qa=te(/^html$/i),Ka=te(/^[a-z][.\w]*(-[.\w]+)+$/i),co=te(/<[/\w!]/g),Ja=te(/<[/\w]/g),Za=te(/<\/no(script|embed|frames)/i),ec=te(/\/>/i),_e={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},tc=function(){return typeof window>"u"?null:window},nc=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},uo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ie=function(e,n,r,o){return Q(e,n)&&ke(e[n])?L(o.base?ce(o.base):{},e[n],o.transform):r};function lo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tc();const e=b=>lo(b);if(e.version="3.4.11",e.removed=[],!t||!t.document||t.document.nodeType!==_e.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,o=r.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,i=t.Node,c=t.Element,l=t.NodeFilter,d=t.NamedNodeMap;d===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,p=t.trustedTypes,g=c.prototype,E=Ee(g,"cloneNode"),A=Ee(g,"remove"),D=Ee(g,"nextSibling"),y=Ee(g,"childNodes"),m=Ee(g,"parentNode"),_=Ee(g,"shadowRoot"),R=Ee(g,"attributes"),S=i&&i.prototype?Ee(i.prototype,"nodeType"):null,k=i&&i.prototype?Ee(i.prototype,"nodeName"):null;if(typeof s=="function"){const b=n.createElement("template");b.content&&b.content.ownerDocument&&(n=b.content.ownerDocument)}let P,ie="",Ve,lt=!1,fe=0;const we=function(){if(fe>0)throw je('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},be=function(a){we(),fe++;try{return P.createHTML(a)}finally{fe--}},Qt=function(a){we(),fe++;try{return P.createScriptURL(a)}finally{fe--}},me=function(){return lt||(Ve=nc(p,o),lt=!0),Ve},Me=n,Ne=Me.implementation,ft=Me.createNodeIterator,Bn=Me.createDocumentFragment,Kt=Me.getElementsByTagName,Re=r.importNode;let M=uo();e.isSupported=typeof Vr=="function"&&typeof m=="function"&&Ne&&Ne.createHTMLDocument!==void 0;const Ce=za,Ue=qa,Qe=Ya,Jt=ja,H=Ga,de=Xa,Ke=Va,Zt=Ka;let en=ao,B=null;const pe=L({},[...ro,...Pn,...Mn,...Nn,...oo]);let $=null;const dt=L({},[...so,...Cn,...io,...Gt]);let v=Object.seal(st(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),x=null,ae=null;const re=Object.seal(st(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Se=!0,ht=!0,tn=!1,He=!0,Be=!1,kt=!0,Je=!1,$n=!1,Wn=null,zn=null,qn=!1,mt=!1,nn=!1,rn=!1,Uo=!0,Ho=!1;const Bo="user-content-";let Yn=!0,jn=!1,pt={},xe=null;const Gn=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let $o=null;const Wo=L({},["audio","video","img","source","image","track"]);let Xn=null;const zo=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),on="http://www.w3.org/1998/Math/MathML",sn="http://www.w3.org/2000/svg",De="http://www.w3.org/1999/xhtml";let gt=De,Vn=!1,Qn=null;const Dl=L({},[on,sn,De],Dn),qo=ee(["mi","mo","mn","ms","mtext"]);let Kn=L({},qo);const Yo=ee(["annotation-xml"]);let Jn=L({},Yo);const Pl=L({},["title","style","font","a","script"]);let It=null;const Ml=["application/xhtml+xml","text/html"],Nl="text/html";let q=null,yt=null;const Cl=n.createElement("form"),jo=function(a){return a instanceof RegExp||a instanceof Function},Zn=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(yt&&yt===a)return;(!a||typeof a!="object")&&(a={}),a=ce(a),It=Ml.indexOf(a.PARSER_MEDIA_TYPE)===-1?Nl:a.PARSER_MEDIA_TYPE,q=It==="application/xhtml+xml"?Dn:xt,B=Ie(a,"ALLOWED_TAGS",pe,{transform:q}),$=Ie(a,"ALLOWED_ATTR",dt,{transform:q}),Qn=Ie(a,"ALLOWED_NAMESPACES",Dl,{transform:Dn}),Xn=Ie(a,"ADD_URI_SAFE_ATTR",zo,{transform:q,base:zo}),$o=Ie(a,"ADD_DATA_URI_TAGS",Wo,{transform:q,base:Wo}),xe=Ie(a,"FORBID_CONTENTS",Gn,{transform:q}),x=Ie(a,"FORBID_TAGS",ce({}),{transform:q}),ae=Ie(a,"FORBID_ATTR",ce({}),{transform:q}),pt=Q(a,"USE_PROFILES")?a.USE_PROFILES&&typeof a.USE_PROFILES=="object"?ce(a.USE_PROFILES):a.USE_PROFILES:!1,Se=a.ALLOW_ARIA_ATTR!==!1,ht=a.ALLOW_DATA_ATTR!==!1,tn=a.ALLOW_UNKNOWN_PROTOCOLS||!1,He=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=a.SAFE_FOR_TEMPLATES||!1,kt=a.SAFE_FOR_XML!==!1,Je=a.WHOLE_DOCUMENT||!1,mt=a.RETURN_DOM||!1,nn=a.RETURN_DOM_FRAGMENT||!1,rn=a.RETURN_TRUSTED_TYPE||!1,qn=a.FORCE_BODY||!1,Uo=a.SANITIZE_DOM!==!1,Ho=a.SANITIZE_NAMED_PROPS||!1,Yn=a.KEEP_CONTENT!==!1,jn=a.IN_PLACE||!1,en=Ba(a.ALLOWED_URI_REGEXP)?a.ALLOWED_URI_REGEXP:ao,gt=typeof a.NAMESPACE=="string"?a.NAMESPACE:De,Kn=Q(a,"MATHML_TEXT_INTEGRATION_POINTS")&&a.MATHML_TEXT_INTEGRATION_POINTS&&typeof a.MATHML_TEXT_INTEGRATION_POINTS=="object"?ce(a.MATHML_TEXT_INTEGRATION_POINTS):L({},qo),Jn=Q(a,"HTML_INTEGRATION_POINTS")&&a.HTML_INTEGRATION_POINTS&&typeof a.HTML_INTEGRATION_POINTS=="object"?ce(a.HTML_INTEGRATION_POINTS):L({},Yo);const f=Q(a,"CUSTOM_ELEMENT_HANDLING")&&a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING=="object"?ce(a.CUSTOM_ELEMENT_HANDLING):st(null);if(v=st(null),Q(f,"tagNameCheck")&&jo(f.tagNameCheck)&&(v.tagNameCheck=f.tagNameCheck),Q(f,"attributeNameCheck")&&jo(f.attributeNameCheck)&&(v.attributeNameCheck=f.attributeNameCheck),Q(f,"allowCustomizedBuiltInElements")&&typeof f.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=f.allowCustomizedBuiltInElements),te(v),Be&&(ht=!1),nn&&(mt=!0),pt&&(B=L({},oo),$=st(null),pt.html===!0&&(L(B,ro),L($,so)),pt.svg===!0&&(L(B,Pn),L($,Cn),L($,Gt)),pt.svgFilters===!0&&(L(B,Mn),L($,Cn),L($,Gt)),pt.mathMl===!0&&(L(B,Nn),L($,io),L($,Gt))),re.tagCheck=null,re.attributeCheck=null,Q(a,"ADD_TAGS")&&(typeof a.ADD_TAGS=="function"?re.tagCheck=a.ADD_TAGS:ke(a.ADD_TAGS)&&(B===pe&&(B=ce(B)),L(B,a.ADD_TAGS,q))),Q(a,"ADD_ATTR")&&(typeof a.ADD_ATTR=="function"?re.attributeCheck=a.ADD_ATTR:ke(a.ADD_ATTR)&&($===dt&&($=ce($)),L($,a.ADD_ATTR,q))),Q(a,"ADD_URI_SAFE_ATTR")&&ke(a.ADD_URI_SAFE_ATTR)&&L(Xn,a.ADD_URI_SAFE_ATTR,q),Q(a,"FORBID_CONTENTS")&&ke(a.FORBID_CONTENTS)&&(xe===Gn&&(xe=ce(xe)),L(xe,a.FORBID_CONTENTS,q)),Q(a,"ADD_FORBID_CONTENTS")&&ke(a.ADD_FORBID_CONTENTS)&&(xe===Gn&&(xe=ce(xe)),L(xe,a.ADD_FORBID_CONTENTS,q)),Yn&&(B["#text"]=!0),Je&&L(B,["html","head","body"]),B.table&&(L(B,["tbody"]),delete x.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const w=P;P=a.TRUSTED_TYPES_POLICY;try{ie=be("")}catch(O){throw P=w,O}}else a.TRUSTED_TYPES_POLICY===null?(P=void 0,ie=""):(P===void 0&&(P=me()),P&&typeof ie=="string"&&(ie=be("")));ee&&ee(a),yt=a},Go=L({},[...Pn,...Mn,...$a]),Xo=L({},[...Nn,...Wa]),Ll=function(a,f,w){return f.namespaceURI===De?a==="svg":f.namespaceURI===on?a==="svg"&&(w==="annotation-xml"||Kn[w]):!!Go[a]},kl=function(a,f,w){return f.namespaceURI===De?a==="math":f.namespaceURI===sn?a==="math"&&Jn[w]:!!Xo[a]},Il=function(a,f,w){return f.namespaceURI===sn&&!Jn[w]||f.namespaceURI===on&&!Kn[w]?!1:!Xo[a]&&(Pl[a]||!Go[a])},Fl=function(a){let f=m(a);(!f||!f.tagName)&&(f={namespaceURI:gt,tagName:"template"});const w=xt(a.tagName),O=xt(f.tagName);return Qn[a.namespaceURI]?a.namespaceURI===sn?Ll(w,f,O):a.namespaceURI===on?kl(w,f,O):a.namespaceURI===De?Il(w,f,O):!!(It==="application/xhtml+xml"&&Qn[a.namespaceURI]):!1},$e=function(a){it(e.removed,{element:a});try{m(a).removeChild(a)}catch{if(A(a),!m(a))throw je("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Vo=function(a){const f=y(a);if(f){const O=[];St(f,N=>{it(O,N)}),St(O,N=>{try{A(N)}catch{}})}const w=R(a);if(w)for(let O=w.length-1;O>=0;--O){const N=w[O],I=N&&N.name;if(typeof I=="string")try{a.removeAttribute(I)}catch{}}},Ze=function(a,f){try{it(e.removed,{attribute:f.getAttributeNode(a),from:f})}catch{it(e.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(mt||nn)try{$e(f)}catch{}else try{f.setAttribute(a,"")}catch{}},vl=function(a){const f=R(a);if(f)for(let w=f.length-1;w>=0;--w){const O=f[w],N=O&&O.name;if(!(typeof N!="string"||$[q(N)]))try{a.removeAttribute(N)}catch{}}},Ul=function(a){const f=[a];for(;f.length>0;){const w=f.pop();(S?S(w):w.nodeType)===_e.element&&vl(w);const N=y(w);if(N)for(let I=N.length-1;I>=0;--I)f.push(N[I])}},Qo=function(a){let f=null,w=null;if(qn)a="<remove></remove>"+a;else{const I=Zr(a,/^[\r\n\t ]+/);w=I&&I[0]}It==="application/xhtml+xml"&>===De&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const O=P?be(a):a;if(gt===De)try{f=new h().parseFromString(O,It)}catch{}if(!f||!f.documentElement){f=Ne.createDocument(gt,"template",null);try{f.documentElement.innerHTML=Vn?ie:O}catch{}}const N=f.body||f.documentElement;return a&&w&&N.insertBefore(n.createTextNode(w),N.childNodes[0]||null),gt===De?Kt.call(f,Je?"html":"body")[0]:Je?f.documentElement:N},Ko=function(a){return ft.call(a.ownerDocument||a,a,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},an=function(a){return a=Dt(a,Ce," "),a=Dt(a,Ue," "),a=Dt(a,Qe," "),a},er=function(a){var f;a.normalize();const w=ft.call(a.ownerDocument||a,a,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let O=w.nextNode();for(;O;)O.data=an(O.data),O=w.nextNode();const N=(f=a.querySelectorAll)===null||f===void 0?void 0:f.call(a,"template");N&&St(N,I=>{wt(I.content)&&er(I.content)})},cn=function(a){const f=k?k(a):null;return typeof f!="string"||q(f)!=="form"?!1:typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||a.attributes!==R(a)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function"||a.nodeType!==S(a)||a.childNodes!==y(a)},wt=function(a){if(!S||typeof a!="object"||a===null)return!1;try{return S(a)===_e.documentFragment}catch{return!1}},Ft=function(a){if(!S||typeof a!="object"||a===null)return!1;try{return typeof S(a)=="number"}catch{return!1}};function Le(b,a,f){b.length!==0&&St(b,w=>{w.call(e,a,f,yt)})}const Hl=function(a,f){return!!(kt&&a.hasChildNodes()&&!Ft(a.firstElementChild)&&ne(co,a.textContent)&&ne(co,a.innerHTML)||kt&&a.namespaceURI===De&&f==="style"&&Ft(a.firstElementChild)||a.nodeType===_e.processingInstruction||kt&&a.nodeType===_e.comment&&ne(Ja,a.data))},Bl=function(a,f){if(!x[f]&&es(f)&&(v.tagNameCheck instanceof RegExp&&ne(v.tagNameCheck,f)||v.tagNameCheck instanceof Function&&v.tagNameCheck(f)))return!1;if(Yn&&!xe[f]){const w=m(a),O=y(a);if(O&&w){const N=O.length;for(let I=N-1;I>=0;--I){const J=jn?O[I]:E(O[I],!0);w.insertBefore(J,D(a))}}}return $e(a),!0},Jo=function(a){if(Le(M.beforeSanitizeElements,a,null),cn(a))return $e(a),!0;const f=q(k?k(a):a.nodeName);if(Le(M.uponSanitizeElement,a,{tagName:f,allowedTags:B}),Hl(a,f))return $e(a),!0;if(x[f]||!(re.tagCheck instanceof Function&&re.tagCheck(f))&&!B[f])return Bl(a,f);if((S?S(a):a.nodeType)===_e.element&&!Fl(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&ne(Za,a.innerHTML))return $e(a),!0;if(Be&&a.nodeType===_e.text){const O=an(a.textContent);a.textContent!==O&&(it(e.removed,{element:a.cloneNode()}),a.textContent=O)}return Le(M.afterSanitizeElements,a,null),!1},Zo=function(a,f,w){if(ae[f]||Uo&&(f==="id"||f==="name")&&(w in n||w in Cl))return!1;const O=$[f]||re.attributeCheck instanceof Function&&re.attributeCheck(f,a);if(!(ht&&ne(Jt,f))){if(!(Se&&ne(H,f))){if(O){if(!Xn[f]){if(!ne(en,Dt(w,Ke,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&eo(w,"data:")===0&&$o[a])){if(!(tn&&!ne(de,Dt(w,Ke,"")))){if(w)return!1}}}}}else if(!(es(a)&&(v.tagNameCheck instanceof RegExp&&ne(v.tagNameCheck,a)||v.tagNameCheck instanceof Function&&v.tagNameCheck(a))&&(v.attributeNameCheck instanceof RegExp&&ne(v.attributeNameCheck,f)||v.attributeNameCheck instanceof Function&&v.attributeNameCheck(f,a))||f==="is"&&v.allowCustomizedBuiltInElements&&(v.tagNameCheck instanceof RegExp&&ne(v.tagNameCheck,w)||v.tagNameCheck instanceof Function&&v.tagNameCheck(w))))return!1}}return!0},$l=L({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),es=function(a){return!$l[xt(a)]&&ne(Zt,a)},Wl=function(a,f,w,O){if(P&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!w)switch(p.getAttributeType(a,f)){case"TrustedHTML":return be(O);case"TrustedScriptURL":return Qt(O)}return O},zl=function(a,f,w,O){try{w?a.setAttributeNS(w,f,O):a.setAttribute(f,O),cn(a)?$e(a):Jr(e.removed)}catch{Ze(f,a)}},ts=function(a){Le(M.beforeSanitizeAttributes,a,null);const f=a.attributes;if(!f||cn(a))return;const w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let O=f.length;const N=q(a.nodeName);for(;O--;){const I=f[O],J=I.name,V=I.namespaceURI,ge=I.value,Te=q(J),nr=ge;let ue=J==="value"?nr:ka(nr);if(w.attrName=Te,w.attrValue=ue,w.keepAttr=!0,w.forceKeepAttr=void 0,Le(M.uponSanitizeAttribute,a,w),ue=w.attrValue,Ho&&(Te==="id"||Te==="name")&&eo(ue,Bo)!==0&&(Ze(J,a),ue=Bo+ue),kt&&ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ue)){Ze(J,a);continue}if(Te==="attributename"&&Zr(ue,"href")){Ze(J,a);continue}if(!w.forceKeepAttr){if(!w.keepAttr){Ze(J,a);continue}if(!He&&ne(ec,ue)){Ze(J,a);continue}if(Be&&(ue=an(ue)),!Zo(N,Te,ue)){Ze(J,a);continue}ue=Wl(N,Te,V,ue),ue!==nr&&zl(a,J,V,ue)}}Le(M.afterSanitizeAttributes,a,null)},un=function(a){let f=null;const w=Ko(a);for(Le(M.beforeSanitizeShadowDOM,a,null);f=w.nextNode();)if(Le(M.uponSanitizeShadowNode,f,null),Jo(f),ts(f),wt(f.content)&&un(f.content),(S?S(f):f.nodeType)===_e.element){const N=_(f);wt(N)&&(tr(N),un(N))}Le(M.afterSanitizeShadowDOM,a,null)},tr=function(a){const f=[{node:a,shadow:null}];for(;f.length>0;){const w=f.pop();if(w.shadow){un(w.shadow);continue}const O=w.node,I=(S?S(O):O.nodeType)===_e.element,J=y(O);if(J)for(let V=J.length-1;V>=0;--V)f.push({node:J[V],shadow:null});if(I){const V=k?k(O):null;if(typeof V=="string"&&q(V)==="template"){const ge=O.content;wt(ge)&&f.push({node:ge,shadow:null})}}if(I){const V=_(O);wt(V)&&f.push({node:null,shadow:V},{node:V,shadow:null})}}};return e.sanitize=function(b){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,w=null,O=null,N=null;if(Vn=!b,Vn&&(b="<!-->"),typeof b!="string"&&!Ft(b)&&(b=Ha(b),typeof b!="string"))throw je("dirty is not a string, aborting");if(!e.isSupported)return b;$n?(B=Wn,$=zn):Zn(a),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(B=ce(B)),M.uponSanitizeAttribute.length>0&&($=ce($)),e.removed=[];const I=jn&&typeof b!="string"&&Ft(b);if(I){const ge=k?k(b):b.nodeName;if(typeof ge=="string"){const Te=q(ge);if(!B[Te]||x[Te])throw je("root node is forbidden and cannot be sanitized in-place")}if(cn(b))throw je("root node is clobbered and cannot be sanitized in-place");try{tr(b)}catch(Te){throw Vo(b),Te}}else if(Ft(b))f=Qo("<!---->"),w=f.ownerDocument.importNode(b,!0),w.nodeType===_e.element&&w.nodeName==="BODY"||w.nodeName==="HTML"?f=w:f.appendChild(w),tr(w);else{if(!mt&&!Be&&!Je&&b.indexOf("<")===-1)return P&&rn?be(b):b;if(f=Qo(b),!f)return mt?null:rn?ie:""}f&&qn&&$e(f.firstChild);const J=Ko(I?b:f);try{for(;O=J.nextNode();)Jo(O),ts(O),wt(O.content)&&un(O.content)}catch(ge){throw I&&Vo(b),ge}if(I)return St(e.removed,ge=>{ge.element&&Ul(ge.element)}),Be&&er(b),b;if(mt){if(Be&&er(f),nn)for(N=Bn.call(f.ownerDocument);f.firstChild;)N.appendChild(f.firstChild);else N=f;return($.shadowroot||$.shadowrootmode)&&(N=Re.call(r,N,!0)),N}let V=Je?f.outerHTML:f.innerHTML;return Je&&B["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&ne(Qa,f.ownerDocument.doctype.name)&&(V="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
11
|
+
`+V),Be&&(V=an(V)),P&&rn?be(V):V},e.setConfig=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zn(b),$n=!0,Wn=B,zn=$},e.clearConfig=function(){yt=null,$n=!1,Wn=null,zn=null,P=Ve,ie=""},e.isValidAttribute=function(b,a,f){yt||Zn({});const w=q(b),O=q(a);return Zo(w,O,f)},e.addHook=function(b,a){typeof a=="function"&&Q(M,b)&&it(M[b],a)},e.removeHook=function(b,a){if(Q(M,b)){if(a!==void 0){const f=Ca(M[b],a);return f===-1?void 0:La(M[b],f,1)[0]}return Jr(M[b])}},e.removeHooks=function(b){Q(M,b)&&(M[b]=[])},e.removeAllHooks=function(){M=uo()},e}var rc=lo();const oc={addElements:[],allowElements:[],allowAttributes:{},dropElements:[],dropAttributes:{}},fo=t=>t?Array.from(new Set(Object.values(t).flat())):[],sc=({content:t,config:e})=>{const n={...oc,...e},r=fo(n.allowAttributes),o=r.length>0?{ALLOWED_ATTR:[...new Set([...r,"class","id","style"])]}:{},s=fo(n.dropAttributes),i=s.length>0?{FORBID_ATTR:s}:{},c=n.addElements&&n.addElements.length>0&&!(n.allowElements&&n.allowElements.length>0)?{ADD_TAGS:n.addElements}:{},l=n.allowElements&&n.allowElements.length>0?{ALLOWED_TAGS:n.allowElements}:{},d=n.dropElements&&n.dropElements.length>0?{FORBID_TAGS:n.dropElements}:{},h={ALLOW_UNKNOWN_PROTOCOLS:!1,...c,...l,...i,...o,...d};return rc.sanitize(t,h)},ho=6048e5,ic=864e5,mo=6e4,po=36e5,ac=1e3,go=Symbol.for("constructDateFrom");function K(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&go in t?t[go](e):t instanceof Date?new t.constructor(e):new Date(e)}function F(t,e){return K(e||t,t)}function yo(t,e,n){const r=F(t,n?.in);return isNaN(e)?K(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let cc={};function at(){return cc}function Fe(t,e){const n=at(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=F(t,e?.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ct(t,e){return Fe(t,{...e,weekStartsOn:1})}function wo(t,e){const n=F(t,e?.in),r=n.getFullYear(),o=K(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=ct(o),i=K(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const c=ct(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Xt(t){const e=F(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Ge(t,...e){const n=K.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function bo(t,e){const n=F(t,e?.in);return n.setHours(0,0,0,0),n}function To(t,e,n){const[r,o]=Ge(n?.in,t,e),s=bo(r),i=bo(o),c=+s-Xt(s),l=+i-Xt(i);return Math.round((c-l)/ic)}function uc(t,e){const n=wo(t,e),r=K(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ct(r)}function Mt(t,e){const n=+F(t)-+F(e);return n<0?-1:n>0?1:n}function lc(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function fc(t){return!(!lc(t)&&typeof t!="number"||isNaN(+F(t)))}function dc(t,e,n){const[r,o]=Ge(n?.in,t,e),s=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return s*12+i}function hc(t,e,n){const[r,o]=Ge(n?.in,t,e);return r.getFullYear()-o.getFullYear()}function Eo(t,e,n){const[r,o]=Ge(n?.in,t,e),s=_o(r,o),i=Math.abs(To(r,o));r.setDate(r.getDate()-s*i);const c=+(_o(r,o)===-s),l=s*(i-c);return l===0?0:l}function _o(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function Ln(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function mc(t,e,n){const[r,o]=Ge(n?.in,t,e),s=(+r-+o)/po;return Ln(n?.roundingMethod)(s)}function pc(t,e){return+F(t)-+F(e)}function gc(t,e,n){const r=pc(t,e)/mo;return Ln(n?.roundingMethod)(r)}function yc(t,e){const n=F(t,e?.in);return n.setHours(23,59,59,999),n}function wc(t,e){const n=F(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function bc(t,e){const n=F(t,e?.in);return+yc(n,e)==+wc(n,e)}function Tc(t,e,n){const[r,o,s]=Ge(n?.in,t,t,e),i=Mt(o,s),c=Math.abs(dc(o,s));if(c<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*c);let l=Mt(o,s)===-i;bc(r)&&c===1&&Mt(r,s)===1&&(l=!1);const d=i*(c-+l);return d===0?0:d}function Ec(t,e,n){const r=Eo(t,e,n)/7;return Ln(n?.roundingMethod)(r)}function _c(t,e,n){const[r,o]=Ge(n?.in,t,e),s=Mt(r,o),i=Math.abs(hc(r,o));r.setFullYear(1584),o.setFullYear(1584);const c=Mt(r,o)===-s,l=s*(i-+c);return l===0?0:l}function Oc(t,e){const n=F(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Ac={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Rc=(t,e,n)=>{let r;const o=Ac[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kn(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Sc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pc={date:kn({formats:Sc,defaultWidth:"full"}),time:kn({formats:xc,defaultWidth:"full"}),dateTime:kn({formats:Dc,defaultWidth:"full"})},Mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nc=(t,e,n,r)=>Mc[t];function Nt(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,c=n?.width?String(n.width):i;o=t.formattingValues[c]||t.formattingValues[i]}else{const i=t.defaultWidth,c=n?.width?String(n.width):t.defaultWidth;o=t.values[c]||t.values[i]}const s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}const Cc={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ic={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Fc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Uc={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Nt({values:Cc,defaultWidth:"wide"}),quarter:Nt({values:Lc,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Nt({values:kc,defaultWidth:"wide"}),day:Nt({values:Ic,defaultWidth:"wide"}),dayPeriod:Nt({values:Fc,defaultWidth:"wide",formattingValues:vc,defaultFormattingWidth:"wide"})};function Ct(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const i=s[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(c)?Bc(c,p=>p.test(i)):Hc(c,p=>p.test(i));let d;d=t.valueCallback?t.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const h=e.slice(i.length);return{value:d,rest:h}}}function Hc(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Bc(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function $c(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],s=e.match(t.parsePattern);if(!s)return null;let i=t.valueCallback?t.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const c=e.slice(o.length);return{value:i,rest:c}}}const Wc=/^(\d+)(th|st|nd|rd)?/i,zc=/\d+/i,qc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yc={any:[/^b/i,/^(a|c)/i]},jc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gc={any:[/1/i,/2/i,/3/i,/4/i]},Xc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Kc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Jc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eu={ordinalNumber:$c({matchPattern:Wc,parsePattern:zc,valueCallback:t=>parseInt(t,10)}),era:Ct({matchPatterns:qc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any"}),quarter:Ct({matchPatterns:jc,defaultMatchWidth:"wide",parsePatterns:Gc,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Ct({matchPatterns:Xc,defaultMatchWidth:"wide",parsePatterns:Vc,defaultParseWidth:"any"}),day:Ct({matchPatterns:Qc,defaultMatchWidth:"wide",parsePatterns:Kc,defaultParseWidth:"any"}),dayPeriod:Ct({matchPatterns:Jc,defaultMatchWidth:"any",parsePatterns:Zc,defaultParseWidth:"any"})},Oo={code:"en-US",formatDistance:Rc,formatLong:Pc,formatRelative:Nc,localize:Uc,match:eu,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tu(t,e){const n=F(t,e?.in);return To(n,Oc(n))+1}function Ao(t,e){const n=F(t,e?.in),r=+ct(n)-+uc(n);return Math.round(r/ho)+1}function In(t,e){const n=F(t,e?.in),r=n.getFullYear(),o=at(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=K(e?.in||t,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const c=Fe(i,e),l=K(e?.in||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const d=Fe(l,e);return+n>=+c?r+1:+n>=+d?r:r-1}function nu(t,e){const n=at(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=In(t,e),s=K(e?.in||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Fe(s,e)}function Ro(t,e){const n=F(t,e?.in),r=+Fe(n,e)-+nu(n,e);return Math.round(r/ho)+1}function C(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const ve={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return C(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):C(n+1,2)},d(t,e){return C(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return C(t.getHours()%12||12,e.length)},H(t,e){return C(t.getHours(),e.length)},m(t,e){return C(t.getMinutes(),e.length)},s(t,e){return C(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return C(o,e.length)}},ut={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},So={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ve.y(t,e)},Y:function(t,e,n,r){const o=In(t,r),s=o>0?o:1-o;if(e==="YY"){const i=s%100;return C(i,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):C(s,e.length)},R:function(t,e){const n=wo(t);return C(n,e.length)},u:function(t,e){const n=t.getFullYear();return C(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return C(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return C(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return ve.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return C(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=Ro(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):C(o,e.length)},I:function(t,e,n){const r=Ao(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):C(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):ve.d(t,e)},D:function(t,e,n){const r=tu(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):C(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return C(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return C(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return C(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=ut.noon:r===0?o=ut.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=ut.evening:r>=12?o=ut.afternoon:r>=4?o=ut.morning:o=ut.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ve.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):ve.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):C(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):C(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):ve.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):ve.s(t,e)},S:function(t,e){return ve.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Do(r);case"XXXX":case"XX":return Xe(r);default:return Xe(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Do(r);case"xxxx":case"xx":return Xe(r);default:return Xe(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+xo(r,":");default:return"GMT"+Xe(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+xo(r,":");default:return"GMT"+Xe(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return C(r,e.length)},T:function(t,e,n){return C(+t,e.length)}};function xo(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+e+C(s,2)}function Do(t,e){return t%60===0?(t>0?"-":"+")+C(Math.abs(t)/60,2):Xe(t,e)}function Xe(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=C(Math.trunc(r/60),2),s=C(r%60,2);return n+o+e+s}const Po=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Mo=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Fn={p:Mo,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Po(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Po(r,e)).replace("{{time}}",Mo(o,e))}},ru=/^D+$/,ou=/^Y+$/,su=["D","DD","YY","YYYY"];function No(t){return ru.test(t)}function Co(t){return ou.test(t)}function vn(t,e,n){const r=iu(t,e,n);if(console.warn(r),su.includes(t))throw new RangeError(r)}function iu(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const au=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uu=/^'([^]*?)'?$/,lu=/''/g,fu=/[a-zA-Z]/;function du(t,e,n){const r=at(),o=r.locale??Oo,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=F(t,n?.in);if(!fc(c))throw new RangeError("Invalid time value");let l=e.match(cu).map(h=>{const p=h[0];if(p==="p"||p==="P"){const g=Fn[p];return g(h,o.formatLong)}return h}).join("").match(au).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const p=h[0];if(p==="'")return{isToken:!1,value:hu(h)};if(So[p])return{isToken:!0,value:h};if(p.match(fu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:h}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const d={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return l.map(h=>{if(!h.isToken)return h.value;const p=h.value;(Co(p)||No(p))&&vn(p,e,String(t));const g=So[p[0]];return g(c,p,o.localize,d)}).join("")}function hu(t){const e=t.match(uu);return e?e[1].replace(lu,"'"):t}function mu(t,e){const n=F(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",o="";const s="-",i=":";{const c=C(n.getDate(),2),l=C(n.getMonth()+1,2);r=`${C(n.getFullYear(),4)}${s}${l}${s}${c}`}{const c=n.getTimezoneOffset();if(c!==0){const E=Math.abs(c),A=C(Math.trunc(E/60),2),D=C(E%60,2);o=`${c<0?"+":"-"}${A}:${D}`}else o="Z";const l=C(n.getHours(),2),d=C(n.getMinutes(),2),h=C(n.getSeconds(),2),p=r===""?"":"T",g=[l,d,h].join(i);r=`${r}${p}${g}${o}`}return r}function pu(){return Object.assign({},at())}function gu(t,e){const n=F(t,e?.in).getDay();return n===0?7:n}function yu(t,e){return+F(t)>+F(e)}function wu(t,e){return+F(t)<+F(e)}function bu(t,e){const n=Tu(e)?new e(0):K(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function Tu(t){return typeof t=="function"&&t.prototype?.constructor===t}const Eu=10;class Lo{subPriority=0;validate(e,n){return!0}}class _u extends Lo{constructor(e,n,r,o,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=o,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class Ou extends Lo{priority=Eu;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>K(n,r))}set(e,n){return n.timestampIsSet?e:K(e,bu(e,this.context))}}class U{run(e,n,r,o){const s=this.parse(e,n,r,o);return s?{setter:new _u(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class Au extends U{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const j={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Oe={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function G(t,e){return t&&{value:e(t.value),rest:t.rest}}function W(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Ae(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*po+s*mo+i*ac),rest:e.slice(n[0].length)}}function ko(t){return W(j.anyDigitsSigned,t)}function z(t,e){switch(t){case 1:return W(j.singleDigit,e);case 2:return W(j.twoDigits,e);case 3:return W(j.threeDigits,e);case 4:return W(j.fourDigits,e);default:return W(new RegExp("^\\d{1,"+t+"}"),e)}}function Vt(t,e){switch(t){case 1:return W(j.singleDigitSigned,e);case 2:return W(j.twoDigitsSigned,e);case 3:return W(j.threeDigitsSigned,e);case 4:return W(j.fourDigitsSigned,e);default:return W(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Un(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Io(t,e){const n=e>0,r=n?e:1-e;let o;if(r<=50)o=t||100;else{const s=r+50,i=Math.trunc(s/100)*100,c=t>=s%100;o=t+i-(c?100:0)}return n?o:1-o}function Fo(t){return t%400===0||t%4===0&&t%100!==0}class Ru extends U{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return G(z(4,e),o);case"yo":return G(r.ordinalNumber(e,{unit:"year"}),o);default:return G(z(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const o=e.getFullYear();if(r.isTwoDigitYear){const i=Io(r.year,o);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const s=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class Su extends U{priority=130;parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return G(z(4,e),o);case"Yo":return G(r.ordinalNumber(e,{unit:"year"}),o);default:return G(z(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,o){const s=In(e,o);if(r.isTwoDigitYear){const c=Io(r.year,s);return e.setFullYear(c,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Fe(e,o)}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Fe(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class xu extends U{priority=130;parse(e,n){return Vt(n==="R"?4:n.length,e)}set(e,n,r){const o=K(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),ct(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Du extends U{priority=130;parse(e,n){return Vt(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Pu extends U{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return z(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Mu extends U{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return z(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Nu extends U{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"M":return G(W(j.month,e),o);case"MM":return G(z(2,e),o);case"Mo":return G(r.ordinalNumber(e,{unit:"month"}),o);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Cu extends U{priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"L":return G(W(j.month,e),o);case"LL":return G(z(2,e),o);case"Lo":return G(r.ordinalNumber(e,{unit:"month"}),o);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Lu(t,e,n){const r=F(t,n?.in),o=Ro(r,n)-e;return r.setDate(r.getDate()-o*7),F(r,n?.in)}class ku extends U{priority=100;parse(e,n,r){switch(n){case"w":return W(j.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return z(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,o){return Fe(Lu(e,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Iu(t,e,n){const r=F(t,n?.in),o=Ao(r,n)-e;return r.setDate(r.getDate()-o*7),r}class Fu extends U{priority=100;parse(e,n,r){switch(n){case"I":return W(j.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return z(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return ct(Iu(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const vu=[31,28,31,30,31,30,31,31,30,31,30,31],Uu=[31,29,31,30,31,30,31,31,30,31,30,31];class Hu extends U{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return W(j.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return z(n.length,e)}}validate(e,n){const r=e.getFullYear(),o=Fo(r),s=e.getMonth();return o?n>=1&&n<=Uu[s]:n>=1&&n<=vu[s]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Bu extends U{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return W(j.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return z(n.length,e)}}validate(e,n){const r=e.getFullYear();return Fo(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Hn(t,e,n){const r=at(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=F(t,n?.in),i=s.getDay(),l=(e%7+7)%7,d=7-o,h=e<0||e>6?e-(i+d)%7:(l+d)%7-(i+d)%7;return yo(s,h,n)}class $u extends U{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Hn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class Wu extends U{priority=90;parse(e,n,r,o){const s=i=>{const c=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+c};switch(n){case"e":case"ee":return G(z(n.length,e),s);case"eo":return G(r.ordinalNumber(e,{unit:"day"}),s);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Hn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class zu extends U{priority=90;parse(e,n,r,o){const s=i=>{const c=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+c};switch(n){case"c":case"cc":return G(z(n.length,e),s);case"co":return G(r.ordinalNumber(e,{unit:"day"}),s);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Hn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function qu(t,e,n){const r=F(t,n?.in),o=gu(r,n),s=e-o;return yo(r,s,n)}class Yu extends U{priority=90;parse(e,n,r){const o=s=>s===0?7:s;switch(n){case"i":case"ii":return z(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return G(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return G(r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return G(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);default:return G(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=qu(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class ju extends U{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Un(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class Gu extends U{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Un(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class Xu extends U{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(Un(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class Vu extends U{priority=70;parse(e,n,r){switch(n){case"h":return W(j.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return z(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const o=e.getHours()>=12;return o&&r<12?e.setHours(r+12,0,0,0):!o&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class Qu extends U{priority=70;parse(e,n,r){switch(n){case"H":return W(j.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return z(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class Ku extends U{priority=70;parse(e,n,r){switch(n){case"K":return W(j.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return z(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class Ju extends U{priority=70;parse(e,n,r){switch(n){case"k":return W(j.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return z(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const o=r<=24?r%24:r;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class Zu extends U{priority=60;parse(e,n,r){switch(n){case"m":return W(j.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return z(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class el extends U{priority=50;parse(e,n,r){switch(n){case"s":return W(j.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return z(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class tl extends U{priority=30;parse(e,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return G(z(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class nl extends U{priority=10;parse(e,n){switch(n){case"X":return Ae(Oe.basicOptionalMinutes,e);case"XX":return Ae(Oe.basic,e);case"XXXX":return Ae(Oe.basicOptionalSeconds,e);case"XXXXX":return Ae(Oe.extendedOptionalSeconds,e);default:return Ae(Oe.extended,e)}}set(e,n,r){return n.timestampIsSet?e:K(e,e.getTime()-Xt(e)-r)}incompatibleTokens=["t","T","x"]}class rl extends U{priority=10;parse(e,n){switch(n){case"x":return Ae(Oe.basicOptionalMinutes,e);case"xx":return Ae(Oe.basic,e);case"xxxx":return Ae(Oe.basicOptionalSeconds,e);case"xxxxx":return Ae(Oe.extendedOptionalSeconds,e);default:return Ae(Oe.extended,e)}}set(e,n,r){return n.timestampIsSet?e:K(e,e.getTime()-Xt(e)-r)}incompatibleTokens=["t","T","X"]}class ol extends U{priority=40;parse(e){return ko(e)}set(e,n,r){return[K(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class sl extends U{priority=20;parse(e){return ko(e)}set(e,n,r){return[K(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const il={G:new Au,y:new Ru,Y:new Su,R:new xu,u:new Du,Q:new Pu,q:new Mu,M:new Nu,L:new Cu,w:new ku,I:new Fu,d:new Hu,D:new Bu,E:new $u,e:new Wu,c:new zu,i:new Yu,a:new ju,b:new Gu,B:new Xu,h:new Vu,H:new Qu,K:new Ku,k:new Ju,m:new Zu,s:new el,S:new tl,X:new nl,x:new rl,t:new ol,T:new sl},al=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ul=/^'([^]*?)'?$/,ll=/''/g,fl=/\S/,dl=/[a-zA-Z]/;function hl(t,e,n,r){const o=()=>K(n,NaN),s=pu(),i=s.locale??Oo,c=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?o():F(n,r?.in);const d={firstWeekContainsDate:c,weekStartsOn:l,locale:i},h=[new Ou(r?.in,n)],p=e.match(cl).map(y=>{const m=y[0];if(m in Fn){const _=Fn[m];return _(y,i.formatLong)}return y}).join("").match(al),g=[];for(let y of p){Co(y)&&vn(y,e,t),No(y)&&vn(y,e,t);const m=y[0],_=il[m];if(_){const{incompatibleTokens:R}=_;if(Array.isArray(R)){const k=g.find(P=>R.includes(P.token)||P.token===m);if(k)throw new RangeError(`The format string mustn't contain \`${k.fullToken}\` and \`${y}\` at the same time`)}else if(_.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${y}\` and any other token at the same time`);g.push({token:m,fullToken:y});const S=_.run(t,y,i.match,d);if(!S)return o();h.push(S.setter),t=S.rest}else{if(m.match(dl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");if(y==="''"?y="'":m==="'"&&(y=ml(y)),t.indexOf(y)===0)t=t.slice(y.length);else return o()}}if(t.length>0&&fl.test(t))return o();const E=h.map(y=>y.priority).sort((y,m)=>m-y).filter((y,m,_)=>_.indexOf(y)===m).map(y=>h.filter(m=>m.priority===y).sort((m,_)=>_.subPriority-m.subPriority)).map(y=>y[0]);let A=F(n,r?.in);if(isNaN(+A))return o();const D={};for(const y of E){if(!y.validate(A,d))return o();const m=y.set(A,D,d);Array.isArray(m)?(A=m[0],Object.assign(D,m[1])):A=m}return A}function ml(t){return t.match(ul)[1].replace(ll,"'")}const Lt=t=>{const e=typeof t=="string"?new Date(t):t;if(isNaN(e.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");return e},pl=t=>{const e=Lt(t),n=540*60*1e3;return new Date(e.getTime()+n)},gl=t=>{const e=Lt(t),n=540*60*1e3;return new Date(e.getTime()-n)},vo=(t,e="yyyy-MM-dd")=>{const n=Lt(t);return du(n,e)},yl=t=>mu(t),wl=(t,e)=>hl(t,e??"yyyy-MM-dd",new Date),bl=t=>{const e=Lt(t),n=Math.max(0,Math.floor((Date.now()-e.getTime())/(60*1e3)));if(n<60)return`${n.toString().padStart(2,"0")}분`;const r=Math.floor(n/60),o=n%60;return`${r}시간${o}분`},Tl=t=>{if(!Number.isFinite(t))throw new Error("초는 유한한 숫자여야 합니다.");const e=Math.max(0,Math.floor(t)),n=Math.floor(e/60),r=e%60;return`${n}:${r.toString().padStart(2,"0")}`},El=(t,e)=>wu(t,e)?t:e,_l=(t,e)=>yu(t,e)?t:e,Ol=(t,e)=>{const n=new Date,r=n>=t,s={...{direction:r?"전":"후",seconds:r?"방금":"잠시",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년"},...e},i=[{diffFunc:gc,limit:60,label:s.minutes},{diffFunc:mc,limit:24,label:s.hours},{diffFunc:Eo,limit:7,label:s.days},{diffFunc:Ec,limit:5,label:s.weeks},{diffFunc:Tc,limit:12,label:s.months},{diffFunc:_c,limit:1/0,label:s.years}];for(const c of i){const l=Math.abs(c.diffFunc(n,t));if(l>=1&&l<c.limit)return`${l}${c.label} ${s.direction}`}return r?`${s.seconds} ${s.direction}`:`${s.seconds} ${s.direction}`},Al=(t,e={})=>{const{use12Hour:n=!0,showPeriod:r=!0,showSeconds:o=!1,includeDate:s=!1,includeWeekday:i=!1,timeSeparator:c=":",dateFormat:l="yyyy-MM-dd",dateTimeSeparator:d=" ",padHours:h=!0,periodLabels:p={am:"오전",pm:"오후"},weekdayLabels:g=["일","월","화","수","목","금","토"]}=e,E=Lt(t),A=E.getHours(),D=E.getMinutes(),y=E.getSeconds();let m="";if(n){const R=A<12?p.am:p.pm,S=A%12||12,k=h?S.toString().padStart(2,"0"):S.toString();m=r?`${R} ${k}`:k}else m=h?A.toString().padStart(2,"0"):A.toString();const _=D.toString().padStart(2,"0");if(m+=`${c}${_}`,o){const R=y.toString().padStart(2,"0");m+=`${c}${R}`}if(s){let S=vo(E,l);if(i){const k=g[E.getDay()];S+=` (${k})`}return`${S}${d}${m}`}return m};function Rl(t,e){const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}const Sl=Object.freeze(Object.defineProperty({__proto__:null,afterDate:_l,beforeDate:El,formatDate:vo,formatMinutesPassedSince:bl,formatSecondsToMinutesSeconds:Tl,formatToCustomKoreanTime:Al,isSameDay:Rl,isSameMinute:(t,e)=>{const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e,o=n.setSeconds(0,0),s=r.setSeconds(0,0);return o===s},kstToUtc:gl,parseDate:wl,relativeTime:Ol,toISO:yl,utcToKst:pl},Symbol.toStringTag,{value:"Module"})),xl=Object.freeze(Object.defineProperty({__proto__:null,convertVideoLinks:t=>{let e=t;const n=r=>`<iframe src="${r}" frameborder="0" allowfullscreen style="display:block;width:100%;max-width:100%;aspect-ratio:16 / 9;height:auto;"></iframe>`;return e=e.replace(/https?:\/\/youtu\.be\/([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e=e.replace(/https?:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e},iframeHTMLRenderer:{htmlBlock:{iframe(t){return[{type:"openTag",tagName:"iframe",outerNewLine:!0,attributes:t.attrs},{type:"html",content:t.childrenHTML??""},{type:"closeTag",tagName:"iframe",outerNewLine:!0}]}}}},Symbol.toStringTag,{value:"Module"}));he.FormatData=bt,he.SanitizeHtml=sc,he.dateUtils=Sl,he.editorUtils=xl,he.filterParams=zr,he.handleError=wa,he.userAgent=Oa,he.validate=Rs,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})}));
|