@agentlang/lstudio 0.0.1

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.
Files changed (65) hide show
  1. package/assets/__vite-browser-external-BDMct_Gn-FmFgRqLi.js +1 -0
  2. package/assets/__vite-browser-external-CoxO8HJt-D7Ct-6yo.js +1 -0
  3. package/assets/__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js +1 -0
  4. package/assets/__vite-browser-external-DJy8wZt7.js +1 -0
  5. package/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js +1 -0
  6. package/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  7. package/assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js +1 -0
  8. package/assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js +1 -0
  9. package/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +1 -0
  10. package/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
  11. package/assets/artificial-intelligence.png +0 -0
  12. package/assets/auth.png +0 -0
  13. package/assets/bg-gradient.png +0 -0
  14. package/assets/favicon.ico +0 -0
  15. package/assets/fractl-logo-small.png +0 -0
  16. package/assets/index-69shuAsh-DF18H7zf.js +1 -0
  17. package/assets/index-6mKfgpcs-DsgiI2lM.js +6 -0
  18. package/assets/index-BJBOx-Z---hbiLl7B.js +5 -0
  19. package/assets/index-BOLaQ9_Z.js +58 -0
  20. package/assets/index-BfpeqTCw.js +20 -0
  21. package/assets/index-BoNKy6Ic.js +1 -0
  22. package/assets/index-C2ka9ALg.js +1 -0
  23. package/assets/index-CNLtnwcG-CT9Tl0QI.js +20 -0
  24. package/assets/index-CNLtnwcG-HJoxiQBn-DSWPwCKS.js +20 -0
  25. package/assets/index-CUtIwvTY-Dla_hTy0.js +58 -0
  26. package/assets/index-CXX5Wl6h.js +15 -0
  27. package/assets/index-CZyH7rAI-yNipxqK_.js +20 -0
  28. package/assets/index-ChvoNxcO.js +5 -0
  29. package/assets/index-D1jV2j2Y.js +1 -0
  30. package/assets/index-D5v913EJ-CsbEilVn.js +1 -0
  31. package/assets/index-DGQM-tVy-4NRC-u1U.js +1 -0
  32. package/assets/index-DIt05veo.js +6 -0
  33. package/assets/index-DSosZ5sh-Ceejs_jv.js +1 -0
  34. package/assets/index-DdrtU5Ny-B6H3P3T_.js +1 -0
  35. package/assets/index-DsIu-45t-Bejjlpz4.js +6 -0
  36. package/assets/index-Dy4QD7s1-DSfoLCzX.js +17 -0
  37. package/assets/index-EboTSEmN.js +35656 -0
  38. package/assets/index-VamKv2HZ--hbiLl7B.js +5 -0
  39. package/assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js +5 -0
  40. package/assets/index-Ynim4IDh.js +1 -0
  41. package/assets/index-ZXlevk9Z.js +1 -0
  42. package/assets/index-ddRsp7-o.css +1 -0
  43. package/assets/index-xuotMAFm-B-PTrwYx.js +1 -0
  44. package/assets/index.browser-CRa8kZEZ.js +6 -0
  45. package/assets/inherits_browser-5Fj3Mjxs.js +1 -0
  46. package/assets/inherits_browser-BPb0V7-q-C7Z2MfVc.js +1 -0
  47. package/assets/loadCognitoIdentity-BLrW2K3k.js +1 -0
  48. package/assets/loadSts-9Q8afg2C.js +1 -0
  49. package/assets/normalizeProvider-BrOPyH3l.js +3 -0
  50. package/assets/preload-helper-BlTxHScW.js +1 -0
  51. package/assets/replService-DgQy0gOO.js +1 -0
  52. package/assets/util-ByC4ZISM-BeKX2g97.js +1 -0
  53. package/assets/util-Di1GNq-L-D-kgTTr0.js +10 -0
  54. package/assets/util-qaS8mbUT.js +10 -0
  55. package/assets/winston-Bb5ONwX_-B86ttl8E.js +1 -0
  56. package/assets/winston-Bb5ONwX_-ziOUC-cl-v-kyB29h.js +1 -0
  57. package/assets/winston-BvKfy0iJ-CwnGwJ9X.js +51 -0
  58. package/assets/winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js +51 -0
  59. package/assets/winston-CLh__iui-Dz2dJhwh.js +1 -0
  60. package/assets/winston-CtcDki1r-tmxR7nDg.js +37 -0
  61. package/assets/winston-D8lBg2T-.js +1 -0
  62. package/assets/winston-DaXMbKRs.js +37 -0
  63. package/fonts/red-hat.tff +0 -0
  64. package/index.html +49 -0
  65. package/package.json +19 -0
@@ -0,0 +1,15 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BoNKy6Ic.js","assets/normalizeProvider-BrOPyH3l.js"])))=>i.map(i=>d[i]);
2
+ import{f as K,d as ht,a as ft,t as pt,c as ye,H as I,b as O,j as mt,k as W}from"./normalizeProvider-BrOPyH3l.js";import{_ as gt}from"./preload-helper-BlTxHScW.js";import{_ as yt,a as wt}from"./index-EboTSEmN.js";const St=(t,e,r)=>{let s,n,i,a=!1;const u=async()=>{n||(n=t());try{s=await n,i=!0,a=!1}finally{n=void 0}return s};return async o=>((!i||o?.forceRefresh)&&(s=await u()),s)},sn=t=>({setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}),nn=t=>({httpHandler:t.httpHandler()});var U;(function(t){t.HTTP="http",t.HTTPS="https"})(U||(U={}));var X;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(X||(X={}));const ue="__smithy_context",z=t=>typeof t=="string"?K(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),M=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const s of e)r.push(s);return r},A=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,J=()=>{let t=[],e=[],r=!1;const s=new Set,n=c=>c.sort((d,h)=>Ee[h.step]-Ee[d.step]||ve[h.priority||"normal"]-ve[d.priority||"normal"]),i=c=>{let d=!1;const h=m=>{const g=M(m.name,m.aliases);if(g.includes(c)){d=!0;for(const f of g)s.delete(f);return!1}return!0};return t=t.filter(h),e=e.filter(h),d},a=c=>{let d=!1;const h=m=>{if(m.middleware===c){d=!0;for(const g of M(m.name,m.aliases))s.delete(g);return!1}return!0};return t=t.filter(h),e=e.filter(h),d},u=c=>(t.forEach(d=>{c.add(d.middleware,{...d})}),e.forEach(d=>{c.addRelativeTo(d.middleware,{...d})}),c.identifyOnResolve?.(p.identifyOnResolve()),c),o=c=>{const d=[];return c.before.forEach(h=>{h.before.length===0&&h.after.length===0?d.push(h):d.push(...o(h))}),d.push(c),c.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?d.push(h):d.push(...o(h))}),d},l=(c=!1)=>{const d=[],h=[],m={};return t.forEach(f=>{const y={...f,before:[],after:[]};for(const w of M(y.name,y.aliases))m[w]=y;d.push(y)}),e.forEach(f=>{const y={...f,before:[],after:[]};for(const w of M(y.name,y.aliases))m[w]=y;h.push(y)}),h.forEach(f=>{if(f.toMiddleware){const y=m[f.toMiddleware];if(y===void 0){if(c)return;throw new Error(`${f.toMiddleware} is not found when adding ${A(f.name,f.aliases)} middleware ${f.relation} ${f.toMiddleware}`)}f.relation==="after"&&y.after.push(f),f.relation==="before"&&y.before.push(f)}}),n(d).map(o).reduce((f,y)=>(f.push(...y),f),[])},p={add:(c,d={})=>{const{name:h,override:m,aliases:g}=d,f={step:"initialize",priority:"normal",middleware:c,...d},y=M(h,g);if(y.length>0){if(y.some(w=>s.has(w))){if(!m)throw new Error(`Duplicate middleware name '${A(h,g)}'`);for(const w of y){const T=t.findIndex(k=>k.name===w||k.aliases?.some(Z=>Z===w));if(T===-1)continue;const b=t[T];if(b.step!==f.step||f.priority!==b.priority)throw new Error(`"${A(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${A(h,g)}" middleware with ${f.priority} priority in ${f.step} step.`);t.splice(T,1)}}for(const w of y)s.add(w)}t.push(f)},addRelativeTo:(c,d)=>{const{name:h,override:m,aliases:g}=d,f={middleware:c,...d},y=M(h,g);if(y.length>0){if(y.some(w=>s.has(w))){if(!m)throw new Error(`Duplicate middleware name '${A(h,g)}'`);for(const w of y){const T=e.findIndex(k=>k.name===w||k.aliases?.some(Z=>Z===w));if(T===-1)continue;const b=e[T];if(b.toMiddleware!==f.toMiddleware||b.relation!==f.relation)throw new Error(`"${A(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${A(h,g)}" middleware ${f.relation} "${f.toMiddleware}" middleware.`);e.splice(T,1)}}for(const w of y)s.add(w)}e.push(f)},clone:()=>u(J()),use:c=>{c.applyToStack(p)},remove:c=>typeof c=="string"?i(c):a(c),removeByTag:c=>{let d=!1;const h=m=>{const{tags:g,name:f,aliases:y}=m;if(g&&g.includes(c)){const w=M(f,y);for(const T of w)s.delete(T);return d=!0,!1}return!0};return t=t.filter(h),e=e.filter(h),d},concat:c=>{const d=u(J());return d.use(c),d.identifyOnResolve(r||d.identifyOnResolve()||(c.identifyOnResolve?.()??!1)),d},applyToStack:u,identify:()=>l(!0).map(c=>{const d=c.step??c.relation+" "+c.toMiddleware;return A(c.name,c.aliases)+" - "+d}),identifyOnResolve(c){return typeof c=="boolean"&&(r=c),r},resolve:(c,d)=>{for(const h of l().map(m=>m.middleware).reverse())c=h(c,d);return r&&console.log(p.identify()),c}};return p},Ee={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ve={high:3,normal:2,low:1};class an{config;middlewareStack=J();initConfig;handlers;constructor(e){this.config=e}send(e,r,s){const n=typeof r!="function"?r:void 0,i=typeof r=="function"?r:s,a=n===void 0&&this.config.cacheMiddleware===!0;let u;if(a){this.handlers||(this.handlers=new WeakMap);const o=this.handlers;o.has(e.constructor)?u=o.get(e.constructor):(u=e.resolveMiddleware(this.middlewareStack,this.config,n),o.set(e.constructor,u))}else delete this.handlers,u=e.resolveMiddleware(this.middlewareStack,this.config,n);if(i)u(e).then(o=>i(null,o.output),o=>i(o)).catch(()=>{});else return u(e).then(o=>o.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class P extends Uint8Array{static fromString(e,r="utf-8"){if(typeof e=="string")return r==="base64"?P.mutate(ht(e)):P.mutate(K(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,P.prototype),e}transformToString(e="utf-8"){return e==="base64"?ft(this):pt(this)}}const Te=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return P.mutate(t);if(!t)return P.mutate(new Uint8Array);const r=e.streamCollector(t);return P.mutate(await r)},ee=t=>typeof t=="function"?t():t,j=t=>t[ue]||(t[ue]={}),$=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},ze=(t,e,r,s,n)=>({name:e,namespace:t,traits:r,input:s,output:n}),bt=t=>(e,r)=>async s=>{const{response:n}=await e(s),{operationSchema:i}=j(r),[,a,u,o,l,p]=i??[];try{const c=await t.protocol.deserializeResponse(ze(a,u,o,l,p),{...t,...r},n);return{response:n,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in c)){const d="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{c.message+=`
3
+ `+d}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(d):r.logger?.warn?.(d)}typeof c.$responseBodyText<"u"&&c.$response&&(c.$response.body=c.$responseBodyText);try{if(ye.isInstance(n)){const{headers:h={}}=n,m=Object.entries(h);c.$metadata={httpStatusCode:n.statusCode,requestId:te(/^x-[\w-]+-request-?id$/,m),extendedRequestId:te(/^x-[\w-]+-id-2$/,m),cfId:te(/^x-[\w-]+-cf-id$/,m)}}}catch{}}throw c}},te=(t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],Rt=t=>(e,r)=>async s=>{const{operationSchema:n}=j(r),[,i,a,u,o,l]=n??[],p=r.endpointV2?.url&&t.urlParser?async()=>t.urlParser(r.endpointV2.url):t.endpoint,c=await t.protocol.serializeRequest(ze(i,a,u,o,l),s.input,{...t,...r,endpoint:p});return e({...s,request:c})},Et={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},vt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function on(t){return{applyToStack:e=>{e.add(Rt(t),vt),e.add(bt(t),Et),t.protocol.setSerdeContext(t)}}}function L(t){if(typeof t=="object")return t;t=t|0;const e={};let r=0;for(const s of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[s]=1);return e}class v{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=v.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;const s=[];let n=e,i=e;for(this._isMemberSchema=!1;re(n);)s.push(n[1]),n=n[0],i=ee(n),this._isMemberSchema=!0;if(s.length>0){this.memberTraits={};for(let a=s.length-1;a>=0;--a){const u=s[a];Object.assign(this.memberTraits,L(u))}}else this.memberTraits=0;if(i instanceof v){const a=this.memberTraits;Object.assign(this,i),this.memberTraits=Object.assign({},a,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??i.memberName;return}if(this.schema=ee(i),Tt(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(i),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){const r=ee(e);if(r instanceof v)return r;if(re(r)){const[s,n]=r;if(s instanceof v)return Object.assign(s.getMergedTraits(),L(n)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new v(r)}getSchema(){const e=this.schema;return e[0]===0?e[4]:e}getName(e=!1){const{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();return e[0]===3||e[0]===-3}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){const e=i=>(i&4)===4||!!i?.idempotencyToken,{normalizedTraits:r,traits:s,memberTraits:n}=this;return e(r)||e(s)||e(n)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return L(this.memberTraits)}getOwnTraits(){return L(this.traits)}getKeySchema(){const[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const s=this.getSchema(),n=e?15:s[4]??0;return _([n,0],"key")}getValueSchema(){const e=this.getSchema(),[r,s,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i=typeof e=="number"?63&e:e&&typeof e=="object"&&(s||n)?e[3+e[0]]:r?15:void 0;if(i!=null)return _([i,0],s?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){const s=r[4].indexOf(e),n=r[5][s];return _(re(n)?n:[n,0],e)}if(this.isDocumentSchema())return _([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[r,s]of this.structIterator())e[r]=s}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema();for(let r=0;r<e[4].length;++r)yield[e[4][r],_([e[5][r],0],e[4][r])]}}function _(t,e){if(t instanceof v)return Object.assign(t,{memberName:e,_isMemberSchema:!0});const r=v;return new r(t,e)}const re=t=>Array.isArray(t)&&t.length===2,Tt=t=>Array.isArray(t)&&t.length>=5;class x{namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,s=new Map){this.namespace=e,this.schemas=r,this.exceptions=s}static for(e){return x.registries.has(e)||x.registries.set(e,new x(e)),x.registries.get(e)}register(e,r){const s=this.normalizeShapeId(e);x.for(s.split("#")[0]).schemas.set(s,r)}getSchema(e){const r=this.normalizeShapeId(e);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(e,r){const s=e,n=x.for(s[1]);n.schemas.set(s[1]+"#"+s[2],s),n.exceptions.set(s,r)}getErrorCtor(e){const r=e;return x.for(r[1]).exceptions.get(r)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,r,s]=e,n=r+"#"+s;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}const Ae=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),At=()=>{if(Ae)return Ae();const t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,S[t[0]]+S[t[1]]+S[t[2]]+S[t[3]]+"-"+S[t[4]]+S[t[5]]+"-"+S[t[6]]+S[t[7]]+"-"+S[t[8]]+S[t[9]]+"-"+S[t[10]]+S[t[11]]+S[t[12]]+S[t[13]]+S[t[14]]+S[t[15]]},N=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};N.from=t=>t&&typeof t=="object"&&(t instanceof N||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?N(String(t)):N(JSON.stringify(t));N.fromObject=N.from;const xe=/^-?\d*(\.\d+)?$/;class Be{string;type;constructor(e,r){if(this.string=e,this.type=r,!xe.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;const r=e;return Be.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&xe.test(r.string)}}class xt{serdeContext;setSerdeContext(e){this.serdeContext=e}}class Ct extends xt{options;constructor(e){super(),this.options=e}getRequestType(){return I}getResponseType(){return ye}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(const[s,n]of r.url.searchParams.entries())e.query[s]=n;return e}else return e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},e}setHostPrefix(e,r,s){const n=v.of(r.input),i=L(r.traits??{});if(i.endpoint){let a=i.endpoint?.[0];if(typeof a=="string"){const u=[...n.structIterator()].filter(([,o])=>o.getMergedTraits().hostLabel);for(const[o]of u){const l=s[o];if(typeof l!="string")throw new Error(`@smithy/core/schema - ${o} in input must be a string as hostLabel.`);a=a.replace(`{${o}}`,l)}e.hostname=a+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:s})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:s})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await gt(async()=>{const{EventStreamSerde:r}=await import("./index-BoNKy6Ic.js");return{EventStreamSerde:r}},__vite__mapDeps([0,1]));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,s,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class cn extends Ct{async serializeRequest(e,r,s){const n=this.serializer,i={},a={},u=await s.endpoint(),o=v.of(e?.input),l=o.getSchema();let p;const c=new I({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:i,headers:a,body:void 0});u&&(this.updateServiceEndpoint(c,u),this.setHostPrefix(c,e,r));const d={...r};if(r){const h=o.getEventStreamMember();if(h){if(d[h]){const m={};for(const[g,f]of o.structIterator())g!==h&&d[g]&&(n.write(f,d[g]),m[g]=n.flush());p=await this.serializeEventStream({eventStream:d[h],requestSchema:o,initialRequest:m})}}else n.write(l,d),p=n.flush()}return c.headers=a,c.query=i,c.body=p,c.method="POST",c}async deserializeResponse(e,r,s){const n=this.deserializer,i=v.of(e.output),a={};if(s.statusCode>=300){const o=await Te(s.body,r);throw o.byteLength>0&&Object.assign(a,await n.read(15,o)),await this.handleError(e,r,s,a,this.deserializeMetadata(s)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const o in s.headers){const l=s.headers[o];delete s.headers[o],s.headers[o.toLowerCase()]=l}const u=i.getEventStreamMember();if(u)a[u]=await this.deserializeEventStream({response:s,responseSchema:i,initialResponseContainer:a});else{const o=await Te(s.body,r);o.byteLength>0&&Object.assign(a,await n.read(i,o))}return a.$metadata=this.deserializeMetadata(s),a}}function un(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();const{httpLabel:r,httpPrefixHeaders:s,httpHeader:n,httpQuery:i}=t.getMergedTraits();return(e.httpBindings?typeof s=="string"||n?6:i||r?5:void 0:void 0)??e.timestampFormat.default}const se="***SensitiveInformation***";function de(t,e){if(e==null)return e;const r=v.of(t);if(r.getMergedTraits().sensitive)return se;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return se}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return se}else if(r.isStructSchema()&&typeof e=="object"){const s=e,n={};for(const[i,a]of r.structIterator())s[i]!=null&&(n[i]=de(a,s[i]));return n}return e}class It{middlewareStack=J();schema;static classBuilder(){return new Mt}resolveMiddlewareWithContext(e,r,s,{middlewareFn:n,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:o,smithyContext:l,additionalContext:p,CommandCtor:c}){for(const f of n.bind(this)(c,e,r,s))this.middlewareStack.use(f);const d=e.concat(this.middlewareStack),{logger:h}=r,m={logger:h,clientName:i,commandName:a,inputFilterSensitiveLog:u,outputFilterSensitiveLog:o,[ue]:{commandInstance:this,...l},...p},{requestHandler:g}=r;return d.resolve(f=>g.handle(f.request,s||{}),m)}}class Mt{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,s={}){return this._smithyContext={service:e,operation:r,...s},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=s=>s,r=s=>s){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let r;return r=class extends It{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[s]){super(),this.input=s??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(s,n,i){const a=e._operationSchema,u=a?.[4]??a?.input,o=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(s,n,i,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?de.bind(null,u):l=>l),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?de.bind(null,o):l=>l),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}class H extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const r=e;return H.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;const r=e;return this===H?H.isInstance(e):H.isInstance(e)?r.name&&this.name?this.prototype.isPrototypeOf(e)||r.name===this.name:this.prototype.isPrototypeOf(e):!1}}const dn=(t,e={})=>{Object.entries(e).filter(([,s])=>s!==void 0).forEach(([s,n])=>{(t[s]==null||t[s]==="")&&(t[s]=n)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},ln=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Ot=t=>{const e=[];for(const r in X){const s=X[r];t[s]!==void 0&&e.push({algorithmId:()=>s,checksumConstructor:()=>t[s]})}return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},Pt=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},$t=t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),Nt=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},hn=t=>Object.assign(Ot(t),$t(t)),fn=t=>Object.assign(Pt(t),Nt(t));class Dt{trace(){}debug(){}info(){}warn(){}error(){}}const kt=(t,e)=>{if(!e||e.length===0)return t;const r=[];for(const s of e)for(const n of t)n.schemeId.split("#")[1]===s&&r.push(n);for(const s of t)r.find(({schemeId:n})=>n===s.schemeId)||r.push(s);return r};function _t(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const Lt=(t,e)=>(r,s)=>async n=>{const i=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,s,n.input)),a=t.authSchemePreference?await t.authSchemePreference():[],u=kt(i,a),o=_t(t.httpAuthSchemes),l=j(s),p=[];for(const c of u){const d=o.get(c.schemeId);if(!d){p.push(`HttpAuthScheme \`${c.schemeId}\` was not enabled for this service.`);continue}const h=d.identityProvider(await e.identityProviderConfigProvider(t));if(!h){p.push(`HttpAuthScheme \`${c.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:m={},signingProperties:g={}}=c.propertiesExtractor?.(t,s)||{};c.identityProperties=Object.assign(c.identityProperties||{},m),c.signingProperties=Object.assign(c.signingProperties||{},g),l.selectedHttpAuthScheme={httpAuthOption:c,identity:await h(c.identityProperties),signer:d.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(p.join(`
4
+ `));return r(n)},Ht={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},pn=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:s=>{s.addRelativeTo(Lt(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),Ht)}}),Ut={name:"serializerMiddleware"},zt=t=>e=>{throw e},Bt=(t,e)=>{},Ft=t=>(e,r)=>async s=>{if(!I.isInstance(s.request))return e(s);const i=j(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:u,signer:o}=i,l=await e({...s,request:await o.sign(s.request,u,a)}).catch((o.errorHandler||zt)(a));return(o.successHandler||Bt)(l.response,a),l},jt={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},mn=t=>({applyToStack:e=>{e.addRelativeTo(Ft(),jt)}});function qt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}class gn{authSchemes=new Map;constructor(e){for(const[r,s]of Object.entries(e))s!==void 0&&this.authSchemes.set(r,s)}getIdentityProvider(e){return this.authSchemes.get(e)}}class yn{async sign(e,r,s){return e}}const Wt=t=>function(r){return Vt(r)&&r.expiration.getTime()-Date.now()<t},Gt=3e5,wn=Wt(Gt),Vt=t=>t.expiration!==void 0,Sn=(t,e,r)=>{if(t===void 0)return;const s=typeof t!="function"?async()=>Promise.resolve(t):t;let n,i,a,u=!1;const o=async l=>{i||(i=s(l));try{n=await i,a=!0,u=!1}finally{i=void 0}return n};return e===void 0?async l=>((!a||l?.forceRefresh)&&(n=await o(l)),n):async l=>((!a||l?.forceRefresh)&&(n=await o(l)),u?n:r(n)?(e(n)&&await o(l),n):(u=!0,n))};function bn(t){return t}const Kt=t=>e=>async r=>{if(!I.isInstance(r.request))return e(r);const{request:s}=r,{handlerProtocol:n=""}=t.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let i=s.hostname;s.port!=null&&(i+=`:${s.port}`),s.headers.host=i}return e(r)},Xt={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Rn=t=>({applyToStack:e=>{e.add(Kt(t),Xt)}}),Jt=()=>(t,e)=>async r=>{try{const s=await t(r),{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:u={}}=e,{overrideInputFilterSensitiveLog:o,overrideOutputFilterSensitiveLog:l}=u,p=o??e.inputFilterSensitiveLog,c=l??e.outputFilterSensitiveLog,{$metadata:d,...h}=s.output;return a?.info?.({clientName:n,commandName:i,input:p(r.input),output:c(h),metadata:d}),s}catch(s){const{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:u={}}=e,{overrideInputFilterSensitiveLog:o}=u,l=o??e.inputFilterSensitiveLog;throw a?.error?.({clientName:n,commandName:i,input:l(r.input),error:s,metadata:s.$metadata}),s}},Qt={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},En=t=>({applyToStack:e=>{e.add(Jt(),Qt)}}),Yt={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Zt=()=>t=>async e=>t(e),vn=t=>({applyToStack:e=>{e.add(Zt(),Yt)}});class Tn{capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){const s=this.hash(e);if(s===!1)return r();if(!this.data.has(s)){if(this.data.size>this.capacity+10){const n=this.data.keys();let i=0;for(;;){const{value:a,done:u}=n.next();if(this.data.delete(a),u||++i>10)break}}this.data.set(s,r())}return this.data.get(s)}size(){return this.data.size}hash(e){let r="";const{parameters:s}=this;if(s.length===0)return!1;for(const n of s){const i=String(e[n]??"");if(i.includes("|;"))return!1;r+=i+"|;"}return r}}const er=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Fe=t=>er.test(t)||t.startsWith("[")&&t.endsWith("]"),tr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Q=(t,e=!1)=>{if(!e)return tr.test(t);const r=t.split(".");for(const s of r)if(!Q(s))return!1;return!0},le={},B="endpoints";function C(t){return typeof t!="object"||t==null?t:"ref"in t?`$${C(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(C).join(", ")})`:JSON.stringify(t,null,2)}class R extends Error{constructor(e){super(e),this.name="EndpointError"}}const rr=(t,e)=>t===e,sr=t=>{const e=t.split("."),r=[];for(const s of e){const n=s.indexOf("[");if(n!==-1){if(s.indexOf("]")!==s.length-1)throw new R(`Path: '${t}' does not end with ']'`);const i=s.slice(n+1,-1);if(Number.isNaN(parseInt(i)))throw new R(`Invalid array index: '${i}' in path: '${t}'`);n!==0&&r.push(s.slice(0,n)),r.push(i)}else r.push(s)}return r},je=(t,e)=>sr(e).reduce((r,s)=>{if(typeof r!="object")throw new R(`Index '${s}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(s)]:r[s]},t),nr=t=>t!=null,ir=t=>!t,ne={[U.HTTP]:80,[U.HTTPS]:443},ar=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:h,protocol:m="",path:g="",query:f={}}=t,y=new URL(`${m}//${d}${h?`:${h}`:""}${g}`);return y.search=Object.entries(f).map(([w,T])=>`${w}=${T}`).join("&"),y}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:s,hostname:n,pathname:i,protocol:a,search:u}=e;if(u)return null;const o=a.slice(0,-1);if(!Object.values(U).includes(o))return null;const l=Fe(n),p=r.includes(`${s}:${ne[o]}`)||typeof t=="string"&&t.includes(`${s}:${ne[o]}`),c=`${s}${p?`:${ne[o]}`:""}`;return{scheme:o,authority:c,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:l}},or=(t,e)=>t===e,cr=(t,e,r,s)=>e>=r||t.length<r?null:s?t.substring(t.length-r,t.length-e):t.substring(e,r),ur=t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),dr={booleanEquals:rr,getAttr:je,isSet:nr,isValidHostLabel:Q,not:ir,parseURL:ar,stringEquals:or,substring:cr,uriEncode:ur},qe=(t,e)=>{const r=[],s={...e.endpointParams,...e.referenceRecord};let n=0;for(;n<t.length;){const i=t.indexOf("{",n);if(i===-1){r.push(t.slice(n));break}r.push(t.slice(n,i));const a=t.indexOf("}",i);if(a===-1){r.push(t.slice(i));break}t[i+1]==="{"&&t[a+1]==="}"&&(r.push(t.slice(i+1,a)),n=a+2);const u=t.substring(i+1,a);if(u.includes("#")){const[o,l]=u.split("#");r.push(je(s[o],l))}else r.push(s[u]);n=a+1}return r.join("")},lr=({ref:t},e)=>({...e.endpointParams,...e.referenceRecord})[t],Y=(t,e,r)=>{if(typeof t=="string")return qe(t,r);if(t.fn)return Ge.callFunction(t,r);if(t.ref)return lr(t,r);throw new R(`'${e}': ${String(t)} is not a string, function or reference.`)},We=({fn:t,argv:e},r)=>{const s=e.map(i=>["boolean","number"].includes(typeof i)?i:Ge.evaluateExpression(i,"arg",r)),n=t.split(".");return n[0]in le&&n[1]!=null?le[n[0]][n[1]](...s):dr[t](...s)},Ge={evaluateExpression:Y,callFunction:We},hr=({assign:t,...e},r)=>{if(t&&t in r.referenceRecord)throw new R(`'${t}' is already defined in Reference Record.`);const s=We(e,r);return r.logger?.debug?.(`${B} evaluateCondition: ${C(e)} = ${C(s)}`),{result:s===""?!0:!!s,...t!=null&&{toAssign:{name:t,value:s}}}},we=(t=[],e)=>{const r={};for(const s of t){const{result:n,toAssign:i}=hr(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!n)return{result:n};i&&(r[i.name]=i.value,e.logger?.debug?.(`${B} assign: ${i.name} := ${C(i.value)}`))}return{result:!0,referenceRecord:r}},fr=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:n.map(i=>{const a=Y(i,"Header value entry",e);if(typeof a!="string")throw new R(`Header '${s}' value '${a}' is not a string`);return a})}),{}),Ve=(t,e)=>Object.entries(t).reduce((r,[s,n])=>({...r,[s]:Xe.getEndpointProperty(n,e)}),{}),Ke=(t,e)=>{if(Array.isArray(t))return t.map(r=>Ke(r,e));switch(typeof t){case"string":return qe(t,e);case"object":if(t===null)throw new R(`Unexpected endpoint property: ${t}`);return Xe.getEndpointProperties(t,e);case"boolean":return t;default:throw new R(`Unexpected endpoint property type: ${typeof t}`)}},Xe={getEndpointProperty:Ke,getEndpointProperties:Ve},pr=(t,e)=>{const r=Y(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(s){throw console.error(`Failed to construct URL with ${r}`,s),s}throw new R(`Endpoint URL must be a string, got ${typeof r}`)},mr=(t,e)=>{const{conditions:r,endpoint:s}=t,{result:n,referenceRecord:i}=we(r,e);if(!n)return;const a={...e,referenceRecord:{...e.referenceRecord,...i}},{url:u,properties:o,headers:l}=s;return e.logger?.debug?.(`${B} Resolving endpoint from template: ${C(s)}`),{...l!=null&&{headers:fr(l,a)},...o!=null&&{properties:Ve(o,a)},url:pr(u,a)}},gr=(t,e)=>{const{conditions:r,error:s}=t,{result:n,referenceRecord:i}=we(r,e);if(n)throw new R(Y(s,"Error",{...e,referenceRecord:{...e.referenceRecord,...i}}))},Je=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const s=mr(r,e);if(s)return s}else if(r.type==="error")gr(r,e);else if(r.type==="tree"){const s=Qe.evaluateTreeRule(r,e);if(s)return s}else throw new R(`Unknown endpoint rule: ${r}`);throw new R("Rules evaluation failed")},yr=(t,e)=>{const{conditions:r,rules:s}=t,{result:n,referenceRecord:i}=we(r,e);if(n)return Qe.evaluateRules(s,{...e,referenceRecord:{...e.referenceRecord,...i}})},Qe={evaluateRules:Je,evaluateTreeRule:yr},An=(t,e)=>{const{endpointParams:r,logger:s}=e,{parameters:n,rules:i}=t;e.logger?.debug?.(`${B} Initial EndpointParams: ${C(r)}`);const a=Object.entries(n).filter(([,l])=>l.default!=null).map(([l,p])=>[l,p.default]);if(a.length>0)for(const[l,p]of a)r[l]=r[l]??p;const u=Object.entries(n).filter(([,l])=>l.required).map(([l])=>l);for(const l of u)if(r[l]==null)throw new R(`Missing required parameter: '${l}'`);const o=Je(i,{endpointParams:r,logger:s,referenceRecord:{}});return e.logger?.debug?.(`${B} Resolved endpoint: ${C(o)}`),o},Ye=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!Ye(r))return!1;return!0}return!(!Q(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Fe(t))},Ce=":",wr="/",Sr=t=>{const e=t.split(Ce);if(e.length<6)return null;const[r,s,n,i,a,...u]=e;if(r!=="arn"||s===""||n===""||u.join(Ce)==="")return null;const o=u.map(l=>l.split(wr)).flat();return{partition:s,service:n,region:i,accountId:a,resourceId:o}},br=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"EU (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],Rr={partitions:br};let Er=Rr;const vr=t=>{const{partitions:e}=Er;for(const s of e){const{regions:n,outputs:i}=s;for(const[a,u]of Object.entries(n))if(a===t)return{...i,...u}}for(const s of e){const{regionRegex:n,outputs:i}=s;if(new RegExp(n).test(t))return{...i}}const r=e.find(s=>s.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},Tr={isVirtualHostableS3Bucket:Ye,parseArn:Sr,partition:vr};le.aws=Tr;function Ar(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[s,n=null]=r.split("=");s=decodeURIComponent(s),n&&(n=decodeURIComponent(n)),s in e?Array.isArray(e[s])?e[s].push(n):e[s]=[e[s],n]:e[s]=n}return e}const he=t=>{if(typeof t=="string")return he(new URL(t));const{hostname:e,pathname:r,port:s,protocol:n,search:i}=t;let a;return i&&(a=Ar(i)),{hostname:e,port:s?parseInt(s):void 0,protocol:n,path:r,query:a}},xr="X-Amz-Algorithm",Cr="X-Amz-Credential",Ze="X-Amz-Date",Ir="X-Amz-SignedHeaders",Mr="X-Amz-Expires",et="X-Amz-Signature",tt="X-Amz-Security-Token",rt="authorization",st=Ze.toLowerCase(),Or="date",Pr=[rt,st,Or],$r=et.toLowerCase(),fe="x-amz-content-sha256",Nr=tt.toLowerCase(),Dr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},kr=/^proxy-/,_r=/^sec-/,ie="AWS4-HMAC-SHA256",Lr="AWS4-HMAC-SHA256-PAYLOAD",Hr="UNSIGNED-PAYLOAD",Ur=50,nt="aws4_request",zr=3600*24*7,q={},ae=[],oe=(t,e,r)=>`${t}/${e}/${r}/${nt}`,Br=async(t,e,r,s,n)=>{const i=await Ie(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${s}:${n}:${O(i)}:${e.sessionToken}`;if(a in q)return q[a];for(ae.push(a);ae.length>Ur;)delete q[ae.shift()];let u=`AWS4${e.secretAccessKey}`;for(const o of[r,s,n,nt])u=await Ie(t,u,o);return q[a]=u},Ie=(t,e,r)=>{const s=new t(e);return s.update(z(r)),s.digest()},Me=({headers:t},e,r)=>{const s={};for(const n of Object.keys(t).sort()){if(t[n]==null)continue;const i=n.toLowerCase();(i in Dr||e?.has(i)||kr.test(i)||_r.test(i))&&(!r||r&&!r.has(i))||(s[i]=t[n].trim().replace(/\s+/g," "))}return s},Fr=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",ce=async({headers:t,body:e},r)=>{for(const s of Object.keys(t))if(s.toLowerCase()===fe)return t[s];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||Fr(e)){const s=new r;return s.update(z(e)),O(await s.digest())}return Hr};class jr{format(e){const r=[];for(const i of Object.keys(e)){const a=K(i);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[i]))}const s=new Uint8Array(r.reduce((i,a)=>i+a.byteLength,0));let n=0;for(const i of r)s.set(i,n),n+=i.byteLength;return s}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,e.value,!1),new Uint8Array(s.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case"string":const u=K(e.value),o=new DataView(new ArrayBuffer(3+u.byteLength));o.setUint8(0,7),o.setUint16(1,u.byteLength,!1);const l=new Uint8Array(o.buffer);return l.set(u,3),l;case"timestamp":const p=new Uint8Array(9);return p[0]=8,p.set(Se.fromNumber(e.value.valueOf()).bytes,1),p;case"uuid":if(!qr.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const c=new Uint8Array(17);return c[0]=9,c.set(mt(e.value.replace(/\-/g,"")),1),c}}}var Oe;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(Oe||(Oe={}));const qr=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Se{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let s=7,n=Math.abs(Math.round(e));s>-1&&n>0;s--,n/=256)r[s]=n;return e<0&&Pe(r),new Se(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&Pe(e),parseInt(O(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function Pe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const Wr=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},Gr=(t,e={})=>{const{headers:r,query:s={}}=I.clone(t);for(const n of Object.keys(r)){const i=n.toLowerCase();(i.slice(0,6)==="x-amz-"&&!e.unhoistableHeaders?.has(i)||e.hoistableHeaders?.has(i))&&(s[n]=r[n],delete r[n])}return{...t,headers:r,query:s}},$e=t=>{t=I.clone(t);for(const e of Object.keys(t.headers))Pr.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},Vr=({query:t={}})=>{const e=[],r={};for(const s of Object.keys(t)){if(s.toLowerCase()===$r)continue;const n=W(s);e.push(n);const i=t[s];typeof i=="string"?r[n]=`${n}=${W(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((a,u)=>a.concat([`${n}=${W(u)}`]),[]).sort().join("&"))}return e.sort().map(s=>r[s]).filter(s=>s).join("&")},Kr=t=>Xr(t).toISOString().replace(/\.\d{3}Z$/,"Z"),Xr=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class Jr{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:s,service:n,sha256:i,uriEscapePath:a=!0}){this.service=n,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=$(s),this.credentialProvider=$(r)}createCanonicalRequest(e,r,s){const n=Object.keys(r).sort();return`${e.method}
5
+ ${this.getCanonicalPath(e)}
6
+ ${Vr(e)}
7
+ ${n.map(i=>`${i}:${r[i]}`).join(`
8
+ `)}
9
+
10
+ ${n.join(";")}
11
+ ${s}`}async createStringToSign(e,r,s,n){const i=new this.sha256;i.update(z(s));const a=await i.digest();return`${n}
12
+ ${e}
13
+ ${r}
14
+ ${O(a)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const i of e.split("/"))i?.length!==0&&i!=="."&&(i===".."?r.pop():r.push(i));const s=`${e?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&e?.endsWith("/")?"/":""}`;return W(s).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(e){const r=Kr(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class xn extends Jr{headerFormatter=new jr;constructor({applyChecksum:e,credentials:r,region:s,service:n,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:e,credentials:r,region:s,service:n,sha256:i,uriEscapePath:a})}async presign(e,r={}){const{signingDate:s=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:u,hoistableHeaders:o,signingRegion:l,signingService:p}=r,c=await this.credentialProvider();this.validateResolvedCredentials(c);const d=l??await this.regionProvider(),{longDate:h,shortDate:m}=this.formatDate(s);if(n>zr)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=oe(m,d,p??this.service),f=Gr($e(e),{unhoistableHeaders:a,hoistableHeaders:o});c.sessionToken&&(f.query[tt]=c.sessionToken),f.query[xr]=ie,f.query[Cr]=`${c.accessKeyId}/${g}`,f.query[Ze]=h,f.query[Mr]=n.toString(10);const y=Me(f,i,u);return f.query[Ir]=this.getCanonicalHeaderList(y),f.query[et]=await this.getSignature(h,g,this.getSigningKey(c,d,m,p),this.createCanonicalRequest(f,y,await ce(e,this.sha256))),f}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:s=new Date,priorSignature:n,signingRegion:i,signingService:a}){const u=i??await this.regionProvider(),{shortDate:o,longDate:l}=this.formatDate(s),p=oe(o,u,a??this.service),c=await ce({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const h=O(await d.digest()),m=[Lr,l,p,n,h,c].join(`
15
+ `);return this.signString(m,{signingDate:s,signingRegion:u,signingService:a})}async signMessage(e,{signingDate:r=new Date,signingRegion:s,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:s,signingService:n,priorSignature:e.priorSignature}).then(a=>({message:e.message,signature:a}))}async signString(e,{signingDate:r=new Date,signingRegion:s,signingService:n}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const a=s??await this.regionProvider(),{shortDate:u}=this.formatDate(r),o=new this.sha256(await this.getSigningKey(i,a,u,n));return o.update(z(e)),O(await o.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:s,unsignableHeaders:n,signingRegion:i,signingService:a}={}){const u=await this.credentialProvider();this.validateResolvedCredentials(u);const o=i??await this.regionProvider(),l=$e(e),{longDate:p,shortDate:c}=this.formatDate(r),d=oe(c,o,a??this.service);l.headers[st]=p,u.sessionToken&&(l.headers[Nr]=u.sessionToken);const h=await ce(l,this.sha256);!Wr(fe,l.headers)&&this.applyChecksum&&(l.headers[fe]=h);const m=Me(l,n,s),g=await this.getSignature(p,d,this.getSigningKey(u,o,c,a),this.createCanonicalRequest(l,m,h));return l.headers[rt]=`${ie} Credential=${u.accessKeyId}/${d}, SignedHeaders=${this.getCanonicalHeaderList(m)}, Signature=${g}`,l}async getSignature(e,r,s,n){const i=await this.createStringToSign(e,r,n,ie),a=new this.sha256(await s);return a.update(z(i)),O(await a.digest())}getSigningKey(e,r,s,n){return Br(this.sha256,e,s,r,n||this.service)}}const Ne=typeof TextEncoder=="function"?new TextEncoder:null,Cn=t=>{if(typeof t=="string"){if(Ne)return Ne.encode(t).byteLength;let e=t.length;for(let r=e-1;r>=0;r--){const s=t.charCodeAt(r);s>127&&s<=2047?e++:s>2047&&s<=65535&&(e+=2),s>=56320&&s<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},In=!1,Mn=!1,De=new Set,Qr=(t,e=Q)=>{if(!De.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else De.add(t)},it=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),Yr=t=>it(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,On=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:async()=>{const s=typeof e=="function"?await e():e,n=Yr(s);return Qr(n),n},useFipsEndpoint:async()=>{const s=typeof e=="string"?e:await e();return it(s)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})},ke="content-length";function Zr(t){return e=>async r=>{const s=r.request;if(I.isInstance(s)){const{body:n,headers:i}=s;if(n&&Object.keys(i).map(a=>a.toLowerCase()).indexOf(ke)===-1)try{const a=t(n);s.headers={...s.headers,[ke]:String(a)}}catch{}}return e({...r,request:s})}}const es={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Pn=t=>({applyToStack:e=>{e.add(Zr(t.bodyLengthChecker),es)}}),ts=async t=>{const e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),as(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!is(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},rs=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ss=/(\d+\.){3}\d+/,ns=/\.\./,is=t=>rs.test(t)&&!ss.test(t)&&!ns.test(t),as=t=>{const[e,r,s,,,n]=t.split(":"),i=e==="arn"&&t.split(":").length>=6,a=!!(i&&r&&s&&n);if(i&&!a)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return a},os=(t,e,r)=>{const s=async()=>{const n=r[t]??r[e];return typeof n=="function"?n():n};return t==="credentialScope"||e==="CredentialScope"?async()=>{const n=typeof r.credentials=="function"?await r.credentials():r.credentials;return n?.credentialScope??n?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{const n=typeof r.credentials=="function"?await r.credentials():r.credentials;return n?.accountId??n?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;const n=await s();if(n&&typeof n=="object"){if("url"in n)return n.url.href;if("hostname"in n){const{protocol:i,hostname:a,port:u,path:o}=n;return`${i}//${a}${u?":"+u:""}${o}`}}return n}:s},at=async t=>{},ot=t=>typeof t=="object"?"url"in t?he(t.url):t:he(t),cs=async(t,e,r,s)=>{if(!r.isCustomEndpoint){let a;r.serviceConfiguredEndpoint?a=await r.serviceConfiguredEndpoint():a=await at(r.serviceId),a&&(r.endpoint=()=>Promise.resolve(ot(a)),r.isCustomEndpoint=!0)}const n=await us(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(n,s)},us=async(t,e,r)=>{const s={},n=e?.getEndpointParameterInstructions?.()||{};for(const[i,a]of Object.entries(n))switch(a.type){case"staticContextParams":s[i]=a.value;break;case"contextParams":s[i]=t[a.name];break;case"clientContextParams":case"builtInParams":s[i]=await os(a.name,i,r)();break;case"operationContextParams":s[i]=a.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(n).length===0&&Object.assign(s,r),String(r.serviceId).toLowerCase()==="s3"&&await ts(s),s},ds=({config:t,instructions:e})=>(r,s)=>async n=>{t.isCustomEndpoint&&qt(s,"ENDPOINT_OVERRIDE","N");const i=await cs(n.input,{getEndpointParameterInstructions(){return e}},{...t},s);s.endpointV2=i,s.authSchemes=i.properties?.authSchemes;const a=s.authSchemes?.[0];if(a){s.signing_region=a.signingRegion,s.signing_service=a.signingName;const o=j(s)?.selectedHttpAuthScheme?.httpAuthOption;o&&(o.signingProperties=Object.assign(o.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return r({...n})},ls={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Ut.name},$n=(t,e)=>({applyToStack:r=>{r.addRelativeTo(ds({config:t,instructions:e}),ls)}}),Nn=t=>{const e=t.tls??!0,{endpoint:r,useDualstackEndpoint:s,useFipsEndpoint:n}=t,i=r!=null?async()=>ot(await $(r)()):void 0,u=Object.assign(t,{endpoint:i,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:$(s??!1),useFipsEndpoint:$(n??!1)});let o;return u.serviceConfiguredEndpoint=async()=>(t.serviceId&&!o&&(o=at(t.serviceId)),o),u};var D;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(D||(D={}));const pe=3,Dn=D.STANDARD,hs=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],fs=["TimeoutError","RequestTimeout","RequestTimeoutException"],ps=[500,502,503,504],ms=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],gs=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],ys=t=>t?.$retryable!==void 0,ws=t=>t.$metadata?.clockSkewCorrected,Ss=t=>{const e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},ct=t=>t.$metadata?.httpStatusCode===429||hs.includes(t.name)||t.$retryable?.throttling==!0,be=(t,e=0)=>ys(t)||ws(t)||fs.includes(t.name)||ms.includes(t?.code||"")||gs.includes(t?.code||"")||ps.includes(t.$metadata?.httpStatusCode||0)||Ss(t)||t.cause!==void 0&&e<=10&&be(t.cause,e+1),bs=t=>{if(t.$metadata?.httpStatusCode!==void 0){const e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!be(t)}return!1};class Re{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(s=>Re.setTimeoutFn(s,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),ct(e)){const n=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=n,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(n),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const s=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const me=100,ut=20*1e3,Rs=500,_e=500,Es=5,vs=10,Ts=1,As="amz-sdk-invocation-id",xs="amz-sdk-request",Cs=()=>{let t=me;return{computeNextBackoffDelay:s=>Math.floor(Math.min(ut,Math.random()*2**s*t)),setDelayBase:s=>{t=s}}},Le=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(ut,t),getRetryCost:()=>r});class dt{maxAttempts;mode=D.STANDARD;capacity=_e;retryBackoffStrategy=Cs();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return Le({retryDelay:me,retryCount:0})}async refreshRetryTokenForRetry(e,r){const s=await this.getMaxAttempts();if(this.shouldRetry(e,r,s)){const n=r.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?Rs:me);const i=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),a=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,i):i,u=this.getCapacityCost(n);return this.capacity-=u,Le({retryDelay:a,retryCount:e.getRetryCount()+1,retryCost:u})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(_e,this.capacity+(e.getRetryCost()??Ts))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${pe}`),pe}}shouldRetry(e,r,s){return e.getRetryCount()+1<s&&this.capacity>=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?vs:Es}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class Is{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=D.ADAPTIVE;constructor(e,r){this.maxAttemptsProvider=e;const{rateLimiter:s}=r??{};this.rateLimiter=s??new Re,this.standardRetryStrategy=new dt(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const Ms=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),kn=t=>{const{retryStrategy:e,retryMode:r,maxAttempts:s}=t,n=$(s??pe);return Object.assign(t,{maxAttempts:n,retryStrategy:async()=>e||(await $(r)()===D.ADAPTIVE?new Is(n):new dt(n))})},Os=t=>t?.body instanceof ReadableStream,Ps=t=>(e,r)=>async s=>{let n=await t.retryStrategy();const i=await t.maxAttempts();if($s(n)){n=n;let a=await n.acquireInitialRetryToken(r.partition_id),u=new Error,o=0,l=0;const{request:p}=s,c=I.isInstance(p);for(c&&(p.headers[As]=At());;)try{c&&(p.headers[xs]=`attempt=${o+1}; max=${i}`);const{response:d,output:h}=await e(s);return n.recordSuccess(a),h.$metadata.attempts=o+1,h.$metadata.totalRetryDelay=l,{response:d,output:h}}catch(d){const h=Ns(d);if(u=Ms(d),c&&Os(p))throw(r.logger instanceof Dt?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),u;try{a=await n.refreshRetryTokenForRetry(a,h)}catch{throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=o+1,u.$metadata.totalRetryDelay=l,u}o=a.getRetryCount();const m=a.getRetryDelay();l+=m,await new Promise(g=>setTimeout(g,m))}}else return n=n,n?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",n.mode]]),n.retry(e,s)},$s=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",Ns=t=>{const e={error:t,errorType:Ds(t)},r=_s(t.$response);return r&&(e.retryAfterHint=r),e},Ds=t=>ct(t)?"THROTTLING":be(t)?"TRANSIENT":bs(t)?"SERVER_ERROR":"CLIENT_ERROR",ks={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},_n=t=>({applyToStack:e=>{e.add(Ps(t),ks)}}),_s=t=>{if(!ye.isInstance(t))return;const e=Object.keys(t.headers).find(i=>i.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],s=Number(r);return Number.isNaN(s)?new Date(r):new Date(s*1e3)},Ls=t=>new TextEncoder().encode(t);var Hs=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:Ls;function F(t){return t instanceof Uint8Array?t:typeof t=="string"?Hs(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}function ge(t){return typeof t=="string"?t.length===0:t.byteLength===0}var lt={name:"SHA-256"},He={name:"HMAC",hash:lt},Us=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const zs={};function G(){return typeof window<"u"?window:typeof self<"u"?self:zs}var Bs=(function(){function t(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return t.prototype.update=function(e){if(!ge(e)){var r=F(e),s=new Uint8Array(this.toHash.byteLength+r.byteLength);s.set(this.toHash,0),s.set(r,this.toHash.byteLength),this.toHash=s}},t.prototype.digest=function(){var e=this;return this.key?this.key.then(function(r){return G().crypto.subtle.sign(He,r,e.toHash).then(function(s){return new Uint8Array(s)})}):ge(this.toHash)?Promise.resolve(Us):Promise.resolve().then(function(){return G().crypto.subtle.digest(lt,e.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},t.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(r,s){G().crypto.subtle.importKey("raw",F(e.secret),He,!1,["sign"]).then(r,s)}),this.key.catch(function(){}))},t})(),E=64,Fs=32,js=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),qs=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Ws=Math.pow(2,53)-1,V=(function(){function t(){this.state=Int32Array.from(qs),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,s=e.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>Ws)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=e[r++],s--,this.bufferLength===E&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(r.setUint8(this.bufferLength++,128),s%E>=E-8){for(var n=this.bufferLength;n<E;n++)r.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(var n=this.bufferLength;n<E-8;n++)r.setUint8(n,0);r.setUint32(E-8,Math.floor(e/4294967296),!0),r.setUint32(E-4,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(Fs),n=0;n<8;n++)i[n*4]=this.state[n]>>>24&255,i[n*4+1]=this.state[n]>>>16&255,i[n*4+2]=this.state[n]>>>8&255,i[n*4+3]=this.state[n]>>>0&255;return i},t.prototype.hashBuffer=function(){for(var e=this,r=e.buffer,s=e.state,n=s[0],i=s[1],a=s[2],u=s[3],o=s[4],l=s[5],p=s[6],c=s[7],d=0;d<E;d++){if(d<16)this.temp[d]=(r[d*4]&255)<<24|(r[d*4+1]&255)<<16|(r[d*4+2]&255)<<8|r[d*4+3]&255;else{var h=this.temp[d-2],m=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=this.temp[d-15];var g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[d]=(m+this.temp[d-7]|0)+(g+this.temp[d-16]|0)}var f=(((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&l^~o&p)|0)+(c+(js[d]+this.temp[d]|0)|0)|0,y=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&a^i&a)|0;c=p,p=l,l=o,o=u+f|0,u=a,a=i,i=n,n=f+y|0}s[0]+=n,s[1]+=i,s[2]+=a,s[3]+=u,s[4]+=o,s[5]+=l,s[6]+=p,s[7]+=c},t})(),Gs=(function(){function t(e){this.secret=e,this.hash=new V,this.reset()}return t.prototype.update=function(e){if(!(ge(e)||this.error))try{this.hash.update(F(e))}catch(r){this.error=r}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return yt(this,void 0,void 0,function(){return wt(this,function(e){return[2,this.digestSync()]})})},t.prototype.reset=function(){if(this.hash=new V,this.secret){this.outer=new V;var e=Vs(this.secret),r=new Uint8Array(E);r.set(e);for(var s=0;s<E;s++)e[s]^=54,r[s]^=92;this.hash.update(e),this.outer.update(r);for(var s=0;s<e.byteLength;s++)e[s]=0}},t})();function Vs(t){var e=F(t);if(e.byteLength>E){var r=new V;r.update(e),e=r.digest()}var s=new Uint8Array(E);return s.set(e),s}var Ks=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function Xs(t){if(Js(t)&&typeof t.crypto.subtle=="object"){var e=t.crypto.subtle;return Qs(e)}return!1}function Js(t){if(typeof t=="object"&&typeof t.crypto=="object"){var e=t.crypto.getRandomValues;return typeof e=="function"}return!1}function Qs(t){return t&&Ks.every(function(e){return typeof t[e]=="function"})}var Ln=(function(){function t(e){Xs(G())?this.hash=new Bs(e):this.hash=new Gs(e)}return t.prototype.update=function(e,r){this.hash.update(F(e))},t.prototype.digest=function(){return this.hash.digest()},t.prototype.reset=function(){this.hash.reset()},t})();const Hn=({serviceId:t,clientVersion:e})=>async r=>{const s=typeof window<"u"?window.navigator:void 0,n=s?.userAgent??"",i=s?.userAgentData?.platform??Ue.os(n)??"other",a=void 0,u=s?.userAgentData?.brands??[],o=u[u.length-1],l=o?.brand??Ue.browser(n)??"unknown",p=o?.version??"unknown",c=[["aws-sdk-js",e],["ua","2.1"],[`os/${i}`,a],["lang/js"],["md/browser",`${l}_${p}`]];t&&c.push([`api/${t}`,e]);const d=await r?.userAgentAppId?.();return d&&c.push([`app/${d}`]),c},Ue={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}},Un=t=>()=>Promise.reject(t),Ys=["in-region","cross-region","mobile","standard","legacy"],zn=({defaultsMode:t}={})=>St(async()=>{const e=typeof t=="function"?await t():t;switch(e?.toLowerCase()){case"auto":return Promise.resolve(Zs()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Ys.join(", ")}, got ${e}`)}}),Zs=()=>{const t=window?.navigator;if(t?.connection){const{effectiveType:e,rtt:r,downlink:s}=t?.connection;if(typeof e=="string"&&e!=="4g"||Number(r)>100||Number(s)<10)return!0}return t?.userAgentData?.mobile||typeof t?.maxTouchPoints=="number"&&t?.maxTouchPoints>1},Bn=t=>({setRegion(e){t.region=e},region(){return t.region}}),Fn=t=>({region:t.region()});export{bn as $,In as A,ln as B,It as C,Dn as D,Tn as E,Bn as F,hn as G,sn as H,Fn as I,fn as J,nn as K,N as L,kn as M,v as N,On as O,Nn as P,on as Q,cn as R,xn as S,x as T,_n as U,Pn as V,Rn as W,En as X,vn as Y,pn as Z,mn as _,an as a,gn as a0,H as a1,xt as a2,dn as b,Be as c,Vt as d,Te as e,un as f,$n as g,ee as h,wn as i,j,Tr as k,le as l,Sn as m,$ as n,Dt as o,he as p,yn as q,An as r,zn as s,Ln as t,Un as u,At as v,pe as w,Hn as x,Cn as y,Mn as z};
@@ -0,0 +1,20 @@
1
+ import{f as Er,l as Nr}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import{g as Or,t as Lr,N as Ar,L as Cn,v as Fr}from"./winston-CtcDki1r-tmxR7nDg.js";import{c as We}from"./__vite-browser-external-DJy8wZt7.js";import{r as it}from"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import{b as Rt}from"./index-xuotMAFm-B-PTrwYx.js";import{Y as Ir}from"./index-6mKfgpcs-DsgiI2lM.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./util-qaS8mbUT.js";import"./inherits_browser-5Fj3Mjxs.js";import"./index-DsIu-45t-Bejjlpz4.js";import"./index-DSosZ5sh-Ceejs_jv.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";function Cr(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(r,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var kn={exports:{}},Yn;function Ur(){return Yn||(Yn=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,s,u){function y(C,P){if(!s[C]){if(!r[C]){var ee=typeof it=="function"&&it;if(!P&&ee)return ee(C,!0);if(E)return E(C,!0);throw new Error("Cannot find module '"+C+"'")}P=s[C]={exports:{}},r[C][0].call(P.exports,function(M){var Q=r[C][1][M];return y(Q||M)},P,P.exports,n,r,s,u)}return s[C].exports}for(var E=typeof it=="function"&&it,F=0;F<u.length;F++)y(u[F]);return y})({1:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k=n("crypto");function g(d,_){_=v(d,_);var o;return(o=_.algorithm!=="passthrough"?k.createHash(_.algorithm):new D).write===void 0&&(o.write=o.update,o.end=o.update),b(_,o).dispatch(d),o.update||o.end(""),o.digest?o.digest(_.encoding==="buffer"?void 0:_.encoding):(d=o.read(),_.encoding!=="buffer"?d.toString(_.encoding):d)}(s=r.exports=g).sha1=function(d){return g(d)},s.keys=function(d){return g(d,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},s.MD5=function(d){return g(d,{algorithm:"md5",encoding:"hex"})},s.keysMD5=function(d){return g(d,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var c=k.getHashes?k.getHashes().slice():["sha1","md5"],p=(c.push("passthrough"),["buffer","hex","binary","base64"]);function v(d,_){var o={};if(o.algorithm=(_=_||{}).algorithm||"sha1",o.encoding=_.encoding||"hex",o.excludeValues=!!_.excludeValues,o.algorithm=o.algorithm.toLowerCase(),o.encoding=o.encoding.toLowerCase(),o.ignoreUnknown=_.ignoreUnknown===!0,o.respectType=_.respectType!==!1,o.respectFunctionNames=_.respectFunctionNames!==!1,o.respectFunctionProperties=_.respectFunctionProperties!==!1,o.unorderedArrays=_.unorderedArrays===!0,o.unorderedSets=_.unorderedSets!==!1,o.unorderedObjects=_.unorderedObjects!==!1,o.replacer=_.replacer||void 0,o.excludeKeys=_.excludeKeys||void 0,d===void 0)throw new Error("Object argument required.");for(var f=0;f<c.length;++f)c[f].toLowerCase()===o.algorithm.toLowerCase()&&(o.algorithm=c[f]);if(c.indexOf(o.algorithm)===-1)throw new Error('Algorithm "'+o.algorithm+'" not supported. supported values: '+c.join(", "));if(p.indexOf(o.encoding)===-1&&o.algorithm!=="passthrough")throw new Error('Encoding "'+o.encoding+'" not supported. supported values: '+p.join(", "));return o}function S(d){if(typeof d=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(d))!=null}function b(d,_,o){o=o||[];function f(a){return _.update?_.update(a,"utf8"):_.write(a,"utf8")}return{dispatch:function(a){return this["_"+((a=d.replacer?d.replacer(a):a)===null?"null":typeof a)](a)},_object:function(a){var m,w=Object.prototype.toString.call(a),W=/\[object (.*)\]/i.exec(w);if(W=(W=W?W[1]:"unknown:["+w+"]").toLowerCase(),0<=(w=o.indexOf(a)))return this.dispatch("[CIRCULAR:"+w+"]");if(o.push(a),E!==void 0&&E.isBuffer&&E.isBuffer(a))return f("buffer:"),f(a);if(W==="object"||W==="function"||W==="asyncfunction")return w=Object.keys(a),d.unorderedObjects&&(w=w.sort()),d.respectType===!1||S(a)||w.splice(0,0,"prototype","__proto__","constructor"),d.excludeKeys&&(w=w.filter(function(R){return!d.excludeKeys(R)})),f("object:"+w.length+":"),m=this,w.forEach(function(R){m.dispatch(R),f(":"),d.excludeValues||m.dispatch(a[R]),f(",")});if(!this["_"+W]){if(d.ignoreUnknown)return f("["+W+"]");throw new Error('Unknown object type "'+W+'"')}this["_"+W](a)},_array:function(a,R){R=R!==void 0?R:d.unorderedArrays!==!1;var w=this;if(f("array:"+a.length+":"),!R||a.length<=1)return a.forEach(function(j){return w.dispatch(j)});var W=[],R=a.map(function(j){var I=new D,B=o.slice();return b(d,I,B).dispatch(j),W=W.concat(B.slice(o.length)),I.read().toString()});return o=o.concat(W),R.sort(),this._array(R,!1)},_date:function(a){return f("date:"+a.toJSON())},_symbol:function(a){return f("symbol:"+a.toString())},_error:function(a){return f("error:"+a.toString())},_boolean:function(a){return f("bool:"+a.toString())},_string:function(a){f("string:"+a.length+":"),f(a.toString())},_function:function(a){f("fn:"),S(a)?this.dispatch("[native]"):this.dispatch(a.toString()),d.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(a.name)),d.respectFunctionProperties&&this._object(a)},_number:function(a){return f("number:"+a.toString())},_xml:function(a){return f("xml:"+a.toString())},_null:function(){return f("Null")},_undefined:function(){return f("Undefined")},_regexp:function(a){return f("regex:"+a.toString())},_uint8array:function(a){return f("uint8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint8clampedarray:function(a){return f("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(a))},_int8array:function(a){return f("int8array:"),this.dispatch(Array.prototype.slice.call(a))},_uint16array:function(a){return f("uint16array:"),this.dispatch(Array.prototype.slice.call(a))},_int16array:function(a){return f("int16array:"),this.dispatch(Array.prototype.slice.call(a))},_uint32array:function(a){return f("uint32array:"),this.dispatch(Array.prototype.slice.call(a))},_int32array:function(a){return f("int32array:"),this.dispatch(Array.prototype.slice.call(a))},_float32array:function(a){return f("float32array:"),this.dispatch(Array.prototype.slice.call(a))},_float64array:function(a){return f("float64array:"),this.dispatch(Array.prototype.slice.call(a))},_arraybuffer:function(a){return f("arraybuffer:"),this.dispatch(new Uint8Array(a))},_url:function(a){return f("url:"+a.toString())},_map:function(a){return f("map:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_set:function(a){return f("set:"),a=Array.from(a),this._array(a,d.unorderedSets!==!1)},_file:function(a){return f("file:"),this.dispatch([a.name,a.size,a.type,a.lastModfied])},_blob:function(){if(d.ignoreUnknown)return f("[blob]");throw Error(`Hashing Blob objects is currently not supported
2
+ (see https://github.com/puleos/object-hash/issues/26)
3
+ Use "options.replacer" or "options.ignoreUnknown"
4
+ `)},_domwindow:function(){return f("domwindow")},_bigint:function(a){return f("bigint:"+a.toString())},_process:function(){return f("process")},_timer:function(){return f("timer")},_pipe:function(){return f("pipe")},_tcp:function(){return f("tcp")},_udp:function(){return f("udp")},_tty:function(){return f("tty")},_statwatcher:function(){return f("statwatcher")},_securecontext:function(){return f("securecontext")},_connection:function(){return f("connection")},_zlib:function(){return f("zlib")},_context:function(){return f("context")},_nodescript:function(){return f("nodescript")},_httpparser:function(){return f("httpparser")},_dataview:function(){return f("dataview")},_signal:function(){return f("signal")},_fsevent:function(){return f("fsevent")},_tlswrap:function(){return f("tlswrap")}}}function D(){return{buf:"",write:function(d){this.buf+=d},end:function(d){this.buf+=d},read:function(){return this.buf}}}s.writeToStream=function(d,_,o){return o===void 0&&(o=_,_={}),b(_=v(d,_),o).dispatch(d)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){(function(k){var g=typeof Uint8Array<"u"?Uint8Array:Array,c=43,p=47,v=48,S=97,b=65,D=45,d=95;function _(o){return o=o.charCodeAt(0),o===c||o===D?62:o===p||o===d?63:o<v?-1:o<v+10?o-v+26+26:o<b+26?o-b:o<S+26?o-S+26:void 0}k.toByteArray=function(o){var f,a;if(0<o.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var m=o.length,m=o.charAt(m-2)==="="?2:o.charAt(m-1)==="="?1:0,w=new g(3*o.length/4-m),W=0<m?o.length-4:o.length,R=0;function j(I){w[R++]=I}for(f=0;f<W;f+=4,0)j((16711680&(a=_(o.charAt(f))<<18|_(o.charAt(f+1))<<12|_(o.charAt(f+2))<<6|_(o.charAt(f+3))))>>16),j((65280&a)>>8),j(255&a);return m==2?j(255&(a=_(o.charAt(f))<<2|_(o.charAt(f+1))>>4)):m==1&&(j((a=_(o.charAt(f))<<10|_(o.charAt(f+1))<<4|_(o.charAt(f+2))>>2)>>8&255),j(255&a)),w},k.fromByteArray=function(o){var f,a,m,w,W=o.length%3,R="";function j(I){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(I)}for(f=0,m=o.length-W;f<m;f+=3)a=(o[f]<<16)+(o[f+1]<<8)+o[f+2],R+=j((w=a)>>18&63)+j(w>>12&63)+j(w>>6&63)+j(63&w);switch(W){case 1:R=(R+=j((a=o[o.length-1])>>2))+j(a<<4&63)+"==";break;case 2:R=(R=(R+=j((a=(o[o.length-2]<<8)+o[o.length-1])>>10))+j(a>>4&63))+j(a<<2&63)+"="}return R}})(s===void 0?this.base64js={}:s)}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,s){(function(u,y,c,F,C,P,ee,M,Q){var k=n("base64-js"),g=n("ieee754");function c(i,l,h){if(!(this instanceof c))return new c(i,l,h);var T,Y,L,$,se=typeof i;if(l==="base64"&&se=="string")for(i=($=i).trim?$.trim():$.replace(/^\s+|\s+$/g,"");i.length%4!=0;)i+="=";if(se=="number")T=z(i);else if(se=="string")T=c.byteLength(i,l);else{if(se!="object")throw new Error("First argument needs to be a number, array or string.");T=z(i.length)}if(c._useTypedArrays?Y=c._augment(new Uint8Array(T)):((Y=this).length=T,Y._isBuffer=!0),c._useTypedArrays&&typeof i.byteLength=="number")Y._set(i);else if(X($=i)||c.isBuffer($)||$&&typeof $=="object"&&typeof $.length=="number")for(L=0;L<T;L++)c.isBuffer(i)?Y[L]=i.readUInt8(L):Y[L]=i[L];else if(se=="string")Y.write(i,0,l);else if(se=="number"&&!c._useTypedArrays&&!h)for(L=0;L<T;L++)Y[L]=0;return Y}function p(i,l,h,T){return c._charsWritten=ge((function(Y){for(var L=[],$=0;$<Y.length;$++)L.push(255&Y.charCodeAt($));return L})(l),i,h,T)}function v(i,l,h,T){return c._charsWritten=ge((function(Y){for(var L,$,se=[],ue=0;ue<Y.length;ue++)$=Y.charCodeAt(ue),L=$>>8,$=$%256,se.push($),se.push(L);return se})(l),i,h,T)}function S(i,l,h){var T="";h=Math.min(i.length,h);for(var Y=l;Y<h;Y++)T+=String.fromCharCode(i[Y]);return T}function b(i,l,h,L){L||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length"));var Y,L=i.length;if(!(L<=l))return h?(Y=i[l],l+1<L&&(Y|=i[l+1]<<8)):(Y=i[l]<<8,l+1<L&&(Y|=i[l+1])),Y}function D(i,l,h,L){L||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length"));var Y,L=i.length;if(!(L<=l))return h?(l+2<L&&(Y=i[l+2]<<16),l+1<L&&(Y|=i[l+1]<<8),Y|=i[l],l+3<L&&(Y+=i[l+3]<<24>>>0)):(l+1<L&&(Y=i[l+1]<<16),l+2<L&&(Y|=i[l+2]<<8),l+3<L&&(Y|=i[l+3]),Y+=i[l]<<24>>>0),Y}function d(i,l,h,T){if(T||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+1<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return T=b(i,l,h,!0),32768&T?-1*(65535-T+1):T}function _(i,l,h,T){if(T||(N(typeof h=="boolean","missing or invalid endian"),N(l!=null,"missing offset"),N(l+3<i.length,"Trying to read beyond buffer length")),!(i.length<=l))return T=D(i,l,h,!0),2147483648&T?-1*(4294967295-T+1):T}function o(i,l,h,T){return T||(N(typeof h=="boolean","missing or invalid endian"),N(l+3<i.length,"Trying to read beyond buffer length")),g.read(i,l,h,23,4)}function f(i,l,h,T){return T||(N(typeof h=="boolean","missing or invalid endian"),N(l+7<i.length,"Trying to read beyond buffer length")),g.read(i,l,h,52,8)}function a(i,l,h,T,Y){if(Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+1<i.length,"trying to write beyond buffer length"),Ct(l,65535)),Y=i.length,!(Y<=h))for(var L=0,$=Math.min(Y-h,2);L<$;L++)i[h+L]=(l&255<<8*(T?L:1-L))>>>8*(T?L:1-L)}function m(i,l,h,T,Y){if(Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"trying to write beyond buffer length"),Ct(l,4294967295)),Y=i.length,!(Y<=h))for(var L=0,$=Math.min(Y-h,4);L<$;L++)i[h+L]=l>>>8*(T?L:3-L)&255}function w(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+1<i.length,"Trying to write beyond buffer length"),Ut(l,32767,-32768)),i.length<=h||a(i,0<=l?l:65535+l+1,h,T,Y)}function W(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"Trying to write beyond buffer length"),Ut(l,2147483647,-2147483648)),i.length<=h||m(i,0<=l?l:4294967295+l+1,h,T,Y)}function R(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+3<i.length,"Trying to write beyond buffer length"),Mn(l,34028234663852886e22,-34028234663852886e22)),i.length<=h||g.write(i,l,h,T,23,4)}function j(i,l,h,T,Y){Y||(N(l!=null,"missing value"),N(typeof T=="boolean","missing or invalid endian"),N(h!=null,"missing offset"),N(h+7<i.length,"Trying to write beyond buffer length"),Mn(l,17976931348623157e292,-17976931348623157e292)),i.length<=h||g.write(i,l,h,T,52,8)}s.Buffer=c,s.SlowBuffer=c,s.INSPECT_MAX_BYTES=50,c.poolSize=8192,c._useTypedArrays=(function(){try{var i=new ArrayBuffer(0),l=new Uint8Array(i);return l.foo=function(){return 42},l.foo()===42&&typeof l.subarray=="function"}catch{return!1}})(),c.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.isBuffer=function(i){return!(i==null||!i._isBuffer)},c.byteLength=function(i,l){var h;switch(i+="",l||"utf8"){case"hex":h=i.length/2;break;case"utf8":case"utf-8":h=ce(i).length;break;case"ascii":case"binary":case"raw":h=i.length;break;case"base64":h=Ee(i).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":h=2*i.length;break;default:throw new Error("Unknown encoding")}return h},c.concat=function(i,l){if(N(X(i),`Usage: Buffer.concat(list, [totalLength])
5
+ list should be an Array.`),i.length===0)return new c(0);if(i.length===1)return i[0];if(typeof l!="number")for(Y=l=0;Y<i.length;Y++)l+=i[Y].length;for(var h=new c(l),T=0,Y=0;Y<i.length;Y++){var L=i[Y];L.copy(h,T),T+=L.length}return h},c.prototype.write=function(i,l,h,T){isFinite(l)?isFinite(h)||(T=h,h=void 0):(ue=T,T=l,l=h,h=ue),l=Number(l)||0;var Y,L,$,se,ue=this.length-l;switch((!h||ue<(h=Number(h)))&&(h=ue),T=String(T||"utf8").toLowerCase()){case"hex":Y=(function(ve,de,he,le){he=Number(he)||0;var ae=ve.length-he;(!le||ae<(le=Number(le)))&&(le=ae),N((ae=de.length)%2==0,"Invalid hex string"),ae/2<le&&(le=ae/2);for(var $e=0;$e<le;$e++){var Dn=parseInt(de.substr(2*$e,2),16);N(!isNaN(Dn),"Invalid hex string"),ve[he+$e]=Dn}return c._charsWritten=2*$e,$e})(this,i,l,h);break;case"utf8":case"utf-8":L=this,$=l,se=h,Y=c._charsWritten=ge(ce(i),L,$,se);break;case"ascii":case"binary":Y=p(this,i,l,h);break;case"base64":L=this,$=l,se=h,Y=c._charsWritten=ge(Ee(i),L,$,se);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Y=v(this,i,l,h);break;default:throw new Error("Unknown encoding")}return Y},c.prototype.toString=function(i,l,h){var T,Y,L,$,se=this;if(i=String(i||"utf8").toLowerCase(),l=Number(l)||0,(h=h!==void 0?Number(h):se.length)===l)return"";switch(i){case"hex":T=(function(ue,ve,de){var he=ue.length;(!ve||ve<0)&&(ve=0),(!de||de<0||he<de)&&(de=he);for(var le="",ae=ve;ae<de;ae++)le+=G(ue[ae]);return le})(se,l,h);break;case"utf8":case"utf-8":T=(function(ue,ve,de){var he="",le="";de=Math.min(ue.length,de);for(var ae=ve;ae<de;ae++)ue[ae]<=127?(he+=Sn(le)+String.fromCharCode(ue[ae]),le=""):le+="%"+ue[ae].toString(16);return he+Sn(le)})(se,l,h);break;case"ascii":case"binary":T=S(se,l,h);break;case"base64":Y=se,$=h,T=(L=l)===0&&$===Y.length?k.fromByteArray(Y):k.fromByteArray(Y.slice(L,$));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":T=(function(ue,ve,de){for(var he=ue.slice(ve,de),le="",ae=0;ae<he.length;ae+=2)le+=String.fromCharCode(he[ae]+256*he[ae+1]);return le})(se,l,h);break;default:throw new Error("Unknown encoding")}return T},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.copy=function(i,l,h,T){if(l=l||0,(T=T||T===0?T:this.length)!==(h=h||0)&&i.length!==0&&this.length!==0){N(h<=T,"sourceEnd < sourceStart"),N(0<=l&&l<i.length,"targetStart out of bounds"),N(0<=h&&h<this.length,"sourceStart out of bounds"),N(0<=T&&T<=this.length,"sourceEnd out of bounds"),T>this.length&&(T=this.length);var Y=(T=i.length-l<T-h?i.length-l+h:T)-h;if(Y<100||!c._useTypedArrays)for(var L=0;L<Y;L++)i[L+l]=this[L+h];else i._set(this.subarray(h,h+Y),l)}},c.prototype.slice=function(i,l){var h=this.length;if(i=B(i,h,0),l=B(l,h,h),c._useTypedArrays)return c._augment(this.subarray(i,l));for(var T=l-i,Y=new c(T,void 0,!0),L=0;L<T;L++)Y[L]=this[L+i];return Y},c.prototype.get=function(i){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(i)},c.prototype.set=function(i,l){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(i,l)},c.prototype.readUInt8=function(i,l){if(l||(N(i!=null,"missing offset"),N(i<this.length,"Trying to read beyond buffer length")),!(i>=this.length))return this[i]},c.prototype.readUInt16LE=function(i,l){return b(this,i,!0,l)},c.prototype.readUInt16BE=function(i,l){return b(this,i,!1,l)},c.prototype.readUInt32LE=function(i,l){return D(this,i,!0,l)},c.prototype.readUInt32BE=function(i,l){return D(this,i,!1,l)},c.prototype.readInt8=function(i,l){if(l||(N(i!=null,"missing offset"),N(i<this.length,"Trying to read beyond buffer length")),!(i>=this.length))return 128&this[i]?-1*(255-this[i]+1):this[i]},c.prototype.readInt16LE=function(i,l){return d(this,i,!0,l)},c.prototype.readInt16BE=function(i,l){return d(this,i,!1,l)},c.prototype.readInt32LE=function(i,l){return _(this,i,!0,l)},c.prototype.readInt32BE=function(i,l){return _(this,i,!1,l)},c.prototype.readFloatLE=function(i,l){return o(this,i,!0,l)},c.prototype.readFloatBE=function(i,l){return o(this,i,!1,l)},c.prototype.readDoubleLE=function(i,l){return f(this,i,!0,l)},c.prototype.readDoubleBE=function(i,l){return f(this,i,!1,l)},c.prototype.writeUInt8=function(i,l,h){h||(N(i!=null,"missing value"),N(l!=null,"missing offset"),N(l<this.length,"trying to write beyond buffer length"),Ct(i,255)),l>=this.length||(this[l]=i)},c.prototype.writeUInt16LE=function(i,l,h){a(this,i,l,!0,h)},c.prototype.writeUInt16BE=function(i,l,h){a(this,i,l,!1,h)},c.prototype.writeUInt32LE=function(i,l,h){m(this,i,l,!0,h)},c.prototype.writeUInt32BE=function(i,l,h){m(this,i,l,!1,h)},c.prototype.writeInt8=function(i,l,h){h||(N(i!=null,"missing value"),N(l!=null,"missing offset"),N(l<this.length,"Trying to write beyond buffer length"),Ut(i,127,-128)),l>=this.length||(0<=i?this.writeUInt8(i,l,h):this.writeUInt8(255+i+1,l,h))},c.prototype.writeInt16LE=function(i,l,h){w(this,i,l,!0,h)},c.prototype.writeInt16BE=function(i,l,h){w(this,i,l,!1,h)},c.prototype.writeInt32LE=function(i,l,h){W(this,i,l,!0,h)},c.prototype.writeInt32BE=function(i,l,h){W(this,i,l,!1,h)},c.prototype.writeFloatLE=function(i,l,h){R(this,i,l,!0,h)},c.prototype.writeFloatBE=function(i,l,h){R(this,i,l,!1,h)},c.prototype.writeDoubleLE=function(i,l,h){j(this,i,l,!0,h)},c.prototype.writeDoubleBE=function(i,l,h){j(this,i,l,!1,h)},c.prototype.fill=function(i,l,h){if(l=l||0,h=h||this.length,N(typeof(i=typeof(i=i||0)=="string"?i.charCodeAt(0):i)=="number"&&!isNaN(i),"value is not a number"),N(l<=h,"end < start"),h!==l&&this.length!==0){N(0<=l&&l<this.length,"start out of bounds"),N(0<=h&&h<=this.length,"end out of bounds");for(var T=l;T<h;T++)this[T]=i}},c.prototype.inspect=function(){for(var i=[],l=this.length,h=0;h<l;h++)if(i[h]=G(this[h]),h===s.INSPECT_MAX_BYTES){i[h+1]="...";break}return"<Buffer "+i.join(" ")+">"},c.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(c._useTypedArrays)return new c(this).buffer;for(var i=new Uint8Array(this.length),l=0,h=i.length;l<h;l+=1)i[l]=this[l];return i.buffer};var I=c.prototype;function B(i,l,h){return typeof i!="number"?h:l<=(i=~~i)?l:0<=i||0<=(i+=l)?i:0}function z(i){return(i=~~Math.ceil(+i))<0?0:i}function X(i){return(Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"})(i)}function G(i){return i<16?"0"+i.toString(16):i.toString(16)}function ce(i){for(var l=[],h=0;h<i.length;h++){var T=i.charCodeAt(h);if(T<=127)l.push(i.charCodeAt(h));else for(var Y=h,L=(55296<=T&&T<=57343&&h++,encodeURIComponent(i.slice(Y,h+1)).substr(1).split("%")),$=0;$<L.length;$++)l.push(parseInt(L[$],16))}return l}function Ee(i){return k.toByteArray(i)}function ge(i,l,h,T){for(var Y=0;Y<T&&!(Y+h>=l.length||Y>=i.length);Y++)l[Y+h]=i[Y];return Y}function Sn(i){try{return decodeURIComponent(i)}catch{return"�"}}function Ct(i,l){N(typeof i=="number","cannot write a non-number as a number"),N(0<=i,"specified a negative value for writing an unsigned value"),N(i<=l,"value is larger than maximum value for type"),N(Math.floor(i)===i,"value has a fractional component")}function Ut(i,l,h){N(typeof i=="number","cannot write a non-number as a number"),N(i<=l,"value larger than maximum allowed value"),N(h<=i,"value smaller than minimum allowed value"),N(Math.floor(i)===i,"value has a fractional component")}function Mn(i,l,h){N(typeof i=="number","cannot write a non-number as a number"),N(i<=l,"value larger than maximum allowed value"),N(h<=i,"value smaller than minimum allowed value")}function N(i,l){if(!i)throw new Error(l||"Failed assertion")}c._augment=function(i){return i._isBuffer=!0,i._get=i.get,i._set=i.set,i.get=I.get,i.set=I.set,i.write=I.write,i.toString=I.toString,i.toLocaleString=I.toString,i.toJSON=I.toJSON,i.copy=I.copy,i.slice=I.slice,i.readUInt8=I.readUInt8,i.readUInt16LE=I.readUInt16LE,i.readUInt16BE=I.readUInt16BE,i.readUInt32LE=I.readUInt32LE,i.readUInt32BE=I.readUInt32BE,i.readInt8=I.readInt8,i.readInt16LE=I.readInt16LE,i.readInt16BE=I.readInt16BE,i.readInt32LE=I.readInt32LE,i.readInt32BE=I.readInt32BE,i.readFloatLE=I.readFloatLE,i.readFloatBE=I.readFloatBE,i.readDoubleLE=I.readDoubleLE,i.readDoubleBE=I.readDoubleBE,i.writeUInt8=I.writeUInt8,i.writeUInt16LE=I.writeUInt16LE,i.writeUInt16BE=I.writeUInt16BE,i.writeUInt32LE=I.writeUInt32LE,i.writeUInt32BE=I.writeUInt32BE,i.writeInt8=I.writeInt8,i.writeInt16LE=I.writeInt16LE,i.writeInt16BE=I.writeInt16BE,i.writeInt32LE=I.writeInt32LE,i.writeInt32BE=I.writeInt32BE,i.writeFloatLE=I.writeFloatLE,i.writeFloatBE=I.writeFloatBE,i.writeDoubleLE=I.writeDoubleLE,i.writeDoubleBE=I.writeDoubleBE,i.fill=I.fill,i.inspect=I.inspect,i.toArrayBuffer=I.toArrayBuffer,i}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(n,r,s){(function(u,y,k,F,C,P,ee,M,Q){var k=n("buffer").Buffer,g=4,c=new k(g);c.fill(0),r.exports={hash:function(p,v,S,b){for(var D=v((function(a,m){a.length%g!=0&&(w=a.length+(g-a.length%g),a=k.concat([a,c],w));for(var w,W=[],R=m?a.readInt32BE:a.readInt32LE,j=0;j<a.length;j+=g)W.push(R.call(a,j));return W})(p=k.isBuffer(p)?p:new k(p),b),8*p.length),v=b,d=new k(S),_=v?d.writeInt32BE:d.writeInt32LE,o=0;o<D.length;o++)_.call(d,D[o],4*o,!0);return d}}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(n,r,s){(function(u,y,k,F,C,P,ee,M,Q){var k=n("buffer").Buffer,g=n("./sha"),c=n("./sha256"),p=n("./rng"),v={sha1:g,sha256:c,md5:n("./md5")},S=64,b=new k(S);function D(a,m){var w=v[a=a||"sha1"],W=[];return w||d("algorithm:",a,"is not yet supported"),{update:function(R){return k.isBuffer(R)||(R=new k(R)),W.push(R),R.length,this},digest:function(R){var j=k.concat(W),j=m?(function(I,B,z){k.isBuffer(B)||(B=new k(B)),k.isBuffer(z)||(z=new k(z)),B.length>S?B=I(B):B.length<S&&(B=k.concat([B,b],S));for(var X=new k(S),G=new k(S),ce=0;ce<S;ce++)X[ce]=54^B[ce],G[ce]=92^B[ce];return z=I(k.concat([X,z])),I(k.concat([G,z]))})(w,m,j):w(j);return W=null,R?j.toString(R):j}}}function d(){var a=[].slice.call(arguments).join(" ");throw new Error([a,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
6
+ `))}b.fill(0),s.createHash=function(a){return D(a)},s.createHmac=D,s.randomBytes=function(a,m){if(!m||!m.call)return new k(p(a));try{m.call(this,void 0,new k(p(a)))}catch(w){m(w)}};var _,o=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],f=function(a){s[a]=function(){d("sorry,",a,"is not implemented yet")}};for(_ in o)f(o[_])}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k=n("./helpers");function g(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var o=1732584193,f=-271733879,a=-1732584194,m=271733878,w=0;w<d.length;w+=16){var W=o,R=f,j=a,I=m,o=p(o,f,a,m,d[w+0],7,-680876936),m=p(m,o,f,a,d[w+1],12,-389564586),a=p(a,m,o,f,d[w+2],17,606105819),f=p(f,a,m,o,d[w+3],22,-1044525330);o=p(o,f,a,m,d[w+4],7,-176418897),m=p(m,o,f,a,d[w+5],12,1200080426),a=p(a,m,o,f,d[w+6],17,-1473231341),f=p(f,a,m,o,d[w+7],22,-45705983),o=p(o,f,a,m,d[w+8],7,1770035416),m=p(m,o,f,a,d[w+9],12,-1958414417),a=p(a,m,o,f,d[w+10],17,-42063),f=p(f,a,m,o,d[w+11],22,-1990404162),o=p(o,f,a,m,d[w+12],7,1804603682),m=p(m,o,f,a,d[w+13],12,-40341101),a=p(a,m,o,f,d[w+14],17,-1502002290),o=v(o,f=p(f,a,m,o,d[w+15],22,1236535329),a,m,d[w+1],5,-165796510),m=v(m,o,f,a,d[w+6],9,-1069501632),a=v(a,m,o,f,d[w+11],14,643717713),f=v(f,a,m,o,d[w+0],20,-373897302),o=v(o,f,a,m,d[w+5],5,-701558691),m=v(m,o,f,a,d[w+10],9,38016083),a=v(a,m,o,f,d[w+15],14,-660478335),f=v(f,a,m,o,d[w+4],20,-405537848),o=v(o,f,a,m,d[w+9],5,568446438),m=v(m,o,f,a,d[w+14],9,-1019803690),a=v(a,m,o,f,d[w+3],14,-187363961),f=v(f,a,m,o,d[w+8],20,1163531501),o=v(o,f,a,m,d[w+13],5,-1444681467),m=v(m,o,f,a,d[w+2],9,-51403784),a=v(a,m,o,f,d[w+7],14,1735328473),o=S(o,f=v(f,a,m,o,d[w+12],20,-1926607734),a,m,d[w+5],4,-378558),m=S(m,o,f,a,d[w+8],11,-2022574463),a=S(a,m,o,f,d[w+11],16,1839030562),f=S(f,a,m,o,d[w+14],23,-35309556),o=S(o,f,a,m,d[w+1],4,-1530992060),m=S(m,o,f,a,d[w+4],11,1272893353),a=S(a,m,o,f,d[w+7],16,-155497632),f=S(f,a,m,o,d[w+10],23,-1094730640),o=S(o,f,a,m,d[w+13],4,681279174),m=S(m,o,f,a,d[w+0],11,-358537222),a=S(a,m,o,f,d[w+3],16,-722521979),f=S(f,a,m,o,d[w+6],23,76029189),o=S(o,f,a,m,d[w+9],4,-640364487),m=S(m,o,f,a,d[w+12],11,-421815835),a=S(a,m,o,f,d[w+15],16,530742520),o=b(o,f=S(f,a,m,o,d[w+2],23,-995338651),a,m,d[w+0],6,-198630844),m=b(m,o,f,a,d[w+7],10,1126891415),a=b(a,m,o,f,d[w+14],15,-1416354905),f=b(f,a,m,o,d[w+5],21,-57434055),o=b(o,f,a,m,d[w+12],6,1700485571),m=b(m,o,f,a,d[w+3],10,-1894986606),a=b(a,m,o,f,d[w+10],15,-1051523),f=b(f,a,m,o,d[w+1],21,-2054922799),o=b(o,f,a,m,d[w+8],6,1873313359),m=b(m,o,f,a,d[w+15],10,-30611744),a=b(a,m,o,f,d[w+6],15,-1560198380),f=b(f,a,m,o,d[w+13],21,1309151649),o=b(o,f,a,m,d[w+4],6,-145523070),m=b(m,o,f,a,d[w+11],10,-1120210379),a=b(a,m,o,f,d[w+2],15,718787259),f=b(f,a,m,o,d[w+9],21,-343485551),o=D(o,W),f=D(f,R),a=D(a,j),m=D(m,I)}return Array(o,f,a,m)}function c(d,_,o,f,a,m){return D((_=D(D(_,d),D(f,m)))<<a|_>>>32-a,o)}function p(d,_,o,f,a,m,w){return c(_&o|~_&f,d,_,a,m,w)}function v(d,_,o,f,a,m,w){return c(_&f|o&~f,d,_,a,m,w)}function S(d,_,o,f,a,m,w){return c(_^o^f,d,_,a,m,w)}function b(d,_,o,f,a,m,w){return c(o^(_|~f),d,_,a,m,w)}function D(d,_){var o=(65535&d)+(65535&_);return(d>>16)+(_>>16)+(o>>16)<<16|65535&o}r.exports=function(d){return k.hash(d,g,16)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){r.exports=function(k){for(var g,c=new Array(k),p=0;p<k;p++)(3&p)==0&&(g=4294967296*Math.random()),c[p]=g>>>((3&p)<<3)&255;return c}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k=n("./helpers");function g(v,S){v[S>>5]|=128<<24-S%32,v[15+(S+64>>9<<4)]=S;for(var b,D,d,_=Array(80),o=1732584193,f=-271733879,a=-1732584194,m=271733878,w=-1009589776,W=0;W<v.length;W+=16){for(var R=o,j=f,I=a,B=m,z=w,X=0;X<80;X++){_[X]=X<16?v[W+X]:p(_[X-3]^_[X-8]^_[X-14]^_[X-16],1);var G=c(c(p(o,5),(G=f,D=a,d=m,(b=X)<20?G&D|~G&d:!(b<40)&&b<60?G&D|G&d|D&d:G^D^d)),c(c(w,_[X]),(b=X)<20?1518500249:b<40?1859775393:b<60?-1894007588:-899497514)),w=m,m=a,a=p(f,30),f=o,o=G}o=c(o,R),f=c(f,j),a=c(a,I),m=c(m,B),w=c(w,z)}return Array(o,f,a,m,w)}function c(v,S){var b=(65535&v)+(65535&S);return(v>>16)+(S>>16)+(b>>16)<<16|65535&b}function p(v,S){return v<<S|v>>>32-S}r.exports=function(v){return k.hash(v,g,20,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){function k(S,b){var D=(65535&S)+(65535&b);return(S>>16)+(b>>16)+(D>>16)<<16|65535&D}function g(S,b){var D,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),_=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),o=new Array(64);S[b>>5]|=128<<24-b%32,S[15+(b+64>>9<<4)]=b;for(var f,a,m=0;m<S.length;m+=16){for(var w=_[0],W=_[1],R=_[2],j=_[3],I=_[4],B=_[5],z=_[6],X=_[7],G=0;G<64;G++)o[G]=G<16?S[G+m]:k(k(k((a=o[G-2],p(a,17)^p(a,19)^v(a,10)),o[G-7]),(a=o[G-15],p(a,7)^p(a,18)^v(a,3))),o[G-16]),D=k(k(k(k(X,p(a=I,6)^p(a,11)^p(a,25)),I&B^~I&z),d[G]),o[G]),f=k(p(f=w,2)^p(f,13)^p(f,22),w&W^w&R^W&R),X=z,z=B,B=I,I=k(j,D),j=R,R=W,W=w,w=k(D,f);_[0]=k(w,_[0]),_[1]=k(W,_[1]),_[2]=k(R,_[2]),_[3]=k(j,_[3]),_[4]=k(I,_[4]),_[5]=k(B,_[5]),_[6]=k(z,_[6]),_[7]=k(X,_[7])}return _}var c=n("./helpers"),p=function(S,b){return S>>>b|S<<32-b},v=function(S,b){return S>>>b};r.exports=function(S){return c.hash(S,g,32,!0)}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){s.read=function(k,g,c,p,m){var S,b,D=8*m-p-1,d=(1<<D)-1,_=d>>1,o=-7,f=c?m-1:0,a=c?-1:1,m=k[g+f];for(f+=a,S=m&(1<<-o)-1,m>>=-o,o+=D;0<o;S=256*S+k[g+f],f+=a,o-=8);for(b=S&(1<<-o)-1,S>>=-o,o+=p;0<o;b=256*b+k[g+f],f+=a,o-=8);if(S===0)S=1-_;else{if(S===d)return b?NaN:1/0*(m?-1:1);b+=Math.pow(2,p),S-=_}return(m?-1:1)*b*Math.pow(2,S-p)},s.write=function(k,g,c,p,v,w){var b,D,d=8*w-v-1,_=(1<<d)-1,o=_>>1,f=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=p?0:w-1,m=p?1:-1,w=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(D=isNaN(g)?1:0,b=_):(b=Math.floor(Math.log(g)/Math.LN2),g*(p=Math.pow(2,-b))<1&&(b--,p*=2),2<=(g+=1<=b+o?f/p:f*Math.pow(2,1-o))*p&&(b++,p/=2),_<=b+o?(D=0,b=_):1<=b+o?(D=(g*p-1)*Math.pow(2,v),b+=o):(D=g*Math.pow(2,o-1)*Math.pow(2,v),b=0));8<=v;k[c+a]=255&D,a+=m,D/=256,v-=8);for(b=b<<v|D,d+=v;0<d;k[c+a]=255&b,a+=m,b/=256,d-=8);k[c+a-m]|=128*w}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,s){(function(u,y,E,F,C,P,ee,M,Q){var k,g,c;function p(){}(u=r.exports={}).nextTick=(g=typeof window<"u"&&window.setImmediate,c=typeof window<"u"&&window.postMessage&&window.addEventListener,g?function(v){return window.setImmediate(v)}:c?(k=[],window.addEventListener("message",function(v){var S=v.source;S!==window&&S!==null||v.data!=="process-tick"||(v.stopPropagation(),0<k.length&&k.shift()())},!0),function(v){k.push(v),window.postMessage("process-tick","*")}):function(v){setTimeout(v,0)}),u.title="browser",u.browser=!0,u.env={},u.argv=[],u.on=p,u.addListener=p,u.once=p,u.off=p,u.removeListener=p,u.removeAllListeners=p,u.emit=p,u.binding=function(v){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(v){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(kn)),kn.exports}//! moment.js
7
+ //! version : 2.30.1
8
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
9
+ //! license : MIT
10
+ //! momentjs.com
11
+ var Un;function O(){return Un.apply(null,arguments)}function Rr(e){Un=e}function Se(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ge(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(q(e,t))return!1;return!0}function me(e){return e===void 0}function Ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ct(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Rn(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function je(e,t){for(var n in t)q(t,n)&&(e[n]=t[n]);return q(t,"toString")&&(e.toString=t.toString),q(t,"valueOf")&&(e.valueOf=t.valueOf),e}function xe(e,t,n,r){return or(e,t,n,r,!0).utc()}function Wr(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function H(e){return e._pf==null&&(e._pf=Wr()),e._pf}var Vt;Array.prototype.some?Vt=Array.prototype.some:Vt=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function en(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=H(e),n=Vt.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function kt(e){var t=xe(NaN);return e!=null?je(H(t),e):H(t).userInvalidated=!0,t}var xn=O.momentProperties=[],Wt=!1;function tn(e,t){var n,r,s,u=xn.length;if(me(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),me(t._i)||(e._i=t._i),me(t._f)||(e._f=t._f),me(t._l)||(e._l=t._l),me(t._strict)||(e._strict=t._strict),me(t._tzm)||(e._tzm=t._tzm),me(t._isUTC)||(e._isUTC=t._isUTC),me(t._offset)||(e._offset=t._offset),me(t._pf)||(e._pf=H(t)),me(t._locale)||(e._locale=t._locale),u>0)for(n=0;n<u;n++)r=xn[n],s=t[r],me(s)||(e[r]=s);return e}function dt(e){tn(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Wt===!1&&(Wt=!0,O.updateOffset(this),Wt=!1)}function Me(e){return e instanceof dt||e!=null&&e._isAMomentObject!=null}function Wn(e){O.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function _e(e,t){var n=!0;return je(function(){if(O.deprecationHandler!=null&&O.deprecationHandler(null,e),n){var r=[],s,u,y,E=arguments.length;for(u=0;u<E;u++){if(s="",typeof arguments[u]=="object"){s+=`
12
+ [`+u+"] ";for(y in arguments[0])q(arguments[0],y)&&(s+=y+": "+arguments[0][y]+", ");s=s.slice(0,-2)}else s=arguments[u];r.push(s)}Wn(e+`
13
+ Arguments: `+Array.prototype.slice.call(r).join("")+`
14
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Tn={};function jn(e,t){O.deprecationHandler!=null&&O.deprecationHandler(e,t),Tn[e]||(Wn(t),Tn[e]=!0)}O.suppressDeprecationWarnings=!1;O.deprecationHandler=null;function Te(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function jr(e){var t,n;for(n in e)q(e,n)&&(t=e[n],Te(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function $t(e,t){var n=je({},e),r;for(r in t)q(t,r)&&(Ge(e[r])&&Ge(t[r])?(n[r]={},je(n[r],e[r]),je(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)q(e,r)&&!q(t,r)&&Ge(e[r])&&(n[r]=je({},n[r]));return n}function nn(e){e!=null&&this.set(e)}var Zt;Object.keys?Zt=Object.keys:Zt=function(e){var t,n=[];for(t in e)q(e,t)&&n.push(t);return n};var Pr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Hr(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Te(r)?r.call(t,n):r}function Ye(e,t,n){var r=""+Math.abs(e),s=t-r.length,u=e>=0;return(u?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var rn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,gt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,jt={},Qe={};function U(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(Qe[e]=s),t&&(Qe[t[0]]=function(){return Ye(s.apply(this,arguments),t[1],t[2])}),n&&(Qe[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Br(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zr(e){var t=e.match(rn),n,r;for(n=0,r=t.length;n<r;n++)Qe[t[n]]?t[n]=Qe[t[n]]:t[n]=Br(t[n]);return function(s){var u="",y;for(y=0;y<r;y++)u+=Te(t[y])?t[y].call(s,e):t[y];return u}}function pt(e,t){return e.isValid()?(t=Pn(t,e.localeData()),jt[t]=jt[t]||zr(t),jt[t](e)):e.localeData().invalidDate()}function Pn(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(gt.lastIndex=0;n>=0&&gt.test(e);)e=e.replace(gt,r),gt.lastIndex=0,n-=1;return e}var Gr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Vr(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(rn).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var $r="Invalid date";function Zr(){return this._invalidDate}var qr="%d",Jr=/\d{1,2}/;function Qr(e){return this._ordinal.replace("%d",e)}var Xr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Kr(e,t,n,r){var s=this._relativeTime[n];return Te(s)?s(e,t,n,r):s.replace(/%d/i,e)}function es(e,t){var n=this._relativeTime[e>0?"future":"past"];return Te(n)?n(t):n.replace(/%s/i,t)}var En={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function we(e){return typeof e=="string"?En[e]||En[e.toLowerCase()]:void 0}function sn(e){var t={},n,r;for(r in e)q(e,r)&&(n=we(r),n&&(t[n]=e[r]));return t}var ts={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ns(e){var t=[],n;for(n in e)q(e,n)&&t.push({unit:n,priority:ts[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var Hn=/\d/,ye=/\d\d/,Bn=/\d{3}/,an=/\d{4}/,Yt=/[+-]?\d{6}/,ne=/\d\d?/,zn=/\d\d\d\d?/,Gn=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,on=/\d{1,4}/,Tt=/[+-]?\d{1,6}/,et=/\d+/,Et=/[+-]?\d+/,rs=/Z|[+-]\d\d:?\d\d/gi,Nt=/Z|[+-]\d\d(?::?\d\d)?/gi,ss=/[+-]?\d+(\.\d{1,3})?/,ht=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,tt=/^[1-9]\d?/,un=/^([1-9]\d|\d)/,vt;vt={};function A(e,t,n){vt[e]=Te(t)?t:function(r,s){return r&&n?n:t}}function is(e,t){return q(vt,e)?vt[e](t._strict,t._locale):new RegExp(as(e))}function as(e){return Fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,u){return n||r||s||u}))}function Fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=pe(t)),n}var qt={};function K(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),Ce(t)&&(r=function(u,y){y[t]=V(u)}),s=e.length,n=0;n<s;n++)qt[e[n]]=r}function mt(e,t){K(e,function(n,r,s,u){s._w=s._w||{},t(n,s._w,s,u)})}function os(e,t,n){t!=null&&q(qt,e)&&qt[e](t,n._a,n,e)}function Ot(e){return e%4===0&&e%100!==0||e%400===0}var fe=0,Le=1,ke=2,oe=3,be=4,Ae=5,ze=6,us=7,ls=8;U("Y",0,0,function(){var e=this.year();return e<=9999?Ye(e,4):"+"+e});U(0,["YY",2],0,function(){return this.year()%100});U(0,["YYYY",4],0,"year");U(0,["YYYYY",5],0,"year");U(0,["YYYYYY",6,!0],0,"year");A("Y",Et);A("YY",ne,ye);A("YYYY",on,an);A("YYYYY",Tt,Yt);A("YYYYYY",Tt,Yt);K(["YYYYY","YYYYYY"],fe);K("YYYY",function(e,t){t[fe]=e.length===2?O.parseTwoDigitYear(e):V(e)});K("YY",function(e,t){t[fe]=O.parseTwoDigitYear(e)});K("Y",function(e,t){t[fe]=parseInt(e,10)});function at(e){return Ot(e)?366:365}O.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var Vn=nt("FullYear",!0);function fs(){return Ot(this.year())}function nt(e,t){return function(n){return n!=null?($n(this,e,n),O.updateOffset(this,t),this):ot(this,e)}}function ot(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function $n(e,t,n){var r,s,u,y,E;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}u=n,y=e.month(),E=e.date(),E=E===29&&y===1&&!Ot(u)?28:E,s?r.setUTCFullYear(u,y,E):r.setFullYear(u,y,E)}}function cs(e){return e=we(e),Te(this[e])?this[e]():this}function ds(e,t){if(typeof e=="object"){e=sn(e);var n=ns(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=we(e),Te(this[e]))return this[e](t);return this}function hs(e,t){return(e%t+t)%t}var ie;Array.prototype.indexOf?ie=Array.prototype.indexOf:ie=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ln(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=hs(t,12);return e+=(t-n)/12,n===1?Ot(e)?29:28:31-n%7%2}U("M",["MM",2],"Mo",function(){return this.month()+1});U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});U("MMMM",0,0,function(e){return this.localeData().months(this,e)});A("M",ne,tt);A("MM",ne,ye);A("MMM",function(e,t){return t.monthsShortRegex(e)});A("MMMM",function(e,t){return t.monthsRegex(e)});K(["M","MM"],function(e,t){t[Le]=V(e)-1});K(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[Le]=s:H(n).invalidMonth=e});var ms="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Zn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),qn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gs=ht,ys=ht;function ps(e,t){return e?Se(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||qn).test(t)?"format":"standalone"][e.month()]:Se(this._months)?this._months:this._months.standalone}function _s(e,t){return e?Se(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[qn.test(t)?"format":"standalone"][e.month()]:Se(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ws(e,t,n){var r,s,u,y=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)u=xe([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(u,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(u,"").toLocaleLowerCase();return n?t==="MMM"?(s=ie.call(this._shortMonthsParse,y),s!==-1?s:null):(s=ie.call(this._longMonthsParse,y),s!==-1?s:null):t==="MMM"?(s=ie.call(this._shortMonthsParse,y),s!==-1?s:(s=ie.call(this._longMonthsParse,y),s!==-1?s:null)):(s=ie.call(this._longMonthsParse,y),s!==-1?s:(s=ie.call(this._shortMonthsParse,y),s!==-1?s:null))}function vs(e,t,n){var r,s,u;if(this._monthsParseExact)return ws.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(s=xe([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(u="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(u.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e)||n&&t==="MMM"&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function Jn(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=V(t);else if(t=e.localeData().monthsParse(t),!Ce(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,ln(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Qn(e){return e!=null?(Jn(this,e),O.updateOffset(this,!0),this):ot(this,"Month")}function bs(){return ln(this.year(),this.month())}function Ss(e){return this._monthsParseExact?(q(this,"_monthsRegex")||Xn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(q(this,"_monthsShortRegex")||(this._monthsShortRegex=gs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ms(e){return this._monthsParseExact?(q(this,"_monthsRegex")||Xn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(q(this,"_monthsRegex")||(this._monthsRegex=ys),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Xn(){function e(F,C){return C.length-F.length}var t=[],n=[],r=[],s,u,y,E;for(s=0;s<12;s++)u=xe([2e3,s]),y=Fe(this.monthsShort(u,"")),E=Fe(this.months(u,"")),t.push(y),n.push(E),r.push(E),r.push(y);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ds(e,t,n,r,s,u,y){var E;return e<100&&e>=0?(E=new Date(e+400,t,n,r,s,u,y),isFinite(E.getFullYear())&&E.setFullYear(e)):E=new Date(e,t,n,r,s,u,y),E}function ut(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function bt(e,t,n){var r=7+t-n,s=(7+ut(e,0,r).getUTCDay()-t)%7;return-s+r-1}function Kn(e,t,n,r,s){var u=(7+n-r)%7,y=bt(e,r,s),E=1+7*(t-1)+u+y,F,C;return E<=0?(F=e-1,C=at(F)+E):E>at(e)?(F=e+1,C=E-at(e)):(F=e,C=E),{year:F,dayOfYear:C}}function lt(e,t,n){var r=bt(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,u,y;return s<1?(y=e.year()-1,u=s+Ie(y,t,n)):s>Ie(e.year(),t,n)?(u=s-Ie(e.year(),t,n),y=e.year()+1):(y=e.year(),u=s),{week:u,year:y}}function Ie(e,t,n){var r=bt(e,t,n),s=bt(e+1,t,n);return(at(e)-r+s)/7}U("w",["ww",2],"wo","week");U("W",["WW",2],"Wo","isoWeek");A("w",ne,tt);A("ww",ne,ye);A("W",ne,tt);A("WW",ne,ye);mt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=V(e)});function ks(e){return lt(e,this._week.dow,this._week.doy).week}var Ys={dow:0,doy:6};function xs(){return this._week.dow}function Ts(){return this._week.doy}function Es(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ns(e){var t=lt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}U("d",0,"do","day");U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});U("e",0,0,"weekday");U("E",0,0,"isoWeekday");A("d",ne);A("e",ne);A("E",ne);A("dd",function(e,t){return t.weekdaysMinRegex(e)});A("ddd",function(e,t){return t.weekdaysShortRegex(e)});A("dddd",function(e,t){return t.weekdaysRegex(e)});mt(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:H(n).invalidWeekday=e});mt(["d","e","E"],function(e,t,n,r){t[r]=V(e)});function Os(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ls(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fn(e,t){return e.slice(t,7).concat(e.slice(0,t))}var As="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fs="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Is=ht,Cs=ht,Us=ht;function Rs(e,t){var n=Se(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?fn(n,this._week.dow):e?n[e.day()]:n}function Ws(e){return e===!0?fn(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function js(e){return e===!0?fn(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ps(e,t,n){var r,s,u,y=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)u=xe([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(u,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(u,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(u,"").toLocaleLowerCase();return n?t==="dddd"?(s=ie.call(this._weekdaysParse,y),s!==-1?s:null):t==="ddd"?(s=ie.call(this._shortWeekdaysParse,y),s!==-1?s:null):(s=ie.call(this._minWeekdaysParse,y),s!==-1?s:null):t==="dddd"?(s=ie.call(this._weekdaysParse,y),s!==-1||(s=ie.call(this._shortWeekdaysParse,y),s!==-1)?s:(s=ie.call(this._minWeekdaysParse,y),s!==-1?s:null)):t==="ddd"?(s=ie.call(this._shortWeekdaysParse,y),s!==-1||(s=ie.call(this._weekdaysParse,y),s!==-1)?s:(s=ie.call(this._minWeekdaysParse,y),s!==-1?s:null)):(s=ie.call(this._minWeekdaysParse,y),s!==-1||(s=ie.call(this._weekdaysParse,y),s!==-1)?s:(s=ie.call(this._shortWeekdaysParse,y),s!==-1?s:null))}function Hs(e,t,n){var r,s,u;if(this._weekdaysParseExact)return Ps.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(s=xe([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(u="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(u.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e)||n&&t==="dd"&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function Bs(e){if(!this.isValid())return e!=null?this:NaN;var t=ot(this,"Day");return e!=null?(e=Os(e,this.localeData()),this.add(e-t,"d")):t}function zs(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Gs(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ls(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Vs(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||cn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(q(this,"_weekdaysRegex")||(this._weekdaysRegex=Is),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $s(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||cn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(q(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cs),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zs(e){return this._weekdaysParseExact?(q(this,"_weekdaysRegex")||cn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(q(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Us),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function cn(){function e(P,ee){return ee.length-P.length}var t=[],n=[],r=[],s=[],u,y,E,F,C;for(u=0;u<7;u++)y=xe([2e3,1]).day(u),E=Fe(this.weekdaysMin(y,"")),F=Fe(this.weekdaysShort(y,"")),C=Fe(this.weekdays(y,"")),t.push(E),n.push(F),r.push(C),s.push(E),s.push(F),s.push(C);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dn(){return this.hours()%12||12}function qs(){return this.hours()||24}U("H",["HH",2],0,"hour");U("h",["hh",2],0,dn);U("k",["kk",2],0,qs);U("hmm",0,0,function(){return""+dn.apply(this)+Ye(this.minutes(),2)});U("hmmss",0,0,function(){return""+dn.apply(this)+Ye(this.minutes(),2)+Ye(this.seconds(),2)});U("Hmm",0,0,function(){return""+this.hours()+Ye(this.minutes(),2)});U("Hmmss",0,0,function(){return""+this.hours()+Ye(this.minutes(),2)+Ye(this.seconds(),2)});function tr(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}tr("a",!0);tr("A",!1);function nr(e,t){return t._meridiemParse}A("a",nr);A("A",nr);A("H",ne,un);A("h",ne,tt);A("k",ne,tt);A("HH",ne,ye);A("hh",ne,ye);A("kk",ne,ye);A("hmm",zn);A("hmmss",Gn);A("Hmm",zn);A("Hmmss",Gn);K(["H","HH"],oe);K(["k","kk"],function(e,t,n){var r=V(e);t[oe]=r===24?0:r});K(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});K(["h","hh"],function(e,t,n){t[oe]=V(e),H(n).bigHour=!0});K("hmm",function(e,t,n){var r=e.length-2;t[oe]=V(e.substr(0,r)),t[be]=V(e.substr(r)),H(n).bigHour=!0});K("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[oe]=V(e.substr(0,r)),t[be]=V(e.substr(r,2)),t[Ae]=V(e.substr(s)),H(n).bigHour=!0});K("Hmm",function(e,t,n){var r=e.length-2;t[oe]=V(e.substr(0,r)),t[be]=V(e.substr(r))});K("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[oe]=V(e.substr(0,r)),t[be]=V(e.substr(r,2)),t[Ae]=V(e.substr(s))});function Js(e){return(e+"").toLowerCase().charAt(0)==="p"}var Qs=/[ap]\.?m?\.?/i,Xs=nt("Hours",!0);function Ks(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rr={calendar:Pr,longDateFormat:Gr,invalidDate:$r,ordinal:qr,dayOfMonthOrdinalParse:Jr,relativeTime:Xr,months:ms,monthsShort:Zn,week:Ys,weekdays:As,weekdaysMin:Fs,weekdaysShort:er,meridiemParse:Qs},re={},rt={},ft;function ei(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Nn(e){return e&&e.toLowerCase().replace("_","-")}function ti(e){for(var t=0,n,r,s,u;t<e.length;){for(u=Nn(e[t]).split("-"),n=u.length,r=Nn(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=Lt(u.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&ei(u,r)>=n-1)break;n--}t++}return ft}function ni(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Lt(e){var t=null,n;if(re[e]===void 0&&typeof module<"u"&&module&&module.exports&&ni(e))try{t=ft._abbr,n=it,n("./locale/"+e),He(t)}catch{re[e]=null}return re[e]}function He(e,t){var n;return e&&(me(t)?n=Ue(e):n=hn(e,t),n?ft=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ft._abbr}function hn(e,t){if(t!==null){var n,r=rr;if(t.abbr=e,re[e]!=null)jn("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=re[e]._config;else if(t.parentLocale!=null)if(re[t.parentLocale]!=null)r=re[t.parentLocale]._config;else if(n=Lt(t.parentLocale),n!=null)r=n._config;else return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;return re[e]=new nn($t(r,t)),rt[e]&&rt[e].forEach(function(s){hn(s.name,s.config)}),He(e),re[e]}else return delete re[e],null}function ri(e,t){if(t!=null){var n,r,s=rr;re[e]!=null&&re[e].parentLocale!=null?re[e].set($t(re[e]._config,t)):(r=Lt(e),r!=null&&(s=r._config),t=$t(s,t),r==null&&(t.abbr=e),n=new nn(t),n.parentLocale=re[e],re[e]=n),He(e)}else re[e]!=null&&(re[e].parentLocale!=null?(re[e]=re[e].parentLocale,e===He()&&He(e)):re[e]!=null&&delete re[e]);return re[e]}function Ue(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ft;if(!Se(e)){if(t=Lt(e),t)return t;e=[e]}return ti(e)}function si(){return Zt(re)}function mn(e){var t,n=e._a;return n&&H(e).overflow===-2&&(t=n[Le]<0||n[Le]>11?Le:n[ke]<1||n[ke]>ln(n[fe],n[Le])?ke:n[oe]<0||n[oe]>24||n[oe]===24&&(n[be]!==0||n[Ae]!==0||n[ze]!==0)?oe:n[be]<0||n[be]>59?be:n[Ae]<0||n[Ae]>59?Ae:n[ze]<0||n[ze]>999?ze:-1,H(e)._overflowDayOfYear&&(t<fe||t>ke)&&(t=ke),H(e)._overflowWeeks&&t===-1&&(t=us),H(e)._overflowWeekday&&t===-1&&(t=ls),H(e).overflow=t),e}var ii=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ai=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oi=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ui=/^\/?Date\((-?\d+)/i,li=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sr(e){var t,n,r=e._i,s=ii.exec(r)||ai.exec(r),u,y,E,F,C=yt.length,P=Pt.length;if(s){for(H(e).iso=!0,t=0,n=C;t<n;t++)if(yt[t][1].exec(s[1])){y=yt[t][0],u=yt[t][2]!==!1;break}if(y==null){e._isValid=!1;return}if(s[3]){for(t=0,n=P;t<n;t++)if(Pt[t][1].exec(s[3])){E=(s[2]||" ")+Pt[t][0];break}if(E==null){e._isValid=!1;return}}if(!u&&E!=null){e._isValid=!1;return}if(s[4])if(oi.exec(s[4]))F="Z";else{e._isValid=!1;return}e._f=y+(E||"")+(F||""),yn(e)}else e._isValid=!1}function ci(e,t,n,r,s,u){var y=[di(e),Zn.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return u&&y.push(parseInt(u,10)),y}function di(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function hi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mi(e,t,n){if(e){var r=er.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return H(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function gi(e,t,n){if(e)return fi[e];if(t)return 0;var r=parseInt(n,10),s=r%100,u=(r-s)/100;return u*60+s}function ir(e){var t=li.exec(hi(e._i)),n;if(t){if(n=ci(t[4],t[3],t[2],t[5],t[6],t[7]),!mi(t[1],n,e))return;e._a=n,e._tzm=gi(t[8],t[9],t[10]),e._d=ut.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),H(e).rfc2822=!0}else e._isValid=!1}function yi(e){var t=ui.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(sr(e),e._isValid===!1)delete e._isValid;else return;if(ir(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:O.createFromInputFallback(e)}O.createFromInputFallback=_e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function qe(e,t,n){return e??t??n}function pi(e){var t=new Date(O.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gn(e){var t,n,r=[],s,u,y;if(!e._d){for(s=pi(e),e._w&&e._a[ke]==null&&e._a[Le]==null&&_i(e),e._dayOfYear!=null&&(y=qe(e._a[fe],s[fe]),(e._dayOfYear>at(y)||e._dayOfYear===0)&&(H(e)._overflowDayOfYear=!0),n=ut(y,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[ke]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[oe]===24&&e._a[be]===0&&e._a[Ae]===0&&e._a[ze]===0&&(e._nextDay=!0,e._a[oe]=0),e._d=(e._useUTC?ut:Ds).apply(null,r),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[oe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==u&&(H(e).weekdayMismatch=!0)}}function _i(e){var t,n,r,s,u,y,E,F,C;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(u=1,y=4,n=qe(t.GG,e._a[fe],lt(te(),1,4).year),r=qe(t.W,1),s=qe(t.E,1),(s<1||s>7)&&(F=!0)):(u=e._locale._week.dow,y=e._locale._week.doy,C=lt(te(),u,y),n=qe(t.gg,e._a[fe],C.year),r=qe(t.w,C.week),t.d!=null?(s=t.d,(s<0||s>6)&&(F=!0)):t.e!=null?(s=t.e+u,(t.e<0||t.e>6)&&(F=!0)):s=u),r<1||r>Ie(n,u,y)?H(e)._overflowWeeks=!0:F!=null?H(e)._overflowWeekday=!0:(E=Kn(n,r,s,u,y),e._a[fe]=E.year,e._dayOfYear=E.dayOfYear)}O.ISO_8601=function(){};O.RFC_2822=function(){};function yn(e){if(e._f===O.ISO_8601){sr(e);return}if(e._f===O.RFC_2822){ir(e);return}e._a=[],H(e).empty=!0;var t=""+e._i,n,r,s,u,y,E=t.length,F=0,C,P;for(s=Pn(e._f,e._locale).match(rn)||[],P=s.length,n=0;n<P;n++)u=s[n],r=(t.match(is(u,e))||[])[0],r&&(y=t.substr(0,t.indexOf(r)),y.length>0&&H(e).unusedInput.push(y),t=t.slice(t.indexOf(r)+r.length),F+=r.length),Qe[u]?(r?H(e).empty=!1:H(e).unusedTokens.push(u),os(u,r,e)):e._strict&&!r&&H(e).unusedTokens.push(u);H(e).charsLeftOver=E-F,t.length>0&&H(e).unusedInput.push(t),e._a[oe]<=12&&H(e).bigHour===!0&&e._a[oe]>0&&(H(e).bigHour=void 0),H(e).parsedDateParts=e._a.slice(0),H(e).meridiem=e._meridiem,e._a[oe]=wi(e._locale,e._a[oe],e._meridiem),C=H(e).era,C!==null&&(e._a[fe]=e._locale.erasConvertYear(C,e._a[fe])),gn(e),mn(e)}function wi(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function vi(e){var t,n,r,s,u,y,E=!1,F=e._f.length;if(F===0){H(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<F;s++)u=0,y=!1,t=tn({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],yn(t),en(t)&&(y=!0),u+=H(t).charsLeftOver,u+=H(t).unusedTokens.length*10,H(t).score=u,E?u<r&&(r=u,n=t):(r==null||u<r||y)&&(r=u,n=t,y&&(E=!0));je(e,n||t)}function bi(e){if(!e._d){var t=sn(e._i),n=t.day===void 0?t.date:t.day;e._a=Rn([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),gn(e)}}function Si(e){var t=new dt(mn(ar(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ar(e){var t=e._i,n=e._f;return e._locale=e._locale||Ue(e._l),t===null||n===void 0&&t===""?kt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Me(t)?new dt(mn(t)):(ct(t)?e._d=t:Se(n)?vi(e):n?yn(e):Mi(e),en(e)||(e._d=null),e))}function Mi(e){var t=e._i;me(t)?e._d=new Date(O.now()):ct(t)?e._d=new Date(t.valueOf()):typeof t=="string"?yi(e):Se(t)?(e._a=Rn(t.slice(0),function(n){return parseInt(n,10)}),gn(e)):Ge(t)?bi(e):Ce(t)?e._d=new Date(t):O.createFromInputFallback(e)}function or(e,t,n,r,s){var u={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ge(e)&&Kt(e)||Se(e)&&e.length===0)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=e,u._f=t,u._strict=r,Si(u)}function te(e,t,n,r){return or(e,t,n,r,!1)}var Di=_e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=te.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:kt()}),ki=_e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=te.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:kt()});function ur(e,t){var n,r;if(t.length===1&&Se(t[0])&&(t=t[0]),!t.length)return te();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Yi(){var e=[].slice.call(arguments,0);return ur("isBefore",e)}function xi(){var e=[].slice.call(arguments,0);return ur("isAfter",e)}var Ti=function(){return Date.now?Date.now():+new Date},st=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ei(e){var t,n=!1,r,s=st.length;for(t in e)if(q(e,t)&&!(ie.call(st,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[st[r]]){if(n)return!1;parseFloat(e[st[r]])!==V(e[st[r]])&&(n=!0)}return!0}function Ni(){return this._isValid}function Oi(){return De(NaN)}function At(e){var t=sn(e),n=t.year||0,r=t.quarter||0,s=t.month||0,u=t.week||t.isoWeek||0,y=t.day||0,E=t.hour||0,F=t.minute||0,C=t.second||0,P=t.millisecond||0;this._isValid=Ei(t),this._milliseconds=+P+C*1e3+F*6e4+E*1e3*60*60,this._days=+y+u*7,this._months=+s+r*3+n*12,this._data={},this._locale=Ue(),this._bubble()}function _t(e){return e instanceof At}function Jt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Li(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),u=0,y;for(y=0;y<r;y++)V(e[y])!==V(t[y])&&u++;return u+s}function lr(e,t){U(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Ye(~~(n/60),2)+t+Ye(~~n%60,2)})}lr("Z",":");lr("ZZ","");A("Z",Nt);A("ZZ",Nt);K(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=pn(Nt,e)});var Ai=/([\+\-]|\d\d)/gi;function pn(e,t){var n=(t||"").match(e),r,s,u;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(Ai)||["-",0,0],u=+(s[1]*60)+V(s[2]),u===0?0:s[0]==="+"?u:-u)}function _n(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Me(e)||ct(e)?e.valueOf():te(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),O.updateOffset(n,!1),n):te(e).local()}function Qt(e){return-Math.round(e._d.getTimezoneOffset())}O.updateOffset=function(){};function Fi(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=pn(Nt,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=Qt(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?dr(this,De(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,O.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Qt(this)}function Ii(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ci(e){return this.utcOffset(0,e)}function Ui(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qt(this),"m")),this}function Ri(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=pn(rs,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Wi(e){return this.isValid()?(e=e?te(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ji(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pi(){if(!me(this._isDSTShifted))return this._isDSTShifted;var e={},t;return tn(e,this),e=ar(e),e._a?(t=e._isUTC?xe(e._a):te(e._a),this._isDSTShifted=this.isValid()&&Li(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Hi(){return this.isValid()?!this._isUTC:!1}function Bi(){return this.isValid()?this._isUTC:!1}function fr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function De(e,t){var n=e,r=null,s,u,y;return _t(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ce(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=zi.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:V(r[ke])*s,h:V(r[oe])*s,m:V(r[be])*s,s:V(r[Ae])*s,ms:V(Jt(r[ze]*1e3))*s}):(r=Gi.exec(e))?(s=r[1]==="-"?-1:1,n={y:Be(r[2],s),M:Be(r[3],s),w:Be(r[4],s),d:Be(r[5],s),h:Be(r[6],s),m:Be(r[7],s),s:Be(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(y=Vi(te(n.from),te(n.to)),n={},n.ms=y.milliseconds,n.M=y.months),u=new At(n),_t(e)&&q(e,"_locale")&&(u._locale=e._locale),_t(e)&&q(e,"_isValid")&&(u._isValid=e._isValid),u}De.fn=At.prototype;De.invalid=Oi;function Be(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function On(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vi(e,t){var n;return e.isValid()&&t.isValid()?(t=_n(t,e),e.isBefore(t)?n=On(e,t):(n=On(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function cr(e,t){return function(n,r){var s,u;return r!==null&&!isNaN(+r)&&(jn(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),u=n,n=r,r=u),s=De(n,r),dr(this,s,e),this}}function dr(e,t,n,r){var s=t._milliseconds,u=Jt(t._days),y=Jt(t._months);e.isValid()&&(r=r??!0,y&&Jn(e,ot(e,"Month")+y*n),u&&$n(e,"Date",ot(e,"Date")+u*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&O.updateOffset(e,u||y))}var $i=cr(1,"add"),Zi=cr(-1,"subtract");function hr(e){return typeof e=="string"||e instanceof String}function qi(e){return Me(e)||ct(e)||hr(e)||Ce(e)||Qi(e)||Ji(e)||e===null||e===void 0}function Ji(e){var t=Ge(e)&&!Kt(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,u,y=r.length;for(s=0;s<y;s+=1)u=r[s],n=n||q(e,u);return t&&n}function Qi(e){var t=Se(e),n=!1;return t&&(n=e.filter(function(r){return!Ce(r)&&hr(e)}).length===0),t&&n}function Xi(e){var t=Ge(e)&&!Kt(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,u;for(s=0;s<r.length;s+=1)u=r[s],n=n||q(e,u);return t&&n}function Ki(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function ea(e,t){arguments.length===1&&(arguments[0]?qi(arguments[0])?(e=arguments[0],t=void 0):Xi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||te(),r=_n(n,this).startOf("day"),s=O.calendarFormat(this,r)||"sameElse",u=t&&(Te(t[s])?t[s].call(this,n):t[s]);return this.format(u||this.localeData().calendar(s,this,te(n)))}function ta(){return new dt(this)}function na(e,t){var n=Me(e)?e:te(e);return this.isValid()&&n.isValid()?(t=we(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ra(e,t){var n=Me(e)?e:te(e);return this.isValid()&&n.isValid()?(t=we(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function sa(e,t,n,r){var s=Me(e)?e:te(e),u=Me(t)?t:te(t);return this.isValid()&&s.isValid()&&u.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(u,n):!this.isAfter(u,n))):!1}function ia(e,t){var n=Me(e)?e:te(e),r;return this.isValid()&&n.isValid()?(t=we(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function aa(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function oa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ua(e,t,n){var r,s,u;if(!this.isValid())return NaN;if(r=_n(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=we(t),t){case"year":u=wt(this,r)/12;break;case"month":u=wt(this,r);break;case"quarter":u=wt(this,r)/3;break;case"second":u=(this-r)/1e3;break;case"minute":u=(this-r)/6e4;break;case"hour":u=(this-r)/36e5;break;case"day":u=(this-r-s)/864e5;break;case"week":u=(this-r-s)/6048e5;break;default:u=this-r}return n?u:pe(u)}function wt(e,t){if(e.date()<t.date())return-wt(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,u;return t-r<0?(s=e.clone().add(n-1,"months"),u=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),u=(t-r)/(s-r)),-(n+u)||0}O.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";O.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fa(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?pt(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Te(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pt(n,"Z")):pt(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ca(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,u;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",u=t+'[")]',this.format(n+r+s+u)}function da(e){e||(e=this.isUtc()?O.defaultFormatUtc:O.defaultFormat);var t=pt(this,e);return this.localeData().postformat(t)}function ha(e,t){return this.isValid()&&(Me(e)&&e.isValid()||te(e).isValid())?De({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ma(e){return this.from(te(),e)}function ga(e,t){return this.isValid()&&(Me(e)&&e.isValid()||te(e).isValid())?De({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ya(e){return this.to(te(),e)}function mr(e){var t;return e===void 0?this._locale._abbr:(t=Ue(e),t!=null&&(this._locale=t),this)}var gr=_e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function yr(){return this._locale}var St=1e3,Xe=60*St,Mt=60*Xe,pr=(365*400+97)*24*Mt;function Ke(e,t){return(e%t+t)%t}function _r(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pr:new Date(e,t,n).valueOf()}function wr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pr:Date.UTC(e,t,n)}function pa(e){var t,n;if(e=we(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wr:_r,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ke(t+(this._isUTC?0:this.utcOffset()*Xe),Mt);break;case"minute":t=this._d.valueOf(),t-=Ke(t,Xe);break;case"second":t=this._d.valueOf(),t-=Ke(t,St);break}return this._d.setTime(t),O.updateOffset(this,!0),this}function _a(e){var t,n;if(e=we(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?wr:_r,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Mt-Ke(t+(this._isUTC?0:this.utcOffset()*Xe),Mt)-1;break;case"minute":t=this._d.valueOf(),t+=Xe-Ke(t,Xe)-1;break;case"second":t=this._d.valueOf(),t+=St-Ke(t,St)-1;break}return this._d.setTime(t),O.updateOffset(this,!0),this}function wa(){return this._d.valueOf()-(this._offset||0)*6e4}function va(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function Sa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ma(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Da(){return this.isValid()?this.toISOString():null}function ka(){return en(this)}function Ya(){return je({},H(this))}function xa(){return H(this).overflow}function Ta(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}U("N",0,0,"eraAbbr");U("NN",0,0,"eraAbbr");U("NNN",0,0,"eraAbbr");U("NNNN",0,0,"eraName");U("NNNNN",0,0,"eraNarrow");U("y",["y",1],"yo","eraYear");U("y",["yy",2],0,"eraYear");U("y",["yyy",3],0,"eraYear");U("y",["yyyy",4],0,"eraYear");A("N",wn);A("NN",wn);A("NNN",wn);A("NNNN",Wa);A("NNNNN",ja);K(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?H(n).era=s:H(n).invalidEra=e});A("y",et);A("yy",et);A("yyy",et);A("yyyy",et);A("yo",Pa);K(["y","yy","yyy","yyyy"],fe);K(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[fe]=n._locale.eraYearOrdinalParse(e,s):t[fe]=parseInt(e,10)});function Ea(e,t){var n,r,s,u=this._eras||Ue("en")._eras;for(n=0,r=u.length;n<r;++n){switch(typeof u[n].since){case"string":s=O(u[n].since).startOf("day"),u[n].since=s.valueOf();break}switch(typeof u[n].until){case"undefined":u[n].until=1/0;break;case"string":s=O(u[n].until).startOf("day").valueOf(),u[n].until=s.valueOf();break}}return u}function Na(e,t,n){var r,s,u=this.eras(),y,E,F;for(e=e.toUpperCase(),r=0,s=u.length;r<s;++r)if(y=u[r].name.toUpperCase(),E=u[r].abbr.toUpperCase(),F=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(E===e)return u[r];break;case"NNNN":if(y===e)return u[r];break;case"NNNNN":if(F===e)return u[r];break}else if([y,E,F].indexOf(e)>=0)return u[r]}function Oa(e,t){var n=e.since<=e.until?1:-1;return t===void 0?O(e.since).year():O(e.since).year()+(t-e.offset)*n}function La(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Aa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Fa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Ia(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-O(s[e].since).year())*n+s[e].offset;return this.year()}function Ca(e){return q(this,"_erasNameRegex")||vn.call(this),e?this._erasNameRegex:this._erasRegex}function Ua(e){return q(this,"_erasAbbrRegex")||vn.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ra(e){return q(this,"_erasNarrowRegex")||vn.call(this),e?this._erasNarrowRegex:this._erasRegex}function wn(e,t){return t.erasAbbrRegex(e)}function Wa(e,t){return t.erasNameRegex(e)}function ja(e,t){return t.erasNarrowRegex(e)}function Pa(e,t){return t._eraYearOrdinalRegex||et}function vn(){var e=[],t=[],n=[],r=[],s,u,y,E,F,C=this.eras();for(s=0,u=C.length;s<u;++s)y=Fe(C[s].name),E=Fe(C[s].abbr),F=Fe(C[s].narrow),t.push(y),e.push(E),n.push(F),r.push(y),r.push(E),r.push(F);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}U(0,["gg",2],0,function(){return this.weekYear()%100});U(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ft(e,t){U(0,[e,e.length],0,t)}Ft("gggg","weekYear");Ft("ggggg","weekYear");Ft("GGGG","isoWeekYear");Ft("GGGGG","isoWeekYear");A("G",Et);A("g",Et);A("GG",ne,ye);A("gg",ne,ye);A("GGGG",on,an);A("gggg",on,an);A("GGGGG",Tt,Yt);A("ggggg",Tt,Yt);mt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=V(e)});mt(["gg","GG"],function(e,t,n,r){t[r]=O.parseTwoDigitYear(e)});function Ha(e){return vr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ba(e){return vr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function za(){return Ie(this.year(),1,4)}function Ga(){return Ie(this.isoWeekYear(),1,4)}function Va(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)}function $a(){var e=this.localeData()._week;return Ie(this.weekYear(),e.dow,e.doy)}function vr(e,t,n,r,s){var u;return e==null?lt(this,r,s).year:(u=Ie(e,r,s),t>u&&(t=u),Za.call(this,e,t,n,r,s))}function Za(e,t,n,r,s){var u=Kn(e,t,n,r,s),y=ut(u.year,0,u.dayOfYear);return this.year(y.getUTCFullYear()),this.month(y.getUTCMonth()),this.date(y.getUTCDate()),this}U("Q",0,"Qo","quarter");A("Q",Hn);K("Q",function(e,t){t[Le]=(V(e)-1)*3});function qa(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}U("D",["DD",2],"Do","date");A("D",ne,tt);A("DD",ne,ye);A("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});K(["D","DD"],ke);K("Do",function(e,t){t[ke]=V(e.match(ne)[0])});var br=nt("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear");A("DDD",xt);A("DDDD",Bn);K(["DDD","DDDD"],function(e,t,n){n._dayOfYear=V(e)});function Ja(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}U("m",["mm",2],0,"minute");A("m",ne,un);A("mm",ne,ye);K(["m","mm"],be);var Qa=nt("Minutes",!1);U("s",["ss",2],0,"second");A("s",ne,un);A("ss",ne,ye);K(["s","ss"],Ae);var Xa=nt("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)});U(0,["SS",2],0,function(){return~~(this.millisecond()/10)});U(0,["SSS",3],0,"millisecond");U(0,["SSSS",4],0,function(){return this.millisecond()*10});U(0,["SSSSS",5],0,function(){return this.millisecond()*100});U(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});U(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});U(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});U(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});A("S",xt,Hn);A("SS",xt,ye);A("SSS",xt,Bn);var Pe,Sr;for(Pe="SSSS";Pe.length<=9;Pe+="S")A(Pe,et);function Ka(e,t){t[ze]=V(("0."+e)*1e3)}for(Pe="S";Pe.length<=9;Pe+="S")K(Pe,Ka);Sr=nt("Milliseconds",!1);U("z",0,0,"zoneAbbr");U("zz",0,0,"zoneName");function eo(){return this._isUTC?"UTC":""}function to(){return this._isUTC?"Coordinated Universal Time":""}var x=dt.prototype;x.add=$i;x.calendar=ea;x.clone=ta;x.diff=ua;x.endOf=_a;x.format=da;x.from=ha;x.fromNow=ma;x.to=ga;x.toNow=ya;x.get=cs;x.invalidAt=xa;x.isAfter=na;x.isBefore=ra;x.isBetween=sa;x.isSame=ia;x.isSameOrAfter=aa;x.isSameOrBefore=oa;x.isValid=ka;x.lang=gr;x.locale=mr;x.localeData=yr;x.max=ki;x.min=Di;x.parsingFlags=Ya;x.set=ds;x.startOf=pa;x.subtract=Zi;x.toArray=Sa;x.toObject=Ma;x.toDate=ba;x.toISOString=fa;x.inspect=ca;typeof Symbol<"u"&&Symbol.for!=null&&(x[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});x.toJSON=Da;x.toString=la;x.unix=va;x.valueOf=wa;x.creationData=Ta;x.eraName=La;x.eraNarrow=Aa;x.eraAbbr=Fa;x.eraYear=Ia;x.year=Vn;x.isLeapYear=fs;x.weekYear=Ha;x.isoWeekYear=Ba;x.quarter=x.quarters=qa;x.month=Qn;x.daysInMonth=bs;x.week=x.weeks=Es;x.isoWeek=x.isoWeeks=Ns;x.weeksInYear=Va;x.weeksInWeekYear=$a;x.isoWeeksInYear=za;x.isoWeeksInISOWeekYear=Ga;x.date=br;x.day=x.days=Bs;x.weekday=zs;x.isoWeekday=Gs;x.dayOfYear=Ja;x.hour=x.hours=Xs;x.minute=x.minutes=Qa;x.second=x.seconds=Xa;x.millisecond=x.milliseconds=Sr;x.utcOffset=Fi;x.utc=Ci;x.local=Ui;x.parseZone=Ri;x.hasAlignedHourOffset=Wi;x.isDST=ji;x.isLocal=Hi;x.isUtcOffset=Bi;x.isUtc=fr;x.isUTC=fr;x.zoneAbbr=eo;x.zoneName=to;x.dates=_e("dates accessor is deprecated. Use date instead.",br);x.months=_e("months accessor is deprecated. Use month instead",Qn);x.years=_e("years accessor is deprecated. Use year instead",Vn);x.zone=_e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ii);x.isDSTShifted=_e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pi);function no(e){return te(e*1e3)}function ro(){return te.apply(null,arguments).parseZone()}function Mr(e){return e}var J=nn.prototype;J.calendar=Hr;J.longDateFormat=Vr;J.invalidDate=Zr;J.ordinal=Qr;J.preparse=Mr;J.postformat=Mr;J.relativeTime=Kr;J.pastFuture=es;J.set=jr;J.eras=Ea;J.erasParse=Na;J.erasConvertYear=Oa;J.erasAbbrRegex=Ua;J.erasNameRegex=Ca;J.erasNarrowRegex=Ra;J.months=ps;J.monthsShort=_s;J.monthsParse=vs;J.monthsRegex=Ms;J.monthsShortRegex=Ss;J.week=ks;J.firstDayOfYear=Ts;J.firstDayOfWeek=xs;J.weekdays=Rs;J.weekdaysMin=js;J.weekdaysShort=Ws;J.weekdaysParse=Hs;J.weekdaysRegex=Vs;J.weekdaysShortRegex=$s;J.weekdaysMinRegex=Zs;J.isPM=Js;J.meridiem=Ks;function Dt(e,t,n,r){var s=Ue(),u=xe().set(r,t);return s[n](u,e)}function Dr(e,t,n){if(Ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return Dt(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Dt(e,r,n,"month");return s}function bn(e,t,n,r){typeof e=="boolean"?(Ce(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ce(t)&&(n=t,t=void 0),t=t||"");var s=Ue(),u=e?s._week.dow:0,y,E=[];if(n!=null)return Dt(t,(n+u)%7,r,"day");for(y=0;y<7;y++)E[y]=Dt(t,(y+u)%7,r,"day");return E}function so(e,t){return Dr(e,t,"months")}function io(e,t){return Dr(e,t,"monthsShort")}function ao(e,t,n){return bn(e,t,n,"weekdays")}function oo(e,t,n){return bn(e,t,n,"weekdaysShort")}function uo(e,t,n){return bn(e,t,n,"weekdaysMin")}He("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=V(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});O.lang=_e("moment.lang is deprecated. Use moment.locale instead.",He);O.langData=_e("moment.langData is deprecated. Use moment.localeData instead.",Ue);var Ne=Math.abs;function lo(){var e=this._data;return this._milliseconds=Ne(this._milliseconds),this._days=Ne(this._days),this._months=Ne(this._months),e.milliseconds=Ne(e.milliseconds),e.seconds=Ne(e.seconds),e.minutes=Ne(e.minutes),e.hours=Ne(e.hours),e.months=Ne(e.months),e.years=Ne(e.years),this}function kr(e,t,n,r){var s=De(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function fo(e,t){return kr(this,e,t,1)}function co(e,t){return kr(this,e,t,-1)}function Ln(e){return e<0?Math.floor(e):Math.ceil(e)}function ho(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,u,y,E,F;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Ln(Xt(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=pe(e/1e3),r.seconds=s%60,u=pe(s/60),r.minutes=u%60,y=pe(u/60),r.hours=y%24,t+=pe(y/24),F=pe(Yr(t)),n+=F,t-=Ln(Xt(F)),E=pe(n/12),n%=12,r.days=t,r.months=n,r.years=E,this}function Yr(e){return e*4800/146097}function Xt(e){return e*146097/4800}function mo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=we(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Yr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Xt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Re(e){return function(){return this.as(e)}}var xr=Re("ms"),go=Re("s"),yo=Re("m"),po=Re("h"),_o=Re("d"),wo=Re("w"),vo=Re("M"),bo=Re("Q"),So=Re("y"),Mo=xr;function Do(){return De(this)}function ko(e){return e=we(e),this.isValid()?this[e+"s"]():NaN}function Ve(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yo=Ve("milliseconds"),xo=Ve("seconds"),To=Ve("minutes"),Eo=Ve("hours"),No=Ve("days"),Oo=Ve("months"),Lo=Ve("years");function Ao(){return pe(this.days()/7)}var Oe=Math.round,Je={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fo(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function Io(e,t,n,r){var s=De(e).abs(),u=Oe(s.as("s")),y=Oe(s.as("m")),E=Oe(s.as("h")),F=Oe(s.as("d")),C=Oe(s.as("M")),P=Oe(s.as("w")),ee=Oe(s.as("y")),M=u<=n.ss&&["s",u]||u<n.s&&["ss",u]||y<=1&&["m"]||y<n.m&&["mm",y]||E<=1&&["h"]||E<n.h&&["hh",E]||F<=1&&["d"]||F<n.d&&["dd",F];return n.w!=null&&(M=M||P<=1&&["w"]||P<n.w&&["ww",P]),M=M||C<=1&&["M"]||C<n.M&&["MM",C]||ee<=1&&["y"]||["yy",ee],M[2]=t,M[3]=+e>0,M[4]=r,Fo.apply(null,M)}function Co(e){return e===void 0?Oe:typeof e=="function"?(Oe=e,!0):!1}function Uo(e,t){return Je[e]===void 0?!1:t===void 0?Je[e]:(Je[e]=t,e==="s"&&(Je.ss=t-1),!0)}function Ro(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Je,s,u;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Je,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),u=Io(this,!n,r,s),n&&(u=s.pastFuture(+this,u)),s.postformat(u)}var Ht=Math.abs;function Ze(e){return(e>0)-(e<0)||+e}function It(){if(!this.isValid())return this.localeData().invalidDate();var e=Ht(this._milliseconds)/1e3,t=Ht(this._days),n=Ht(this._months),r,s,u,y,E=this.asSeconds(),F,C,P,ee;return E?(r=pe(e/60),s=pe(r/60),e%=60,r%=60,u=pe(n/12),n%=12,y=e?e.toFixed(3).replace(/\.?0+$/,""):"",F=E<0?"-":"",C=Ze(this._months)!==Ze(E)?"-":"",P=Ze(this._days)!==Ze(E)?"-":"",ee=Ze(this._milliseconds)!==Ze(E)?"-":"",F+"P"+(u?C+u+"Y":"")+(n?C+n+"M":"")+(t?P+t+"D":"")+(s||r||e?"T":"")+(s?ee+s+"H":"")+(r?ee+r+"M":"")+(e?ee+y+"S":"")):"P0D"}var Z=At.prototype;Z.isValid=Ni;Z.abs=lo;Z.add=fo;Z.subtract=co;Z.as=mo;Z.asMilliseconds=xr;Z.asSeconds=go;Z.asMinutes=yo;Z.asHours=po;Z.asDays=_o;Z.asWeeks=wo;Z.asMonths=vo;Z.asQuarters=bo;Z.asYears=So;Z.valueOf=Mo;Z._bubble=ho;Z.clone=Do;Z.get=ko;Z.milliseconds=Yo;Z.seconds=xo;Z.minutes=To;Z.hours=Eo;Z.days=No;Z.weeks=Ao;Z.months=Oo;Z.years=Lo;Z.humanize=Ro;Z.toISOString=It;Z.toString=It;Z.toJSON=It;Z.locale=mr;Z.localeData=yr;Z.toIsoString=_e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",It);Z.lang=gr;U("X",0,0,"unix");U("x",0,0,"valueOf");A("x",Et);A("X",ss);K("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});K("x",function(e,t,n){n._d=new Date(V(e))});//! moment.js
15
+ O.version="2.30.1";Rr(te);O.fn=x;O.min=Yi;O.max=xi;O.now=Ti;O.utc=xe;O.unix=no;O.months=so;O.isDate=ct;O.locale=He;O.invalid=kt;O.duration=De;O.isMoment=Me;O.weekdays=ao;O.parseZone=ro;O.localeData=Ue;O.isDuration=_t;O.monthsShort=io;O.weekdaysMin=uo;O.defineLocale=hn;O.updateLocale=ri;O.locales=si;O.weekdaysShort=oo;O.normalizeUnits=we;O.relativeTimeRounding=Co;O.relativeTimeThreshold=Uo;O.calendarFormat=Ki;O.prototype=x;O.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Wo=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"})),jo=Nr(Wo);var Bt,An;function Po(){if(An)return Bt;An=1;/*!
16
+ * FileStreamRotator
17
+ * Copyright(c) 2012-2017 Holiday Extras.
18
+ * Copyright(c) 2017 Roger C.
19
+ * MIT Licensed
20
+ */var e=We,t=We,n=jo,r=We,s=Fr(),u={};Bt=u;var y=["daily","test","m","h","custom"],E="YYYYMMDDHHmm",F=function(g,c){if(typeof c=="number"){switch(g){case"m":if(c<0||c>60)return!1;break;case"h":if(c<0||c>24)return!1;break}return{type:g,digit:c}}},C=function(g){switch(g){case"custom":case"daily":return{type:g,digit:void 0};case"test":return{type:g,digit:0}}return!1};u.getFrequency=function(g){var c=g.toLowerCase().match(/^(\d+)([mh])$/);if(c)return F(c[2],parseInt(c[1]));var p=C(g);return p||!1},u.parseFileSize=function(g){if(g&&typeof g=="string"){var c=g.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/);if(c)switch(c[2]){case"k":return c[1]*1024;case"m":return c[1]*1024*1024;case"g":return c[1]*1024*1024*1024}}return null},u.getDate=function(g,c,p){c=c||E;let v=p?n.utc():n().local();if(g&&y.indexOf(g.type)!==-1)switch(g.type){case"m":var S=Math.floor(v.minutes()/g.digit)*g.digit;return v.minutes(S).format(c);case"h":var b=Math.floor(v.hour()/g.digit)*g.digit;return v.hour(b).format(c);case"daily":case"custom":case"test":return v.format(c)}return v.format(c)},u.setAuditLog=function(g,c,p){var v=null;if(g){var S=g.toString().substr(-1),b=g.toString().match(/^(\d+)/);if(Number(b[1])>0){var D=t.dirname(p.replace(/%DATE%.+/,"_filename"));try{if(c){var d=t.resolve(c);v=JSON.parse(e.readFileSync(d,{encoding:"utf-8"}))}else{var d=t.resolve(D+"/.audit.json");v=JSON.parse(e.readFileSync(d,{encoding:"utf-8"}))}}catch(_){if(_.code!=="ENOENT")return null;v={keep:{days:!1,amount:Number(b[1])},auditLog:c||D+"/.audit.json",files:[]}}v.keep={days:S==="d",amount:Number(b[1])}}}return v},u.writeAuditLog=function(g,c){try{Q(g.auditLog),e.writeFileSync(g.auditLog,JSON.stringify(g,null,4))}catch(p){c&&console.error(new Date,"[FileStreamRotator] Failed to store log audit at:",g.auditLog,"Error:",p)}};function P(g,c){if(g.hash===r.createHash(g.hashType).update(g.name+"LOG_FILE"+g.date).digest("hex"))try{e.existsSync(g.name)&&e.unlinkSync(g.name)}catch{c&&console.error(new Date,"[FileStreamRotator] Could not remove old log file: ",g.name)}}function ee(g,c,p){let v=c||"current.log",S=t.dirname(g),b=t.basename(g),D=S+"/"+v;try{e.lstatSync(D).isSymbolicLink()&&(e.unlinkSync(D),e.symlinkSync(b,D))}catch(d){if(d&&d.code=="ENOENT")try{e.symlinkSync(b,D)}catch{p&&console.error(new Date,"[FileStreamRotator] Could not create symlink file: ",D," -> ",b)}}}function M(g,c,p){if(!g)return null;try{let v=e.lstatSync(g);return e.watch(g,function(S,b){if(S=="rename")try{let D=e.lstatSync(g)}catch(D){p(D,g)}})}catch{c&&console.log(new Date,"[FileStreamRotator] Could not add watcher for "+g)}}u.addLogToAudit=function(g,c,p,v){if(c&&c.files){var S=c.files.findIndex(function(o){return o.name===g});if(S!==-1)return c;var b=Date.now();if(c.files.push({date:b,name:g,hash:r.createHash(c.hashType).update(g+"LOG_FILE"+b).digest("hex")}),c.keep.days){var D=n().subtract(c.keep.amount,"days").valueOf(),d=c.files.filter(function(o){return o.date>D?!0:(o.hashType=c.hashType,P(o,v),p.emit("logRemoved",o),!1)});c.files=d}else{var _=c.files.splice(-c.keep.amount);c.files.length>0&&c.files.filter(function(o){return o.hashType=c.hashType,P(o,v),p.emit("logRemoved",o),!1}),c.files=_}u.writeAuditLog(c,v)}return c},u.getStream=function(g){var c=null,p=null,v=this;if(!g.filename)return console.error(new Date,"[FileStreamRotator] No filename supplied. Defaulting to STDOUT"),Rt.stdout;g.frequency&&(c=v.getFrequency(g.frequency));let S=v.setAuditLog(g.max_logs,g.audit_file,g.filename);S!=null&&(S.hashType=g.audit_hash_type!==void 0?g.audit_hash_type:"md5"),v.verbose=g.verbose!==void 0?g.verbose:!0;var b=null,D=0,d=0;g.size&&(b=u.parseFileSize(g.size));var _=g.date_format||E;c&&c.type=="daily"&&(g.date_format||(_="YYYY-MM-DD"),(n().format(_)!=n().endOf("day").format(_)||n().format(_)==n().add(1,"day").format(_))&&(v.verbose&&console.log(new Date,"[FileStreamRotator] Changing type to custom as date format changes more often than once a day or not every day"),c.type="custom")),c&&(p=g.frequency?v.getDate(c,_,g.utc):""),g.create_symlink=g.create_symlink||!1,g.extension=g.extension||"";var o=g.filename,f=null,a=o+(p?"."+p:"");if(o.match(/%DATE%/)&&(a=o.replace(/%DATE%/g,p||v.getDate(null,_,g.utc))),b){var m=null,w=a;if(S&&S.files&&S.files instanceof Array&&S.files.length>0){var W=S.files[S.files.length-1].name;if(W.match(w)){var R=W.match(w+"\\.(\\d+)");R&&(w=W,D=R[1])}}for(D==0&&w==a&&(w+=g.extension);e.existsSync(w);)m=w,D++,w=a+"."+D+g.extension;if(m){var j=e.statSync(m);j.size<b&&(w=m,D--,d=j.size)}a=w}else a+=g.extension;v.verbose&&console.log(new Date,"[FileStreamRotator] Logging to: ",a),Q(a);var I=g.file_options||{flags:"a"},B=e.createWriteStream(a,I);if(p&&c&&y.indexOf(c.type)>-1||b>0){v.verbose&&console.log(new Date,"[FileStreamRotator] Rotating file: ",c?c.type:"",b?"size: "+b:"");var z=new s;z.auditLog=S,z.end=function(){B.end.apply(B,arguments)},k(B,z),z.on("close",function(){X&&X.close()}),z.on("new",function(G){z.auditLog=v.addLogToAudit(G,z.auditLog,z,v.verbose),g.create_symlink&&ee(G,g.symlink_name,v.verbose),g.watch_log&&z.emit("addWatcher",G)});var X;return z.on("addWatcher",function(G){X&&X.close(),g.watch_log&&(X=M(G,v.verbose,function(ce,Ee){z.emit("createLog",Ee)}))}),z.on("createLog",function(G){try{let ce=e.lstatSync(G)}catch{B&&B.end=="function"&&B.end(),B=e.createWriteStream(G,I),z.emit("new",G),k(B,z)}}),z.write=(function(G,ce){var Ee=c?this.getDate(c,_,g.utc):p;if(Ee!=p||b&&d>b){var ge=o+(p&&c?"."+Ee:"");o.match(/%DATE%/)&&p&&(ge=o.replace(/%DATE%/g,Ee)),b&&d>b?(D++,ge+="."+D+g.extension):(D=0,ge+=g.extension),d=0,v.verbose&&console.log(new Date,Cn.format("[FileStreamRotator] Changing logs from %s to %s",a,ge)),p=Ee,f=a,a=ge,g.end_stream===!0?B.end():B.destroy(),Q(a),B=e.createWriteStream(ge,I),z.emit("new",ge),z.emit("rotate",f,ge),k(B,z)}B.write(G,ce),d+=Ir.byteLength(G,ce)}).bind(this),Rt.nextTick(function(){z.emit("new",a)}),z.emit("new",a),z}else return v.verbose&&console.log(new Date,"[FileStreamRotator] File won't be rotated: ",g.frequency,g.size),Rt.nextTick(function(){B.emit("new",a)}),B};var Q=function(g){var c=t.dirname(g);c.split(t.sep).reduce(function(p,v){if(p+=v+t.sep,!e.existsSync(p))try{e.mkdirSync(p)}catch(S){if(S.code!=="EEXIST")throw S}return p},"")},k=function(g,c){g.on("close",function(){c.emit("close")}),g.on("finish",function(){c.emit("finish")}),g.on("error",function(p){c.emit("error",p)}),g.on("open",function(p){c.emit("open",p)})};return Bt}var zt,Fn;function Ho(){if(Fn)return zt;Fn=1;const e=We,t=We,n=We,r=Cn,s=We,u=Ur(),y=Lr().MESSAGE,E=We.PassThrough,F=Ar(),C={json:!1,colorize:!1,eol:t.EOL,logstash:null,prettyPrint:!1,label:null,stringify:!1,depth:null,showLevel:!0,timestamp:()=>new Date().toISOString()},P=function(M){M=M||{},F.call(this,M);function Q(p){Array.prototype.slice.call(arguments,1).forEach(v=>{if(M[v])throw new Error("Cannot set "+v+" and "+p+" together")})}function k(p){if(p&&typeof p=="string"){if(p.toLowerCase().match(/^((?:0\.)?\d+)([kmg])$/))return p}else if(p&&Number.isInteger(p)){const v=Math.round(p/1024);return v===0?"1k":v+"k"}return null}function g(p){return!/["<>|:*?\\/\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f]/g.test(p)}function c(p){return!/["<>|\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f]/g.test(p)}if(this.options=Object.assign({},C,M),M.stream)Q("stream","filename","maxsize"),this.logStream=new E,this.logStream.pipe(M.stream);else{if(this.filename=M.filename?n.basename(M.filename):"winston.log",this.dirname=M.dirname||n.dirname(M.filename),!g(this.filename)||!c(this.dirname))throw new Error("Your path or filename contain an invalid character.");this.logStream=Po().getStream({filename:n.join(this.dirname,this.filename),frequency:M.frequency?M.frequency:"custom",date_format:M.datePattern?M.datePattern:"YYYY-MM-DD",verbose:!1,size:k(M.maxSize),max_logs:M.maxFiles,end_stream:!0,audit_file:M.auditFile?M.auditFile:n.join(this.dirname,"."+u(M)+"-audit.json"),file_options:M.options?M.options:{flags:"a"},utc:M.utc?M.utc:!1,extension:M.extension?M.extension:"",create_symlink:M.createSymlink?M.createSymlink:!1,symlink_name:M.symlinkName?M.symlinkName:"current.log",watch_log:M.watchLog?M.watchLog:!1,audit_hash_type:M.auditHashType?M.auditHashType:"sha256"}),this.logStream.on("new",p=>{this.emit("new",p)}),this.logStream.on("rotate",(p,v)=>{this.emit("rotate",p,v)}),this.logStream.on("logRemoved",p=>{if(M.zippedArchive){const v=p.name+".gz";try{e.unlinkSync(v)}catch(S){if(S.code!=="ENOENT"){S.message=`Error occurred while removing ${v}: ${S.message}`,this.emit("error",S);return}}this.emit("logRemoved",v);return}this.emit("logRemoved",p.name)}),M.zippedArchive&&this.logStream.on("rotate",p=>{try{if(!e.existsSync(p))return}catch(D){D.message=`Error occurred while checking existence of ${p}: ${D.message}`,this.emit("error",D);return}try{if(e.existsSync(`${p}.gz`))return}catch(D){D.message=`Error occurred while checking existence of ${p}.gz: ${D.message}`,this.emit("error",D);return}const v=s.createGzip(),S=e.createReadStream(p);S.on("error",D=>{D.message=`Error occurred while reading ${p}: ${D.message}`,this.emit("error",D)});const b=e.createWriteStream(p+".gz");b.on("error",D=>{D.message=`Error occurred while writing ${p}.gz: ${D.message}`,this.emit("error",D)}),S.pipe(v).pipe(b).on("finish",()=>{try{e.unlinkSync(p)}catch(D){if(D.code!=="ENOENT"){D.message=`Error occurred while removing ${p}: ${D.message}`,this.emit("error",D);return}}this.emit("archive",p+".gz")})}),M.watchLog&&this.logStream.on("addWatcher",p=>{this.emit("addWatcher",p)})}};zt=P,r.inherits(P,F),P.prototype.name="dailyRotateFile";const ee=function(){};return P.prototype.log=function(M,Q){Q=Q||ee,this.logStream.write(M[y]+this.options.eol),this.emit("logged",M),Q(null,!0)},P.prototype.close=function(){this.logStream&&this.logStream.end(()=>{this.emit("finish")})},P.prototype.query=function(M,Q){if(typeof M=="function"&&(Q=M,M={}),!this.options.json)throw new Error("query() may not be used without the json option being set to true");if(!this.filename)throw new Error("query() may not be used when initializing with a stream");let k=[];M=M||{},M.rows=M.rows||M.limit||10,M.start=M.start||0,M.until=M.until||new Date,typeof M.until!="object"&&(M.until=new Date(M.until)),M.from=M.from||M.until-1440*60*1e3,typeof M.from!="object"&&(M.from=new Date(M.from)),M.order=M.order||"desc";const g=(()=>{const p=new RegExp(this.filename.replace("%DATE%",".*"),"i");return e.readdirSync(this.dirname).filter(v=>n.basename(v).match(p))})();g.length===0&&Q&&Q(null,k);const c=p=>{if(!p)return;const v=n.join(this.dirname,p);let S="",b;if(p.endsWith(".gz")){b=new E;const d=e.createReadStream(v);d.on("error",_=>{_.message=`Error occurred while reading ${v}: ${_.message}`,b.emit("error",_)}),d.pipe(s.createGunzip()).pipe(b)}else b=e.createReadStream(v,{encoding:"utf8"});b.on("error",d=>{if(b.readable&&b.destroy(),!!Q)return d.code==="ENOENT"?Q(null,k):Q(d)}),b.on("data",d=>{d=(S+d).split(/\n+/);const _=d.length-1;for(let o=0;o<_;o++)D(d[o]);S=d[_]}),b.on("end",()=>{if(S&&D(S,!0),g.length)c(g.shift());else if(Q){k.sort((o,f)=>{const a=new Date(o.timestamp).getTime(),m=new Date(f.timestamp).getTime();return a>m?1:a<m?-1:0}),M.order==="desc"&&(k=k.reverse());const d=M.start||0,_=M.limit||k.length;k=k.slice(d,d+_),M.fields&&(k=k.map(o=>{const f={};return M.fields.forEach(a=>{f[a]=o[a]}),f})),Q(null,k)}});function D(d,_){try{const o=JSON.parse(d);if(!o||typeof o!="object")return;const f=new Date(o.timestamp);if(M.from&&f<M.from||M.until&&f>M.until||M.level&&M.level!==o.level)return;k.push(o)}catch(o){_||b.emit("error",o)}}};c(g.shift())},zt}var Gt,In;function Bo(){if(In)return Gt;In=1;const e=Or(),t=Ho();return e.transports.DailyRotateFile=t,Gt=t,Gt}var Tr=Bo();const zo=Er(Tr),ru=Cr({__proto__:null,default:zo},[Tr]);export{ru as i};
@@ -0,0 +1,5 @@
1
+ const v=(t=0)=>e=>`\x1B[${e+t}m`,A=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,O=(t=0)=>(e,r,o)=>`\x1B[${38+t};2;${e};${r};${o}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},G=Object.keys(l.modifier),M=Object.keys(l.color),N=Object.keys(l.bgColor),$=[...M,...N];function x(){const t=new Map;for(const[e,r]of Object.entries(l)){for(const[o,n]of Object.entries(r))l[o]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[o]=l[o],t.set(n[0],n[1]);Object.defineProperty(l,e,{value:r,enumerable:!1})}return Object.defineProperty(l,"codes",{value:t,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi=v(),l.color.ansi256=A(),l.color.ansi16m=O(),l.bgColor.ansi=v(10),l.bgColor.ansi256=A(10),l.bgColor.ansi16m=O(10),Object.defineProperties(l,{rgbToAnsi256:{value(e,r,o){return e===r&&r===o?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(e){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[o]=r;o.length===3&&(o=[...o].map(s=>s+s).join(""));const n=Number.parseInt(o,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,o,n;if(e>=232)r=((e-232)*10+8)/255,o=r,n=r;else{e-=16;const y=e%36;r=Math.floor(e/36)/5,o=Math.floor(y/6)/5,n=y%6/5}const s=Math.max(r,o,n)*2;if(s===0)return 30;let a=30+(Math.round(n)<<2|Math.round(o)<<1|Math.round(r));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,r,o)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,r,o)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}const i=x(),f=(()=>{if(navigator.userAgentData){const t=navigator.userAgentData.brands.find(({brand:e})=>e==="Chromium");if(t&&t.version>93)return 3}return/\b(Chrome|Chromium)\//.test(navigator.userAgent)?1:0})(),B=f!==0&&{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3},F={stdout:B,stderr:B};function R(t,e,r){let o=t.indexOf(e);if(o===-1)return t;const n=e.length;let s=0,a="";do a+=t.slice(s,o)+e+r,s=o+n,o=t.indexOf(e,s);while(o!==-1);return a+=t.slice(s),a}function k(t,e,r,o){let n=0,s="";do{const a=t[o-1]==="\r";s+=t.slice(n,a?o-1:o)+e+(a?`\r
2
+ `:`
3
+ `)+r,n=o+1,o=t.indexOf(`
4
+ `,n)}while(o!==-1);return s+=t.slice(n),s}const{stdout:C,stderr:T}=F,d=Symbol("GENERATOR"),c=Symbol("STYLER"),b=Symbol("IS_EMPTY"),S=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null),w=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=C?C.level:0;t.level=e.level===void 0?r:e.level};class D{constructor(e){return j(e)}}const j=t=>{const e=(...r)=>r.join(" ");return w(e,t),Object.setPrototypeOf(e,h.prototype),e};function h(t){return j(t)}Object.setPrototypeOf(h.prototype,Function.prototype);for(const[t,e]of Object.entries(i))u[t]={get(){const r=g(this,p(e.open,e.close,this[c]),this[b]);return Object.defineProperty(this,t,{value:r}),r}};u.visible={get(){const t=g(this,this[c],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const m=(t,e,r,...o)=>t==="rgb"?e==="ansi16m"?i[r].ansi16m(...o):e==="ansi256"?i[r].ansi256(i.rgbToAnsi256(...o)):i[r].ansi(i.rgbToAnsi(...o)):t==="hex"?m("rgb",e,r,...i.hexToRgb(...o)):i[r][t](...o),E=["rgb","hex","ansi256"];for(const t of E){u[t]={get(){const{level:r}=this;return function(...o){const n=p(m(t,S[r],"color",...o),i.color.close,this[c]);return g(this,n,this[b])}}};const e="bg"+t[0].toUpperCase()+t.slice(1);u[e]={get(){const{level:r}=this;return function(...o){const n=p(m(t,S[r],"bgColor",...o),i.bgColor.close,this[c]);return g(this,n,this[b])}}}}const I=Object.defineProperties(()=>{},{...u,level:{enumerable:!0,get(){return this[d].level},set(t){this[d].level=t}}}),p=(t,e,r)=>{let o,n;return r===void 0?(o=t,n=e):(o=r.openAll+t,n=e+r.closeAll),{open:t,close:e,openAll:o,closeAll:n,parent:r}},g=(t,e,r)=>{const o=(...n)=>P(o,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(o,I),o[d]=t,o[c]=e,o[b]=r,o},P=(t,e)=>{if(t.level<=0||!e)return t[b]?"":e;let r=t[c];if(r===void 0)return e;const{openAll:o,closeAll:n}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=R(e,r.close,r.open),r=r.parent;const s=e.indexOf(`
5
+ `);return s!==-1&&(e=k(e,n,o,s)),o+e+n};Object.defineProperties(h.prototype,u);const Y=h(),L=h({level:T?T.level:0});export{D as Chalk,N as backgroundColorNames,N as backgroundColors,L as chalkStderr,$ as colorNames,$ as colors,Y as default,M as foregroundColorNames,M as foregroundColors,G as modifierNames,G as modifiers,C as supportsColor,T as supportsColorStderr};
@@ -0,0 +1 @@
1
+ import{l as q}from"./__vite-browser-external-DJy8wZt7.js";import{a as I}from"./_commonjsHelpers-D6-XlEtG.js";const J=I(q);var g={},B;function L(){if(B)return g;B=1,g.byteLength=d,g.toByteArray=y,g.fromByteArray=l;for(var n=[],a=[],M=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,s=A.length;h<s;++h)n[h]=A[h],a[A.charCodeAt(h)]=h;a[45]=62,a[95]=63;function t(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=r.indexOf("=");o===-1&&(o=e);var c=o===e?0:4-o%4;return[o,c]}function d(r){var e=t(r),o=e[0],c=e[1];return(o+c)*3/4-c}function u(r,e,o){return(e+o)*3/4-o}function y(r){var e,o=t(r),c=o[0],p=o[1],v=new M(u(r,c,p)),F=0,C=p>0?c-4:c,x;for(x=0;x<C;x+=4)e=a[r.charCodeAt(x)]<<18|a[r.charCodeAt(x+1)]<<12|a[r.charCodeAt(x+2)]<<6|a[r.charCodeAt(x+3)],v[F++]=e>>16&255,v[F++]=e>>8&255,v[F++]=e&255;return p===2&&(e=a[r.charCodeAt(x)]<<2|a[r.charCodeAt(x+1)]>>4,v[F++]=e&255),p===1&&(e=a[r.charCodeAt(x)]<<10|a[r.charCodeAt(x+1)]<<4|a[r.charCodeAt(x+2)]>>2,v[F++]=e>>8&255,v[F++]=e&255),v}function i(r){return n[r>>18&63]+n[r>>12&63]+n[r>>6&63]+n[r&63]}function f(r,e,o){for(var c,p=[],v=e;v<o;v+=3)c=(r[v]<<16&16711680)+(r[v+1]<<8&65280)+(r[v+2]&255),p.push(i(c));return p.join("")}function l(r){for(var e,o=r.length,c=o%3,p=[],v=16383,F=0,C=o-c;F<C;F+=v)p.push(f(r,F,F+v>C?C:F+v));return c===1?(e=r[o-1],p.push(n[e>>2]+n[e<<4&63]+"==")):c===2&&(e=(r[o-2]<<8)+r[o-1],p.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),p.join("")}return g}var w={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var N;function j(){return N||(N=1,w.read=function(n,a,M,A,h){var s,t,d=h*8-A-1,u=(1<<d)-1,y=u>>1,i=-7,f=M?h-1:0,l=M?-1:1,r=n[a+f];for(f+=l,s=r&(1<<-i)-1,r>>=-i,i+=d;i>0;s=s*256+n[a+f],f+=l,i-=8);for(t=s&(1<<-i)-1,s>>=-i,i+=A;i>0;t=t*256+n[a+f],f+=l,i-=8);if(s===0)s=1-y;else{if(s===u)return t?NaN:(r?-1:1)*(1/0);t=t+Math.pow(2,A),s=s-y}return(r?-1:1)*t*Math.pow(2,s-A)},w.write=function(n,a,M,A,h,s){var t,d,u,y=s*8-h-1,i=(1<<y)-1,f=i>>1,l=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,r=A?0:s-1,e=A?1:-1,o=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(d=isNaN(a)?1:0,t=i):(t=Math.floor(Math.log(a)/Math.LN2),a*(u=Math.pow(2,-t))<1&&(t--,u*=2),t+f>=1?a+=l/u:a+=l*Math.pow(2,1-f),a*u>=2&&(t++,u/=2),t+f>=i?(d=0,t=i):t+f>=1?(d=(a*u-1)*Math.pow(2,h),t=t+f):(d=a*Math.pow(2,f-1)*Math.pow(2,h),t=0));h>=8;n[M+r]=d&255,r+=e,d/=256,h-=8);for(t=t<<h|d,y+=h;y>0;n[M+r]=t&255,r+=e,t/=256,y-=8);n[M+r-e]|=o*128}),w}export{j as a,L as b,J as r};
@@ -0,0 +1 @@
1
+ const l=globalThis||void 0||self;export{l};
@@ -0,0 +1 @@
1
+ import{W as q}from"./util-Di1GNq-L-D-kgTTr0.js";import"./index-xuotMAFm-B-PTrwYx.js";import"./index-69shuAsh-DF18H7zf.js";import"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";import"./inherits_browser-BPb0V7-q-C7Z2MfVc.js";var p,d;function N(){if(d)return p;d=1;const c=q();class i{constructor(r,e){typeof r=="string"?this.#t(r):e!==void 0?this.#e(r,e):this.#r(r)}toPostgres(){const r=this.values,e=this.indices.map((s,n)=>c.format("%i:%f",s+1,r[n])).join(",");return c.format("{%s}/%d",e,this.dimensions)}toString(){return this.toPostgres()}toArray(){const r=Array(this.dimensions).fill(0);for(const[e,s]of this.indices.entries())r[s]=this.values[e];return r}#t(r){const e=r.split("/",2);this.dimensions=parseInt(e[1]),this.indices=[],this.values=[];const s=e[0].slice(1,-1).split(",");for(const n of s){const o=n.split(":",2);this.indices.push(parseInt(o[0])-1),this.values.push(parseFloat(o[1]))}}#r(r){this.dimensions=r.length,this.indices=[],this.values=[];for(const[e,s]of r.entries()){const n=Number(s);n!=0&&(this.indices.push(Number(e)),this.values.push(n))}}#e(r,e){this.dimensions=Number(e),this.indices=[],this.values=[];const s=r instanceof Map?r.entries():Object.entries(r);for(const[n,o]of s){const a=Number(o);a!=0&&(this.indices.push(Number(n)),this.values.push(a))}}}return p={SparseVector:i},p}var h,S;function A(){if(S)return h;S=1;const c=q(),{SparseVector:i}=N();function l(t){return t===null?null:t.substring(1,t.length-1).split(",").map(u=>parseFloat(u))}function r(t){return Array.isArray(t)?JSON.stringify(t.map(u=>Number(u))):t}const e=l,s=r;function n(t){return t===null?null:new i(t)}function o(t){return t instanceof i?t.toPostgres():t}function a(t){if(t===null)return null;if(t[0]=="[")return l(t);if(t[0]=="{")return n(t);throw new Error("invalid text representation")}function b(t){if(t===null)return null;if(Array.isArray(t))return r(t);if(t instanceof i)return o(t);throw new Error("expected array or sparse vector")}function f(t,u){if(u==null)return t;if(!Number.isInteger(u))throw new Error("expected integer");return c.format("%s(%d)",t,u)}function v(t){return f("vector",t)}function g(t){return f("halfvec",t)}function T(t){return f("bit",t)}function w(t){return f("sparsevec",t)}return h={fromSql:a,toSql:b,vectorFromSql:l,vectorToSql:r,halfvecFromSql:e,halfvecToSql:s,sparsevecFromSql:n,sparsevecToSql:o,sqlType:v,vectorType:v,halfvecType:g,bitType:T,sparsevecType:w,SparseVector:i},h}var m,y;function F(){if(y)return m;y=1;const{fromSql:c,toSql:i,SparseVector:l}=A();return m={fromSql:c,toSql:i,SparseVector:l},m}F();