@akad/strapi-blocks 0.0.1-beta.5 → 0.0.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/News/News.d.ts +18 -0
- package/News/News.test.d.ts +1 -0
- package/News/index.d.ts +1 -0
- package/main.d.ts +2 -1
- package/package.json +1 -1
- package/styles.css +1 -1
- package/ts-lib.js +4748 -4392
- package/ts-lib.umd.cjs +13 -13
package/ts-lib.umd.cjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(at,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],M):(at=typeof globalThis<"u"?globalThis:at||self,M(at["ts-lib"]={},at.jsxRuntime,at.React))})(this,function(at,M,K){"use strict";function Iu(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var js={exports:{}},Ls={exports:{}},me={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
8
|
+
*/var _a;function Du(){if(_a)return me;_a=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,n=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,o=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,h=r?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case d:case o:case s:case a:case n:case p:return S;default:switch(S=S&&S.$$typeof,S){case l:case u:case m:case _:case i:return S;default:return O}}case t:return O}}}function $(S){return b(S)===o}return me.AsyncMode=d,me.ConcurrentMode=o,me.ContextConsumer=l,me.ContextProvider=i,me.Element=e,me.ForwardRef=u,me.Fragment=s,me.Lazy=m,me.Memo=_,me.Portal=t,me.Profiler=a,me.StrictMode=n,me.Suspense=p,me.isAsyncMode=function(S){return $(S)||b(S)===d},me.isConcurrentMode=$,me.isContextConsumer=function(S){return b(S)===l},me.isContextProvider=function(S){return b(S)===i},me.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},me.isForwardRef=function(S){return b(S)===u},me.isFragment=function(S){return b(S)===s},me.isLazy=function(S){return b(S)===m},me.isMemo=function(S){return b(S)===_},me.isPortal=function(S){return b(S)===t},me.isProfiler=function(S){return b(S)===a},me.isStrictMode=function(S){return b(S)===n},me.isSuspense=function(S){return b(S)===p},me.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===s||S===o||S===a||S===n||S===p||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===_||S.$$typeof===i||S.$$typeof===l||S.$$typeof===u||S.$$typeof===g||S.$$typeof===y||S.$$typeof===h||S.$$typeof===v)},me.typeOf=b,me}var ye={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
15
|
+
*/var ba;function Mu(){return ba||(ba=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,n=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,o=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,h=r?Symbol.for("react.scope"):60119;function b(H){return typeof H=="string"||typeof H=="function"||H===s||H===o||H===a||H===n||H===p||H===f||typeof H=="object"&&H!==null&&(H.$$typeof===m||H.$$typeof===_||H.$$typeof===i||H.$$typeof===l||H.$$typeof===u||H.$$typeof===g||H.$$typeof===y||H.$$typeof===h||H.$$typeof===v)}function $(H){if(typeof H=="object"&&H!==null){var fe=H.$$typeof;switch(fe){case e:var ge=H.type;switch(ge){case d:case o:case s:case a:case n:case p:return ge;default:var We=ge&&ge.$$typeof;switch(We){case l:case u:case m:case _:case i:return We;default:return fe}}case t:return fe}}}var S=d,O=o,N=l,R=i,V=e,I=u,T=s,B=m,j=_,U=t,W=a,X=n,se=p,J=!1;function ne(H){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(H)||$(H)===d}function P(H){return $(H)===o}function k(H){return $(H)===l}function x(H){return $(H)===i}function E(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function c(H){return $(H)===u}function w(H){return $(H)===s}function C(H){return $(H)===m}function L(H){return $(H)===_}function F(H){return $(H)===t}function z(H){return $(H)===a}function q(H){return $(H)===n}function Z(H){return $(H)===p}ye.AsyncMode=S,ye.ConcurrentMode=O,ye.ContextConsumer=N,ye.ContextProvider=R,ye.Element=V,ye.ForwardRef=I,ye.Fragment=T,ye.Lazy=B,ye.Memo=j,ye.Portal=U,ye.Profiler=W,ye.StrictMode=X,ye.Suspense=se,ye.isAsyncMode=ne,ye.isConcurrentMode=P,ye.isContextConsumer=k,ye.isContextProvider=x,ye.isElement=E,ye.isForwardRef=c,ye.isFragment=w,ye.isLazy=C,ye.isMemo=L,ye.isPortal=F,ye.isProfiler=z,ye.isStrictMode=q,ye.isSuspense=Z,ye.isValidElementType=b,ye.typeOf=$}()),ye}var ka;function $a(){return ka||(ka=1,process.env.NODE_ENV==="production"?Ls.exports=Du():Ls.exports=Mu()),Ls.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var U=Q(V,K,d,E,P+"."+K,t);if(U)return U}return null}return m(k)}function H(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(H);if(O===null||u(O))return!0;var k=p(O);if(k){var x=k.call(O),w;if(k!==O.entries){for(;!(w=x.next()).done;)if(!H(w.value))return!1}else for(;!(w=x.next()).done;){var d=w.value;if(d&&!H(d[1]))return!1}}else return!1;return!0;default:return!1}}function G(O,k){return O==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function X(O){var k=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":G(k,O)?"symbol":k}function se(O){if(typeof O>"u"||O===null)return""+O;var k=X(O);if(k==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return k}function te(O){var k=se(O);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function ne(O){return!O.constructor||!O.constructor.name?f:O.constructor.name}return _.checkPropTypes=n,_.resetWarningCache=n.resetWarningCache,_.PropTypes=_,_},zs}var Hs,Aa;function Bl(){if(Aa)return Hs;Aa=1;var r=Ls();function e(){}function t(){}return t.resetWarningCache=e,Hs=function(){function s(i,u,c,o,l,p){if(p!==r){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}s.isRequired=s;function n(){return s}var a={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:n,element:s,elementType:s,instanceOf:n,node:s,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},Hs}if(process.env.NODE_ENV!=="production"){var jl=ba(),Ll=!0;Fs.exports=Rl()(jl.isElement,Ll)}else Fs.exports=Bl()();var Vl=Fs.exports;const C=Il(Vl),zl={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},Hl={Solid:"solid",Outline:"outline",Text:"text"},Ul={Large:"lg",Medium:"md",Small:"sm"},ql={Right:"right",Left:"left"},Zr={props:{color:{options:Object.values(zl)},variant:{options:Object.values(Hl)},size:{options:Object.values(Ul)},iconPosition:{options:Object.values(ql)}}},Ta={Primary:"primary",PrimaryLightest:"primary-lightest",PrimaryLighter:"primary-lighter",PrimaryLight:"primary-light",PrimaryDark:"primary-dark",PrimaryDarker:"primary-darker",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",Secondary:"secondary",SecondaryLightest:"secondary-lightest",SecondaryLighter:"secondary-lighter",SecondaryLight:"secondary-light",SecondaryDark:"secondary-dark",SecondaryDarker:"secondary-darker",Success:"success",SuccessLighter:"success-lighter",SuccessLight:"success-light",SuccessDark:"success-dark",Warning:"warning",WarningLighter:"warning-lighter",WarningLight:"warning-light",WarningDark:"warning-dark",Danger:"danger",DangerLighter:"danger-lighter",DangerLight:"danger-light",DangerDark:"danger-dark",Info:"info",InfoLighter:"info-lighter",InfoLight:"info-light",InfoDark:"info-dark"},Pa={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl",Huge:"huge"},Oa={Bold:"bold",Semibold:"semibold",Medium:"medium",Regular:"regular",Light:"light",Extralight:"extralight"},Ye={class:"ds-icon",props:{color:{default:Ta.Neutral90,options:Object.values(Ta)},image:{default:"settings"},size:{default:Pa.MD,options:Object.values(Pa)},fill:{default:!1},testId:{default:"ds-icon-test"},weight:{default:Oa.Semibold,options:Object.values(Oa)},onClick:{default:()=>({})}}},Kl={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},Ne=({image:r=Ye.props.image.default,color:e=Ye.props.color.default,className:t,size:s=Ye.props.size.default,fill:n=Ye.props.fill.default,weight:a=Ye.props.weight.default,testId:i=Ye.props.testId.default,onClick:u=Ye.props.onClick.default})=>{const c="material-symbols-rounded",o=e&&Ye.props.color.options.find(p=>p===e)&&`${Ye.class}__color--${e}`,l=re.useMemo(()=>({fontVariationSettings:`'FILL' ${n?1:0}, 'GRAD' 0,'wght' ${Kl[a]}, 'opsz' 48`}),[a,n]);return j.jsx("i",{className:[`${Ye.class}--${s}`,Ye.class,c,o,t&&t].filter(p=>p).join(" "),"data-testid":i,onClick:u,style:l,translate:"no",children:r})};Ne.propTypes={color:C.oneOf(Ye.props.color.options),image:C.string,fontVariationSettings:C.object,size:C.oneOf(Ye.props.size.options),fill:C.bool,weight:C.oneOf(Ye.props.weight.options),onClick:C.func},Ne.displayName="DsIcon",C.oneOf(Zr.props.color.options),C.oneOf(Zr.props.variant.options),C.oneOf(Zr.props.size.options),C.bool,C.string,C.bool,C.oneOf(Zr.props.iconPosition.options),C.string,C.string,C.bool,C.node.isRequired,C.string,C.string;const Jr={None:"",PrimaryDarker:"primary-darker",PrimaryDark:"primary-dark",Primary:"primary",PrimaryLight:"primary-light",PrimaryLighter:"primary-lighter",PrimaryLightest:"primary-lightest",SecondaryDarker:"secondary-darker",SecondaryDark:"secondary-dark",Secondary:"secondary",SecondaryLight:"secondary-light",SecondaryLighter:"secondary-lighter",SecondaryLightest:"secondary-lightest",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",SuccessDark:"success-dark",Success:"success",SuccessLight:"success-light",SuccessLighter:"success-lighter",WarningDark:"warning-dark",Warning:"warning",WarningLight:"warning-light",WarningLighter:"warning-lighter",DangerDark:"danger-dark",Danger:"danger",DangerLight:"danger-light",DangerLighter:"danger-lighter",InfoDark:"info-dark",Info:"info",InfoLight:"info-light",InfoLighter:"info-lighter"},mt={class:"ds-card",props:{backgroundColor:{default:Jr.None,options:Object.values(Jr)},borderColor:{default:Jr.None,options:Object.values(Jr)},elevation:{default:0,options:[0,1,2,3,4]},testId:{default:"ds-card"}}},Sr=({id:r,testId:e=mt.props.testId.default,children:t,className:s,elevation:n=mt.props.elevation.default,backgroundColor:a=mt.props.backgroundColor.default,borderColor:i=mt.props.borderColor.default})=>{const u=n&&`${mt.class}--elevation-${n}`,c=i&&`${mt.class}--border-${i}`,o=a&&`${mt.class}--${a}`;return j.jsx("div",{className:[mt.class,s,u,c,o].filter(l=>l).join(" "),"data-testid":e,id:r,children:t})};Sr.propTypes={id:C.string,testId:C.string,backgroundColor:C.oneOf(mt.props.backgroundColor.options),borderColor:C.oneOf(mt.props.borderColor.options),elevation:C.oneOf(mt.props.elevation.options)},Sr.displayName="DsCard";const Ve={class:"ds-checkbox",props:{testId:{default:"ds-checkbox-test"},label:{default:""},description:{default:""},checked:{default:!1},changeByChecked:{default:!1}}},Ia=re.forwardRef(({id:r,className:e,name:t,testId:s=Ve.props.testId.default,label:n=Ve.props.label.default,description:a=Ve.props.description.default,checked:i=Ve.props.checked.default,disabled:u=Ve.props.checked.default,changeByChecked:c=Ve.props.changeByChecked.default,onChangeHandler:o},l)=>{const p=c||!1,f=i||!1,[_,g]=re.useState(f),v={image:_?"check_box":"check_box_outline_blank",class:_?`${Ve.class}__icon--checked`:`${Ve.class}__icon--unchecked`},m=u&&`${Ve.class}--disabled`,y=h=>{u||(g(b=>!b),o&&o(h))};return re.useEffect(()=>{p&&g(i)},[i,p]),j.jsxs("label",{className:[Ve.class,m,e&&e].join(" "),htmlFor:r||t,children:[j.jsx("input",{checked:_,className:`${Ve.class}__input`,"data-testid":s,id:r||t,name:t,onChange:y,ref:l,type:"checkbox"}),j.jsx(Ne,{className:`${Ve.class}__icon ${v.class}`,fill:!0,image:v.image,size:"xxl",testId:`${s}-icon`}),(a||n)&&j.jsxs("div",{className:`${Ve.class}__label`,children:[n&&j.jsx("label",{className:`${Ve.class}__label-title`,htmlFor:r||t,children:n}),a&&j.jsx("label",{className:`${Ve.class}__label-description`,htmlFor:r||t,children:a})]})]})});Ia.propTypes={label:C.oneOfType([C.string,C.node]),name:C.string,className:C.string,testId:C.string,description:C.oneOfType([C.string,C.node]),checked:C.bool,disabled:C.bool},Ia.displayName="DsCheckbox";const Na={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},xr={class:"ds-heading",props:{type:{default:Na.Heading1,options:Object.values(Na)}}},At=({children:r,testId:e="ds-heading-test",type:t=xr.props.type.default,className:s})=>{const n={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6"},a=xr.props.type.options.find(u=>u===t)&&`${xr.class}--${t}`,i=n[t];return j.jsx(i,{className:[xr.class,a,s&&s].filter(u=>u).join(" "),"data-testid":e,children:r})};At.propTypes={className:C.string,testId:C.string,type:C.oneOf(xr.props.type.options)},At.displayName="DsHeading";const Da={None:"",Dashed:"dashed",Dotted:"dotted"},Ma={None:"",Small:"small",Large:"large"},Wt={class:"ds-hr",props:{borderStyle:{type:String,default:Da.None,options:Object.values(Da)},size:{type:String,default:Ma.None,options:Object.values(Ma)}}};function Fa(r,e,t){const s=t.props[r];return s.options&&s.options.some(n=>n===e)?`${t.class}--${e}`:""}const Us=({size:r=Wt.props.size.default,borderStyle:e=Wt.props.borderStyle.default})=>{const t=Fa("size",r,Wt),s=Fa("borderStyle",e,Wt);return j.jsx("hr",{className:`${Wt.class} ${t} ${s}`.trim()})};Us.propTypes={size:C.oneOf(Wt.props.size.options),borderStyle:C.oneOf(Wt.props.borderStyle.options)},Us.displayName="DsHR";function Bt(r){return typeof r=="string"||r instanceof String}function Ra(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function Ba(r,e){return Array.isArray(e)?Ba(r,(t,s)=>e.includes(s)):Object.entries(r).reduce((t,s)=>{let[n,a]=s;return e(a,n)&&(t[n]=a),t},{})}const J={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Gl(r){switch(r){case J.LEFT:return J.FORCE_LEFT;case J.RIGHT:return J.FORCE_RIGHT;default:return r}}function qs(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Qr(r,e){if(e===r)return!0;const t=Array.isArray(e),s=Array.isArray(r);let n;if(t&&s){if(e.length!=r.length)return!1;for(n=0;n<e.length;n++)if(!Qr(e[n],r[n]))return!1;return!0}if(t!=s)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const a=e instanceof Date,i=r instanceof Date;if(a&&i)return e.getTime()==r.getTime();if(a!=i)return!1;const u=e instanceof RegExp,c=r instanceof RegExp;if(u&&c)return e.toString()==r.toString();if(u!=c)return!1;const o=Object.keys(e);for(n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=0;n<o.length;n++)if(!Qr(r[o[n]],e[o[n]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}class Wl{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?J.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?J.RIGHT:J.LEFT}}function ae(r,e){return new ae.InputMask(r,e)}function ja(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?ae.MaskedRegExp:Bt(r)?ae.MaskedPattern:r===Date?ae.MaskedDate:r===Number?ae.MaskedNumber:Array.isArray(r)||r===Array?ae.MaskedDynamic:ae.Masked&&r.prototype instanceof ae.Masked?r:ae.Masked&&r instanceof ae.Masked?r.constructor:r instanceof Function?ae.MaskedFunction:(console.warn("Mask not found for mask",r),ae.Masked)}function Cr(r){if(!r)throw new Error("Options in not defined");if(ae.Masked){if(r.prototype instanceof ae.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof ae.Masked?{mask:r}:Ra(r)&&r.mask instanceof ae.Masked?r:{};if(e){const s=e.mask;return{...Ba(e,(n,a)=>!a.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return Ra(r)?{...r}:{mask:r}}function Tt(r){if(ae.Masked&&r instanceof ae.Masked)return r;const e=Cr(r),t=ja(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}ae.createMask=Tt;let Ks=class{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}};ae.MaskElement=Ks;const La=90,Xl=89;let es=class extends Ks{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return(e=(t=(s=this.input).getRootNode)==null?void 0:t.call(s))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===La&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===Xl&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===La&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};ae.HTMLMaskElement=es;class Yl extends es{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}ae.HTMLMaskElement=es;let Va=class extends es{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s<n?s:n}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s>n?s:n}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);const n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}};ae.HTMLContenteditableMaskElement=Va;let za=class Tl{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>Tl.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};za.MAX_LENGTH=100;let Zl=class{constructor(e,t){this.el=e instanceof Ks?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new Va(e):new Yl(e),this.masked=Tt(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new za,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof ae.Masked)&&this.masked.constructor===ja(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof ae.Masked?e:Tt({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const s=this._listeners[e];s&&s.forEach(n=>n(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,s=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==n;this._unmaskedValue=t,this._value=s,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...s}=e,n=!this.maskEquals(t),a=this.masked.optionsIsChanged(s);n&&(this.mask=t),a&&this.masked.updateOptions(s),(n||a)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,J.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Wl({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=s===this.masked.rawInputValue?t.removeDirection:J.NONE;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==J.NONE&&(i=this.masked.nearestInputPos(i,J.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};ae.InputMask=Zl;class le{static normalize(e){return Array.isArray(e)?e:[e,new le]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}ae.ChangeDetails=le;let $t=class{constructor(e,t,s){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}};class Re{constructor(e){this._value="",this._update({...Re.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new $t(this.extractInput(e,t),e)}appendTail(e){return Bt(e)&&(e=new $t(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new le({inserted:e,rawInserted:e})):new le}_appendChar(e,t,s){t===void 0&&(t={});const n=this.state;let a;if([e,a]=this.doPrepareChar(e,t),e&&(a=a.aggregate(this._appendCharRaw(e,t)),!a.rawInserted&&this.autofix==="pad")){const i=this.state;this.state=n;let u=this.pad(t);const c=this._appendCharRaw(e,t);u=u.aggregate(c),c.rawInserted||u.equals(a)?a=u:this.state=i}if(a.inserted){let i,u=this.doValidate(t)!==!1;if(u&&s!=null){const c=this.state;if(this.overwrite===!0){i=s.state;for(let l=0;l<a.rawInserted.length;++l)s.unshift(this.displayValue.length-a.tailShift)}let o=this.appendTail(s);if(u=o.rawInserted.length===s.toString().length,!(u&&o.inserted)&&this.overwrite==="shift"){this.state=c,i=s.state;for(let l=0;l<a.rawInserted.length;++l)s.shift();o=this.appendTail(s),u=o.rawInserted.length===s.toString().length}u&&o.inserted&&(this.state=c)}u||(a=new le,this.state=n,s&&i&&(s.state=i))}return a}_appendPlaceholder(){return new le}_appendEager(){return new le}append(e,t,s){if(!Bt(e))throw new Error("value should be string");const n=Bt(s)?new $t(String(s)):s;t!=null&&t.tail&&(t._beforeTailState=this.state);let a;[e,a]=this.doPrepare(e,t);for(let i=0;i<e.length;++i){const u=this._appendChar(e[i],t,n);if(!u.rawInserted&&!this.doSkipInvalid(e[i],t,n))break;a.aggregate(u)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new le}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,s=this.value,n=e();return this.rawInputValue=t,this.value&&this.value!==s&&s.indexOf(this.value)===0&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),le.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),le.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,n,a){s===void 0&&(s=""),n===void 0&&(n=J.NONE),a===void 0&&(a={input:!0});const i=e+t,u=this.extractTail(i),c=this.eager===!0||this.eager==="remove";let o;c&&(n=Gl(n),o=this.extractInput(0,i,{raw:!0}));let l=e;const p=new le;if(n!==J.NONE&&(l=this.nearestInputPos(e,t>1&&e!==0&&!c?J.NONE:n),p.tailShift=l-e),p.aggregate(this.remove(l)),c&&n!==J.NONE&&o===this.rawInputValue)if(n===J.FORCE_LEFT){let f;for(;o===this.rawInputValue&&(f=this.displayValue.length);)p.aggregate(new le({tailShift:-1})).aggregate(this.remove(f-1))}else n===J.FORCE_RIGHT&&u.unshift();return p.aggregate(this.append(s,a,u))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!Qr(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||Re.EMPTY_VALUES.includes(e)&&Re.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new le}}Re.DEFAULTS={skipInvalid:!0},Re.EMPTY_VALUES=[void 0,null,""],ae.Masked=Re;class Xt{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Bt(e)?new $t(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof $t)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Xt){if(e.stop==null){let n;for(;e.chunks.length&&e.chunks[0].stop==null;)n=e.chunks.shift(),n.from+=e.from,this.extend(n)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof ae.MaskedPattern))return new $t(this.toString()).appendTo(e);const t=new le;for(let s=0;s<this.chunks.length;++s){const n=this.chunks[s],a=e._mapPosToBlock(e.displayValue.length),i=n.stop;let u;if(i!=null&&(!a||a.index<=i)&&((n instanceof Xt||e._stops.indexOf(i)>=0)&&t.aggregate(e._appendPlaceholder(i)),u=n instanceof Xt&&e._blocks[i]),u){const c=u.appendTail(n);t.aggregate(c);const o=n.toString().slice(c.rawInserted.length);o&&t.aggregate(e.append(o,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(n=>{const a="chunks"in n?new Xt:new $t;return a.state=n,a})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const n=this.chunks[s],a=n.unshift(t);if(n.toString()){if(!a)break;++s}else this.chunks.splice(s,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}let Jl=class{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:n}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,J.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,J.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,J.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,J.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,J.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,J.NONE),!0})}},Ha=class{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new le}nearestInputPos(e,t){t===void 0&&(t=J.NONE);const s=0,n=this._value.length;switch(t){case J.LEFT:case J.FORCE_LEFT:return s;case J.NONE:case J.RIGHT:case J.FORCE_RIGHT:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new le;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,a=new le({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(t.raw||t.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new le;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new $t("")}appendTail(e){return Bt(e)&&(e=new $t(String(e))),e.appendTo(this)}append(e,t,s){const n=this._appendChar(e[0],t);return s!=null&&(n.tailShift+=this.appendTail(s).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}},ts=class{constructor(e){const{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:u,...c}=e;this.masked=Tt(c),Object.assign(this,{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:u})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new le}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new le;const s=this.masked.state;let n=this.masked._appendChar(e,this.currentMaskFlags(t));return n.inserted&&this.doValidate(t)===!1&&(n=new le,this.masked.state=s),!n.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new le:(this.isFilled=!0,new le({inserted:this.placeholderChar}))}_appendEager(){return new le}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){t===void 0&&(t=J.NONE);const s=0,n=this.value.length,a=Math.min(Math.max(e,s),n);switch(t){case J.LEFT:case J.FORCE_LEFT:return this.isComplete?a:s;case J.RIGHT:case J.FORCE_RIGHT:return this.isComplete?a:n;case J.NONE:default:return a}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new le}};ts.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Ql extends Re{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}}ae.MaskedRegExp=Ql;let ot=class Ms extends Re{constructor(e){super({...Ms.DEFAULTS,...e,definitions:Object.assign({},ts.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let s=!1,n=!1;for(let a=0;a<t.length;++a){if(this.blocks){const o=t.slice(a),l=Object.keys(this.blocks).filter(f=>o.indexOf(f)===0);l.sort((f,_)=>_.length-f.length);const p=l[0];if(p){const{expose:f,repeat:_,...g}=Cr(this.blocks[p]),v={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...g,repeat:_,parent:this},m=_!=null?new ae.RepeatBlock(v):Tt(v);m&&(this._blocks.push(m),f&&(this.exposeBlock=m),this._maskedBlocks[p]||(this._maskedBlocks[p]=[]),this._maskedBlocks[p].push(this._blocks.length-1)),a+=p.length-1;continue}}let i=t[a],u=i in e;if(i===Ms.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){n=!n;continue}if(i===Ms.ESCAPE_CHAR){if(++a,i=t[a],!i)break;u=!1}const c=u?new ts({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Cr(e[i]),parent:this}):new Ha({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...s}=e;this._blocks.forEach((n,a)=>n.state=t[a]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new le;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return t;this._blocks[s].isFilled&&++s;for(let n=s;n<this._blocks.length;++n){const a=this._blocks[n]._appendEager();if(!a.inserted)break;t.aggregate(a)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._mapPosToBlock(this.displayValue.length),n=new le;if(!s)return n;for(let i=s.index,u;u=this._blocks[i];++i){var a;const c=u._appendChar(e,{...t,_beforeTailState:(a=t._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]});if(n.aggregate(c),c.consumed)break}return n}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new Xt;return e===t||this._forEachBlocksInRange(e,t,(n,a,i,u)=>{const c=n.extractTail(i,u);c.stop=this._findStopBefore(a),c.from=this._blockStartPos(a),c instanceof Xt&&(c.blockIndex=a),s.extend(c)}),s}extractInput(e,t,s){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),s===void 0&&(s={}),e===t)return"";let n="";return this._forEachBlocksInRange(e,t,(a,i,u,c)=>{n+=a.extractInput(u,c,s)}),n}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){const n=this._stops[s];if(n<=e)t=n;else break}return t}_appendPlaceholder(e){const t=new le;if(this.lazy&&e==null)return t;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;const n=s.index,a=e??this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||e!=null){var u;t.aggregate(i._appendPlaceholder((u=i._blocks)==null?void 0:u.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){const n=this._blocks[s],a=t.length;if(t+=n.displayValue,e<=t.length)return{index:s,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,s)=>t+=s.displayValue.length,0)}_forEachBlocksInRange(e,t,s){t===void 0&&(t=this.displayValue.length);const n=this._mapPosToBlock(e);if(n){const a=this._mapPosToBlock(t),i=a&&n.index===a.index,u=n.offset,c=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(s(this._blocks[n.index],n.index,u,c),a&&!i){for(let o=n.index+1;o<a.index;++o)s(this._blocks[o],o,0,this._blocks[o].displayValue.length);s(this._blocks[a.index],a.index,0,a.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(n,a,i,u)=>{s.aggregate(n.remove(i,u))}),s}nearestInputPos(e,t){if(t===void 0&&(t=J.NONE),!this._blocks.length)return 0;const s=new Jl(this,e);if(t===J.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===J.LEFT||t===J.FORCE_LEFT){if(t===J.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===J.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===J.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===J.RIGHT||t===J.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===J.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,J.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(n,a,i,u)=>{s+=n.totalInputPositions(i,u)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(s=>this._blocks[s]):[]}pad(e){const t=new le;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}};ot.DEFAULTS={...Re.DEFAULTS,lazy:!0,placeholderChar:"_"},ot.STOP_CHAR="`",ot.ESCAPE_CHAR="\\",ot.InputDefinition=ts,ot.FixedDefinition=Ha,ae.MaskedPattern=ot;let rs=class extends ot{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:s=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix,...i}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,n),this.autofix=a;const u=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let o=0;for(;o<c.length&&c[o]===u[o];)++o;i.mask=c.slice(0,o).replace(/0/g,"\\0")+"0".repeat(this.maxLength-o),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(n.length)+a,s="9".repeat(n.length)+a),t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[t,s]}doPrepareChar(e,t){t===void 0&&(t={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const s=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+e);return Number(i)<this.from?super._appendCharRaw(s[this.value.length],t):Number(a)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(n[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[s,n]=this.boundaries(t);return this.from<=Number(n)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){const t=new le;if(this.value.length===this.maxLength)return t;const s=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(a=>this._appendCharRaw(a))}return t}};ae.MaskedRange=rs;let Gs=class Er extends ot{static extractPatternOptions(e){const{mask:t,pattern:s,...n}=e;return{...n,mask:Bt(t)?t:s}}constructor(e){super(Er.extractPatternOptions({...Er.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:n,...a}={...Er.DEFAULTS,...e},i=Object.assign({},Er.GET_DEFAULT_BLOCKS());e.min&&(i.Y.from=e.min.getFullYear()),e.max&&(i.Y.to=e.max.getFullYear()),e.min&&e.max&&i.Y.from===i.Y.to&&(i.m.from=e.min.getMonth()+1,i.m.to=e.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=e.min.getDate(),i.d.to=e.max.getDate())),Object.assign(i,this.blocks,n),super._update({...a,mask:Bt(t)?t:s,blocks:i})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(Er.extractPatternOptions(e))}};Gs.GET_DEFAULT_BLOCKS=()=>({d:{mask:rs,from:1,to:31,maxLength:2},m:{mask:rs,from:1,to:12,maxLength:2},Y:{mask:rs,from:1900,to:9999}}),Gs.DEFAULTS={...ot.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),s=String(r.getMonth()+1).padStart(2,"0"),n=r.getFullYear();return[t,s,n].join(".")},parse:(r,e)=>{const[t,s,n]=r.split(".").map(Number);return new Date(n,s-1,t)}},ae.MaskedDate=Gs;let Ua=class Pl extends Re{constructor(e){super({...Pl.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:s,...n}=Cr(t),a=Tt({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return s&&(this.exposeMask=a),a}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){e===void 0&&(e=""),t===void 0&&(t={}),s===void 0&&(s="");const n=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,a=this.rawInputValue,i=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:a,u=a.slice(i.length),c=this.currentMask,o=new le,l=c==null?void 0:c.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),o.tailShift=this.currentMask.value.length-n.length),u&&(o.tailShift+=this.currentMask.append(u,{raw:!0,tail:!0}).tailShift)):l&&(this.currentMask.state=l)),o}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new le;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return t===void 0&&(t={}),s===void 0&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[s,n]=super.doPrepare(e,t);if(this.currentMask){let a;[s,a]=super.doPrepare(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}doPrepareChar(e,t){t===void 0&&(t={});let[s,n]=super.doPrepareChar(e,t);if(this.currentMask){let a;[s,a]=super.doPrepareChar(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const s=new le;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:s,currentMask:n,...a}=e;t&&this.compiledMasks.forEach((i,u)=>i.state=t[u]),s!=null&&(this.currentMask=s,this.currentMask.state=n),super.state=a}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;const{mask:n,...a}=e[s];return Qr(t,a)&&t.maskEquals(n)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}};Ua.DEFAULTS={...Re.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,a=e.compiledMasks.map((i,u)=>{const c=e.currentMask===i,o=c?i.displayValue.length:i.nearestInputPos(i.displayValue.length,J.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):c||i.remove(o),i.append(r,e.currentMaskFlags(t)),i.appendTail(s),{index:u,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(o,i.nearestInputPos(i.displayValue.length,J.FORCE_LEFT)))}});return a.sort((i,u)=>u.weight-i.weight||u.totalInputPositions-i.totalInputPositions),e.compiledMasks[a[0].index]}},ae.MaskedDynamic=Ua;let qa=class Ol extends ot{constructor(e){super({...Ol.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const n=t.map(u=>u.length),a=Math.min(...n),i=Math.max(...n)-a;s.mask="*".repeat(a),i&&(s.mask+="["+"*".repeat(i)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){t===void 0&&(t={});const s=Math.min(this.nearestInputPos(0,J.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+e,s));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,u)=>{const c=n[0][u];u>=this.value.length||c===i.value||(i.reset(),i._appendChar(c,t))});const a=super._appendCharRaw(n[0][this.value.length],t);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new le({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new $t("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new le;const s=Math.min(super.nearestInputPos(0,J.FORCE_RIGHT),this.value.length);let n;for(n=e;n>=0&&!(this.enum.filter(i=>this.matchValue(i,this.value.slice(s,n),s)).length>1);--n);const a=super.remove(n,t);return a.tailShift+=n-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}};qa.DEFAULTS={...ot.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},ae.MaskedEnum=qa;let ec=class extends Re{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};ae.MaskedFunction=ec;var Ka;class rt extends Re{constructor(e){super({...rt.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+qs(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(qs).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(qs(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[s,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(n.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&n.aggregate(this._appendChar("-")),[s,n]}_separatorsCount(e,t){t===void 0&&(t=!1);let s=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){t===void 0&&(t={});const s=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const a=this._value;this._value+=e;const i=this.number;let u=!isNaN(i),c=!1;if(u){let f;this.min!=null&&this.min<0&&this.number<this.min&&(f=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(f=this.max),f!=null&&(this.autofix?(this._value=this.format(f,this).replace(rt.UNMASKED_RADIX,this.radix),c||(c=a===this._value&&!t.tail)):u=!1),u&&(u=!!this._value.match(this._numberRegExp))}let o;u?o=new le({inserted:this._value.slice(a.length),rawInserted:c?"":e,skip:c}):(this._value=a,o=new le),this._value=this._insertThousandsSeparators(this._value);const l=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,p=this._separatorsCountFromSlice(l);return o.tailShift+=(p-n)*this.thousandsSeparator.length,o}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,t){const s=this._findSeparatorAround(e);s>=0&&(e=s);const n=this._findSeparatorAround(t);return n>=0&&(t=n+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const s=this.value.slice(0,e),n=this.value.slice(t),a=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+n));const i=this._separatorsCountFromSlice(s);return new le({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case J.NONE:case J.LEFT:case J.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const n=s+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===J.FORCE_LEFT)return s}break}case J.RIGHT:case J.FORCE_RIGHT:{const s=this._findSeparatorAround(e);if(s>=0)return s+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(s,n,a,i)=>n+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){t===void 0&&(t={});const n=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===rt.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,rt.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(rt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||rt.EMPTY_VALUES.includes(e)&&rt.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}Ka=rt,rt.UNMASKED_RADIX=".",rt.EMPTY_VALUES=[...Re.EMPTY_VALUES,0],rt.DEFAULTS={...Re.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Ka.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ae.MaskedNumber=rt;const Ws={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Ga(r,e,t){e===void 0&&(e=Ws.MASKED),t===void 0&&(t=Ws.MASKED);const s=Tt(r);return n=>s.runIsolated(a=>(a[e]=n,a[t]))}function tc(r,e,t,s){return Ga(e,t,s)(r)}ae.PIPE_TYPE=Ws,ae.createPipe=Ga,ae.pipe=tc;let rc=class extends ot{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,n;const{repeat:a,...i}=Cr(e);this._blockOpts=Object.assign({},this._blockOpts,i);const u=Tt(this._blockOpts);this.repeat=(t=(s=a??u.repeat)!=null?s:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Tt(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new le;for(let c=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),o,l;o=(i=this._blocks[c])!=null?i:l=!l&&this._allocateBlock(c);++c){var n,a,i,u;const p=o._appendChar(e,{...t,_beforeTailState:(u=t._beforeTailState)==null||(u=u._blocks)==null?void 0:u[c]});if(p.skip&&l){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(p),p.consumed)break}return s}_trimEmptyTail(e,t){var s,n;e===void 0&&(e=0);const a=Math.max(((s=this._mapPosToBlock(e))==null?void 0:s.index)||0,this.repeatFrom,0);let i;t!=null&&(i=(n=this._mapPosToBlock(t))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let u=0;for(let c=i;a<=c&&!this._blocks[c].unmaskedValue;--c,++u);u&&(this._blocks.splice(i-u+1,u),this.mask=this.mask.slice(u))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};ae.RepeatBlock=rc;try{globalThis.IMask=ae}catch{}const Wa={mask:C.oneOfType([C.array,C.func,C.string,C.instanceOf(RegExp),C.oneOf([Date,Number,ae.Masked]),C.instanceOf(ae.Masked)]),value:C.any,unmask:C.oneOfType([C.bool,C.oneOf(["typed"])]),prepare:C.func,prepareChar:C.func,validate:C.func,commit:C.func,overwrite:C.oneOfType([C.bool,C.oneOf(["shift"])]),eager:C.oneOfType([C.bool,C.oneOf(["append","remove"])]),skipInvalid:C.bool,onAccept:C.func,onComplete:C.func,placeholderChar:C.string,displayChar:C.string,lazy:C.bool,definitions:C.object,blocks:C.object,enum:C.arrayOf(C.string),maxLength:C.number,from:C.number,to:C.number,pattern:C.string,format:C.func,parse:C.func,autofix:C.oneOfType([C.bool,C.oneOf(["pad"])]),radix:C.string,thousandsSeparator:C.string,mapToRadix:C.arrayOf(C.string),scale:C.number,normalizeZeros:C.bool,padFractionalZeros:C.bool,min:C.oneOfType([C.number,C.instanceOf(Date)]),max:C.oneOfType([C.number,C.instanceOf(Date)]),dispatch:C.func,inputRef:C.oneOfType([C.func,C.shape({current:C.object})])},Xa=Object.keys(Wa).filter(r=>r!=="value"),sc=["value","unmask","onAccept","onComplete","inputRef"],nc=Xa.filter(r=>sc.indexOf(r)<0);function ac(r){var e;const t=(e=class extends re.Component{constructor(n){super(n),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const n=this.props,a=this._extractMaskOptionsFromProps(n);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in n&&n.value!==void 0&&(this.maskValue=n.value)):this.initMask(a);else if(this.destroyMask(),"value"in n&&n.value!==void 0){var i;(i=this.element)!=null&&i.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=n.value:this.element.value=n.value}}componentWillUnmount(){this.destroyMask()}_inputRef(n){this.element=n,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=n:this.props.inputRef(n))}initMask(n){n===void 0&&(n=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ae(this.element,n).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(n){const{...a}=n;return Object.keys(a).filter(i=>nc.indexOf(i)<0).forEach(i=>{delete a[i]}),a}_extractNonMaskProps(n){const{...a}=n;return Xa.forEach(i=>{i!=="maxLength"&&delete a[i]}),"defaultValue"in a||(a.defaultValue=n.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(n){this.maskRef&&(n=n==null&&this.props.unmask!=="typed"?"":n,this.props.unmask==="typed"?this.maskRef.typedValue=n:this.props.unmask?this.maskRef.unmaskedValue=n:this.maskRef.value=n)}_onAccept(n){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,n)}_onComplete(n){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,n)}render(){return re.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=r.displayName||r.name||"Component";return t.displayName="IMask("+s+")",t.propTypes=Wa,re.forwardRef((n,a)=>re.createElement(t,{...n,ref:a}))}const oc=ac(r=>{let{inputRef:e,...t}=r;return re.createElement("input",{...t,ref:e})}),ic=(r,e)=>re.createElement(oc,{...r,ref:e});re.forwardRef(ic);function uc(r,e){let{onAccept:t,onComplete:s,ref:n=re.useRef(null),defaultValue:a,defaultUnmaskedValue:i,defaultTypedValue:u}=e===void 0?{}:e;const c=re.useRef(null),[o,l]=re.useState({}),[p,f]=re.useState(""),[_,g]=re.useState(""),[v,m]=re.useState(),y=re.useCallback(()=>{var S;(S=c.current)==null||S.destroy(),c.current=null},[]),h=re.useCallback(()=>{const S=c.current;S&&(l({value:S.value,unmaskedValue:S.unmaskedValue,typedValue:S.typedValue}),m(S.typedValue),g(S.unmaskedValue),f(S.value))},[]),b=re.useCallback(S=>{const T=c.current;T&&(h(),t==null||t(T.value,T,S))},[t]),$=re.useCallback(S=>c.current&&(s==null?void 0:s(c.current.value,c.current,S)),[s]);return re.useEffect(()=>{const{value:S,...T}=o,I=c.current;!I||p===void 0||(S!==p&&(I.value=p,I.value!==p&&b()),l(T))},[p]),re.useEffect(()=>{const{unmaskedValue:S,...T}=o,I=c.current;!I||_===void 0||(S!==_&&(I.unmaskedValue=_,I.unmaskedValue!==_&&b()),l(T))},[_]),re.useEffect(()=>{const{typedValue:S,...T}=o,I=c.current;!I||v===void 0||(S!==v&&(I.typedValue=v,I.masked.typedValueEquals(v)||b()),l(T))},[v]),re.useEffect(()=>{const S=n.current;if(!S||!(r!=null&&r.mask))return y();const T=c.current;T?T==null||T.updateOptions(r):S&&r!=null&&r.mask&&(c.current=ae(S,r),h(),a!==void 0&&f(a),i!==void 0&&g(i),u!==void 0&&m(u))},[r,y,b]),re.useEffect(()=>{if(!c.current)return;const S=c.current;return S.on("accept",b),S.on("complete",$),()=>{S.off("accept",b),S.off("complete",$)}},[b,$]),re.useEffect(()=>y,[y]),{ref:n,maskRef:c,value:p,setValue:f,unmaskedValue:_,setUnmaskedValue:g,typedValue:v,setTypedValue:m}}const Ya={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Za={Small:"small",Medium:"medium",Large:"large"},Ja={Default:"",Error:"error",Success:"success"},lc={Center:"center"},cc={Top:"top"},be={class:"ds-input",props:{testId:{default:"ds-input-test"},type:{default:Ya.Text,options:Object.values(Ya)},animated:{default:!0},disabled:{default:!1},size:{default:Za.Medium,options:Object.values(Za)},status:{default:Ja.Default,options:Object.values(Ja)},hasFeedback:{default:!0},noMargin:{default:!1},icon:{default:""},tooltip:{default:""},tooltipPlacement:{default:lc.Center},tooltipPosition:{default:cc.Top},onChangeHandler:{default:()=>({})}}},Qa={currency:{mask:"currency",blocks:{currency:{mask:"R$ num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:".",padFractionalZeros:!0,normalizeZeros:!1,radix:",",mapToRadix:[",","."]}}}}},document:{mask:[{mask:"000.000.000-00",startsWith:/[0-9]/,maxLength:14},{mask:"00.000.000/0000-00",startsWith:/[0-9]/,maxLength:18}]},"phone-br":{mask:[{mask:"(00) 0000-0000"},{mask:"(00) 00000-0000"}],dispatch:(r,e)=>(e.value+r).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}},eo={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},to={Center:"center",End:"end",Initial:"initial"},Pt={class:"ds-tooltip",props:{position:{default:eo.Top,options:Object.values(eo)},placement:{default:to.Center,options:Object.values(to)},text:{default:""}}},Ar=({children:r,position:e=Pt.props.position.default,placement:t=Pt.props.placement.default,text:s=Pt.props.text.default,className:n})=>{const a=re.useRef(null),[i,u]=re.useState(0),[c,o]=re.useState(0),[l,p]=re.useState(!1),f=e&&Pt.props.position.options.find(y=>y===e)&&`${Pt.class}--${e}`,_=t&&Pt.props.placement.options.find(y=>y===t)&&`${Pt.class}--${t}`;let g;re.useLayoutEffect(()=>{var y,h;a.current&&(u((y=a==null?void 0:a.current)==null?void 0:y.offsetHeight),o((h=a==null?void 0:a.current)==null?void 0:h.offsetWidth))},[]),re.useEffect(()=>(document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}),[]);const v=9;switch(e){case"top":t==="initial"?g={bottom:i+v,left:-9}:t==="end"?g={bottom:i+v,right:-9}:g={bottom:i+v,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?g={top:i+v,left:-9}:t==="end"?g={top:i+v,right:-9}:g={top:i+v,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?g={right:c+v,top:-9}:t==="end"?g={right:c+v,bottom:-9}:g={right:c+v,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?g={left:c+v,top:-9}:t==="end"?g={left:c+v,bottom:-9}:g={left:c+v,top:"50%",transform:"translateY(-50%)"};break}const m=({target:y})=>{a.current&&a.current.contains(y)||p(!1)};return j.jsxs("span",{className:[Pt.class,n].join(" "),"data-testid":"ds-tooltip",onClick:()=>p(!l),ref:a,children:[r,l&&j.jsx("span",{className:[f,_].filter(y=>y).join(" "),children:j.jsx("span",{className:`${Pt.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:g,children:s})})]})};Ar.propTypes={position:C.string,placement:C.string,text:C.oneOfType([C.string,C.node])},Ar.displayName="DsTooltip";const ro=re.forwardRef(({name:r,testId:e=be.props.testId.default,type:t=be.props.type.default,animated:s=be.props.animated.default,size:n=be.props.size.default,label:a,placeholder:i,value:u,min:c,max:o,tooltip:l=be.props.tooltip.default,tooltipPosition:p=be.props.tooltipPosition.default,tooltipPlacement:f=be.props.tooltipPlacement.default,icon:_=be.props.icon.default,status:g=be.props.status.default,feedback:v,hasFeedback:m=be.props.hasFeedback.default,noMargin:y=be.props.noMargin.default,disabled:h=be.props.disabled.default,className:b,mask:$,onChangeHandler:S=be.props.onChangeHandler.default,onBlurHandler:T,onKeyDownHandler:I,onFocusHandler:R},L)=>{const[N,A]=re.useState(!1),[F,B]=re.useState(!1),H=!!S&&!!$,G=(z,K,Q)=>{if(H&&Q){const U={...Q,target:{...Q.target,name:r,maskedValue:z,value:K.unmaskedValue,type:"text"}};S(U)}},X=re.useMemo(()=>typeof $=="object"?{lazy:!0,...$}:Qa[$]?{...Qa[$],min:c,max:o,lazy:!0}:{mask:$||"",min:c,max:o,lazy:!0},[$]),{ref:se,setUnmaskedValue:te}=uc(X,{onAccept:G}),ne=z=>{S&&!H&&S(z)},O=z=>{I&&I(z)},k=z=>{A(!1),T&&T(z)},x=z=>{A(!0),R&&R(z)},w=()=>{B(z=>!z)},d=re.useMemo(()=>F&&t==="password"?"text":t,[F,t]),E=()=>{const z=[`${be.class}`];return n&&z.push(`${be.class}--${n}`),s&&z.push(`${be.class}--animated`),y&&z.push(`${be.class}--no-margin`),_&&z.push(`${be.class}--with-icon`),g&&z.push(`${be.class}--${g}`),b&&z.push(b),z.join(" ")},P=re.useMemo(()=>{const z=[`${be.class}__label`];return(N||u)&&z.push(`${be.class}__label--active`),z.join(" ")},[u,N]),V=()=>!s&&i?i:"",M=()=>g&&g==="error"?"info":"check_circle";return re.useEffect(()=>{$&&te(u||"")},[u,$,te]),j.jsxs("div",{className:E(),ref:L,children:[m&&j.jsx("div",{className:"ds-input__feedback",children:v&&j.jsxs(j.Fragment,{children:[j.jsx(Ne,{image:M()}),v]})}),j.jsx("input",{className:"ds-input__input","data-testid":e,disabled:h,id:r,max:o,min:c,name:r,onBlur:k,onChange:ne,onFocus:x,onInput:ne,onKeyDown:O,placeholder:V(),ref:se,type:d,...!$&&{value:u||""}}),j.jsxs("label",{className:P,htmlFor:r,children:[a,l&&j.jsx(Ar,{className:"ds-input__tooltip",placement:f,position:p,text:l,children:j.jsx(Ne,{className:"ds-input__icon",image:"info"})})]}),_&&j.jsx(Ne,{className:"ds-input__icon",image:_}),t==="password"&&j.jsx(Ne,{className:"ds-input__password-icon",image:F?"visibility_off":"visibility",onClick:w,size:"xl"})]})});ro.propTypes={name:C.string,testId:C.string,type:C.oneOf(be.props.type.options),animated:C.bool,size:C.oneOf(be.props.size.options),label:C.string,placeholder:C.string,value:C.oneOfType([C.string]),min:C.string,max:C.string,tooltip:C.string,tooltipPosition:C.string,tooltipPlacement:C.string,icon:C.string,status:C.oneOf(be.props.status.options),feedback:C.string,hasFeedback:C.bool,noMargin:C.bool,disabled:C.bool,mask:C.oneOfType([C.string,C.object]),onChangeHandler:C.func,onFocusHandler:C.func},ro.displayName="DsInput";const dc={Small:"small",Medium:"medium",Large:"large"},hc={props:{size:{options:Object.values(dc)}}};C.string,C.string,C.oneOf(hc.props.size.options),C.bool,C.bool,C.string,C.string,C.string,C.string,C.oneOfType([C.string,C.node]),C.oneOfType([C.string,C.number]),C.string,C.bool,C.bool,C.func;const so={Default:"",Large:"large",Small:"small"},ss={class:"ds-paragraph",props:{type:{default:so.Default,options:Object.values(so)}}},jt=({children:r,className:e,testId:t="ds-paragraph-test",type:s=ss.props.type.default})=>{const n=s&&`${ss.class}--${s}`;return j.jsx("p",{className:[ss.class,n,e&&e].filter(a=>a).join(" "),"data-testid":t,children:r})};jt.propTypes={className:C.string,testId:C.string,type:C.oneOf(ss.props.type.options)},jt.displayName="DsParagraph";const Xs={class:"ds-flex-element",props:{flex:{default:"0 1 auto"},className:{default:""}}},Ee=({children:r,flex:e=Xs.props.flex.default,className:t=Xs.props.className.default})=>{const s=()=>[Xs.class,t].join(" "),n=()=>({flex:e});return j.jsx("div",{className:s(),style:n(),children:r})};Ee.propTypes={className:C.string,flex:C.string},Ee.displayName="DsFlexElement";const fc={Stretch:"stretch"},pc={Stretch:"stretch"},mc={Row:"row"},gc={Wrap:"wrap"},Yt={class:"ds-flex-layout",props:{justifyContent:{default:fc.Stretch},alignItems:{default:pc.Stretch},flexDirection:{default:mc.Row},flexWrap:{default:gc.Wrap},width:{default:"100%"}}},gt=({children:r,className:e,justifyContent:t=Yt.props.justifyContent.default,alignItems:s=Yt.props.alignItems.default,flexDirection:n=Yt.props.flexDirection.default,flexWrap:a=Yt.props.flexWrap.default,width:i=Yt.props.width.default,height:u,gap:c})=>{const o=()=>{const p=[Yt.class,e];return c&&p.push(`${Yt.class}--gap-${c}`),p.join(" ")},l=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:n,flexWrap:a,width:i,height:u,gap:c});return j.jsx("div",{className:o(),style:l(),children:r})};gt.propTypes={className:C.string,justifyContent:C.string,alignItems:C.string,flexDirection:C.string,flexWrap:C.string,width:C.string,height:C.string,gap:C.string},gt.displayName="DsFlexLayout";const ns={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},Tr={class:"ds-spacer",props:{vertical:{default:ns.None,options:Object.values(ns)},horizontal:{default:ns.None,options:Object.values(ns)}}},st=({vertical:r=Tr.props.vertical.default,horizontal:e=Tr.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return j.jsx("div",{className:[Tr.class,t,s].filter(n=>n).join(" "),"data-testid":"ds-spacer"})};st.propTypes={vertical:C.oneOf(Tr.props.vertical.options),horizontal:C.oneOf(Tr.props.horizontal.options)},st.displayName="DsSpacer",C.string,C.number,C.string;const no={Small:"sm",Medium:"md",Large:"lg"},ao={Default:"",Error:"error",Success:"success"},yc={Initial:"initial"},vc={Top:"top"},$e={class:"ds-select",props:{animated:{default:!0},disabled:{default:!1},multiple:{default:!1},testId:{default:"ds-select-test"},size:{options:Object.values(no),default:no.Medium},status:{default:ao.Default,options:Object.values(ao)},tooltipPlacement:{default:yc.Initial},tooltipPosition:{default:vc.Top}}},oo=re.forwardRef(({label:r,className:e,disabled:t=$e.props.disabled.default,animated:s=$e.props.animated.default,multiple:n=$e.props.multiple.default,testId:a=$e.props.testId.default,name:i,options:u,value:c,placeholder:o,onChange:l,onChangeHandler:p,size:f=$e.props.size.default,status:_=$e.props.status.default,tooltip:g,tooltipPosition:v=$e.props.tooltipPosition.default,tooltipPlacement:m=$e.props.tooltipPlacement.default,feedback:y,...h},b)=>{const[$,S]=re.useState(!1),T=L=>{S(!1),l&&l(L,L.target.value),p&&p(L,L.target.value)},I=()=>{const L=[$e.class,"select-placeholder"];return L.push(`${$e.class}--${f}`),_&&L.push(`${$e.class}--${_}`),$&&L.push(`${$e.class}--active`),t&&L.push(`${$e.class}--disabled`),e&&L.push(e),L.join(" ")},R=re.useMemo(()=>{const L=[`${$e.class}__label`];return!s&&L.push(`${$e.class}__label--not-animated`),c&&L.push(`${$e.class}__label--has-value`),s&&!c&&!g&&L.push(`${$e.class}__label--hidden`),L.join(" ")},[c]);return j.jsxs("div",{className:I(),"data-testid":"ds-select-component",children:[j.jsxs("label",{className:R,"data-testid":"ds-label-id",htmlFor:i,children:[r,g&&j.jsx(Ar,{className:`${$e.class}__tooltip`,placement:m,position:v,text:g,children:j.jsx(Ne,{className:`${$e.class}__icon`,image:"info"})})]}),j.jsxs("select",{"data-testid":a,disabled:t,id:i,multiple:n,name:i,onChange:L=>T(L),value:c||"",...h,onBlur:()=>S(!1),onFocus:()=>S(!0),ref:b,required:!0,children:[(o||s)&&j.jsx("option",{disabled:!0,value:"",children:o??r}),u==null?void 0:u.map((L,N)=>{var A;return"options"in L?j.jsx("optgroup",{label:L.label,children:(A=L.options)==null?void 0:A.map((F,B)=>j.jsx("option",{className:`${$e.class}__option-select`,value:F.value,children:F.label||F.value},B))},N):j.jsx("option",{className:`${$e.class}__option-select`,value:L.value,children:L.label||L.value},N)})]}),y&&j.jsxs("div",{className:"ds-select__feedback-container",children:[j.jsx(Ne,{className:"ds-select__icon",image:_==="success"?"check_circle":"info"}),j.jsx("span",{className:"ds-select__feedback",children:y})]})]})});oo.propTypes={label:C.string.isRequired,className:C.string,disabled:C.bool,animated:C.bool,multiple:C.bool,name:C.string,testId:C.string,options:C.array.isRequired,placeholder:C.string,onChange:C.func,onChangeHandler:C.func,value:C.oneOfType([C.string,C.number]),size:C.oneOf($e.props.size.options),status:C.oneOf($e.props.status.options),tooltip:C.string,tooltipPosition:C.string,tooltipPlacement:C.string,feedback:C.string},oo.displayName="DsSelect";const io={Small:"small",Medium:"medium",Large:"large"},_c={Text:"text"},uo={None:"",Error:"error",Success:"success"},lo={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},Te={class:"ds-textarea",props:{testId:{default:"ds-textarea-test"},type:{options:Object.values(_c)},animated:{default:!0},disabled:{default:!1},size:{default:io.Medium,options:Object.values(io)},rows:{default:1},status:{default:uo.None,options:Object.values(uo)},resize:{default:lo.None,options:Object.values(lo)}}},co=re.forwardRef(({name:r,testId:e=Te.props.testId.default,animated:t=Te.props.animated.default,size:s=Te.props.size.default,label:n,placeholder:a,value:i,minLength:u,maxLength:c,tooltip:o,icon:l,status:p=Te.props.status.default,feedback:f,disabled:_=Te.props.disabled.default,required:g,className:v,resize:m=Te.props.resize.default,onChangeHandler:y,onBlurHandler:h,onKeyDownHandler:b,onFocusHandler:$,rows:S=Te.props.rows.default,cols:T,description:I,style:R},L)=>{const[N,A]=re.useState(!1),[F,B]=re.useState(0),[H,G]=re.useState(Math.random());re.useEffect(()=>{i==null&&G(Math.random())},[i]);const X=E=>{B(E.target.value.length),y&&y(E)},se=E=>{b&&b(E)},te=E=>{A(!1),h&&h(E)},ne=E=>{A(!0),$&&$(E)},O=()=>{const E=[`${Te.class}`];return s&&E.push(`${Te.class}--${s}`),t&&E.push(`${Te.class}--animated`),o&&E.push(`${Te.class}--with-icon`),p&&E.push(`${Te.class}--${p}`),v&&E.push(v),E.join(" ")},k=re.useMemo(()=>{const E=[`${Te.class}__label`];return(N||i)&&E.push(`${Te.class}__label--active`),E.join(" ")},[i,N]),x=()=>!t&&a?a:"",w=()=>p&&p==="error"?"info":"check_circle",d={resize:m,...R||{}};return j.jsxs("div",{className:O(),children:[I&&j.jsx("span",{className:"ds-textarea__description",children:I}),f&&j.jsxs("div",{className:"ds-textarea__feedback",children:[j.jsx(Ne,{image:w()}),f]}),j.jsx("textarea",{className:"ds-textarea__textarea",cols:T,"data-testid":e,defaultValue:i||"",disabled:_,id:r,maxLength:c,minLength:u,name:r,onBlur:te,onChange:X,onFocus:ne,onKeyDown:se,placeholder:x(),ref:L,required:g,rows:S,style:d}),j.jsx("label",{className:k,htmlFor:r,children:n}),c&&j.jsxs("span",{className:"ds-textarea__count",children:[F,"/",c]}),o&&j.jsx(Ar,{className:"ds-textarea__tooltip",placement:"end",text:o,children:j.jsx(Ne,{className:"ds-textarea__icon",image:l})})]},H)});co.propTypes={name:C.string,testId:C.string,type:C.oneOf(Te.props.type.options),animated:C.bool,size:C.oneOf(Te.props.size.options),label:C.string,placeholder:C.string,value:C.oneOfType([C.string]),tooltip:C.string,icon:C.string,status:C.oneOf(Te.props.status.options),feedback:C.string,minLength:C.number,maxLength:C.number,rows:C.number,cols:C.number,disabled:C.bool,required:C.bool,onChangeHandler:C.func,onBlur:C.func,onKeyDown:C.func,onFocus:C.func,resize:C.oneOf(Te.props.resize.options).isRequired,description:C.string,style:C.object},co.displayName="DsTextArea",C.node,C.bool,C.string,C.object,C.string;const bc={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},ho={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Ys={props:{gap:{options:Object.values(bc)},horizontalAlign:{options:Object.values(ho)},verticalAlign:{options:Object.values(ho)}}};C.oneOfType([C.arrayOf(C.node),C.node,C.func]),C.string,C.oneOf(Ys.props.gap.options),C.bool,C.bool,C.string,C.string,C.oneOf(Ys.props.horizontalAlign.options),C.oneOf(Ys.props.verticalAlign.options),C.bool,C.oneOfType([C.element,C.string]),C.oneOfType([C.element,C.string]),C.bool,C.array,C.number,C.string;const kc=[1,2,3,4],$c={Squared:"squared",Rounded:"rounded"},fo={props:{elevation:{options:kc},variant:{options:Object.values($c)}}};C.string,C.string,C.string,C.oneOf(fo.props.variant.options),C.oneOf(fo.props.elevation.options),C.bool,C.node,C.node,C.func,C.array,C.string,C.string,C.string,C.node.isRequired,C.string;const wc={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},Ec={props:{position:{options:Object.values(wc)}}};C.oneOf(Ec.props.position.options),C.bool,C.array,C.func,C.node,C.node,C.node,C.node;const Sc=({categories:r=[],onClick:e,title:t="Categorias"})=>{const s=i=>{e(i)},[n,a]=re.useState(null);return j.jsxs("div",{className:"category-cards","data-testid":"category-cards",children:[j.jsx(st,{vertical:"xxs"}),j.jsx(At,{type:"heading-5",className:"color__neutral--90",children:t}),j.jsx(st,{vertical:"xxxs"}),j.jsx("div",{className:"category-cards__grid",children:j.jsx(gt,{gap:"xxxs",children:r.map(i=>j.jsx(Ee,{flex:"0 0 32%",children:j.jsx("div",{className:`category-cards__card ${n===i.id?"category-cards__card--hovered":""}`,"data-testid":`category-card-${i.id}`,onClick:()=>s(i.id),onMouseEnter:()=>a(i.id),onMouseLeave:()=>a(null),role:"button",tabIndex:0,children:j.jsxs(Sr,{className:"category-card",testId:`category-card-item-${i.id}`,elevation:n===i.id?0:2,backgroundColor:n===i.id?"secondary-lightest":"neutral-00",children:[j.jsx(st,{vertical:"nano"}),j.jsxs(gt,{alignItems:"center",flexDirection:"column",gap:"nano",children:[j.jsx(Ee,{children:j.jsx(Ne,{color:"secondary-dark","data-testid":`category-card-icon-${i.id}`,image:i.attributes.icon,size:"xxxl"})}),j.jsx(Ee,{children:j.jsx(At,{className:"color__neutral--80","data-testid":`category-card-title-${i.id}`,type:"heading-6",children:i.attributes.name})})]}),j.jsx(st,{vertical:"nano"})]})})},i.id))})})]})};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xc(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),t}var Zs={exports:{}},po={},it={},lr={},cr={},ie={},dr={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class e{}r._CodeOrName=e,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(h){if(super(),!r.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class s extends e{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((b,$)=>`${b}${$}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((b,$)=>($ instanceof t&&(b[$.str]=(b[$.str]||0)+1),b),{})}}r._Code=s,r.nil=new s("");function n(y,...h){const b=[y[0]];let $=0;for(;$<h.length;)u(b,h[$]),b.push(y[++$]);return new s(b)}r._=n;const a=new s("+");function i(y,...h){const b=[_(y[0])];let $=0;for(;$<h.length;)b.push(a),u(b,h[$]),b.push(a,_(y[++$]));return c(b),new s(b)}r.str=i;function u(y,h){h instanceof s?y.push(...h._items):h instanceof t?y.push(h):y.push(p(h))}r.addCodeArg=u;function c(y){let h=1;for(;h<y.length-1;){if(y[h]===a){const b=o(y[h-1],y[h+1]);if(b!==void 0){y.splice(h-1,3,b);continue}y[h++]="+"}h++}}function o(y,h){if(h==='""')return y;if(y==='""')return h;if(typeof y=="string")return h instanceof t||y[y.length-1]!=='"'?void 0:typeof h!="string"?`${y.slice(0,-1)}${h}"`:h[0]==='"'?y.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(y instanceof t))return`"${y}${h.slice(1)}`}function l(y,h){return h.emptyStr()?y:y.emptyStr()?h:i`${y}${h}`}r.strConcat=l;function p(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:_(Array.isArray(y)?y.join(","):y)}function f(y){return new s(_(y))}r.stringify=f;function _(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=_;function g(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new s(`.${y}`):n`[${y}]`}r.getProperty=g;function v(y){if(typeof y=="string"&&r.IDENTIFIER.test(y))return new s(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}r.getEsmExportName=v;function m(y){return new s(y.toString())}r.regexpCode=m})(dr);var Js={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=dr;class t extends Error{constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}}var s;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(s||(r.UsedValueState=s={})),r.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class n{constructor({prefixes:o,parent:l}={}){this._names={},this._prefixes=o,this._parent=l}toName(o){return o instanceof e.Name?o:this.name(o)}name(o){return new e.Name(this._newName(o))}_newName(o){const l=this._names[o]||this._nameGroup(o);return`${o}${l.index++}`}_nameGroup(o){var l,p;if(!((p=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||p===void 0)&&p.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}}r.Scope=n;class a extends e.Name{constructor(o,l){super(l),this.prefix=o}setValue(o,{property:l,itemIndex:p}){this.value=o,this.scopePath=(0,e._)`.${new e.Name(l)}[${p}]`}}r.ValueScopeName=a;const i=(0,e._)`\n`;class u extends n{constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?i:e.nil}}get(){return this._scope}name(o){return new a(o,this._newName(o))}value(o,l){var p;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(o),{prefix:_}=f,g=(p=l.key)!==null&&p!==void 0?p:l.ref;let v=this._values[_];if(v){const h=v.get(g);if(h)return h}else v=this._values[_]=new Map;v.set(g,f);const m=this._scope[_]||(this._scope[_]=[]),y=m.length;return m[y]=l.ref,f.setValue(l,{property:_,itemIndex:y}),f}getValue(o,l){const p=this._values[o];if(p)return p.get(l)}scopeRefs(o,l=this._values){return this._reduceValues(l,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,e._)`${o}${p.scopePath}`})}scopeCode(o=this._values,l,p){return this._reduceValues(o,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},l,p)}_reduceValues(o,l,p={},f){let _=e.nil;for(const g in o){const v=o[g];if(!v)continue;const m=p[g]=p[g]||new Map;v.forEach(y=>{if(m.has(y))return;m.set(y,s.Started);let h=l(y);if(h){const b=this.opts.es5?r.varKinds.var:r.varKinds.const;_=(0,e._)`${_}${b} ${y} = ${h};${this.opts._n}`}else if(h=f==null?void 0:f(y))_=(0,e._)`${_}${h}${this.opts._n}`;else throw new t(y);m.set(y,s.Completed)})}return _}}r.ValueScope=u})(Js),function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const e=dr,t=Js;var s=dr;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return s.Name}});var n=Js;Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),r.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class a{optimizeNodes(){return this}optimizeNames(d,E){return this}}class i extends a{constructor(d,E,P){super(),this.varKind=d,this.name=E,this.rhs=P}render({es5:d,_n:E}){const P=d?t.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${P} ${this.name}${V};`+E}optimizeNames(d,E){if(d[this.name.str])return this.rhs&&(this.rhs=H(this.rhs,d,E)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(d,E,P){super(),this.lhs=d,this.rhs=E,this.sideEffects=P}render({_n:d}){return`${this.lhs} = ${this.rhs};`+d}optimizeNames(d,E){if(!(this.lhs instanceof e.Name&&!d[this.lhs.str]&&!this.sideEffects))return this.rhs=H(this.rhs,d,E),this}get names(){const d=this.lhs instanceof e.Name?{}:{...this.lhs.names};return B(d,this.rhs)}}class c extends u{constructor(d,E,P,V){super(d,P,V),this.op=E}render({_n:d}){return`${this.lhs} ${this.op}= ${this.rhs};`+d}}class o extends a{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`${this.label}:`+d}}class l extends a{constructor(d){super(),this.label=d,this.names={}}render({_n:d}){return`break${this.label?` ${this.label}`:""};`+d}}class p extends a{constructor(d){super(),this.error=d}render({_n:d}){return`throw ${this.error};`+d}get names(){return this.error.names}}class f extends a{constructor(d){super(),this.code=d}render({_n:d}){return`${this.code};`+d}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(d,E){return this.code=H(this.code,d,E),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends a{constructor(d=[]){super(),this.nodes=d}render(d){return this.nodes.reduce((E,P)=>E+P.render(d),"")}optimizeNodes(){const{nodes:d}=this;let E=d.length;for(;E--;){const P=d[E].optimizeNodes();Array.isArray(P)?d.splice(E,1,...P):P?d[E]=P:d.splice(E,1)}return d.length>0?this:void 0}optimizeNames(d,E){const{nodes:P}=this;let V=P.length;for(;V--;){const M=P[V];M.optimizeNames(d,E)||(G(d,M.names),P.splice(V,1))}return P.length>0?this:void 0}get names(){return this.nodes.reduce((d,E)=>F(d,E.names),{})}}class g extends _{render(d){return"{"+d._n+super.render(d)+"}"+d._n}}class v extends _{}class m extends g{}m.kind="else";class y extends g{constructor(d,E){super(E),this.condition=d}render(d){let E=`if(${this.condition})`+super.render(d);return this.else&&(E+="else "+this.else.render(d)),E}optimizeNodes(){super.optimizeNodes();const d=this.condition;if(d===!0)return this.nodes;let E=this.else;if(E){const P=E.optimizeNodes();E=this.else=Array.isArray(P)?new m(P):P}if(E)return d===!1?E instanceof y?E:E.nodes:this.nodes.length?this:new y(X(d),E instanceof y?[E]:E.nodes);if(!(d===!1||!this.nodes.length))return this}optimizeNames(d,E){var P;if(this.else=(P=this.else)===null||P===void 0?void 0:P.optimizeNames(d,E),!!(super.optimizeNames(d,E)||this.else))return this.condition=H(this.condition,d,E),this}get names(){const d=super.names;return B(d,this.condition),this.else&&F(d,this.else.names),d}}y.kind="if";class h extends g{}h.kind="for";class b extends h{constructor(d){super(),this.iteration=d}render(d){return`for(${this.iteration})`+super.render(d)}optimizeNames(d,E){if(super.optimizeNames(d,E))return this.iteration=H(this.iteration,d,E),this}get names(){return F(super.names,this.iteration.names)}}class $ extends h{constructor(d,E,P,V){super(),this.varKind=d,this.name=E,this.from=P,this.to=V}render(d){const E=d.es5?t.varKinds.var:this.varKind,{name:P,from:V,to:M}=this;return`for(${E} ${P}=${V}; ${P}<${M}; ${P}++)`+super.render(d)}get names(){const d=B(super.names,this.from);return B(d,this.to)}}class S extends h{constructor(d,E,P,V){super(),this.loop=d,this.varKind=E,this.name=P,this.iterable=V}render(d){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(d)}optimizeNames(d,E){if(super.optimizeNames(d,E))return this.iterable=H(this.iterable,d,E),this}get names(){return F(super.names,this.iterable.names)}}class T extends g{constructor(d,E,P){super(),this.name=d,this.args=E,this.async=P}render(d){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(d)}}T.kind="func";class I extends _{render(d){return"return "+super.render(d)}}I.kind="return";class R extends g{render(d){let E="try"+super.render(d);return this.catch&&(E+=this.catch.render(d)),this.finally&&(E+=this.finally.render(d)),E}optimizeNodes(){var d,E;return super.optimizeNodes(),(d=this.catch)===null||d===void 0||d.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(d,E){var P,V;return super.optimizeNames(d,E),(P=this.catch)===null||P===void 0||P.optimizeNames(d,E),(V=this.finally)===null||V===void 0||V.optimizeNames(d,E),this}get names(){const d=super.names;return this.catch&&F(d,this.catch.names),this.finally&&F(d,this.finally.names),d}}class L extends g{constructor(d){super(),this.error=d}render(d){return`catch(${this.error})`+super.render(d)}}L.kind="catch";class N extends g{render(d){return"finally"+super.render(d)}}N.kind="finally";class A{constructor(d,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
|
|
21
|
-
`:""},this._extScope=d,this._scope=new t.Scope({parent:d}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(d){return this._scope.name(d)}scopeName(d){return this._extScope.name(d)}scopeValue(d,E){const P=this._extScope.value(d,E);return(this._values[P.prefix]||(this._values[P.prefix]=new Set)).add(P),P}getScopeValue(d,E){return this._extScope.getValue(d,E)}scopeRefs(d){return this._extScope.scopeRefs(d,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(d,E,P,V){const M=this._scope.toName(E);return P!==void 0&&V&&(this._constants[M.str]=P),this._leafNode(new i(d,M,P)),M}const(d,E,P){return this._def(t.varKinds.const,d,E,P)}let(d,E,P){return this._def(t.varKinds.let,d,E,P)}var(d,E,P){return this._def(t.varKinds.var,d,E,P)}assign(d,E,P){return this._leafNode(new u(d,E,P))}add(d,E){return this._leafNode(new c(d,r.operators.ADD,E))}code(d){return typeof d=="function"?d():d!==e.nil&&this._leafNode(new f(d)),this}object(...d){const E=["{"];for(const[P,V]of d)E.length>1&&E.push(","),E.push(P),(P!==V||this.opts.es5)&&(E.push(":"),(0,e.addCodeArg)(E,V));return E.push("}"),new e._Code(E)}if(d,E,P){if(this._blockNode(new y(d)),E&&P)this.code(E).else().code(P).endIf();else if(E)this.code(E).endIf();else if(P)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(d){return this._elseNode(new y(d))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(y,m)}_for(d,E){return this._blockNode(d),E&&this.code(E).endFor(),this}for(d,E){return this._for(new b(d),E)}forRange(d,E,P,V,M=this.opts.es5?t.varKinds.var:t.varKinds.let){const z=this._scope.toName(d);return this._for(new $(M,z,E,P),()=>V(z))}forOf(d,E,P,V=t.varKinds.const){const M=this._scope.toName(d);if(this.opts.es5){const z=E instanceof e.Name?E:this.var("_arr",E);return this.forRange("_i",0,(0,e._)`${z}.length`,K=>{this.var(M,(0,e._)`${z}[${K}]`),P(M)})}return this._for(new S("of",V,M,E),()=>P(M))}forIn(d,E,P,V=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(d,(0,e._)`Object.keys(${E})`,P);const M=this._scope.toName(d);return this._for(new S("in",V,M,E),()=>P(M))}endFor(){return this._endBlockNode(h)}label(d){return this._leafNode(new o(d))}break(d){return this._leafNode(new l(d))}return(d){const E=new I;if(this._blockNode(E),this.code(d),E.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(I)}try(d,E,P){if(!E&&!P)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new R;if(this._blockNode(V),this.code(d),E){const M=this.name("e");this._currNode=V.catch=new L(M),E(M)}return P&&(this._currNode=V.finally=new N,this.code(P)),this._endBlockNode(L,N)}throw(d){return this._leafNode(new p(d))}block(d,E){return this._blockStarts.push(this._nodes.length),d&&this.code(d).endBlock(E),this}endBlock(d){const E=this._blockStarts.pop();if(E===void 0)throw new Error("CodeGen: not in self-balancing block");const P=this._nodes.length-E;if(P<0||d!==void 0&&P!==d)throw new Error(`CodeGen: wrong number of nodes: ${P} vs ${d} expected`);return this._nodes.length=E,this}func(d,E=e.nil,P,V){return this._blockNode(new T(d,E,P)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(d=1){for(;d-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(d){return this._currNode.nodes.push(d),this}_blockNode(d){this._currNode.nodes.push(d),this._nodes.push(d)}_endBlockNode(d,E){const P=this._currNode;if(P instanceof d||E&&P instanceof E)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${E?`${d.kind}/${E.kind}`:d.kind}"`)}_elseNode(d){const E=this._currNode;if(!(E instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=E.else=d,this}get _root(){return this._nodes[0]}get _currNode(){const d=this._nodes;return d[d.length-1]}set _currNode(d){const E=this._nodes;E[E.length-1]=d}}r.CodeGen=A;function F(w,d){for(const E in d)w[E]=(w[E]||0)+(d[E]||0);return w}function B(w,d){return d instanceof e._CodeOrName?F(w,d.names):w}function H(w,d,E){if(w instanceof e.Name)return P(w);if(!V(w))return w;return new e._Code(w._items.reduce((M,z)=>(z instanceof e.Name&&(z=P(z)),z instanceof e._Code?M.push(...z._items):M.push(z),M),[]));function P(M){const z=E[M.str];return z===void 0||d[M.str]!==1?M:(delete d[M.str],z)}function V(M){return M instanceof e._Code&&M._items.some(z=>z instanceof e.Name&&d[z.str]===1&&E[z.str]!==void 0)}}function G(w,d){for(const E in d)w[E]=(w[E]||0)-(d[E]||0)}function X(w){return typeof w=="boolean"||typeof w=="number"||w===null?!w:(0,e._)`!${x(w)}`}r.not=X;const se=k(r.operators.AND);function te(...w){return w.reduce(se)}r.and=te;const ne=k(r.operators.OR);function O(...w){return w.reduce(ne)}r.or=O;function k(w){return(d,E)=>d===e.nil?E:E===e.nil?d:(0,e._)`${x(d)} ${w} ${x(E)}`}function x(w){return w instanceof e.Name?w:(0,e._)`(${w})`}}(ie);var W={};Object.defineProperty(W,"__esModule",{value:!0}),W.checkStrictMode=W.getErrorPath=W.Type=W.useFunc=W.setEvaluated=W.evaluatedPropsToName=W.mergeEvaluated=W.eachItem=W.unescapeJsonPointer=W.escapeJsonPointer=W.escapeFragment=W.unescapeFragment=W.schemaRefOrVal=W.schemaHasRulesButRef=W.schemaHasRules=W.checkUnknownRules=W.alwaysValidSchema=W.toHash=void 0;const ve=ie,Cc=dr;function Ac(r){const e={};for(const t of r)e[t]=!0;return e}W.toHash=Ac;function Tc(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(mo(r,e),!go(e,r.self.RULES.all))}W.alwaysValidSchema=Tc;function mo(r,e=r.schema){const{opts:t,self:s}=r;if(!t.strictSchema||typeof e=="boolean")return;const n=s.RULES.keywords;for(const a in e)n[a]||ko(r,`unknown keyword: "${a}"`)}W.checkUnknownRules=mo;function go(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(e[t])return!0;return!1}W.schemaHasRules=go;function Pc(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(t!=="$ref"&&e.all[t])return!0;return!1}W.schemaHasRulesButRef=Pc;function Oc({topSchemaRef:r,schemaPath:e},t,s,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,ve._)`${t}`}return(0,ve._)`${r}${e}${(0,ve.getProperty)(s)}`}W.schemaRefOrVal=Oc;function Ic(r){return yo(decodeURIComponent(r))}W.unescapeFragment=Ic;function Nc(r){return encodeURIComponent(Qs(r))}W.escapeFragment=Nc;function Qs(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}W.escapeJsonPointer=Qs;function yo(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}W.unescapeJsonPointer=yo;function Dc(r,e){if(Array.isArray(r))for(const t of r)e(t);else e(r)}W.eachItem=Dc;function vo({mergeNames:r,mergeToName:e,mergeValues:t,resultToName:s}){return(n,a,i,u)=>{const c=i===void 0?a:i instanceof ve.Name?(a instanceof ve.Name?r(n,a,i):e(n,a,i),i):a instanceof ve.Name?(e(n,i,a),a):t(a,i);return u===ve.Name&&!(c instanceof ve.Name)?s(n,c):c}}W.mergeEvaluated={props:vo({mergeNames:(r,e,t)=>r.if((0,ve._)`${t} !== true && ${e} !== undefined`,()=>{r.if((0,ve._)`${e} === true`,()=>r.assign(t,!0),()=>r.assign(t,(0,ve._)`${t} || {}`).code((0,ve._)`Object.assign(${t}, ${e})`))}),mergeToName:(r,e,t)=>r.if((0,ve._)`${t} !== true`,()=>{e===!0?r.assign(t,!0):(r.assign(t,(0,ve._)`${t} || {}`),en(r,t,e))}),mergeValues:(r,e)=>r===!0?!0:{...r,...e},resultToName:_o}),items:vo({mergeNames:(r,e,t)=>r.if((0,ve._)`${t} !== true && ${e} !== undefined`,()=>r.assign(t,(0,ve._)`${e} === true ? true : ${t} > ${e} ? ${t} : ${e}`)),mergeToName:(r,e,t)=>r.if((0,ve._)`${t} !== true`,()=>r.assign(t,e===!0?!0:(0,ve._)`${t} > ${e} ? ${t} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function _o(r,e){if(e===!0)return r.var("props",!0);const t=r.var("props",(0,ve._)`{}`);return e!==void 0&&en(r,t,e),t}W.evaluatedPropsToName=_o;function en(r,e,t){Object.keys(t).forEach(s=>r.assign((0,ve._)`${e}${(0,ve.getProperty)(s)}`,!0))}W.setEvaluated=en;const bo={};function Mc(r,e){return r.scopeValue("func",{ref:e,code:bo[e.code]||(bo[e.code]=new Cc._Code(e.code))})}W.useFunc=Mc;var tn;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(tn||(W.Type=tn={}));function Fc(r,e,t){if(r instanceof ve.Name){const s=e===tn.Num;return t?s?(0,ve._)`"[" + ${r} + "]"`:(0,ve._)`"['" + ${r} + "']"`:s?(0,ve._)`"/" + ${r}`:(0,ve._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,ve.getProperty)(r).toString():"/"+Qs(r)}W.getErrorPath=Fc;function ko(r,e,t=r.opts.strictSchema){if(t){if(e=`strict mode: ${e}`,t===!0)throw new Error(e);r.self.logger.warn(e)}}W.checkStrictMode=ko;var yt={};Object.defineProperty(yt,"__esModule",{value:!0});const Be=ie,Rc={data:new Be.Name("data"),valCxt:new Be.Name("valCxt"),instancePath:new Be.Name("instancePath"),parentData:new Be.Name("parentData"),parentDataProperty:new Be.Name("parentDataProperty"),rootData:new Be.Name("rootData"),dynamicAnchors:new Be.Name("dynamicAnchors"),vErrors:new Be.Name("vErrors"),errors:new Be.Name("errors"),this:new Be.Name("this"),self:new Be.Name("self"),scope:new Be.Name("scope"),json:new Be.Name("json"),jsonPos:new Be.Name("jsonPos"),jsonLen:new Be.Name("jsonLen"),jsonPart:new Be.Name("jsonPart")};yt.default=Rc,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const e=ie,t=W,s=yt;r.keywordError={message:({keyword:m})=>(0,e.str)`must pass "${m}" keyword validation`},r.keyword$DataError={message:({keyword:m,schemaType:y})=>y?(0,e.str)`"${m}" keyword must be ${y} ($data)`:(0,e.str)`"${m}" keyword is invalid ($data)`};function n(m,y=r.keywordError,h,b){const{it:$}=m,{gen:S,compositeRule:T,allErrors:I}=$,R=p(m,y,h);b??(T||I)?c(S,R):o($,(0,e._)`[${R}]`)}r.reportError=n;function a(m,y=r.keywordError,h){const{it:b}=m,{gen:$,compositeRule:S,allErrors:T}=b,I=p(m,y,h);c($,I),S||T||o(b,s.default.vErrors)}r.reportExtraError=a;function i(m,y){m.assign(s.default.errors,y),m.if((0,e._)`${s.default.vErrors} !== null`,()=>m.if(y,()=>m.assign((0,e._)`${s.default.vErrors}.length`,y),()=>m.assign(s.default.vErrors,null)))}r.resetErrorsCount=i;function u({gen:m,keyword:y,schemaValue:h,data:b,errsCount:$,it:S}){if($===void 0)throw new Error("ajv implementation error");const T=m.name("err");m.forRange("i",$,s.default.errors,I=>{m.const(T,(0,e._)`${s.default.vErrors}[${I}]`),m.if((0,e._)`${T}.instancePath === undefined`,()=>m.assign((0,e._)`${T}.instancePath`,(0,e.strConcat)(s.default.instancePath,S.errorPath))),m.assign((0,e._)`${T}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${y}`),S.opts.verbose&&(m.assign((0,e._)`${T}.schema`,h),m.assign((0,e._)`${T}.data`,b))})}r.extendErrors=u;function c(m,y){const h=m.const("err",y);m.if((0,e._)`${s.default.vErrors} === null`,()=>m.assign(s.default.vErrors,(0,e._)`[${h}]`),(0,e._)`${s.default.vErrors}.push(${h})`),m.code((0,e._)`${s.default.errors}++`)}function o(m,y){const{gen:h,validateName:b,schemaEnv:$}=m;$.$async?h.throw((0,e._)`new ${m.ValidationError}(${y})`):(h.assign((0,e._)`${b}.errors`,y),h.return(!1))}const l={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function p(m,y,h){const{createErrors:b}=m.it;return b===!1?(0,e._)`{}`:f(m,y,h)}function f(m,y,h={}){const{gen:b,it:$}=m,S=[_($,h),g(m,h)];return v(m,y,S),b.object(...S)}function _({errorPath:m},{instancePath:y}){const h=y?(0,e.str)`${m}${(0,t.getErrorPath)(y,t.Type.Str)}`:m;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,h)]}function g({keyword:m,it:{errSchemaPath:y}},{schemaPath:h,parentSchema:b}){let $=b?y:(0,e.str)`${y}/${m}`;return h&&($=(0,e.str)`${$}${(0,t.getErrorPath)(h,t.Type.Str)}`),[l.schemaPath,$]}function v(m,{params:y,message:h},b){const{keyword:$,data:S,schemaValue:T,it:I}=m,{opts:R,propertyName:L,topSchemaRef:N,schemaPath:A}=I;b.push([l.keyword,$],[l.params,typeof y=="function"?y(m):y||(0,e._)`{}`]),R.messages&&b.push([l.message,typeof h=="function"?h(m):h]),R.verbose&&b.push([l.schema,T],[l.parentSchema,(0,e._)`${N}${A}`],[s.default.data,S]),L&&b.push([l.propertyName,L])}}(cr),Object.defineProperty(lr,"__esModule",{value:!0}),lr.boolOrEmptySchema=lr.topBoolOrEmptySchema=void 0;const Bc=cr,jc=ie,Lc=yt,Vc={message:"boolean schema is false"};function zc(r){const{gen:e,schema:t,validateName:s}=r;t===!1?$o(r,!1):typeof t=="object"&&t.$async===!0?e.return(Lc.default.data):(e.assign((0,jc._)`${s}.errors`,null),e.return(!0))}lr.topBoolOrEmptySchema=zc;function Hc(r,e){const{gen:t,schema:s}=r;s===!1?(t.var(e,!1),$o(r)):t.var(e,!0)}lr.boolOrEmptySchema=Hc;function $o(r,e){const{gen:t,data:s}=r,n={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,Bc.reportError)(n,Vc,void 0,e)}var xe={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.getRules=Zt.isJSONType=void 0;const Uc=["string","number","integer","boolean","null","object","array"],qc=new Set(Uc);function Kc(r){return typeof r=="string"&&qc.has(r)}Zt.isJSONType=Kc;function Gc(){const r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}Zt.getRules=Gc;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.shouldUseRule=Ot.shouldUseGroup=Ot.schemaHasRulesForType=void 0;function Wc({schema:r,self:e},t){const s=e.RULES.types[t];return s&&s!==!0&&wo(r,s)}Ot.schemaHasRulesForType=Wc;function wo(r,e){return e.rules.some(t=>Eo(r,t))}Ot.shouldUseGroup=wo;function Eo(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(s=>r[s]!==void 0))}Ot.shouldUseRule=Eo,Object.defineProperty(xe,"__esModule",{value:!0}),xe.reportTypeError=xe.checkDataTypes=xe.checkDataType=xe.coerceAndCheckDataType=xe.getJSONTypes=xe.getSchemaTypes=xe.DataType=void 0;const Xc=Zt,Yc=Ot,Zc=cr,ue=ie,So=W;var hr;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(hr||(xe.DataType=hr={}));function Jc(r){const e=xo(r.type);if(e.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&e.push("null")}return e}xe.getSchemaTypes=Jc;function xo(r){const e=Array.isArray(r)?r:r?[r]:[];if(e.every(Xc.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}xe.getJSONTypes=xo;function Qc(r,e){const{gen:t,data:s,opts:n}=r,a=ed(e,n.coerceTypes),i=e.length>0&&!(a.length===0&&e.length===1&&(0,Yc.schemaHasRulesForType)(r,e[0]));if(i){const u=sn(e,s,n.strictNumbers,hr.Wrong);t.if(u,()=>{a.length?td(r,e,a):nn(r)})}return i}xe.coerceAndCheckDataType=Qc;const Co=new Set(["string","number","integer","boolean","null"]);function ed(r,e){return e?r.filter(t=>Co.has(t)||e==="array"&&t==="array"):[]}function td(r,e,t){const{gen:s,data:n,opts:a}=r,i=s.let("dataType",(0,ue._)`typeof ${n}`),u=s.let("coerced",(0,ue._)`undefined`);a.coerceTypes==="array"&&s.if((0,ue._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,ue._)`${n}[0]`).assign(i,(0,ue._)`typeof ${n}`).if(sn(e,n,a.strictNumbers),()=>s.assign(u,n))),s.if((0,ue._)`${u} !== undefined`);for(const o of t)(Co.has(o)||o==="array"&&a.coerceTypes==="array")&&c(o);s.else(),nn(r),s.endIf(),s.if((0,ue._)`${u} !== undefined`,()=>{s.assign(n,u),rd(r,u)});function c(o){switch(o){case"string":s.elseIf((0,ue._)`${i} == "number" || ${i} == "boolean"`).assign(u,(0,ue._)`"" + ${n}`).elseIf((0,ue._)`${n} === null`).assign(u,(0,ue._)`""`);return;case"number":s.elseIf((0,ue._)`${i} == "boolean" || ${n} === null
|
|
22
|
-
|| (${i} == "string" && ${n} && ${n} == +${n})`).assign(
|
|
23
|
-
|| (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(
|
|
24
|
-
|| ${i} === "boolean" || ${n} === null`).assign(u,(0,ue._)`[${n}]`)}}}function rd({gen:r,parentData:e,parentDataProperty:t},s){r.if((0,ue._)`${e} !== undefined`,()=>r.assign((0,ue._)`${e}[${t}]`,s))}function rn(r,e,t,s=hr.Correct){const n=s===hr.Correct?ue.operators.EQ:ue.operators.NEQ;let a;switch(r){case"null":return(0,ue._)`${e} ${n} null`;case"array":a=(0,ue._)`Array.isArray(${e})`;break;case"object":a=(0,ue._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=i((0,ue._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=i();break;default:return(0,ue._)`typeof ${e} ${n} ${r}`}return s===hr.Correct?a:(0,ue.not)(a);function i(u=ue.nil){return(0,ue.and)((0,ue._)`typeof ${e} == "number"`,u,t?(0,ue._)`isFinite(${e})`:ue.nil)}}xe.checkDataType=rn;function sn(r,e,t,s){if(r.length===1)return rn(r[0],e,t,s);let n;const a=(0,So.toHash)(r);if(a.array&&a.object){const i=(0,ue._)`typeof ${e} != "object"`;n=a.null?i:(0,ue._)`!${e} || ${i}`,delete a.null,delete a.array,delete a.object}else n=ue.nil;a.number&&delete a.integer;for(const i in a)n=(0,ue.and)(n,rn(i,e,t,s));return n}xe.checkDataTypes=sn;const sd={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,ue._)`{type: ${r}}`:(0,ue._)`{type: ${e}}`};function nn(r){const e=nd(r);(0,Zc.reportError)(e,sd)}xe.reportTypeError=nn;function nd(r){const{gen:e,data:t,schema:s}=r,n=(0,So.schemaRefOrVal)(r,s,"type");return{gen:e,keyword:"type",data:t,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:r}}var as={};Object.defineProperty(as,"__esModule",{value:!0}),as.assignDefaults=void 0;const fr=ie,ad=W;function od(r,e){const{properties:t,items:s}=r.schema;if(e==="object"&&t)for(const n in t)Ao(r,n,t[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>Ao(r,a,n.default))}as.assignDefaults=od;function Ao(r,e,t){const{gen:s,compositeRule:n,data:a,opts:i}=r;if(t===void 0)return;const u=(0,fr._)`${a}${(0,fr.getProperty)(e)}`;if(n){(0,ad.checkStrictMode)(r,`default is ignored for: ${u}`);return}let c=(0,fr._)`${u} === undefined`;i.useDefaults==="empty"&&(c=(0,fr._)`${c} || ${u} === null || ${u} === ""`),s.if(c,(0,fr._)`${u} = ${(0,fr.stringify)(t)}`)}var wt={},de={};Object.defineProperty(de,"__esModule",{value:!0}),de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;const _e=ie,an=W,Lt=yt,id=W;function ud(r,e){const{gen:t,data:s,it:n}=r;t.if(un(t,s,e,n.opts.ownProperties),()=>{r.setParams({missingProperty:(0,_e._)`${e}`},!0),r.error()})}de.checkReportMissingProp=ud;function ld({gen:r,data:e,it:{opts:t}},s,n){return(0,_e.or)(...s.map(a=>(0,_e.and)(un(r,e,a,t.ownProperties),(0,_e._)`${n} = ${a}`)))}de.checkMissingProp=ld;function cd(r,e){r.setParams({missingProperty:e},!0),r.error()}de.reportMissingProp=cd;function To(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,_e._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=To;function on(r,e,t){return(0,_e._)`${To(r)}.call(${e}, ${t})`}de.isOwnProperty=on;function dd(r,e,t,s){const n=(0,_e._)`${e}${(0,_e.getProperty)(t)} !== undefined`;return s?(0,_e._)`${n} && ${on(r,e,t)}`:n}de.propertyInData=dd;function un(r,e,t,s){const n=(0,_e._)`${e}${(0,_e.getProperty)(t)} === undefined`;return s?(0,_e.or)(n,(0,_e.not)(on(r,e,t))):n}de.noPropertyInData=un;function Po(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=Po;function hd(r,e){return Po(e).filter(t=>!(0,an.alwaysValidSchema)(r,e[t]))}de.schemaProperties=hd;function fd({schemaCode:r,data:e,it:{gen:t,topSchemaRef:s,schemaPath:n,errorPath:a},it:i},u,c,o){const l=o?(0,_e._)`${r}, ${e}, ${s}${n}`:e,p=[[Lt.default.instancePath,(0,_e.strConcat)(Lt.default.instancePath,a)],[Lt.default.parentData,i.parentData],[Lt.default.parentDataProperty,i.parentDataProperty],[Lt.default.rootData,Lt.default.rootData]];i.opts.dynamicRef&&p.push([Lt.default.dynamicAnchors,Lt.default.dynamicAnchors]);const f=(0,_e._)`${l}, ${t.object(...p)}`;return c!==_e.nil?(0,_e._)`${u}.call(${c}, ${f})`:(0,_e._)`${u}(${f})`}de.callValidateCode=fd;const pd=(0,_e._)`new RegExp`;function md({gen:r,it:{opts:e}},t){const s=e.unicodeRegExp?"u":"",{regExp:n}=e.code,a=n(t,s);return r.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,_e._)`${n.code==="new RegExp"?pd:(0,id.useFunc)(r,n)}(${t}, ${s})`})}de.usePattern=md;function gd(r){const{gen:e,data:t,keyword:s,it:n}=r,a=e.name("valid");if(n.allErrors){const u=e.let("valid",!0);return i(()=>e.assign(u,!1)),u}return e.var(a,!0),i(()=>e.break()),a;function i(u){const c=e.const("len",(0,_e._)`${t}.length`);e.forRange("i",0,c,o=>{r.subschema({keyword:s,dataProp:o,dataPropType:an.Type.Num},a),e.if((0,_e.not)(a),u)})}}de.validateArray=gd;function yd(r){const{gen:e,schema:t,keyword:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(u=>(0,an.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;const a=e.let("valid",!1),i=e.name("_valid");e.block(()=>t.forEach((u,c)=>{const o=r.subschema({keyword:s,schemaProp:c,compositeRule:!0},i);e.assign(a,(0,_e._)`${a} || ${i}`),r.mergeValidEvaluated(o,i)||e.if((0,_e.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))}de.validateUnion=yd,Object.defineProperty(wt,"__esModule",{value:!0}),wt.validateKeywordUsage=wt.validSchemaType=wt.funcKeywordCode=wt.macroKeywordCode=void 0;const ze=ie,Jt=yt,vd=de,_d=cr;function bd(r,e){const{gen:t,keyword:s,schema:n,parentSchema:a,it:i}=r,u=e.macro.call(i.self,n,a,i),c=Io(t,s,u);i.opts.validateSchema!==!1&&i.self.validateSchema(u,!0);const o=t.name("valid");r.subschema({schema:u,schemaPath:ze.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:c,compositeRule:!0},o),r.pass(o,()=>r.error(!0))}wt.macroKeywordCode=bd;function kd(r,e){var t;const{gen:s,keyword:n,schema:a,parentSchema:i,$data:u,it:c}=r;wd(c,e);const o=!u&&e.compile?e.compile.call(c.self,a,i,c):e.validate,l=Io(s,n,o),p=s.let("valid");r.block$data(p,f),r.ok((t=e.valid)!==null&&t!==void 0?t:p);function f(){if(e.errors===!1)v(),e.modifying&&Oo(r),m(()=>r.error());else{const y=e.async?_():g();e.modifying&&Oo(r),m(()=>$d(r,y))}}function _(){const y=s.let("ruleErrs",null);return s.try(()=>v((0,ze._)`await `),h=>s.assign(p,!1).if((0,ze._)`${h} instanceof ${c.ValidationError}`,()=>s.assign(y,(0,ze._)`${h}.errors`),()=>s.throw(h))),y}function g(){const y=(0,ze._)`${l}.errors`;return s.assign(y,null),v(ze.nil),y}function v(y=e.async?(0,ze._)`await `:ze.nil){const h=c.opts.passContext?Jt.default.this:Jt.default.self,b=!("compile"in e&&!u||e.schema===!1);s.assign(p,(0,ze._)`${y}${(0,vd.callValidateCode)(r,l,h,b)}`,e.modifying)}function m(y){var h;s.if((0,ze.not)((h=e.valid)!==null&&h!==void 0?h:p),y)}}wt.funcKeywordCode=kd;function Oo(r){const{gen:e,data:t,it:s}=r;e.if(s.parentData,()=>e.assign(t,(0,ze._)`${s.parentData}[${s.parentDataProperty}]`))}function $d(r,e){const{gen:t}=r;t.if((0,ze._)`Array.isArray(${e})`,()=>{t.assign(Jt.default.vErrors,(0,ze._)`${Jt.default.vErrors} === null ? ${e} : ${Jt.default.vErrors}.concat(${e})`).assign(Jt.default.errors,(0,ze._)`${Jt.default.vErrors}.length`),(0,_d.extendErrors)(r)},()=>r.error())}function wd({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function Io(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,ze.stringify)(t)})}function Ed(r,e,t=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(r):s==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==s||t&&typeof r>"u")}wt.validSchemaType=Ed;function Sd({schema:r,opts:e,self:t,errSchemaPath:s},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a)throw new Error("ajv implementation error");const i=n.dependencies;if(i!=null&&i.some(u=>!Object.prototype.hasOwnProperty.call(r,u)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(r[a])){const u=`keyword "${a}" value is invalid at path "${s}": `+t.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(u);else throw new Error(u)}}wt.validateKeywordUsage=Sd;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;const Et=ie,No=W;function xd(r,{keyword:e,schemaProp:t,schema:s,schemaPath:n,errSchemaPath:a,topSchemaRef:i}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const u=r.schema[e];return t===void 0?{schema:u,schemaPath:(0,Et._)`${r.schemaPath}${(0,Et.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:u[t],schemaPath:(0,Et._)`${r.schemaPath}${(0,Et.getProperty)(e)}${(0,Et.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,No.escapeFragment)(t)}`}}if(s!==void 0){if(n===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:n,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Vt.getSubschema=xd;function Cd(r,e,{dataProp:t,dataPropType:s,data:n,dataTypes:a,propertyName:i}){if(n!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=e;if(t!==void 0){const{errorPath:o,dataPathArr:l,opts:p}=e,f=u.let("data",(0,Et._)`${e.data}${(0,Et.getProperty)(t)}`,!0);c(f),r.errorPath=(0,Et.str)`${o}${(0,No.getErrorPath)(t,s,p.jsPropertySyntax)}`,r.parentDataProperty=(0,Et._)`${t}`,r.dataPathArr=[...l,r.parentDataProperty]}if(n!==void 0){const o=n instanceof Et.Name?n:u.let("data",n,!0);c(o),i!==void 0&&(r.propertyName=i)}a&&(r.dataTypes=a);function c(o){r.data=o,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,o]}}Vt.extendSubschemaData=Cd;function Ad(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:s,createErrors:n,allErrors:a}){s!==void 0&&(r.compositeRule=s),n!==void 0&&(r.createErrors=n),a!==void 0&&(r.allErrors=a),r.jtdDiscriminator=e,r.jtdMetadata=t}Vt.extendSubschemaMode=Ad;var De={},Do=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var s,n,a;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),s=a.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=s;n--!==0;){var i=a[n];if(!r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t},Mo={exports:{}},zt=Mo.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var s=typeof t=="function"?t:t.pre||function(){},n=t.post||function(){};os(e,s,n,r,"",r)};zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},zt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function os(r,e,t,s,n,a,i,u,c,o){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,i,u,c,o);for(var l in s){var p=s[l];if(Array.isArray(p)){if(l in zt.arrayKeywords)for(var f=0;f<p.length;f++)os(r,e,t,p[f],n+"/"+l+"/"+f,a,n,l,s,f)}else if(l in zt.propsKeywords){if(p&&typeof p=="object")for(var _ in p)os(r,e,t,p[_],n+"/"+l+"/"+Td(_),a,n,l,s,_)}else(l in zt.keywords||r.allKeys&&!(l in zt.skipKeywords))&&os(r,e,t,p,n+"/"+l,a,n,l,s)}t(s,n,a,i,u,c,o)}}function Td(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var Pd=Mo.exports;Object.defineProperty(De,"__esModule",{value:!0}),De.getSchemaRefs=De.resolveUrl=De.normalizeId=De._getFullPath=De.getFullPath=De.inlineRef=void 0;const Od=W,Id=Do,Nd=Pd,Dd=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Md(r,e=!0){return typeof r=="boolean"?!0:e===!0?!ln(r):e?Fo(r)<=e:!1}De.inlineRef=Md;const Fd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ln(r){for(const e in r){if(Fd.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(ln)||typeof t=="object"&&ln(t))return!0}return!1}function Fo(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!Dd.has(t)&&(typeof r[t]=="object"&&(0,Od.eachItem)(r[t],s=>e+=Fo(s)),e===1/0)))return 1/0;return e}function Ro(r,e="",t){t!==!1&&(e=pr(e));const s=r.parse(e);return Bo(r,s)}De.getFullPath=Ro;function Bo(r,e){return r.serialize(e).split("#")[0]+"#"}De._getFullPath=Bo;const Rd=/#\/?$/;function pr(r){return r?r.replace(Rd,""):""}De.normalizeId=pr;function Bd(r,e,t){return t=pr(t),r.resolve(e,t)}De.resolveUrl=Bd;const jd=/^[a-z_][-a-z0-9._]*$/i;function Ld(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:s}=this.opts,n=pr(r[t]||e),a={"":n},i=Ro(s,n,!1),u={},c=new Set;return Nd(r,{allKeys:!0},(p,f,_,g)=>{if(g===void 0)return;const v=i+f;let m=a[g];typeof p[t]=="string"&&(m=y.call(this,p[t])),h.call(this,p.$anchor),h.call(this,p.$dynamicAnchor),a[f]=m;function y(b){const $=this.opts.uriResolver.resolve;if(b=pr(m?$(m,b):b),c.has(b))throw l(b);c.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?o(p,S.schema,b):b!==pr(v)&&(b[0]==="#"?(o(p,u[b],b),u[b]=p):this.refs[b]=v),b}function h(b){if(typeof b=="string"){if(!jd.test(b))throw new Error(`invalid anchor "${b}"`);y.call(this,`#${b}`)}}}),u;function o(p,f,_){if(f!==void 0&&!Id(p,f))throw l(_)}function l(p){return new Error(`reference "${p}" resolves to more than one schema`)}}De.getSchemaRefs=Ld,Object.defineProperty(it,"__esModule",{value:!0}),it.getData=it.KeywordCxt=it.validateFunctionCode=void 0;const jo=lr,Lo=xe,cn=Ot,is=xe,Vd=as,Pr=wt,dn=Vt,Z=ie,oe=yt,zd=De,It=W,Or=cr;function Hd(r){if(Uo(r)&&(qo(r),Ho(r))){Kd(r);return}Vo(r,()=>(0,jo.topBoolOrEmptySchema)(r))}it.validateFunctionCode=Hd;function Vo({gen:r,validateName:e,schema:t,schemaEnv:s,opts:n},a){n.code.es5?r.func(e,(0,Z._)`${oe.default.data}, ${oe.default.valCxt}`,s.$async,()=>{r.code((0,Z._)`"use strict"; ${zo(t,n)}`),qd(r,n),r.code(a)}):r.func(e,(0,Z._)`${oe.default.data}, ${Ud(n)}`,s.$async,()=>r.code(zo(t,n)).code(a))}function Ud(r){return(0,Z._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${r.dynamicRef?(0,Z._)`, ${oe.default.dynamicAnchors}={}`:Z.nil}}={}`}function qd(r,e){r.if(oe.default.valCxt,()=>{r.var(oe.default.instancePath,(0,Z._)`${oe.default.valCxt}.${oe.default.instancePath}`),r.var(oe.default.parentData,(0,Z._)`${oe.default.valCxt}.${oe.default.parentData}`),r.var(oe.default.parentDataProperty,(0,Z._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),r.var(oe.default.rootData,(0,Z._)`${oe.default.valCxt}.${oe.default.rootData}`),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,Z._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{r.var(oe.default.instancePath,(0,Z._)`""`),r.var(oe.default.parentData,(0,Z._)`undefined`),r.var(oe.default.parentDataProperty,(0,Z._)`undefined`),r.var(oe.default.rootData,oe.default.data),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,Z._)`{}`)})}function Kd(r){const{schema:e,opts:t,gen:s}=r;Vo(r,()=>{t.$comment&&e.$comment&&Go(r),Zd(r),s.let(oe.default.vErrors,null),s.let(oe.default.errors,0),t.unevaluated&&Gd(r),Ko(r),eh(r)})}function Gd(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,Z._)`${t}.evaluated`),e.if((0,Z._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,Z._)`${r.evaluated}.props`,(0,Z._)`undefined`)),e.if((0,Z._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,Z._)`${r.evaluated}.items`,(0,Z._)`undefined`))}function zo(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,Z._)`/*# sourceURL=${t} */`:Z.nil}function Wd(r,e){if(Uo(r)&&(qo(r),Ho(r))){Xd(r,e);return}(0,jo.boolOrEmptySchema)(r,e)}function Ho({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function Uo(r){return typeof r.schema!="boolean"}function Xd(r,e){const{schema:t,gen:s,opts:n}=r;n.$comment&&t.$comment&&Go(r),Jd(r),Qd(r);const a=s.const("_errs",oe.default.errors);Ko(r,a),s.var(e,(0,Z._)`${a} === ${oe.default.errors}`)}function qo(r){(0,It.checkUnknownRules)(r),Yd(r)}function Ko(r,e){if(r.opts.jtd)return Wo(r,[],!1,e);const t=(0,Lo.getSchemaTypes)(r.schema),s=(0,Lo.coerceAndCheckDataType)(r,t);Wo(r,t,!s,e)}function Yd(r){const{schema:e,errSchemaPath:t,opts:s,self:n}=r;e.$ref&&s.ignoreKeywordsWithRef&&(0,It.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function Zd(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,It.checkStrictMode)(r,"default is ignored in the schema root")}function Jd(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,zd.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function Qd(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Go({gen:r,schemaEnv:e,schema:t,errSchemaPath:s,opts:n}){const a=t.$comment;if(n.$comment===!0)r.code((0,Z._)`${oe.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){const i=(0,Z.str)`${s}/$comment`,u=r.scopeValue("root",{ref:e.root});r.code((0,Z._)`${oe.default.self}.opts.$comment(${a}, ${i}, ${u}.schema)`)}}function eh(r){const{gen:e,schemaEnv:t,validateName:s,ValidationError:n,opts:a}=r;t.$async?e.if((0,Z._)`${oe.default.errors} === 0`,()=>e.return(oe.default.data),()=>e.throw((0,Z._)`new ${n}(${oe.default.vErrors})`)):(e.assign((0,Z._)`${s}.errors`,oe.default.vErrors),a.unevaluated&&th(r),e.return((0,Z._)`${oe.default.errors} === 0`))}function th({gen:r,evaluated:e,props:t,items:s}){t instanceof Z.Name&&r.assign((0,Z._)`${e}.props`,t),s instanceof Z.Name&&r.assign((0,Z._)`${e}.items`,s)}function Wo(r,e,t,s){const{gen:n,schema:a,data:i,allErrors:u,opts:c,self:o}=r,{RULES:l}=o;if(a.$ref&&(c.ignoreKeywordsWithRef||!(0,It.schemaHasRulesButRef)(a,l))){n.block(()=>Jo(r,"$ref",l.all.$ref.definition));return}c.jtd||rh(r,e),n.block(()=>{for(const f of l.rules)p(f);p(l.post)});function p(f){(0,cn.shouldUseGroup)(a,f)&&(f.type?(n.if((0,is.checkDataType)(f.type,i,c.strictNumbers)),Xo(r,f),e.length===1&&e[0]===f.type&&t&&(n.else(),(0,is.reportTypeError)(r)),n.endIf()):Xo(r,f),u||n.if((0,Z._)`${oe.default.errors} === ${s||0}`))}}function Xo(r,e){const{gen:t,schema:s,opts:{useDefaults:n}}=r;n&&(0,Vd.assignDefaults)(r,e.type),t.block(()=>{for(const a of e.rules)(0,cn.shouldUseRule)(s,a)&&Jo(r,a.keyword,a.definition,e.type)})}function rh(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(sh(r,e),r.opts.allowUnionTypes||nh(r,e),ah(r,r.dataTypes))}function sh(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{Yo(r.dataTypes,t)||hn(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),ih(r,e)}}function nh(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&hn(r,"use allowUnionTypes to allow union type keyword")}function ah(r,e){const t=r.self.RULES.all;for(const s in t){const n=t[s];if(typeof n=="object"&&(0,cn.shouldUseRule)(r.schema,n)){const{type:a}=n.definition;a.length&&!a.some(i=>oh(e,i))&&hn(r,`missing type "${a.join(",")}" for keyword "${s}"`)}}}function oh(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function Yo(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function ih(r,e){const t=[];for(const s of r.dataTypes)Yo(e,s)?t.push(s):e.includes("integer")&&s==="number"&&t.push("integer");r.dataTypes=t}function hn(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,It.checkStrictMode)(r,e,r.opts.strictTypes)}class Zo{constructor(e,t,s){if((0,Pr.validateKeywordUsage)(e,t,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,It.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",Qo(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Pr.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",oe.default.errors))}result(e,t,s){this.failResult((0,Z.not)(e),t,s)}failResult(e,t,s){this.gen.if(e),s?s():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,Z.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,Z._)`${t} !== undefined && (${(0,Z.or)(this.invalid$data(),e)})`)}error(e,t,s){if(t){this.setParams(t),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,t){(e?Or.reportExtraError:Or.reportError)(this,this.def.error,t)}$dataError(){(0,Or.reportError)(this,this.def.$dataError||Or.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Or.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,s=Z.nil){this.gen.block(()=>{this.check$data(e,s),t()})}check$data(e=Z.nil,t=Z.nil){if(!this.$data)return;const{gen:s,schemaCode:n,schemaType:a,def:i}=this;s.if((0,Z.or)((0,Z._)`${n} === undefined`,t)),e!==Z.nil&&s.assign(e,!0),(a.length||i.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==Z.nil&&s.assign(e,!1)),s.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:s,def:n,it:a}=this;return(0,Z.or)(i(),u());function i(){if(s.length){if(!(t instanceof Z.Name))throw new Error("ajv implementation error");const c=Array.isArray(s)?s:[s];return(0,Z._)`${(0,is.checkDataTypes)(c,t,a.opts.strictNumbers,is.DataType.Wrong)}`}return Z.nil}function u(){if(n.validateSchema){const c=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,Z._)`!${c}(${t})`}return Z.nil}}subschema(e,t){const s=(0,dn.getSubschema)(this.it,e);(0,dn.extendSubschemaData)(s,this.it,e),(0,dn.extendSubschemaMode)(s,e);const n={...this.it,...s,items:void 0,props:void 0};return Wd(n,t),n}mergeEvaluated(e,t){const{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=It.mergeEvaluated.props(n,e.props,s.props,t)),s.items!==!0&&e.items!==void 0&&(s.items=It.mergeEvaluated.items(n,e.items,s.items,t)))}mergeValidEvaluated(e,t){const{it:s,gen:n}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return n.if(t,()=>this.mergeEvaluated(e,Z.Name)),!0}}it.KeywordCxt=Zo;function Jo(r,e,t,s){const n=new Zo(r,t,e);"code"in t?t.code(n,s):n.$data&&t.validate?(0,Pr.funcKeywordCode)(n,t):"macro"in t?(0,Pr.macroKeywordCode)(n,t):(t.compile||t.validate)&&(0,Pr.funcKeywordCode)(n,t)}const uh=/^\/(?:[^~]|~0|~1)*$/,lh=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Qo(r,{dataLevel:e,dataNames:t,dataPathArr:s}){let n,a;if(r==="")return oe.default.rootData;if(r[0]==="/"){if(!uh.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);n=r,a=oe.default.rootData}else{const o=lh.exec(r);if(!o)throw new Error(`Invalid JSON-pointer: ${r}`);const l=+o[1];if(n=o[2],n==="#"){if(l>=e)throw new Error(c("property/index",l));return s[e-l]}if(l>e)throw new Error(c("data",l));if(a=t[e-l],!n)return a}let i=a;const u=n.split("/");for(const o of u)o&&(a=(0,Z._)`${a}${(0,Z.getProperty)((0,It.unescapeJsonPointer)(o))}`,i=(0,Z._)`${i} && ${a}`);return i;function c(o,l){return`Cannot access ${o} ${l} levels up, current level is ${e}`}}it.getData=Qo;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});class ch extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Ir.default=ch;var mr={};Object.defineProperty(mr,"__esModule",{value:!0});const fn=De;class dh extends Error{constructor(e,t,s,n){super(n||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,fn.resolveUrl)(e,t,s),this.missingSchema=(0,fn.normalizeId)((0,fn.getFullPath)(e,this.missingRef))}}mr.default=dh;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;const vt=ie,hh=Ir,Qt=yt,_t=De,ei=W,fh=it;class us{constructor(e){var t;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,_t.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}}Ze.SchemaEnv=us;function pn(r){const e=ti.call(this,r);if(e)return e;const t=(0,_t.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,i=new vt.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a});let u;r.$async&&(u=i.scopeValue("Error",{ref:hh.default,code:(0,vt._)`require("ajv/dist/runtime/validation_error").default`}));const c=i.scopeName("validate");r.validateName=c;const o={gen:i,allErrors:this.opts.allErrors,data:Qt.default.data,parentData:Qt.default.parentData,parentDataProperty:Qt.default.parentDataProperty,dataNames:[Qt.default.data],dataPathArr:[vt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,vt.stringify)(r.schema)}:{ref:r.schema}),validateName:c,ValidationError:u,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:vt.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,vt._)`""`,opts:this.opts,self:this};let l;try{this._compilations.add(r),(0,fh.validateFunctionCode)(o),i.optimize(this.opts.code.optimize);const p=i.toString();l=`${i.scopeRefs(Qt.default.scope)}return ${p}`,this.opts.code.process&&(l=this.opts.code.process(l,r));const f=new Function(`${Qt.default.self}`,`${Qt.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=r.schema,f.schemaEnv=r,r.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){const{props:_,items:g}=o;f.evaluated={props:_ instanceof vt.Name?void 0:_,items:g instanceof vt.Name?void 0:g,dynamicProps:_ instanceof vt.Name,dynamicItems:g instanceof vt.Name},f.source&&(f.source.evaluated=(0,vt.stringify)(f.evaluated))}return r.validate=f,r}catch(p){throw delete r.validate,delete r.validateName,l&&this.logger.error("Error compiling schema, function code:",l),p}finally{this._compilations.delete(r)}}Ze.compileSchema=pn;function ph(r,e,t){var s;t=(0,_t.resolveUrl)(this.opts.uriResolver,e,t);const n=r.refs[t];if(n)return n;let a=yh.call(this,r,t);if(a===void 0){const i=(s=r.localRefs)===null||s===void 0?void 0:s[t],{schemaId:u}=this.opts;i&&(a=new us({schema:i,schemaId:u,root:r,baseId:e}))}if(a!==void 0)return r.refs[t]=mh.call(this,a)}Ze.resolveRef=ph;function mh(r){return(0,_t.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:pn.call(this,r)}function ti(r){for(const e of this._compilations)if(gh(e,r))return e}Ze.getCompilingSchema=ti;function gh(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function yh(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||ls.call(this,r,e)}function ls(r,e){const t=this.opts.uriResolver.parse(e),s=(0,_t._getFullPath)(this.opts.uriResolver,t);let n=(0,_t.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&s===n)return mn.call(this,t,r);const a=(0,_t.normalizeId)(s),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const u=ls.call(this,r,i);return typeof(u==null?void 0:u.schema)!="object"?void 0:mn.call(this,t,u)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||pn.call(this,i),a===(0,_t.normalizeId)(e)){const{schema:u}=i,{schemaId:c}=this.opts,o=u[c];return o&&(n=(0,_t.resolveUrl)(this.opts.uriResolver,n,o)),new us({schema:u,schemaId:c,root:r,baseId:n})}return mn.call(this,t,i)}}Ze.resolveSchema=ls;const vh=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function mn(r,{baseId:e,schema:t,root:s}){var n;if(((n=r.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const u of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const c=t[(0,ei.unescapeFragment)(u)];if(c===void 0)return;t=c;const o=typeof t=="object"&&t[this.opts.schemaId];!vh.has(u)&&o&&(e=(0,_t.resolveUrl)(this.opts.uriResolver,e,o))}let a;if(typeof t!="boolean"&&t.$ref&&!(0,ei.schemaHasRulesButRef)(t,this.RULES)){const u=(0,_t.resolveUrl)(this.opts.uriResolver,e,t.$ref);a=ls.call(this,s,u)}const{schemaId:i}=this.opts;if(a=a||new us({schema:t,schemaId:i,root:s,baseId:e}),a.schema!==a.root.schema)return a}const _h="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",bh="Meta-schema for $data reference (JSON AnySchema extension proposal)",kh="object",$h=["$data"],wh={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Eh=!1,Sh={$id:_h,description:bh,type:kh,required:$h,properties:wh,additionalProperties:Eh};var gn={},cs={exports:{}},xh={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}};const{HEX:Ch}=xh;function ri(r){if(ai(r,".")<3)return{host:r,isIPV4:!1};const e=r.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[t]=e;return t?{host:Th(t,"."),isIPV4:!0}:{host:r,isIPV4:!1}}function si(r,e=!1){let t="",s=!0;for(const n of r){if(Ch[n]===void 0)return;n!=="0"&&s===!0&&(s=!1),s||(t+=n)}return e&&t.length===0&&(t="0"),t}function Ah(r){let e=0;const t={error:!1,address:"",zone:""},s=[],n=[];let a=!1,i=!1,u=!1;function c(){if(n.length){if(a===!1){const o=si(n);if(o!==void 0)s.push(o);else return t.error=!0,!1}n.length=0}return!0}for(let o=0;o<r.length;o++){const l=r[o];if(!(l==="["||l==="]"))if(l===":"){if(i===!0&&(u=!0),!c())break;if(e++,s.push(":"),e>7){t.error=!0;break}o-1>=0&&r[o-1]===":"&&(i=!0);continue}else if(l==="%"){if(!c())break;a=!0}else{n.push(l);continue}}return n.length&&(a?t.zone=n.join(""):u?s.push(n.join("")):s.push(si(n))),t.address=s.join(""),t}function ni(r,e={}){if(ai(r,":")<2)return{host:r,isIPV6:!1};const t=Ah(r);if(t.error)return{host:r,isIPV6:!1};{let s=t.address,n=t.address;return t.zone&&(s+="%"+t.zone,n+="%25"+t.zone),{host:s,escapedHost:n,isIPV6:!0}}}function Th(r,e){let t="",s=!0;const n=r.length;for(let a=0;a<n;a++){const i=r[a];i==="0"&&s?(a+1<=n&&r[a+1]===e||a+1===n)&&(t+=i,s=!1):(i===e?s=!0:s=!1,t+=i)}return t}function ai(r,e){let t=0;for(let s=0;s<r.length;s++)r[s]===e&&t++;return t}const oi=/^\.\.?\//u,ii=/^\/\.(?:\/|$)/u,ui=/^\/\.\.(?:\/|$)/u,Ph=/^\/?(?:.|\n)*?(?=\/|$)/u;function Oh(r){const e=[];for(;r.length;)if(r.match(oi))r=r.replace(oi,"");else if(r.match(ii))r=r.replace(ii,"/");else if(r.match(ui))r=r.replace(ui,"/"),e.pop();else if(r==="."||r==="..")r="";else{const t=r.match(Ph);if(t){const s=t[0];r=r.slice(s.length),e.push(s)}else throw new Error("Unexpected dot segment condition")}return e.join("")}function Ih(r,e){const t=e!==!0?escape:unescape;return r.scheme!==void 0&&(r.scheme=t(r.scheme)),r.userinfo!==void 0&&(r.userinfo=t(r.userinfo)),r.host!==void 0&&(r.host=t(r.host)),r.path!==void 0&&(r.path=t(r.path)),r.query!==void 0&&(r.query=t(r.query)),r.fragment!==void 0&&(r.fragment=t(r.fragment)),r}function Nh(r,e){const t=[];if(r.userinfo!==void 0&&(t.push(r.userinfo),t.push("@")),r.host!==void 0){let s=unescape(r.host);const n=ri(s);if(n.isIPV4)s=n.host;else{const a=ni(n.host,{});a.isIPV6===!0?s=`[${a.escapedHost}]`:s=r.host}t.push(s)}return(typeof r.port=="number"||typeof r.port=="string")&&(t.push(":"),t.push(String(r.port))),t.length?t.join(""):void 0}var Dh={recomposeAuthority:Nh,normalizeComponentEncoding:Ih,removeDotSegments:Oh,normalizeIPv4:ri,normalizeIPv6:ni};const Mh=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Fh=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function li(r){return typeof r.secure=="boolean"?r.secure:String(r.scheme).toLowerCase()==="wss"}function ci(r){return r.host||(r.error=r.error||"HTTP URIs must have a host."),r}function di(r){const e=String(r.scheme).toLowerCase()==="https";return(r.port===(e?443:80)||r.port==="")&&(r.port=void 0),r.path||(r.path="/"),r}function Rh(r){return r.secure=li(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r}function Bh(r){if((r.port===(li(r)?443:80)||r.port==="")&&(r.port=void 0),typeof r.secure=="boolean"&&(r.scheme=r.secure?"wss":"ws",r.secure=void 0),r.resourceName){const[e,t]=r.resourceName.split("?");r.path=e&&e!=="/"?e:void 0,r.query=t,r.resourceName=void 0}return r.fragment=void 0,r}function jh(r,e){if(!r.path)return r.error="URN can not be parsed",r;const t=r.path.match(Fh);if(t){const s=e.scheme||r.scheme||"urn";r.nid=t[1].toLowerCase(),r.nss=t[2];const n=`${s}:${e.nid||r.nid}`,a=yn[n];r.path=void 0,a&&(r=a.parse(r,e))}else r.error=r.error||"URN can not be parsed.";return r}function Lh(r,e){const t=e.scheme||r.scheme||"urn",s=r.nid.toLowerCase(),n=`${t}:${e.nid||s}`,a=yn[n];a&&(r=a.serialize(r,e));const i=r,u=r.nss;return i.path=`${s||e.nid}:${u}`,e.skipEscape=!0,i}function Vh(r,e){const t=r;return t.uuid=t.nss,t.nss=void 0,!e.tolerant&&(!t.uuid||!Mh.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function zh(r){const e=r;return e.nss=(r.uuid||"").toLowerCase(),e}const hi={scheme:"http",domainHost:!0,parse:ci,serialize:di},Hh={scheme:"https",domainHost:hi.domainHost,parse:ci,serialize:di},ds={scheme:"ws",domainHost:!0,parse:Rh,serialize:Bh},Uh={scheme:"wss",domainHost:ds.domainHost,parse:ds.parse,serialize:ds.serialize},qh={scheme:"urn",parse:jh,serialize:Lh,skipNormalize:!0},Kh={scheme:"urn:uuid",parse:Vh,serialize:zh,skipNormalize:!0},yn={http:hi,https:Hh,ws:ds,wss:Uh,urn:qh,"urn:uuid":Kh};var Gh=yn;const{normalizeIPv6:Wh,normalizeIPv4:Xh,removeDotSegments:Nr,recomposeAuthority:Yh,normalizeComponentEncoding:hs}=Dh,vn=Gh;function Zh(r,e){return typeof r=="string"?r=St(Nt(r,e),e):typeof r=="object"&&(r=Nt(St(r,e),e)),r}function Jh(r,e,t){const s=Object.assign({scheme:"null"},t),n=fi(Nt(r,s),Nt(e,s),s,!0);return St(n,{...s,skipEscape:!0})}function fi(r,e,t,s){const n={};return s||(r=Nt(St(r,t),t),e=Nt(St(e,t),t)),t=t||{},!t.tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Nr(e.path||""),n.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Nr(e.path||""),n.query=e.query):(e.path?(e.path.charAt(0)==="/"?n.path=Nr(e.path):((r.userinfo!==void 0||r.host!==void 0||r.port!==void 0)&&!r.path?n.path="/"+e.path:r.path?n.path=r.path.slice(0,r.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=Nr(n.path)),n.query=e.query):(n.path=r.path,e.query!==void 0?n.query=e.query:n.query=r.query),n.userinfo=r.userinfo,n.host=r.host,n.port=r.port),n.scheme=r.scheme),n.fragment=e.fragment,n}function Qh(r,e,t){return typeof r=="string"?(r=unescape(r),r=St(hs(Nt(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=St(hs(r,!0),{...t,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=St(hs(Nt(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=St(hs(e,!0),{...t,skipEscape:!0})),r.toLowerCase()===e.toLowerCase()}function St(r,e){const t={host:r.host,scheme:r.scheme,userinfo:r.userinfo,port:r.port,path:r.path,query:r.query,nid:r.nid,nss:r.nss,uuid:r.uuid,fragment:r.fragment,reference:r.reference,resourceName:r.resourceName,secure:r.secure,error:""},s=Object.assign({},e),n=[],a=vn[(s.scheme||t.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(t,s),t.path!==void 0&&(s.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),s.reference!=="suffix"&&t.scheme&&n.push(t.scheme,":");const i=Yh(t,s);if(i!==void 0&&(s.reference!=="suffix"&&n.push("//"),n.push(i),t.path&&t.path.charAt(0)!=="/"&&n.push("/")),t.path!==void 0){let u=t.path;!s.absolutePath&&(!a||!a.absolutePath)&&(u=Nr(u)),i===void 0&&(u=u.replace(/^\/\//u,"/%2F")),n.push(u)}return t.query!==void 0&&n.push("?",t.query),t.fragment!==void 0&&n.push("#",t.fragment),n.join("")}const ef=Array.from({length:127},(r,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function tf(r){let e=0;for(let t=0,s=r.length;t<s;++t)if(e=r.charCodeAt(t),e>126||ef[e])return!0;return!1}const rf=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Nt(r,e){const t=Object.assign({},e),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=r.indexOf("%")!==-1;let a=!1;t.reference==="suffix"&&(r=(t.scheme?t.scheme+":":"")+"//"+r);const i=r.match(rf);if(i){if(s.scheme=i[1],s.userinfo=i[3],s.host=i[4],s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=i[7],s.fragment=i[8],isNaN(s.port)&&(s.port=i[5]),s.host){const c=Xh(s.host);if(c.isIPV4===!1){const o=Wh(c.host,{isIPV4:!1});s.host=o.host.toLowerCase(),a=o.isIPV6}else s.host=c.host,a=!0}s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&!s.path&&s.query===void 0?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==s.reference&&(s.error=s.error||"URI is not a "+t.reference+" reference.");const u=vn[(t.scheme||s.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!u||!u.unicodeSupport)&&s.host&&(t.domainHost||u&&u.domainHost)&&a===!1&&tf(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(c){s.error=s.error||"Host's domain name can not be converted to ASCII: "+c}(!u||u&&!u.skipNormalize)&&(n&&s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),n&&s.host!==void 0&&(s.host=unescape(s.host)),s.path!==void 0&&s.path.length&&(s.path=escape(unescape(s.path))),s.fragment!==void 0&&s.fragment.length&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),u&&u.parse&&u.parse(s,t)}else s.error=s.error||"URI can not be parsed.";return s}const _n={SCHEMES:vn,normalize:Zh,resolve:Jh,resolveComponents:fi,equal:Qh,serialize:St,parse:Nt};cs.exports=_n,cs.exports.default=_n,cs.exports.fastUri=_n;var sf=cs.exports;Object.defineProperty(gn,"__esModule",{value:!0});const pi=sf;pi.code='require("ajv/dist/runtime/uri").default',gn.default=pi,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=it;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=ie;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const s=Ir,n=mr,a=Zt,i=Ze,u=ie,c=De,o=xe,l=W,p=Sh,f=gn,_=(O,k)=>new RegExp(O,k);_.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},h=200;function b(O){var k,x,w,d,E,P,V,M,z,K,Q,U,pe,ge,Ke,nt,Ge,Qe,ct,dt,Oe,Ie,je,et,at;const Ce=O.strict,ht=(k=O.code)===null||k===void 0?void 0:k.optimize,or=ht===!0||ht===void 0?1:ht||0,qt=(w=(x=O.code)===null||x===void 0?void 0:x.regExp)!==null&&w!==void 0?w:_,Kt=(d=O.uriResolver)!==null&&d!==void 0?d:f.default;return{strictSchema:(P=(E=O.strictSchema)!==null&&E!==void 0?E:Ce)!==null&&P!==void 0?P:!0,strictNumbers:(M=(V=O.strictNumbers)!==null&&V!==void 0?V:Ce)!==null&&M!==void 0?M:!0,strictTypes:(K=(z=O.strictTypes)!==null&&z!==void 0?z:Ce)!==null&&K!==void 0?K:"log",strictTuples:(U=(Q=O.strictTuples)!==null&&Q!==void 0?Q:Ce)!==null&&U!==void 0?U:"log",strictRequired:(ge=(pe=O.strictRequired)!==null&&pe!==void 0?pe:Ce)!==null&&ge!==void 0?ge:!1,code:O.code?{...O.code,optimize:or,regExp:qt}:{optimize:or,regExp:qt},loopRequired:(Ke=O.loopRequired)!==null&&Ke!==void 0?Ke:h,loopEnum:(nt=O.loopEnum)!==null&&nt!==void 0?nt:h,meta:(Ge=O.meta)!==null&&Ge!==void 0?Ge:!0,messages:(Qe=O.messages)!==null&&Qe!==void 0?Qe:!0,inlineRefs:(ct=O.inlineRefs)!==null&&ct!==void 0?ct:!0,schemaId:(dt=O.schemaId)!==null&&dt!==void 0?dt:"$id",addUsedSchema:(Oe=O.addUsedSchema)!==null&&Oe!==void 0?Oe:!0,validateSchema:(Ie=O.validateSchema)!==null&&Ie!==void 0?Ie:!0,validateFormats:(je=O.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(et=O.unicodeRegExp)!==null&&et!==void 0?et:!0,int32range:(at=O.int32range)!==null&&at!==void 0?at:!0,uriResolver:Kt}}class ${constructor(k={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...b(k)};const{es5:x,lines:w}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:x,lines:w}),this.logger=F(k.logger);const d=k.validateFormats;k.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,m,k,"NOT SUPPORTED"),S.call(this,y,k,"DEPRECATED","warn"),this._metaOpts=N.call(this),k.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&L.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),I.call(this),k.validateFormats=d}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:x,schemaId:w}=this.opts;let d=p;w==="id"&&(d={...p},d.id=d.$id,delete d.$id),x&&k&&this.addMetaSchema(d,d[w],!1)}defaultMeta(){const{meta:k,schemaId:x}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[x]||k:void 0}validate(k,x){let w;if(typeof k=="string"){if(w=this.getSchema(k),!w)throw new Error(`no schema with key or ref "${k}"`)}else w=this.compile(k);const d=w(x);return"$async"in w||(this.errors=w.errors),d}compile(k,x){const w=this._addSchema(k,x);return w.validate||this._compileSchemaEnv(w)}compileAsync(k,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:w}=this.opts;return d.call(this,k,x);async function d(K,Q){await E.call(this,K.$schema);const U=this._addSchema(K,Q);return U.validate||P.call(this,U)}async function E(K){K&&!this.getSchema(K)&&await d.call(this,{$ref:K},!0)}async function P(K){try{return this._compileSchemaEnv(K)}catch(Q){if(!(Q instanceof n.default))throw Q;return V.call(this,Q),await M.call(this,Q.missingSchema),P.call(this,K)}}function V({missingSchema:K,missingRef:Q}){if(this.refs[K])throw new Error(`AnySchema ${K} is loaded but ${Q} cannot be resolved`)}async function M(K){const Q=await z.call(this,K);this.refs[K]||await E.call(this,Q.$schema),this.refs[K]||this.addSchema(Q,K,x)}async function z(K){const Q=this._loading[K];if(Q)return Q;try{return await(this._loading[K]=w(K))}finally{delete this._loading[K]}}}addSchema(k,x,w,d=this.opts.validateSchema){if(Array.isArray(k)){for(const P of k)this.addSchema(P,void 0,w,d);return this}let E;if(typeof k=="object"){const{schemaId:P}=this.opts;if(E=k[P],E!==void 0&&typeof E!="string")throw new Error(`schema ${P} must be string`)}return x=(0,c.normalizeId)(x||E),this._checkUnique(x),this.schemas[x]=this._addSchema(k,w,x,d,!0),this}addMetaSchema(k,x,w=this.opts.validateSchema){return this.addSchema(k,x,!0,w),this}validateSchema(k,x){if(typeof k=="boolean")return!0;let w;if(w=k.$schema,w!==void 0&&typeof w!="string")throw new Error("$schema must be a string");if(w=w||this.opts.defaultMeta||this.defaultMeta(),!w)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const d=this.validate(w,k);if(!d&&x){const E="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(E);else throw new Error(E)}return d}getSchema(k){let x;for(;typeof(x=T.call(this,k))=="string";)k=x;if(x===void 0){const{schemaId:w}=this.opts,d=new i.SchemaEnv({schema:{},schemaId:w});if(x=i.resolveSchema.call(this,d,k),!x)return;this.refs[k]=x}return x.validate||this._compileSchemaEnv(x)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const x=T.call(this,k);return typeof x=="object"&&this._cache.delete(x.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const x=k;this._cache.delete(x);let w=k[this.opts.schemaId];return w&&(w=(0,c.normalizeId)(w),delete this.schemas[w],delete this.refs[w]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(const x of k)this.addKeyword(x);return this}addKeyword(k,x){let w;if(typeof k=="string")w=k,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=w);else if(typeof k=="object"&&x===void 0){if(x=k,w=x.keyword,Array.isArray(w)&&!w.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(H.call(this,w,x),!x)return(0,l.eachItem)(w,E=>G.call(this,E)),this;se.call(this,x);const d={...x,type:(0,o.getJSONTypes)(x.type),schemaType:(0,o.getJSONTypes)(x.schemaType)};return(0,l.eachItem)(w,d.type.length===0?E=>G.call(this,E,d):E=>d.type.forEach(P=>G.call(this,E,d,P))),this}getKeyword(k){const x=this.RULES.all[k];return typeof x=="object"?x.definition:!!x}removeKeyword(k){const{RULES:x}=this;delete x.keywords[k],delete x.all[k];for(const w of x.rules){const d=w.rules.findIndex(E=>E.keyword===k);d>=0&&w.rules.splice(d,1)}return this}addFormat(k,x){return typeof x=="string"&&(x=new RegExp(x)),this.formats[k]=x,this}errorsText(k=this.errors,{separator:x=", ",dataVar:w="data"}={}){return!k||k.length===0?"No errors":k.map(d=>`${w}${d.instancePath} ${d.message}`).reduce((d,E)=>d+x+E)}$dataMetaSchema(k,x){const w=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const d of x){const E=d.split("/").slice(1);let P=k;for(const V of E)P=P[V];for(const V in w){const M=w[V];if(typeof M!="object")continue;const{$data:z}=M.definition,K=P[V];z&&K&&(P[V]=ne(K))}}return k}_removeAllSchemas(k,x){for(const w in k){const d=k[w];(!x||x.test(w))&&(typeof d=="string"?delete k[w]:d&&!d.meta&&(this._cache.delete(d.schema),delete k[w]))}}_addSchema(k,x,w,d=this.opts.validateSchema,E=this.opts.addUsedSchema){let P;const{schemaId:V}=this.opts;if(typeof k=="object")P=k[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let M=this._cache.get(k);if(M!==void 0)return M;w=(0,c.normalizeId)(P||w);const z=c.getSchemaRefs.call(this,k,w);return M=new i.SchemaEnv({schema:k,schemaId:V,meta:x,baseId:w,localRefs:z}),this._cache.set(M.schema,M),E&&!w.startsWith("#")&&(w&&this._checkUnique(w),this.refs[w]=M),d&&this.validateSchema(k,!0),M}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):i.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const x=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,k)}finally{this.opts=x}}}$.ValidationError=s.default,$.MissingRefError=n.default,r.default=$;function S(O,k,x,w="error"){for(const d in O){const E=d;E in k&&this.logger[w](`${x}: option ${d}. ${O[E]}`)}}function T(O){return O=(0,c.normalizeId)(O),this.schemas[O]||this.refs[O]}function I(){const O=this.opts.schemas;if(O)if(Array.isArray(O))this.addSchema(O);else for(const k in O)this.addSchema(O[k],k)}function R(){for(const O in this.opts.formats){const k=this.opts.formats[O];k&&this.addFormat(O,k)}}function L(O){if(Array.isArray(O)){this.addVocabulary(O);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in O){const x=O[k];x.keyword||(x.keyword=k),this.addKeyword(x)}}function N(){const O={...this.opts};for(const k of g)delete O[k];return O}const A={log(){},warn(){},error(){}};function F(O){if(O===!1)return A;if(O===void 0)return console;if(O.log&&O.warn&&O.error)return O;throw new Error("logger must implement log, warn and error methods")}const B=/^[a-z_$][a-z0-9_$:-]*$/i;function H(O,k){const{RULES:x}=this;if((0,l.eachItem)(O,w=>{if(x.keywords[w])throw new Error(`Keyword ${w} is already defined`);if(!B.test(w))throw new Error(`Keyword ${w} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function G(O,k,x){var w;const d=k==null?void 0:k.post;if(x&&d)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:E}=this;let P=d?E.post:E.rules.find(({type:M})=>M===x);if(P||(P={type:x,rules:[]},E.rules.push(P)),E.keywords[O]=!0,!k)return;const V={keyword:O,definition:{...k,type:(0,o.getJSONTypes)(k.type),schemaType:(0,o.getJSONTypes)(k.schemaType)}};k.before?X.call(this,P,V,k.before):P.rules.push(V),E.all[O]=V,(w=k.implements)===null||w===void 0||w.forEach(M=>this.addKeyword(M))}function X(O,k,x){const w=O.rules.findIndex(d=>d.keyword===x);w>=0?O.rules.splice(w,0,k):(O.rules.push(k),this.logger.warn(`rule ${x} is not defined`))}function se(O){let{metaSchema:k}=O;k!==void 0&&(O.$data&&this.opts.$data&&(k=ne(k)),O.validateSchema=this.compile(k,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ne(O){return{anyOf:[O,te]}}}(po);var bn={},kn={},$n={};Object.defineProperty($n,"__esModule",{value:!0});const nf={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};$n.default=nf;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.callRef=er.getValidate=void 0;const af=mr,mi=de,Je=ie,gr=yt,gi=Ze,fs=W,of={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:s}=r,{baseId:n,schemaEnv:a,validateName:i,opts:u,self:c}=s,{root:o}=a;if((t==="#"||t==="#/")&&n===o.baseId)return p();const l=gi.resolveRef.call(c,o,n,t);if(l===void 0)throw new af.default(s.opts.uriResolver,n,t);if(l instanceof gi.SchemaEnv)return f(l);return _(l);function p(){if(a===o)return ps(r,i,a,a.$async);const g=e.scopeValue("root",{ref:o});return ps(r,(0,Je._)`${g}.validate`,o,o.$async)}function f(g){const v=yi(r,g);ps(r,v,g,g.$async)}function _(g){const v=e.scopeValue("schema",u.code.source===!0?{ref:g,code:(0,Je.stringify)(g)}:{ref:g}),m=e.name("valid"),y=r.subschema({schema:g,dataTypes:[],schemaPath:Je.nil,topSchemaRef:v,errSchemaPath:t},m);r.mergeEvaluated(y),r.ok(m)}}};function yi(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Je._)`${t.scopeValue("wrapper",{ref:e})}.validate`}er.getValidate=yi;function ps(r,e,t,s){const{gen:n,it:a}=r,{allErrors:i,schemaEnv:u,opts:c}=a,o=c.passContext?gr.default.this:Je.nil;s?l():p();function l(){if(!u.$async)throw new Error("async schema referenced by sync schema");const g=n.let("valid");n.try(()=>{n.code((0,Je._)`await ${(0,mi.callValidateCode)(r,e,o)}`),_(e),i||n.assign(g,!0)},v=>{n.if((0,Je._)`!(${v} instanceof ${a.ValidationError})`,()=>n.throw(v)),f(v),i||n.assign(g,!1)}),r.ok(g)}function p(){r.result((0,mi.callValidateCode)(r,e,o),()=>_(e),()=>f(e))}function f(g){const v=(0,Je._)`${g}.errors`;n.assign(gr.default.vErrors,(0,Je._)`${gr.default.vErrors} === null ? ${v} : ${gr.default.vErrors}.concat(${v})`),n.assign(gr.default.errors,(0,Je._)`${gr.default.vErrors}.length`)}function _(g){var v;if(!a.opts.unevaluated)return;const m=(v=t==null?void 0:t.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(m&&!m.dynamicProps)m.props!==void 0&&(a.props=fs.mergeEvaluated.props(n,m.props,a.props));else{const y=n.var("props",(0,Je._)`${g}.evaluated.props`);a.props=fs.mergeEvaluated.props(n,y,a.props,Je.Name)}if(a.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(a.items=fs.mergeEvaluated.items(n,m.items,a.items));else{const y=n.var("items",(0,Je._)`${g}.evaluated.items`);a.items=fs.mergeEvaluated.items(n,y,a.items,Je.Name)}}}er.callRef=ps,er.default=of,Object.defineProperty(kn,"__esModule",{value:!0});const uf=$n,lf=er,cf=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",uf.default,lf.default];kn.default=cf;var wn={},En={};Object.defineProperty(En,"__esModule",{value:!0});const ms=ie,Ht=ms.operators,gs={maximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},minimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},exclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},exclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},df={message:({keyword:r,schemaCode:e})=>(0,ms.str)`must be ${gs[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,ms._)`{comparison: ${gs[r].okStr}, limit: ${e}}`},hf={keyword:Object.keys(gs),type:"number",schemaType:"number",$data:!0,error:df,code(r){const{keyword:e,data:t,schemaCode:s}=r;r.fail$data((0,ms._)`${t} ${gs[e].fail} ${s} || isNaN(${t})`)}};En.default=hf;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});const Dr=ie,ff={message:({schemaCode:r})=>(0,Dr.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Dr._)`{multipleOf: ${r}}`},pf={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:ff,code(r){const{gen:e,data:t,schemaCode:s,it:n}=r,a=n.opts.multipleOfPrecision,i=e.let("res"),u=a?(0,Dr._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Dr._)`${i} !== parseInt(${i})`;r.fail$data((0,Dr._)`(${s} === 0 || (${i} = ${t}/${s}, ${u}))`)}};Sn.default=pf;var xn={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});function vi(r){const e=r.length;let t=0,s=0,n;for(;s<e;)t++,n=r.charCodeAt(s++),n>=55296&&n<=56319&&s<e&&(n=r.charCodeAt(s),(n&64512)===56320&&s++);return t}Cn.default=vi,vi.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(xn,"__esModule",{value:!0});const tr=ie,mf=W,gf=Cn,yf={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,tr.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,tr._)`{limit: ${r}}`},vf={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:yf,code(r){const{keyword:e,data:t,schemaCode:s,it:n}=r,a=e==="maxLength"?tr.operators.GT:tr.operators.LT,i=n.opts.unicode===!1?(0,tr._)`${t}.length`:(0,tr._)`${(0,mf.useFunc)(r.gen,gf.default)}(${t})`;r.fail$data((0,tr._)`${i} ${a} ${s}`)}};xn.default=vf;var An={};Object.defineProperty(An,"__esModule",{value:!0});const _f=de,ys=ie,bf={message:({schemaCode:r})=>(0,ys.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,ys._)`{pattern: ${r}}`},kf={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:bf,code(r){const{data:e,$data:t,schema:s,schemaCode:n,it:a}=r,i=a.opts.unicodeRegExp?"u":"",u=t?(0,ys._)`(new RegExp(${n}, ${i}))`:(0,_f.usePattern)(r,s);r.fail$data((0,ys._)`!${u}.test(${e})`)}};An.default=kf;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});const Mr=ie,$f={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,Mr.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,Mr._)`{limit: ${r}}`},wf={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:$f,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxProperties"?Mr.operators.GT:Mr.operators.LT;r.fail$data((0,Mr._)`Object.keys(${t}).length ${n} ${s}`)}};Tn.default=wf;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const Fr=de,Rr=ie,Ef=W,Sf={message:({params:{missingProperty:r}})=>(0,Rr.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Rr._)`{missingProperty: ${r}}`},xf={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Sf,code(r){const{gen:e,schema:t,schemaCode:s,data:n,$data:a,it:i}=r,{opts:u}=i;if(!a&&t.length===0)return;const c=t.length>=u.loopRequired;if(i.allErrors?o():l(),u.strictRequired){const _=r.parentSchema.properties,{definedProperties:g}=r.it;for(const v of t)if((_==null?void 0:_[v])===void 0&&!g.has(v)){const m=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${v}" is not defined at "${m}" (strictRequired)`;(0,Ef.checkStrictMode)(i,y,i.opts.strictRequired)}}function o(){if(c||a)r.block$data(Rr.nil,p);else for(const _ of t)(0,Fr.checkReportMissingProp)(r,_)}function l(){const _=e.let("missing");if(c||a){const g=e.let("valid",!0);r.block$data(g,()=>f(_,g)),r.ok(g)}else e.if((0,Fr.checkMissingProp)(r,t,_)),(0,Fr.reportMissingProp)(r,_),e.else()}function p(){e.forOf("prop",s,_=>{r.setParams({missingProperty:_}),e.if((0,Fr.noPropertyInData)(e,n,_,u.ownProperties),()=>r.error())})}function f(_,g){r.setParams({missingProperty:_}),e.forOf(_,s,()=>{e.assign(g,(0,Fr.propertyInData)(e,n,_,u.ownProperties)),e.if((0,Rr.not)(g),()=>{r.error(),e.break()})},Rr.nil)}}};Pn.default=xf;var On={};Object.defineProperty(On,"__esModule",{value:!0});const Br=ie,Cf={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,Br.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,Br._)`{limit: ${r}}`},Af={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Cf,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxItems"?Br.operators.GT:Br.operators.LT;r.fail$data((0,Br._)`${t}.length ${n} ${s}`)}};On.default=Af;var In={},jr={};Object.defineProperty(jr,"__esModule",{value:!0});const _i=Do;_i.code='require("ajv/dist/runtime/equal").default',jr.default=_i,Object.defineProperty(In,"__esModule",{value:!0});const Nn=xe,Me=ie,Tf=W,Pf=jr,Of={message:({params:{i:r,j:e}})=>(0,Me.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,Me._)`{i: ${r}, j: ${e}}`},If={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Of,code(r){const{gen:e,data:t,$data:s,schema:n,parentSchema:a,schemaCode:i,it:u}=r;if(!s&&!n)return;const c=e.let("valid"),o=a.items?(0,Nn.getSchemaTypes)(a.items):[];r.block$data(c,l,(0,Me._)`${i} === false`),r.ok(c);function l(){const g=e.let("i",(0,Me._)`${t}.length`),v=e.let("j");r.setParams({i:g,j:v}),e.assign(c,!0),e.if((0,Me._)`${g} > 1`,()=>(p()?f:_)(g,v))}function p(){return o.length>0&&!o.some(g=>g==="object"||g==="array")}function f(g,v){const m=e.name("item"),y=(0,Nn.checkDataTypes)(o,m,u.opts.strictNumbers,Nn.DataType.Wrong),h=e.const("indices",(0,Me._)`{}`);e.for((0,Me._)`;${g}--;`,()=>{e.let(m,(0,Me._)`${t}[${g}]`),e.if(y,(0,Me._)`continue`),o.length>1&&e.if((0,Me._)`typeof ${m} == "string"`,(0,Me._)`${m} += "_"`),e.if((0,Me._)`typeof ${h}[${m}] == "number"`,()=>{e.assign(v,(0,Me._)`${h}[${m}]`),r.error(),e.assign(c,!1).break()}).code((0,Me._)`${h}[${m}] = ${g}`)})}function _(g,v){const m=(0,Tf.useFunc)(e,Pf.default),y=e.name("outer");e.label(y).for((0,Me._)`;${g}--;`,()=>e.for((0,Me._)`${v} = ${g}; ${v}--;`,()=>e.if((0,Me._)`${m}(${t}[${g}], ${t}[${v}])`,()=>{r.error(),e.assign(c,!1).break(y)})))}}};In.default=If;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const Mn=ie,Nf=W,Df=jr,Mf={message:"must be equal to constant",params:({schemaCode:r})=>(0,Mn._)`{allowedValue: ${r}}`},Ff={keyword:"const",$data:!0,error:Mf,code(r){const{gen:e,data:t,$data:s,schemaCode:n,schema:a}=r;s||a&&typeof a=="object"?r.fail$data((0,Mn._)`!${(0,Nf.useFunc)(e,Df.default)}(${t}, ${n})`):r.fail((0,Mn._)`${a} !== ${t}`)}};Dn.default=Ff;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});const Lr=ie,Rf=W,Bf=jr,jf={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,Lr._)`{allowedValues: ${r}}`},Lf={keyword:"enum",schemaType:"array",$data:!0,error:jf,code(r){const{gen:e,data:t,$data:s,schema:n,schemaCode:a,it:i}=r;if(!s&&n.length===0)throw new Error("enum must have non-empty array");const u=n.length>=i.opts.loopEnum;let c;const o=()=>c??(c=(0,Rf.useFunc)(e,Bf.default));let l;if(u||s)l=e.let("valid"),r.block$data(l,p);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const _=e.const("vSchema",a);l=(0,Lr.or)(...n.map((g,v)=>f(_,v)))}r.pass(l);function p(){e.assign(l,!1),e.forOf("v",a,_=>e.if((0,Lr._)`${o()}(${t}, ${_})`,()=>e.assign(l,!0).break()))}function f(_,g){const v=n[g];return typeof v=="object"&&v!==null?(0,Lr._)`${o()}(${t}, ${_}[${g}])`:(0,Lr._)`${t} === ${v}`}}};Fn.default=Lf,Object.defineProperty(wn,"__esModule",{value:!0});const Vf=En,zf=Sn,Hf=xn,Uf=An,qf=Tn,Kf=Pn,Gf=On,Wf=In,Xf=Dn,Yf=Fn,Zf=[Vf.default,zf.default,Hf.default,Uf.default,qf.default,Kf.default,Gf.default,Wf.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xf.default,Yf.default];wn.default=Zf;var Rn={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.validateAdditionalItems=void 0;const rr=ie,Bn=W,Jf={message:({params:{len:r}})=>(0,rr.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,rr._)`{limit: ${r}}`},Qf={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Jf,code(r){const{parentSchema:e,it:t}=r,{items:s}=e;if(!Array.isArray(s)){(0,Bn.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}bi(r,s)}};function bi(r,e){const{gen:t,schema:s,data:n,keyword:a,it:i}=r;i.items=!0;const u=t.const("len",(0,rr._)`${n}.length`);if(s===!1)r.setParams({len:e.length}),r.pass((0,rr._)`${u} <= ${e.length}`);else if(typeof s=="object"&&!(0,Bn.alwaysValidSchema)(i,s)){const o=t.var("valid",(0,rr._)`${u} <= ${e.length}`);t.if((0,rr.not)(o),()=>c(o)),r.ok(o)}function c(o){t.forRange("i",e.length,u,l=>{r.subschema({keyword:a,dataProp:l,dataPropType:Bn.Type.Num},o),i.allErrors||t.if((0,rr.not)(o),()=>t.break())})}}yr.validateAdditionalItems=bi,yr.default=Qf;var jn={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.validateTuple=void 0;const ki=ie,vs=W,ep=de,tp={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return $i(r,"additionalItems",e);t.items=!0,!(0,vs.alwaysValidSchema)(t,e)&&r.ok((0,ep.validateArray)(r))}};function $i(r,e,t=r.schema){const{gen:s,parentSchema:n,data:a,keyword:i,it:u}=r;l(n),u.opts.unevaluated&&t.length&&u.items!==!0&&(u.items=vs.mergeEvaluated.items(s,t.length,u.items));const c=s.name("valid"),o=s.const("len",(0,ki._)`${a}.length`);t.forEach((p,f)=>{(0,vs.alwaysValidSchema)(u,p)||(s.if((0,ki._)`${o} > ${f}`,()=>r.subschema({keyword:i,schemaProp:f,dataProp:f},c)),r.ok(c))});function l(p){const{opts:f,errSchemaPath:_}=u,g=t.length,v=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(f.strictTuples&&!v){const m=`"${i}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${_}"`;(0,vs.checkStrictMode)(u,m,f.strictTuples)}}}vr.validateTuple=$i,vr.default=tp,Object.defineProperty(jn,"__esModule",{value:!0});const rp=vr,sp={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,rp.validateTuple)(r,"items")};jn.default=sp;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const wi=ie,np=W,ap=de,op=yr,ip={message:({params:{len:r}})=>(0,wi.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,wi._)`{limit: ${r}}`},up={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ip,code(r){const{schema:e,parentSchema:t,it:s}=r,{prefixItems:n}=t;s.items=!0,!(0,np.alwaysValidSchema)(s,e)&&(n?(0,op.validateAdditionalItems)(r,n):r.ok((0,ap.validateArray)(r)))}};Ln.default=up;var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});const ut=ie,_s=W,lp={message:({params:{min:r,max:e}})=>e===void 0?(0,ut.str)`must contain at least ${r} valid item(s)`:(0,ut.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,ut._)`{minContains: ${r}}`:(0,ut._)`{minContains: ${r}, maxContains: ${e}}`},cp={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:lp,code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;let i,u;const{minContains:c,maxContains:o}=s;a.opts.next?(i=c===void 0?1:c,u=o):i=1;const l=e.const("len",(0,ut._)`${n}.length`);if(r.setParams({min:i,max:u}),u===void 0&&i===0){(0,_s.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(u!==void 0&&i>u){(0,_s.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,_s.alwaysValidSchema)(a,t)){let v=(0,ut._)`${l} >= ${i}`;u!==void 0&&(v=(0,ut._)`${v} && ${l} <= ${u}`),r.pass(v);return}a.items=!0;const p=e.name("valid");u===void 0&&i===1?_(p,()=>e.if(p,()=>e.break())):i===0?(e.let(p,!0),u!==void 0&&e.if((0,ut._)`${n}.length > 0`,f)):(e.let(p,!1),f()),r.result(p,()=>r.reset());function f(){const v=e.name("_valid"),m=e.let("count",0);_(v,()=>e.if(v,()=>g(m)))}function _(v,m){e.forRange("i",0,l,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:_s.Type.Num,compositeRule:!0},v),m()})}function g(v){e.code((0,ut._)`${v}++`),u===void 0?e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(p,!0).break()):(e.if((0,ut._)`${v} > ${u}`,()=>e.assign(p,!1).break()),i===1?e.assign(p,!0):e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(p,!0)))}}};Vn.default=cp;var Ei={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=ie,t=W,s=de;r.error={message:({params:{property:c,depsCount:o,deps:l}})=>{const p=o===1?"property":"properties";return(0,e.str)`must have ${p} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:o,deps:l,missingProperty:p}})=>(0,e._)`{property: ${c},
|
|
19
|
+
*/var Vs,wa;function Fu(){if(wa)return Vs;wa=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function s(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function n(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(d.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Vs=n()?Object.assign:function(a,i){for(var l,d=s(a),o,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var p in l)e.call(l,p)&&(d[p]=l[p]);if(r){o=r(l);for(var f=0;f<o.length;f++)t.call(l,o[f])&&(d[o[f]]=l[o[f]])}}return d},Vs}var zs,Ea;function Hs(){if(Ea)return zs;Ea=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zs=r,zs}var Sa,xa;function Aa(){return xa||(xa=1,Sa=Function.call.bind(Object.prototype.hasOwnProperty)),Sa}var Us,Ca;function Bu(){if(Ca)return Us;Ca=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=Hs(),t={},s=Aa();r=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function n(a,i,l,d,o){if(process.env.NODE_ENV!=="production"){for(var u in a)if(s(a,u)){var p;try{if(typeof a[u]!="function"){var f=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=a[u](i,u,d,l,null,e)}catch(m){p=m}if(p&&!(p instanceof Error)&&r((d||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in t)){t[p.message]=!0;var _=o?o():"";r("Failed "+l+" type: "+p.message+(_??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Us=n,Us}var qs,Ta;function Ru(){if(Ta)return qs;Ta=1;var r=$a(),e=Fu(),t=Hs(),s=Aa(),n=Bu(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function i(){return null}return qs=function(l,d){var o=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function p(P){var k=P&&(o&&P[o]||P[u]);if(typeof k=="function")return k}var f="<<anonymous>>",_={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:h(),arrayOf:b,element:$(),elementType:S(),instanceOf:O,node:I(),objectOf:R,oneOf:N,oneOfType:V,shape:B,exact:j};function m(P,k){return P===k?P!==0||1/P===1/k:P!==P&&k!==k}function v(P,k){this.message=P,this.data=k&&typeof k=="object"?k:{},this.stack=""}v.prototype=Error.prototype;function g(P){if(process.env.NODE_ENV!=="production")var k={},x=0;function E(w,C,L,F,z,q,Z){if(F=F||f,q=q||L,Z!==t){if(d){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=F+":"+L;!k[fe]&&x<3&&(a("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+F+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[fe]=!0,x++)}}return C[L]==null?w?C[L]===null?new v("The "+z+" `"+q+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new v("The "+z+" `"+q+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:P(C,L,F,z,q)}var c=E.bind(null,!1);return c.isRequired=E.bind(null,!0),c}function y(P){function k(x,E,c,w,C,L){var F=x[E],z=X(F);if(z!==P){var q=se(F);return new v("Invalid "+w+" `"+C+"` of type "+("`"+q+"` supplied to `"+c+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return g(k)}function h(){return g(i)}function b(P){function k(x,E,c,w,C){if(typeof P!="function")return new v("Property `"+C+"` of component `"+c+"` has invalid PropType notation inside arrayOf.");var L=x[E];if(!Array.isArray(L)){var F=X(L);return new v("Invalid "+w+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected an array."))}for(var z=0;z<L.length;z++){var q=P(L,z,c,w,C+"["+z+"]",t);if(q instanceof Error)return q}return null}return g(k)}function $(){function P(k,x,E,c,w){var C=k[x];if(!l(C)){var L=X(C);return new v("Invalid "+c+" `"+w+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement."))}return null}return g(P)}function S(){function P(k,x,E,c,w){var C=k[x];if(!r.isValidElementType(C)){var L=X(C);return new v("Invalid "+c+" `"+w+"` of type "+("`"+L+"` supplied to `"+E+"`, expected a single ReactElement type."))}return null}return g(P)}function O(P){function k(x,E,c,w,C){if(!(x[E]instanceof P)){var L=P.name||f,F=ne(x[E]);return new v("Invalid "+w+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected ")+("instance of `"+L+"`."))}return null}return g(k)}function N(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function k(x,E,c,w,C){for(var L=x[E],F=0;F<P.length;F++)if(m(L,P[F]))return null;var z=JSON.stringify(P,function(q,Z){var H=se(Z);return H==="symbol"?String(Z):Z});return new v("Invalid "+w+" `"+C+"` of value `"+String(L)+"` "+("supplied to `"+c+"`, expected one of "+z+"."))}return g(k)}function R(P){function k(x,E,c,w,C){if(typeof P!="function")return new v("Property `"+C+"` of component `"+c+"` has invalid PropType notation inside objectOf.");var L=x[E],F=X(L);if(F!=="object")return new v("Invalid "+w+" `"+C+"` of type "+("`"+F+"` supplied to `"+c+"`, expected an object."));for(var z in L)if(s(L,z)){var q=P(L,z,c,w,C+"."+z,t);if(q instanceof Error)return q}return null}return g(k)}function V(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var k=0;k<P.length;k++){var x=P[k];if(typeof x!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(x)+" at index "+k+"."),i}function E(c,w,C,L,F){for(var z=[],q=0;q<P.length;q++){var Z=P[q],H=Z(c,w,C,L,F,t);if(H==null)return null;H.data&&s(H.data,"expectedType")&&z.push(H.data.expectedType)}var fe=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new v("Invalid "+L+" `"+F+"` supplied to "+("`"+C+"`"+fe+"."))}return g(E)}function I(){function P(k,x,E,c,w){return U(k[x])?null:new v("Invalid "+c+" `"+w+"` supplied to "+("`"+E+"`, expected a ReactNode."))}return g(P)}function T(P,k,x,E,c){return new v((P||"React class")+": "+k+" type `"+x+"."+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+c+"`.")}function B(P){function k(x,E,c,w,C){var L=x[E],F=X(L);if(F!=="object")return new v("Invalid "+w+" `"+C+"` of type `"+F+"` "+("supplied to `"+c+"`, expected `object`."));for(var z in P){var q=P[z];if(typeof q!="function")return T(c,w,C,z,se(q));var Z=q(L,z,c,w,C+"."+z,t);if(Z)return Z}return null}return g(k)}function j(P){function k(x,E,c,w,C){var L=x[E],F=X(L);if(F!=="object")return new v("Invalid "+w+" `"+C+"` of type `"+F+"` "+("supplied to `"+c+"`, expected `object`."));var z=e({},x[E],P);for(var q in z){var Z=P[q];if(s(P,q)&&typeof Z!="function")return T(c,w,C,q,se(Z));if(!Z)return new v("Invalid "+w+" `"+C+"` key `"+q+"` supplied to `"+c+"`.\nBad object: "+JSON.stringify(x[E],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var H=Z(L,q,c,w,C+"."+q,t);if(H)return H}return null}return g(k)}function U(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(U);if(P===null||l(P))return!0;var k=p(P);if(k){var x=k.call(P),E;if(k!==P.entries){for(;!(E=x.next()).done;)if(!U(E.value))return!1}else for(;!(E=x.next()).done;){var c=E.value;if(c&&!U(c[1]))return!1}}else return!1;return!0;default:return!1}}function W(P,k){return P==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function X(P){var k=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":W(k,P)?"symbol":k}function se(P){if(typeof P>"u"||P===null)return""+P;var k=X(P);if(k==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return k}function J(P){var k=se(P);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function ne(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return _.checkPropTypes=n,_.resetWarningCache=n.resetWarningCache,_.PropTypes=_,_},qs}var Gs,Oa;function ju(){if(Oa)return Gs;Oa=1;var r=Hs();function e(){}function t(){}return t.resetWarningCache=e,Gs=function(){function s(i,l,d,o,u,p){if(p!==r){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}s.isRequired=s;function n(){return s}var a={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:n,element:s,elementType:s,instanceOf:n,node:s,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:t,resetWarningCache:e};return a.PropTypes=a,a},Gs}if(process.env.NODE_ENV!=="production"){var Lu=$a(),Vu=!0;js.exports=Ru()(Lu.isElement,Vu)}else js.exports=ju()();var zu=js.exports;const A=Iu(zu),Hu={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},Uu={Solid:"solid",Outline:"outline",Text:"text"},qu={Large:"lg",Medium:"md",Small:"sm"},Gu={Right:"right",Left:"left"},Zr={props:{color:{options:Object.values(Hu)},variant:{options:Object.values(Uu)},size:{options:Object.values(qu)},iconPosition:{options:Object.values(Gu)}}},Pa={Primary:"primary",PrimaryLightest:"primary-lightest",PrimaryLighter:"primary-lighter",PrimaryLight:"primary-light",PrimaryDark:"primary-dark",PrimaryDarker:"primary-darker",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",Secondary:"secondary",SecondaryLightest:"secondary-lightest",SecondaryLighter:"secondary-lighter",SecondaryLight:"secondary-light",SecondaryDark:"secondary-dark",SecondaryDarker:"secondary-darker",Success:"success",SuccessLighter:"success-lighter",SuccessLight:"success-light",SuccessDark:"success-dark",Warning:"warning",WarningLighter:"warning-lighter",WarningLight:"warning-light",WarningDark:"warning-dark",Danger:"danger",DangerLighter:"danger-lighter",DangerLight:"danger-light",DangerDark:"danger-dark",Info:"info",InfoLighter:"info-lighter",InfoLight:"info-light",InfoDark:"info-dark"},Na={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl",Huge:"huge"},Ia={Bold:"bold",Semibold:"semibold",Medium:"medium",Regular:"regular",Light:"light",Extralight:"extralight"},Je={class:"ds-icon",props:{color:{default:Pa.Neutral90,options:Object.values(Pa)},image:{default:"settings"},size:{default:Na.MD,options:Object.values(Na)},fill:{default:!1},testId:{default:"ds-icon-test"},weight:{default:Ia.Semibold,options:Object.values(Ia)},onClick:{default:()=>({})}}},Wu={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},xe=({image:r=Je.props.image.default,color:e=Je.props.color.default,className:t,size:s=Je.props.size.default,fill:n=Je.props.fill.default,weight:a=Je.props.weight.default,testId:i=Je.props.testId.default,onClick:l=Je.props.onClick.default})=>{const d="material-symbols-rounded",o=e&&Je.props.color.options.find(p=>p===e)&&`${Je.class}__color--${e}`,u=K.useMemo(()=>({fontVariationSettings:`'FILL' ${n?1:0}, 'GRAD' 0,'wght' ${Wu[a]}, 'opsz' 48`}),[a,n]);return M.jsx("i",{className:[`${Je.class}--${s}`,Je.class,d,o,t&&t].filter(p=>p).join(" "),"data-testid":i,onClick:l,style:u,translate:"no",children:r})};xe.propTypes={color:A.oneOf(Je.props.color.options),image:A.string,fontVariationSettings:A.object,size:A.oneOf(Je.props.size.options),fill:A.bool,weight:A.oneOf(Je.props.weight.options),onClick:A.func},xe.displayName="DsIcon",A.oneOf(Zr.props.color.options),A.oneOf(Zr.props.variant.options),A.oneOf(Zr.props.size.options),A.bool,A.string,A.bool,A.oneOf(Zr.props.iconPosition.options),A.string,A.string,A.bool,A.node.isRequired,A.string,A.string;const Qr={None:"",PrimaryDarker:"primary-darker",PrimaryDark:"primary-dark",Primary:"primary",PrimaryLight:"primary-light",PrimaryLighter:"primary-lighter",PrimaryLightest:"primary-lightest",SecondaryDarker:"secondary-darker",SecondaryDark:"secondary-dark",Secondary:"secondary",SecondaryLight:"secondary-light",SecondaryLighter:"secondary-lighter",SecondaryLightest:"secondary-lightest",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",SuccessDark:"success-dark",Success:"success",SuccessLight:"success-light",SuccessLighter:"success-lighter",WarningDark:"warning-dark",Warning:"warning",WarningLight:"warning-light",WarningLighter:"warning-lighter",DangerDark:"danger-dark",Danger:"danger",DangerLight:"danger-light",DangerLighter:"danger-lighter",InfoDark:"info-dark",Info:"info",InfoLight:"info-light",InfoLighter:"info-lighter"},mt={class:"ds-card",props:{backgroundColor:{default:Qr.None,options:Object.values(Qr)},borderColor:{default:Qr.None,options:Object.values(Qr)},elevation:{default:0,options:[0,1,2,3,4]},testId:{default:"ds-card"}}},ur=({id:r,testId:e=mt.props.testId.default,children:t,className:s,elevation:n=mt.props.elevation.default,backgroundColor:a=mt.props.backgroundColor.default,borderColor:i=mt.props.borderColor.default})=>{const l=n&&`${mt.class}--elevation-${n}`,d=i&&`${mt.class}--border-${i}`,o=a&&`${mt.class}--${a}`;return M.jsx("div",{className:[mt.class,s,l,d,o].filter(u=>u).join(" "),"data-testid":e,id:r,children:t})};ur.propTypes={id:A.string,testId:A.string,backgroundColor:A.oneOf(mt.props.backgroundColor.options),borderColor:A.oneOf(mt.props.borderColor.options),elevation:A.oneOf(mt.props.elevation.options)},ur.displayName="DsCard";const ze={class:"ds-checkbox",props:{testId:{default:"ds-checkbox-test"},label:{default:""},description:{default:""},checked:{default:!1},changeByChecked:{default:!1}}},Da=K.forwardRef(({id:r,className:e,name:t,testId:s=ze.props.testId.default,label:n=ze.props.label.default,description:a=ze.props.description.default,checked:i=ze.props.checked.default,disabled:l=ze.props.checked.default,changeByChecked:d=ze.props.changeByChecked.default,onChangeHandler:o},u)=>{const p=d||!1,f=i||!1,[_,m]=K.useState(f),v={image:_?"check_box":"check_box_outline_blank",class:_?`${ze.class}__icon--checked`:`${ze.class}__icon--unchecked`},g=l&&`${ze.class}--disabled`,y=h=>{l||(m(b=>!b),o&&o(h))};return K.useEffect(()=>{p&&m(i)},[i,p]),M.jsxs("label",{className:[ze.class,g,e&&e].join(" "),htmlFor:r||t,children:[M.jsx("input",{checked:_,className:`${ze.class}__input`,"data-testid":s,id:r||t,name:t,onChange:y,ref:u,type:"checkbox"}),M.jsx(xe,{className:`${ze.class}__icon ${v.class}`,fill:!0,image:v.image,size:"xxl",testId:`${s}-icon`}),(a||n)&&M.jsxs("div",{className:`${ze.class}__label`,children:[n&&M.jsx("label",{className:`${ze.class}__label-title`,htmlFor:r||t,children:n}),a&&M.jsx("label",{className:`${ze.class}__label-description`,htmlFor:r||t,children:a})]})]})});Da.propTypes={label:A.oneOfType([A.string,A.node]),name:A.string,className:A.string,testId:A.string,description:A.oneOfType([A.string,A.node]),checked:A.bool,disabled:A.bool},Da.displayName="DsCheckbox";const Ma={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},Sr={class:"ds-heading",props:{type:{default:Ma.Heading1,options:Object.values(Ma)}}},kt=({children:r,testId:e="ds-heading-test",type:t=Sr.props.type.default,className:s})=>{const n={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6"},a=Sr.props.type.options.find(l=>l===t)&&`${Sr.class}--${t}`,i=n[t];return M.jsx(i,{className:[Sr.class,a,s&&s].filter(l=>l).join(" "),"data-testid":e,children:r})};kt.propTypes={className:A.string,testId:A.string,type:A.oneOf(Sr.props.type.options)},kt.displayName="DsHeading";const Fa={None:"",Dashed:"dashed",Dotted:"dotted"},Ba={None:"",Small:"small",Large:"large"},Xt={class:"ds-hr",props:{borderStyle:{type:String,default:Fa.None,options:Object.values(Fa)},size:{type:String,default:Ba.None,options:Object.values(Ba)}}};function Ra(r,e,t){const s=t.props[r];return s.options&&s.options.some(n=>n===e)?`${t.class}--${e}`:""}const Ws=({size:r=Xt.props.size.default,borderStyle:e=Xt.props.borderStyle.default})=>{const t=Ra("size",r,Xt),s=Ra("borderStyle",e,Xt);return M.jsx("hr",{className:`${Xt.class} ${t} ${s}`.trim()})};Ws.propTypes={size:A.oneOf(Xt.props.size.options),borderStyle:A.oneOf(Xt.props.borderStyle.options)},Ws.displayName="DsHR";function jt(r){return typeof r=="string"||r instanceof String}function ja(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function La(r,e){return Array.isArray(e)?La(r,(t,s)=>e.includes(s)):Object.entries(r).reduce((t,s)=>{let[n,a]=s;return e(a,n)&&(t[n]=a),t},{})}const te={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Ku(r){switch(r){case te.LEFT:return te.FORCE_LEFT;case te.RIGHT:return te.FORCE_RIGHT;default:return r}}function Ks(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function es(r,e){if(e===r)return!0;const t=Array.isArray(e),s=Array.isArray(r);let n;if(t&&s){if(e.length!=r.length)return!1;for(n=0;n<e.length;n++)if(!es(e[n],r[n]))return!1;return!0}if(t!=s)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const a=e instanceof Date,i=r instanceof Date;if(a&&i)return e.getTime()==r.getTime();if(a!=i)return!1;const l=e instanceof RegExp,d=r instanceof RegExp;if(l&&d)return e.toString()==r.toString();if(l!=d)return!1;const o=Object.keys(e);for(n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=0;n<o.length;n++)if(!es(r[o[n]],e[o[n]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}let Xu=class{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?te.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?te.RIGHT:te.LEFT}};function ae(r,e){return new ae.InputMask(r,e)}function Va(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?ae.MaskedRegExp:jt(r)?ae.MaskedPattern:r===Date?ae.MaskedDate:r===Number?ae.MaskedNumber:Array.isArray(r)||r===Array?ae.MaskedDynamic:ae.Masked&&r.prototype instanceof ae.Masked?r:ae.Masked&&r instanceof ae.Masked?r.constructor:r instanceof Function?ae.MaskedFunction:(console.warn("Mask not found for mask",r),ae.Masked)}function xr(r){if(!r)throw new Error("Options in not defined");if(ae.Masked){if(r.prototype instanceof ae.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof ae.Masked?{mask:r}:ja(r)&&r.mask instanceof ae.Masked?r:{};if(e){const s=e.mask;return{...La(e,(n,a)=>!a.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return ja(r)?{...r}:{mask:r}}function Tt(r){if(ae.Masked&&r instanceof ae.Masked)return r;const e=xr(r),t=Va(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}ae.createMask=Tt;class Xs{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}ae.MaskElement=Xs;const za=90,Yu=89;class ts extends Xs{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return(e=(t=(s=this.input).getRootNode)==null?void 0:t.call(s))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===za&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===Yu&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===za&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}ae.HTMLMaskElement=ts;let Ju=class extends ts{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}};ae.HTMLMaskElement=ts;let Ha=class extends ts{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s<n?s:n}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,n=t&&t.focusOffset;return n==null||s==null||s>n?s:n}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);const n=this.rootElement,a=n.getSelection&&n.getSelection();a&&(a.removeAllRanges(),a.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}};ae.HTMLContenteditableMaskElement=Ha;let Ua=class Pu{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>Pu.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};Ua.MAX_LENGTH=100;class Zu{constructor(e,t){this.el=e instanceof Xs?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new Ha(e):new Ju(e),this.masked=Tt(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Ua,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof ae.Masked)&&this.masked.constructor===Va(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof ae.Masked?e:Tt({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const s=this._listeners[e];s&&s.forEach(n=>n(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,s=this.masked.value,n=this.masked.rawInputValue,a=this.displayValue,i=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==n;this._unmaskedValue=t,this._value=s,this._rawInputValue=n,this.el.value!==a&&(this.el.value=a),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...s}=e,n=!this.maskEquals(t),a=this.masked.optionsIsChanged(s);n&&(this.mask=t),a&&this.masked.updateOptions(s),(n||a)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,te.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Xu({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,a=s===this.masked.rawInputValue?t.removeDirection:te.NONE;let i=this.masked.nearestInputPos(t.startChangePos+n,a);a!==te.NONE&&(i=this.masked.nearestInputPos(i,te.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}ae.InputMask=Zu;class ue{static normalize(e){return Array.isArray(e)?e:[e,new ue]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}ae.ChangeDetails=ue;let $t=class{constructor(e,t,s){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}},ot=class Bs{constructor(e){this._value="",this._update({...Bs.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new $t(this.extractInput(e,t),e)}appendTail(e){return jt(e)&&(e=new $t(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new ue({inserted:e,rawInserted:e})):new ue}_appendChar(e,t,s){t===void 0&&(t={});const n=this.state;let a;if([e,a]=this.doPrepareChar(e,t),e&&(a=a.aggregate(this._appendCharRaw(e,t)),!a.rawInserted&&this.autofix==="pad")){const i=this.state;this.state=n;let l=this.pad(t);const d=this._appendCharRaw(e,t);l=l.aggregate(d),d.rawInserted||l.equals(a)?a=l:this.state=i}if(a.inserted){let i,l=this.doValidate(t)!==!1;if(l&&s!=null){const d=this.state;if(this.overwrite===!0){i=s.state;for(let u=0;u<a.rawInserted.length;++u)s.unshift(this.displayValue.length-a.tailShift)}let o=this.appendTail(s);if(l=o.rawInserted.length===s.toString().length,!(l&&o.inserted)&&this.overwrite==="shift"){this.state=d,i=s.state;for(let u=0;u<a.rawInserted.length;++u)s.shift();o=this.appendTail(s),l=o.rawInserted.length===s.toString().length}l&&o.inserted&&(this.state=d)}l||(a=new ue,this.state=n,s&&i&&(s.state=i))}return a}_appendPlaceholder(){return new ue}_appendEager(){return new ue}append(e,t,s){if(!jt(e))throw new Error("value should be string");const n=jt(s)?new $t(String(s)):s;t!=null&&t.tail&&(t._beforeTailState=this.state);let a;[e,a]=this.doPrepare(e,t);for(let i=0;i<e.length;++i){const l=this._appendChar(e[i],t,n);if(!l.rawInserted&&!this.doSkipInvalid(e[i],t,n))break;a.aggregate(l)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&a.aggregate(this._appendEager()),n!=null&&(a.tailShift+=this.appendTail(n).tailShift),a}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new ue}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,s=this.value,n=e();return this.rawInputValue=t,this.value&&this.value!==s&&s.indexOf(this.value)===0&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,n}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),ue.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),ue.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,n,a){s===void 0&&(s=""),n===void 0&&(n=te.NONE),a===void 0&&(a={input:!0});const i=e+t,l=this.extractTail(i),d=this.eager===!0||this.eager==="remove";let o;d&&(n=Ku(n),o=this.extractInput(0,i,{raw:!0}));let u=e;const p=new ue;if(n!==te.NONE&&(u=this.nearestInputPos(e,t>1&&e!==0&&!d?te.NONE:n),p.tailShift=u-e),p.aggregate(this.remove(u)),d&&n!==te.NONE&&o===this.rawInputValue)if(n===te.FORCE_LEFT){let f;for(;o===this.rawInputValue&&(f=this.displayValue.length);)p.aggregate(new ue({tailShift:-1})).aggregate(this.remove(f-1))}else n===te.FORCE_RIGHT&&l.unshift();return p.aggregate(this.append(s,a,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!es(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||Bs.EMPTY_VALUES.includes(e)&&Bs.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new ue}};ot.DEFAULTS={skipInvalid:!0},ot.EMPTY_VALUES=[void 0,null,""],ae.Masked=ot;let qa=class Jr{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=jt(e)?new $t(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof $t)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Jr){if(e.stop==null){let n;for(;e.chunks.length&&e.chunks[0].stop==null;)n=e.chunks.shift(),n.from+=e.from,this.extend(n)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof ae.MaskedPattern))return new $t(this.toString()).appendTo(e);const t=new ue;for(let s=0;s<this.chunks.length;++s){const n=this.chunks[s],a=e._mapPosToBlock(e.displayValue.length),i=n.stop;let l;if(i!=null&&(!a||a.index<=i)&&((n instanceof Jr||e._stops.indexOf(i)>=0)&&t.aggregate(e._appendPlaceholder(i)),l=n instanceof Jr&&e._blocks[i]),l){const d=l.appendTail(n);t.aggregate(d);const o=n.toString().slice(d.rawInserted.length);o&&t.aggregate(e.append(o,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(n=>{const a="chunks"in n?new Jr:new $t;return a.state=n,a})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const n=this.chunks[s],a=n.unshift(t);if(n.toString()){if(!a)break;++s}else this.chunks.splice(s,1);if(a)return a}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}},Qu=class{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:n}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=n,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,te.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,te.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,te.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,te.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,te.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,te.NONE),!0})}},Ga=class{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new ue}nearestInputPos(e,t){t===void 0&&(t=te.NONE);const s=0,n=this._value.length;switch(t){case te.LEFT:case te.FORCE_LEFT:return s;case te.NONE:case te.RIGHT:case te.FORCE_RIGHT:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new ue;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,a=new ue({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(t.raw||t.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new ue;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new $t("")}appendTail(e){return jt(e)&&(e=new $t(String(e))),e.appendTo(this)}append(e,t,s){const n=this._appendChar(e[0],t);return s!=null&&(n.tailShift+=this.appendTail(s).tailShift),n}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}},rs=class{constructor(e){const{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:l,...d}=e;this.masked=Tt(d),Object.assign(this,{parent:t,isOptional:s,placeholderChar:n,displayChar:a,lazy:i,eager:l})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new ue}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new ue;const s=this.masked.state;let n=this.masked._appendChar(e,this.currentMaskFlags(t));return n.inserted&&this.doValidate(t)===!1&&(n=new ue,this.masked.state=s),!n.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(n.inserted=this.placeholderChar),n.skip=!n.inserted&&!this.isOptional,this.isFilled=!!n.inserted,n}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new ue:(this.isFilled=!0,new ue({inserted:this.placeholderChar}))}_appendEager(){return new ue}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){t===void 0&&(t=te.NONE);const s=0,n=this.value.length,a=Math.min(Math.max(e,s),n);switch(t){case te.LEFT:case te.FORCE_LEFT:return this.isComplete?a:s;case te.RIGHT:case te.FORCE_RIGHT:return this.isComplete?a:n;case te.NONE:default:return a}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new ue}};rs.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};let ec=class extends ot{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}};ae.MaskedRegExp=ec;let it=class Rs extends ot{constructor(e){super({...Rs.DEFAULTS,...e,definitions:Object.assign({},rs.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let s=!1,n=!1;for(let a=0;a<t.length;++a){if(this.blocks){const o=t.slice(a),u=Object.keys(this.blocks).filter(f=>o.indexOf(f)===0);u.sort((f,_)=>_.length-f.length);const p=u[0];if(p){const{expose:f,repeat:_,...m}=xr(this.blocks[p]),v={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...m,repeat:_,parent:this},g=_!=null?new ae.RepeatBlock(v):Tt(v);g&&(this._blocks.push(g),f&&(this.exposeBlock=g),this._maskedBlocks[p]||(this._maskedBlocks[p]=[]),this._maskedBlocks[p].push(this._blocks.length-1)),a+=p.length-1;continue}}let i=t[a],l=i in e;if(i===Rs.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){n=!n;continue}if(i===Rs.ESCAPE_CHAR){if(++a,i=t[a],!i)break;l=!1}const d=l?new rs({isOptional:n,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...xr(e[i]),parent:this}):new Ga({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(d)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...s}=e;this._blocks.forEach((n,a)=>n.state=t[a]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new ue;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return t;this._blocks[s].isFilled&&++s;for(let n=s;n<this._blocks.length;++n){const a=this._blocks[n]._appendEager();if(!a.inserted)break;t.aggregate(a)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._mapPosToBlock(this.displayValue.length),n=new ue;if(!s)return n;for(let i=s.index,l;l=this._blocks[i];++i){var a;const d=l._appendChar(e,{...t,_beforeTailState:(a=t._beforeTailState)==null||(a=a._blocks)==null?void 0:a[i]});if(n.aggregate(d),d.consumed)break}return n}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new qa;return e===t||this._forEachBlocksInRange(e,t,(n,a,i,l)=>{const d=n.extractTail(i,l);d.stop=this._findStopBefore(a),d.from=this._blockStartPos(a),d instanceof qa&&(d.blockIndex=a),s.extend(d)}),s}extractInput(e,t,s){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),s===void 0&&(s={}),e===t)return"";let n="";return this._forEachBlocksInRange(e,t,(a,i,l,d)=>{n+=a.extractInput(l,d,s)}),n}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){const n=this._stops[s];if(n<=e)t=n;else break}return t}_appendPlaceholder(e){const t=new ue;if(this.lazy&&e==null)return t;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;const n=s.index,a=e??this._blocks.length;return this._blocks.slice(n,a).forEach(i=>{if(!i.lazy||e!=null){var l;t.aggregate(i._appendPlaceholder((l=i._blocks)==null?void 0:l.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){const n=this._blocks[s],a=t.length;if(t+=n.displayValue,e<=t.length)return{index:s,offset:e-a}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,s)=>t+=s.displayValue.length,0)}_forEachBlocksInRange(e,t,s){t===void 0&&(t=this.displayValue.length);const n=this._mapPosToBlock(e);if(n){const a=this._mapPosToBlock(t),i=a&&n.index===a.index,l=n.offset,d=a&&i?a.offset:this._blocks[n.index].displayValue.length;if(s(this._blocks[n.index],n.index,l,d),a&&!i){for(let o=n.index+1;o<a.index;++o)s(this._blocks[o],o,0,this._blocks[o].displayValue.length);s(this._blocks[a.index],a.index,0,a.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(n,a,i,l)=>{s.aggregate(n.remove(i,l))}),s}nearestInputPos(e,t){if(t===void 0&&(t=te.NONE),!this._blocks.length)return 0;const s=new Qu(this,e);if(t===te.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===te.LEFT||t===te.FORCE_LEFT){if(t===te.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===te.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===te.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===te.RIGHT||t===te.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===te.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,te.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(n,a,i,l)=>{s+=n.totalInputPositions(i,l)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(s=>this._blocks[s]):[]}pad(e){const t=new ue;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}};it.DEFAULTS={...ot.DEFAULTS,lazy:!0,placeholderChar:"_"},it.STOP_CHAR="`",it.ESCAPE_CHAR="\\",it.InputDefinition=rs,it.FixedDefinition=Ga,ae.MaskedPattern=it;let ss=class extends it{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:s=this.from||0,maxLength:n=this.maxLength||0,autofix:a=this.autofix,...i}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,n),this.autofix=a;const l=String(this.from).padStart(this.maxLength,"0"),d=String(this.to).padStart(this.maxLength,"0");let o=0;for(;o<d.length&&d[o]===l[o];)++o;i.mask=d.slice(0,o).replace(/0/g,"\\0")+"0".repeat(this.maxLength-o),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="";const[,n,a]=e.match(/^(\D*)(\d*)(\D*)/)||[];return a&&(t="0".repeat(n.length)+a,s="9".repeat(n.length)+a),t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[t,s]}doPrepareChar(e,t){t===void 0&&(t={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const s=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),[a,i]=this.boundaries(this.value+e);return Number(i)<this.from?super._appendCharRaw(s[this.value.length],t):Number(a)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(n[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[s,n]=this.boundaries(t);return this.from<=Number(n)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){const t=new ue;if(this.value.length===this.maxLength)return t;const s=this.value,n=this.maxLength-this.value.length;if(n){this.reset();for(let a=0;a<n;++a)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(a=>this._appendCharRaw(a))}return t}};ae.MaskedRange=ss;class Ot extends it{static extractPatternOptions(e){const{mask:t,pattern:s,...n}=e;return{...n,mask:jt(t)?t:s}}constructor(e){super(Ot.extractPatternOptions({...Ot.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:n,...a}={...Ot.DEFAULTS,...e},i=Object.assign({},Ot.GET_DEFAULT_BLOCKS());e.min&&(i.Y.from=e.min.getFullYear()),e.max&&(i.Y.to=e.max.getFullYear()),e.min&&e.max&&i.Y.from===i.Y.to&&(i.m.from=e.min.getMonth()+1,i.m.to=e.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=e.min.getDate(),i.d.to=e.max.getDate())),Object.assign(i,this.blocks,n),super._update({...a,mask:jt(t)?t:s,blocks:i})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(Ot.extractPatternOptions(e))}}Ot.GET_DEFAULT_BLOCKS=()=>({d:{mask:ss,from:1,to:31,maxLength:2},m:{mask:ss,from:1,to:12,maxLength:2},Y:{mask:ss,from:1900,to:9999}}),Ot.DEFAULTS={...it.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),s=String(r.getMonth()+1).padStart(2,"0"),n=r.getFullYear();return[t,s,n].join(".")},parse:(r,e)=>{const[t,s,n]=r.split(".").map(Number);return new Date(n,s-1,t)}},ae.MaskedDate=Ot;let Wa=class Nu extends ot{constructor(e){super({...Nu.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:s,...n}=xr(t),a=Tt({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...n});return s&&(this.exposeMask=a),a}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){e===void 0&&(e=""),t===void 0&&(t={}),s===void 0&&(s="");const n=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,a=this.rawInputValue,i=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:a,l=a.slice(i.length),d=this.currentMask,o=new ue,u=d==null?void 0:d.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==d?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),o.tailShift=this.currentMask.value.length-n.length),l&&(o.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)):u&&(this.currentMask.state=u)),o}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new ue;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return t===void 0&&(t={}),s===void 0&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[s,n]=super.doPrepare(e,t);if(this.currentMask){let a;[s,a]=super.doPrepare(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}doPrepareChar(e,t){t===void 0&&(t={});let[s,n]=super.doPrepareChar(e,t);if(this.currentMask){let a;[s,a]=super.doPrepareChar(s,this.currentMaskFlags(t)),n=n.aggregate(a)}return[s,n]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const s=new ue;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:s,currentMask:n,...a}=e;t&&this.compiledMasks.forEach((i,l)=>i.state=t[l]),s!=null&&(this.currentMask=s,this.currentMask.state=n),super.state=a}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;const{mask:n,...a}=e[s];return es(t,a)&&t.maskEquals(n)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}};Wa.DEFAULTS={...ot.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const n=e.rawInputValue,a=e.compiledMasks.map((i,l)=>{const d=e.currentMask===i,o=d?i.displayValue.length:i.nearestInputPos(i.displayValue.length,te.FORCE_LEFT);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):d||i.remove(o),i.append(r,e.currentMaskFlags(t)),i.appendTail(s),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(o,i.nearestInputPos(i.displayValue.length,te.FORCE_LEFT)))}});return a.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),e.compiledMasks[a[0].index]}},ae.MaskedDynamic=Wa;class ns extends it{constructor(e){super({...ns.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const n=t.map(l=>l.length),a=Math.min(...n),i=Math.max(...n)-a;s.mask="*".repeat(a),i&&(s.mask+="["+"*".repeat(i)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){t===void 0&&(t={});const s=Math.min(this.nearestInputPos(0,te.FORCE_RIGHT),this.value.length),n=this.enum.filter(a=>this.matchValue(a,this.unmaskedValue+e,s));if(n.length){n.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,l)=>{const d=n[0][l];l>=this.value.length||d===i.value||(i.reset(),i._appendChar(d,t))});const a=super._appendCharRaw(n[0][this.value.length],t);return n.length===1&&n[0].slice(this.unmaskedValue.length).split("").forEach(i=>a.aggregate(super._appendCharRaw(i))),a}return new ue({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new $t("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new ue;const s=Math.min(super.nearestInputPos(0,te.FORCE_RIGHT),this.value.length);let n;for(n=e;n>=0&&!(this.enum.filter(i=>this.matchValue(i,this.value.slice(s,n),s)).length>1);--n);const a=super.remove(n,t);return a.tailShift+=n-e,a}get isComplete(){return this.enum.indexOf(this.value)>=0}}ns.DEFAULTS={...it.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},ae.MaskedEnum=ns;let tc=class extends ot{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};ae.MaskedFunction=tc;var Ka;let Ar=class Kt extends ot{constructor(e){super({...Kt.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+Ks(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Ks).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Ks(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[s,n]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(n.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&n.aggregate(this._appendChar("-")),[s,n]}_separatorsCount(e,t){t===void 0&&(t=!1);let s=0;for(let n=0;n<e;++n)this._value.indexOf(this.thousandsSeparator,n)===n&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){t===void 0&&(t={});const s=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const a=this._value;this._value+=e;const i=this.number;let l=!isNaN(i),d=!1;if(l){let f;this.min!=null&&this.min<0&&this.number<this.min&&(f=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(f=this.max),f!=null&&(this.autofix?(this._value=this.format(f,this).replace(Kt.UNMASKED_RADIX,this.radix),d||(d=a===this._value&&!t.tail)):l=!1),l&&(l=!!this._value.match(this._numberRegExp))}let o;l?o=new ue({inserted:this._value.slice(a.length),rawInserted:d?"":e,skip:d}):(this._value=a,o=new ue),this._value=this._insertThousandsSeparators(this._value);const u=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,p=this._separatorsCountFromSlice(u);return o.tailShift+=(p-n)*this.thousandsSeparator.length,o}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,t){const s=this._findSeparatorAround(e);s>=0&&(e=s);const n=this._findSeparatorAround(t);return n>=0&&(t=n+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const s=this.value.slice(0,e),n=this.value.slice(t),a=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+n));const i=this._separatorsCountFromSlice(s);return new ue({tailShift:(i-a)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case te.NONE:case te.LEFT:case te.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const n=s+this.thousandsSeparator.length;if(e<n||this.value.length<=n||t===te.FORCE_LEFT)return s}break}case te.RIGHT:case te.FORCE_RIGHT:{const s=this._findSeparatorAround(e);if(s>=0)return s+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(s,n,a,i)=>n+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){t===void 0&&(t={});const n=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===Kt.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!n}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Kt.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(Kt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||Kt.EMPTY_VALUES.includes(e)&&Kt.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}};Ka=Ar,Ar.UNMASKED_RADIX=".",Ar.EMPTY_VALUES=[...ot.EMPTY_VALUES,0],Ar.DEFAULTS={...ot.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Ka.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ae.MaskedNumber=Ar;const Ys={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Xa(r,e,t){e===void 0&&(e=Ys.MASKED),t===void 0&&(t=Ys.MASKED);const s=Tt(r);return n=>s.runIsolated(a=>(a[e]=n,a[t]))}function rc(r,e,t,s){return Xa(e,t,s)(r)}ae.PIPE_TYPE=Ys,ae.createPipe=Xa,ae.pipe=rc;class sc extends it{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,n;const{repeat:a,...i}=xr(e);this._blockOpts=Object.assign({},this._blockOpts,i);const l=Tt(this._blockOpts);this.repeat=(t=(s=a??l.repeat)!=null?s:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((n=this._blocks)==null?void 0:n.length)||0,this.repeatFrom)),blocks:{m:l},eager:l.eager,overwrite:l.overwrite,skipInvalid:l.skipInvalid,lazy:l.lazy,placeholderChar:l.placeholderChar,displayChar:l.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Tt(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new ue;for(let d=(n=(a=this._mapPosToBlock(this.displayValue.length))==null?void 0:a.index)!=null?n:Math.max(this._blocks.length-1,0),o,u;o=(i=this._blocks[d])!=null?i:u=!u&&this._allocateBlock(d);++d){var n,a,i,l;const p=o._appendChar(e,{...t,_beforeTailState:(l=t._beforeTailState)==null||(l=l._blocks)==null?void 0:l[d]});if(p.skip&&u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(p),p.consumed)break}return s}_trimEmptyTail(e,t){var s,n;e===void 0&&(e=0);const a=Math.max(((s=this._mapPosToBlock(e))==null?void 0:s.index)||0,this.repeatFrom,0);let i;t!=null&&(i=(n=this._mapPosToBlock(t))==null?void 0:n.index),i==null&&(i=this._blocks.length-1);let l=0;for(let d=i;a<=d&&!this._blocks[d].unmaskedValue;--d,++l);l&&(this._blocks.splice(i-l+1,l),this.mask=this.mask.slice(l))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}ae.RepeatBlock=sc;try{globalThis.IMask=ae}catch{}const Ya={mask:A.oneOfType([A.array,A.func,A.string,A.instanceOf(RegExp),A.oneOf([Date,Number,ae.Masked]),A.instanceOf(ae.Masked)]),value:A.any,unmask:A.oneOfType([A.bool,A.oneOf(["typed"])]),prepare:A.func,prepareChar:A.func,validate:A.func,commit:A.func,overwrite:A.oneOfType([A.bool,A.oneOf(["shift"])]),eager:A.oneOfType([A.bool,A.oneOf(["append","remove"])]),skipInvalid:A.bool,onAccept:A.func,onComplete:A.func,placeholderChar:A.string,displayChar:A.string,lazy:A.bool,definitions:A.object,blocks:A.object,enum:A.arrayOf(A.string),maxLength:A.number,from:A.number,to:A.number,pattern:A.string,format:A.func,parse:A.func,autofix:A.oneOfType([A.bool,A.oneOf(["pad"])]),radix:A.string,thousandsSeparator:A.string,mapToRadix:A.arrayOf(A.string),scale:A.number,normalizeZeros:A.bool,padFractionalZeros:A.bool,min:A.oneOfType([A.number,A.instanceOf(Date)]),max:A.oneOfType([A.number,A.instanceOf(Date)]),dispatch:A.func,inputRef:A.oneOfType([A.func,A.shape({current:A.object})])},Ja=Object.keys(Ya).filter(r=>r!=="value"),nc=["value","unmask","onAccept","onComplete","inputRef"],ac=Ja.filter(r=>nc.indexOf(r)<0);function oc(r){var e;const t=(e=class extends K.Component{constructor(n){super(n),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const n=this.props,a=this._extractMaskOptionsFromProps(n);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in n&&n.value!==void 0&&(this.maskValue=n.value)):this.initMask(a);else if(this.destroyMask(),"value"in n&&n.value!==void 0){var i;(i=this.element)!=null&&i.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=n.value:this.element.value=n.value}}componentWillUnmount(){this.destroyMask()}_inputRef(n){this.element=n,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=n:this.props.inputRef(n))}initMask(n){n===void 0&&(n=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ae(this.element,n).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(n){const{...a}=n;return Object.keys(a).filter(i=>ac.indexOf(i)<0).forEach(i=>{delete a[i]}),a}_extractNonMaskProps(n){const{...a}=n;return Ja.forEach(i=>{i!=="maxLength"&&delete a[i]}),"defaultValue"in a||(a.defaultValue=n.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(n){this.maskRef&&(n=n==null&&this.props.unmask!=="typed"?"":n,this.props.unmask==="typed"?this.maskRef.typedValue=n:this.props.unmask?this.maskRef.unmaskedValue=n:this.maskRef.value=n)}_onAccept(n){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,n)}_onComplete(n){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,n)}render(){return K.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=r.displayName||r.name||"Component";return t.displayName="IMask("+s+")",t.propTypes=Ya,K.forwardRef((n,a)=>K.createElement(t,{...n,ref:a}))}const ic=oc(r=>{let{inputRef:e,...t}=r;return K.createElement("input",{...t,ref:e})}),lc=(r,e)=>K.createElement(ic,{...r,ref:e});K.forwardRef(lc);function uc(r,e){let{onAccept:t,onComplete:s,ref:n=K.useRef(null),defaultValue:a,defaultUnmaskedValue:i,defaultTypedValue:l}=e===void 0?{}:e;const d=K.useRef(null),[o,u]=K.useState({}),[p,f]=K.useState(""),[_,m]=K.useState(""),[v,g]=K.useState(),y=K.useCallback(()=>{var S;(S=d.current)==null||S.destroy(),d.current=null},[]),h=K.useCallback(()=>{const S=d.current;S&&(u({value:S.value,unmaskedValue:S.unmaskedValue,typedValue:S.typedValue}),g(S.typedValue),m(S.unmaskedValue),f(S.value))},[]),b=K.useCallback(S=>{const O=d.current;O&&(h(),t==null||t(O.value,O,S))},[t]),$=K.useCallback(S=>d.current&&(s==null?void 0:s(d.current.value,d.current,S)),[s]);return K.useEffect(()=>{const{value:S,...O}=o,N=d.current;!N||p===void 0||(S!==p&&(N.value=p,N.value!==p&&b()),u(O))},[p]),K.useEffect(()=>{const{unmaskedValue:S,...O}=o,N=d.current;!N||_===void 0||(S!==_&&(N.unmaskedValue=_,N.unmaskedValue!==_&&b()),u(O))},[_]),K.useEffect(()=>{const{typedValue:S,...O}=o,N=d.current;!N||v===void 0||(S!==v&&(N.typedValue=v,N.masked.typedValueEquals(v)||b()),u(O))},[v]),K.useEffect(()=>{const S=n.current;if(!S||!(r!=null&&r.mask))return y();const O=d.current;O?O==null||O.updateOptions(r):S&&r!=null&&r.mask&&(d.current=ae(S,r),h(),a!==void 0&&f(a),i!==void 0&&m(i),l!==void 0&&g(l))},[r,y,b]),K.useEffect(()=>{if(!d.current)return;const S=d.current;return S.on("accept",b),S.on("complete",$),()=>{S.off("accept",b),S.off("complete",$)}},[b,$]),K.useEffect(()=>y,[y]),{ref:n,maskRef:d,value:p,setValue:f,unmaskedValue:_,setUnmaskedValue:m,typedValue:v,setTypedValue:g}}const Za={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Qa={Small:"small",Medium:"medium",Large:"large"},eo={Default:"",Error:"error",Success:"success"},cc={Center:"center"},dc={Top:"top"},ke={class:"ds-input",props:{testId:{default:"ds-input-test"},type:{default:Za.Text,options:Object.values(Za)},animated:{default:!0},disabled:{default:!1},size:{default:Qa.Medium,options:Object.values(Qa)},status:{default:eo.Default,options:Object.values(eo)},hasFeedback:{default:!0},noMargin:{default:!1},icon:{default:""},tooltip:{default:""},tooltipPlacement:{default:cc.Center},tooltipPosition:{default:dc.Top},onChangeHandler:{default:()=>({})}}},to={currency:{mask:"currency",blocks:{currency:{mask:"R$ num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:".",padFractionalZeros:!0,normalizeZeros:!1,radix:",",mapToRadix:[",","."]}}}}},document:{mask:[{mask:"000.000.000-00",startsWith:/[0-9]/,maxLength:14},{mask:"00.000.000/0000-00",startsWith:/[0-9]/,maxLength:18}]},"phone-br":{mask:[{mask:"(00) 0000-0000"},{mask:"(00) 00000-0000"}],dispatch:(r,e)=>(e.value+r).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}},ro={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},so={Center:"center",End:"end",Initial:"initial"},Pt={class:"ds-tooltip",props:{position:{default:ro.Top,options:Object.values(ro)},placement:{default:so.Center,options:Object.values(so)},text:{default:""}}},Cr=({children:r,position:e=Pt.props.position.default,placement:t=Pt.props.placement.default,text:s=Pt.props.text.default,className:n})=>{const a=K.useRef(null),[i,l]=K.useState(0),[d,o]=K.useState(0),[u,p]=K.useState(!1),f=e&&Pt.props.position.options.find(y=>y===e)&&`${Pt.class}--${e}`,_=t&&Pt.props.placement.options.find(y=>y===t)&&`${Pt.class}--${t}`;let m;K.useLayoutEffect(()=>{var y,h;a.current&&(l((y=a==null?void 0:a.current)==null?void 0:y.offsetHeight),o((h=a==null?void 0:a.current)==null?void 0:h.offsetWidth))},[]),K.useEffect(()=>(document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}),[]);const v=9;switch(e){case"top":t==="initial"?m={bottom:i+v,left:-9}:t==="end"?m={bottom:i+v,right:-9}:m={bottom:i+v,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?m={top:i+v,left:-9}:t==="end"?m={top:i+v,right:-9}:m={top:i+v,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?m={right:d+v,top:-9}:t==="end"?m={right:d+v,bottom:-9}:m={right:d+v,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?m={left:d+v,top:-9}:t==="end"?m={left:d+v,bottom:-9}:m={left:d+v,top:"50%",transform:"translateY(-50%)"};break}const g=({target:y})=>{a.current&&a.current.contains(y)||p(!1)};return M.jsxs("span",{className:[Pt.class,n].join(" "),"data-testid":"ds-tooltip",onClick:()=>p(!u),ref:a,children:[r,u&&M.jsx("span",{className:[f,_].filter(y=>y).join(" "),children:M.jsx("span",{className:`${Pt.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:m,children:s})})]})};Cr.propTypes={position:A.string,placement:A.string,text:A.oneOfType([A.string,A.node])},Cr.displayName="DsTooltip";const no=K.forwardRef(({name:r,testId:e=ke.props.testId.default,type:t=ke.props.type.default,animated:s=ke.props.animated.default,size:n=ke.props.size.default,label:a,placeholder:i,value:l,min:d,max:o,tooltip:u=ke.props.tooltip.default,tooltipPosition:p=ke.props.tooltipPosition.default,tooltipPlacement:f=ke.props.tooltipPlacement.default,icon:_=ke.props.icon.default,status:m=ke.props.status.default,feedback:v,hasFeedback:g=ke.props.hasFeedback.default,noMargin:y=ke.props.noMargin.default,disabled:h=ke.props.disabled.default,className:b,mask:$,onChangeHandler:S=ke.props.onChangeHandler.default,onBlurHandler:O,onKeyDownHandler:N,onFocusHandler:R},V)=>{const[I,T]=K.useState(!1),[B,j]=K.useState(!1),U=!!S&&!!$,W=(z,q,Z)=>{if(U&&Z){const H={...Z,target:{...Z.target,name:r,maskedValue:z,value:q.unmaskedValue,type:"text"}};S(H)}},X=K.useMemo(()=>typeof $=="object"?{lazy:!0,...$}:to[$]?{...to[$],min:d,max:o,lazy:!0}:{mask:$||"",min:d,max:o,lazy:!0},[$]),{ref:se,setUnmaskedValue:J}=uc(X,{onAccept:W}),ne=z=>{S&&!U&&S(z)},P=z=>{N&&N(z)},k=z=>{T(!1),O&&O(z)},x=z=>{T(!0),R&&R(z)},E=()=>{j(z=>!z)},c=K.useMemo(()=>B&&t==="password"?"text":t,[B,t]),w=()=>{const z=[`${ke.class}`];return n&&z.push(`${ke.class}--${n}`),s&&z.push(`${ke.class}--animated`),y&&z.push(`${ke.class}--no-margin`),_&&z.push(`${ke.class}--with-icon`),m&&z.push(`${ke.class}--${m}`),b&&z.push(b),z.join(" ")},C=K.useMemo(()=>{const z=[`${ke.class}__label`];return(I||l)&&z.push(`${ke.class}__label--active`),z.join(" ")},[l,I]),L=()=>!s&&i?i:"",F=()=>m&&m==="error"?"info":"check_circle";return K.useEffect(()=>{$&&J(l||"")},[l,$,J]),M.jsxs("div",{className:w(),ref:V,children:[g&&M.jsx("div",{className:"ds-input__feedback",children:v&&M.jsxs(M.Fragment,{children:[M.jsx(xe,{image:F()}),v]})}),M.jsx("input",{className:"ds-input__input","data-testid":e,disabled:h,id:r,max:o,min:d,name:r,onBlur:k,onChange:ne,onFocus:x,onInput:ne,onKeyDown:P,placeholder:L(),ref:se,type:c,...!$&&{value:l||""}}),M.jsxs("label",{className:C,htmlFor:r,children:[a,u&&M.jsx(Cr,{className:"ds-input__tooltip",placement:f,position:p,text:u,children:M.jsx(xe,{className:"ds-input__icon",image:"info"})})]}),_&&M.jsx(xe,{className:"ds-input__icon",image:_}),t==="password"&&M.jsx(xe,{className:"ds-input__password-icon",image:B?"visibility_off":"visibility",onClick:E,size:"xl"})]})});no.propTypes={name:A.string,testId:A.string,type:A.oneOf(ke.props.type.options),animated:A.bool,size:A.oneOf(ke.props.size.options),label:A.string,placeholder:A.string,value:A.oneOfType([A.string]),min:A.string,max:A.string,tooltip:A.string,tooltipPosition:A.string,tooltipPlacement:A.string,icon:A.string,status:A.oneOf(ke.props.status.options),feedback:A.string,hasFeedback:A.bool,noMargin:A.bool,disabled:A.bool,mask:A.oneOfType([A.string,A.object]),onChangeHandler:A.func,onFocusHandler:A.func},no.displayName="DsInput";const hc={Small:"small",Medium:"medium",Large:"large"},pc={props:{size:{options:Object.values(hc)}}};A.string,A.string,A.oneOf(pc.props.size.options),A.bool,A.bool,A.string,A.string,A.string,A.string,A.oneOfType([A.string,A.node]),A.oneOfType([A.string,A.number]),A.string,A.bool,A.bool,A.func;const ao={Default:"",Large:"large",Small:"small"},as={class:"ds-paragraph",props:{type:{default:ao.Default,options:Object.values(ao)}}},wt=({children:r,className:e,testId:t="ds-paragraph-test",type:s=as.props.type.default})=>{const n=s&&`${as.class}--${s}`;return M.jsx("p",{className:[as.class,n,e&&e].filter(a=>a).join(" "),"data-testid":t,children:r})};wt.propTypes={className:A.string,testId:A.string,type:A.oneOf(as.props.type.options)},wt.displayName="DsParagraph";const Js={class:"ds-flex-element",props:{flex:{default:"0 1 auto"},className:{default:""}}},ve=({children:r,flex:e=Js.props.flex.default,className:t=Js.props.className.default})=>{const s=()=>[Js.class,t].join(" "),n=()=>({flex:e});return M.jsx("div",{className:s(),style:n(),children:r})};ve.propTypes={className:A.string,flex:A.string},ve.displayName="DsFlexElement";const fc={Stretch:"stretch"},mc={Stretch:"stretch"},gc={Row:"row"},yc={Wrap:"wrap"},Yt={class:"ds-flex-layout",props:{justifyContent:{default:fc.Stretch},alignItems:{default:mc.Stretch},flexDirection:{default:gc.Row},flexWrap:{default:yc.Wrap},width:{default:"100%"}}},Re=({children:r,className:e,justifyContent:t=Yt.props.justifyContent.default,alignItems:s=Yt.props.alignItems.default,flexDirection:n=Yt.props.flexDirection.default,flexWrap:a=Yt.props.flexWrap.default,width:i=Yt.props.width.default,height:l,gap:d})=>{const o=()=>{const p=[Yt.class,e];return d&&p.push(`${Yt.class}--gap-${d}`),p.join(" ")},u=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:n,flexWrap:a,width:i,height:l,gap:d});return M.jsx("div",{className:o(),style:u(),children:r})};Re.propTypes={className:A.string,justifyContent:A.string,alignItems:A.string,flexDirection:A.string,flexWrap:A.string,width:A.string,height:A.string,gap:A.string},Re.displayName="DsFlexLayout";const os={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},Tr={class:"ds-spacer",props:{vertical:{default:os.None,options:Object.values(os)},horizontal:{default:os.None,options:Object.values(os)}}},Oe=({vertical:r=Tr.props.vertical.default,horizontal:e=Tr.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return M.jsx("div",{className:[Tr.class,t,s].filter(n=>n).join(" "),"data-testid":"ds-spacer"})};Oe.propTypes={vertical:A.oneOf(Tr.props.vertical.options),horizontal:A.oneOf(Tr.props.horizontal.options)},Oe.displayName="DsSpacer",A.string,A.number,A.string;const oo={Small:"sm",Medium:"md",Large:"lg"},io={Default:"",Error:"error",Success:"success"},vc={Initial:"initial"},_c={Top:"top"},we={class:"ds-select",props:{animated:{default:!0},disabled:{default:!1},multiple:{default:!1},testId:{default:"ds-select-test"},size:{options:Object.values(oo),default:oo.Medium},status:{default:io.Default,options:Object.values(io)},tooltipPlacement:{default:vc.Initial},tooltipPosition:{default:_c.Top}}},lo=K.forwardRef(({label:r,className:e,disabled:t=we.props.disabled.default,animated:s=we.props.animated.default,multiple:n=we.props.multiple.default,testId:a=we.props.testId.default,name:i,options:l,value:d,placeholder:o,onChange:u,onChangeHandler:p,size:f=we.props.size.default,status:_=we.props.status.default,tooltip:m,tooltipPosition:v=we.props.tooltipPosition.default,tooltipPlacement:g=we.props.tooltipPlacement.default,feedback:y,...h},b)=>{const[$,S]=K.useState(!1),O=V=>{S(!1),u&&u(V,V.target.value),p&&p(V,V.target.value)},N=()=>{const V=[we.class,"select-placeholder"];return V.push(`${we.class}--${f}`),_&&V.push(`${we.class}--${_}`),$&&V.push(`${we.class}--active`),t&&V.push(`${we.class}--disabled`),e&&V.push(e),V.join(" ")},R=K.useMemo(()=>{const V=[`${we.class}__label`];return!s&&V.push(`${we.class}__label--not-animated`),d&&V.push(`${we.class}__label--has-value`),s&&!d&&!m&&V.push(`${we.class}__label--hidden`),V.join(" ")},[d]);return M.jsxs("div",{className:N(),"data-testid":"ds-select-component",children:[r&&M.jsxs("label",{className:R,"data-testid":"ds-label-id",htmlFor:i,children:[r,m&&M.jsx(Cr,{className:`${we.class}__tooltip`,placement:g,position:v,text:m,children:M.jsx(xe,{className:`${we.class}__icon`,image:"info"})})]}),M.jsxs("select",{"data-testid":a,disabled:t,id:i,multiple:n,name:i,onChange:V=>O(V),value:d||"",...h,onBlur:()=>S(!1),onFocus:()=>S(!0),ref:b,required:!0,children:[(o||s)&&M.jsx("option",{disabled:!0,value:"",children:o??r}),l==null?void 0:l.map((V,I)=>{var T;return"options"in V?M.jsx("optgroup",{label:V.label,children:(T=V.options)==null?void 0:T.map((B,j)=>M.jsx("option",{className:`${we.class}__option-select`,value:B.value,children:B.label||B.value},j))},I):M.jsx("option",{className:`${we.class}__option-select`,value:V.value,children:V.label||V.value},I)})]}),y&&M.jsxs("div",{className:"ds-select__feedback-container",children:[M.jsx(xe,{className:"ds-select__icon",image:_==="success"?"check_circle":"info"}),M.jsx("span",{className:"ds-select__feedback",children:y})]})]})});lo.propTypes={label:A.string.isRequired,className:A.string,disabled:A.bool,animated:A.bool,multiple:A.bool,name:A.string,testId:A.string,options:A.array.isRequired,placeholder:A.string,onChange:A.func,onChangeHandler:A.func,value:A.oneOfType([A.string,A.number]),size:A.oneOf(we.props.size.options),status:A.oneOf(we.props.status.options),tooltip:A.string,tooltipPosition:A.string,tooltipPlacement:A.string,feedback:A.string},lo.displayName="DsSelect";const uo={Small:"small",Medium:"medium",Large:"large"},bc={Text:"text"},co={None:"",Error:"error",Success:"success"},ho={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},Pe={class:"ds-textarea",props:{testId:{default:"ds-textarea-test"},type:{options:Object.values(bc)},animated:{default:!0},disabled:{default:!1},size:{default:uo.Medium,options:Object.values(uo)},rows:{default:1},status:{default:co.None,options:Object.values(co)},resize:{default:ho.None,options:Object.values(ho)}}},po=K.forwardRef(({name:r,testId:e=Pe.props.testId.default,animated:t=Pe.props.animated.default,size:s=Pe.props.size.default,label:n,placeholder:a,value:i,minLength:l,maxLength:d,tooltip:o,icon:u,status:p=Pe.props.status.default,feedback:f,disabled:_=Pe.props.disabled.default,required:m,className:v,resize:g=Pe.props.resize.default,onChangeHandler:y,onBlurHandler:h,onKeyDownHandler:b,onFocusHandler:$,rows:S=Pe.props.rows.default,cols:O,description:N,style:R},V)=>{const[I,T]=K.useState(!1),[B,j]=K.useState(0),[U,W]=K.useState(Math.random());K.useEffect(()=>{i==null&&W(Math.random())},[i]);const X=w=>{j(w.target.value.length),y&&y(w)},se=w=>{b&&b(w)},J=w=>{T(!1),h&&h(w)},ne=w=>{T(!0),$&&$(w)},P=()=>{const w=[`${Pe.class}`];return s&&w.push(`${Pe.class}--${s}`),t&&w.push(`${Pe.class}--animated`),o&&w.push(`${Pe.class}--with-icon`),p&&w.push(`${Pe.class}--${p}`),v&&w.push(v),w.join(" ")},k=K.useMemo(()=>{const w=[`${Pe.class}__label`];return(I||i)&&w.push(`${Pe.class}__label--active`),w.join(" ")},[i,I]),x=()=>!t&&a?a:"",E=()=>p&&p==="error"?"info":"check_circle",c={resize:g,...R||{}};return M.jsxs("div",{className:P(),children:[N&&M.jsx("span",{className:"ds-textarea__description",children:N}),f&&M.jsxs("div",{className:"ds-textarea__feedback",children:[M.jsx(xe,{image:E()}),f]}),M.jsx("textarea",{className:"ds-textarea__textarea",cols:O,"data-testid":e,defaultValue:i||"",disabled:_,id:r,maxLength:d,minLength:l,name:r,onBlur:J,onChange:X,onFocus:ne,onKeyDown:se,placeholder:x(),ref:V,required:m,rows:S,style:c}),M.jsx("label",{className:k,htmlFor:r,children:n}),d&&M.jsxs("span",{className:"ds-textarea__count",children:[B,"/",d]}),o&&M.jsx(Cr,{className:"ds-textarea__tooltip",placement:"end",text:o,children:M.jsx(xe,{className:"ds-textarea__icon",image:u})})]},U)});po.propTypes={name:A.string,testId:A.string,type:A.oneOf(Pe.props.type.options),animated:A.bool,size:A.oneOf(Pe.props.size.options),label:A.string,placeholder:A.string,value:A.oneOfType([A.string]),tooltip:A.string,icon:A.string,status:A.oneOf(Pe.props.status.options),feedback:A.string,minLength:A.number,maxLength:A.number,rows:A.number,cols:A.number,disabled:A.bool,required:A.bool,onChangeHandler:A.func,onBlur:A.func,onKeyDown:A.func,onFocus:A.func,resize:A.oneOf(Pe.props.resize.options).isRequired,description:A.string,style:A.object},po.displayName="DsTextArea",A.node,A.bool,A.string,A.object,A.string;const kc={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},fo={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Zs={props:{gap:{options:Object.values(kc)},horizontalAlign:{options:Object.values(fo)},verticalAlign:{options:Object.values(fo)}}};A.oneOfType([A.arrayOf(A.node),A.node,A.func]),A.string,A.oneOf(Zs.props.gap.options),A.bool,A.bool,A.string,A.string,A.oneOf(Zs.props.horizontalAlign.options),A.oneOf(Zs.props.verticalAlign.options),A.bool,A.oneOfType([A.element,A.string]),A.oneOfType([A.element,A.string]),A.bool,A.array,A.number,A.arrayOf(A.shape({title:A.string.isRequired,image:A.string.isRequired,description:A.string.isRequired})).isRequired,A.number,A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.oneOfType([A.number,A.string]),A.string;const $c=[1,2,3,4],wc={Squared:"squared",Rounded:"rounded"},mo={props:{elevation:{options:$c},variant:{options:Object.values(wc)}}};A.string,A.string,A.string,A.oneOf(mo.props.variant.options),A.oneOf(mo.props.elevation.options),A.bool,A.node,A.node,A.func,A.array,A.string,A.string,A.string,A.node.isRequired,A.string;const Ec={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},Sc={props:{position:{options:Object.values(Ec)}}};A.oneOf(Sc.props.position.options),A.bool,A.array,A.func,A.node.isRequired,A.node.isRequired,A.string,A.string,A.bool,A.node,A.node,A.node,A.node;const xc=({categories:r=[],onClick:e,title:t="Categorias"})=>{const s=i=>{e(i)},[n,a]=K.useState(null);return M.jsxs("div",{className:"category-cards","data-testid":"category-cards",children:[M.jsx(Oe,{vertical:"xxs"}),M.jsx(kt,{type:"heading-5",className:"color__neutral--90",children:t}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"category-cards__grid",children:M.jsx(Re,{gap:"xxxs",children:r.map(i=>M.jsx(ve,{flex:"0 0 32%",children:M.jsx("div",{className:`category-cards__card ${n===i.id?"category-cards__card--hovered":""}`,"data-testid":`category-card-${i.id}`,onClick:()=>s(i.id),onMouseEnter:()=>a(i.id),onMouseLeave:()=>a(null),role:"button",tabIndex:0,children:M.jsxs(ur,{className:"category-card",testId:`category-card-item-${i.id}`,elevation:n===i.id?0:2,backgroundColor:n===i.id?"secondary-lightest":"neutral-00",children:[M.jsx(Oe,{vertical:"nano"}),M.jsxs(Re,{alignItems:"center",flexDirection:"column",gap:"nano",children:[M.jsx(ve,{children:M.jsx(xe,{color:"secondary-dark","data-testid":`category-card-icon-${i.id}`,image:i.attributes.icon,size:"xxxl"})}),M.jsx(ve,{children:M.jsx(kt,{className:"color__neutral--80","data-testid":`category-card-title-${i.id}`,type:"heading-6",children:i.attributes.name})})]}),M.jsx(Oe,{vertical:"nano"})]})})},i.id))})})]})};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ac(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),t}var Qs={exports:{}},go={},lt={},cr={},dr={},ie={},hr={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class e{}r._CodeOrName=e,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(h){if(super(),!r.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class s extends e{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((b,$)=>`${b}${$}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((b,$)=>($ instanceof t&&(b[$.str]=(b[$.str]||0)+1),b),{})}}r._Code=s,r.nil=new s("");function n(y,...h){const b=[y[0]];let $=0;for(;$<h.length;)l(b,h[$]),b.push(y[++$]);return new s(b)}r._=n;const a=new s("+");function i(y,...h){const b=[_(y[0])];let $=0;for(;$<h.length;)b.push(a),l(b,h[$]),b.push(a,_(y[++$]));return d(b),new s(b)}r.str=i;function l(y,h){h instanceof s?y.push(...h._items):h instanceof t?y.push(h):y.push(p(h))}r.addCodeArg=l;function d(y){let h=1;for(;h<y.length-1;){if(y[h]===a){const b=o(y[h-1],y[h+1]);if(b!==void 0){y.splice(h-1,3,b);continue}y[h++]="+"}h++}}function o(y,h){if(h==='""')return y;if(y==='""')return h;if(typeof y=="string")return h instanceof t||y[y.length-1]!=='"'?void 0:typeof h!="string"?`${y.slice(0,-1)}${h}"`:h[0]==='"'?y.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(y instanceof t))return`"${y}${h.slice(1)}`}function u(y,h){return h.emptyStr()?y:y.emptyStr()?h:i`${y}${h}`}r.strConcat=u;function p(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:_(Array.isArray(y)?y.join(","):y)}function f(y){return new s(_(y))}r.stringify=f;function _(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=_;function m(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new s(`.${y}`):n`[${y}]`}r.getProperty=m;function v(y){if(typeof y=="string"&&r.IDENTIFIER.test(y))return new s(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}r.getEsmExportName=v;function g(y){return new s(y.toString())}r.regexpCode=g})(hr);var en={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=hr;class t extends Error{constructor(o){super(`CodeGen: "code" for ${o} not defined`),this.value=o.value}}var s;(function(d){d[d.Started=0]="Started",d[d.Completed=1]="Completed"})(s||(r.UsedValueState=s={})),r.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class n{constructor({prefixes:o,parent:u}={}){this._names={},this._prefixes=o,this._parent=u}toName(o){return o instanceof e.Name?o:this.name(o)}name(o){return new e.Name(this._newName(o))}_newName(o){const u=this._names[o]||this._nameGroup(o);return`${o}${u.index++}`}_nameGroup(o){var u,p;if(!((p=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||p===void 0)&&p.has(o)||this._prefixes&&!this._prefixes.has(o))throw new Error(`CodeGen: prefix "${o}" is not allowed in this scope`);return this._names[o]={prefix:o,index:0}}}r.Scope=n;class a extends e.Name{constructor(o,u){super(u),this.prefix=o}setValue(o,{property:u,itemIndex:p}){this.value=o,this.scopePath=(0,e._)`.${new e.Name(u)}[${p}]`}}r.ValueScopeName=a;const i=(0,e._)`\n`;class l extends n{constructor(o){super(o),this._values={},this._scope=o.scope,this.opts={...o,_n:o.lines?i:e.nil}}get(){return this._scope}name(o){return new a(o,this._newName(o))}value(o,u){var p;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(o),{prefix:_}=f,m=(p=u.key)!==null&&p!==void 0?p:u.ref;let v=this._values[_];if(v){const h=v.get(m);if(h)return h}else v=this._values[_]=new Map;v.set(m,f);const g=this._scope[_]||(this._scope[_]=[]),y=g.length;return g[y]=u.ref,f.setValue(u,{property:_,itemIndex:y}),f}getValue(o,u){const p=this._values[o];if(p)return p.get(u)}scopeRefs(o,u=this._values){return this._reduceValues(u,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,e._)`${o}${p.scopePath}`})}scopeCode(o=this._values,u,p){return this._reduceValues(o,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,p)}_reduceValues(o,u,p={},f){let _=e.nil;for(const m in o){const v=o[m];if(!v)continue;const g=p[m]=p[m]||new Map;v.forEach(y=>{if(g.has(y))return;g.set(y,s.Started);let h=u(y);if(h){const b=this.opts.es5?r.varKinds.var:r.varKinds.const;_=(0,e._)`${_}${b} ${y} = ${h};${this.opts._n}`}else if(h=f==null?void 0:f(y))_=(0,e._)`${_}${h}${this.opts._n}`;else throw new t(y);g.set(y,s.Completed)})}return _}}r.ValueScope=l})(en),function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const e=hr,t=en;var s=hr;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return s.Name}});var n=en;Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),r.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class a{optimizeNodes(){return this}optimizeNames(c,w){return this}}class i extends a{constructor(c,w,C){super(),this.varKind=c,this.name=w,this.rhs=C}render({es5:c,_n:w}){const C=c?t.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${C} ${this.name}${L};`+w}optimizeNames(c,w){if(c[this.name.str])return this.rhs&&(this.rhs=U(this.rhs,c,w)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(c,w,C){super(),this.lhs=c,this.rhs=w,this.sideEffects=C}render({_n:c}){return`${this.lhs} = ${this.rhs};`+c}optimizeNames(c,w){if(!(this.lhs instanceof e.Name&&!c[this.lhs.str]&&!this.sideEffects))return this.rhs=U(this.rhs,c,w),this}get names(){const c=this.lhs instanceof e.Name?{}:{...this.lhs.names};return j(c,this.rhs)}}class d extends l{constructor(c,w,C,L){super(c,C,L),this.op=w}render({_n:c}){return`${this.lhs} ${this.op}= ${this.rhs};`+c}}class o extends a{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`${this.label}:`+c}}class u extends a{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`break${this.label?` ${this.label}`:""};`+c}}class p extends a{constructor(c){super(),this.error=c}render({_n:c}){return`throw ${this.error};`+c}get names(){return this.error.names}}class f extends a{constructor(c){super(),this.code=c}render({_n:c}){return`${this.code};`+c}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(c,w){return this.code=U(this.code,c,w),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class _ extends a{constructor(c=[]){super(),this.nodes=c}render(c){return this.nodes.reduce((w,C)=>w+C.render(c),"")}optimizeNodes(){const{nodes:c}=this;let w=c.length;for(;w--;){const C=c[w].optimizeNodes();Array.isArray(C)?c.splice(w,1,...C):C?c[w]=C:c.splice(w,1)}return c.length>0?this:void 0}optimizeNames(c,w){const{nodes:C}=this;let L=C.length;for(;L--;){const F=C[L];F.optimizeNames(c,w)||(W(c,F.names),C.splice(L,1))}return C.length>0?this:void 0}get names(){return this.nodes.reduce((c,w)=>B(c,w.names),{})}}class m extends _{render(c){return"{"+c._n+super.render(c)+"}"+c._n}}class v extends _{}class g extends m{}g.kind="else";class y extends m{constructor(c,w){super(w),this.condition=c}render(c){let w=`if(${this.condition})`+super.render(c);return this.else&&(w+="else "+this.else.render(c)),w}optimizeNodes(){super.optimizeNodes();const c=this.condition;if(c===!0)return this.nodes;let w=this.else;if(w){const C=w.optimizeNodes();w=this.else=Array.isArray(C)?new g(C):C}if(w)return c===!1?w instanceof y?w:w.nodes:this.nodes.length?this:new y(X(c),w instanceof y?[w]:w.nodes);if(!(c===!1||!this.nodes.length))return this}optimizeNames(c,w){var C;if(this.else=(C=this.else)===null||C===void 0?void 0:C.optimizeNames(c,w),!!(super.optimizeNames(c,w)||this.else))return this.condition=U(this.condition,c,w),this}get names(){const c=super.names;return j(c,this.condition),this.else&&B(c,this.else.names),c}}y.kind="if";class h extends m{}h.kind="for";class b extends h{constructor(c){super(),this.iteration=c}render(c){return`for(${this.iteration})`+super.render(c)}optimizeNames(c,w){if(super.optimizeNames(c,w))return this.iteration=U(this.iteration,c,w),this}get names(){return B(super.names,this.iteration.names)}}class $ extends h{constructor(c,w,C,L){super(),this.varKind=c,this.name=w,this.from=C,this.to=L}render(c){const w=c.es5?t.varKinds.var:this.varKind,{name:C,from:L,to:F}=this;return`for(${w} ${C}=${L}; ${C}<${F}; ${C}++)`+super.render(c)}get names(){const c=j(super.names,this.from);return j(c,this.to)}}class S extends h{constructor(c,w,C,L){super(),this.loop=c,this.varKind=w,this.name=C,this.iterable=L}render(c){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(c)}optimizeNames(c,w){if(super.optimizeNames(c,w))return this.iterable=U(this.iterable,c,w),this}get names(){return B(super.names,this.iterable.names)}}class O extends m{constructor(c,w,C){super(),this.name=c,this.args=w,this.async=C}render(c){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(c)}}O.kind="func";class N extends _{render(c){return"return "+super.render(c)}}N.kind="return";class R extends m{render(c){let w="try"+super.render(c);return this.catch&&(w+=this.catch.render(c)),this.finally&&(w+=this.finally.render(c)),w}optimizeNodes(){var c,w;return super.optimizeNodes(),(c=this.catch)===null||c===void 0||c.optimizeNodes(),(w=this.finally)===null||w===void 0||w.optimizeNodes(),this}optimizeNames(c,w){var C,L;return super.optimizeNames(c,w),(C=this.catch)===null||C===void 0||C.optimizeNames(c,w),(L=this.finally)===null||L===void 0||L.optimizeNames(c,w),this}get names(){const c=super.names;return this.catch&&B(c,this.catch.names),this.finally&&B(c,this.finally.names),c}}class V extends m{constructor(c){super(),this.error=c}render(c){return`catch(${this.error})`+super.render(c)}}V.kind="catch";class I extends m{render(c){return"finally"+super.render(c)}}I.kind="finally";class T{constructor(c,w={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...w,_n:w.lines?`
|
|
21
|
+
`:""},this._extScope=c,this._scope=new t.Scope({parent:c}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(c){return this._scope.name(c)}scopeName(c){return this._extScope.name(c)}scopeValue(c,w){const C=this._extScope.value(c,w);return(this._values[C.prefix]||(this._values[C.prefix]=new Set)).add(C),C}getScopeValue(c,w){return this._extScope.getValue(c,w)}scopeRefs(c){return this._extScope.scopeRefs(c,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(c,w,C,L){const F=this._scope.toName(w);return C!==void 0&&L&&(this._constants[F.str]=C),this._leafNode(new i(c,F,C)),F}const(c,w,C){return this._def(t.varKinds.const,c,w,C)}let(c,w,C){return this._def(t.varKinds.let,c,w,C)}var(c,w,C){return this._def(t.varKinds.var,c,w,C)}assign(c,w,C){return this._leafNode(new l(c,w,C))}add(c,w){return this._leafNode(new d(c,r.operators.ADD,w))}code(c){return typeof c=="function"?c():c!==e.nil&&this._leafNode(new f(c)),this}object(...c){const w=["{"];for(const[C,L]of c)w.length>1&&w.push(","),w.push(C),(C!==L||this.opts.es5)&&(w.push(":"),(0,e.addCodeArg)(w,L));return w.push("}"),new e._Code(w)}if(c,w,C){if(this._blockNode(new y(c)),w&&C)this.code(w).else().code(C).endIf();else if(w)this.code(w).endIf();else if(C)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(c){return this._elseNode(new y(c))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(y,g)}_for(c,w){return this._blockNode(c),w&&this.code(w).endFor(),this}for(c,w){return this._for(new b(c),w)}forRange(c,w,C,L,F=this.opts.es5?t.varKinds.var:t.varKinds.let){const z=this._scope.toName(c);return this._for(new $(F,z,w,C),()=>L(z))}forOf(c,w,C,L=t.varKinds.const){const F=this._scope.toName(c);if(this.opts.es5){const z=w instanceof e.Name?w:this.var("_arr",w);return this.forRange("_i",0,(0,e._)`${z}.length`,q=>{this.var(F,(0,e._)`${z}[${q}]`),C(F)})}return this._for(new S("of",L,F,w),()=>C(F))}forIn(c,w,C,L=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(c,(0,e._)`Object.keys(${w})`,C);const F=this._scope.toName(c);return this._for(new S("in",L,F,w),()=>C(F))}endFor(){return this._endBlockNode(h)}label(c){return this._leafNode(new o(c))}break(c){return this._leafNode(new u(c))}return(c){const w=new N;if(this._blockNode(w),this.code(c),w.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(c,w,C){if(!w&&!C)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new R;if(this._blockNode(L),this.code(c),w){const F=this.name("e");this._currNode=L.catch=new V(F),w(F)}return C&&(this._currNode=L.finally=new I,this.code(C)),this._endBlockNode(V,I)}throw(c){return this._leafNode(new p(c))}block(c,w){return this._blockStarts.push(this._nodes.length),c&&this.code(c).endBlock(w),this}endBlock(c){const w=this._blockStarts.pop();if(w===void 0)throw new Error("CodeGen: not in self-balancing block");const C=this._nodes.length-w;if(C<0||c!==void 0&&C!==c)throw new Error(`CodeGen: wrong number of nodes: ${C} vs ${c} expected`);return this._nodes.length=w,this}func(c,w=e.nil,C,L){return this._blockNode(new O(c,w,C)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(c=1){for(;c-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(c){return this._currNode.nodes.push(c),this}_blockNode(c){this._currNode.nodes.push(c),this._nodes.push(c)}_endBlockNode(c,w){const C=this._currNode;if(C instanceof c||w&&C instanceof w)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${w?`${c.kind}/${w.kind}`:c.kind}"`)}_elseNode(c){const w=this._currNode;if(!(w instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=w.else=c,this}get _root(){return this._nodes[0]}get _currNode(){const c=this._nodes;return c[c.length-1]}set _currNode(c){const w=this._nodes;w[w.length-1]=c}}r.CodeGen=T;function B(E,c){for(const w in c)E[w]=(E[w]||0)+(c[w]||0);return E}function j(E,c){return c instanceof e._CodeOrName?B(E,c.names):E}function U(E,c,w){if(E instanceof e.Name)return C(E);if(!L(E))return E;return new e._Code(E._items.reduce((F,z)=>(z instanceof e.Name&&(z=C(z)),z instanceof e._Code?F.push(...z._items):F.push(z),F),[]));function C(F){const z=w[F.str];return z===void 0||c[F.str]!==1?F:(delete c[F.str],z)}function L(F){return F instanceof e._Code&&F._items.some(z=>z instanceof e.Name&&c[z.str]===1&&w[z.str]!==void 0)}}function W(E,c){for(const w in c)E[w]=(E[w]||0)-(c[w]||0)}function X(E){return typeof E=="boolean"||typeof E=="number"||E===null?!E:(0,e._)`!${x(E)}`}r.not=X;const se=k(r.operators.AND);function J(...E){return E.reduce(se)}r.and=J;const ne=k(r.operators.OR);function P(...E){return E.reduce(ne)}r.or=P;function k(E){return(c,w)=>c===e.nil?w:w===e.nil?c:(0,e._)`${x(c)} ${E} ${x(w)}`}function x(E){return E instanceof e.Name?E:(0,e._)`(${E})`}}(ie);var Y={};Object.defineProperty(Y,"__esModule",{value:!0}),Y.checkStrictMode=Y.getErrorPath=Y.Type=Y.useFunc=Y.setEvaluated=Y.evaluatedPropsToName=Y.mergeEvaluated=Y.eachItem=Y.unescapeJsonPointer=Y.escapeJsonPointer=Y.escapeFragment=Y.unescapeFragment=Y.schemaRefOrVal=Y.schemaHasRulesButRef=Y.schemaHasRules=Y.checkUnknownRules=Y.alwaysValidSchema=Y.toHash=void 0;const _e=ie,Cc=hr;function Tc(r){const e={};for(const t of r)e[t]=!0;return e}Y.toHash=Tc;function Oc(r,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(yo(r,e),!vo(e,r.self.RULES.all))}Y.alwaysValidSchema=Oc;function yo(r,e=r.schema){const{opts:t,self:s}=r;if(!t.strictSchema||typeof e=="boolean")return;const n=s.RULES.keywords;for(const a in e)n[a]||wo(r,`unknown keyword: "${a}"`)}Y.checkUnknownRules=yo;function vo(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(e[t])return!0;return!1}Y.schemaHasRules=vo;function Pc(r,e){if(typeof r=="boolean")return!r;for(const t in r)if(t!=="$ref"&&e.all[t])return!0;return!1}Y.schemaHasRulesButRef=Pc;function Nc({topSchemaRef:r,schemaPath:e},t,s,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,_e._)`${t}`}return(0,_e._)`${r}${e}${(0,_e.getProperty)(s)}`}Y.schemaRefOrVal=Nc;function Ic(r){return _o(decodeURIComponent(r))}Y.unescapeFragment=Ic;function Dc(r){return encodeURIComponent(tn(r))}Y.escapeFragment=Dc;function tn(r){return typeof r=="number"?`${r}`:r.replace(/~/g,"~0").replace(/\//g,"~1")}Y.escapeJsonPointer=tn;function _o(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}Y.unescapeJsonPointer=_o;function Mc(r,e){if(Array.isArray(r))for(const t of r)e(t);else e(r)}Y.eachItem=Mc;function bo({mergeNames:r,mergeToName:e,mergeValues:t,resultToName:s}){return(n,a,i,l)=>{const d=i===void 0?a:i instanceof _e.Name?(a instanceof _e.Name?r(n,a,i):e(n,a,i),i):a instanceof _e.Name?(e(n,i,a),a):t(a,i);return l===_e.Name&&!(d instanceof _e.Name)?s(n,d):d}}Y.mergeEvaluated={props:bo({mergeNames:(r,e,t)=>r.if((0,_e._)`${t} !== true && ${e} !== undefined`,()=>{r.if((0,_e._)`${e} === true`,()=>r.assign(t,!0),()=>r.assign(t,(0,_e._)`${t} || {}`).code((0,_e._)`Object.assign(${t}, ${e})`))}),mergeToName:(r,e,t)=>r.if((0,_e._)`${t} !== true`,()=>{e===!0?r.assign(t,!0):(r.assign(t,(0,_e._)`${t} || {}`),rn(r,t,e))}),mergeValues:(r,e)=>r===!0?!0:{...r,...e},resultToName:ko}),items:bo({mergeNames:(r,e,t)=>r.if((0,_e._)`${t} !== true && ${e} !== undefined`,()=>r.assign(t,(0,_e._)`${e} === true ? true : ${t} > ${e} ? ${t} : ${e}`)),mergeToName:(r,e,t)=>r.if((0,_e._)`${t} !== true`,()=>r.assign(t,e===!0?!0:(0,_e._)`${t} > ${e} ? ${t} : ${e}`)),mergeValues:(r,e)=>r===!0?!0:Math.max(r,e),resultToName:(r,e)=>r.var("items",e)})};function ko(r,e){if(e===!0)return r.var("props",!0);const t=r.var("props",(0,_e._)`{}`);return e!==void 0&&rn(r,t,e),t}Y.evaluatedPropsToName=ko;function rn(r,e,t){Object.keys(t).forEach(s=>r.assign((0,_e._)`${e}${(0,_e.getProperty)(s)}`,!0))}Y.setEvaluated=rn;const $o={};function Fc(r,e){return r.scopeValue("func",{ref:e,code:$o[e.code]||($o[e.code]=new Cc._Code(e.code))})}Y.useFunc=Fc;var sn;(function(r){r[r.Num=0]="Num",r[r.Str=1]="Str"})(sn||(Y.Type=sn={}));function Bc(r,e,t){if(r instanceof _e.Name){const s=e===sn.Num;return t?s?(0,_e._)`"[" + ${r} + "]"`:(0,_e._)`"['" + ${r} + "']"`:s?(0,_e._)`"/" + ${r}`:(0,_e._)`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,_e.getProperty)(r).toString():"/"+tn(r)}Y.getErrorPath=Bc;function wo(r,e,t=r.opts.strictSchema){if(t){if(e=`strict mode: ${e}`,t===!0)throw new Error(e);r.self.logger.warn(e)}}Y.checkStrictMode=wo;var gt={};Object.defineProperty(gt,"__esModule",{value:!0});const je=ie,Rc={data:new je.Name("data"),valCxt:new je.Name("valCxt"),instancePath:new je.Name("instancePath"),parentData:new je.Name("parentData"),parentDataProperty:new je.Name("parentDataProperty"),rootData:new je.Name("rootData"),dynamicAnchors:new je.Name("dynamicAnchors"),vErrors:new je.Name("vErrors"),errors:new je.Name("errors"),this:new je.Name("this"),self:new je.Name("self"),scope:new je.Name("scope"),json:new je.Name("json"),jsonPos:new je.Name("jsonPos"),jsonLen:new je.Name("jsonLen"),jsonPart:new je.Name("jsonPart")};gt.default=Rc,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const e=ie,t=Y,s=gt;r.keywordError={message:({keyword:g})=>(0,e.str)`must pass "${g}" keyword validation`},r.keyword$DataError={message:({keyword:g,schemaType:y})=>y?(0,e.str)`"${g}" keyword must be ${y} ($data)`:(0,e.str)`"${g}" keyword is invalid ($data)`};function n(g,y=r.keywordError,h,b){const{it:$}=g,{gen:S,compositeRule:O,allErrors:N}=$,R=p(g,y,h);b??(O||N)?d(S,R):o($,(0,e._)`[${R}]`)}r.reportError=n;function a(g,y=r.keywordError,h){const{it:b}=g,{gen:$,compositeRule:S,allErrors:O}=b,N=p(g,y,h);d($,N),S||O||o(b,s.default.vErrors)}r.reportExtraError=a;function i(g,y){g.assign(s.default.errors,y),g.if((0,e._)`${s.default.vErrors} !== null`,()=>g.if(y,()=>g.assign((0,e._)`${s.default.vErrors}.length`,y),()=>g.assign(s.default.vErrors,null)))}r.resetErrorsCount=i;function l({gen:g,keyword:y,schemaValue:h,data:b,errsCount:$,it:S}){if($===void 0)throw new Error("ajv implementation error");const O=g.name("err");g.forRange("i",$,s.default.errors,N=>{g.const(O,(0,e._)`${s.default.vErrors}[${N}]`),g.if((0,e._)`${O}.instancePath === undefined`,()=>g.assign((0,e._)`${O}.instancePath`,(0,e.strConcat)(s.default.instancePath,S.errorPath))),g.assign((0,e._)`${O}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${y}`),S.opts.verbose&&(g.assign((0,e._)`${O}.schema`,h),g.assign((0,e._)`${O}.data`,b))})}r.extendErrors=l;function d(g,y){const h=g.const("err",y);g.if((0,e._)`${s.default.vErrors} === null`,()=>g.assign(s.default.vErrors,(0,e._)`[${h}]`),(0,e._)`${s.default.vErrors}.push(${h})`),g.code((0,e._)`${s.default.errors}++`)}function o(g,y){const{gen:h,validateName:b,schemaEnv:$}=g;$.$async?h.throw((0,e._)`new ${g.ValidationError}(${y})`):(h.assign((0,e._)`${b}.errors`,y),h.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function p(g,y,h){const{createErrors:b}=g.it;return b===!1?(0,e._)`{}`:f(g,y,h)}function f(g,y,h={}){const{gen:b,it:$}=g,S=[_($,h),m(g,h)];return v(g,y,S),b.object(...S)}function _({errorPath:g},{instancePath:y}){const h=y?(0,e.str)`${g}${(0,t.getErrorPath)(y,t.Type.Str)}`:g;return[s.default.instancePath,(0,e.strConcat)(s.default.instancePath,h)]}function m({keyword:g,it:{errSchemaPath:y}},{schemaPath:h,parentSchema:b}){let $=b?y:(0,e.str)`${y}/${g}`;return h&&($=(0,e.str)`${$}${(0,t.getErrorPath)(h,t.Type.Str)}`),[u.schemaPath,$]}function v(g,{params:y,message:h},b){const{keyword:$,data:S,schemaValue:O,it:N}=g,{opts:R,propertyName:V,topSchemaRef:I,schemaPath:T}=N;b.push([u.keyword,$],[u.params,typeof y=="function"?y(g):y||(0,e._)`{}`]),R.messages&&b.push([u.message,typeof h=="function"?h(g):h]),R.verbose&&b.push([u.schema,O],[u.parentSchema,(0,e._)`${I}${T}`],[s.default.data,S]),V&&b.push([u.propertyName,V])}}(dr),Object.defineProperty(cr,"__esModule",{value:!0}),cr.boolOrEmptySchema=cr.topBoolOrEmptySchema=void 0;const jc=dr,Lc=ie,Vc=gt,zc={message:"boolean schema is false"};function Hc(r){const{gen:e,schema:t,validateName:s}=r;t===!1?Eo(r,!1):typeof t=="object"&&t.$async===!0?e.return(Vc.default.data):(e.assign((0,Lc._)`${s}.errors`,null),e.return(!0))}cr.topBoolOrEmptySchema=Hc;function Uc(r,e){const{gen:t,schema:s}=r;s===!1?(t.var(e,!1),Eo(r)):t.var(e,!0)}cr.boolOrEmptySchema=Uc;function Eo(r,e){const{gen:t,data:s}=r,n={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,jc.reportError)(n,zc,void 0,e)}var Ae={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.getRules=Jt.isJSONType=void 0;const qc=["string","number","integer","boolean","null","object","array"],Gc=new Set(qc);function Wc(r){return typeof r=="string"&&Gc.has(r)}Jt.isJSONType=Wc;function Kc(){const r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}Jt.getRules=Kc;var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.shouldUseRule=Nt.shouldUseGroup=Nt.schemaHasRulesForType=void 0;function Xc({schema:r,self:e},t){const s=e.RULES.types[t];return s&&s!==!0&&So(r,s)}Nt.schemaHasRulesForType=Xc;function So(r,e){return e.rules.some(t=>xo(r,t))}Nt.shouldUseGroup=So;function xo(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(s=>r[s]!==void 0))}Nt.shouldUseRule=xo,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.reportTypeError=Ae.checkDataTypes=Ae.checkDataType=Ae.coerceAndCheckDataType=Ae.getJSONTypes=Ae.getSchemaTypes=Ae.DataType=void 0;const Yc=Jt,Jc=Nt,Zc=dr,le=ie,Ao=Y;var pr;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(pr||(Ae.DataType=pr={}));function Qc(r){const e=Co(r.type);if(e.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&e.push("null")}return e}Ae.getSchemaTypes=Qc;function Co(r){const e=Array.isArray(r)?r:r?[r]:[];if(e.every(Yc.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ae.getJSONTypes=Co;function ed(r,e){const{gen:t,data:s,opts:n}=r,a=td(e,n.coerceTypes),i=e.length>0&&!(a.length===0&&e.length===1&&(0,Jc.schemaHasRulesForType)(r,e[0]));if(i){const l=an(e,s,n.strictNumbers,pr.Wrong);t.if(l,()=>{a.length?rd(r,e,a):on(r)})}return i}Ae.coerceAndCheckDataType=ed;const To=new Set(["string","number","integer","boolean","null"]);function td(r,e){return e?r.filter(t=>To.has(t)||e==="array"&&t==="array"):[]}function rd(r,e,t){const{gen:s,data:n,opts:a}=r,i=s.let("dataType",(0,le._)`typeof ${n}`),l=s.let("coerced",(0,le._)`undefined`);a.coerceTypes==="array"&&s.if((0,le._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,le._)`${n}[0]`).assign(i,(0,le._)`typeof ${n}`).if(an(e,n,a.strictNumbers),()=>s.assign(l,n))),s.if((0,le._)`${l} !== undefined`);for(const o of t)(To.has(o)||o==="array"&&a.coerceTypes==="array")&&d(o);s.else(),on(r),s.endIf(),s.if((0,le._)`${l} !== undefined`,()=>{s.assign(n,l),sd(r,l)});function d(o){switch(o){case"string":s.elseIf((0,le._)`${i} == "number" || ${i} == "boolean"`).assign(l,(0,le._)`"" + ${n}`).elseIf((0,le._)`${n} === null`).assign(l,(0,le._)`""`);return;case"number":s.elseIf((0,le._)`${i} == "boolean" || ${n} === null
|
|
22
|
+
|| (${i} == "string" && ${n} && ${n} == +${n})`).assign(l,(0,le._)`+${n}`);return;case"integer":s.elseIf((0,le._)`${i} === "boolean" || ${n} === null
|
|
23
|
+
|| (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(l,(0,le._)`+${n}`);return;case"boolean":s.elseIf((0,le._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(l,!1).elseIf((0,le._)`${n} === "true" || ${n} === 1`).assign(l,!0);return;case"null":s.elseIf((0,le._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(l,null);return;case"array":s.elseIf((0,le._)`${i} === "string" || ${i} === "number"
|
|
24
|
+
|| ${i} === "boolean" || ${n} === null`).assign(l,(0,le._)`[${n}]`)}}}function sd({gen:r,parentData:e,parentDataProperty:t},s){r.if((0,le._)`${e} !== undefined`,()=>r.assign((0,le._)`${e}[${t}]`,s))}function nn(r,e,t,s=pr.Correct){const n=s===pr.Correct?le.operators.EQ:le.operators.NEQ;let a;switch(r){case"null":return(0,le._)`${e} ${n} null`;case"array":a=(0,le._)`Array.isArray(${e})`;break;case"object":a=(0,le._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=i((0,le._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=i();break;default:return(0,le._)`typeof ${e} ${n} ${r}`}return s===pr.Correct?a:(0,le.not)(a);function i(l=le.nil){return(0,le.and)((0,le._)`typeof ${e} == "number"`,l,t?(0,le._)`isFinite(${e})`:le.nil)}}Ae.checkDataType=nn;function an(r,e,t,s){if(r.length===1)return nn(r[0],e,t,s);let n;const a=(0,Ao.toHash)(r);if(a.array&&a.object){const i=(0,le._)`typeof ${e} != "object"`;n=a.null?i:(0,le._)`!${e} || ${i}`,delete a.null,delete a.array,delete a.object}else n=le.nil;a.number&&delete a.integer;for(const i in a)n=(0,le.and)(n,nn(i,e,t,s));return n}Ae.checkDataTypes=an;const nd={message:({schema:r})=>`must be ${r}`,params:({schema:r,schemaValue:e})=>typeof r=="string"?(0,le._)`{type: ${r}}`:(0,le._)`{type: ${e}}`};function on(r){const e=ad(r);(0,Zc.reportError)(e,nd)}Ae.reportTypeError=on;function ad(r){const{gen:e,data:t,schema:s}=r,n=(0,Ao.schemaRefOrVal)(r,s,"type");return{gen:e,keyword:"type",data:t,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:r}}var is={};Object.defineProperty(is,"__esModule",{value:!0}),is.assignDefaults=void 0;const fr=ie,od=Y;function id(r,e){const{properties:t,items:s}=r.schema;if(e==="object"&&t)for(const n in t)Oo(r,n,t[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>Oo(r,a,n.default))}is.assignDefaults=id;function Oo(r,e,t){const{gen:s,compositeRule:n,data:a,opts:i}=r;if(t===void 0)return;const l=(0,fr._)`${a}${(0,fr.getProperty)(e)}`;if(n){(0,od.checkStrictMode)(r,`default is ignored for: ${l}`);return}let d=(0,fr._)`${l} === undefined`;i.useDefaults==="empty"&&(d=(0,fr._)`${d} || ${l} === null || ${l} === ""`),s.if(d,(0,fr._)`${l} = ${(0,fr.stringify)(t)}`)}var Et={},de={};Object.defineProperty(de,"__esModule",{value:!0}),de.validateUnion=de.validateArray=de.usePattern=de.callValidateCode=de.schemaProperties=de.allSchemaProperties=de.noPropertyInData=de.propertyInData=de.isOwnProperty=de.hasPropFunc=de.reportMissingProp=de.checkMissingProp=de.checkReportMissingProp=void 0;const be=ie,ln=Y,Lt=gt,ld=Y;function ud(r,e){const{gen:t,data:s,it:n}=r;t.if(cn(t,s,e,n.opts.ownProperties),()=>{r.setParams({missingProperty:(0,be._)`${e}`},!0),r.error()})}de.checkReportMissingProp=ud;function cd({gen:r,data:e,it:{opts:t}},s,n){return(0,be.or)(...s.map(a=>(0,be.and)(cn(r,e,a,t.ownProperties),(0,be._)`${n} = ${a}`)))}de.checkMissingProp=cd;function dd(r,e){r.setParams({missingProperty:e},!0),r.error()}de.reportMissingProp=dd;function Po(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,be._)`Object.prototype.hasOwnProperty`})}de.hasPropFunc=Po;function un(r,e,t){return(0,be._)`${Po(r)}.call(${e}, ${t})`}de.isOwnProperty=un;function hd(r,e,t,s){const n=(0,be._)`${e}${(0,be.getProperty)(t)} !== undefined`;return s?(0,be._)`${n} && ${un(r,e,t)}`:n}de.propertyInData=hd;function cn(r,e,t,s){const n=(0,be._)`${e}${(0,be.getProperty)(t)} === undefined`;return s?(0,be.or)(n,(0,be.not)(un(r,e,t))):n}de.noPropertyInData=cn;function No(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}de.allSchemaProperties=No;function pd(r,e){return No(e).filter(t=>!(0,ln.alwaysValidSchema)(r,e[t]))}de.schemaProperties=pd;function fd({schemaCode:r,data:e,it:{gen:t,topSchemaRef:s,schemaPath:n,errorPath:a},it:i},l,d,o){const u=o?(0,be._)`${r}, ${e}, ${s}${n}`:e,p=[[Lt.default.instancePath,(0,be.strConcat)(Lt.default.instancePath,a)],[Lt.default.parentData,i.parentData],[Lt.default.parentDataProperty,i.parentDataProperty],[Lt.default.rootData,Lt.default.rootData]];i.opts.dynamicRef&&p.push([Lt.default.dynamicAnchors,Lt.default.dynamicAnchors]);const f=(0,be._)`${u}, ${t.object(...p)}`;return d!==be.nil?(0,be._)`${l}.call(${d}, ${f})`:(0,be._)`${l}(${f})`}de.callValidateCode=fd;const md=(0,be._)`new RegExp`;function gd({gen:r,it:{opts:e}},t){const s=e.unicodeRegExp?"u":"",{regExp:n}=e.code,a=n(t,s);return r.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,be._)`${n.code==="new RegExp"?md:(0,ld.useFunc)(r,n)}(${t}, ${s})`})}de.usePattern=gd;function yd(r){const{gen:e,data:t,keyword:s,it:n}=r,a=e.name("valid");if(n.allErrors){const l=e.let("valid",!0);return i(()=>e.assign(l,!1)),l}return e.var(a,!0),i(()=>e.break()),a;function i(l){const d=e.const("len",(0,be._)`${t}.length`);e.forRange("i",0,d,o=>{r.subschema({keyword:s,dataProp:o,dataPropType:ln.Type.Num},a),e.if((0,be.not)(a),l)})}}de.validateArray=yd;function vd(r){const{gen:e,schema:t,keyword:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,ln.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;const a=e.let("valid",!1),i=e.name("_valid");e.block(()=>t.forEach((l,d)=>{const o=r.subschema({keyword:s,schemaProp:d,compositeRule:!0},i);e.assign(a,(0,be._)`${a} || ${i}`),r.mergeValidEvaluated(o,i)||e.if((0,be.not)(a))})),r.result(a,()=>r.reset(),()=>r.error(!0))}de.validateUnion=vd,Object.defineProperty(Et,"__esModule",{value:!0}),Et.validateKeywordUsage=Et.validSchemaType=Et.funcKeywordCode=Et.macroKeywordCode=void 0;const He=ie,Zt=gt,_d=de,bd=dr;function kd(r,e){const{gen:t,keyword:s,schema:n,parentSchema:a,it:i}=r,l=e.macro.call(i.self,n,a,i),d=Do(t,s,l);i.opts.validateSchema!==!1&&i.self.validateSchema(l,!0);const o=t.name("valid");r.subschema({schema:l,schemaPath:He.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:d,compositeRule:!0},o),r.pass(o,()=>r.error(!0))}Et.macroKeywordCode=kd;function $d(r,e){var t;const{gen:s,keyword:n,schema:a,parentSchema:i,$data:l,it:d}=r;Ed(d,e);const o=!l&&e.compile?e.compile.call(d.self,a,i,d):e.validate,u=Do(s,n,o),p=s.let("valid");r.block$data(p,f),r.ok((t=e.valid)!==null&&t!==void 0?t:p);function f(){if(e.errors===!1)v(),e.modifying&&Io(r),g(()=>r.error());else{const y=e.async?_():m();e.modifying&&Io(r),g(()=>wd(r,y))}}function _(){const y=s.let("ruleErrs",null);return s.try(()=>v((0,He._)`await `),h=>s.assign(p,!1).if((0,He._)`${h} instanceof ${d.ValidationError}`,()=>s.assign(y,(0,He._)`${h}.errors`),()=>s.throw(h))),y}function m(){const y=(0,He._)`${u}.errors`;return s.assign(y,null),v(He.nil),y}function v(y=e.async?(0,He._)`await `:He.nil){const h=d.opts.passContext?Zt.default.this:Zt.default.self,b=!("compile"in e&&!l||e.schema===!1);s.assign(p,(0,He._)`${y}${(0,_d.callValidateCode)(r,u,h,b)}`,e.modifying)}function g(y){var h;s.if((0,He.not)((h=e.valid)!==null&&h!==void 0?h:p),y)}}Et.funcKeywordCode=$d;function Io(r){const{gen:e,data:t,it:s}=r;e.if(s.parentData,()=>e.assign(t,(0,He._)`${s.parentData}[${s.parentDataProperty}]`))}function wd(r,e){const{gen:t}=r;t.if((0,He._)`Array.isArray(${e})`,()=>{t.assign(Zt.default.vErrors,(0,He._)`${Zt.default.vErrors} === null ? ${e} : ${Zt.default.vErrors}.concat(${e})`).assign(Zt.default.errors,(0,He._)`${Zt.default.vErrors}.length`),(0,bd.extendErrors)(r)},()=>r.error())}function Ed({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function Do(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,He.stringify)(t)})}function Sd(r,e,t=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(r):s==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==s||t&&typeof r>"u")}Et.validSchemaType=Sd;function xd({schema:r,opts:e,self:t,errSchemaPath:s},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a)throw new Error("ajv implementation error");const i=n.dependencies;if(i!=null&&i.some(l=>!Object.prototype.hasOwnProperty.call(r,l)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(r[a])){const l=`keyword "${a}" value is invalid at path "${s}": `+t.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}Et.validateKeywordUsage=xd;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.extendSubschemaMode=Vt.extendSubschemaData=Vt.getSubschema=void 0;const St=ie,Mo=Y;function Ad(r,{keyword:e,schemaProp:t,schema:s,schemaPath:n,errSchemaPath:a,topSchemaRef:i}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const l=r.schema[e];return t===void 0?{schema:l,schemaPath:(0,St._)`${r.schemaPath}${(0,St.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:l[t],schemaPath:(0,St._)`${r.schemaPath}${(0,St.getProperty)(e)}${(0,St.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Mo.escapeFragment)(t)}`}}if(s!==void 0){if(n===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:n,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}Vt.getSubschema=Ad;function Cd(r,e,{dataProp:t,dataPropType:s,data:n,dataTypes:a,propertyName:i}){if(n!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=e;if(t!==void 0){const{errorPath:o,dataPathArr:u,opts:p}=e,f=l.let("data",(0,St._)`${e.data}${(0,St.getProperty)(t)}`,!0);d(f),r.errorPath=(0,St.str)`${o}${(0,Mo.getErrorPath)(t,s,p.jsPropertySyntax)}`,r.parentDataProperty=(0,St._)`${t}`,r.dataPathArr=[...u,r.parentDataProperty]}if(n!==void 0){const o=n instanceof St.Name?n:l.let("data",n,!0);d(o),i!==void 0&&(r.propertyName=i)}a&&(r.dataTypes=a);function d(o){r.data=o,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,o]}}Vt.extendSubschemaData=Cd;function Td(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:s,createErrors:n,allErrors:a}){s!==void 0&&(r.compositeRule=s),n!==void 0&&(r.createErrors=n),a!==void 0&&(r.allErrors=a),r.jtdDiscriminator=e,r.jtdMetadata=t}Vt.extendSubschemaMode=Td;var Me={},Fo=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var s,n,a;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),s=a.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=s;n--!==0;){var i=a[n];if(!r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t},Bo={exports:{}},zt=Bo.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var s=typeof t=="function"?t:t.pre||function(){},n=t.post||function(){};ls(e,s,n,r,"",r)};zt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},zt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},zt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},zt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ls(r,e,t,s,n,a,i,l,d,o){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,i,l,d,o);for(var u in s){var p=s[u];if(Array.isArray(p)){if(u in zt.arrayKeywords)for(var f=0;f<p.length;f++)ls(r,e,t,p[f],n+"/"+u+"/"+f,a,n,u,s,f)}else if(u in zt.propsKeywords){if(p&&typeof p=="object")for(var _ in p)ls(r,e,t,p[_],n+"/"+u+"/"+Od(_),a,n,u,s,_)}else(u in zt.keywords||r.allKeys&&!(u in zt.skipKeywords))&&ls(r,e,t,p,n+"/"+u,a,n,u,s)}t(s,n,a,i,l,d,o)}}function Od(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var Pd=Bo.exports;Object.defineProperty(Me,"__esModule",{value:!0}),Me.getSchemaRefs=Me.resolveUrl=Me.normalizeId=Me._getFullPath=Me.getFullPath=Me.inlineRef=void 0;const Nd=Y,Id=Fo,Dd=Pd,Md=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Fd(r,e=!0){return typeof r=="boolean"?!0:e===!0?!dn(r):e?Ro(r)<=e:!1}Me.inlineRef=Fd;const Bd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function dn(r){for(const e in r){if(Bd.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(dn)||typeof t=="object"&&dn(t))return!0}return!1}function Ro(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!Md.has(t)&&(typeof r[t]=="object"&&(0,Nd.eachItem)(r[t],s=>e+=Ro(s)),e===1/0)))return 1/0;return e}function jo(r,e="",t){t!==!1&&(e=mr(e));const s=r.parse(e);return Lo(r,s)}Me.getFullPath=jo;function Lo(r,e){return r.serialize(e).split("#")[0]+"#"}Me._getFullPath=Lo;const Rd=/#\/?$/;function mr(r){return r?r.replace(Rd,""):""}Me.normalizeId=mr;function jd(r,e,t){return t=mr(t),r.resolve(e,t)}Me.resolveUrl=jd;const Ld=/^[a-z_][-a-z0-9._]*$/i;function Vd(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:s}=this.opts,n=mr(r[t]||e),a={"":n},i=jo(s,n,!1),l={},d=new Set;return Dd(r,{allKeys:!0},(p,f,_,m)=>{if(m===void 0)return;const v=i+f;let g=a[m];typeof p[t]=="string"&&(g=y.call(this,p[t])),h.call(this,p.$anchor),h.call(this,p.$dynamicAnchor),a[f]=g;function y(b){const $=this.opts.uriResolver.resolve;if(b=mr(g?$(g,b):b),d.has(b))throw u(b);d.add(b);let S=this.refs[b];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?o(p,S.schema,b):b!==mr(v)&&(b[0]==="#"?(o(p,l[b],b),l[b]=p):this.refs[b]=v),b}function h(b){if(typeof b=="string"){if(!Ld.test(b))throw new Error(`invalid anchor "${b}"`);y.call(this,`#${b}`)}}}),l;function o(p,f,_){if(f!==void 0&&!Id(p,f))throw u(_)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Me.getSchemaRefs=Vd,Object.defineProperty(lt,"__esModule",{value:!0}),lt.getData=lt.KeywordCxt=lt.validateFunctionCode=void 0;const Vo=cr,zo=Ae,hn=Nt,us=Ae,zd=is,Or=Et,pn=Vt,ee=ie,oe=gt,Hd=Me,It=Y,Pr=dr;function Ud(r){if(Go(r)&&(Wo(r),qo(r))){Wd(r);return}Ho(r,()=>(0,Vo.topBoolOrEmptySchema)(r))}lt.validateFunctionCode=Ud;function Ho({gen:r,validateName:e,schema:t,schemaEnv:s,opts:n},a){n.code.es5?r.func(e,(0,ee._)`${oe.default.data}, ${oe.default.valCxt}`,s.$async,()=>{r.code((0,ee._)`"use strict"; ${Uo(t,n)}`),Gd(r,n),r.code(a)}):r.func(e,(0,ee._)`${oe.default.data}, ${qd(n)}`,s.$async,()=>r.code(Uo(t,n)).code(a))}function qd(r){return(0,ee._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${r.dynamicRef?(0,ee._)`, ${oe.default.dynamicAnchors}={}`:ee.nil}}={}`}function Gd(r,e){r.if(oe.default.valCxt,()=>{r.var(oe.default.instancePath,(0,ee._)`${oe.default.valCxt}.${oe.default.instancePath}`),r.var(oe.default.parentData,(0,ee._)`${oe.default.valCxt}.${oe.default.parentData}`),r.var(oe.default.parentDataProperty,(0,ee._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),r.var(oe.default.rootData,(0,ee._)`${oe.default.valCxt}.${oe.default.rootData}`),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,ee._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{r.var(oe.default.instancePath,(0,ee._)`""`),r.var(oe.default.parentData,(0,ee._)`undefined`),r.var(oe.default.parentDataProperty,(0,ee._)`undefined`),r.var(oe.default.rootData,oe.default.data),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,ee._)`{}`)})}function Wd(r){const{schema:e,opts:t,gen:s}=r;Ho(r,()=>{t.$comment&&e.$comment&&Xo(r),Zd(r),s.let(oe.default.vErrors,null),s.let(oe.default.errors,0),t.unevaluated&&Kd(r),Ko(r),th(r)})}function Kd(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,ee._)`${t}.evaluated`),e.if((0,ee._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,ee._)`${r.evaluated}.props`,(0,ee._)`undefined`)),e.if((0,ee._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,ee._)`${r.evaluated}.items`,(0,ee._)`undefined`))}function Uo(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,ee._)`/*# sourceURL=${t} */`:ee.nil}function Xd(r,e){if(Go(r)&&(Wo(r),qo(r))){Yd(r,e);return}(0,Vo.boolOrEmptySchema)(r,e)}function qo({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function Go(r){return typeof r.schema!="boolean"}function Yd(r,e){const{schema:t,gen:s,opts:n}=r;n.$comment&&t.$comment&&Xo(r),Qd(r),eh(r);const a=s.const("_errs",oe.default.errors);Ko(r,a),s.var(e,(0,ee._)`${a} === ${oe.default.errors}`)}function Wo(r){(0,It.checkUnknownRules)(r),Jd(r)}function Ko(r,e){if(r.opts.jtd)return Yo(r,[],!1,e);const t=(0,zo.getSchemaTypes)(r.schema),s=(0,zo.coerceAndCheckDataType)(r,t);Yo(r,t,!s,e)}function Jd(r){const{schema:e,errSchemaPath:t,opts:s,self:n}=r;e.$ref&&s.ignoreKeywordsWithRef&&(0,It.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function Zd(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,It.checkStrictMode)(r,"default is ignored in the schema root")}function Qd(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,Hd.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function eh(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Xo({gen:r,schemaEnv:e,schema:t,errSchemaPath:s,opts:n}){const a=t.$comment;if(n.$comment===!0)r.code((0,ee._)`${oe.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){const i=(0,ee.str)`${s}/$comment`,l=r.scopeValue("root",{ref:e.root});r.code((0,ee._)`${oe.default.self}.opts.$comment(${a}, ${i}, ${l}.schema)`)}}function th(r){const{gen:e,schemaEnv:t,validateName:s,ValidationError:n,opts:a}=r;t.$async?e.if((0,ee._)`${oe.default.errors} === 0`,()=>e.return(oe.default.data),()=>e.throw((0,ee._)`new ${n}(${oe.default.vErrors})`)):(e.assign((0,ee._)`${s}.errors`,oe.default.vErrors),a.unevaluated&&rh(r),e.return((0,ee._)`${oe.default.errors} === 0`))}function rh({gen:r,evaluated:e,props:t,items:s}){t instanceof ee.Name&&r.assign((0,ee._)`${e}.props`,t),s instanceof ee.Name&&r.assign((0,ee._)`${e}.items`,s)}function Yo(r,e,t,s){const{gen:n,schema:a,data:i,allErrors:l,opts:d,self:o}=r,{RULES:u}=o;if(a.$ref&&(d.ignoreKeywordsWithRef||!(0,It.schemaHasRulesButRef)(a,u))){n.block(()=>ei(r,"$ref",u.all.$ref.definition));return}d.jtd||sh(r,e),n.block(()=>{for(const f of u.rules)p(f);p(u.post)});function p(f){(0,hn.shouldUseGroup)(a,f)&&(f.type?(n.if((0,us.checkDataType)(f.type,i,d.strictNumbers)),Jo(r,f),e.length===1&&e[0]===f.type&&t&&(n.else(),(0,us.reportTypeError)(r)),n.endIf()):Jo(r,f),l||n.if((0,ee._)`${oe.default.errors} === ${s||0}`))}}function Jo(r,e){const{gen:t,schema:s,opts:{useDefaults:n}}=r;n&&(0,zd.assignDefaults)(r,e.type),t.block(()=>{for(const a of e.rules)(0,hn.shouldUseRule)(s,a)&&ei(r,a.keyword,a.definition,e.type)})}function sh(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(nh(r,e),r.opts.allowUnionTypes||ah(r,e),oh(r,r.dataTypes))}function nh(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{Zo(r.dataTypes,t)||fn(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),lh(r,e)}}function ah(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&fn(r,"use allowUnionTypes to allow union type keyword")}function oh(r,e){const t=r.self.RULES.all;for(const s in t){const n=t[s];if(typeof n=="object"&&(0,hn.shouldUseRule)(r.schema,n)){const{type:a}=n.definition;a.length&&!a.some(i=>ih(e,i))&&fn(r,`missing type "${a.join(",")}" for keyword "${s}"`)}}}function ih(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function Zo(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function lh(r,e){const t=[];for(const s of r.dataTypes)Zo(e,s)?t.push(s):e.includes("integer")&&s==="number"&&t.push("integer");r.dataTypes=t}function fn(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,It.checkStrictMode)(r,e,r.opts.strictTypes)}class Qo{constructor(e,t,s){if((0,Or.validateKeywordUsage)(e,t,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,It.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",ti(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Or.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",oe.default.errors))}result(e,t,s){this.failResult((0,ee.not)(e),t,s)}failResult(e,t,s){this.gen.if(e),s?s():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,ee.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,ee._)`${t} !== undefined && (${(0,ee.or)(this.invalid$data(),e)})`)}error(e,t,s){if(t){this.setParams(t),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,t){(e?Pr.reportExtraError:Pr.reportError)(this,this.def.error,t)}$dataError(){(0,Pr.reportError)(this,this.def.$dataError||Pr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Pr.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,s=ee.nil){this.gen.block(()=>{this.check$data(e,s),t()})}check$data(e=ee.nil,t=ee.nil){if(!this.$data)return;const{gen:s,schemaCode:n,schemaType:a,def:i}=this;s.if((0,ee.or)((0,ee._)`${n} === undefined`,t)),e!==ee.nil&&s.assign(e,!0),(a.length||i.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==ee.nil&&s.assign(e,!1)),s.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:s,def:n,it:a}=this;return(0,ee.or)(i(),l());function i(){if(s.length){if(!(t instanceof ee.Name))throw new Error("ajv implementation error");const d=Array.isArray(s)?s:[s];return(0,ee._)`${(0,us.checkDataTypes)(d,t,a.opts.strictNumbers,us.DataType.Wrong)}`}return ee.nil}function l(){if(n.validateSchema){const d=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,ee._)`!${d}(${t})`}return ee.nil}}subschema(e,t){const s=(0,pn.getSubschema)(this.it,e);(0,pn.extendSubschemaData)(s,this.it,e),(0,pn.extendSubschemaMode)(s,e);const n={...this.it,...s,items:void 0,props:void 0};return Xd(n,t),n}mergeEvaluated(e,t){const{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=It.mergeEvaluated.props(n,e.props,s.props,t)),s.items!==!0&&e.items!==void 0&&(s.items=It.mergeEvaluated.items(n,e.items,s.items,t)))}mergeValidEvaluated(e,t){const{it:s,gen:n}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return n.if(t,()=>this.mergeEvaluated(e,ee.Name)),!0}}lt.KeywordCxt=Qo;function ei(r,e,t,s){const n=new Qo(r,t,e);"code"in t?t.code(n,s):n.$data&&t.validate?(0,Or.funcKeywordCode)(n,t):"macro"in t?(0,Or.macroKeywordCode)(n,t):(t.compile||t.validate)&&(0,Or.funcKeywordCode)(n,t)}const uh=/^\/(?:[^~]|~0|~1)*$/,ch=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ti(r,{dataLevel:e,dataNames:t,dataPathArr:s}){let n,a;if(r==="")return oe.default.rootData;if(r[0]==="/"){if(!uh.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);n=r,a=oe.default.rootData}else{const o=ch.exec(r);if(!o)throw new Error(`Invalid JSON-pointer: ${r}`);const u=+o[1];if(n=o[2],n==="#"){if(u>=e)throw new Error(d("property/index",u));return s[e-u]}if(u>e)throw new Error(d("data",u));if(a=t[e-u],!n)return a}let i=a;const l=n.split("/");for(const o of l)o&&(a=(0,ee._)`${a}${(0,ee.getProperty)((0,It.unescapeJsonPointer)(o))}`,i=(0,ee._)`${i} && ${a}`);return i;function d(o,u){return`Cannot access ${o} ${u} levels up, current level is ${e}`}}lt.getData=ti;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});class dh extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Nr.default=dh;var gr={};Object.defineProperty(gr,"__esModule",{value:!0});const mn=Me;class hh extends Error{constructor(e,t,s,n){super(n||`can't resolve reference ${s} from id ${t}`),this.missingRef=(0,mn.resolveUrl)(e,t,s),this.missingSchema=(0,mn.normalizeId)((0,mn.getFullPath)(e,this.missingRef))}}gr.default=hh;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.resolveSchema=Ze.getCompilingSchema=Ze.resolveRef=Ze.compileSchema=Ze.SchemaEnv=void 0;const yt=ie,ph=Nr,Qt=gt,vt=Me,ri=Y,fh=lt;class cs{constructor(e){var t;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,vt.normalizeId)(s==null?void 0:s[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s==null?void 0:s.$async,this.refs={}}}Ze.SchemaEnv=cs;function gn(r){const e=si.call(this,r);if(e)return e;const t=(0,vt.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,i=new yt.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a});let l;r.$async&&(l=i.scopeValue("Error",{ref:ph.default,code:(0,yt._)`require("ajv/dist/runtime/validation_error").default`}));const d=i.scopeName("validate");r.validateName=d;const o={gen:i,allErrors:this.opts.allErrors,data:Qt.default.data,parentData:Qt.default.parentData,parentDataProperty:Qt.default.parentDataProperty,dataNames:[Qt.default.data],dataPathArr:[yt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,yt.stringify)(r.schema)}:{ref:r.schema}),validateName:d,ValidationError:l,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:yt.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,yt._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(r),(0,fh.validateFunctionCode)(o),i.optimize(this.opts.code.optimize);const p=i.toString();u=`${i.scopeRefs(Qt.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,r));const f=new Function(`${Qt.default.self}`,`${Qt.default.scope}`,u)(this,this.scope.get());if(this.scope.value(d,{ref:f}),f.errors=null,f.schema=r.schema,f.schemaEnv=r,r.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:d,validateCode:p,scopeValues:i._values}),this.opts.unevaluated){const{props:_,items:m}=o;f.evaluated={props:_ instanceof yt.Name?void 0:_,items:m instanceof yt.Name?void 0:m,dynamicProps:_ instanceof yt.Name,dynamicItems:m instanceof yt.Name},f.source&&(f.source.evaluated=(0,yt.stringify)(f.evaluated))}return r.validate=f,r}catch(p){throw delete r.validate,delete r.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(r)}}Ze.compileSchema=gn;function mh(r,e,t){var s;t=(0,vt.resolveUrl)(this.opts.uriResolver,e,t);const n=r.refs[t];if(n)return n;let a=vh.call(this,r,t);if(a===void 0){const i=(s=r.localRefs)===null||s===void 0?void 0:s[t],{schemaId:l}=this.opts;i&&(a=new cs({schema:i,schemaId:l,root:r,baseId:e}))}if(a!==void 0)return r.refs[t]=gh.call(this,a)}Ze.resolveRef=mh;function gh(r){return(0,vt.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:gn.call(this,r)}function si(r){for(const e of this._compilations)if(yh(e,r))return e}Ze.getCompilingSchema=si;function yh(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function vh(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||ds.call(this,r,e)}function ds(r,e){const t=this.opts.uriResolver.parse(e),s=(0,vt._getFullPath)(this.opts.uriResolver,t);let n=(0,vt.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&s===n)return yn.call(this,t,r);const a=(0,vt.normalizeId)(s),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const l=ds.call(this,r,i);return typeof(l==null?void 0:l.schema)!="object"?void 0:yn.call(this,t,l)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||gn.call(this,i),a===(0,vt.normalizeId)(e)){const{schema:l}=i,{schemaId:d}=this.opts,o=l[d];return o&&(n=(0,vt.resolveUrl)(this.opts.uriResolver,n,o)),new cs({schema:l,schemaId:d,root:r,baseId:n})}return yn.call(this,t,i)}}Ze.resolveSchema=ds;const _h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function yn(r,{baseId:e,schema:t,root:s}){var n;if(((n=r.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const l of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const d=t[(0,ri.unescapeFragment)(l)];if(d===void 0)return;t=d;const o=typeof t=="object"&&t[this.opts.schemaId];!_h.has(l)&&o&&(e=(0,vt.resolveUrl)(this.opts.uriResolver,e,o))}let a;if(typeof t!="boolean"&&t.$ref&&!(0,ri.schemaHasRulesButRef)(t,this.RULES)){const l=(0,vt.resolveUrl)(this.opts.uriResolver,e,t.$ref);a=ds.call(this,s,l)}const{schemaId:i}=this.opts;if(a=a||new cs({schema:t,schemaId:i,root:s,baseId:e}),a.schema!==a.root.schema)return a}const bh="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",kh="Meta-schema for $data reference (JSON AnySchema extension proposal)",$h="object",wh=["$data"],Eh={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Sh=!1,xh={$id:bh,description:kh,type:$h,required:wh,properties:Eh,additionalProperties:Sh};var vn={},hs={exports:{}},Ah={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}};const{HEX:Ch}=Ah;function ni(r){if(ii(r,".")<3)return{host:r,isIPV4:!1};const e=r.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[t]=e;return t?{host:Oh(t,"."),isIPV4:!0}:{host:r,isIPV4:!1}}function ai(r,e=!1){let t="",s=!0;for(const n of r){if(Ch[n]===void 0)return;n!=="0"&&s===!0&&(s=!1),s||(t+=n)}return e&&t.length===0&&(t="0"),t}function Th(r){let e=0;const t={error:!1,address:"",zone:""},s=[],n=[];let a=!1,i=!1,l=!1;function d(){if(n.length){if(a===!1){const o=ai(n);if(o!==void 0)s.push(o);else return t.error=!0,!1}n.length=0}return!0}for(let o=0;o<r.length;o++){const u=r[o];if(!(u==="["||u==="]"))if(u===":"){if(i===!0&&(l=!0),!d())break;if(e++,s.push(":"),e>7){t.error=!0;break}o-1>=0&&r[o-1]===":"&&(i=!0);continue}else if(u==="%"){if(!d())break;a=!0}else{n.push(u);continue}}return n.length&&(a?t.zone=n.join(""):l?s.push(n.join("")):s.push(ai(n))),t.address=s.join(""),t}function oi(r,e={}){if(ii(r,":")<2)return{host:r,isIPV6:!1};const t=Th(r);if(t.error)return{host:r,isIPV6:!1};{let s=t.address,n=t.address;return t.zone&&(s+="%"+t.zone,n+="%25"+t.zone),{host:s,escapedHost:n,isIPV6:!0}}}function Oh(r,e){let t="",s=!0;const n=r.length;for(let a=0;a<n;a++){const i=r[a];i==="0"&&s?(a+1<=n&&r[a+1]===e||a+1===n)&&(t+=i,s=!1):(i===e?s=!0:s=!1,t+=i)}return t}function ii(r,e){let t=0;for(let s=0;s<r.length;s++)r[s]===e&&t++;return t}const li=/^\.\.?\//u,ui=/^\/\.(?:\/|$)/u,ci=/^\/\.\.(?:\/|$)/u,Ph=/^\/?(?:.|\n)*?(?=\/|$)/u;function Nh(r){const e=[];for(;r.length;)if(r.match(li))r=r.replace(li,"");else if(r.match(ui))r=r.replace(ui,"/");else if(r.match(ci))r=r.replace(ci,"/"),e.pop();else if(r==="."||r==="..")r="";else{const t=r.match(Ph);if(t){const s=t[0];r=r.slice(s.length),e.push(s)}else throw new Error("Unexpected dot segment condition")}return e.join("")}function Ih(r,e){const t=e!==!0?escape:unescape;return r.scheme!==void 0&&(r.scheme=t(r.scheme)),r.userinfo!==void 0&&(r.userinfo=t(r.userinfo)),r.host!==void 0&&(r.host=t(r.host)),r.path!==void 0&&(r.path=t(r.path)),r.query!==void 0&&(r.query=t(r.query)),r.fragment!==void 0&&(r.fragment=t(r.fragment)),r}function Dh(r,e){const t=[];if(r.userinfo!==void 0&&(t.push(r.userinfo),t.push("@")),r.host!==void 0){let s=unescape(r.host);const n=ni(s);if(n.isIPV4)s=n.host;else{const a=oi(n.host,{});a.isIPV6===!0?s=`[${a.escapedHost}]`:s=r.host}t.push(s)}return(typeof r.port=="number"||typeof r.port=="string")&&(t.push(":"),t.push(String(r.port))),t.length?t.join(""):void 0}var Mh={recomposeAuthority:Dh,normalizeComponentEncoding:Ih,removeDotSegments:Nh,normalizeIPv4:ni,normalizeIPv6:oi};const Fh=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Bh=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function di(r){return typeof r.secure=="boolean"?r.secure:String(r.scheme).toLowerCase()==="wss"}function hi(r){return r.host||(r.error=r.error||"HTTP URIs must have a host."),r}function pi(r){const e=String(r.scheme).toLowerCase()==="https";return(r.port===(e?443:80)||r.port==="")&&(r.port=void 0),r.path||(r.path="/"),r}function Rh(r){return r.secure=di(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r}function jh(r){if((r.port===(di(r)?443:80)||r.port==="")&&(r.port=void 0),typeof r.secure=="boolean"&&(r.scheme=r.secure?"wss":"ws",r.secure=void 0),r.resourceName){const[e,t]=r.resourceName.split("?");r.path=e&&e!=="/"?e:void 0,r.query=t,r.resourceName=void 0}return r.fragment=void 0,r}function Lh(r,e){if(!r.path)return r.error="URN can not be parsed",r;const t=r.path.match(Bh);if(t){const s=e.scheme||r.scheme||"urn";r.nid=t[1].toLowerCase(),r.nss=t[2];const n=`${s}:${e.nid||r.nid}`,a=_n[n];r.path=void 0,a&&(r=a.parse(r,e))}else r.error=r.error||"URN can not be parsed.";return r}function Vh(r,e){const t=e.scheme||r.scheme||"urn",s=r.nid.toLowerCase(),n=`${t}:${e.nid||s}`,a=_n[n];a&&(r=a.serialize(r,e));const i=r,l=r.nss;return i.path=`${s||e.nid}:${l}`,e.skipEscape=!0,i}function zh(r,e){const t=r;return t.uuid=t.nss,t.nss=void 0,!e.tolerant&&(!t.uuid||!Fh.test(t.uuid))&&(t.error=t.error||"UUID is not valid."),t}function Hh(r){const e=r;return e.nss=(r.uuid||"").toLowerCase(),e}const fi={scheme:"http",domainHost:!0,parse:hi,serialize:pi},Uh={scheme:"https",domainHost:fi.domainHost,parse:hi,serialize:pi},ps={scheme:"ws",domainHost:!0,parse:Rh,serialize:jh},qh={scheme:"wss",domainHost:ps.domainHost,parse:ps.parse,serialize:ps.serialize},Gh={scheme:"urn",parse:Lh,serialize:Vh,skipNormalize:!0},Wh={scheme:"urn:uuid",parse:zh,serialize:Hh,skipNormalize:!0},_n={http:fi,https:Uh,ws:ps,wss:qh,urn:Gh,"urn:uuid":Wh};var Kh=_n;const{normalizeIPv6:Xh,normalizeIPv4:Yh,removeDotSegments:Ir,recomposeAuthority:Jh,normalizeComponentEncoding:fs}=Mh,bn=Kh;function Zh(r,e){return typeof r=="string"?r=xt(Dt(r,e),e):typeof r=="object"&&(r=Dt(xt(r,e),e)),r}function Qh(r,e,t){const s=Object.assign({scheme:"null"},t),n=mi(Dt(r,s),Dt(e,s),s,!0);return xt(n,{...s,skipEscape:!0})}function mi(r,e,t,s){const n={};return s||(r=Dt(xt(r,t),t),e=Dt(xt(e,t),t)),t=t||{},!t.tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Ir(e.path||""),n.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=Ir(e.path||""),n.query=e.query):(e.path?(e.path.charAt(0)==="/"?n.path=Ir(e.path):((r.userinfo!==void 0||r.host!==void 0||r.port!==void 0)&&!r.path?n.path="/"+e.path:r.path?n.path=r.path.slice(0,r.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=Ir(n.path)),n.query=e.query):(n.path=r.path,e.query!==void 0?n.query=e.query:n.query=r.query),n.userinfo=r.userinfo,n.host=r.host,n.port=r.port),n.scheme=r.scheme),n.fragment=e.fragment,n}function ep(r,e,t){return typeof r=="string"?(r=unescape(r),r=xt(fs(Dt(r,t),!0),{...t,skipEscape:!0})):typeof r=="object"&&(r=xt(fs(r,!0),{...t,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=xt(fs(Dt(e,t),!0),{...t,skipEscape:!0})):typeof e=="object"&&(e=xt(fs(e,!0),{...t,skipEscape:!0})),r.toLowerCase()===e.toLowerCase()}function xt(r,e){const t={host:r.host,scheme:r.scheme,userinfo:r.userinfo,port:r.port,path:r.path,query:r.query,nid:r.nid,nss:r.nss,uuid:r.uuid,fragment:r.fragment,reference:r.reference,resourceName:r.resourceName,secure:r.secure,error:""},s=Object.assign({},e),n=[],a=bn[(s.scheme||t.scheme||"").toLowerCase()];a&&a.serialize&&a.serialize(t,s),t.path!==void 0&&(s.skipEscape?t.path=unescape(t.path):(t.path=escape(t.path),t.scheme!==void 0&&(t.path=t.path.split("%3A").join(":")))),s.reference!=="suffix"&&t.scheme&&n.push(t.scheme,":");const i=Jh(t,s);if(i!==void 0&&(s.reference!=="suffix"&&n.push("//"),n.push(i),t.path&&t.path.charAt(0)!=="/"&&n.push("/")),t.path!==void 0){let l=t.path;!s.absolutePath&&(!a||!a.absolutePath)&&(l=Ir(l)),i===void 0&&(l=l.replace(/^\/\//u,"/%2F")),n.push(l)}return t.query!==void 0&&n.push("?",t.query),t.fragment!==void 0&&n.push("#",t.fragment),n.join("")}const tp=Array.from({length:127},(r,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function rp(r){let e=0;for(let t=0,s=r.length;t<s;++t)if(e=r.charCodeAt(t),e>126||tp[e])return!0;return!1}const sp=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Dt(r,e){const t=Object.assign({},e),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=r.indexOf("%")!==-1;let a=!1;t.reference==="suffix"&&(r=(t.scheme?t.scheme+":":"")+"//"+r);const i=r.match(sp);if(i){if(s.scheme=i[1],s.userinfo=i[3],s.host=i[4],s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=i[7],s.fragment=i[8],isNaN(s.port)&&(s.port=i[5]),s.host){const d=Yh(s.host);if(d.isIPV4===!1){const o=Xh(d.host,{isIPV4:!1});s.host=o.host.toLowerCase(),a=o.isIPV6}else s.host=d.host,a=!0}s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&!s.path&&s.query===void 0?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",t.reference&&t.reference!=="suffix"&&t.reference!==s.reference&&(s.error=s.error||"URI is not a "+t.reference+" reference.");const l=bn[(t.scheme||s.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!l||!l.unicodeSupport)&&s.host&&(t.domainHost||l&&l.domainHost)&&a===!1&&rp(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(d){s.error=s.error||"Host's domain name can not be converted to ASCII: "+d}(!l||l&&!l.skipNormalize)&&(n&&s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),n&&s.host!==void 0&&(s.host=unescape(s.host)),s.path!==void 0&&s.path.length&&(s.path=escape(unescape(s.path))),s.fragment!==void 0&&s.fragment.length&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),l&&l.parse&&l.parse(s,t)}else s.error=s.error||"URI can not be parsed.";return s}const kn={SCHEMES:bn,normalize:Zh,resolve:Qh,resolveComponents:mi,equal:ep,serialize:xt,parse:Dt};hs.exports=kn,hs.exports.default=kn,hs.exports.fastUri=kn;var np=hs.exports;Object.defineProperty(vn,"__esModule",{value:!0});const gi=np;gi.code='require("ajv/dist/runtime/uri").default',vn.default=gi,function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=lt;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=ie;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const s=Nr,n=gr,a=Jt,i=Ze,l=ie,d=Me,o=Ae,u=Y,p=xh,f=vn,_=(P,k)=>new RegExp(P,k);_.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},h=200;function b(P){var k,x,E,c,w,C,L,F,z,q,Z,H,fe,ge,We,st,Ke,et,dt,ht,Ie,De,Le,tt,nt;const Ce=P.strict,pt=(k=P.code)===null||k===void 0?void 0:k.optimize,or=pt===!0||pt===void 0?1:pt||0,qt=(E=(x=P.code)===null||x===void 0?void 0:x.regExp)!==null&&E!==void 0?E:_,Gt=(c=P.uriResolver)!==null&&c!==void 0?c:f.default;return{strictSchema:(C=(w=P.strictSchema)!==null&&w!==void 0?w:Ce)!==null&&C!==void 0?C:!0,strictNumbers:(F=(L=P.strictNumbers)!==null&&L!==void 0?L:Ce)!==null&&F!==void 0?F:!0,strictTypes:(q=(z=P.strictTypes)!==null&&z!==void 0?z:Ce)!==null&&q!==void 0?q:"log",strictTuples:(H=(Z=P.strictTuples)!==null&&Z!==void 0?Z:Ce)!==null&&H!==void 0?H:"log",strictRequired:(ge=(fe=P.strictRequired)!==null&&fe!==void 0?fe:Ce)!==null&&ge!==void 0?ge:!1,code:P.code?{...P.code,optimize:or,regExp:qt}:{optimize:or,regExp:qt},loopRequired:(We=P.loopRequired)!==null&&We!==void 0?We:h,loopEnum:(st=P.loopEnum)!==null&&st!==void 0?st:h,meta:(Ke=P.meta)!==null&&Ke!==void 0?Ke:!0,messages:(et=P.messages)!==null&&et!==void 0?et:!0,inlineRefs:(dt=P.inlineRefs)!==null&&dt!==void 0?dt:!0,schemaId:(ht=P.schemaId)!==null&&ht!==void 0?ht:"$id",addUsedSchema:(Ie=P.addUsedSchema)!==null&&Ie!==void 0?Ie:!0,validateSchema:(De=P.validateSchema)!==null&&De!==void 0?De:!0,validateFormats:(Le=P.validateFormats)!==null&&Le!==void 0?Le:!0,unicodeRegExp:(tt=P.unicodeRegExp)!==null&&tt!==void 0?tt:!0,int32range:(nt=P.int32range)!==null&&nt!==void 0?nt:!0,uriResolver:Gt}}class ${constructor(k={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...b(k)};const{es5:x,lines:E}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:v,es5:x,lines:E}),this.logger=B(k.logger);const c=k.validateFormats;k.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,g,k,"NOT SUPPORTED"),S.call(this,y,k,"DEPRECATED","warn"),this._metaOpts=I.call(this),k.formats&&R.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&V.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),N.call(this),k.validateFormats=c}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:x,schemaId:E}=this.opts;let c=p;E==="id"&&(c={...p},c.id=c.$id,delete c.$id),x&&k&&this.addMetaSchema(c,c[E],!1)}defaultMeta(){const{meta:k,schemaId:x}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[x]||k:void 0}validate(k,x){let E;if(typeof k=="string"){if(E=this.getSchema(k),!E)throw new Error(`no schema with key or ref "${k}"`)}else E=this.compile(k);const c=E(x);return"$async"in E||(this.errors=E.errors),c}compile(k,x){const E=this._addSchema(k,x);return E.validate||this._compileSchemaEnv(E)}compileAsync(k,x){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:E}=this.opts;return c.call(this,k,x);async function c(q,Z){await w.call(this,q.$schema);const H=this._addSchema(q,Z);return H.validate||C.call(this,H)}async function w(q){q&&!this.getSchema(q)&&await c.call(this,{$ref:q},!0)}async function C(q){try{return this._compileSchemaEnv(q)}catch(Z){if(!(Z instanceof n.default))throw Z;return L.call(this,Z),await F.call(this,Z.missingSchema),C.call(this,q)}}function L({missingSchema:q,missingRef:Z}){if(this.refs[q])throw new Error(`AnySchema ${q} is loaded but ${Z} cannot be resolved`)}async function F(q){const Z=await z.call(this,q);this.refs[q]||await w.call(this,Z.$schema),this.refs[q]||this.addSchema(Z,q,x)}async function z(q){const Z=this._loading[q];if(Z)return Z;try{return await(this._loading[q]=E(q))}finally{delete this._loading[q]}}}addSchema(k,x,E,c=this.opts.validateSchema){if(Array.isArray(k)){for(const C of k)this.addSchema(C,void 0,E,c);return this}let w;if(typeof k=="object"){const{schemaId:C}=this.opts;if(w=k[C],w!==void 0&&typeof w!="string")throw new Error(`schema ${C} must be string`)}return x=(0,d.normalizeId)(x||w),this._checkUnique(x),this.schemas[x]=this._addSchema(k,E,x,c,!0),this}addMetaSchema(k,x,E=this.opts.validateSchema){return this.addSchema(k,x,!0,E),this}validateSchema(k,x){if(typeof k=="boolean")return!0;let E;if(E=k.$schema,E!==void 0&&typeof E!="string")throw new Error("$schema must be a string");if(E=E||this.opts.defaultMeta||this.defaultMeta(),!E)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const c=this.validate(E,k);if(!c&&x){const w="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(w);else throw new Error(w)}return c}getSchema(k){let x;for(;typeof(x=O.call(this,k))=="string";)k=x;if(x===void 0){const{schemaId:E}=this.opts,c=new i.SchemaEnv({schema:{},schemaId:E});if(x=i.resolveSchema.call(this,c,k),!x)return;this.refs[k]=x}return x.validate||this._compileSchemaEnv(x)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const x=O.call(this,k);return typeof x=="object"&&this._cache.delete(x.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const x=k;this._cache.delete(x);let E=k[this.opts.schemaId];return E&&(E=(0,d.normalizeId)(E),delete this.schemas[E],delete this.refs[E]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(k){for(const x of k)this.addKeyword(x);return this}addKeyword(k,x){let E;if(typeof k=="string")E=k,typeof x=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),x.keyword=E);else if(typeof k=="object"&&x===void 0){if(x=k,E=x.keyword,Array.isArray(E)&&!E.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(U.call(this,E,x),!x)return(0,u.eachItem)(E,w=>W.call(this,w)),this;se.call(this,x);const c={...x,type:(0,o.getJSONTypes)(x.type),schemaType:(0,o.getJSONTypes)(x.schemaType)};return(0,u.eachItem)(E,c.type.length===0?w=>W.call(this,w,c):w=>c.type.forEach(C=>W.call(this,w,c,C))),this}getKeyword(k){const x=this.RULES.all[k];return typeof x=="object"?x.definition:!!x}removeKeyword(k){const{RULES:x}=this;delete x.keywords[k],delete x.all[k];for(const E of x.rules){const c=E.rules.findIndex(w=>w.keyword===k);c>=0&&E.rules.splice(c,1)}return this}addFormat(k,x){return typeof x=="string"&&(x=new RegExp(x)),this.formats[k]=x,this}errorsText(k=this.errors,{separator:x=", ",dataVar:E="data"}={}){return!k||k.length===0?"No errors":k.map(c=>`${E}${c.instancePath} ${c.message}`).reduce((c,w)=>c+x+w)}$dataMetaSchema(k,x){const E=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const c of x){const w=c.split("/").slice(1);let C=k;for(const L of w)C=C[L];for(const L in E){const F=E[L];if(typeof F!="object")continue;const{$data:z}=F.definition,q=C[L];z&&q&&(C[L]=ne(q))}}return k}_removeAllSchemas(k,x){for(const E in k){const c=k[E];(!x||x.test(E))&&(typeof c=="string"?delete k[E]:c&&!c.meta&&(this._cache.delete(c.schema),delete k[E]))}}_addSchema(k,x,E,c=this.opts.validateSchema,w=this.opts.addUsedSchema){let C;const{schemaId:L}=this.opts;if(typeof k=="object")C=k[L];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let F=this._cache.get(k);if(F!==void 0)return F;E=(0,d.normalizeId)(C||E);const z=d.getSchemaRefs.call(this,k,E);return F=new i.SchemaEnv({schema:k,schemaId:L,meta:x,baseId:E,localRefs:z}),this._cache.set(F.schema,F),w&&!E.startsWith("#")&&(E&&this._checkUnique(E),this.refs[E]=F),c&&this.validateSchema(k,!0),F}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):i.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const x=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,k)}finally{this.opts=x}}}$.ValidationError=s.default,$.MissingRefError=n.default,r.default=$;function S(P,k,x,E="error"){for(const c in P){const w=c;w in k&&this.logger[E](`${x}: option ${c}. ${P[w]}`)}}function O(P){return P=(0,d.normalizeId)(P),this.schemas[P]||this.refs[P]}function N(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const k in P)this.addSchema(P[k],k)}function R(){for(const P in this.opts.formats){const k=this.opts.formats[P];k&&this.addFormat(P,k)}}function V(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in P){const x=P[k];x.keyword||(x.keyword=k),this.addKeyword(x)}}function I(){const P={...this.opts};for(const k of m)delete P[k];return P}const T={log(){},warn(){},error(){}};function B(P){if(P===!1)return T;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const j=/^[a-z_$][a-z0-9_$:-]*$/i;function U(P,k){const{RULES:x}=this;if((0,u.eachItem)(P,E=>{if(x.keywords[E])throw new Error(`Keyword ${E} is already defined`);if(!j.test(E))throw new Error(`Keyword ${E} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function W(P,k,x){var E;const c=k==null?void 0:k.post;if(x&&c)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:w}=this;let C=c?w.post:w.rules.find(({type:F})=>F===x);if(C||(C={type:x,rules:[]},w.rules.push(C)),w.keywords[P]=!0,!k)return;const L={keyword:P,definition:{...k,type:(0,o.getJSONTypes)(k.type),schemaType:(0,o.getJSONTypes)(k.schemaType)}};k.before?X.call(this,C,L,k.before):C.rules.push(L),w.all[P]=L,(E=k.implements)===null||E===void 0||E.forEach(F=>this.addKeyword(F))}function X(P,k,x){const E=P.rules.findIndex(c=>c.keyword===x);E>=0?P.rules.splice(E,0,k):(P.rules.push(k),this.logger.warn(`rule ${x} is not defined`))}function se(P){let{metaSchema:k}=P;k!==void 0&&(P.$data&&this.opts.$data&&(k=ne(k)),P.validateSchema=this.compile(k,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ne(P){return{anyOf:[P,J]}}}(go);var $n={},wn={},En={};Object.defineProperty(En,"__esModule",{value:!0});const ap={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};En.default=ap;var er={};Object.defineProperty(er,"__esModule",{value:!0}),er.callRef=er.getValidate=void 0;const op=gr,yi=de,Qe=ie,yr=gt,vi=Ze,ms=Y,ip={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:s}=r,{baseId:n,schemaEnv:a,validateName:i,opts:l,self:d}=s,{root:o}=a;if((t==="#"||t==="#/")&&n===o.baseId)return p();const u=vi.resolveRef.call(d,o,n,t);if(u===void 0)throw new op.default(s.opts.uriResolver,n,t);if(u instanceof vi.SchemaEnv)return f(u);return _(u);function p(){if(a===o)return gs(r,i,a,a.$async);const m=e.scopeValue("root",{ref:o});return gs(r,(0,Qe._)`${m}.validate`,o,o.$async)}function f(m){const v=_i(r,m);gs(r,v,m,m.$async)}function _(m){const v=e.scopeValue("schema",l.code.source===!0?{ref:m,code:(0,Qe.stringify)(m)}:{ref:m}),g=e.name("valid"),y=r.subschema({schema:m,dataTypes:[],schemaPath:Qe.nil,topSchemaRef:v,errSchemaPath:t},g);r.mergeEvaluated(y),r.ok(g)}}};function _i(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Qe._)`${t.scopeValue("wrapper",{ref:e})}.validate`}er.getValidate=_i;function gs(r,e,t,s){const{gen:n,it:a}=r,{allErrors:i,schemaEnv:l,opts:d}=a,o=d.passContext?yr.default.this:Qe.nil;s?u():p();function u(){if(!l.$async)throw new Error("async schema referenced by sync schema");const m=n.let("valid");n.try(()=>{n.code((0,Qe._)`await ${(0,yi.callValidateCode)(r,e,o)}`),_(e),i||n.assign(m,!0)},v=>{n.if((0,Qe._)`!(${v} instanceof ${a.ValidationError})`,()=>n.throw(v)),f(v),i||n.assign(m,!1)}),r.ok(m)}function p(){r.result((0,yi.callValidateCode)(r,e,o),()=>_(e),()=>f(e))}function f(m){const v=(0,Qe._)`${m}.errors`;n.assign(yr.default.vErrors,(0,Qe._)`${yr.default.vErrors} === null ? ${v} : ${yr.default.vErrors}.concat(${v})`),n.assign(yr.default.errors,(0,Qe._)`${yr.default.vErrors}.length`)}function _(m){var v;if(!a.opts.unevaluated)return;const g=(v=t==null?void 0:t.validate)===null||v===void 0?void 0:v.evaluated;if(a.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(a.props=ms.mergeEvaluated.props(n,g.props,a.props));else{const y=n.var("props",(0,Qe._)`${m}.evaluated.props`);a.props=ms.mergeEvaluated.props(n,y,a.props,Qe.Name)}if(a.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(a.items=ms.mergeEvaluated.items(n,g.items,a.items));else{const y=n.var("items",(0,Qe._)`${m}.evaluated.items`);a.items=ms.mergeEvaluated.items(n,y,a.items,Qe.Name)}}}er.callRef=gs,er.default=ip,Object.defineProperty(wn,"__esModule",{value:!0});const lp=En,up=er,cp=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",lp.default,up.default];wn.default=cp;var Sn={},xn={};Object.defineProperty(xn,"__esModule",{value:!0});const ys=ie,Ht=ys.operators,vs={maximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},minimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},exclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},exclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},dp={message:({keyword:r,schemaCode:e})=>(0,ys.str)`must be ${vs[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,ys._)`{comparison: ${vs[r].okStr}, limit: ${e}}`},hp={keyword:Object.keys(vs),type:"number",schemaType:"number",$data:!0,error:dp,code(r){const{keyword:e,data:t,schemaCode:s}=r;r.fail$data((0,ys._)`${t} ${vs[e].fail} ${s} || isNaN(${t})`)}};xn.default=hp;var An={};Object.defineProperty(An,"__esModule",{value:!0});const Dr=ie,pp={message:({schemaCode:r})=>(0,Dr.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,Dr._)`{multipleOf: ${r}}`},fp={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:pp,code(r){const{gen:e,data:t,schemaCode:s,it:n}=r,a=n.opts.multipleOfPrecision,i=e.let("res"),l=a?(0,Dr._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,Dr._)`${i} !== parseInt(${i})`;r.fail$data((0,Dr._)`(${s} === 0 || (${i} = ${t}/${s}, ${l}))`)}};An.default=fp;var Cn={},Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});function bi(r){const e=r.length;let t=0,s=0,n;for(;s<e;)t++,n=r.charCodeAt(s++),n>=55296&&n<=56319&&s<e&&(n=r.charCodeAt(s),(n&64512)===56320&&s++);return t}Tn.default=bi,bi.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(Cn,"__esModule",{value:!0});const tr=ie,mp=Y,gp=Tn,yp={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,tr.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,tr._)`{limit: ${r}}`},vp={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:yp,code(r){const{keyword:e,data:t,schemaCode:s,it:n}=r,a=e==="maxLength"?tr.operators.GT:tr.operators.LT,i=n.opts.unicode===!1?(0,tr._)`${t}.length`:(0,tr._)`${(0,mp.useFunc)(r.gen,gp.default)}(${t})`;r.fail$data((0,tr._)`${i} ${a} ${s}`)}};Cn.default=vp;var On={};Object.defineProperty(On,"__esModule",{value:!0});const _p=de,_s=ie,bp={message:({schemaCode:r})=>(0,_s.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,_s._)`{pattern: ${r}}`},kp={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:bp,code(r){const{data:e,$data:t,schema:s,schemaCode:n,it:a}=r,i=a.opts.unicodeRegExp?"u":"",l=t?(0,_s._)`(new RegExp(${n}, ${i}))`:(0,_p.usePattern)(r,s);r.fail$data((0,_s._)`!${l}.test(${e})`)}};On.default=kp;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const Mr=ie,$p={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,Mr.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,Mr._)`{limit: ${r}}`},wp={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:$p,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxProperties"?Mr.operators.GT:Mr.operators.LT;r.fail$data((0,Mr._)`Object.keys(${t}).length ${n} ${s}`)}};Pn.default=wp;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});const Fr=de,Br=ie,Ep=Y,Sp={message:({params:{missingProperty:r}})=>(0,Br.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Br._)`{missingProperty: ${r}}`},xp={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Sp,code(r){const{gen:e,schema:t,schemaCode:s,data:n,$data:a,it:i}=r,{opts:l}=i;if(!a&&t.length===0)return;const d=t.length>=l.loopRequired;if(i.allErrors?o():u(),l.strictRequired){const _=r.parentSchema.properties,{definedProperties:m}=r.it;for(const v of t)if((_==null?void 0:_[v])===void 0&&!m.has(v)){const g=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${v}" is not defined at "${g}" (strictRequired)`;(0,Ep.checkStrictMode)(i,y,i.opts.strictRequired)}}function o(){if(d||a)r.block$data(Br.nil,p);else for(const _ of t)(0,Fr.checkReportMissingProp)(r,_)}function u(){const _=e.let("missing");if(d||a){const m=e.let("valid",!0);r.block$data(m,()=>f(_,m)),r.ok(m)}else e.if((0,Fr.checkMissingProp)(r,t,_)),(0,Fr.reportMissingProp)(r,_),e.else()}function p(){e.forOf("prop",s,_=>{r.setParams({missingProperty:_}),e.if((0,Fr.noPropertyInData)(e,n,_,l.ownProperties),()=>r.error())})}function f(_,m){r.setParams({missingProperty:_}),e.forOf(_,s,()=>{e.assign(m,(0,Fr.propertyInData)(e,n,_,l.ownProperties)),e.if((0,Br.not)(m),()=>{r.error(),e.break()})},Br.nil)}}};Nn.default=xp;var In={};Object.defineProperty(In,"__esModule",{value:!0});const Rr=ie,Ap={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,Rr.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,Rr._)`{limit: ${r}}`},Cp={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ap,code(r){const{keyword:e,data:t,schemaCode:s}=r,n=e==="maxItems"?Rr.operators.GT:Rr.operators.LT;r.fail$data((0,Rr._)`${t}.length ${n} ${s}`)}};In.default=Cp;var Dn={},jr={};Object.defineProperty(jr,"__esModule",{value:!0});const ki=Fo;ki.code='require("ajv/dist/runtime/equal").default',jr.default=ki,Object.defineProperty(Dn,"__esModule",{value:!0});const Mn=Ae,Fe=ie,Tp=Y,Op=jr,Pp={message:({params:{i:r,j:e}})=>(0,Fe.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,Fe._)`{i: ${r}, j: ${e}}`},Np={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Pp,code(r){const{gen:e,data:t,$data:s,schema:n,parentSchema:a,schemaCode:i,it:l}=r;if(!s&&!n)return;const d=e.let("valid"),o=a.items?(0,Mn.getSchemaTypes)(a.items):[];r.block$data(d,u,(0,Fe._)`${i} === false`),r.ok(d);function u(){const m=e.let("i",(0,Fe._)`${t}.length`),v=e.let("j");r.setParams({i:m,j:v}),e.assign(d,!0),e.if((0,Fe._)`${m} > 1`,()=>(p()?f:_)(m,v))}function p(){return o.length>0&&!o.some(m=>m==="object"||m==="array")}function f(m,v){const g=e.name("item"),y=(0,Mn.checkDataTypes)(o,g,l.opts.strictNumbers,Mn.DataType.Wrong),h=e.const("indices",(0,Fe._)`{}`);e.for((0,Fe._)`;${m}--;`,()=>{e.let(g,(0,Fe._)`${t}[${m}]`),e.if(y,(0,Fe._)`continue`),o.length>1&&e.if((0,Fe._)`typeof ${g} == "string"`,(0,Fe._)`${g} += "_"`),e.if((0,Fe._)`typeof ${h}[${g}] == "number"`,()=>{e.assign(v,(0,Fe._)`${h}[${g}]`),r.error(),e.assign(d,!1).break()}).code((0,Fe._)`${h}[${g}] = ${m}`)})}function _(m,v){const g=(0,Tp.useFunc)(e,Op.default),y=e.name("outer");e.label(y).for((0,Fe._)`;${m}--;`,()=>e.for((0,Fe._)`${v} = ${m}; ${v}--;`,()=>e.if((0,Fe._)`${g}(${t}[${m}], ${t}[${v}])`,()=>{r.error(),e.assign(d,!1).break(y)})))}}};Dn.default=Np;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});const Bn=ie,Ip=Y,Dp=jr,Mp={message:"must be equal to constant",params:({schemaCode:r})=>(0,Bn._)`{allowedValue: ${r}}`},Fp={keyword:"const",$data:!0,error:Mp,code(r){const{gen:e,data:t,$data:s,schemaCode:n,schema:a}=r;s||a&&typeof a=="object"?r.fail$data((0,Bn._)`!${(0,Ip.useFunc)(e,Dp.default)}(${t}, ${n})`):r.fail((0,Bn._)`${a} !== ${t}`)}};Fn.default=Fp;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});const Lr=ie,Bp=Y,Rp=jr,jp={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,Lr._)`{allowedValues: ${r}}`},Lp={keyword:"enum",schemaType:"array",$data:!0,error:jp,code(r){const{gen:e,data:t,$data:s,schema:n,schemaCode:a,it:i}=r;if(!s&&n.length===0)throw new Error("enum must have non-empty array");const l=n.length>=i.opts.loopEnum;let d;const o=()=>d??(d=(0,Bp.useFunc)(e,Rp.default));let u;if(l||s)u=e.let("valid"),r.block$data(u,p);else{if(!Array.isArray(n))throw new Error("ajv implementation error");const _=e.const("vSchema",a);u=(0,Lr.or)(...n.map((m,v)=>f(_,v)))}r.pass(u);function p(){e.assign(u,!1),e.forOf("v",a,_=>e.if((0,Lr._)`${o()}(${t}, ${_})`,()=>e.assign(u,!0).break()))}function f(_,m){const v=n[m];return typeof v=="object"&&v!==null?(0,Lr._)`${o()}(${t}, ${_}[${m}])`:(0,Lr._)`${t} === ${v}`}}};Rn.default=Lp,Object.defineProperty(Sn,"__esModule",{value:!0});const Vp=xn,zp=An,Hp=Cn,Up=On,qp=Pn,Gp=Nn,Wp=In,Kp=Dn,Xp=Fn,Yp=Rn,Jp=[Vp.default,zp.default,Hp.default,Up.default,qp.default,Gp.default,Wp.default,Kp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xp.default,Yp.default];Sn.default=Jp;var jn={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.validateAdditionalItems=void 0;const rr=ie,Ln=Y,Zp={message:({params:{len:r}})=>(0,rr.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,rr._)`{limit: ${r}}`},Qp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Zp,code(r){const{parentSchema:e,it:t}=r,{items:s}=e;if(!Array.isArray(s)){(0,Ln.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}$i(r,s)}};function $i(r,e){const{gen:t,schema:s,data:n,keyword:a,it:i}=r;i.items=!0;const l=t.const("len",(0,rr._)`${n}.length`);if(s===!1)r.setParams({len:e.length}),r.pass((0,rr._)`${l} <= ${e.length}`);else if(typeof s=="object"&&!(0,Ln.alwaysValidSchema)(i,s)){const o=t.var("valid",(0,rr._)`${l} <= ${e.length}`);t.if((0,rr.not)(o),()=>d(o)),r.ok(o)}function d(o){t.forRange("i",e.length,l,u=>{r.subschema({keyword:a,dataProp:u,dataPropType:Ln.Type.Num},o),i.allErrors||t.if((0,rr.not)(o),()=>t.break())})}}vr.validateAdditionalItems=$i,vr.default=Qp;var Vn={},_r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.validateTuple=void 0;const wi=ie,bs=Y,ef=de,tf={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return Ei(r,"additionalItems",e);t.items=!0,!(0,bs.alwaysValidSchema)(t,e)&&r.ok((0,ef.validateArray)(r))}};function Ei(r,e,t=r.schema){const{gen:s,parentSchema:n,data:a,keyword:i,it:l}=r;u(n),l.opts.unevaluated&&t.length&&l.items!==!0&&(l.items=bs.mergeEvaluated.items(s,t.length,l.items));const d=s.name("valid"),o=s.const("len",(0,wi._)`${a}.length`);t.forEach((p,f)=>{(0,bs.alwaysValidSchema)(l,p)||(s.if((0,wi._)`${o} > ${f}`,()=>r.subschema({keyword:i,schemaProp:f,dataProp:f},d)),r.ok(d))});function u(p){const{opts:f,errSchemaPath:_}=l,m=t.length,v=m===p.minItems&&(m===p.maxItems||p[e]===!1);if(f.strictTuples&&!v){const g=`"${i}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${_}"`;(0,bs.checkStrictMode)(l,g,f.strictTuples)}}}_r.validateTuple=Ei,_r.default=tf,Object.defineProperty(Vn,"__esModule",{value:!0});const rf=_r,sf={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,rf.validateTuple)(r,"items")};Vn.default=sf;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});const Si=ie,nf=Y,af=de,of=vr,lf={message:({params:{len:r}})=>(0,Si.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,Si._)`{limit: ${r}}`},uf={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:lf,code(r){const{schema:e,parentSchema:t,it:s}=r,{prefixItems:n}=t;s.items=!0,!(0,nf.alwaysValidSchema)(s,e)&&(n?(0,of.validateAdditionalItems)(r,n):r.ok((0,af.validateArray)(r)))}};zn.default=uf;var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});const ut=ie,ks=Y,cf={message:({params:{min:r,max:e}})=>e===void 0?(0,ut.str)`must contain at least ${r} valid item(s)`:(0,ut.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,ut._)`{minContains: ${r}}`:(0,ut._)`{minContains: ${r}, maxContains: ${e}}`},df={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:cf,code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;let i,l;const{minContains:d,maxContains:o}=s;a.opts.next?(i=d===void 0?1:d,l=o):i=1;const u=e.const("len",(0,ut._)`${n}.length`);if(r.setParams({min:i,max:l}),l===void 0&&i===0){(0,ks.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&i>l){(0,ks.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,ks.alwaysValidSchema)(a,t)){let v=(0,ut._)`${u} >= ${i}`;l!==void 0&&(v=(0,ut._)`${v} && ${u} <= ${l}`),r.pass(v);return}a.items=!0;const p=e.name("valid");l===void 0&&i===1?_(p,()=>e.if(p,()=>e.break())):i===0?(e.let(p,!0),l!==void 0&&e.if((0,ut._)`${n}.length > 0`,f)):(e.let(p,!1),f()),r.result(p,()=>r.reset());function f(){const v=e.name("_valid"),g=e.let("count",0);_(v,()=>e.if(v,()=>m(g)))}function _(v,g){e.forRange("i",0,u,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:ks.Type.Num,compositeRule:!0},v),g()})}function m(v){e.code((0,ut._)`${v}++`),l===void 0?e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(p,!0).break()):(e.if((0,ut._)`${v} > ${l}`,()=>e.assign(p,!1).break()),i===1?e.assign(p,!0):e.if((0,ut._)`${v} >= ${i}`,()=>e.assign(p,!0)))}}};Hn.default=df;var xi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=ie,t=Y,s=de;r.error={message:({params:{property:d,depsCount:o,deps:u}})=>{const p=o===1?"property":"properties";return(0,e.str)`must have ${p} ${u} when property ${d} is present`},params:({params:{property:d,depsCount:o,deps:u,missingProperty:p}})=>(0,e._)`{property: ${d},
|
|
25
25
|
missingProperty: ${p},
|
|
26
26
|
depsCount: ${o},
|
|
27
|
-
deps: ${l}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[o,l]=a(c);i(c,o),u(c,l)}};function a({schema:c}){const o={},l={};for(const p in c){if(p==="__proto__")continue;const f=Array.isArray(c[p])?o:l;f[p]=c[p]}return[o,l]}function i(c,o=c.schema){const{gen:l,data:p,it:f}=c;if(Object.keys(o).length===0)return;const _=l.let("missing");for(const g in o){const v=o[g];if(v.length===0)continue;const m=(0,s.propertyInData)(l,p,g,f.opts.ownProperties);c.setParams({property:g,depsCount:v.length,deps:v.join(", ")}),f.allErrors?l.if(m,()=>{for(const y of v)(0,s.checkReportMissingProp)(c,y)}):(l.if((0,e._)`${m} && (${(0,s.checkMissingProp)(c,v,_)})`),(0,s.reportMissingProp)(c,_),l.else())}}r.validatePropertyDeps=i;function u(c,o=c.schema){const{gen:l,data:p,keyword:f,it:_}=c,g=l.name("valid");for(const v in o)(0,t.alwaysValidSchema)(_,o[v])||(l.if((0,s.propertyInData)(l,p,v,_.opts.ownProperties),()=>{const m=c.subschema({keyword:f,schemaProp:v},g);c.mergeValidEvaluated(m,g)},()=>l.var(g,!0)),c.ok(g))}r.validateSchemaDeps=u,r.default=n})(Ei);var zn={};Object.defineProperty(zn,"__esModule",{value:!0});const Si=ie,dp=W,hp={message:"property name must be valid",params:({params:r})=>(0,Si._)`{propertyName: ${r.propertyName}}`},fp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:hp,code(r){const{gen:e,schema:t,data:s,it:n}=r;if((0,dp.alwaysValidSchema)(n,t))return;const a=e.name("valid");e.forIn("key",s,i=>{r.setParams({propertyName:i}),r.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),e.if((0,Si.not)(a),()=>{r.error(!0),n.allErrors||e.break()})}),r.ok(a)}};zn.default=fp;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});const ks=de,bt=ie,pp=yt,$s=W,mp={message:"must NOT have additional properties",params:({params:r})=>(0,bt._)`{additionalProperty: ${r.additionalProperty}}`},gp={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:mp,code(r){const{gen:e,schema:t,parentSchema:s,data:n,errsCount:a,it:i}=r;if(!a)throw new Error("ajv implementation error");const{allErrors:u,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,$s.alwaysValidSchema)(i,t))return;const o=(0,ks.allSchemaProperties)(s.properties),l=(0,ks.allSchemaProperties)(s.patternProperties);p(),r.ok((0,bt._)`${a} === ${pp.default.errors}`);function p(){e.forIn("key",n,m=>{!o.length&&!l.length?g(m):e.if(f(m),()=>g(m))})}function f(m){let y;if(o.length>8){const h=(0,$s.schemaRefOrVal)(i,s.properties,"properties");y=(0,ks.isOwnProperty)(e,h,m)}else o.length?y=(0,bt.or)(...o.map(h=>(0,bt._)`${m} === ${h}`)):y=bt.nil;return l.length&&(y=(0,bt.or)(y,...l.map(h=>(0,bt._)`${(0,ks.usePattern)(r,h)}.test(${m})`))),(0,bt.not)(y)}function _(m){e.code((0,bt._)`delete ${n}[${m}]`)}function g(m){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){_(m);return}if(t===!1){r.setParams({additionalProperty:m}),r.error(),u||e.break();return}if(typeof t=="object"&&!(0,$s.alwaysValidSchema)(i,t)){const y=e.name("valid");c.removeAdditional==="failing"?(v(m,y,!1),e.if((0,bt.not)(y),()=>{r.reset(),_(m)})):(v(m,y),u||e.if((0,bt.not)(y),()=>e.break()))}}function v(m,y,h){const b={keyword:"additionalProperties",dataProp:m,dataPropType:$s.Type.Str};h===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(b,y)}}};bs.default=gp;var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});const yp=it,xi=de,Un=W,Ci=bs,vp={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;a.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&Ci.default.code(new yp.KeywordCxt(a,Ci.default,"additionalProperties"));const i=(0,xi.allSchemaProperties)(t);for(const p of i)a.definedProperties.add(p);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Un.mergeEvaluated.props(e,(0,Un.toHash)(i),a.props));const u=i.filter(p=>!(0,Un.alwaysValidSchema)(a,t[p]));if(u.length===0)return;const c=e.name("valid");for(const p of u)o(p)?l(p):(e.if((0,xi.propertyInData)(e,n,p,a.opts.ownProperties)),l(p),a.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(p),r.ok(c);function o(p){return a.opts.useDefaults&&!a.compositeRule&&t[p].default!==void 0}function l(p){r.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Hn.default=vp;var qn={};Object.defineProperty(qn,"__esModule",{value:!0});const Ai=de,ws=ie,Ti=W,Pi=W,_p={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:s,parentSchema:n,it:a}=r,{opts:i}=a,u=(0,Ai.allSchemaProperties)(t),c=u.filter(v=>(0,Ti.alwaysValidSchema)(a,t[v]));if(u.length===0||c.length===u.length&&(!a.opts.unevaluated||a.props===!0))return;const o=i.strictSchema&&!i.allowMatchingProperties&&n.properties,l=e.name("valid");a.props!==!0&&!(a.props instanceof ws.Name)&&(a.props=(0,Pi.evaluatedPropsToName)(e,a.props));const{props:p}=a;f();function f(){for(const v of u)o&&_(v),a.allErrors?g(v):(e.var(l,!0),g(v),e.if(l))}function _(v){for(const m in o)new RegExp(v).test(m)&&(0,Ti.checkStrictMode)(a,`property ${m} matches pattern ${v} (use allowMatchingProperties)`)}function g(v){e.forIn("key",s,m=>{e.if((0,ws._)`${(0,Ai.usePattern)(r,v)}.test(${m})`,()=>{const y=c.includes(v);y||r.subschema({keyword:"patternProperties",schemaProp:v,dataProp:m,dataPropType:Pi.Type.Str},l),a.opts.unevaluated&&p!==!0?e.assign((0,ws._)`${p}[${m}]`,!0):!y&&!a.allErrors&&e.if((0,ws.not)(l),()=>e.break())})})}}};qn.default=_p;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});const bp=W,kp={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:s}=r;if((0,bp.alwaysValidSchema)(s,t)){r.fail();return}const n=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),r.failResult(n,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};Kn.default=kp;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});const $p=de,wp={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$p.validateUnion,error:{message:"must match a schema in anyOf"}};Gn.default=wp;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});const Es=ie,Ep=W,Sp={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,Es._)`{passingSchemas: ${r.passing}}`},xp={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Sp,code(r){const{gen:e,schema:t,parentSchema:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(n.opts.discriminator&&s.discriminator)return;const a=t,i=e.let("valid",!1),u=e.let("passing",null),c=e.name("_valid");r.setParams({passing:u}),e.block(o),r.result(i,()=>r.reset(),()=>r.error(!0));function o(){a.forEach((l,p)=>{let f;(0,Ep.alwaysValidSchema)(n,l)?e.var(c,!0):f=r.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&e.if((0,Es._)`${c} && ${i}`).assign(i,!1).assign(u,(0,Es._)`[${u}, ${p}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(u,p),f&&r.mergeEvaluated(f,Es.Name)})})}}};Wn.default=xp;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const Cp=W,Ap={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:s}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const n=e.name("valid");t.forEach((a,i)=>{if((0,Cp.alwaysValidSchema)(s,a))return;const u=r.subschema({keyword:"allOf",schemaProp:i},n);r.ok(n),r.mergeEvaluated(u)})}};Xn.default=Ap;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Ss=ie,Oi=W,Tp={message:({params:r})=>(0,Ss.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Ss._)`{failingKeyword: ${r.ifClause}}`},Pp={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Tp,code(r){const{gen:e,parentSchema:t,it:s}=r;t.then===void 0&&t.else===void 0&&(0,Oi.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const n=Ii(s,"then"),a=Ii(s,"else");if(!n&&!a)return;const i=e.let("valid",!0),u=e.name("_valid");if(c(),r.reset(),n&&a){const l=e.let("ifClause");r.setParams({ifClause:l}),e.if(u,o("then",l),o("else",l))}else n?e.if(u,o("then")):e.if((0,Ss.not)(u),o("else"));r.pass(i,()=>r.error(!0));function c(){const l=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);r.mergeEvaluated(l)}function o(l,p){return()=>{const f=r.subschema({keyword:l},u);e.assign(i,u),r.mergeValidEvaluated(f,i),p?e.assign(p,(0,Ss._)`${l}`):r.setParams({ifClause:l})}}}};function Ii(r,e){const t=r.schema[e];return t!==void 0&&!(0,Oi.alwaysValidSchema)(r,t)}Yn.default=Pp;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const Op=W,Ip={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,Op.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};Zn.default=Ip,Object.defineProperty(Rn,"__esModule",{value:!0});const Np=yr,Dp=jn,Mp=vr,Fp=Ln,Rp=Vn,Bp=Ei,jp=zn,Lp=bs,Vp=Hn,zp=qn,Hp=Kn,Up=Gn,qp=Wn,Kp=Xn,Gp=Yn,Wp=Zn;function Xp(r=!1){const e=[Hp.default,Up.default,qp.default,Kp.default,Gp.default,Wp.default,jp.default,Lp.default,Bp.default,Vp.default,zp.default];return r?e.push(Dp.default,Fp.default):e.push(Np.default,Mp.default),e.push(Rp.default),e}Rn.default=Xp;var Jn={},Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const we=ie,Yp={message:({schemaCode:r})=>(0,we.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,we._)`{format: ${r}}`},Zp={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Yp,code(r,e){const{gen:t,data:s,$data:n,schema:a,schemaCode:i,it:u}=r,{opts:c,errSchemaPath:o,schemaEnv:l,self:p}=u;if(!c.validateFormats)return;n?f():_();function f(){const g=t.scopeValue("formats",{ref:p.formats,code:c.code.formats}),v=t.const("fDef",(0,we._)`${g}[${i}]`),m=t.let("fType"),y=t.let("format");t.if((0,we._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>t.assign(m,(0,we._)`${v}.type || "string"`).assign(y,(0,we._)`${v}.validate`),()=>t.assign(m,(0,we._)`"string"`).assign(y,v)),r.fail$data((0,we.or)(h(),b()));function h(){return c.strictSchema===!1?we.nil:(0,we._)`${i} && !${y}`}function b(){const $=l.$async?(0,we._)`(${v}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,we._)`${y}(${s})`,S=(0,we._)`(typeof ${y} == "function" ? ${$} : ${y}.test(${s}))`;return(0,we._)`${y} && ${y} !== true && ${m} === ${e} && !${S}`}}function _(){const g=p.formats[a];if(!g){h();return}if(g===!0)return;const[v,m,y]=b(g);v===e&&r.pass($());function h(){if(c.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${a}" ignored in schema at path "${o}"`}}function b(S){const T=S instanceof RegExp?(0,we.regexpCode)(S):c.code.formats?(0,we._)`${c.code.formats}${(0,we.getProperty)(a)}`:void 0,I=t.scopeValue("formats",{key:a,ref:S,code:T});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,we._)`${I}.validate`]:["string",S,I]}function $(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!l.$async)throw new Error("async format in sync schema");return(0,we._)`await ${y}(${s})`}return typeof m=="function"?(0,we._)`${y}(${s})`:(0,we._)`${y}.test(${s})`}}}};Qn.default=Zp,Object.defineProperty(Jn,"__esModule",{value:!0});const Jp=Qn,Qp=[Jp.default];Jn.default=Qp;var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.contentVocabulary=_r.metadataVocabulary=void 0,_r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],_r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(bn,"__esModule",{value:!0});const e0=kn,t0=wn,r0=Rn,s0=Jn,Ni=_r,n0=[e0.default,t0.default,(0,r0.default)(),s0.default,Ni.metadataVocabulary,Ni.contentVocabulary];bn.default=n0;var ea={},xs={};Object.defineProperty(xs,"__esModule",{value:!0}),xs.DiscrError=void 0;var Di;(function(r){r.Tag="tag",r.Mapping="mapping"})(Di||(xs.DiscrError=Di={})),Object.defineProperty(ea,"__esModule",{value:!0});const br=ie,ta=xs,Mi=Ze,a0=mr,o0=W,i0={message:({params:{discrError:r,tagName:e}})=>r===ta.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,br._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},u0={keyword:"discriminator",type:"object",schemaType:"object",error:i0,code(r){const{gen:e,data:t,schema:s,parentSchema:n,it:a}=r,{oneOf:i}=n;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=s.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),o=e.const("tag",(0,br._)`${t}${(0,br.getProperty)(u)}`);e.if((0,br._)`typeof ${o} == "string"`,()=>l(),()=>r.error(!1,{discrError:ta.DiscrError.Tag,tag:o,tagName:u})),r.ok(c);function l(){const _=f();e.if(!1);for(const g in _)e.elseIf((0,br._)`${o} === ${g}`),e.assign(c,p(_[g]));e.else(),r.error(!1,{discrError:ta.DiscrError.Mapping,tag:o,tagName:u}),e.endIf()}function p(_){const g=e.name("valid"),v=r.subschema({keyword:"oneOf",schemaProp:_},g);return r.mergeEvaluated(v,br.Name),g}function f(){var _;const g={},v=y(n);let m=!0;for(let $=0;$<i.length;$++){let S=i[$];if(S!=null&&S.$ref&&!(0,o0.schemaHasRulesButRef)(S,a.self.RULES)){const I=S.$ref;if(S=Mi.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,I),S instanceof Mi.SchemaEnv&&(S=S.schema),S===void 0)throw new a0.default(a.opts.uriResolver,a.baseId,I)}const T=(_=S==null?void 0:S.properties)===null||_===void 0?void 0:_[u];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);m=m&&(v||y(S)),h(T,$)}if(!m)throw new Error(`discriminator: "${u}" must be required`);return g;function y({required:$}){return Array.isArray($)&&$.includes(u)}function h($,S){if($.const)b($.const,S);else if($.enum)for(const T of $.enum)b(T,S);else throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}function b($,S){if(typeof $!="string"||$ in g)throw new Error(`discriminator: "${u}" values must be unique strings`);g[$]=S}}}};ea.default=u0;const l0="http://json-schema.org/draft-07/schema#",c0="http://json-schema.org/draft-07/schema#",d0="Core schema meta-schema",h0={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},f0=["object","boolean"],p0={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},m0={$schema:l0,$id:c0,title:d0,definitions:h0,type:f0,properties:p0,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const t=po,s=bn,n=ea,a=m0,i=["/properties"],u="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const g=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(g,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.Ajv=c,r.exports=e=c,r.exports.Ajv=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var o=it;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var l=ie;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=Ir;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=mr;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Zs,Zs.exports);var Fi=Zs.exports,Ri={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Fi,s=ie,n=dr,a=it,i=cr,u=yt,c="errorMessage",o=new t.Name("emUsed"),l={required:"missingProperty",dependencies:"property",dependentRequired:"property"},p=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,_=/^""\s*\+\s*|\s*\+\s*""$/g;function g(m){return{keyword:c,schemaType:["string","object"],post:!0,code(y){const{gen:h,data:b,schema:$,schemaValue:S,it:T}=y;if(T.createErrors===!1)return;const I=$,R=s.strConcat(u.default.instancePath,T.errorPath);h.if(t._`${u.default.errors} > 0`,()=>{if(typeof I=="object"){const[w,d]=N(I);d&&A(d),w&&F(w),B(L(I))}const x=typeof I=="string"?I:I._;x&&H(x),m.keepErrors||G()});function L({properties:x,items:w}){const d={};if(x){d.props={};for(const E in x)d.props[E]=[]}if(w){d.items={};for(let E=0;E<w.length;E++)d.items[E]=[]}return d}function N(x){let w,d;for(const E in x){if(E==="properties"||E==="items")continue;const P=x[E];if(typeof P=="object"){w||(w={});const V=w[E]={};for(const M in P)V[M]=[]}else d||(d={}),d[E]=[]}return[w,d]}function A(x){const w=h.const("emErrors",t.stringify(x)),d=h.const("templates",ne(x,$));h.forOf("err",u.default.vErrors,M=>h.if(X(M,w),()=>h.code(t._`${w}[${M}.keyword].push(${M})`).assign(t._`${M}.${o}`,!0)));const{singleError:E}=m;if(E){const M=h.let("message",t._`""`),z=h.let("paramsErrors",t._`[]`);P(K=>{h.if(M,()=>h.code(t._`${M} += ${typeof E=="string"?E:";"}`)),h.code(t._`${M} += ${V(K)}`),h.assign(z,t._`${z}.concat(${w}[${K}])`)}),i.reportError(y,{message:M,params:t._`{errors: ${z}}`})}else P(M=>i.reportError(y,{message:V(M),params:t._`{errors: ${w}[${M}]}`}));function P(M){h.forIn("key",w,z=>h.if(t._`${w}[${z}].length`,()=>M(z)))}function V(M){return t._`${M} in ${d} ? ${d}[${M}]() : ${S}[${M}]`}}function F(x){const w=h.const("emErrors",t.stringify(x)),d=[];for(const z in x)d.push([z,ne(x[z],$[z])]);const E=h.const("templates",h.object(...d)),P=h.scopeValue("obj",{ref:l,code:t.stringify(l)}),V=h.let("emPropParams"),M=h.let("emParamsErrors");h.forOf("err",u.default.vErrors,z=>h.if(X(z,w),()=>{h.assign(V,t._`${P}[${z}.keyword]`),h.assign(M,t._`${w}[${z}.keyword][${z}.params[${V}]]`),h.if(M,()=>h.code(t._`${M}.push(${z})`).assign(t._`${z}.${o}`,!0))})),h.forIn("key",w,z=>h.forIn("keyProp",t._`${w}[${z}]`,K=>{h.assign(M,t._`${w}[${z}][${K}]`),h.if(t._`${M}.length`,()=>{const Q=h.const("tmpl",t._`${E}[${z}] && ${E}[${z}][${K}]`);i.reportError(y,{message:t._`${Q} ? ${Q}() : ${S}[${z}][${K}]`,params:t._`{errors: ${M}}`})})}))}function B(x){const{props:w,items:d}=x;if(!w&&!d)return;const E=t._`typeof ${b} == "object"`,P=t._`Array.isArray(${b})`,V=h.let("emErrors");let M,z;const K=h.let("templates");w&&d?(M=h.let("emChildKwd"),h.if(E),h.if(P,()=>{Q(d,$.items),h.assign(M,t.str`items`)},()=>{Q(w,$.properties),h.assign(M,t.str`properties`)}),z=t._`[${M}]`):d?(h.if(P),Q(d,$.items),z=t._`.items`):w&&(h.if(s.and(E,s.not(P))),Q(w,$.properties),z=t._`.properties`),h.forOf("err",u.default.vErrors,U=>se(U,V,pe=>h.code(t._`${V}[${pe}].push(${U})`).assign(t._`${U}.${o}`,!0))),h.forIn("key",V,U=>h.if(t._`${V}[${U}].length`,()=>{i.reportError(y,{message:t._`${U} in ${K} ? ${K}[${U}]() : ${S}${z}[${U}]`,params:t._`{errors: ${V}[${U}]}`}),h.assign(t._`${u.default.vErrors}[${u.default.errors}-1].instancePath`,t._`${R} + "/" + ${U}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf();function Q(U,pe){h.assign(V,t.stringify(U)),h.assign(K,ne(U,pe))}}function H(x){const w=h.const("emErrs",t._`[]`);h.forOf("err",u.default.vErrors,d=>h.if(te(d),()=>h.code(t._`${w}.push(${d})`).assign(t._`${d}.${o}`,!0))),h.if(t._`${w}.length`,()=>i.reportError(y,{message:O(x),params:t._`{errors: ${w}}`}))}function G(){const x=h.const("emErrs",t._`[]`);h.forOf("err",u.default.vErrors,w=>h.if(t._`!${w}.${o}`,()=>h.code(t._`${x}.push(${w})`))),h.assign(u.default.vErrors,x).assign(u.default.errors,t._`${x}.length`)}function X(x,w){return s.and(t._`${x}.keyword !== ${c}`,t._`!${x}.${o}`,t._`${x}.instancePath === ${R}`,t._`${x}.keyword in ${w}`,t._`${x}.schemaPath.indexOf(${T.errSchemaPath}) === 0`,t._`/^\\/[^\\/]*$/.test(${x}.schemaPath.slice(${T.errSchemaPath.length}))`)}function se(x,w,d){h.if(s.and(t._`${x}.keyword !== ${c}`,t._`!${x}.${o}`,t._`${x}.instancePath.indexOf(${R}) === 0`),()=>{const E=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:t._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),P=h.const("emMatches",t._`${E}.exec(${x}.instancePath.slice(${R}.length))`),V=h.const("emChild",t._`${P} && ${P}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(t._`${V} !== undefined && ${V} in ${w}`,()=>d(V))})}function te(x){return s.and(t._`${x}.keyword !== ${c}`,t._`!${x}.${o}`,s.or(t._`${x}.instancePath === ${R}`,s.and(t._`${x}.instancePath.indexOf(${R}) === 0`,t._`${x}.instancePath[${R}.length] === "/"`)),t._`${x}.schemaPath.indexOf(${T.errSchemaPath}) === 0`,t._`${x}.schemaPath[${T.errSchemaPath}.length] === "/"`)}function ne(x,w){const d=[];for(const E in x){const P=w[E];p.test(P)&&d.push([E,k(P)])}return h.object(...d)}function O(x){return p.test(x)?new n._Code(n.safeStringify(x).replace(f,(w,d)=>`" + JSON.stringify(${a.getData(d,T)}) + "`).replace(_,"")):t.stringify(x)}function k(x){return t._`function(){return ${O(x)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const v=(m,y={})=>{if(!m.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(m.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return m.addKeyword(g(y))};e.default=v,r.exports=v,r.exports.default=v})(Ri,Ri.exports);var Bi={exports:{}},ji={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(A,F){return{validate:A,compare:F}}r.fullFormats={date:e(a,i),time:e(c(!0),o),"date-time":e(f(!0),_),"iso-time":e(c(),l),"iso-date-time":e(f(),g),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:y,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:N,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:T},int64:{type:"number",validate:I},float:{type:"number",validate:R},double:{type:"number",validate:R},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,o),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,g),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},r.formatNames=Object.keys(r.fullFormats);function t(A){return A%4===0&&(A%100!==0||A%400===0)}const s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(A){const F=s.exec(A);if(!F)return!1;const B=+F[1],H=+F[2],G=+F[3];return H>=1&&H<=12&&G>=1&&G<=(H===2&&t(B)?29:n[H])}function i(A,F){if(A&&F)return A>F?1:A<F?-1:0}const u=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(A){return function(F){const B=u.exec(F);if(!B)return!1;const H=+B[1],G=+B[2],X=+B[3],se=B[4],te=B[5]==="-"?-1:1,ne=+(B[6]||0),O=+(B[7]||0);if(ne>23||O>59||A&&!se)return!1;if(H<=23&&G<=59&&X<60)return!0;const k=G-O*te,x=H-ne*te-(k<0?1:0);return(x===23||x===-1)&&(k===59||k===-1)&&X<61}}function o(A,F){if(!(A&&F))return;const B=new Date("2020-01-01T"+A).valueOf(),H=new Date("2020-01-01T"+F).valueOf();if(B&&H)return B-H}function l(A,F){if(!(A&&F))return;const B=u.exec(A),H=u.exec(F);if(B&&H)return A=B[1]+B[2]+B[3],F=H[1]+H[2]+H[3],A>F?1:A<F?-1:0}const p=/t|\s/i;function f(A){const F=c(A);return function(B){const H=B.split(p);return H.length===2&&a(H[0])&&F(H[1])}}function _(A,F){if(!(A&&F))return;const B=new Date(A).valueOf(),H=new Date(F).valueOf();if(B&&H)return B-H}function g(A,F){if(!(A&&F))return;const[B,H]=A.split(p),[G,X]=F.split(p),se=i(B,G);if(se!==void 0)return se||o(H,X)}const v=/\/|:/,m=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function y(A){return v.test(A)&&m.test(A)}const h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(A){return h.lastIndex=0,h.test(A)}const $=-2147483648,S=2**31-1;function T(A){return Number.isInteger(A)&&A<=S&&A>=$}function I(A){return Number.isInteger(A)}function R(){return!0}const L=/[^\\]\\Z/;function N(A){if(L.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(ji);var Li={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=Fi,t=ie,s=t.operators,n={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},a={message:({keyword:u,schemaCode:c})=>(0,t.str)`should be ${n[u].okStr} ${c}`,params:({keyword:u,schemaCode:c})=>(0,t._)`{comparison: ${n[u].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:a,code(u){const{gen:c,data:o,schemaCode:l,keyword:p,it:f}=u,{opts:_,self:g}=f;if(!_.validateFormats)return;const v=new e.KeywordCxt(f,g.RULES.all.format.definition,"format");v.$data?m():y();function m(){const b=c.scopeValue("formats",{ref:g.formats,code:_.code.formats}),$=c.const("fmt",(0,t._)`${b}[${v.schemaCode}]`);u.fail$data((0,t.or)((0,t._)`typeof ${$} != "object"`,(0,t._)`${$} instanceof RegExp`,(0,t._)`typeof ${$}.compare != "function"`,h($)))}function y(){const b=v.schema,$=g.formats[b];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${p}": format "${b}" does not define "compare" function`);const S=c.scopeValue("formats",{key:b,ref:$,code:_.code.formats?(0,t._)`${_.code.formats}${(0,t.getProperty)(b)}`:void 0});u.fail$data(h(S))}function h(b){return(0,t._)`${b}.compare(${o}, ${l}) ${n[p].fail} 0`}},dependencies:["format"]};const i=u=>(u.addKeyword(r.formatLimitDefinition),u);r.default=i})(Li),function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=ji,s=Li,n=ie,a=new n.Name("fullFormats"),i=new n.Name("fastFormats"),u=(o,l={keywords:!0})=>{if(Array.isArray(l))return c(o,l,t.fullFormats,a),o;const[p,f]=l.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,a],_=l.formats||t.formatNames;return c(o,_,p,f),l.keywords&&(0,s.default)(o),o};u.get=(o,l="full")=>{const p=(l==="fast"?t.fastFormats:t.fullFormats)[o];if(!p)throw new Error(`Unknown format "${o}"`);return p};function c(o,l,p,f){var _,g;(_=(g=o.opts.code).formats)!==null&&_!==void 0||(g.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const v of l)o.addFormat(v,p[v])}r.exports=e=u,Object.defineProperty(e,"__esModule",{value:!0}),e.default=u}(Bi,Bi.exports);function Vi(r,e={format:"iso"}){if(e.format==="localized")return new Intl.DateTimeFormat("pt-BR",{day:"numeric",month:"short",year:"numeric"}).format(r);const t=r.getFullYear(),s=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0");return`${t}-${s}-${n}`}const g0={},y0=Object.freeze(Object.defineProperty({__proto__:null,default:g0},Symbol.toStringTag,{value:"Module"}));var v0={exports:{}};function _0(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zi={exports:{}};const b0=xc(y0);var Hi;function fe(){return Hi||(Hi=1,function(r,e){(function(t,s){r.exports=s()})(ce,function(){var t=t||function(s,n){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof ce<"u"&&ce.crypto&&(a=ce.crypto),!a&&typeof _0=="function")try{a=b0}catch{}var i=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},u=Object.create||function(){function h(){}return function(b){var $;return h.prototype=b,$=new h,h.prototype=null,$}}(),c={},o=c.lib={},l=o.Base=function(){return{extend:function(h){var b=u(this);return h&&b.mixIn(h),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var b in h)h.hasOwnProperty(b)&&(this[b]=h[b]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=o.WordArray=l.extend({init:function(h,b){h=this.words=h||[],b!=n?this.sigBytes=b:this.sigBytes=h.length*4},toString:function(h){return(h||_).stringify(this)},concat:function(h){var b=this.words,$=h.words,S=this.sigBytes,T=h.sigBytes;if(this.clamp(),S%4)for(var I=0;I<T;I++){var R=$[I>>>2]>>>24-I%4*8&255;b[S+I>>>2]|=R<<24-(S+I)%4*8}else for(var L=0;L<T;L+=4)b[S+L>>>2]=$[L>>>2];return this.sigBytes+=T,this},clamp:function(){var h=this.words,b=this.sigBytes;h[b>>>2]&=4294967295<<32-b%4*8,h.length=s.ceil(b/4)},clone:function(){var h=l.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var b=[],$=0;$<h;$+=4)b.push(i());return new p.init(b,h)}}),f=c.enc={},_=f.Hex={stringify:function(h){for(var b=h.words,$=h.sigBytes,S=[],T=0;T<$;T++){var I=b[T>>>2]>>>24-T%4*8&255;S.push((I>>>4).toString(16)),S.push((I&15).toString(16))}return S.join("")},parse:function(h){for(var b=h.length,$=[],S=0;S<b;S+=2)$[S>>>3]|=parseInt(h.substr(S,2),16)<<24-S%8*4;return new p.init($,b/2)}},g=f.Latin1={stringify:function(h){for(var b=h.words,$=h.sigBytes,S=[],T=0;T<$;T++){var I=b[T>>>2]>>>24-T%4*8&255;S.push(String.fromCharCode(I))}return S.join("")},parse:function(h){for(var b=h.length,$=[],S=0;S<b;S++)$[S>>>2]|=(h.charCodeAt(S)&255)<<24-S%4*8;return new p.init($,b)}},v=f.Utf8={stringify:function(h){try{return decodeURIComponent(escape(g.stringify(h)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(h){return g.parse(unescape(encodeURIComponent(h)))}},m=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=v.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var b,$=this._data,S=$.words,T=$.sigBytes,I=this.blockSize,R=I*4,L=T/R;h?L=s.ceil(L):L=s.max((L|0)-this._minBufferSize,0);var N=L*I,A=s.min(N*4,T);if(N){for(var F=0;F<N;F+=I)this._doProcessBlock(S,F);b=S.splice(0,N),$.sigBytes-=A}return new p.init(b,A)},clone:function(){var h=l.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0});o.Hasher=m.extend({cfg:l.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(h){return function(b,$){return new h.init($).finalize(b)}},_createHmacHelper:function(h){return function(b,$){return new y.HMAC.init(h,$).finalize(b)}}});var y=c.algo={};return c}(Math);return t})}(zi)),zi.exports}var Ui={exports:{}},qi;function Cs(){return qi||(qi=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.Base,u=a.WordArray,c=n.x64={};c.Word=i.extend({init:function(o,l){this.high=o,this.low=l}}),c.WordArray=i.extend({init:function(o,l){o=this.words=o||[],l!=s?this.sigBytes=l:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,l=o.length,p=[],f=0;f<l;f++){var _=o[f];p.push(_.high),p.push(_.low)}return u.create(p,this.sigBytes)},clone:function(){for(var o=i.clone.call(this),l=o.words=this.words.slice(0),p=l.length,f=0;f<p;f++)l[f]=l[f].clone();return o}})}(),t})}(Ui)),Ui.exports}var Ki={exports:{}},Gi;function k0(){return Gi||(Gi=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var s=t,n=s.lib,a=n.WordArray,i=a.init,u=a.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var o=c.byteLength,l=[],p=0;p<o;p++)l[p>>>2]|=c[p]<<24-p%4*8;i.call(this,l,o)}else i.apply(this,arguments)};u.prototype=a}}(),t.lib.WordArray})}(Ki)),Ki.exports}var Wi={exports:{}},Xi;function $0(){return Xi||(Xi=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Utf16=i.Utf16BE={stringify:function(c){for(var o=c.words,l=c.sigBytes,p=[],f=0;f<l;f+=2){var _=o[f>>>2]>>>16-f%4*8&65535;p.push(String.fromCharCode(_))}return p.join("")},parse:function(c){for(var o=c.length,l=[],p=0;p<o;p++)l[p>>>1]|=c.charCodeAt(p)<<16-p%2*16;return a.create(l,o*2)}},i.Utf16LE={stringify:function(c){for(var o=c.words,l=c.sigBytes,p=[],f=0;f<l;f+=2){var _=u(o[f>>>2]>>>16-f%4*8&65535);p.push(String.fromCharCode(_))}return p.join("")},parse:function(c){for(var o=c.length,l=[],p=0;p<o;p++)l[p>>>1]|=u(c.charCodeAt(p)<<16-p%2*16);return a.create(l,o*2)}};function u(c){return c<<8&4278255360|c>>>8&16711935}}(),t.enc.Utf16})}(Wi)),Wi.exports}var Yi={exports:{}},Zi;function sr(){return Zi||(Zi=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64={stringify:function(c){var o=c.words,l=c.sigBytes,p=this._map;c.clamp();for(var f=[],_=0;_<l;_+=3)for(var g=o[_>>>2]>>>24-_%4*8&255,v=o[_+1>>>2]>>>24-(_+1)%4*8&255,m=o[_+2>>>2]>>>24-(_+2)%4*8&255,y=g<<16|v<<8|m,h=0;h<4&&_+h*.75<l;h++)f.push(p.charAt(y>>>6*(3-h)&63));var b=p.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(c){var o=c.length,l=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var f=0;f<l.length;f++)p[l.charCodeAt(f)]=f}var _=l.charAt(64);if(_){var g=c.indexOf(_);g!==-1&&(o=g)}return u(c,o,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function u(c,o,l){for(var p=[],f=0,_=0;_<o;_++)if(_%4){var g=l[c.charCodeAt(_-1)]<<_%4*2,v=l[c.charCodeAt(_)]>>>6-_%4*2,m=g|v;p[f>>>2]|=m<<24-f%4*8,f++}return a.create(p,f)}}(),t.enc.Base64})}(Yi)),Yi.exports}var Ji={exports:{}},Qi;function w0(){return Qi||(Qi=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64url={stringify:function(c,o){o===void 0&&(o=!0);var l=c.words,p=c.sigBytes,f=o?this._safe_map:this._map;c.clamp();for(var _=[],g=0;g<p;g+=3)for(var v=l[g>>>2]>>>24-g%4*8&255,m=l[g+1>>>2]>>>24-(g+1)%4*8&255,y=l[g+2>>>2]>>>24-(g+2)%4*8&255,h=v<<16|m<<8|y,b=0;b<4&&g+b*.75<p;b++)_.push(f.charAt(h>>>6*(3-b)&63));var $=f.charAt(64);if($)for(;_.length%4;)_.push($);return _.join("")},parse:function(c,o){o===void 0&&(o=!0);var l=c.length,p=o?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var _=0;_<p.length;_++)f[p.charCodeAt(_)]=_}var g=p.charAt(64);if(g){var v=c.indexOf(g);v!==-1&&(l=v)}return u(c,l,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function u(c,o,l){for(var p=[],f=0,_=0;_<o;_++)if(_%4){var g=l[c.charCodeAt(_-1)]<<_%4*2,v=l[c.charCodeAt(_)]>>>6-_%4*2,m=g|v;p[f>>>2]|=m<<24-f%4*8,f++}return a.create(p,f)}}(),t.enc.Base64url})}(Ji)),Ji.exports}var eu={exports:{}},tu;function nr(){return tu||(tu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.algo,o=[];(function(){for(var v=0;v<64;v++)o[v]=s.abs(s.sin(v+1))*4294967296|0})();var l=c.MD5=u.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,m){for(var y=0;y<16;y++){var h=m+y,b=v[h];v[h]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var $=this._hash.words,S=v[m+0],T=v[m+1],I=v[m+2],R=v[m+3],L=v[m+4],N=v[m+5],A=v[m+6],F=v[m+7],B=v[m+8],H=v[m+9],G=v[m+10],X=v[m+11],se=v[m+12],te=v[m+13],ne=v[m+14],O=v[m+15],k=$[0],x=$[1],w=$[2],d=$[3];k=p(k,x,w,d,S,7,o[0]),d=p(d,k,x,w,T,12,o[1]),w=p(w,d,k,x,I,17,o[2]),x=p(x,w,d,k,R,22,o[3]),k=p(k,x,w,d,L,7,o[4]),d=p(d,k,x,w,N,12,o[5]),w=p(w,d,k,x,A,17,o[6]),x=p(x,w,d,k,F,22,o[7]),k=p(k,x,w,d,B,7,o[8]),d=p(d,k,x,w,H,12,o[9]),w=p(w,d,k,x,G,17,o[10]),x=p(x,w,d,k,X,22,o[11]),k=p(k,x,w,d,se,7,o[12]),d=p(d,k,x,w,te,12,o[13]),w=p(w,d,k,x,ne,17,o[14]),x=p(x,w,d,k,O,22,o[15]),k=f(k,x,w,d,T,5,o[16]),d=f(d,k,x,w,A,9,o[17]),w=f(w,d,k,x,X,14,o[18]),x=f(x,w,d,k,S,20,o[19]),k=f(k,x,w,d,N,5,o[20]),d=f(d,k,x,w,G,9,o[21]),w=f(w,d,k,x,O,14,o[22]),x=f(x,w,d,k,L,20,o[23]),k=f(k,x,w,d,H,5,o[24]),d=f(d,k,x,w,ne,9,o[25]),w=f(w,d,k,x,R,14,o[26]),x=f(x,w,d,k,B,20,o[27]),k=f(k,x,w,d,te,5,o[28]),d=f(d,k,x,w,I,9,o[29]),w=f(w,d,k,x,F,14,o[30]),x=f(x,w,d,k,se,20,o[31]),k=_(k,x,w,d,N,4,o[32]),d=_(d,k,x,w,B,11,o[33]),w=_(w,d,k,x,X,16,o[34]),x=_(x,w,d,k,ne,23,o[35]),k=_(k,x,w,d,T,4,o[36]),d=_(d,k,x,w,L,11,o[37]),w=_(w,d,k,x,F,16,o[38]),x=_(x,w,d,k,G,23,o[39]),k=_(k,x,w,d,te,4,o[40]),d=_(d,k,x,w,S,11,o[41]),w=_(w,d,k,x,R,16,o[42]),x=_(x,w,d,k,A,23,o[43]),k=_(k,x,w,d,H,4,o[44]),d=_(d,k,x,w,se,11,o[45]),w=_(w,d,k,x,O,16,o[46]),x=_(x,w,d,k,I,23,o[47]),k=g(k,x,w,d,S,6,o[48]),d=g(d,k,x,w,F,10,o[49]),w=g(w,d,k,x,ne,15,o[50]),x=g(x,w,d,k,N,21,o[51]),k=g(k,x,w,d,se,6,o[52]),d=g(d,k,x,w,R,10,o[53]),w=g(w,d,k,x,G,15,o[54]),x=g(x,w,d,k,T,21,o[55]),k=g(k,x,w,d,B,6,o[56]),d=g(d,k,x,w,O,10,o[57]),w=g(w,d,k,x,A,15,o[58]),x=g(x,w,d,k,te,21,o[59]),k=g(k,x,w,d,L,6,o[60]),d=g(d,k,x,w,X,10,o[61]),w=g(w,d,k,x,I,15,o[62]),x=g(x,w,d,k,H,21,o[63]),$[0]=$[0]+k|0,$[1]=$[1]+x|0,$[2]=$[2]+w|0,$[3]=$[3]+d|0},_doFinalize:function(){var v=this._data,m=v.words,y=this._nDataBytes*8,h=v.sigBytes*8;m[h>>>5]|=128<<24-h%32;var b=s.floor(y/4294967296),$=y;m[(h+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m[(h+64>>>9<<4)+14]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,v.sigBytes=(m.length+1)*4,this._process();for(var S=this._hash,T=S.words,I=0;I<4;I++){var R=T[I];T[I]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return S},clone:function(){var v=u.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,m,y,h,b,$,S){var T=v+(m&y|~m&h)+b+S;return(T<<$|T>>>32-$)+m}function f(v,m,y,h,b,$,S){var T=v+(m&h|y&~h)+b+S;return(T<<$|T>>>32-$)+m}function _(v,m,y,h,b,$,S){var T=v+(m^y^h)+b+S;return(T<<$|T>>>32-$)+m}function g(v,m,y,h,b,$,S){var T=v+(y^(m|~h))+b+S;return(T<<$|T>>>32-$)+m}n.MD5=u._createHelper(l),n.HmacMD5=u._createHmacHelper(l)}(Math),t.MD5})}(eu)),eu.exports}var ru={exports:{}},su;function nu(){return su||(su=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.Hasher,u=s.algo,c=[],o=u.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,p){for(var f=this._hash.words,_=f[0],g=f[1],v=f[2],m=f[3],y=f[4],h=0;h<80;h++){if(h<16)c[h]=l[p+h]|0;else{var b=c[h-3]^c[h-8]^c[h-14]^c[h-16];c[h]=b<<1|b>>>31}var $=(_<<5|_>>>27)+y+c[h];h<20?$+=(g&v|~g&m)+1518500249:h<40?$+=(g^v^m)+1859775393:h<60?$+=(g&v|g&m|v&m)-1894007588:$+=(g^v^m)-899497514,y=m,m=v,v=g<<30|g>>>2,g=_,_=$}f[0]=f[0]+_|0,f[1]=f[1]+g|0,f[2]=f[2]+v|0,f[3]=f[3]+m|0,f[4]=f[4]+y|0},_doFinalize:function(){var l=this._data,p=l.words,f=this._nDataBytes*8,_=l.sigBytes*8;return p[_>>>5]|=128<<24-_%32,p[(_+64>>>9<<4)+14]=Math.floor(f/4294967296),p[(_+64>>>9<<4)+15]=f,l.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var l=i.clone.call(this);return l._hash=this._hash.clone(),l}});s.SHA1=i._createHelper(o),s.HmacSHA1=i._createHmacHelper(o)}(),t.SHA1})}(ru)),ru.exports}var au={exports:{}},ou;function ra(){return ou||(ou=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.algo,o=[],l=[];(function(){function _(y){for(var h=s.sqrt(y),b=2;b<=h;b++)if(!(y%b))return!1;return!0}function g(y){return(y-(y|0))*4294967296|0}for(var v=2,m=0;m<64;)_(v)&&(m<8&&(o[m]=g(s.pow(v,1/2))),l[m]=g(s.pow(v,1/3)),m++),v++})();var p=[],f=c.SHA256=u.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(_,g){for(var v=this._hash.words,m=v[0],y=v[1],h=v[2],b=v[3],$=v[4],S=v[5],T=v[6],I=v[7],R=0;R<64;R++){if(R<16)p[R]=_[g+R]|0;else{var L=p[R-15],N=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,A=p[R-2],F=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;p[R]=N+p[R-7]+F+p[R-16]}var B=$&S^~$&T,H=m&y^m&h^y&h,G=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),X=($<<26|$>>>6)^($<<21|$>>>11)^($<<7|$>>>25),se=I+X+B+l[R]+p[R],te=G+H;I=T,T=S,S=$,$=b+se|0,b=h,h=y,y=m,m=se+te|0}v[0]=v[0]+m|0,v[1]=v[1]+y|0,v[2]=v[2]+h|0,v[3]=v[3]+b|0,v[4]=v[4]+$|0,v[5]=v[5]+S|0,v[6]=v[6]+T|0,v[7]=v[7]+I|0},_doFinalize:function(){var _=this._data,g=_.words,v=this._nDataBytes*8,m=_.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=s.floor(v/4294967296),g[(m+64>>>9<<4)+15]=v,_.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var _=u.clone.call(this);return _._hash=this._hash.clone(),_}});n.SHA256=u._createHelper(f),n.HmacSHA256=u._createHmacHelper(f)}(Math),t.SHA256})}(au)),au.exports}var iu={exports:{}},uu;function E0(){return uu||(uu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),ra())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.algo,u=i.SHA256,c=i.SHA224=u.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=u._doFinalize.call(this);return o.sigBytes-=4,o}});s.SHA224=u._createHelper(c),s.HmacSHA224=u._createHmacHelper(c)}(),t.SHA224})}(iu)),iu.exports}var lu={exports:{}},cu;function du(){return cu||(cu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Cs())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Hasher,i=s.x64,u=i.Word,c=i.WordArray,o=s.algo;function l(){return u.create.apply(u,arguments)}var p=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],f=[];(function(){for(var g=0;g<80;g++)f[g]=l()})();var _=o.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new u.init(1779033703,4089235720),new u.init(3144134277,2227873595),new u.init(1013904242,4271175723),new u.init(2773480762,1595750129),new u.init(1359893119,2917565137),new u.init(2600822924,725511199),new u.init(528734635,4215389547),new u.init(1541459225,327033209)])},_doProcessBlock:function(g,v){for(var m=this._hash.words,y=m[0],h=m[1],b=m[2],$=m[3],S=m[4],T=m[5],I=m[6],R=m[7],L=y.high,N=y.low,A=h.high,F=h.low,B=b.high,H=b.low,G=$.high,X=$.low,se=S.high,te=S.low,ne=T.high,O=T.low,k=I.high,x=I.low,w=R.high,d=R.low,E=L,P=N,V=A,M=F,z=B,K=H,Q=G,U=X,pe=se,ge=te,Ke=ne,nt=O,Ge=k,Qe=x,ct=w,dt=d,Oe=0;Oe<80;Oe++){var Ie,je,et=f[Oe];if(Oe<16)je=et.high=g[v+Oe*2]|0,Ie=et.low=g[v+Oe*2+1]|0;else{var at=f[Oe-15],Ce=at.high,ht=at.low,or=(Ce>>>1|ht<<31)^(Ce>>>8|ht<<24)^Ce>>>7,qt=(ht>>>1|Ce<<31)^(ht>>>8|Ce<<24)^(ht>>>7|Ce<<25),Kt=f[Oe-2],Dt=Kt.high,xt=Kt.low,kr=(Dt>>>19|xt<<13)^(Dt<<3|xt>>>29)^Dt>>>6,ft=(xt>>>19|Dt<<13)^(xt<<3|Dt>>>29)^(xt>>>6|Dt<<26),Mt=f[Oe-7],Gr=Mt.high,Wr=Mt.low,Os=f[Oe-16],$r=Os.high,ir=Os.low;Ie=qt+Wr,je=or+Gr+(Ie>>>0<qt>>>0?1:0),Ie=Ie+ft,je=je+kr+(Ie>>>0<ft>>>0?1:0),Ie=Ie+ir,je=je+$r+(Ie>>>0<ir>>>0?1:0),et.high=je,et.low=Ie}var ha=pe&Ke^~pe&Ge,Gt=ge&nt^~ge&Qe,fa=E&V^E&z^V&z,pa=P&M^P&K^M&K,Se=(E>>>28|P<<4)^(E<<30|P>>>2)^(E<<25|P>>>7),Ft=(P>>>28|E<<4)^(P<<30|E>>>2)^(P<<25|E>>>7),ma=(pe>>>14|ge<<18)^(pe>>>18|ge<<14)^(pe<<23|ge>>>9),Is=(ge>>>14|pe<<18)^(ge>>>18|pe<<14)^(ge<<23|pe>>>9),wr=p[Oe],Ns=wr.high,Xr=wr.low,We=dt+Is,Ae=ct+ma+(We>>>0<dt>>>0?1:0),We=We+Gt,Ae=Ae+ha+(We>>>0<Gt>>>0?1:0),We=We+Xr,Ae=Ae+Ns+(We>>>0<Xr>>>0?1:0),We=We+Ie,Ae=Ae+je+(We>>>0<Ie>>>0?1:0),ur=Ft+pa,Ds=Se+fa+(ur>>>0<Ft>>>0?1:0);ct=Ge,dt=Qe,Ge=Ke,Qe=nt,Ke=pe,nt=ge,ge=U+We|0,pe=Q+Ae+(ge>>>0<U>>>0?1:0)|0,Q=z,U=K,z=V,K=M,V=E,M=P,P=We+ur|0,E=Ae+Ds+(P>>>0<We>>>0?1:0)|0}N=y.low=N+P,y.high=L+E+(N>>>0<P>>>0?1:0),F=h.low=F+M,h.high=A+V+(F>>>0<M>>>0?1:0),H=b.low=H+K,b.high=B+z+(H>>>0<K>>>0?1:0),X=$.low=X+U,$.high=G+Q+(X>>>0<U>>>0?1:0),te=S.low=te+ge,S.high=se+pe+(te>>>0<ge>>>0?1:0),O=T.low=O+nt,T.high=ne+Ke+(O>>>0<nt>>>0?1:0),x=I.low=x+Qe,I.high=k+Ge+(x>>>0<Qe>>>0?1:0),d=R.low=d+dt,R.high=w+ct+(d>>>0<dt>>>0?1:0)},_doFinalize:function(){var g=this._data,v=g.words,m=this._nDataBytes*8,y=g.sigBytes*8;v[y>>>5]|=128<<24-y%32,v[(y+128>>>10<<5)+30]=Math.floor(m/4294967296),v[(y+128>>>10<<5)+31]=m,g.sigBytes=v.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});s.SHA512=a._createHelper(_),s.HmacSHA512=a._createHmacHelper(_)}(),t.SHA512})}(lu)),lu.exports}var hu={exports:{}},fu;function S0(){return fu||(fu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Cs(),du())})(ce,function(t){return function(){var s=t,n=s.x64,a=n.Word,i=n.WordArray,u=s.algo,c=u.SHA512,o=u.SHA384=c.extend({_doReset:function(){this._hash=new i.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var l=c._doFinalize.call(this);return l.sigBytes-=16,l}});s.SHA384=c._createHelper(o),s.HmacSHA384=c._createHmacHelper(o)}(),t.SHA384})}(hu)),hu.exports}var pu={exports:{}},mu;function x0(){return mu||(mu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Cs())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.x64,o=c.Word,l=n.algo,p=[],f=[],_=[];(function(){for(var m=1,y=0,h=0;h<24;h++){p[m+5*y]=(h+1)*(h+2)/2%64;var b=y%5,$=(2*m+3*y)%5;m=b,y=$}for(var m=0;m<5;m++)for(var y=0;y<5;y++)f[m+5*y]=y+(2*m+3*y)%5*5;for(var S=1,T=0;T<24;T++){for(var I=0,R=0,L=0;L<7;L++){if(S&1){var N=(1<<L)-1;N<32?R^=1<<N:I^=1<<N-32}S&128?S=S<<1^113:S<<=1}_[T]=o.create(I,R)}})();var g=[];(function(){for(var m=0;m<25;m++)g[m]=o.create()})();var v=l.SHA3=u.extend({cfg:u.cfg.extend({outputLength:512}),_doReset:function(){for(var m=this._state=[],y=0;y<25;y++)m[y]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(m,y){for(var h=this._state,b=this.blockSize/2,$=0;$<b;$++){var S=m[y+2*$],T=m[y+2*$+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var I=h[$];I.high^=T,I.low^=S}for(var R=0;R<24;R++){for(var L=0;L<5;L++){for(var N=0,A=0,F=0;F<5;F++){var I=h[L+5*F];N^=I.high,A^=I.low}var B=g[L];B.high=N,B.low=A}for(var L=0;L<5;L++)for(var H=g[(L+4)%5],G=g[(L+1)%5],X=G.high,se=G.low,N=H.high^(X<<1|se>>>31),A=H.low^(se<<1|X>>>31),F=0;F<5;F++){var I=h[L+5*F];I.high^=N,I.low^=A}for(var te=1;te<25;te++){var N,A,I=h[te],ne=I.high,O=I.low,k=p[te];k<32?(N=ne<<k|O>>>32-k,A=O<<k|ne>>>32-k):(N=O<<k-32|ne>>>64-k,A=ne<<k-32|O>>>64-k);var x=g[f[te]];x.high=N,x.low=A}var w=g[0],d=h[0];w.high=d.high,w.low=d.low;for(var L=0;L<5;L++)for(var F=0;F<5;F++){var te=L+5*F,I=h[te],E=g[te],P=g[(L+1)%5+5*F],V=g[(L+2)%5+5*F];I.high=E.high^~P.high&V.high,I.low=E.low^~P.low&V.low}var I=h[0],M=_[R];I.high^=M.high,I.low^=M.low}},_doFinalize:function(){var m=this._data,y=m.words;this._nDataBytes*8;var h=m.sigBytes*8,b=this.blockSize*32;y[h>>>5]|=1<<24-h%32,y[(s.ceil((h+1)/b)*b>>>5)-1]|=128,m.sigBytes=y.length*4,this._process();for(var $=this._state,S=this.cfg.outputLength/8,T=S/8,I=[],R=0;R<T;R++){var L=$[R],N=L.high,A=L.low;N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,I.push(A),I.push(N)}return new i.init(I,S)},clone:function(){for(var m=u.clone.call(this),y=m._state=this._state.slice(0),h=0;h<25;h++)y[h]=y[h].clone();return m}});n.SHA3=u._createHelper(v),n.HmacSHA3=u._createHmacHelper(v)}(Math),t.SHA3})}(pu)),pu.exports}var gu={exports:{}},yu;function C0(){return yu||(yu=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){/** @preserve
|
|
27
|
+
deps: ${u}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(d){const[o,u]=a(d);i(d,o),l(d,u)}};function a({schema:d}){const o={},u={};for(const p in d){if(p==="__proto__")continue;const f=Array.isArray(d[p])?o:u;f[p]=d[p]}return[o,u]}function i(d,o=d.schema){const{gen:u,data:p,it:f}=d;if(Object.keys(o).length===0)return;const _=u.let("missing");for(const m in o){const v=o[m];if(v.length===0)continue;const g=(0,s.propertyInData)(u,p,m,f.opts.ownProperties);d.setParams({property:m,depsCount:v.length,deps:v.join(", ")}),f.allErrors?u.if(g,()=>{for(const y of v)(0,s.checkReportMissingProp)(d,y)}):(u.if((0,e._)`${g} && (${(0,s.checkMissingProp)(d,v,_)})`),(0,s.reportMissingProp)(d,_),u.else())}}r.validatePropertyDeps=i;function l(d,o=d.schema){const{gen:u,data:p,keyword:f,it:_}=d,m=u.name("valid");for(const v in o)(0,t.alwaysValidSchema)(_,o[v])||(u.if((0,s.propertyInData)(u,p,v,_.opts.ownProperties),()=>{const g=d.subschema({keyword:f,schemaProp:v},m);d.mergeValidEvaluated(g,m)},()=>u.var(m,!0)),d.ok(m))}r.validateSchemaDeps=l,r.default=n})(xi);var Un={};Object.defineProperty(Un,"__esModule",{value:!0});const Ai=ie,hf=Y,pf={message:"property name must be valid",params:({params:r})=>(0,Ai._)`{propertyName: ${r.propertyName}}`},ff={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:pf,code(r){const{gen:e,schema:t,data:s,it:n}=r;if((0,hf.alwaysValidSchema)(n,t))return;const a=e.name("valid");e.forIn("key",s,i=>{r.setParams({propertyName:i}),r.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),e.if((0,Ai.not)(a),()=>{r.error(!0),n.allErrors||e.break()})}),r.ok(a)}};Un.default=ff;var $s={};Object.defineProperty($s,"__esModule",{value:!0});const ws=de,_t=ie,mf=gt,Es=Y,gf={message:"must NOT have additional properties",params:({params:r})=>(0,_t._)`{additionalProperty: ${r.additionalProperty}}`},yf={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:gf,code(r){const{gen:e,schema:t,parentSchema:s,data:n,errsCount:a,it:i}=r;if(!a)throw new Error("ajv implementation error");const{allErrors:l,opts:d}=i;if(i.props=!0,d.removeAdditional!=="all"&&(0,Es.alwaysValidSchema)(i,t))return;const o=(0,ws.allSchemaProperties)(s.properties),u=(0,ws.allSchemaProperties)(s.patternProperties);p(),r.ok((0,_t._)`${a} === ${mf.default.errors}`);function p(){e.forIn("key",n,g=>{!o.length&&!u.length?m(g):e.if(f(g),()=>m(g))})}function f(g){let y;if(o.length>8){const h=(0,Es.schemaRefOrVal)(i,s.properties,"properties");y=(0,ws.isOwnProperty)(e,h,g)}else o.length?y=(0,_t.or)(...o.map(h=>(0,_t._)`${g} === ${h}`)):y=_t.nil;return u.length&&(y=(0,_t.or)(y,...u.map(h=>(0,_t._)`${(0,ws.usePattern)(r,h)}.test(${g})`))),(0,_t.not)(y)}function _(g){e.code((0,_t._)`delete ${n}[${g}]`)}function m(g){if(d.removeAdditional==="all"||d.removeAdditional&&t===!1){_(g);return}if(t===!1){r.setParams({additionalProperty:g}),r.error(),l||e.break();return}if(typeof t=="object"&&!(0,Es.alwaysValidSchema)(i,t)){const y=e.name("valid");d.removeAdditional==="failing"?(v(g,y,!1),e.if((0,_t.not)(y),()=>{r.reset(),_(g)})):(v(g,y),l||e.if((0,_t.not)(y),()=>e.break()))}}function v(g,y,h){const b={keyword:"additionalProperties",dataProp:g,dataPropType:Es.Type.Str};h===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(b,y)}}};$s.default=yf;var qn={};Object.defineProperty(qn,"__esModule",{value:!0});const vf=lt,Ci=de,Gn=Y,Ti=$s,_f={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:s,data:n,it:a}=r;a.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&Ti.default.code(new vf.KeywordCxt(a,Ti.default,"additionalProperties"));const i=(0,Ci.allSchemaProperties)(t);for(const p of i)a.definedProperties.add(p);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Gn.mergeEvaluated.props(e,(0,Gn.toHash)(i),a.props));const l=i.filter(p=>!(0,Gn.alwaysValidSchema)(a,t[p]));if(l.length===0)return;const d=e.name("valid");for(const p of l)o(p)?u(p):(e.if((0,Ci.propertyInData)(e,n,p,a.opts.ownProperties)),u(p),a.allErrors||e.else().var(d,!0),e.endIf()),r.it.definedProperties.add(p),r.ok(d);function o(p){return a.opts.useDefaults&&!a.compositeRule&&t[p].default!==void 0}function u(p){r.subschema({keyword:"properties",schemaProp:p,dataProp:p},d)}}};qn.default=_f;var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});const Oi=de,Ss=ie,Pi=Y,Ni=Y,bf={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:s,parentSchema:n,it:a}=r,{opts:i}=a,l=(0,Oi.allSchemaProperties)(t),d=l.filter(v=>(0,Pi.alwaysValidSchema)(a,t[v]));if(l.length===0||d.length===l.length&&(!a.opts.unevaluated||a.props===!0))return;const o=i.strictSchema&&!i.allowMatchingProperties&&n.properties,u=e.name("valid");a.props!==!0&&!(a.props instanceof Ss.Name)&&(a.props=(0,Ni.evaluatedPropsToName)(e,a.props));const{props:p}=a;f();function f(){for(const v of l)o&&_(v),a.allErrors?m(v):(e.var(u,!0),m(v),e.if(u))}function _(v){for(const g in o)new RegExp(v).test(g)&&(0,Pi.checkStrictMode)(a,`property ${g} matches pattern ${v} (use allowMatchingProperties)`)}function m(v){e.forIn("key",s,g=>{e.if((0,Ss._)`${(0,Oi.usePattern)(r,v)}.test(${g})`,()=>{const y=d.includes(v);y||r.subschema({keyword:"patternProperties",schemaProp:v,dataProp:g,dataPropType:Ni.Type.Str},u),a.opts.unevaluated&&p!==!0?e.assign((0,Ss._)`${p}[${g}]`,!0):!y&&!a.allErrors&&e.if((0,Ss.not)(u),()=>e.break())})})}}};Wn.default=bf;var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0});const kf=Y,$f={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:s}=r;if((0,kf.alwaysValidSchema)(s,t)){r.fail();return}const n=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),r.failResult(n,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};Kn.default=$f;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});const wf=de,Ef={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:wf.validateUnion,error:{message:"must match a schema in anyOf"}};Xn.default=Ef;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const xs=ie,Sf=Y,xf={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,xs._)`{passingSchemas: ${r.passing}}`},Af={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:xf,code(r){const{gen:e,schema:t,parentSchema:s,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(n.opts.discriminator&&s.discriminator)return;const a=t,i=e.let("valid",!1),l=e.let("passing",null),d=e.name("_valid");r.setParams({passing:l}),e.block(o),r.result(i,()=>r.reset(),()=>r.error(!0));function o(){a.forEach((u,p)=>{let f;(0,Sf.alwaysValidSchema)(n,u)?e.var(d,!0):f=r.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},d),p>0&&e.if((0,xs._)`${d} && ${i}`).assign(i,!1).assign(l,(0,xs._)`[${l}, ${p}]`).else(),e.if(d,()=>{e.assign(i,!0),e.assign(l,p),f&&r.mergeEvaluated(f,xs.Name)})})}}};Yn.default=Af;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});const Cf=Y,Tf={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:s}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const n=e.name("valid");t.forEach((a,i)=>{if((0,Cf.alwaysValidSchema)(s,a))return;const l=r.subschema({keyword:"allOf",schemaProp:i},n);r.ok(n),r.mergeEvaluated(l)})}};Jn.default=Tf;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const As=ie,Ii=Y,Of={message:({params:r})=>(0,As.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,As._)`{failingKeyword: ${r.ifClause}}`},Pf={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Of,code(r){const{gen:e,parentSchema:t,it:s}=r;t.then===void 0&&t.else===void 0&&(0,Ii.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const n=Di(s,"then"),a=Di(s,"else");if(!n&&!a)return;const i=e.let("valid",!0),l=e.name("_valid");if(d(),r.reset(),n&&a){const u=e.let("ifClause");r.setParams({ifClause:u}),e.if(l,o("then",u),o("else",u))}else n?e.if(l,o("then")):e.if((0,As.not)(l),o("else"));r.pass(i,()=>r.error(!0));function d(){const u=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);r.mergeEvaluated(u)}function o(u,p){return()=>{const f=r.subschema({keyword:u},l);e.assign(i,l),r.mergeValidEvaluated(f,i),p?e.assign(p,(0,As._)`${u}`):r.setParams({ifClause:u})}}}};function Di(r,e){const t=r.schema[e];return t!==void 0&&!(0,Ii.alwaysValidSchema)(r,t)}Zn.default=Pf;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const Nf=Y,If={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,Nf.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};Qn.default=If,Object.defineProperty(jn,"__esModule",{value:!0});const Df=vr,Mf=Vn,Ff=_r,Bf=zn,Rf=Hn,jf=xi,Lf=Un,Vf=$s,zf=qn,Hf=Wn,Uf=Kn,qf=Xn,Gf=Yn,Wf=Jn,Kf=Zn,Xf=Qn;function Yf(r=!1){const e=[Uf.default,qf.default,Gf.default,Wf.default,Kf.default,Xf.default,Lf.default,Vf.default,jf.default,zf.default,Hf.default];return r?e.push(Mf.default,Bf.default):e.push(Df.default,Ff.default),e.push(Rf.default),e}jn.default=Yf;var ea={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});const Ee=ie,Jf={message:({schemaCode:r})=>(0,Ee.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Ee._)`{format: ${r}}`},Zf={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Jf,code(r,e){const{gen:t,data:s,$data:n,schema:a,schemaCode:i,it:l}=r,{opts:d,errSchemaPath:o,schemaEnv:u,self:p}=l;if(!d.validateFormats)return;n?f():_();function f(){const m=t.scopeValue("formats",{ref:p.formats,code:d.code.formats}),v=t.const("fDef",(0,Ee._)`${m}[${i}]`),g=t.let("fType"),y=t.let("format");t.if((0,Ee._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>t.assign(g,(0,Ee._)`${v}.type || "string"`).assign(y,(0,Ee._)`${v}.validate`),()=>t.assign(g,(0,Ee._)`"string"`).assign(y,v)),r.fail$data((0,Ee.or)(h(),b()));function h(){return d.strictSchema===!1?Ee.nil:(0,Ee._)`${i} && !${y}`}function b(){const $=u.$async?(0,Ee._)`(${v}.async ? await ${y}(${s}) : ${y}(${s}))`:(0,Ee._)`${y}(${s})`,S=(0,Ee._)`(typeof ${y} == "function" ? ${$} : ${y}.test(${s}))`;return(0,Ee._)`${y} && ${y} !== true && ${g} === ${e} && !${S}`}}function _(){const m=p.formats[a];if(!m){h();return}if(m===!0)return;const[v,g,y]=b(m);v===e&&r.pass($());function h(){if(d.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${a}" ignored in schema at path "${o}"`}}function b(S){const O=S instanceof RegExp?(0,Ee.regexpCode)(S):d.code.formats?(0,Ee._)`${d.code.formats}${(0,Ee.getProperty)(a)}`:void 0,N=t.scopeValue("formats",{key:a,ref:S,code:O});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ee._)`${N}.validate`]:["string",S,N]}function $(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ee._)`await ${y}(${s})`}return typeof g=="function"?(0,Ee._)`${y}(${s})`:(0,Ee._)`${y}.test(${s})`}}}};ta.default=Zf,Object.defineProperty(ea,"__esModule",{value:!0});const Qf=ta,e0=[Qf.default];ea.default=e0;var br={};Object.defineProperty(br,"__esModule",{value:!0}),br.contentVocabulary=br.metadataVocabulary=void 0,br.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],br.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty($n,"__esModule",{value:!0});const t0=wn,r0=Sn,s0=jn,n0=ea,Mi=br,a0=[t0.default,r0.default,(0,s0.default)(),n0.default,Mi.metadataVocabulary,Mi.contentVocabulary];$n.default=a0;var ra={},Cs={};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.DiscrError=void 0;var Fi;(function(r){r.Tag="tag",r.Mapping="mapping"})(Fi||(Cs.DiscrError=Fi={})),Object.defineProperty(ra,"__esModule",{value:!0});const kr=ie,sa=Cs,Bi=Ze,o0=gr,i0=Y,l0={message:({params:{discrError:r,tagName:e}})=>r===sa.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,kr._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},u0={keyword:"discriminator",type:"object",schemaType:"object",error:l0,code(r){const{gen:e,data:t,schema:s,parentSchema:n,it:a}=r,{oneOf:i}=n;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=s.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const d=e.let("valid",!1),o=e.const("tag",(0,kr._)`${t}${(0,kr.getProperty)(l)}`);e.if((0,kr._)`typeof ${o} == "string"`,()=>u(),()=>r.error(!1,{discrError:sa.DiscrError.Tag,tag:o,tagName:l})),r.ok(d);function u(){const _=f();e.if(!1);for(const m in _)e.elseIf((0,kr._)`${o} === ${m}`),e.assign(d,p(_[m]));e.else(),r.error(!1,{discrError:sa.DiscrError.Mapping,tag:o,tagName:l}),e.endIf()}function p(_){const m=e.name("valid"),v=r.subschema({keyword:"oneOf",schemaProp:_},m);return r.mergeEvaluated(v,kr.Name),m}function f(){var _;const m={},v=y(n);let g=!0;for(let $=0;$<i.length;$++){let S=i[$];if(S!=null&&S.$ref&&!(0,i0.schemaHasRulesButRef)(S,a.self.RULES)){const N=S.$ref;if(S=Bi.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,N),S instanceof Bi.SchemaEnv&&(S=S.schema),S===void 0)throw new o0.default(a.opts.uriResolver,a.baseId,N)}const O=(_=S==null?void 0:S.properties)===null||_===void 0?void 0:_[l];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);g=g&&(v||y(S)),h(O,$)}if(!g)throw new Error(`discriminator: "${l}" must be required`);return m;function y({required:$}){return Array.isArray($)&&$.includes(l)}function h($,S){if($.const)b($.const,S);else if($.enum)for(const O of $.enum)b(O,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function b($,S){if(typeof $!="string"||$ in m)throw new Error(`discriminator: "${l}" values must be unique strings`);m[$]=S}}}};ra.default=u0;const c0="http://json-schema.org/draft-07/schema#",d0="http://json-schema.org/draft-07/schema#",h0="Core schema meta-schema",p0={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},f0=["object","boolean"],m0={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},g0={$schema:c0,$id:d0,title:h0,definitions:p0,type:f0,properties:m0,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const t=go,s=$n,n=ra,a=g0,i=["/properties"],l="http://json-schema.org/draft-07/schema";class d extends t.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(m,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}e.Ajv=d,r.exports=e=d,r.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var o=lt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var u=ie;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var p=Nr;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=gr;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Qs,Qs.exports);var Ri=Qs.exports,ji={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Ri,s=ie,n=hr,a=lt,i=dr,l=gt,d="errorMessage",o=new t.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},p=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,_=/^""\s*\+\s*|\s*\+\s*""$/g;function m(g){return{keyword:d,schemaType:["string","object"],post:!0,code(y){const{gen:h,data:b,schema:$,schemaValue:S,it:O}=y;if(O.createErrors===!1)return;const N=$,R=s.strConcat(l.default.instancePath,O.errorPath);h.if(t._`${l.default.errors} > 0`,()=>{if(typeof N=="object"){const[E,c]=I(N);c&&T(c),E&&B(E),j(V(N))}const x=typeof N=="string"?N:N._;x&&U(x),g.keepErrors||W()});function V({properties:x,items:E}){const c={};if(x){c.props={};for(const w in x)c.props[w]=[]}if(E){c.items={};for(let w=0;w<E.length;w++)c.items[w]=[]}return c}function I(x){let E,c;for(const w in x){if(w==="properties"||w==="items")continue;const C=x[w];if(typeof C=="object"){E||(E={});const L=E[w]={};for(const F in C)L[F]=[]}else c||(c={}),c[w]=[]}return[E,c]}function T(x){const E=h.const("emErrors",t.stringify(x)),c=h.const("templates",ne(x,$));h.forOf("err",l.default.vErrors,F=>h.if(X(F,E),()=>h.code(t._`${E}[${F}.keyword].push(${F})`).assign(t._`${F}.${o}`,!0)));const{singleError:w}=g;if(w){const F=h.let("message",t._`""`),z=h.let("paramsErrors",t._`[]`);C(q=>{h.if(F,()=>h.code(t._`${F} += ${typeof w=="string"?w:";"}`)),h.code(t._`${F} += ${L(q)}`),h.assign(z,t._`${z}.concat(${E}[${q}])`)}),i.reportError(y,{message:F,params:t._`{errors: ${z}}`})}else C(F=>i.reportError(y,{message:L(F),params:t._`{errors: ${E}[${F}]}`}));function C(F){h.forIn("key",E,z=>h.if(t._`${E}[${z}].length`,()=>F(z)))}function L(F){return t._`${F} in ${c} ? ${c}[${F}]() : ${S}[${F}]`}}function B(x){const E=h.const("emErrors",t.stringify(x)),c=[];for(const z in x)c.push([z,ne(x[z],$[z])]);const w=h.const("templates",h.object(...c)),C=h.scopeValue("obj",{ref:u,code:t.stringify(u)}),L=h.let("emPropParams"),F=h.let("emParamsErrors");h.forOf("err",l.default.vErrors,z=>h.if(X(z,E),()=>{h.assign(L,t._`${C}[${z}.keyword]`),h.assign(F,t._`${E}[${z}.keyword][${z}.params[${L}]]`),h.if(F,()=>h.code(t._`${F}.push(${z})`).assign(t._`${z}.${o}`,!0))})),h.forIn("key",E,z=>h.forIn("keyProp",t._`${E}[${z}]`,q=>{h.assign(F,t._`${E}[${z}][${q}]`),h.if(t._`${F}.length`,()=>{const Z=h.const("tmpl",t._`${w}[${z}] && ${w}[${z}][${q}]`);i.reportError(y,{message:t._`${Z} ? ${Z}() : ${S}[${z}][${q}]`,params:t._`{errors: ${F}}`})})}))}function j(x){const{props:E,items:c}=x;if(!E&&!c)return;const w=t._`typeof ${b} == "object"`,C=t._`Array.isArray(${b})`,L=h.let("emErrors");let F,z;const q=h.let("templates");E&&c?(F=h.let("emChildKwd"),h.if(w),h.if(C,()=>{Z(c,$.items),h.assign(F,t.str`items`)},()=>{Z(E,$.properties),h.assign(F,t.str`properties`)}),z=t._`[${F}]`):c?(h.if(C),Z(c,$.items),z=t._`.items`):E&&(h.if(s.and(w,s.not(C))),Z(E,$.properties),z=t._`.properties`),h.forOf("err",l.default.vErrors,H=>se(H,L,fe=>h.code(t._`${L}[${fe}].push(${H})`).assign(t._`${H}.${o}`,!0))),h.forIn("key",L,H=>h.if(t._`${L}[${H}].length`,()=>{i.reportError(y,{message:t._`${H} in ${q} ? ${q}[${H}]() : ${S}${z}[${H}]`,params:t._`{errors: ${L}[${H}]}`}),h.assign(t._`${l.default.vErrors}[${l.default.errors}-1].instancePath`,t._`${R} + "/" + ${H}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf();function Z(H,fe){h.assign(L,t.stringify(H)),h.assign(q,ne(H,fe))}}function U(x){const E=h.const("emErrs",t._`[]`);h.forOf("err",l.default.vErrors,c=>h.if(J(c),()=>h.code(t._`${E}.push(${c})`).assign(t._`${c}.${o}`,!0))),h.if(t._`${E}.length`,()=>i.reportError(y,{message:P(x),params:t._`{errors: ${E}}`}))}function W(){const x=h.const("emErrs",t._`[]`);h.forOf("err",l.default.vErrors,E=>h.if(t._`!${E}.${o}`,()=>h.code(t._`${x}.push(${E})`))),h.assign(l.default.vErrors,x).assign(l.default.errors,t._`${x}.length`)}function X(x,E){return s.and(t._`${x}.keyword !== ${d}`,t._`!${x}.${o}`,t._`${x}.instancePath === ${R}`,t._`${x}.keyword in ${E}`,t._`${x}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`/^\\/[^\\/]*$/.test(${x}.schemaPath.slice(${O.errSchemaPath.length}))`)}function se(x,E,c){h.if(s.and(t._`${x}.keyword !== ${d}`,t._`!${x}.${o}`,t._`${x}.instancePath.indexOf(${R}) === 0`),()=>{const w=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:t._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),C=h.const("emMatches",t._`${w}.exec(${x}.instancePath.slice(${R}.length))`),L=h.const("emChild",t._`${C} && ${C}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(t._`${L} !== undefined && ${L} in ${E}`,()=>c(L))})}function J(x){return s.and(t._`${x}.keyword !== ${d}`,t._`!${x}.${o}`,s.or(t._`${x}.instancePath === ${R}`,s.and(t._`${x}.instancePath.indexOf(${R}) === 0`,t._`${x}.instancePath[${R}.length] === "/"`)),t._`${x}.schemaPath.indexOf(${O.errSchemaPath}) === 0`,t._`${x}.schemaPath[${O.errSchemaPath}.length] === "/"`)}function ne(x,E){const c=[];for(const w in x){const C=E[w];p.test(C)&&c.push([w,k(C)])}return h.object(...c)}function P(x){return p.test(x)?new n._Code(n.safeStringify(x).replace(f,(E,c)=>`" + JSON.stringify(${a.getData(c,O)}) + "`).replace(_,"")):t.stringify(x)}function k(x){return t._`function(){return ${P(x)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const v=(g,y={})=>{if(!g.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(g.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return g.addKeyword(m(y))};e.default=v,r.exports=v,r.exports.default=v})(ji,ji.exports);var Li={exports:{}},Vi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(T,B){return{validate:T,compare:B}}r.fullFormats={date:e(a,i),time:e(d(!0),o),"date-time":e(f(!0),_),"iso-time":e(d(),u),"iso-date-time":e(f(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:y,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:I,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:b,int32:{type:"number",validate:O},int64:{type:"number",validate:N},float:{type:"number",validate:R},double:{type:"number",validate:R},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,o),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},r.formatNames=Object.keys(r.fullFormats);function t(T){return T%4===0&&(T%100!==0||T%400===0)}const s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(T){const B=s.exec(T);if(!B)return!1;const j=+B[1],U=+B[2],W=+B[3];return U>=1&&U<=12&&W>=1&&W<=(U===2&&t(j)?29:n[U])}function i(T,B){if(T&&B)return T>B?1:T<B?-1:0}const l=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(T){return function(B){const j=l.exec(B);if(!j)return!1;const U=+j[1],W=+j[2],X=+j[3],se=j[4],J=j[5]==="-"?-1:1,ne=+(j[6]||0),P=+(j[7]||0);if(ne>23||P>59||T&&!se)return!1;if(U<=23&&W<=59&&X<60)return!0;const k=W-P*J,x=U-ne*J-(k<0?1:0);return(x===23||x===-1)&&(k===59||k===-1)&&X<61}}function o(T,B){if(!(T&&B))return;const j=new Date("2020-01-01T"+T).valueOf(),U=new Date("2020-01-01T"+B).valueOf();if(j&&U)return j-U}function u(T,B){if(!(T&&B))return;const j=l.exec(T),U=l.exec(B);if(j&&U)return T=j[1]+j[2]+j[3],B=U[1]+U[2]+U[3],T>B?1:T<B?-1:0}const p=/t|\s/i;function f(T){const B=d(T);return function(j){const U=j.split(p);return U.length===2&&a(U[0])&&B(U[1])}}function _(T,B){if(!(T&&B))return;const j=new Date(T).valueOf(),U=new Date(B).valueOf();if(j&&U)return j-U}function m(T,B){if(!(T&&B))return;const[j,U]=T.split(p),[W,X]=B.split(p),se=i(j,W);if(se!==void 0)return se||o(U,X)}const v=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function y(T){return v.test(T)&&g.test(T)}const h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function b(T){return h.lastIndex=0,h.test(T)}const $=-2147483648,S=2**31-1;function O(T){return Number.isInteger(T)&&T<=S&&T>=$}function N(T){return Number.isInteger(T)}function R(){return!0}const V=/[^\\]\\Z/;function I(T){if(V.test(T))return!1;try{return new RegExp(T),!0}catch{return!1}}})(Vi);var zi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=Ri,t=ie,s=t.operators,n={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},a={message:({keyword:l,schemaCode:d})=>(0,t.str)`should be ${n[l].okStr} ${d}`,params:({keyword:l,schemaCode:d})=>(0,t._)`{comparison: ${n[l].okStr}, limit: ${d}}`};r.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:a,code(l){const{gen:d,data:o,schemaCode:u,keyword:p,it:f}=l,{opts:_,self:m}=f;if(!_.validateFormats)return;const v=new e.KeywordCxt(f,m.RULES.all.format.definition,"format");v.$data?g():y();function g(){const b=d.scopeValue("formats",{ref:m.formats,code:_.code.formats}),$=d.const("fmt",(0,t._)`${b}[${v.schemaCode}]`);l.fail$data((0,t.or)((0,t._)`typeof ${$} != "object"`,(0,t._)`${$} instanceof RegExp`,(0,t._)`typeof ${$}.compare != "function"`,h($)))}function y(){const b=v.schema,$=m.formats[b];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${p}": format "${b}" does not define "compare" function`);const S=d.scopeValue("formats",{key:b,ref:$,code:_.code.formats?(0,t._)`${_.code.formats}${(0,t.getProperty)(b)}`:void 0});l.fail$data(h(S))}function h(b){return(0,t._)`${b}.compare(${o}, ${u}) ${n[p].fail} 0`}},dependencies:["format"]};const i=l=>(l.addKeyword(r.formatLimitDefinition),l);r.default=i})(zi),function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Vi,s=zi,n=ie,a=new n.Name("fullFormats"),i=new n.Name("fastFormats"),l=(o,u={keywords:!0})=>{if(Array.isArray(u))return d(o,u,t.fullFormats,a),o;const[p,f]=u.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,a],_=u.formats||t.formatNames;return d(o,_,p,f),u.keywords&&(0,s.default)(o),o};l.get=(o,u="full")=>{const p=(u==="fast"?t.fastFormats:t.fullFormats)[o];if(!p)throw new Error(`Unknown format "${o}"`);return p};function d(o,u,p,f){var _,m;(_=(m=o.opts.code).formats)!==null&&_!==void 0||(m.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const v of u)o.addFormat(v,p[v])}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l}(Li,Li.exports);function Hi(r,e={format:"iso"}){if(e.format==="localized")return new Intl.DateTimeFormat("pt-BR",{day:"numeric",month:"short",year:"numeric"}).format(r);const t=r.getFullYear(),s=String(r.getMonth()+1).padStart(2,"0"),n=String(r.getDate()).padStart(2,"0");return`${t}-${s}-${n}`}const y0=({items:r=[],autoRotate:e=!0,autoRotateInterval:t=8e3,animationDuration:s=300,infinite:n=!0,pendulumRotate:a=!1,startIndex:i=0,swipeEnabled:l=!0,swipeThreshold:d=20,swipePercentage:o=.08,preventScroll:u=!0,containerRef:p=null}={})=>{const[f,_]=K.useState(i),[m,v]=K.useState(r.length>1&&n?i+1:i),[g,y]=K.useState(0),[h,b]=K.useState(!1),[$,S]=K.useState(null),[O,N]=K.useState("forward"),R=K.useRef(null),[V,I]=K.useState(!1),[T,B]=K.useState(!1),j=T||V,U=K.useMemo(()=>{if(!n||r.length<=1)return r;const c=r[r.length-1],w=r[0];return[c,...r,w]},[n,r]),W=K.useCallback(c=>{setTimeout(()=>{b(!0),S(c),v(c)},s)},[s]);K.useEffect(()=>{h&&$!==null&&m===$&&requestAnimationFrame(()=>{b(!1),S(null)})},[h,m,$]);const X=K.useCallback(()=>{if(!(p!=null&&p.current))return d;const c=p.current.offsetWidth*o;return Math.max(d,c)},[d,o,p]),se=K.useCallback(c=>{c<0||c>=r.length||r.length<=1||(_(c),v(n?c+1:c))},[r.length,n]),J=K.useCallback(c=>{if(r.length<=1)return;const w=c==="forward"?1:-1;if(n){const C=m+w;let L;C===0?L=r.length-1:C===U.length-1?L=0:L=C-1,_(L),v(C),C===0?W(U.length-2):C===U.length-1&&W(1)}else{const C=f+w;if(C<0||C>=r.length)return;_(C),v(C)}},[r.length,n,f,m,U.length,W]),ne=K.useCallback((c,w,C)=>{const L=Math.abs(c),F=w>500,z=X();C&&!F&&L>=z&&(c>0?J("backward"):J("forward"))},[X,J]),P=K.useCallback((c,w)=>{let C=!1;return{handleDrag:(L,F)=>{const z=L-c;Math.abs(z)>5&&(C=!0),y(z),u&&F.preventDefault()},handleEnd:L=>{I(!1),y(0);const F=L-c,z=Date.now()-w;ne(F,z,C)}}},[u,ne]),k=K.useCallback((c,w)=>{const C=w==="mouse"?c.clientX:c.touches[0].clientX,L=Date.now();y(0),I(!0),w==="mouse"&&c.preventDefault();const{handleDrag:F,handleEnd:z}=P(C,L);if(w==="mouse"){const q=H=>{F(H.clientX,H)},Z=H=>{z(H.clientX),document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",Z),H.preventDefault()};try{document.addEventListener("mousemove",q),document.addEventListener("mouseup",Z)}catch(H){console.warn("Failed to attach mouse event listeners:",H)}}else{const q=H=>{F(H.touches[0].clientX,H)},Z=H=>{z(H.changedTouches[0].clientX),document.removeEventListener("touchmove",q),document.removeEventListener("touchend",Z)};try{document.addEventListener("touchmove",q,{passive:!u}),document.addEventListener("touchend",Z)}catch(H){console.warn("Failed to attach touch event listeners:",H)}}},[P,u]);K.useEffect(()=>{if(!(!e||r.length<=1||j))return R.current=setInterval(()=>{if(n){J("forward");return}if(a){const c=f+(O==="forward"?1:-1);c>=r.length-1?N("backward"):c<=0&&N("forward"),J(O)}else{if(f>=r.length-1){clearInterval(R.current),R.current=null;return}J("forward")}},t),()=>{R.current&&(clearInterval(R.current),R.current=null)}},[e,r.length,j,t,n,a,s,O,f,J]);const x=K.useCallback(()=>{var c;const w=-(m*100),C=V?g/(((c=p==null?void 0:p.current)==null?void 0:c.offsetWidth)??1)*100:0;return`translateX(${w+C}%)`},[m,V,g,p]),E=K.useMemo(()=>r.length<=1?{}:{onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1),...l?{onMouseDown:c=>k(c,"mouse"),onTouchStart:c=>k(c,"touch")}:{}},[l,r.length,k]);return{currentLogicalIndex:f,isPaused:j,isDragging:V,items:U,totalItems:r.length,goToNext:()=>J("forward"),goToPrevious:()=>J("backward"),goToIndex:se,canNavigate:r.length>1,getContainerTransform:x,shouldDisableTransition:()=>V||h,animationDuration:s,handlers:E}},v0={},_0=Object.freeze(Object.defineProperty({__proto__:null,default:v0},Symbol.toStringTag,{value:"Module"}));var b0={exports:{}};function k0(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ui={exports:{}};const $0=Ac(_0);var qi;function pe(){return qi||(qi=1,function(r,e){(function(t,s){r.exports=s()})(ce,function(){var t=t||function(s,n){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof ce<"u"&&ce.crypto&&(a=ce.crypto),!a&&typeof k0=="function")try{a=$0}catch{}var i=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function h(){}return function(b){var $;return h.prototype=b,$=new h,h.prototype=null,$}}(),d={},o=d.lib={},u=o.Base=function(){return{extend:function(h){var b=l(this);return h&&b.mixIn(h),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var h=this.extend();return h.init.apply(h,arguments),h},init:function(){},mixIn:function(h){for(var b in h)h.hasOwnProperty(b)&&(this[b]=h[b]);h.hasOwnProperty("toString")&&(this.toString=h.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=o.WordArray=u.extend({init:function(h,b){h=this.words=h||[],b!=n?this.sigBytes=b:this.sigBytes=h.length*4},toString:function(h){return(h||_).stringify(this)},concat:function(h){var b=this.words,$=h.words,S=this.sigBytes,O=h.sigBytes;if(this.clamp(),S%4)for(var N=0;N<O;N++){var R=$[N>>>2]>>>24-N%4*8&255;b[S+N>>>2]|=R<<24-(S+N)%4*8}else for(var V=0;V<O;V+=4)b[S+V>>>2]=$[V>>>2];return this.sigBytes+=O,this},clamp:function(){var h=this.words,b=this.sigBytes;h[b>>>2]&=4294967295<<32-b%4*8,h.length=s.ceil(b/4)},clone:function(){var h=u.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var b=[],$=0;$<h;$+=4)b.push(i());return new p.init(b,h)}}),f=d.enc={},_=f.Hex={stringify:function(h){for(var b=h.words,$=h.sigBytes,S=[],O=0;O<$;O++){var N=b[O>>>2]>>>24-O%4*8&255;S.push((N>>>4).toString(16)),S.push((N&15).toString(16))}return S.join("")},parse:function(h){for(var b=h.length,$=[],S=0;S<b;S+=2)$[S>>>3]|=parseInt(h.substr(S,2),16)<<24-S%8*4;return new p.init($,b/2)}},m=f.Latin1={stringify:function(h){for(var b=h.words,$=h.sigBytes,S=[],O=0;O<$;O++){var N=b[O>>>2]>>>24-O%4*8&255;S.push(String.fromCharCode(N))}return S.join("")},parse:function(h){for(var b=h.length,$=[],S=0;S<b;S++)$[S>>>2]|=(h.charCodeAt(S)&255)<<24-S%4*8;return new p.init($,b)}},v=f.Utf8={stringify:function(h){try{return decodeURIComponent(escape(m.stringify(h)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(h){return m.parse(unescape(encodeURIComponent(h)))}},g=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=v.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var b,$=this._data,S=$.words,O=$.sigBytes,N=this.blockSize,R=N*4,V=O/R;h?V=s.ceil(V):V=s.max((V|0)-this._minBufferSize,0);var I=V*N,T=s.min(I*4,O);if(I){for(var B=0;B<I;B+=N)this._doProcessBlock(S,B);b=S.splice(0,I),$.sigBytes-=T}return new p.init(b,T)},clone:function(){var h=u.clone.call(this);return h._data=this._data.clone(),h},_minBufferSize:0});o.Hasher=g.extend({cfg:u.extend(),init:function(h){this.cfg=this.cfg.extend(h),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(h){return this._append(h),this._process(),this},finalize:function(h){h&&this._append(h);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(h){return function(b,$){return new h.init($).finalize(b)}},_createHmacHelper:function(h){return function(b,$){return new y.HMAC.init(h,$).finalize(b)}}});var y=d.algo={};return d}(Math);return t})}(Ui)),Ui.exports}var Gi={exports:{}},Wi;function Ts(){return Wi||(Wi=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.Base,l=a.WordArray,d=n.x64={};d.Word=i.extend({init:function(o,u){this.high=o,this.low=u}}),d.WordArray=i.extend({init:function(o,u){o=this.words=o||[],u!=s?this.sigBytes=u:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,u=o.length,p=[],f=0;f<u;f++){var _=o[f];p.push(_.high),p.push(_.low)}return l.create(p,this.sigBytes)},clone:function(){for(var o=i.clone.call(this),u=o.words=this.words.slice(0),p=u.length,f=0;f<p;f++)u[f]=u[f].clone();return o}})}(),t})}(Gi)),Gi.exports}var Ki={exports:{}},Xi;function w0(){return Xi||(Xi=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var s=t,n=s.lib,a=n.WordArray,i=a.init,l=a.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var o=d.byteLength,u=[],p=0;p<o;p++)u[p>>>2]|=d[p]<<24-p%4*8;i.call(this,u,o)}else i.apply(this,arguments)};l.prototype=a}}(),t.lib.WordArray})}(Ki)),Ki.exports}var Yi={exports:{}},Ji;function E0(){return Ji||(Ji=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Utf16=i.Utf16BE={stringify:function(d){for(var o=d.words,u=d.sigBytes,p=[],f=0;f<u;f+=2){var _=o[f>>>2]>>>16-f%4*8&65535;p.push(String.fromCharCode(_))}return p.join("")},parse:function(d){for(var o=d.length,u=[],p=0;p<o;p++)u[p>>>1]|=d.charCodeAt(p)<<16-p%2*16;return a.create(u,o*2)}},i.Utf16LE={stringify:function(d){for(var o=d.words,u=d.sigBytes,p=[],f=0;f<u;f+=2){var _=l(o[f>>>2]>>>16-f%4*8&65535);p.push(String.fromCharCode(_))}return p.join("")},parse:function(d){for(var o=d.length,u=[],p=0;p<o;p++)u[p>>>1]|=l(d.charCodeAt(p)<<16-p%2*16);return a.create(u,o*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Yi)),Yi.exports}var Zi={exports:{}},Qi;function sr(){return Qi||(Qi=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64={stringify:function(d){var o=d.words,u=d.sigBytes,p=this._map;d.clamp();for(var f=[],_=0;_<u;_+=3)for(var m=o[_>>>2]>>>24-_%4*8&255,v=o[_+1>>>2]>>>24-(_+1)%4*8&255,g=o[_+2>>>2]>>>24-(_+2)%4*8&255,y=m<<16|v<<8|g,h=0;h<4&&_+h*.75<u;h++)f.push(p.charAt(y>>>6*(3-h)&63));var b=p.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(d){var o=d.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var f=0;f<u.length;f++)p[u.charCodeAt(f)]=f}var _=u.charAt(64);if(_){var m=d.indexOf(_);m!==-1&&(o=m)}return l(d,o,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,o,u){for(var p=[],f=0,_=0;_<o;_++)if(_%4){var m=u[d.charCodeAt(_-1)]<<_%4*2,v=u[d.charCodeAt(_)]>>>6-_%4*2,g=m|v;p[f>>>2]|=g<<24-f%4*8,f++}return a.create(p,f)}}(),t.enc.Base64})}(Zi)),Zi.exports}var el={exports:{}},tl;function S0(){return tl||(tl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.enc;i.Base64url={stringify:function(d,o){o===void 0&&(o=!0);var u=d.words,p=d.sigBytes,f=o?this._safe_map:this._map;d.clamp();for(var _=[],m=0;m<p;m+=3)for(var v=u[m>>>2]>>>24-m%4*8&255,g=u[m+1>>>2]>>>24-(m+1)%4*8&255,y=u[m+2>>>2]>>>24-(m+2)%4*8&255,h=v<<16|g<<8|y,b=0;b<4&&m+b*.75<p;b++)_.push(f.charAt(h>>>6*(3-b)&63));var $=f.charAt(64);if($)for(;_.length%4;)_.push($);return _.join("")},parse:function(d,o){o===void 0&&(o=!0);var u=d.length,p=o?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var _=0;_<p.length;_++)f[p.charCodeAt(_)]=_}var m=p.charAt(64);if(m){var v=d.indexOf(m);v!==-1&&(u=v)}return l(d,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,o,u){for(var p=[],f=0,_=0;_<o;_++)if(_%4){var m=u[d.charCodeAt(_-1)]<<_%4*2,v=u[d.charCodeAt(_)]>>>6-_%4*2,g=m|v;p[f>>>2]|=g<<24-f%4*8,f++}return a.create(p,f)}}(),t.enc.Base64url})}(el)),el.exports}var rl={exports:{}},sl;function nr(){return sl||(sl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=[];(function(){for(var v=0;v<64;v++)o[v]=s.abs(s.sin(v+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var y=0;y<16;y++){var h=g+y,b=v[h];v[h]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var $=this._hash.words,S=v[g+0],O=v[g+1],N=v[g+2],R=v[g+3],V=v[g+4],I=v[g+5],T=v[g+6],B=v[g+7],j=v[g+8],U=v[g+9],W=v[g+10],X=v[g+11],se=v[g+12],J=v[g+13],ne=v[g+14],P=v[g+15],k=$[0],x=$[1],E=$[2],c=$[3];k=p(k,x,E,c,S,7,o[0]),c=p(c,k,x,E,O,12,o[1]),E=p(E,c,k,x,N,17,o[2]),x=p(x,E,c,k,R,22,o[3]),k=p(k,x,E,c,V,7,o[4]),c=p(c,k,x,E,I,12,o[5]),E=p(E,c,k,x,T,17,o[6]),x=p(x,E,c,k,B,22,o[7]),k=p(k,x,E,c,j,7,o[8]),c=p(c,k,x,E,U,12,o[9]),E=p(E,c,k,x,W,17,o[10]),x=p(x,E,c,k,X,22,o[11]),k=p(k,x,E,c,se,7,o[12]),c=p(c,k,x,E,J,12,o[13]),E=p(E,c,k,x,ne,17,o[14]),x=p(x,E,c,k,P,22,o[15]),k=f(k,x,E,c,O,5,o[16]),c=f(c,k,x,E,T,9,o[17]),E=f(E,c,k,x,X,14,o[18]),x=f(x,E,c,k,S,20,o[19]),k=f(k,x,E,c,I,5,o[20]),c=f(c,k,x,E,W,9,o[21]),E=f(E,c,k,x,P,14,o[22]),x=f(x,E,c,k,V,20,o[23]),k=f(k,x,E,c,U,5,o[24]),c=f(c,k,x,E,ne,9,o[25]),E=f(E,c,k,x,R,14,o[26]),x=f(x,E,c,k,j,20,o[27]),k=f(k,x,E,c,J,5,o[28]),c=f(c,k,x,E,N,9,o[29]),E=f(E,c,k,x,B,14,o[30]),x=f(x,E,c,k,se,20,o[31]),k=_(k,x,E,c,I,4,o[32]),c=_(c,k,x,E,j,11,o[33]),E=_(E,c,k,x,X,16,o[34]),x=_(x,E,c,k,ne,23,o[35]),k=_(k,x,E,c,O,4,o[36]),c=_(c,k,x,E,V,11,o[37]),E=_(E,c,k,x,B,16,o[38]),x=_(x,E,c,k,W,23,o[39]),k=_(k,x,E,c,J,4,o[40]),c=_(c,k,x,E,S,11,o[41]),E=_(E,c,k,x,R,16,o[42]),x=_(x,E,c,k,T,23,o[43]),k=_(k,x,E,c,U,4,o[44]),c=_(c,k,x,E,se,11,o[45]),E=_(E,c,k,x,P,16,o[46]),x=_(x,E,c,k,N,23,o[47]),k=m(k,x,E,c,S,6,o[48]),c=m(c,k,x,E,B,10,o[49]),E=m(E,c,k,x,ne,15,o[50]),x=m(x,E,c,k,I,21,o[51]),k=m(k,x,E,c,se,6,o[52]),c=m(c,k,x,E,R,10,o[53]),E=m(E,c,k,x,W,15,o[54]),x=m(x,E,c,k,O,21,o[55]),k=m(k,x,E,c,j,6,o[56]),c=m(c,k,x,E,P,10,o[57]),E=m(E,c,k,x,T,15,o[58]),x=m(x,E,c,k,J,21,o[59]),k=m(k,x,E,c,V,6,o[60]),c=m(c,k,x,E,X,10,o[61]),E=m(E,c,k,x,N,15,o[62]),x=m(x,E,c,k,U,21,o[63]),$[0]=$[0]+k|0,$[1]=$[1]+x|0,$[2]=$[2]+E|0,$[3]=$[3]+c|0},_doFinalize:function(){var v=this._data,g=v.words,y=this._nDataBytes*8,h=v.sigBytes*8;g[h>>>5]|=128<<24-h%32;var b=s.floor(y/4294967296),$=y;g[(h+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,g[(h+64>>>9<<4)+14]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var S=this._hash,O=S.words,N=0;N<4;N++){var R=O[N];O[N]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return S},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,y,h,b,$,S){var O=v+(g&y|~g&h)+b+S;return(O<<$|O>>>32-$)+g}function f(v,g,y,h,b,$,S){var O=v+(g&h|y&~h)+b+S;return(O<<$|O>>>32-$)+g}function _(v,g,y,h,b,$,S){var O=v+(g^y^h)+b+S;return(O<<$|O>>>32-$)+g}function m(v,g,y,h,b,$,S){var O=v+(y^(g|~h))+b+S;return(O<<$|O>>>32-$)+g}n.MD5=l._createHelper(u),n.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(rl)),rl.exports}var nl={exports:{}},al;function ol(){return al||(al=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.Hasher,l=s.algo,d=[],o=l.SHA1=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,p){for(var f=this._hash.words,_=f[0],m=f[1],v=f[2],g=f[3],y=f[4],h=0;h<80;h++){if(h<16)d[h]=u[p+h]|0;else{var b=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=b<<1|b>>>31}var $=(_<<5|_>>>27)+y+d[h];h<20?$+=(m&v|~m&g)+1518500249:h<40?$+=(m^v^g)+1859775393:h<60?$+=(m&v|m&g|v&g)-1894007588:$+=(m^v^g)-899497514,y=g,g=v,v=m<<30|m>>>2,m=_,_=$}f[0]=f[0]+_|0,f[1]=f[1]+m|0,f[2]=f[2]+v|0,f[3]=f[3]+g|0,f[4]=f[4]+y|0},_doFinalize:function(){var u=this._data,p=u.words,f=this._nDataBytes*8,_=u.sigBytes*8;return p[_>>>5]|=128<<24-_%32,p[(_+64>>>9<<4)+14]=Math.floor(f/4294967296),p[(_+64>>>9<<4)+15]=f,u.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var u=i.clone.call(this);return u._hash=this._hash.clone(),u}});s.SHA1=i._createHelper(o),s.HmacSHA1=i._createHmacHelper(o)}(),t.SHA1})}(nl)),nl.exports}var il={exports:{}},ll;function na(){return ll||(ll=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=[],u=[];(function(){function _(y){for(var h=s.sqrt(y),b=2;b<=h;b++)if(!(y%b))return!1;return!0}function m(y){return(y-(y|0))*4294967296|0}for(var v=2,g=0;g<64;)_(v)&&(g<8&&(o[g]=m(s.pow(v,1/2))),u[g]=m(s.pow(v,1/3)),g++),v++})();var p=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(_,m){for(var v=this._hash.words,g=v[0],y=v[1],h=v[2],b=v[3],$=v[4],S=v[5],O=v[6],N=v[7],R=0;R<64;R++){if(R<16)p[R]=_[m+R]|0;else{var V=p[R-15],I=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,T=p[R-2],B=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;p[R]=I+p[R-7]+B+p[R-16]}var j=$&S^~$&O,U=g&y^g&h^y&h,W=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),X=($<<26|$>>>6)^($<<21|$>>>11)^($<<7|$>>>25),se=N+X+j+u[R]+p[R],J=W+U;N=O,O=S,S=$,$=b+se|0,b=h,h=y,y=g,g=se+J|0}v[0]=v[0]+g|0,v[1]=v[1]+y|0,v[2]=v[2]+h|0,v[3]=v[3]+b|0,v[4]=v[4]+$|0,v[5]=v[5]+S|0,v[6]=v[6]+O|0,v[7]=v[7]+N|0},_doFinalize:function(){var _=this._data,m=_.words,v=this._nDataBytes*8,g=_.sigBytes*8;return m[g>>>5]|=128<<24-g%32,m[(g+64>>>9<<4)+14]=s.floor(v/4294967296),m[(g+64>>>9<<4)+15]=v,_.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var _=l.clone.call(this);return _._hash=this._hash.clone(),_}});n.SHA256=l._createHelper(f),n.HmacSHA256=l._createHmacHelper(f)}(Math),t.SHA256})}(il)),il.exports}var ul={exports:{}},cl;function x0(){return cl||(cl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),na())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=s.algo,l=i.SHA256,d=i.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=l._doFinalize.call(this);return o.sigBytes-=4,o}});s.SHA224=l._createHelper(d),s.HmacSHA224=l._createHmacHelper(d)}(),t.SHA224})}(ul)),ul.exports}var dl={exports:{}},hl;function pl(){return hl||(hl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ts())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Hasher,i=s.x64,l=i.Word,d=i.WordArray,o=s.algo;function u(){return l.create.apply(l,arguments)}var p=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=u()})();var _=o.SHA512=a.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,v){for(var g=this._hash.words,y=g[0],h=g[1],b=g[2],$=g[3],S=g[4],O=g[5],N=g[6],R=g[7],V=y.high,I=y.low,T=h.high,B=h.low,j=b.high,U=b.low,W=$.high,X=$.low,se=S.high,J=S.low,ne=O.high,P=O.low,k=N.high,x=N.low,E=R.high,c=R.low,w=V,C=I,L=T,F=B,z=j,q=U,Z=W,H=X,fe=se,ge=J,We=ne,st=P,Ke=k,et=x,dt=E,ht=c,Ie=0;Ie<80;Ie++){var De,Le,tt=f[Ie];if(Ie<16)Le=tt.high=m[v+Ie*2]|0,De=tt.low=m[v+Ie*2+1]|0;else{var nt=f[Ie-15],Ce=nt.high,pt=nt.low,or=(Ce>>>1|pt<<31)^(Ce>>>8|pt<<24)^Ce>>>7,qt=(pt>>>1|Ce<<31)^(pt>>>8|Ce<<24)^(pt>>>7|Ce<<25),Gt=f[Ie-2],Mt=Gt.high,At=Gt.low,$r=(Mt>>>19|At<<13)^(Mt<<3|At>>>29)^Mt>>>6,ft=(At>>>19|Mt<<13)^(At<<3|Mt>>>29)^(At>>>6|Mt<<26),Ft=f[Ie-7],Wr=Ft.high,Kr=Ft.low,Is=f[Ie-16],wr=Is.high,ir=Is.low;De=qt+Kr,Le=or+Wr+(De>>>0<qt>>>0?1:0),De=De+ft,Le=Le+$r+(De>>>0<ft>>>0?1:0),De=De+ir,Le=Le+wr+(De>>>0<ir>>>0?1:0),tt.high=Le,tt.low=De}var fa=fe&We^~fe&Ke,Wt=ge&st^~ge&et,ma=w&L^w&z^L&z,ga=C&F^C&q^F&q,Se=(w>>>28|C<<4)^(w<<30|C>>>2)^(w<<25|C>>>7),Bt=(C>>>28|w<<4)^(C<<30|w>>>2)^(C<<25|w>>>7),ya=(fe>>>14|ge<<18)^(fe>>>18|ge<<14)^(fe<<23|ge>>>9),Ds=(ge>>>14|fe<<18)^(ge>>>18|fe<<14)^(ge<<23|fe>>>9),Er=p[Ie],Ms=Er.high,Xr=Er.low,Xe=ht+Ds,Te=dt+ya+(Xe>>>0<ht>>>0?1:0),Xe=Xe+Wt,Te=Te+fa+(Xe>>>0<Wt>>>0?1:0),Xe=Xe+Xr,Te=Te+Ms+(Xe>>>0<Xr>>>0?1:0),Xe=Xe+De,Te=Te+Le+(Xe>>>0<De>>>0?1:0),lr=Bt+ga,Fs=Se+ma+(lr>>>0<Bt>>>0?1:0);dt=Ke,ht=et,Ke=We,et=st,We=fe,st=ge,ge=H+Xe|0,fe=Z+Te+(ge>>>0<H>>>0?1:0)|0,Z=z,H=q,z=L,q=F,L=w,F=C,C=Xe+lr|0,w=Te+Fs+(C>>>0<Xe>>>0?1:0)|0}I=y.low=I+C,y.high=V+w+(I>>>0<C>>>0?1:0),B=h.low=B+F,h.high=T+L+(B>>>0<F>>>0?1:0),U=b.low=U+q,b.high=j+z+(U>>>0<q>>>0?1:0),X=$.low=X+H,$.high=W+Z+(X>>>0<H>>>0?1:0),J=S.low=J+ge,S.high=se+fe+(J>>>0<ge>>>0?1:0),P=O.low=P+st,O.high=ne+We+(P>>>0<st>>>0?1:0),x=N.low=x+et,N.high=k+Ke+(x>>>0<et>>>0?1:0),c=R.low=c+ht,R.high=E+dt+(c>>>0<ht>>>0?1:0)},_doFinalize:function(){var m=this._data,v=m.words,g=this._nDataBytes*8,y=m.sigBytes*8;v[y>>>5]|=128<<24-y%32,v[(y+128>>>10<<5)+30]=Math.floor(g/4294967296),v[(y+128>>>10<<5)+31]=g,m.sigBytes=v.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});s.SHA512=a._createHelper(_),s.HmacSHA512=a._createHmacHelper(_)}(),t.SHA512})}(dl)),dl.exports}var fl={exports:{}},ml;function A0(){return ml||(ml=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ts(),pl())})(ce,function(t){return function(){var s=t,n=s.x64,a=n.Word,i=n.WordArray,l=s.algo,d=l.SHA512,o=l.SHA384=d.extend({_doReset:function(){this._hash=new i.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=d._doFinalize.call(this);return u.sigBytes-=16,u}});s.SHA384=d._createHelper(o),s.HmacSHA384=d._createHmacHelper(o)}(),t.SHA384})}(fl)),fl.exports}var gl={exports:{}},yl;function C0(){return yl||(yl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ts())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.x64,o=d.Word,u=n.algo,p=[],f=[],_=[];(function(){for(var g=1,y=0,h=0;h<24;h++){p[g+5*y]=(h+1)*(h+2)/2%64;var b=y%5,$=(2*g+3*y)%5;g=b,y=$}for(var g=0;g<5;g++)for(var y=0;y<5;y++)f[g+5*y]=y+(2*g+3*y)%5*5;for(var S=1,O=0;O<24;O++){for(var N=0,R=0,V=0;V<7;V++){if(S&1){var I=(1<<V)-1;I<32?R^=1<<I:N^=1<<I-32}S&128?S=S<<1^113:S<<=1}_[O]=o.create(N,R)}})();var m=[];(function(){for(var g=0;g<25;g++)m[g]=o.create()})();var v=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],y=0;y<25;y++)g[y]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,y){for(var h=this._state,b=this.blockSize/2,$=0;$<b;$++){var S=g[y+2*$],O=g[y+2*$+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var N=h[$];N.high^=O,N.low^=S}for(var R=0;R<24;R++){for(var V=0;V<5;V++){for(var I=0,T=0,B=0;B<5;B++){var N=h[V+5*B];I^=N.high,T^=N.low}var j=m[V];j.high=I,j.low=T}for(var V=0;V<5;V++)for(var U=m[(V+4)%5],W=m[(V+1)%5],X=W.high,se=W.low,I=U.high^(X<<1|se>>>31),T=U.low^(se<<1|X>>>31),B=0;B<5;B++){var N=h[V+5*B];N.high^=I,N.low^=T}for(var J=1;J<25;J++){var I,T,N=h[J],ne=N.high,P=N.low,k=p[J];k<32?(I=ne<<k|P>>>32-k,T=P<<k|ne>>>32-k):(I=P<<k-32|ne>>>64-k,T=ne<<k-32|P>>>64-k);var x=m[f[J]];x.high=I,x.low=T}var E=m[0],c=h[0];E.high=c.high,E.low=c.low;for(var V=0;V<5;V++)for(var B=0;B<5;B++){var J=V+5*B,N=h[J],w=m[J],C=m[(V+1)%5+5*B],L=m[(V+2)%5+5*B];N.high=w.high^~C.high&L.high,N.low=w.low^~C.low&L.low}var N=h[0],F=_[R];N.high^=F.high,N.low^=F.low}},_doFinalize:function(){var g=this._data,y=g.words;this._nDataBytes*8;var h=g.sigBytes*8,b=this.blockSize*32;y[h>>>5]|=1<<24-h%32,y[(s.ceil((h+1)/b)*b>>>5)-1]|=128,g.sigBytes=y.length*4,this._process();for(var $=this._state,S=this.cfg.outputLength/8,O=S/8,N=[],R=0;R<O;R++){var V=$[R],I=V.high,T=V.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N.push(T),N.push(I)}return new i.init(N,S)},clone:function(){for(var g=l.clone.call(this),y=g._state=this._state.slice(0),h=0;h<25;h++)y[h]=y[h].clone();return g}});n.SHA3=l._createHelper(v),n.HmacSHA3=l._createHmacHelper(v)}(Math),t.SHA3})}(gl)),gl.exports}var vl={exports:{}},_l;function T0(){return _l||(_l=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){/** @preserve
|
|
28
28
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
29
29
|
|
|
30
30
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -33,9 +33,9 @@ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var U=Q(V,K,d,E,P+"."+K,
|
|
|
33
33
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
34
34
|
|
|
35
35
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
36
|
-
*/return function(s){var n=t,a=n.lib,i=a.WordArray,u=a.Hasher,c=n.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=i.create([0,1518500249,1859775393,2400959708,2840853838]),g=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=c.RIPEMD160=u.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,I){for(var R=0;R<16;R++){var L=I+R,N=T[L];T[L]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}var A=this._hash.words,F=_.words,B=g.words,H=o.words,G=l.words,X=p.words,se=f.words,te,ne,O,k,x,w,d,E,P,V;w=te=A[0],d=ne=A[1],E=O=A[2],P=k=A[3],V=x=A[4];for(var M,R=0;R<80;R+=1)M=te+T[I+H[R]]|0,R<16?M+=m(ne,O,k)+F[0]:R<32?M+=y(ne,O,k)+F[1]:R<48?M+=h(ne,O,k)+F[2]:R<64?M+=b(ne,O,k)+F[3]:M+=$(ne,O,k)+F[4],M=M|0,M=S(M,X[R]),M=M+x|0,te=x,x=k,k=S(O,10),O=ne,ne=M,M=w+T[I+G[R]]|0,R<16?M+=$(d,E,P)+B[0]:R<32?M+=b(d,E,P)+B[1]:R<48?M+=h(d,E,P)+B[2]:R<64?M+=y(d,E,P)+B[3]:M+=m(d,E,P)+B[4],M=M|0,M=S(M,se[R]),M=M+V|0,w=V,V=P,P=S(E,10),E=d,d=M;M=A[1]+O+P|0,A[1]=A[2]+k+V|0,A[2]=A[3]+x+w|0,A[3]=A[4]+te+d|0,A[4]=A[0]+ne+E|0,A[0]=M},_doFinalize:function(){var T=this._data,I=T.words,R=this._nDataBytes*8,L=T.sigBytes*8;I[L>>>5]|=128<<24-L%32,I[(L+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,T.sigBytes=(I.length+1)*4,this._process();for(var N=this._hash,A=N.words,F=0;F<5;F++){var B=A[F];A[F]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}return N},clone:function(){var T=u.clone.call(this);return T._hash=this._hash.clone(),T}});function m(T,I,R){return T^I^R}function y(T,I,R){return T&I|~T&R}function h(T,I,R){return(T|~I)^R}function b(T,I,R){return T&R|I&~R}function $(T,I,R){return T^(I|~R)}function S(T,I){return T<<I|T>>>32-I}n.RIPEMD160=u._createHelper(v),n.HmacRIPEMD160=u._createHmacHelper(v)}(),t.RIPEMD160})}(gu)),gu.exports}var vu={exports:{}},_u;function sa(){return _u||(_u=1,function(r,e){(function(t,s){r.exports=s(fe())})(ce,function(t){(function(){var s=t,n=s.lib,a=n.Base,i=s.enc,u=i.Utf8,c=s.algo;c.HMAC=a.extend({init:function(o,l){o=this._hasher=new o.init,typeof l=="string"&&(l=u.parse(l));var p=o.blockSize,f=p*4;l.sigBytes>f&&(l=o.finalize(l)),l.clamp();for(var _=this._oKey=l.clone(),g=this._iKey=l.clone(),v=_.words,m=g.words,y=0;y<p;y++)v[y]^=1549556828,m[y]^=909522486;_.sigBytes=g.sigBytes=f,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var l=this._hasher,p=l.finalize(o);l.reset();var f=l.finalize(this._oKey.clone().concat(p));return f}})})()})}(vu)),vu.exports}var bu={exports:{}},ku;function A0(){return ku||(ku=1,function(r,e){(function(t,s,n){r.exports=s(fe(),ra(),sa())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,u=s.algo,c=u.SHA256,o=u.HMAC,l=u.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,f){for(var _=this.cfg,g=o.create(_.hasher,p),v=i.create(),m=i.create([1]),y=v.words,h=m.words,b=_.keySize,$=_.iterations;y.length<b;){var S=g.update(f).finalize(m);g.reset();for(var T=S.words,I=T.length,R=S,L=1;L<$;L++){R=g.finalize(R),g.reset();for(var N=R.words,A=0;A<I;A++)T[A]^=N[A]}v.concat(S),h[0]++}return v.sigBytes=b*4,v}});s.PBKDF2=function(p,f,_){return l.create(_).compute(p,f)}}(),t.PBKDF2})}(bu)),bu.exports}var $u={exports:{}},wu;function Ut(){return wu||(wu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),nu(),sa())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,u=s.algo,c=u.MD5,o=u.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,p){for(var f,_=this.cfg,g=_.hasher.create(),v=i.create(),m=v.words,y=_.keySize,h=_.iterations;m.length<y;){f&&g.update(f),f=g.update(l).finalize(p),g.reset();for(var b=1;b<h;b++)f=g.finalize(f),g.reset();v.concat(f)}return v.sigBytes=y*4,v}});s.EvpKDF=function(l,p,f){return o.create(f).compute(l,p)}}(),t.EvpKDF})}($u)),$u.exports}var Eu={exports:{}},Su;function Pe(){return Su||(Su=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Ut())})(ce,function(t){t.lib.Cipher||function(s){var n=t,a=n.lib,i=a.Base,u=a.WordArray,c=a.BufferedBlockAlgorithm,o=n.enc;o.Utf8;var l=o.Base64,p=n.algo,f=p.EvpKDF,_=a.Cipher=c.extend({cfg:i.extend(),createEncryptor:function(N,A){return this.create(this._ENC_XFORM_MODE,N,A)},createDecryptor:function(N,A){return this.create(this._DEC_XFORM_MODE,N,A)},init:function(N,A,F){this.cfg=this.cfg.extend(F),this._xformMode=N,this._key=A,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(N){return this._append(N),this._process()},finalize:function(N){N&&this._append(N);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function N(A){return typeof A=="string"?L:T}return function(A){return{encrypt:function(F,B,H){return N(B).encrypt(A,F,B,H)},decrypt:function(F,B,H){return N(B).decrypt(A,F,B,H)}}}}()});a.StreamCipher=_.extend({_doFinalize:function(){var N=this._process(!0);return N},blockSize:1});var g=n.mode={},v=a.BlockCipherMode=i.extend({createEncryptor:function(N,A){return this.Encryptor.create(N,A)},createDecryptor:function(N,A){return this.Decryptor.create(N,A)},init:function(N,A){this._cipher=N,this._iv=A}}),m=g.CBC=function(){var N=v.extend();N.Encryptor=N.extend({processBlock:function(F,B){var H=this._cipher,G=H.blockSize;A.call(this,F,B,G),H.encryptBlock(F,B),this._prevBlock=F.slice(B,B+G)}}),N.Decryptor=N.extend({processBlock:function(F,B){var H=this._cipher,G=H.blockSize,X=F.slice(B,B+G);H.decryptBlock(F,B),A.call(this,F,B,G),this._prevBlock=X}});function A(F,B,H){var G,X=this._iv;X?(G=X,this._iv=s):G=this._prevBlock;for(var se=0;se<H;se++)F[B+se]^=G[se]}return N}(),y=n.pad={},h=y.Pkcs7={pad:function(N,A){for(var F=A*4,B=F-N.sigBytes%F,H=B<<24|B<<16|B<<8|B,G=[],X=0;X<B;X+=4)G.push(H);var se=u.create(G,B);N.concat(se)},unpad:function(N){var A=N.words[N.sigBytes-1>>>2]&255;N.sigBytes-=A}};a.BlockCipher=_.extend({cfg:_.cfg.extend({mode:m,padding:h}),reset:function(){var N;_.reset.call(this);var A=this.cfg,F=A.iv,B=A.mode;this._xformMode==this._ENC_XFORM_MODE?N=B.createEncryptor:(N=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==N?this._mode.init(this,F&&F.words):(this._mode=N.call(B,this,F&&F.words),this._mode.__creator=N)},_doProcessBlock:function(N,A){this._mode.processBlock(N,A)},_doFinalize:function(){var N,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),N=this._process(!0)):(N=this._process(!0),A.unpad(N)),N},blockSize:128/32});var b=a.CipherParams=i.extend({init:function(N){this.mixIn(N)},toString:function(N){return(N||this.formatter).stringify(this)}}),$=n.format={},S=$.OpenSSL={stringify:function(N){var A,F=N.ciphertext,B=N.salt;return B?A=u.create([1398893684,1701076831]).concat(B).concat(F):A=F,A.toString(l)},parse:function(N){var A,F=l.parse(N),B=F.words;return B[0]==1398893684&&B[1]==1701076831&&(A=u.create(B.slice(2,4)),B.splice(0,4),F.sigBytes-=16),b.create({ciphertext:F,salt:A})}},T=a.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(N,A,F,B){B=this.cfg.extend(B);var H=N.createEncryptor(F,B),G=H.finalize(A),X=H.cfg;return b.create({ciphertext:G,key:F,iv:X.iv,algorithm:N,mode:X.mode,padding:X.padding,blockSize:N.blockSize,formatter:B.format})},decrypt:function(N,A,F,B){B=this.cfg.extend(B),A=this._parse(A,B.format);var H=N.createDecryptor(F,B).finalize(A.ciphertext);return H},_parse:function(N,A){return typeof N=="string"?A.parse(N,this):N}}),I=n.kdf={},R=I.OpenSSL={execute:function(N,A,F,B,H){if(B||(B=u.random(64/8)),H)var G=f.create({keySize:A+F,hasher:H}).compute(N,B);else var G=f.create({keySize:A+F}).compute(N,B);var X=u.create(G.words.slice(A),F*4);return G.sigBytes=A*4,b.create({key:G,iv:X,salt:B})}},L=a.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:R}),encrypt:function(N,A,F,B){B=this.cfg.extend(B);var H=B.kdf.execute(F,N.keySize,N.ivSize,B.salt,B.hasher);B.iv=H.iv;var G=T.encrypt.call(this,N,A,H.key,B);return G.mixIn(H),G},decrypt:function(N,A,F,B){B=this.cfg.extend(B),A=this._parse(A,B.format);var H=B.kdf.execute(F,N.keySize,N.ivSize,A.salt,B.hasher);B.iv=H.iv;var G=T.decrypt.call(this,N,A,H.key,B);return G}})}()})}(Eu)),Eu.exports}var xu={exports:{}},Cu;function T0(){return Cu||(Cu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.CFB=function(){var s=t.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize;n.call(this,a,i,c,u),this._prevBlock=a.slice(i,i+c)}}),s.Decryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize,o=a.slice(i,i+c);n.call(this,a,i,c,u),this._prevBlock=o}});function n(a,i,u,c){var o,l=this._iv;l?(o=l.slice(0),this._iv=void 0):o=this._prevBlock,c.encryptBlock(o,0);for(var p=0;p<u;p++)a[i+p]^=o[p]}return s}(),t.mode.CFB})}(xu)),xu.exports}var Au={exports:{}},Tu;function P0(){return Tu||(Tu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.CTR=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize,o=this._iv,l=this._counter;o&&(l=this._counter=o.slice(0),this._iv=void 0);var p=l.slice(0);u.encryptBlock(p,0),l[c-1]=l[c-1]+1|0;for(var f=0;f<c;f++)a[i+f]^=p[f]}});return s.Decryptor=n,s}(),t.mode.CTR})}(Au)),Au.exports}var Pu={exports:{}},Ou;function O0(){return Ou||(Ou=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){/** @preserve
|
|
36
|
+
*/return function(s){var n=t,a=n.lib,i=a.WordArray,l=a.Hasher,d=n.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=i.create([0,1518500249,1859775393,2400959708,2840853838]),m=i.create([1352829926,1548603684,1836072691,2053994217,0]),v=d.RIPEMD160=l.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,N){for(var R=0;R<16;R++){var V=N+R,I=O[V];O[V]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var T=this._hash.words,B=_.words,j=m.words,U=o.words,W=u.words,X=p.words,se=f.words,J,ne,P,k,x,E,c,w,C,L;E=J=T[0],c=ne=T[1],w=P=T[2],C=k=T[3],L=x=T[4];for(var F,R=0;R<80;R+=1)F=J+O[N+U[R]]|0,R<16?F+=g(ne,P,k)+B[0]:R<32?F+=y(ne,P,k)+B[1]:R<48?F+=h(ne,P,k)+B[2]:R<64?F+=b(ne,P,k)+B[3]:F+=$(ne,P,k)+B[4],F=F|0,F=S(F,X[R]),F=F+x|0,J=x,x=k,k=S(P,10),P=ne,ne=F,F=E+O[N+W[R]]|0,R<16?F+=$(c,w,C)+j[0]:R<32?F+=b(c,w,C)+j[1]:R<48?F+=h(c,w,C)+j[2]:R<64?F+=y(c,w,C)+j[3]:F+=g(c,w,C)+j[4],F=F|0,F=S(F,se[R]),F=F+L|0,E=L,L=C,C=S(w,10),w=c,c=F;F=T[1]+P+C|0,T[1]=T[2]+k+L|0,T[2]=T[3]+x+E|0,T[3]=T[4]+J+c|0,T[4]=T[0]+ne+w|0,T[0]=F},_doFinalize:function(){var O=this._data,N=O.words,R=this._nDataBytes*8,V=O.sigBytes*8;N[V>>>5]|=128<<24-V%32,N[(V+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,O.sigBytes=(N.length+1)*4,this._process();for(var I=this._hash,T=I.words,B=0;B<5;B++){var j=T[B];T[B]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return I},clone:function(){var O=l.clone.call(this);return O._hash=this._hash.clone(),O}});function g(O,N,R){return O^N^R}function y(O,N,R){return O&N|~O&R}function h(O,N,R){return(O|~N)^R}function b(O,N,R){return O&R|N&~R}function $(O,N,R){return O^(N|~R)}function S(O,N){return O<<N|O>>>32-N}n.RIPEMD160=l._createHelper(v),n.HmacRIPEMD160=l._createHmacHelper(v)}(),t.RIPEMD160})}(vl)),vl.exports}var bl={exports:{}},kl;function aa(){return kl||(kl=1,function(r,e){(function(t,s){r.exports=s(pe())})(ce,function(t){(function(){var s=t,n=s.lib,a=n.Base,i=s.enc,l=i.Utf8,d=s.algo;d.HMAC=a.extend({init:function(o,u){o=this._hasher=new o.init,typeof u=="string"&&(u=l.parse(u));var p=o.blockSize,f=p*4;u.sigBytes>f&&(u=o.finalize(u)),u.clamp();for(var _=this._oKey=u.clone(),m=this._iKey=u.clone(),v=_.words,g=m.words,y=0;y<p;y++)v[y]^=1549556828,g[y]^=909522486;_.sigBytes=m.sigBytes=f,this.reset()},reset:function(){var o=this._hasher;o.reset(),o.update(this._iKey)},update:function(o){return this._hasher.update(o),this},finalize:function(o){var u=this._hasher,p=u.finalize(o);u.reset();var f=u.finalize(this._oKey.clone().concat(p));return f}})})()})}(bl)),bl.exports}var $l={exports:{}},wl;function O0(){return wl||(wl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),na(),aa())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,l=s.algo,d=l.SHA256,o=l.HMAC,u=l.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,f){for(var _=this.cfg,m=o.create(_.hasher,p),v=i.create(),g=i.create([1]),y=v.words,h=g.words,b=_.keySize,$=_.iterations;y.length<b;){var S=m.update(f).finalize(g);m.reset();for(var O=S.words,N=O.length,R=S,V=1;V<$;V++){R=m.finalize(R),m.reset();for(var I=R.words,T=0;T<N;T++)O[T]^=I[T]}v.concat(S),h[0]++}return v.sigBytes=b*4,v}});s.PBKDF2=function(p,f,_){return u.create(_).compute(p,f)}}(),t.PBKDF2})}($l)),$l.exports}var El={exports:{}},Sl;function Ut(){return Sl||(Sl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),ol(),aa())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.Base,i=n.WordArray,l=s.algo,d=l.MD5,o=l.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var f,_=this.cfg,m=_.hasher.create(),v=i.create(),g=v.words,y=_.keySize,h=_.iterations;g.length<y;){f&&m.update(f),f=m.update(u).finalize(p),m.reset();for(var b=1;b<h;b++)f=m.finalize(f),m.reset();v.concat(f)}return v.sigBytes=y*4,v}});s.EvpKDF=function(u,p,f){return o.create(f).compute(u,p)}}(),t.EvpKDF})}(El)),El.exports}var xl={exports:{}},Al;function Ne(){return Al||(Al=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ut())})(ce,function(t){t.lib.Cipher||function(s){var n=t,a=n.lib,i=a.Base,l=a.WordArray,d=a.BufferedBlockAlgorithm,o=n.enc;o.Utf8;var u=o.Base64,p=n.algo,f=p.EvpKDF,_=a.Cipher=d.extend({cfg:i.extend(),createEncryptor:function(I,T){return this.create(this._ENC_XFORM_MODE,I,T)},createDecryptor:function(I,T){return this.create(this._DEC_XFORM_MODE,I,T)},init:function(I,T,B){this.cfg=this.cfg.extend(B),this._xformMode=I,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(T){return typeof T=="string"?V:O}return function(T){return{encrypt:function(B,j,U){return I(j).encrypt(T,B,j,U)},decrypt:function(B,j,U){return I(j).decrypt(T,B,j,U)}}}}()});a.StreamCipher=_.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var m=n.mode={},v=a.BlockCipherMode=i.extend({createEncryptor:function(I,T){return this.Encryptor.create(I,T)},createDecryptor:function(I,T){return this.Decryptor.create(I,T)},init:function(I,T){this._cipher=I,this._iv=T}}),g=m.CBC=function(){var I=v.extend();I.Encryptor=I.extend({processBlock:function(B,j){var U=this._cipher,W=U.blockSize;T.call(this,B,j,W),U.encryptBlock(B,j),this._prevBlock=B.slice(j,j+W)}}),I.Decryptor=I.extend({processBlock:function(B,j){var U=this._cipher,W=U.blockSize,X=B.slice(j,j+W);U.decryptBlock(B,j),T.call(this,B,j,W),this._prevBlock=X}});function T(B,j,U){var W,X=this._iv;X?(W=X,this._iv=s):W=this._prevBlock;for(var se=0;se<U;se++)B[j+se]^=W[se]}return I}(),y=n.pad={},h=y.Pkcs7={pad:function(I,T){for(var B=T*4,j=B-I.sigBytes%B,U=j<<24|j<<16|j<<8|j,W=[],X=0;X<j;X+=4)W.push(U);var se=l.create(W,j);I.concat(se)},unpad:function(I){var T=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=T}};a.BlockCipher=_.extend({cfg:_.cfg.extend({mode:g,padding:h}),reset:function(){var I;_.reset.call(this);var T=this.cfg,B=T.iv,j=T.mode;this._xformMode==this._ENC_XFORM_MODE?I=j.createEncryptor:(I=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,B&&B.words):(this._mode=I.call(j,this,B&&B.words),this._mode.__creator=I)},_doProcessBlock:function(I,T){this._mode.processBlock(I,T)},_doFinalize:function(){var I,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),T.unpad(I)),I},blockSize:128/32});var b=a.CipherParams=i.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),$=n.format={},S=$.OpenSSL={stringify:function(I){var T,B=I.ciphertext,j=I.salt;return j?T=l.create([1398893684,1701076831]).concat(j).concat(B):T=B,T.toString(u)},parse:function(I){var T,B=u.parse(I),j=B.words;return j[0]==1398893684&&j[1]==1701076831&&(T=l.create(j.slice(2,4)),j.splice(0,4),B.sigBytes-=16),b.create({ciphertext:B,salt:T})}},O=a.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(I,T,B,j){j=this.cfg.extend(j);var U=I.createEncryptor(B,j),W=U.finalize(T),X=U.cfg;return b.create({ciphertext:W,key:B,iv:X.iv,algorithm:I,mode:X.mode,padding:X.padding,blockSize:I.blockSize,formatter:j.format})},decrypt:function(I,T,B,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var U=I.createDecryptor(B,j).finalize(T.ciphertext);return U},_parse:function(I,T){return typeof I=="string"?T.parse(I,this):I}}),N=n.kdf={},R=N.OpenSSL={execute:function(I,T,B,j,U){if(j||(j=l.random(64/8)),U)var W=f.create({keySize:T+B,hasher:U}).compute(I,j);else var W=f.create({keySize:T+B}).compute(I,j);var X=l.create(W.words.slice(T),B*4);return W.sigBytes=T*4,b.create({key:W,iv:X,salt:j})}},V=a.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:R}),encrypt:function(I,T,B,j){j=this.cfg.extend(j);var U=j.kdf.execute(B,I.keySize,I.ivSize,j.salt,j.hasher);j.iv=U.iv;var W=O.encrypt.call(this,I,T,U.key,j);return W.mixIn(U),W},decrypt:function(I,T,B,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var U=j.kdf.execute(B,I.keySize,I.ivSize,T.salt,j.hasher);j.iv=U.iv;var W=O.decrypt.call(this,I,T,U.key,j);return W}})}()})}(xl)),xl.exports}var Cl={exports:{}},Tl;function P0(){return Tl||(Tl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.CFB=function(){var s=t.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize;n.call(this,a,i,d,l),this._prevBlock=a.slice(i,i+d)}}),s.Decryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=a.slice(i,i+d);n.call(this,a,i,d,l),this._prevBlock=o}});function n(a,i,l,d){var o,u=this._iv;u?(o=u.slice(0),this._iv=void 0):o=this._prevBlock,d.encryptBlock(o,0);for(var p=0;p<l;p++)a[i+p]^=o[p]}return s}(),t.mode.CFB})}(Cl)),Cl.exports}var Ol={exports:{}},Pl;function N0(){return Pl||(Pl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.CTR=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._counter;o&&(u=this._counter=o.slice(0),this._iv=void 0);var p=u.slice(0);l.encryptBlock(p,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)a[i+f]^=p[f]}});return s.Decryptor=n,s}(),t.mode.CTR})}(Ol)),Ol.exports}var Nl={exports:{}},Il;function I0(){return Il||(Il=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){/** @preserve
|
|
37
37
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
38
38
|
* derived from CryptoJS.mode.CTR
|
|
39
39
|
* Jan Hruby jhruby.web@gmail.com
|
|
40
|
-
*/return t.mode.CTRGladman=function(){var s=t.lib.BlockCipherMode.extend();function n(u){if((u>>24&255)===255){var c=u>>16&255,o=u>>8&255,l=u&255;c===255?(c=0,o===255?(o=0,l===255?l=0:++l):++o):++c,u=0,u+=c<<16,u+=o<<8,u+=l}else u+=1<<24;return u}function a(u){return(u[0]=n(u[0]))===0&&(u[1]=n(u[1])),u}var i=s.Encryptor=s.extend({processBlock:function(u,c){var o=this._cipher,l=o.blockSize,p=this._iv,f=this._counter;p&&(f=this._counter=p.slice(0),this._iv=void 0),a(f);var _=f.slice(0);o.encryptBlock(_,0);for(var g=0;g<l;g++)u[c+g]^=_[g]}});return s.Decryptor=i,s}(),t.mode.CTRGladman})}(Pu)),Pu.exports}var Iu={exports:{}},Nu;function I0(){return Nu||(Nu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.OFB=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var u=this._cipher,c=u.blockSize,o=this._iv,l=this._keystream;o&&(l=this._keystream=o.slice(0),this._iv=void 0),u.encryptBlock(l,0);for(var p=0;p<c;p++)a[i+p]^=l[p]}});return s.Decryptor=n,s}(),t.mode.OFB})}(Iu)),Iu.exports}var Du={exports:{}},Mu;function N0(){return Mu||(Mu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.mode.ECB=function(){var s=t.lib.BlockCipherMode.extend();return s.Encryptor=s.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),s.Decryptor=s.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),s}(),t.mode.ECB})}(Du)),Du.exports}var Fu={exports:{}},Ru;function D0(){return Ru||(Ru=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.AnsiX923={pad:function(s,n){var a=s.sigBytes,i=n*4,u=i-a%i,c=a+u-1;s.clamp(),s.words[c>>>2]|=u<<24-c%4*8,s.sigBytes+=u},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Ansix923})}(Fu)),Fu.exports}var Bu={exports:{}},ju;function M0(){return ju||(ju=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.Iso10126={pad:function(s,n){var a=n*4,i=a-s.sigBytes%a;s.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Iso10126})}(Bu)),Bu.exports}var Lu={exports:{}},Vu;function F0(){return Vu||(Vu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.Iso97971={pad:function(s,n){s.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(s,n)},unpad:function(s){t.pad.ZeroPadding.unpad(s),s.sigBytes--}},t.pad.Iso97971})}(Lu)),Lu.exports}var zu={exports:{}},Hu;function R0(){return Hu||(Hu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.ZeroPadding={pad:function(s,n){var a=n*4;s.clamp(),s.sigBytes+=a-(s.sigBytes%a||a)},unpad:function(s){for(var n=s.words,a=s.sigBytes-1,a=s.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){s.sigBytes=a+1;break}}},t.pad.ZeroPadding})}(zu)),zu.exports}var Uu={exports:{}},qu;function B0(){return qu||(qu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Uu)),Uu.exports}var Ku={exports:{}},Gu;function j0(){return Gu||(Gu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),Pe())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.CipherParams,u=n.enc,c=u.Hex,o=n.format;o.Hex={stringify:function(l){return l.ciphertext.toString(c)},parse:function(l){var p=c.parse(l);return i.create({ciphertext:p})}}}(),t.format.Hex})}(Ku)),Ku.exports}var Wu={exports:{}},Xu;function L0(){return Xu||(Xu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),sr(),nr(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo,u=[],c=[],o=[],l=[],p=[],f=[],_=[],g=[],v=[],m=[];(function(){for(var b=[],$=0;$<256;$++)$<128?b[$]=$<<1:b[$]=$<<1^283;for(var S=0,T=0,$=0;$<256;$++){var I=T^T<<1^T<<2^T<<3^T<<4;I=I>>>8^I&255^99,u[S]=I,c[I]=S;var R=b[S],L=b[R],N=b[L],A=b[I]*257^I*16843008;o[S]=A<<24|A>>>8,l[S]=A<<16|A>>>16,p[S]=A<<8|A>>>24,f[S]=A;var A=N*16843009^L*65537^R*257^S*16843008;_[I]=A<<24|A>>>8,g[I]=A<<16|A>>>16,v[I]=A<<8|A>>>24,m[I]=A,S?(S=R^b[b[b[N^R]]],T^=b[b[T]]):S=T=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],h=i.AES=a.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var $=this._keyPriorReset=this._key,S=$.words,T=$.sigBytes/4,I=this._nRounds=T+6,R=(I+1)*4,L=this._keySchedule=[],N=0;N<R;N++)N<T?L[N]=S[N]:(b=L[N-1],N%T?T>6&&N%T==4&&(b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255]):(b=b<<8|b>>>24,b=u[b>>>24]<<24|u[b>>>16&255]<<16|u[b>>>8&255]<<8|u[b&255],b^=y[N/T|0]<<24),L[N]=L[N-T]^b);for(var A=this._invKeySchedule=[],F=0;F<R;F++){var N=R-F;if(F%4)var b=L[N];else var b=L[N-4];F<4||N<=4?A[F]=b:A[F]=_[u[b>>>24]]^g[u[b>>>16&255]]^v[u[b>>>8&255]]^m[u[b&255]]}}},encryptBlock:function(b,$){this._doCryptBlock(b,$,this._keySchedule,o,l,p,f,u)},decryptBlock:function(b,$){var S=b[$+1];b[$+1]=b[$+3],b[$+3]=S,this._doCryptBlock(b,$,this._invKeySchedule,_,g,v,m,c);var S=b[$+1];b[$+1]=b[$+3],b[$+3]=S},_doCryptBlock:function(b,$,S,T,I,R,L,N){for(var A=this._nRounds,F=b[$]^S[0],B=b[$+1]^S[1],H=b[$+2]^S[2],G=b[$+3]^S[3],X=4,se=1;se<A;se++){var te=T[F>>>24]^I[B>>>16&255]^R[H>>>8&255]^L[G&255]^S[X++],ne=T[B>>>24]^I[H>>>16&255]^R[G>>>8&255]^L[F&255]^S[X++],O=T[H>>>24]^I[G>>>16&255]^R[F>>>8&255]^L[B&255]^S[X++],k=T[G>>>24]^I[F>>>16&255]^R[B>>>8&255]^L[H&255]^S[X++];F=te,B=ne,H=O,G=k}var te=(N[F>>>24]<<24|N[B>>>16&255]<<16|N[H>>>8&255]<<8|N[G&255])^S[X++],ne=(N[B>>>24]<<24|N[H>>>16&255]<<16|N[G>>>8&255]<<8|N[F&255])^S[X++],O=(N[H>>>24]<<24|N[G>>>16&255]<<16|N[F>>>8&255]<<8|N[B&255])^S[X++],k=(N[G>>>24]<<24|N[F>>>16&255]<<16|N[B>>>8&255]<<8|N[H&255])^S[X++];b[$]=te,b[$+1]=ne,b[$+2]=O,b[$+3]=k},keySize:256/32});s.AES=a._createHelper(h)}(),t.AES})}(Wu)),Wu.exports}var Yu={exports:{}},Zu;function V0(){return Zu||(Zu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),sr(),nr(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.BlockCipher,u=s.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=u.DES=i.extend({_doReset:function(){for(var y=this._key,h=y.words,b=[],$=0;$<56;$++){var S=c[$]-1;b[$]=h[S>>>5]>>>31-S%32&1}for(var T=this._subKeys=[],I=0;I<16;I++){for(var R=T[I]=[],L=l[I],$=0;$<24;$++)R[$/6|0]|=b[(o[$]-1+L)%28]<<31-$%6,R[4+($/6|0)]|=b[28+(o[$+24]-1+L)%28]<<31-$%6;R[0]=R[0]<<1|R[0]>>>31;for(var $=1;$<7;$++)R[$]=R[$]>>>($-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var N=this._invSubKeys=[],$=0;$<16;$++)N[$]=T[15-$]},encryptBlock:function(y,h){this._doCryptBlock(y,h,this._subKeys)},decryptBlock:function(y,h){this._doCryptBlock(y,h,this._invSubKeys)},_doCryptBlock:function(y,h,b){this._lBlock=y[h],this._rBlock=y[h+1],g.call(this,4,252645135),g.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),g.call(this,1,1431655765);for(var $=0;$<16;$++){for(var S=b[$],T=this._lBlock,I=this._rBlock,R=0,L=0;L<8;L++)R|=p[L][((I^S[L])&f[L])>>>0];this._lBlock=I,this._rBlock=T^R}var N=this._lBlock;this._lBlock=this._rBlock,this._rBlock=N,g.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),y[h]=this._lBlock,y[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(y,h){var b=(this._lBlock>>>y^this._rBlock)&h;this._rBlock^=b,this._lBlock^=b<<y}function v(y,h){var b=(this._rBlock>>>y^this._lBlock)&h;this._lBlock^=b,this._rBlock^=b<<y}s.DES=i._createHelper(_);var m=u.TripleDES=i.extend({_doReset:function(){var y=this._key,h=y.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=h.slice(0,2),$=h.length<4?h.slice(0,2):h.slice(2,4),S=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=_.createEncryptor(a.create(b)),this._des2=_.createEncryptor(a.create($)),this._des3=_.createEncryptor(a.create(S))},encryptBlock:function(y,h){this._des1.encryptBlock(y,h),this._des2.decryptBlock(y,h),this._des3.encryptBlock(y,h)},decryptBlock:function(y,h){this._des3.decryptBlock(y,h),this._des2.encryptBlock(y,h),this._des1.decryptBlock(y,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=i._createHelper(m)}(),t.TripleDES})}(Yu)),Yu.exports}var Ju={exports:{}},Qu;function z0(){return Qu||(Qu=1,function(r,e){(function(t,s,n){r.exports=s(fe(),sr(),nr(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,u=i.RC4=a.extend({_doReset:function(){for(var l=this._key,p=l.words,f=l.sigBytes,_=this._S=[],g=0;g<256;g++)_[g]=g;for(var g=0,v=0;g<256;g++){var m=g%f,y=p[m>>>2]>>>24-m%4*8&255;v=(v+_[g]+y)%256;var h=_[g];_[g]=_[v],_[v]=h}this._i=this._j=0},_doProcessBlock:function(l,p){l[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var l=this._S,p=this._i,f=this._j,_=0,g=0;g<4;g++){p=(p+1)%256,f=(f+l[p])%256;var v=l[p];l[p]=l[f],l[f]=v,_|=l[(l[p]+l[f])%256]<<24-g*8}return this._i=p,this._j=f,_}s.RC4=a._createHelper(u);var o=i.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)c.call(this)}});s.RC4Drop=a._createHelper(o)}(),t.RC4})}(Ju)),Ju.exports}var el={exports:{}},tl;function H0(){return tl||(tl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),sr(),nr(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,u=[],c=[],o=[],l=i.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,_=this.cfg.iv,g=0;g<4;g++)f[g]=(f[g]<<8|f[g]>>>24)&16711935|(f[g]<<24|f[g]>>>8)&4278255360;var v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],m=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var g=0;g<4;g++)p.call(this);for(var g=0;g<8;g++)m[g]^=v[g+4&7];if(_){var y=_.words,h=y[0],b=y[1],$=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=$>>>16|S&4294901760,I=S<<16|$&65535;m[0]^=$,m[1]^=T,m[2]^=S,m[3]^=I,m[4]^=$,m[5]^=T,m[6]^=S,m[7]^=I;for(var g=0;g<4;g++)p.call(this)}},_doProcessBlock:function(f,_){var g=this._X;p.call(this),u[0]=g[0]^g[5]>>>16^g[3]<<16,u[1]=g[2]^g[7]>>>16^g[5]<<16,u[2]=g[4]^g[1]>>>16^g[7]<<16,u[3]=g[6]^g[3]>>>16^g[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,f[_+v]^=u[v]},blockSize:128/32,ivSize:64/32});function p(){for(var f=this._X,_=this._C,g=0;g<8;g++)c[g]=_[g];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var g=0;g<8;g++){var v=f[g]+_[g],m=v&65535,y=v>>>16,h=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[g]=h^b}f[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,f[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,f[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,f[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,f[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,f[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,f[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,f[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.Rabbit=a._createHelper(l)}(),t.Rabbit})}(el)),el.exports}var rl={exports:{}},sl;function U0(){return sl||(sl=1,function(r,e){(function(t,s,n){r.exports=s(fe(),sr(),nr(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,u=[],c=[],o=[],l=i.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,_=this.cfg.iv,g=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)p.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(_){var y=_.words,h=y[0],b=y[1],$=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=$>>>16|S&4294901760,I=S<<16|$&65535;v[0]^=$,v[1]^=T,v[2]^=S,v[3]^=I,v[4]^=$,v[5]^=T,v[6]^=S,v[7]^=I;for(var m=0;m<4;m++)p.call(this)}},_doProcessBlock:function(f,_){var g=this._X;p.call(this),u[0]=g[0]^g[5]>>>16^g[3]<<16,u[1]=g[2]^g[7]>>>16^g[5]<<16,u[2]=g[4]^g[1]>>>16^g[7]<<16,u[3]=g[6]^g[3]>>>16^g[1]<<16;for(var v=0;v<4;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360,f[_+v]^=u[v]},blockSize:128/32,ivSize:64/32});function p(){for(var f=this._X,_=this._C,g=0;g<8;g++)c[g]=_[g];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<c[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<c[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<c[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<c[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<c[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<c[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<c[6]>>>0?1:0)|0,this._b=_[7]>>>0<c[7]>>>0?1:0;for(var g=0;g<8;g++){var v=f[g]+_[g],m=v&65535,y=v>>>16,h=((m*m>>>17)+m*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[g]=h^b}f[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,f[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,f[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,f[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,f[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,f[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,f[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,f[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.RabbitLegacy=a._createHelper(l)}(),t.RabbitLegacy})}(rl)),rl.exports}var nl={exports:{}},al;function q0(){return al||(al=1,function(r,e){(function(t,s,n){r.exports=s(fe(),sr(),nr(),Ut(),Pe())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo;const u=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function p(m,y){let h=y>>24&255,b=y>>16&255,$=y>>8&255,S=y&255,T=m.sbox[0][h]+m.sbox[1][b];return T=T^m.sbox[2][$],T=T+m.sbox[3][S],T}function f(m,y,h){let b=y,$=h,S;for(let T=0;T<u;++T)b=b^m.pbox[T],$=p(m,b)^$,S=b,b=$,$=S;return S=b,b=$,$=S,$=$^m.pbox[u],b=b^m.pbox[u+1],{left:b,right:$}}function _(m,y,h){let b=y,$=h,S;for(let T=u+1;T>1;--T)b=b^m.pbox[T],$=p(m,b)^$,S=b,b=$,$=S;return S=b,b=$,$=S,$=$^m.pbox[1],b=b^m.pbox[0],{left:b,right:$}}function g(m,y,h){for(let I=0;I<4;I++){m.sbox[I]=[];for(let R=0;R<256;R++)m.sbox[I][R]=o[I][R]}let b=0;for(let I=0;I<u+2;I++)m.pbox[I]=c[I]^y[b],b++,b>=h&&(b=0);let $=0,S=0,T=0;for(let I=0;I<u+2;I+=2)T=f(m,$,S),$=T.left,S=T.right,m.pbox[I]=$,m.pbox[I+1]=S;for(let I=0;I<4;I++)for(let R=0;R<256;R+=2)T=f(m,$,S),$=T.left,S=T.right,m.sbox[I][R]=$,m.sbox[I][R+1]=S;return!0}var v=i.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var m=this._keyPriorReset=this._key,y=m.words,h=m.sigBytes/4;g(l,y,h)}},encryptBlock:function(m,y){var h=f(l,m[y],m[y+1]);m[y]=h.left,m[y+1]=h.right},decryptBlock:function(m,y){var h=_(l,m[y],m[y+1]);m[y]=h.left,m[y+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=a._createHelper(v)}(),t.Blowfish})}(nl)),nl.exports}(function(r,e){(function(t,s,n){r.exports=s(fe(),Cs(),k0(),$0(),sr(),w0(),nr(),nu(),ra(),E0(),du(),S0(),x0(),C0(),sa(),A0(),Ut(),Pe(),T0(),P0(),O0(),I0(),N0(),D0(),M0(),F0(),R0(),B0(),j0(),L0(),V0(),z0(),H0(),U0(),q0())})(ce,function(t){return t})})(v0);/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:ol,setPrototypeOf:il,isFrozen:K0,getPrototypeOf:G0,getOwnPropertyDescriptor:W0}=Object;let{freeze:He,seal:lt,create:ul}=Object,{apply:na,construct:aa}=typeof Reflect<"u"&&Reflect;He||(He=function(e){return e}),lt||(lt=function(e){return e}),na||(na=function(e,t,s){return e.apply(t,s)}),aa||(aa=function(e,t){return new e(...t)});const As=qe(Array.prototype.forEach),X0=qe(Array.prototype.lastIndexOf),ll=qe(Array.prototype.pop),Vr=qe(Array.prototype.push),Y0=qe(Array.prototype.splice),Ts=qe(String.prototype.toLowerCase),oa=qe(String.prototype.toString),cl=qe(String.prototype.match),zr=qe(String.prototype.replace),Z0=qe(String.prototype.indexOf),J0=qe(String.prototype.trim),kt=qe(Object.prototype.hasOwnProperty),Ue=qe(RegExp.prototype.test),Hr=Q0(TypeError);function qe(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return na(r,e,s)}}function Q0(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return aa(r,t)}}function he(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ts;il&&il(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const a=t(n);a!==n&&(K0(e)||(e[s]=a),n=a)}r[n]=!0}return r}function e1(r){for(let e=0;e<r.length;e++)kt(r,e)||(r[e]=null);return r}function ar(r){const e=ul(null);for(const[t,s]of ol(r))kt(r,t)&&(Array.isArray(s)?e[t]=e1(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=ar(s):e[t]=s);return e}function Ur(r,e){for(;r!==null;){const s=W0(r,e);if(s){if(s.get)return qe(s.get);if(typeof s.value=="function")return qe(s.value)}r=G0(r)}function t(){return null}return t}const dl=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ia=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ua=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),t1=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),la=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),r1=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hl=He(["#text"]),fl=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ca=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pl=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ps=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s1=lt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),n1=lt(/<%[\w\W]*|[\w\W]*%>/gm),a1=lt(/\$\{[\w\W]*/gm),o1=lt(/^data-[\-\w.\u00B7-\uFFFF]+$/),i1=lt(/^aria-[\-\w]+$/),ml=lt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),u1=lt(/^(?:\w+script|data):/i),l1=lt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gl=lt(/^html$/i),c1=lt(/^[a-z][.\w]*(-[.\w]+)+$/i);var yl=Object.freeze({__proto__:null,ARIA_ATTR:i1,ATTR_WHITESPACE:l1,CUSTOM_ELEMENT:c1,DATA_ATTR:o1,DOCTYPE_NAME:gl,ERB_EXPR:n1,IS_ALLOWED_URI:ml,IS_SCRIPT_OR_DATA:u1,MUSTACHE_EXPR:s1,TMPLIT_EXPR:a1});const qr={element:1,text:3,progressingInstruction:7,comment:8,document:9},d1=function(){return typeof window>"u"?null:window},h1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(s=t.getAttribute(n));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},vl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function _l(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d1();const e=ee=>_l(ee);if(e.version="3.2.5",e.removed=[],!r||!r.document||r.document.nodeType!==qr.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:u,Element:c,NodeFilter:o,NamedNodeMap:l=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:_}=r,g=c.prototype,v=Ur(g,"cloneNode"),m=Ur(g,"remove"),y=Ur(g,"nextSibling"),h=Ur(g,"childNodes"),b=Ur(g,"parentNode");if(typeof i=="function"){const ee=t.createElement("template");ee.content&&ee.content.ownerDocument&&(t=ee.content.ownerDocument)}let $,S="";const{implementation:T,createNodeIterator:I,createDocumentFragment:R,getElementsByTagName:L}=t,{importNode:N}=s;let A=vl();e.isSupported=typeof ol=="function"&&typeof b=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:B,TMPLIT_EXPR:H,DATA_ATTR:G,ARIA_ATTR:X,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:ne}=yl;let{IS_ALLOWED_URI:O}=yl,k=null;const x=he({},[...dl,...ia,...ua,...la,...hl]);let w=null;const d=he({},[...fl,...ca,...pl,...Ps]);let E=Object.seal(ul(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,V=null,M=!0,z=!0,K=!1,Q=!0,U=!1,pe=!0,ge=!1,Ke=!1,nt=!1,Ge=!1,Qe=!1,ct=!1,dt=!0,Oe=!1;const Ie="user-content-";let je=!0,et=!1,at={},Ce=null;const ht=he({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let or=null;const qt=he({},["audio","video","img","source","image","track"]);let Kt=null;const Dt=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",kr="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Mt=ft,Gr=!1,Wr=null;const Os=he({},[xt,kr,ft],oa);let $r=he({},["mi","mo","mn","ms","mtext"]),ir=he({},["annotation-xml"]);const ha=he({},["title","style","font","a","script"]);let Gt=null;const fa=["application/xhtml+xml","text/html"],pa="text/html";let Se=null,Ft=null;const ma=t.createElement("form"),Is=function(D){return D instanceof RegExp||D instanceof Function},wr=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ft&&Ft===D)){if((!D||typeof D!="object")&&(D={}),D=ar(D),Gt=fa.indexOf(D.PARSER_MEDIA_TYPE)===-1?pa:D.PARSER_MEDIA_TYPE,Se=Gt==="application/xhtml+xml"?oa:Ts,k=kt(D,"ALLOWED_TAGS")?he({},D.ALLOWED_TAGS,Se):x,w=kt(D,"ALLOWED_ATTR")?he({},D.ALLOWED_ATTR,Se):d,Wr=kt(D,"ALLOWED_NAMESPACES")?he({},D.ALLOWED_NAMESPACES,oa):Os,Kt=kt(D,"ADD_URI_SAFE_ATTR")?he(ar(Dt),D.ADD_URI_SAFE_ATTR,Se):Dt,or=kt(D,"ADD_DATA_URI_TAGS")?he(ar(qt),D.ADD_DATA_URI_TAGS,Se):qt,Ce=kt(D,"FORBID_CONTENTS")?he({},D.FORBID_CONTENTS,Se):ht,P=kt(D,"FORBID_TAGS")?he({},D.FORBID_TAGS,Se):{},V=kt(D,"FORBID_ATTR")?he({},D.FORBID_ATTR,Se):{},at=kt(D,"USE_PROFILES")?D.USE_PROFILES:!1,M=D.ALLOW_ARIA_ATTR!==!1,z=D.ALLOW_DATA_ATTR!==!1,K=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=D.SAFE_FOR_TEMPLATES||!1,pe=D.SAFE_FOR_XML!==!1,ge=D.WHOLE_DOCUMENT||!1,Ge=D.RETURN_DOM||!1,Qe=D.RETURN_DOM_FRAGMENT||!1,ct=D.RETURN_TRUSTED_TYPE||!1,nt=D.FORCE_BODY||!1,dt=D.SANITIZE_DOM!==!1,Oe=D.SANITIZE_NAMED_PROPS||!1,je=D.KEEP_CONTENT!==!1,et=D.IN_PLACE||!1,O=D.ALLOWED_URI_REGEXP||ml,Mt=D.NAMESPACE||ft,$r=D.MATHML_TEXT_INTEGRATION_POINTS||$r,ir=D.HTML_INTEGRATION_POINTS||ir,E=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Is(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Is(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(z=!1),Qe&&(Ge=!0),at&&(k=he({},hl),w=[],at.html===!0&&(he(k,dl),he(w,fl)),at.svg===!0&&(he(k,ia),he(w,ca),he(w,Ps)),at.svgFilters===!0&&(he(k,ua),he(w,ca),he(w,Ps)),at.mathMl===!0&&(he(k,la),he(w,pl),he(w,Ps))),D.ADD_TAGS&&(k===x&&(k=ar(k)),he(k,D.ADD_TAGS,Se)),D.ADD_ATTR&&(w===d&&(w=ar(w)),he(w,D.ADD_ATTR,Se)),D.ADD_URI_SAFE_ATTR&&he(Kt,D.ADD_URI_SAFE_ATTR,Se),D.FORBID_CONTENTS&&(Ce===ht&&(Ce=ar(Ce)),he(Ce,D.FORBID_CONTENTS,Se)),je&&(k["#text"]=!0),ge&&he(k,["html","head","body"]),k.table&&(he(k,["tbody"]),delete P.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=D.TRUSTED_TYPES_POLICY,S=$.createHTML("")}else $===void 0&&($=h1(_,n)),$!==null&&typeof S=="string"&&(S=$.createHTML(""));He&&He(D),Ft=D}},Ns=he({},[...ia,...ua,...t1]),Xr=he({},[...la,...r1]),We=function(D){let q=b(D);(!q||!q.tagName)&&(q={namespaceURI:Mt,tagName:"template"});const Y=Ts(D.tagName),ke=Ts(q.tagName);return Wr[D.namespaceURI]?D.namespaceURI===kr?q.namespaceURI===ft?Y==="svg":q.namespaceURI===xt?Y==="svg"&&(ke==="annotation-xml"||$r[ke]):!!Ns[Y]:D.namespaceURI===xt?q.namespaceURI===ft?Y==="math":q.namespaceURI===kr?Y==="math"&&ir[ke]:!!Xr[Y]:D.namespaceURI===ft?q.namespaceURI===kr&&!ir[ke]||q.namespaceURI===xt&&!$r[ke]?!1:!Xr[Y]&&(ha[Y]||!Ns[Y]):!!(Gt==="application/xhtml+xml"&&Wr[D.namespaceURI]):!1},Ae=function(D){Vr(e.removed,{element:D});try{b(D).removeChild(D)}catch{m(D)}},ur=function(D,q){try{Vr(e.removed,{attribute:q.getAttributeNode(D),from:q})}catch{Vr(e.removed,{attribute:null,from:q})}if(q.removeAttribute(D),D==="is")if(Ge||Qe)try{Ae(q)}catch{}else try{q.setAttribute(D,"")}catch{}},Ds=function(D){let q=null,Y=null;if(nt)D="<remove></remove>"+D;else{const Fe=cl(D,/^[\r\n\t ]+/);Y=Fe&&Fe[0]}Gt==="application/xhtml+xml"&&Mt===ft&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const ke=$?$.createHTML(D):D;if(Mt===ft)try{q=new f().parseFromString(ke,Gt)}catch{}if(!q||!q.documentElement){q=T.createDocument(Mt,"template",null);try{q.documentElement.innerHTML=Gr?S:ke}catch{}}const Le=q.body||q.documentElement;return D&&Y&&Le.insertBefore(t.createTextNode(Y),Le.childNodes[0]||null),Mt===ft?L.call(q,ge?"html":"body")[0]:ge?q.documentElement:Le},kl=function(D){return I.call(D.ownerDocument||D,D,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},ga=function(D){return D instanceof p&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof l)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},$l=function(D){return typeof u=="function"&&D instanceof u};function Rt(ee,D,q){As(ee,Y=>{Y.call(e,D,q,Ft)})}const wl=function(D){let q=null;if(Rt(A.beforeSanitizeElements,D,null),ga(D))return Ae(D),!0;const Y=Se(D.nodeName);if(Rt(A.uponSanitizeElement,D,{tagName:Y,allowedTags:k}),D.hasChildNodes()&&!$l(D.firstElementChild)&&Ue(/<[/\w!]/g,D.innerHTML)&&Ue(/<[/\w!]/g,D.textContent)||D.nodeType===qr.progressingInstruction||pe&&D.nodeType===qr.comment&&Ue(/<[/\w]/g,D.data))return Ae(D),!0;if(!k[Y]||P[Y]){if(!P[Y]&&Sl(Y)&&(E.tagNameCheck instanceof RegExp&&Ue(E.tagNameCheck,Y)||E.tagNameCheck instanceof Function&&E.tagNameCheck(Y)))return!1;if(je&&!Ce[Y]){const ke=b(D)||D.parentNode,Le=h(D)||D.childNodes;if(Le&&ke){const Fe=Le.length;for(let tt=Fe-1;tt>=0;--tt){const Ct=v(Le[tt],!0);Ct.__removalCount=(D.__removalCount||0)+1,ke.insertBefore(Ct,y(D))}}}return Ae(D),!0}return D instanceof c&&!We(D)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&Ue(/<\/no(script|embed|frames)/i,D.innerHTML)?(Ae(D),!0):(U&&D.nodeType===qr.text&&(q=D.textContent,As([F,B,H],ke=>{q=zr(q,ke," ")}),D.textContent!==q&&(Vr(e.removed,{element:D.cloneNode()}),D.textContent=q)),Rt(A.afterSanitizeElements,D,null),!1)},El=function(D,q,Y){if(dt&&(q==="id"||q==="name")&&(Y in t||Y in ma))return!1;if(!(z&&!V[q]&&Ue(G,q))){if(!(M&&Ue(X,q))){if(!w[q]||V[q]){if(!(Sl(D)&&(E.tagNameCheck instanceof RegExp&&Ue(E.tagNameCheck,D)||E.tagNameCheck instanceof Function&&E.tagNameCheck(D))&&(E.attributeNameCheck instanceof RegExp&&Ue(E.attributeNameCheck,q)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(q))||q==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&Ue(E.tagNameCheck,Y)||E.tagNameCheck instanceof Function&&E.tagNameCheck(Y))))return!1}else if(!Kt[q]){if(!Ue(O,zr(Y,te,""))){if(!((q==="src"||q==="xlink:href"||q==="href")&&D!=="script"&&Z0(Y,"data:")===0&&or[D])){if(!(K&&!Ue(se,zr(Y,te,"")))){if(Y)return!1}}}}}}return!0},Sl=function(D){return D!=="annotation-xml"&&cl(D,ne)},xl=function(D){Rt(A.beforeSanitizeAttributes,D,null);const{attributes:q}=D;if(!q||ga(D))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:w,forceKeepAttr:void 0};let ke=q.length;for(;ke--;){const Le=q[ke],{name:Fe,namespaceURI:tt,value:Ct}=Le,Yr=Se(Fe);let Xe=Fe==="value"?Ct:J0(Ct);if(Y.attrName=Yr,Y.attrValue=Xe,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Rt(A.uponSanitizeAttribute,D,Y),Xe=Y.attrValue,Oe&&(Yr==="id"||Yr==="name")&&(ur(Fe,D),Xe=Ie+Xe),pe&&Ue(/((--!?|])>)|<\/(style|title)/i,Xe)){ur(Fe,D);continue}if(Y.forceKeepAttr||(ur(Fe,D),!Y.keepAttr))continue;if(!Q&&Ue(/\/>/i,Xe)){ur(Fe,D);continue}U&&As([F,B,H],Al=>{Xe=zr(Xe,Al," ")});const Cl=Se(D.nodeName);if(El(Cl,Yr,Xe)){if($&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!tt)switch(_.getAttributeType(Cl,Yr)){case"TrustedHTML":{Xe=$.createHTML(Xe);break}case"TrustedScriptURL":{Xe=$.createScriptURL(Xe);break}}try{tt?D.setAttributeNS(tt,Fe,Xe):D.setAttribute(Fe,Xe),ga(D)?Ae(D):ll(e.removed)}catch{}}}Rt(A.afterSanitizeAttributes,D,null)},b1=function ee(D){let q=null;const Y=kl(D);for(Rt(A.beforeSanitizeShadowDOM,D,null);q=Y.nextNode();)Rt(A.uponSanitizeShadowNode,q,null),wl(q),xl(q),q.content instanceof a&&ee(q.content);Rt(A.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(ee){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,Y=null,ke=null,Le=null;if(Gr=!ee,Gr&&(ee="<!-->"),typeof ee!="string"&&!$l(ee))if(typeof ee.toString=="function"){if(ee=ee.toString(),typeof ee!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!e.isSupported)return ee;if(Ke||wr(D),e.removed=[],typeof ee=="string"&&(et=!1),et){if(ee.nodeName){const Ct=Se(ee.nodeName);if(!k[Ct]||P[Ct])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(ee instanceof u)q=Ds("<!---->"),Y=q.ownerDocument.importNode(ee,!0),Y.nodeType===qr.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?q=Y:q.appendChild(Y);else{if(!Ge&&!U&&!ge&&ee.indexOf("<")===-1)return $&&ct?$.createHTML(ee):ee;if(q=Ds(ee),!q)return Ge?null:ct?S:""}q&&nt&&Ae(q.firstChild);const Fe=kl(et?ee:q);for(;ke=Fe.nextNode();)wl(ke),xl(ke),ke.content instanceof a&&b1(ke.content);if(et)return ee;if(Ge){if(Qe)for(Le=R.call(q.ownerDocument);q.firstChild;)Le.appendChild(q.firstChild);else Le=q;return(w.shadowroot||w.shadowrootmode)&&(Le=N.call(s,Le,!0)),Le}let tt=ge?q.outerHTML:q.innerHTML;return ge&&k["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&Ue(gl,q.ownerDocument.doctype.name)&&(tt="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
|
|
41
|
-
`+
|
|
40
|
+
*/return t.mode.CTRGladman=function(){var s=t.lib.BlockCipherMode.extend();function n(l){if((l>>24&255)===255){var d=l>>16&255,o=l>>8&255,u=l&255;d===255?(d=0,o===255?(o=0,u===255?u=0:++u):++o):++d,l=0,l+=d<<16,l+=o<<8,l+=u}else l+=1<<24;return l}function a(l){return(l[0]=n(l[0]))===0&&(l[1]=n(l[1])),l}var i=s.Encryptor=s.extend({processBlock:function(l,d){var o=this._cipher,u=o.blockSize,p=this._iv,f=this._counter;p&&(f=this._counter=p.slice(0),this._iv=void 0),a(f);var _=f.slice(0);o.encryptBlock(_,0);for(var m=0;m<u;m++)l[d+m]^=_[m]}});return s.Decryptor=i,s}(),t.mode.CTRGladman})}(Nl)),Nl.exports}var Dl={exports:{}},Ml;function D0(){return Ml||(Ml=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.OFB=function(){var s=t.lib.BlockCipherMode.extend(),n=s.Encryptor=s.extend({processBlock:function(a,i){var l=this._cipher,d=l.blockSize,o=this._iv,u=this._keystream;o&&(u=this._keystream=o.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var p=0;p<d;p++)a[i+p]^=u[p]}});return s.Decryptor=n,s}(),t.mode.OFB})}(Dl)),Dl.exports}var Fl={exports:{}},Bl;function M0(){return Bl||(Bl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.mode.ECB=function(){var s=t.lib.BlockCipherMode.extend();return s.Encryptor=s.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),s.Decryptor=s.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),s}(),t.mode.ECB})}(Fl)),Fl.exports}var Rl={exports:{}},jl;function F0(){return jl||(jl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.AnsiX923={pad:function(s,n){var a=s.sigBytes,i=n*4,l=i-a%i,d=a+l-1;s.clamp(),s.words[d>>>2]|=l<<24-d%4*8,s.sigBytes+=l},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Ansix923})}(Rl)),Rl.exports}var Ll={exports:{}},Vl;function B0(){return Vl||(Vl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.Iso10126={pad:function(s,n){var a=n*4,i=a-s.sigBytes%a;s.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(s){var n=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=n}},t.pad.Iso10126})}(Ll)),Ll.exports}var zl={exports:{}},Hl;function R0(){return Hl||(Hl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.Iso97971={pad:function(s,n){s.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(s,n)},unpad:function(s){t.pad.ZeroPadding.unpad(s),s.sigBytes--}},t.pad.Iso97971})}(zl)),zl.exports}var Ul={exports:{}},ql;function j0(){return ql||(ql=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.ZeroPadding={pad:function(s,n){var a=n*4;s.clamp(),s.sigBytes+=a-(s.sigBytes%a||a)},unpad:function(s){for(var n=s.words,a=s.sigBytes-1,a=s.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){s.sigBytes=a+1;break}}},t.pad.ZeroPadding})}(Ul)),Ul.exports}var Gl={exports:{}},Wl;function L0(){return Wl||(Wl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gl)),Gl.exports}var Kl={exports:{}},Xl;function V0(){return Xl||(Xl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),Ne())})(ce,function(t){return function(s){var n=t,a=n.lib,i=a.CipherParams,l=n.enc,d=l.Hex,o=n.format;o.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var p=d.parse(u);return i.create({ciphertext:p})}}}(),t.format.Hex})}(Kl)),Kl.exports}var Yl={exports:{}},Jl;function z0(){return Jl||(Jl=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo,l=[],d=[],o=[],u=[],p=[],f=[],_=[],m=[],v=[],g=[];(function(){for(var b=[],$=0;$<256;$++)$<128?b[$]=$<<1:b[$]=$<<1^283;for(var S=0,O=0,$=0;$<256;$++){var N=O^O<<1^O<<2^O<<3^O<<4;N=N>>>8^N&255^99,l[S]=N,d[N]=S;var R=b[S],V=b[R],I=b[V],T=b[N]*257^N*16843008;o[S]=T<<24|T>>>8,u[S]=T<<16|T>>>16,p[S]=T<<8|T>>>24,f[S]=T;var T=I*16843009^V*65537^R*257^S*16843008;_[N]=T<<24|T>>>8,m[N]=T<<16|T>>>16,v[N]=T<<8|T>>>24,g[N]=T,S?(S=R^b[b[b[I^R]]],O^=b[b[O]]):S=O=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],h=i.AES=a.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var $=this._keyPriorReset=this._key,S=$.words,O=$.sigBytes/4,N=this._nRounds=O+6,R=(N+1)*4,V=this._keySchedule=[],I=0;I<R;I++)I<O?V[I]=S[I]:(b=V[I-1],I%O?O>6&&I%O==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=y[I/O|0]<<24),V[I]=V[I-O]^b);for(var T=this._invKeySchedule=[],B=0;B<R;B++){var I=R-B;if(B%4)var b=V[I];else var b=V[I-4];B<4||I<=4?T[B]=b:T[B]=_[l[b>>>24]]^m[l[b>>>16&255]]^v[l[b>>>8&255]]^g[l[b&255]]}}},encryptBlock:function(b,$){this._doCryptBlock(b,$,this._keySchedule,o,u,p,f,l)},decryptBlock:function(b,$){var S=b[$+1];b[$+1]=b[$+3],b[$+3]=S,this._doCryptBlock(b,$,this._invKeySchedule,_,m,v,g,d);var S=b[$+1];b[$+1]=b[$+3],b[$+3]=S},_doCryptBlock:function(b,$,S,O,N,R,V,I){for(var T=this._nRounds,B=b[$]^S[0],j=b[$+1]^S[1],U=b[$+2]^S[2],W=b[$+3]^S[3],X=4,se=1;se<T;se++){var J=O[B>>>24]^N[j>>>16&255]^R[U>>>8&255]^V[W&255]^S[X++],ne=O[j>>>24]^N[U>>>16&255]^R[W>>>8&255]^V[B&255]^S[X++],P=O[U>>>24]^N[W>>>16&255]^R[B>>>8&255]^V[j&255]^S[X++],k=O[W>>>24]^N[B>>>16&255]^R[j>>>8&255]^V[U&255]^S[X++];B=J,j=ne,U=P,W=k}var J=(I[B>>>24]<<24|I[j>>>16&255]<<16|I[U>>>8&255]<<8|I[W&255])^S[X++],ne=(I[j>>>24]<<24|I[U>>>16&255]<<16|I[W>>>8&255]<<8|I[B&255])^S[X++],P=(I[U>>>24]<<24|I[W>>>16&255]<<16|I[B>>>8&255]<<8|I[j&255])^S[X++],k=(I[W>>>24]<<24|I[B>>>16&255]<<16|I[j>>>8&255]<<8|I[U&255])^S[X++];b[$]=J,b[$+1]=ne,b[$+2]=P,b[$+3]=k},keySize:256/32});s.AES=a._createHelper(h)}(),t.AES})}(Yl)),Yl.exports}var Zl={exports:{}},Ql;function H0(){return Ql||(Ql=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.WordArray,i=n.BlockCipher,l=s.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=l.DES=i.extend({_doReset:function(){for(var y=this._key,h=y.words,b=[],$=0;$<56;$++){var S=d[$]-1;b[$]=h[S>>>5]>>>31-S%32&1}for(var O=this._subKeys=[],N=0;N<16;N++){for(var R=O[N]=[],V=u[N],$=0;$<24;$++)R[$/6|0]|=b[(o[$]-1+V)%28]<<31-$%6,R[4+($/6|0)]|=b[28+(o[$+24]-1+V)%28]<<31-$%6;R[0]=R[0]<<1|R[0]>>>31;for(var $=1;$<7;$++)R[$]=R[$]>>>($-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var I=this._invSubKeys=[],$=0;$<16;$++)I[$]=O[15-$]},encryptBlock:function(y,h){this._doCryptBlock(y,h,this._subKeys)},decryptBlock:function(y,h){this._doCryptBlock(y,h,this._invSubKeys)},_doCryptBlock:function(y,h,b){this._lBlock=y[h],this._rBlock=y[h+1],m.call(this,4,252645135),m.call(this,16,65535),v.call(this,2,858993459),v.call(this,8,16711935),m.call(this,1,1431655765);for(var $=0;$<16;$++){for(var S=b[$],O=this._lBlock,N=this._rBlock,R=0,V=0;V<8;V++)R|=p[V][((N^S[V])&f[V])>>>0];this._lBlock=N,this._rBlock=O^R}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,m.call(this,1,1431655765),v.call(this,8,16711935),v.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),y[h]=this._lBlock,y[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(y,h){var b=(this._lBlock>>>y^this._rBlock)&h;this._rBlock^=b,this._lBlock^=b<<y}function v(y,h){var b=(this._rBlock>>>y^this._lBlock)&h;this._lBlock^=b,this._rBlock^=b<<y}s.DES=i._createHelper(_);var g=l.TripleDES=i.extend({_doReset:function(){var y=this._key,h=y.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=h.slice(0,2),$=h.length<4?h.slice(0,2):h.slice(2,4),S=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=_.createEncryptor(a.create(b)),this._des2=_.createEncryptor(a.create($)),this._des3=_.createEncryptor(a.create(S))},encryptBlock:function(y,h){this._des1.encryptBlock(y,h),this._des2.decryptBlock(y,h),this._des3.encryptBlock(y,h)},decryptBlock:function(y,h){this._des3.decryptBlock(y,h),this._des2.encryptBlock(y,h),this._des1.decryptBlock(y,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=i._createHelper(g)}(),t.TripleDES})}(Zl)),Zl.exports}var eu={exports:{}},tu;function U0(){return tu||(tu=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,l=i.RC4=a.extend({_doReset:function(){for(var u=this._key,p=u.words,f=u.sigBytes,_=this._S=[],m=0;m<256;m++)_[m]=m;for(var m=0,v=0;m<256;m++){var g=m%f,y=p[g>>>2]>>>24-g%4*8&255;v=(v+_[m]+y)%256;var h=_[m];_[m]=_[v],_[v]=h}this._i=this._j=0},_doProcessBlock:function(u,p){u[p]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,p=this._i,f=this._j,_=0,m=0;m<4;m++){p=(p+1)%256,f=(f+u[p])%256;var v=u[p];u[p]=u[f],u[f]=v,_|=u[(u[p]+u[f])%256]<<24-m*8}return this._i=p,this._j=f,_}s.RC4=a._createHelper(l);var o=i.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)d.call(this)}});s.RC4Drop=a._createHelper(o)}(),t.RC4})}(eu)),eu.exports}var ru={exports:{}},su;function q0(){return su||(su=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,l=[],d=[],o=[],u=i.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,_=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],g=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)p.call(this);for(var m=0;m<8;m++)g[m]^=v[m+4&7];if(_){var y=_.words,h=y[0],b=y[1],$=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=$>>>16|S&4294901760,N=S<<16|$&65535;g[0]^=$,g[1]^=O,g[2]^=S,g[3]^=N,g[4]^=$,g[5]^=O,g[6]^=S,g[7]^=N;for(var m=0;m<4;m++)p.call(this)}},_doProcessBlock:function(f,_){var m=this._X;p.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,f[_+v]^=l[v]},blockSize:128/32,ivSize:64/32});function p(){for(var f=this._X,_=this._C,m=0;m<8;m++)d[m]=_[m];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<d[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<d[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<d[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<d[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<d[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<d[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<d[6]>>>0?1:0)|0,this._b=_[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var v=f[m]+_[m],g=v&65535,y=v>>>16,h=((g*g>>>17)+g*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[m]=h^b}f[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,f[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,f[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,f[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,f[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,f[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,f[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,f[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.Rabbit=a._createHelper(u)}(),t.Rabbit})}(ru)),ru.exports}var nu={exports:{}},au;function G0(){return au||(au=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.StreamCipher,i=s.algo,l=[],d=[],o=[],u=i.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,_=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var g=0;g<4;g++)p.call(this);for(var g=0;g<8;g++)v[g]^=m[g+4&7];if(_){var y=_.words,h=y[0],b=y[1],$=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,S=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=$>>>16|S&4294901760,N=S<<16|$&65535;v[0]^=$,v[1]^=O,v[2]^=S,v[3]^=N,v[4]^=$,v[5]^=O,v[6]^=S,v[7]^=N;for(var g=0;g<4;g++)p.call(this)}},_doProcessBlock:function(f,_){var m=this._X;p.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360,f[_+v]^=l[v]},blockSize:128/32,ivSize:64/32});function p(){for(var f=this._X,_=this._C,m=0;m<8;m++)d[m]=_[m];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<d[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<d[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<d[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<d[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<d[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<d[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<d[6]>>>0?1:0)|0,this._b=_[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var v=f[m]+_[m],g=v&65535,y=v>>>16,h=((g*g>>>17)+g*y>>>15)+y*y,b=((v&4294901760)*v|0)+((v&65535)*v|0);o[m]=h^b}f[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,f[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,f[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,f[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,f[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,f[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,f[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,f[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}s.RabbitLegacy=a._createHelper(u)}(),t.RabbitLegacy})}(nu)),nu.exports}var ou={exports:{}},iu;function W0(){return iu||(iu=1,function(r,e){(function(t,s,n){r.exports=s(pe(),sr(),nr(),Ut(),Ne())})(ce,function(t){return function(){var s=t,n=s.lib,a=n.BlockCipher,i=s.algo;const l=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function p(g,y){let h=y>>24&255,b=y>>16&255,$=y>>8&255,S=y&255,O=g.sbox[0][h]+g.sbox[1][b];return O=O^g.sbox[2][$],O=O+g.sbox[3][S],O}function f(g,y,h){let b=y,$=h,S;for(let O=0;O<l;++O)b=b^g.pbox[O],$=p(g,b)^$,S=b,b=$,$=S;return S=b,b=$,$=S,$=$^g.pbox[l],b=b^g.pbox[l+1],{left:b,right:$}}function _(g,y,h){let b=y,$=h,S;for(let O=l+1;O>1;--O)b=b^g.pbox[O],$=p(g,b)^$,S=b,b=$,$=S;return S=b,b=$,$=S,$=$^g.pbox[1],b=b^g.pbox[0],{left:b,right:$}}function m(g,y,h){for(let N=0;N<4;N++){g.sbox[N]=[];for(let R=0;R<256;R++)g.sbox[N][R]=o[N][R]}let b=0;for(let N=0;N<l+2;N++)g.pbox[N]=d[N]^y[b],b++,b>=h&&(b=0);let $=0,S=0,O=0;for(let N=0;N<l+2;N+=2)O=f(g,$,S),$=O.left,S=O.right,g.pbox[N]=$,g.pbox[N+1]=S;for(let N=0;N<4;N++)for(let R=0;R<256;R+=2)O=f(g,$,S),$=O.left,S=O.right,g.sbox[N][R]=$,g.sbox[N][R+1]=S;return!0}var v=i.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var g=this._keyPriorReset=this._key,y=g.words,h=g.sigBytes/4;m(u,y,h)}},encryptBlock:function(g,y){var h=f(u,g[y],g[y+1]);g[y]=h.left,g[y+1]=h.right},decryptBlock:function(g,y){var h=_(u,g[y],g[y+1]);g[y]=h.left,g[y+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=a._createHelper(v)}(),t.Blowfish})}(ou)),ou.exports}(function(r,e){(function(t,s,n){r.exports=s(pe(),Ts(),w0(),E0(),sr(),S0(),nr(),ol(),na(),x0(),pl(),A0(),C0(),T0(),aa(),O0(),Ut(),Ne(),P0(),N0(),I0(),D0(),M0(),F0(),B0(),R0(),j0(),L0(),V0(),z0(),H0(),U0(),q0(),G0(),W0())})(ce,function(t){return t})})(b0);/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:lu,setPrototypeOf:uu,isFrozen:K0,getPrototypeOf:X0,getOwnPropertyDescriptor:Y0}=Object;let{freeze:Ue,seal:ct,create:cu}=Object,{apply:oa,construct:ia}=typeof Reflect<"u"&&Reflect;Ue||(Ue=function(e){return e}),ct||(ct=function(e){return e}),oa||(oa=function(e,t,s){return e.apply(t,s)}),ia||(ia=function(e,t){return new e(...t)});const Os=Ge(Array.prototype.forEach),J0=Ge(Array.prototype.lastIndexOf),du=Ge(Array.prototype.pop),Vr=Ge(Array.prototype.push),Z0=Ge(Array.prototype.splice),Ps=Ge(String.prototype.toLowerCase),la=Ge(String.prototype.toString),hu=Ge(String.prototype.match),zr=Ge(String.prototype.replace),Q0=Ge(String.prototype.indexOf),e1=Ge(String.prototype.trim),bt=Ge(Object.prototype.hasOwnProperty),qe=Ge(RegExp.prototype.test),Hr=t1(TypeError);function Ge(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return oa(r,e,s)}}function t1(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return ia(r,t)}}function he(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ps;uu&&uu(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const a=t(n);a!==n&&(K0(e)||(e[s]=a),n=a)}r[n]=!0}return r}function r1(r){for(let e=0;e<r.length;e++)bt(r,e)||(r[e]=null);return r}function ar(r){const e=cu(null);for(const[t,s]of lu(r))bt(r,t)&&(Array.isArray(s)?e[t]=r1(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=ar(s):e[t]=s);return e}function Ur(r,e){for(;r!==null;){const s=Y0(r,e);if(s){if(s.get)return Ge(s.get);if(typeof s.value=="function")return Ge(s.value)}r=X0(r)}function t(){return null}return t}const pu=Ue(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ua=Ue(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ca=Ue(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),s1=Ue(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),da=Ue(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),n1=Ue(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fu=Ue(["#text"]),mu=Ue(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ha=Ue(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gu=Ue(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ns=Ue(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),a1=ct(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o1=ct(/<%[\w\W]*|[\w\W]*%>/gm),i1=ct(/\$\{[\w\W]*/gm),l1=ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),u1=ct(/^aria-[\-\w]+$/),yu=ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),c1=ct(/^(?:\w+script|data):/i),d1=ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vu=ct(/^html$/i),h1=ct(/^[a-z][.\w]*(-[.\w]+)+$/i);var _u=Object.freeze({__proto__:null,ARIA_ATTR:u1,ATTR_WHITESPACE:d1,CUSTOM_ELEMENT:h1,DATA_ATTR:l1,DOCTYPE_NAME:vu,ERB_EXPR:o1,IS_ALLOWED_URI:yu,IS_SCRIPT_OR_DATA:c1,MUSTACHE_EXPR:a1,TMPLIT_EXPR:i1});const qr={element:1,text:3,progressingInstruction:7,comment:8,document:9},p1=function(){return typeof window>"u"?null:window},f1=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(s=t.getAttribute(n));const a="dompurify"+(s?"#"+s:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},bu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ku(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p1();const e=re=>ku(re);if(e.version="3.2.5",e.removed=[],!r||!r.document||r.document.nodeType!==qr.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:l,Element:d,NodeFilter:o,NamedNodeMap:u=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:_}=r,m=d.prototype,v=Ur(m,"cloneNode"),g=Ur(m,"remove"),y=Ur(m,"nextSibling"),h=Ur(m,"childNodes"),b=Ur(m,"parentNode");if(typeof i=="function"){const re=t.createElement("template");re.content&&re.content.ownerDocument&&(t=re.content.ownerDocument)}let $,S="";const{implementation:O,createNodeIterator:N,createDocumentFragment:R,getElementsByTagName:V}=t,{importNode:I}=s;let T=bu();e.isSupported=typeof lu=="function"&&typeof b=="function"&&O&&O.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:j,TMPLIT_EXPR:U,DATA_ATTR:W,ARIA_ATTR:X,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ne}=_u;let{IS_ALLOWED_URI:P}=_u,k=null;const x=he({},[...pu,...ua,...ca,...da,...fu]);let E=null;const c=he({},[...mu,...ha,...gu,...Ns]);let w=Object.seal(cu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),C=null,L=null,F=!0,z=!0,q=!1,Z=!0,H=!1,fe=!0,ge=!1,We=!1,st=!1,Ke=!1,et=!1,dt=!1,ht=!0,Ie=!1;const De="user-content-";let Le=!0,tt=!1,nt={},Ce=null;const pt=he({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let or=null;const qt=he({},["audio","video","img","source","image","track"]);let Gt=null;const Mt=he({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",$r="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Ft=ft,Wr=!1,Kr=null;const Is=he({},[At,$r,ft],la);let wr=he({},["mi","mo","mn","ms","mtext"]),ir=he({},["annotation-xml"]);const fa=he({},["title","style","font","a","script"]);let Wt=null;const ma=["application/xhtml+xml","text/html"],ga="text/html";let Se=null,Bt=null;const ya=t.createElement("form"),Ds=function(D){return D instanceof RegExp||D instanceof Function},Er=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Bt&&Bt===D)){if((!D||typeof D!="object")&&(D={}),D=ar(D),Wt=ma.indexOf(D.PARSER_MEDIA_TYPE)===-1?ga:D.PARSER_MEDIA_TYPE,Se=Wt==="application/xhtml+xml"?la:Ps,k=bt(D,"ALLOWED_TAGS")?he({},D.ALLOWED_TAGS,Se):x,E=bt(D,"ALLOWED_ATTR")?he({},D.ALLOWED_ATTR,Se):c,Kr=bt(D,"ALLOWED_NAMESPACES")?he({},D.ALLOWED_NAMESPACES,la):Is,Gt=bt(D,"ADD_URI_SAFE_ATTR")?he(ar(Mt),D.ADD_URI_SAFE_ATTR,Se):Mt,or=bt(D,"ADD_DATA_URI_TAGS")?he(ar(qt),D.ADD_DATA_URI_TAGS,Se):qt,Ce=bt(D,"FORBID_CONTENTS")?he({},D.FORBID_CONTENTS,Se):pt,C=bt(D,"FORBID_TAGS")?he({},D.FORBID_TAGS,Se):{},L=bt(D,"FORBID_ATTR")?he({},D.FORBID_ATTR,Se):{},nt=bt(D,"USE_PROFILES")?D.USE_PROFILES:!1,F=D.ALLOW_ARIA_ATTR!==!1,z=D.ALLOW_DATA_ATTR!==!1,q=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=D.SAFE_FOR_TEMPLATES||!1,fe=D.SAFE_FOR_XML!==!1,ge=D.WHOLE_DOCUMENT||!1,Ke=D.RETURN_DOM||!1,et=D.RETURN_DOM_FRAGMENT||!1,dt=D.RETURN_TRUSTED_TYPE||!1,st=D.FORCE_BODY||!1,ht=D.SANITIZE_DOM!==!1,Ie=D.SANITIZE_NAMED_PROPS||!1,Le=D.KEEP_CONTENT!==!1,tt=D.IN_PLACE||!1,P=D.ALLOWED_URI_REGEXP||yu,Ft=D.NAMESPACE||ft,wr=D.MATHML_TEXT_INTEGRATION_POINTS||wr,ir=D.HTML_INTEGRATION_POINTS||ir,w=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Ds(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(w.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Ds(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(w.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(w.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(z=!1),et&&(Ke=!0),nt&&(k=he({},fu),E=[],nt.html===!0&&(he(k,pu),he(E,mu)),nt.svg===!0&&(he(k,ua),he(E,ha),he(E,Ns)),nt.svgFilters===!0&&(he(k,ca),he(E,ha),he(E,Ns)),nt.mathMl===!0&&(he(k,da),he(E,gu),he(E,Ns))),D.ADD_TAGS&&(k===x&&(k=ar(k)),he(k,D.ADD_TAGS,Se)),D.ADD_ATTR&&(E===c&&(E=ar(E)),he(E,D.ADD_ATTR,Se)),D.ADD_URI_SAFE_ATTR&&he(Gt,D.ADD_URI_SAFE_ATTR,Se),D.FORBID_CONTENTS&&(Ce===pt&&(Ce=ar(Ce)),he(Ce,D.FORBID_CONTENTS,Se)),Le&&(k["#text"]=!0),ge&&he(k,["html","head","body"]),k.table&&(he(k,["tbody"]),delete C.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=D.TRUSTED_TYPES_POLICY,S=$.createHTML("")}else $===void 0&&($=f1(_,n)),$!==null&&typeof S=="string"&&(S=$.createHTML(""));Ue&&Ue(D),Bt=D}},Ms=he({},[...ua,...ca,...s1]),Xr=he({},[...da,...n1]),Xe=function(D){let G=b(D);(!G||!G.tagName)&&(G={namespaceURI:Ft,tagName:"template"});const Q=Ps(D.tagName),$e=Ps(G.tagName);return Kr[D.namespaceURI]?D.namespaceURI===$r?G.namespaceURI===ft?Q==="svg":G.namespaceURI===At?Q==="svg"&&($e==="annotation-xml"||wr[$e]):!!Ms[Q]:D.namespaceURI===At?G.namespaceURI===ft?Q==="math":G.namespaceURI===$r?Q==="math"&&ir[$e]:!!Xr[Q]:D.namespaceURI===ft?G.namespaceURI===$r&&!ir[$e]||G.namespaceURI===At&&!wr[$e]?!1:!Xr[Q]&&(fa[Q]||!Ms[Q]):!!(Wt==="application/xhtml+xml"&&Kr[D.namespaceURI]):!1},Te=function(D){Vr(e.removed,{element:D});try{b(D).removeChild(D)}catch{g(D)}},lr=function(D,G){try{Vr(e.removed,{attribute:G.getAttributeNode(D),from:G})}catch{Vr(e.removed,{attribute:null,from:G})}if(G.removeAttribute(D),D==="is")if(Ke||et)try{Te(G)}catch{}else try{G.setAttribute(D,"")}catch{}},Fs=function(D){let G=null,Q=null;if(st)D="<remove></remove>"+D;else{const Be=hu(D,/^[\r\n\t ]+/);Q=Be&&Be[0]}Wt==="application/xhtml+xml"&&Ft===ft&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const $e=$?$.createHTML(D):D;if(Ft===ft)try{G=new f().parseFromString($e,Wt)}catch{}if(!G||!G.documentElement){G=O.createDocument(Ft,"template",null);try{G.documentElement.innerHTML=Wr?S:$e}catch{}}const Ve=G.body||G.documentElement;return D&&Q&&Ve.insertBefore(t.createTextNode(Q),Ve.childNodes[0]||null),Ft===ft?V.call(G,ge?"html":"body")[0]:ge?G.documentElement:Ve},wu=function(D){return N.call(D.ownerDocument||D,D,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},va=function(D){return D instanceof p&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof u)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},Eu=function(D){return typeof l=="function"&&D instanceof l};function Rt(re,D,G){Os(re,Q=>{Q.call(e,D,G,Bt)})}const Su=function(D){let G=null;if(Rt(T.beforeSanitizeElements,D,null),va(D))return Te(D),!0;const Q=Se(D.nodeName);if(Rt(T.uponSanitizeElement,D,{tagName:Q,allowedTags:k}),D.hasChildNodes()&&!Eu(D.firstElementChild)&&qe(/<[/\w!]/g,D.innerHTML)&&qe(/<[/\w!]/g,D.textContent)||D.nodeType===qr.progressingInstruction||fe&&D.nodeType===qr.comment&&qe(/<[/\w]/g,D.data))return Te(D),!0;if(!k[Q]||C[Q]){if(!C[Q]&&Au(Q)&&(w.tagNameCheck instanceof RegExp&&qe(w.tagNameCheck,Q)||w.tagNameCheck instanceof Function&&w.tagNameCheck(Q)))return!1;if(Le&&!Ce[Q]){const $e=b(D)||D.parentNode,Ve=h(D)||D.childNodes;if(Ve&&$e){const Be=Ve.length;for(let rt=Be-1;rt>=0;--rt){const Ct=v(Ve[rt],!0);Ct.__removalCount=(D.__removalCount||0)+1,$e.insertBefore(Ct,y(D))}}}return Te(D),!0}return D instanceof d&&!Xe(D)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&qe(/<\/no(script|embed|frames)/i,D.innerHTML)?(Te(D),!0):(H&&D.nodeType===qr.text&&(G=D.textContent,Os([B,j,U],$e=>{G=zr(G,$e," ")}),D.textContent!==G&&(Vr(e.removed,{element:D.cloneNode()}),D.textContent=G)),Rt(T.afterSanitizeElements,D,null),!1)},xu=function(D,G,Q){if(ht&&(G==="id"||G==="name")&&(Q in t||Q in ya))return!1;if(!(z&&!L[G]&&qe(W,G))){if(!(F&&qe(X,G))){if(!E[G]||L[G]){if(!(Au(D)&&(w.tagNameCheck instanceof RegExp&&qe(w.tagNameCheck,D)||w.tagNameCheck instanceof Function&&w.tagNameCheck(D))&&(w.attributeNameCheck instanceof RegExp&&qe(w.attributeNameCheck,G)||w.attributeNameCheck instanceof Function&&w.attributeNameCheck(G))||G==="is"&&w.allowCustomizedBuiltInElements&&(w.tagNameCheck instanceof RegExp&&qe(w.tagNameCheck,Q)||w.tagNameCheck instanceof Function&&w.tagNameCheck(Q))))return!1}else if(!Gt[G]){if(!qe(P,zr(Q,J,""))){if(!((G==="src"||G==="xlink:href"||G==="href")&&D!=="script"&&Q0(Q,"data:")===0&&or[D])){if(!(q&&!qe(se,zr(Q,J,"")))){if(Q)return!1}}}}}}return!0},Au=function(D){return D!=="annotation-xml"&&hu(D,ne)},Cu=function(D){Rt(T.beforeSanitizeAttributes,D,null);const{attributes:G}=D;if(!G||va(D))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0};let $e=G.length;for(;$e--;){const Ve=G[$e],{name:Be,namespaceURI:rt,value:Ct}=Ve,Yr=Se(Be);let Ye=Be==="value"?Ct:e1(Ct);if(Q.attrName=Yr,Q.attrValue=Ye,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Rt(T.uponSanitizeAttribute,D,Q),Ye=Q.attrValue,Ie&&(Yr==="id"||Yr==="name")&&(lr(Be,D),Ye=De+Ye),fe&&qe(/((--!?|])>)|<\/(style|title)/i,Ye)){lr(Be,D);continue}if(Q.forceKeepAttr||(lr(Be,D),!Q.keepAttr))continue;if(!Z&&qe(/\/>/i,Ye)){lr(Be,D);continue}H&&Os([B,j,U],Ou=>{Ye=zr(Ye,Ou," ")});const Tu=Se(D.nodeName);if(xu(Tu,Yr,Ye)){if($&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!rt)switch(_.getAttributeType(Tu,Yr)){case"TrustedHTML":{Ye=$.createHTML(Ye);break}case"TrustedScriptURL":{Ye=$.createScriptURL(Ye);break}}try{rt?D.setAttributeNS(rt,Be,Ye):D.setAttribute(Be,Ye),va(D)?Te(D):du(e.removed)}catch{}}}Rt(T.afterSanitizeAttributes,D,null)},w1=function re(D){let G=null;const Q=wu(D);for(Rt(T.beforeSanitizeShadowDOM,D,null);G=Q.nextNode();)Rt(T.uponSanitizeShadowNode,G,null),Su(G),Cu(G),G.content instanceof a&&re(G.content);Rt(T.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(re){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,Q=null,$e=null,Ve=null;if(Wr=!re,Wr&&(re="<!-->"),typeof re!="string"&&!Eu(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Hr("dirty is not a string, aborting")}else throw Hr("toString is not a function");if(!e.isSupported)return re;if(We||Er(D),e.removed=[],typeof re=="string"&&(tt=!1),tt){if(re.nodeName){const Ct=Se(re.nodeName);if(!k[Ct]||C[Ct])throw Hr("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof l)G=Fs("<!---->"),Q=G.ownerDocument.importNode(re,!0),Q.nodeType===qr.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?G=Q:G.appendChild(Q);else{if(!Ke&&!H&&!ge&&re.indexOf("<")===-1)return $&&dt?$.createHTML(re):re;if(G=Fs(re),!G)return Ke?null:dt?S:""}G&&st&&Te(G.firstChild);const Be=wu(tt?re:G);for(;$e=Be.nextNode();)Su($e),Cu($e),$e.content instanceof a&&w1($e.content);if(tt)return re;if(Ke){if(et)for(Ve=R.call(G.ownerDocument);G.firstChild;)Ve.appendChild(G.firstChild);else Ve=G;return(E.shadowroot||E.shadowrootmode)&&(Ve=I.call(s,Ve,!0)),Ve}let rt=ge?G.outerHTML:G.innerHTML;return ge&&k["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&qe(vu,G.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
|
|
41
|
+
`+rt),H&&Os([B,j,U],Ct=>{rt=zr(rt,Ct," ")}),$&&dt?$.createHTML(rt):rt},e.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Er(re),We=!0},e.clearConfig=function(){Bt=null,We=!1},e.isValidAttribute=function(re,D,G){Bt||Er({});const Q=Se(re),$e=Se(D);return xu(Q,$e,G)},e.addHook=function(re,D){typeof D=="function"&&Vr(T[re],D)},e.removeHook=function(re,D){if(D!==void 0){const G=J0(T[re],D);return G===-1?void 0:Z0(T[re],G,1)[0]}return du(T[re])},e.removeHooks=function(re){T[re]=[]},e.removeAllHooks=function(){T=bu()},e}var pa=ku();const m1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span"],g1=["style","src","alt","href","target"],y1=(r,e={})=>{var t,s,n;if(!r)return"";const a=e.allowedTags||m1,i=e.allowedAttributes||g1,l={ALLOWED_TAGS:a,ALLOWED_ATTR:i,ADD_ATTR:["target","rel"]};(t=pa)==null||t.addHook("afterSanitizeAttributes",o=>{o.tagName==="A"&&!o.hasAttribute("target")&&(o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer"))});const d=(s=pa)==null?void 0:s.sanitize(r,l);return(n=pa)==null||n.removeHook("afterSanitizeAttributes"),d},Gr={props:{userReaction:"",likesCount:0,dislikesCount:0,showTitle:!1,onClick:()=>{}}},$u=({userReaction:r=Gr.props.userReaction,likesCount:e=Gr.props.likesCount,dislikesCount:t=Gr.props.dislikesCount,showTitle:s=Gr.props.showTitle,onClick:n=Gr.props.onClick})=>{const a=i=>{n==null||n(i)};return M.jsxs(Re,{gap:"quark",children:[M.jsx(ve,{children:M.jsx(xe,{className:"reaction-button__like",color:r==="like"?"success-dark":"neutral-80",fill:r==="like",image:"thumb_up",onClick:()=>a("like"),size:"lg",testId:"like-button"})}),s?M.jsx(ve,{children:M.jsx(wt,{children:"Útil"})}):M.jsx(M.Fragment,{}),M.jsx(ve,{children:M.jsxs(wt,{children:["(",e,")"]})}),M.jsx(Oe,{horizontal:"quark"}),M.jsx(ve,{children:M.jsx(xe,{className:"reaction-button__deslike",color:r==="dislike"?"danger-dark":"neutral-80",fill:r==="dislike",image:"thumb_down",onClick:()=>a("dislike"),size:"lg",testId:"dislike-button"})}),s?M.jsx(ve,{children:M.jsx(wt,{children:"Não útil"})}):M.jsx(M.Fragment,{}),M.jsx(ve,{children:M.jsxs(wt,{children:["(",t,")"]})})]})},v1=["strong","b","i","em","u","p","br","ul","ol","li","img","figure","a","span","blockquote"],_1=({question:r,onReactionClick:e})=>{const t=y1(r.attributes.faqQuestion.answer,{allowedTags:v1});return M.jsx("div",{className:"faq-question-detail",children:M.jsx(ur,{className:"faq-detail",elevation:2,children:M.jsxs(Re,{flexDirection:"column",children:[M.jsx(kt,{type:"heading-5",className:"color__neutral--90",children:r.attributes.title}),M.jsx(Oe,{vertical:"quark"}),M.jsxs(wt,{className:"color__neutral--70",children:["Última atualização:"," ",Hi(new Date(`${r.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"faq-detail__answer",dangerouslySetInnerHTML:{__html:t}}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx(Ws,{}),M.jsx(Oe,{vertical:"xxs"}),M.jsxs(Re,{alignItems:"flex-end",flexDirection:"row",gap:"xs",justifyContent:"space-between",children:[M.jsx(ve,{children:M.jsx(kt,{type:"heading-6",children:"Esse texto foi útil?"})}),M.jsx(ve,{children:M.jsx($u,{dislikesCount:r.attributes.dislikesCount,likesCount:r.attributes.likesCount,onClick:s=>e==null?void 0:e(r.id,s),showTitle:!0,userReaction:r.attributes.userReaction})})]})]})})})},b1=({title:r="",questions:e=[],showReactions:t=!1,collapse:s=!1,onClick:n=()=>{},onReactionClick:a=()=>{}})=>M.jsxs("div",{className:"faq-questions",children:[r&&M.jsx(kt,{type:"heading-5",className:"color__neutral--90",children:r}),M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"faq-questions-list",children:M.jsx(Re,{flexDirection:"column",gap:"nano",children:e==null?void 0:e.map(i=>M.jsx(ve,{children:M.jsx("div",{className:`faq-card__container ${s?"faq-card__container--collapsed":""}`,onClick:s?()=>n(i):void 0,role:"button",tabIndex:s?0:void 0,children:M.jsx(ur,{className:"faq-card",elevation:2,children:M.jsxs(Re,{alignItems:"center",justifyContent:"space-between",children:[M.jsxs(ve,{flex:"1 1 0",children:[M.jsx(kt,{type:"heading-6",className:"faq-card__title color__neutral--90",children:i.attributes.title}),s?M.jsx(M.Fragment,{}):M.jsxs(M.Fragment,{children:[M.jsx(Oe,{vertical:"xxxs"}),M.jsx("div",{className:"ds-grid",children:M.jsxs("div",{className:"ds-grid__row align-items--center",children:[M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:M.jsxs(wt,{children:["Última atualização:"," ",Hi(new Date(`${i.attributes.faqQuestion.lastUpdate}T00:00:00`),{format:"localized"})]})}),M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:t?M.jsx($u,{dislikesCount:i.attributes.dislikesCount,likesCount:i.attributes.likesCount,onClick:l=>a(i.id,l),userReaction:i.attributes.userReaction}):null}),M.jsx("div",{className:"ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12",children:M.jsxs(Re,{alignItems:"center",gap:"quark",justifyContent:"flex-end",children:[M.jsx(ve,{children:M.jsx("div",{className:"faq-card__link",onClick:()=>n(i),role:"button",tabIndex:0,children:"Ler mais"})}),M.jsx(ve,{children:M.jsx(xe,{color:"primary",image:"chevron_right",size:"lg"})})]})})]})})]})]}),s?M.jsx(ve,{children:M.jsx(xe,{image:"chevron_right",size:"lg"})}):M.jsx(M.Fragment,{})]})})})},i.id))})})]}),k1=({content:r})=>{var d;const e=K.useRef(null),t=y0({autoRotate:!0,autoRotateInterval:8e3,animationDuration:0,items:r,infinite:!0,startIndex:0,swipeEnabled:!0,swipeThreshold:20,swipePercentage:.3,containerRef:e}),s=t.getContainerTransform(),n=[{type:"event",icon:"campaign"},{type:"news",icon:"star_border"},{type:"campaign",icon:"electric_bolt"},{type:"product",icon:"group_add"}],a=o=>{const u=n.find(p=>p.type===o);return(u==null?void 0:u.icon)??"star_border"},i=o=>{const u=new Date(o+"T00:00:00"),p=u.getDate(),f=u.toLocaleDateString("pt-BR",{month:"long"});return`${p} de ${f.charAt(0).toUpperCase()+f.slice(1)}`},l=o=>{var u,p;return M.jsxs(M.Fragment,{children:[M.jsx("div",{children:M.jsxs(Re,{alignItems:"center",flexWrap:"nowrap",gap:"xxxs",justifyContent:"flex-start",children:[M.jsx(ve,{children:M.jsx("div",{className:"news__icon","data-testid":"news-icon-container",children:M.jsx(xe,{color:"neutral-00",fill:!0,image:a(o.type),size:"xxl",testId:"news-icon"})})}),M.jsx(ve,{children:M.jsx(kt,{className:"news__title",type:"heading-6",children:o.title})})]})}),M.jsxs("div",{children:[M.jsx(Oe,{vertical:"nano"}),M.jsx(wt,{className:"news__content",children:o.content}),M.jsx(Oe,{vertical:"nano"}),(u=o.link)!=null&&u.url&&((p=o.link)!=null&&p.label)?M.jsx("a",{className:"news__link",href:o.link.url,rel:"noopener noreferrer",target:"_blank",children:o.link.label}):M.jsx(M.Fragment,{}),M.jsx(Oe,{vertical:"nano"}),M.jsx("div",{className:"news__line-breaker"})]})]})};return M.jsx("div",{className:"news",children:M.jsxs(ur,{backgroundColor:"neutral-20",className:"news__card",elevation:1,children:[M.jsx("div",{className:"news__ellipse"}),M.jsxs(Re,{alignItems:"flex-start",flexDirection:"column",gap:"nano",justifyContent:"space-between",children:[M.jsx(ve,{className:"carousel",children:M.jsx("div",{ref:e,...t.handlers,className:"carousel__wrapper",children:M.jsx("div",{className:"carousel__container","data-testid":"carousel",style:{transform:s},children:t.items.map((o,u)=>M.jsx("div",{className:"carousel__item","data-testid":`carousel-item-${u}`,children:l(o)},`carousel__item-${u}-${t.currentLogicalIndex}`))})})}),M.jsxs(ve,{className:"news__footer",children:[M.jsx(Oe,{vertical:"nano"}),M.jsxs(Re,{alignItems:"center",justifyContent:"space-between",children:[M.jsx(ve,{children:M.jsxs(Re,{alignItems:"center",gap:"nano",justifyContent:"flex-start",children:[M.jsxs(ve,{children:[M.jsx(xe,{color:"neutral-60",fill:!0,image:"calendar_today"}),M.jsx(Oe,{horizontal:"nano"})]}),M.jsx(ve,{children:M.jsx(wt,{className:"news__date",type:"small",children:((d=r[t.currentLogicalIndex])==null?void 0:d.date)&&i(r[t.currentLogicalIndex].date)})})]})}),M.jsx(ve,{children:M.jsx(Re,{className:"news__dots",gap:"nano",children:r.map((o,u)=>M.jsx(ve,{children:M.jsx("button",{"aria-label":`Go to item ${u+1}`,className:`news__dot ${u===t.currentLogicalIndex?"news__dot--active":""}`,"data-testid":`dot-${u}`,onClick:()=>t.goToIndex(u)})},`dot-${t.currentLogicalIndex}-${u}`))})})]})]})]})]})})},$1=({items:r=[],onClick:e,activeItem:t})=>M.jsx("div",{className:"sidebar-menu","data-testid":"sidebar-menu",children:M.jsx("div",{className:"sidebar-menu__list",children:r.map(s=>M.jsx("div",{className:`sidebar-menu__item ${t===s.id?"sidebar-menu__item--active":""}`,"data-testid":`sidebar-item-${s.id}`,onClick:()=>e(s.id),role:"button",tabIndex:0,children:M.jsxs(Re,{alignItems:"center",gap:"xs",children:[M.jsx(ve,{flex:"1",children:M.jsx(kt,{type:"heading-6",testId:`sidebar-item-title-${s.id}`,children:s.attributes.name})}),M.jsx(ve,{children:M.jsx(xe,{color:t===s.id?"primary":"neutral-40","data-testid":`sidebar-icon-${s.id}`,image:"chevron_right",size:"md"})})]})},s.id))})});at.CategoryCards=xc,at.News=k1,at.QuestionDetail=_1,at.Questions=b1,at.SidebarMenuList=$1,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"})});
|