diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..bfe6e44 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,35 @@ +## Link to Jira Ticket + +https://formio.atlassian.net/browse/FIO-XXXX + +## Description + +**What changed?** + +*Use this section to provide a summary description of the changes you've made* + +**Why have you chosen this solution?** + +*Use this section to justify your choices* + +## Breaking Changes / Backwards Compatibility + +*Use this section to describe any potentially breaking changes this PR introduces or any effects this PR might have on backwards compatibility* + +## Dependencies + +*Use this section to list any dependent changes/PRs in other Form.io modules* + +## How has this PR been tested? + +*Use this section to describe how you tested your changes; if you haven't included automated tests, justify your reasoning* + +## Checklist: + +- [ ] I have completed the above PR template +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation (if applicable) +- [ ] My changes generate no new warnings +- [ ] My changes include tests that prove my fix is effective (or that my feature works as intended) +- [ ] New and existing unit/integration tests pass locally with my changes +- [ ] Any dependent changes have corresponding PRs that are listed above \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bc94f01 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,117 @@ +name: Build, Publish + +on: + pull_request: + types: [opened, synchronize] + +env: + NODE_VERSION: 20.x + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code ${{ github.repository }} on ${{ github.ref }} + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git user + run: | + git config --global user.email "pkgbot@form.io" + git config --global user.name "pkgbot" + + - name: Merge target branch into current branch + run: | + git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} + git merge ${{ github.event.pull_request.base.ref }} --no-commit --no-ff + + - name: Check for merge conflicts + run: | + if ! git merge --no-commit --no-ff ${{ github.event.pull_request.base.ref }}; then + echo "Merge conflicts detected." + git merge --abort + exit 1 + else + echo "Merge successful." + fi + + - name: Set up Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + cache: "npm" + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Cache node modules + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Build + uses: borales/actions-yarn@v4 + with: + cmd: build + + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: build-artifact + path: | + dist/ + lib/ + Changelog.md + README.md + package.json + + publish: + needs: build + if: github.event.pull_request.base.ref == 'master' + runs-on: ubuntu-latest + steps: + - name: Download build artifact + uses: actions/download-artifact@v3 + with: + name: build-artifact + path: ./ + + - name: View downloaded build output + run: ls -a + + - name: Add npm token to .npmrc + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc + + - name: Prepare version for publish + id: prep + run: | + # Extract the pull request number and the short SHA of the commit + PR_NUMBER=$(echo ${{ github.event.number }}) + COMMIT_SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7) + + # Extract the current version from package.json + CURRENT_VERSION=$(node -p "require('./package.json').version") + + # If the current version includes '-rc.', remove it and everything after + # This step ensures that we start with a base version like '3.0.0' even if it was a release candidate + BASE_VERSION=$(echo "$CURRENT_VERSION" | cut -d'-' -f1) + + # Construct the new version string + NEW_VERSION="${BASE_VERSION}-dev.${PR_NUMBER}.${COMMIT_SHORT_SHA}" + + # Output the new version for use in subsequent GitHub Actions steps + echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV + + - name: Echo version to publish + run: | + echo "Version to publish: $NEW_VERSION" + + - name: Publish to npm + run: | + npm version $NEW_VERSION + yarn publish --tag dev diff --git a/dist/protected-eval.js b/dist/protected-eval.js index f77d333..92dcf8f 100644 --- a/dist/protected-eval.js +++ b/dist/protected-eval.js @@ -1,2 +1,2 @@ /*! For license information please see protected-eval.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Formio")):"function"==typeof define&&define.amd?define(["Formio"],e):"object"==typeof exports?exports["protected-eval"]=e(require("Formio")):t["protected-eval"]=e(t.Formio)}(self,(__WEBPACK_EXTERNAL_MODULE__7934__=>(()=>{var __webpack_modules__={4434:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;rt)return!1;if((r+=e[n+1])>=t)return!0}return!1}function h(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&u.test(String.fromCharCode(t)):!1!==e&&p(t,r)))}function l(t,n){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==n&&(p(t,r)||p(t,e)))))}var f=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function d(t,e){return new f(t,{beforeExpr:!0,binop:e})}var v={beforeExpr:!0},g={startsExpr:!0},y={};function _(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new f(t,e)}var m={num:new f("num",g),regexp:new f("regexp",g),string:new f("string",g),name:new f("name",g),privateId:new f("privateId",g),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",v),semi:new f(";",v),colon:new f(":",v),dot:new f("."),question:new f("?",v),questionDot:new f("?."),arrow:new f("=>",v),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",v),backQuote:new f("`",g),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:d("||",1),logicalAND:d("&&",2),bitwiseOR:d("|",3),bitwiseXOR:d("^",4),bitwiseAND:d("&",5),equality:d("==/!=/===/!==",6),relational:d("/<=/>=",7),bitShift:d("<>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:d("%",10),star:d("*",10),slash:d("/",10),starstar:new f("**",{beforeExpr:!0}),coalesce:d("??",1),_break:_("break"),_case:_("case",v),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",v),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",v),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",g),_if:_("if"),_return:_("return",v),_switch:_("switch"),_throw:_("throw",v),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",g),_super:_("super",g),_class:_("class",g),_extends:_("extends",v),_export:_("export"),_import:_("import",g),_null:_("null",g),_true:_("true",g),_false:_("false",g),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,b=new RegExp(E.source,"g");function x(t){return 10===t||13===t||8232===t||8233===t}function S(t,e,r){void 0===r&&(r=t.length);for(var n=e;n>10),56320+(1023&t)))}var L=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,j=function(t,e){this.line=t,this.column=e};j.prototype.offset=function(t){return new j(this.line,this.column+t)};var D=function(t,e,r){this.start=e,this.end=r,null!==t.sourceFile&&(this.source=t.sourceFile)};function M(t,e){for(var r=1,n=0;;){var i=S(t,n,e);if(i<0)return new j(r,e-n);++r,n=i}}var B={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},U=!1;function F(t){var e={};for(var r in B)e[r]=t&&C(t,r)?t[r]:B[r];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!U&&"object"==typeof console&&console.warn&&(U=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),k(e.onToken)){var n=e.onToken;e.onToken=function(t){return n.push(t)}}return k(e.onComment)&&(e.onComment=function(t,e){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};t.locations&&(u.loc=new D(this,a,o)),t.ranges&&(u.range=[i,s]),e.push(u)}}(e,e.onComment)),e}var V=256;function G(t,e){return 2|(t?4:0)|(e?8:0)}var W=function(t,e,r){this.options=t=F(t),this.sourceFile=t.sourceFile,this.keywords=A(a[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var n="";!0!==t.allowReserved&&(n=i[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(n+=" await")),this.reservedWords=A(n);var s=(n?n+" ":"")+i.strict;this.reservedWordsStrict=A(s),this.reservedWordsStrictBind=A(s+" "+i.strictBind),this.input=String(e),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};W.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},z.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||e.flags&V)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},z.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,r=t.inClassFieldInit;return(64&e)>0||r||this.options.allowSuperOutsideMethod},z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},z.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,r=t.inClassFieldInit;return(258&e)>0||r},z.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&V)>0},W.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var r=this,n=0;n=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}t+=e[0].length,w.lastIndex=t,t+=w.exec(this.input)[0].length,";"===this.input[t]&&t++}},Y.eat=function(t){return this.type===t&&(this.next(),!0)},Y.isContextual=function(t){return this.type===m.name&&this.value===t&&!this.containsEsc},Y.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Y.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Y.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},Y.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Y.semicolon=function(){this.eat(m.semi)||this.insertSemicolon()||this.unexpected()},Y.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Y.expect=function(t){this.eat(t)||this.unexpected()},Y.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var X=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Y.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,e?"Assigning to rvalue":"Parenthesized pattern")}},Y.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,n=t.doubleProto;if(!e)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},Y.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(h(n,!0)){for(var i=r+1;l(n=this.input.charCodeAt(i),!0);)++i;if(92===n||n>55295&&n<56320)return!0;var s=this.input.slice(r,i);if(!o.test(s))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;w.lastIndex=this.pos;var t,e=w.exec(this.input),r=this.pos+e[0].length;return!(E.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(l(t=this.input.charCodeAt(r+8))||t>55295&&t<56320))},H.parseStatement=function(t,e,r){var n,i=this.type,s=this.startNode();switch(this.isLet(t)&&(i=m._var,n="let"),i){case m._break:case m._continue:return this.parseBreakContinueStatement(s,i.keyword);case m._debugger:return this.parseDebuggerStatement(s);case m._do:return this.parseDoStatement(s);case m._for:return this.parseForStatement(s);case m._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!t);case m._class:return t&&this.unexpected(),this.parseClass(s,!0);case m._if:return this.parseIfStatement(s);case m._return:return this.parseReturnStatement(s);case m._switch:return this.parseSwitchStatement(s);case m._throw:return this.parseThrowStatement(s);case m._try:return this.parseTryStatement(s);case m._const:case m._var:return n=n||this.value,t&&"var"!==n&&this.unexpected(),this.parseVarStatement(s,n);case m._while:return this.parseWhileStatement(s);case m._with:return this.parseWithStatement(s);case m.braceL:return this.parseBlock(!0,s);case m.semi:return this.parseEmptyStatement(s);case m._export:case m._import:if(this.options.ecmaVersion>10&&i===m._import){w.lastIndex=this.pos;var a=w.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(40===u||46===u)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===m._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!t);var c=this.value,p=this.parseExpression();return i===m.name&&"Identifier"===p.type&&this.eat(m.colon)?this.parseLabeledStatement(s,c,p,t):this.parseExpressionStatement(s,p)}},H.parseBreakContinueStatement=function(t,e){var r="break"===e;this.next(),this.eat(m.semi)||this.insertSemicolon()?t.label=null:this.type!==m.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(m.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},H.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(J),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var r=this.isLet();if(this.type===m._var||this.type===m._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===m._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var s=this.isContextual("let"),a=!1,o=new X,u=this.parseExpression(!(e>-1)||"await",o);return this.type===m._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===m._in?e>-1&&this.unexpected(e):t.await=e>-1),s&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,o),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},H.parseFunctionStatement=function(t,e,r){return this.next(),this.parseFunction(t,Q|(r?0:Z),!1,e)},H.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},H.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},H.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(m.braceL),this.labels.push(K),this.enterScope(0);for(var r=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var n=this.type===m._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(m.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},H.parseThrowStatement=function(t){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var $=[];H.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(m.parenR),t},H.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===m._catch){var e=this.startNode();this.next(),this.eat(m.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(m._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},H.parseVarStatement=function(t,e,r){return this.next(),this.parseVar(t,!1,e,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")},H.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(J),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},H.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},H.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},H.parseLabeledStatement=function(t,e,r,n){for(var i=0,s=this.labels;i=0;o--){var u=this.labels[o];if(u.statementStart!==t.start)break;u.statementStart=this.start,u.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")},H.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},H.parseBlock=function(t,e,r){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(m.braceL),t&&this.enterScope(0);this.type!==m.braceR;){var n=this.parseStatement(null);e.body.push(n)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},H.parseFor=function(t,e){return t.init=e,this.expect(m.semi),t.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),t.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},H.parseForIn=function(t,e){var r=this.type===m._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")},H.parseVar=function(t,e,r,n){for(t.declarations=[],t.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(m.eq)?i.init=this.parseMaybeAssign(e):n||"const"!==r||this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"Identifier"===i.id.type||e&&(this.type===m._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(m.comma))break}return t},H.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Q=1,Z=2;function tt(t,e){var r=e.key.name,n=t[r],i="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(i=(e.static?"s":"i")+e.kind),"iget"===n&&"iset"===i||"iset"===n&&"iget"===i||"sget"===n&&"sset"===i||"sset"===n&&"sget"===i?(t[r]="true",!1):!!n||(t[r]=i,!1)}function et(t,e){var r=t.computed,n=t.key;return!r&&("Identifier"===n.type&&n.name===e||"Literal"===n.type&&n.value===e)}H.parseFunction=function(t,e,r,n,i){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===m.star&&e&Z&&this.unexpected(),t.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Q&&(t.id=4&e&&this.type!==m.name?null:this.parseIdent(),!t.id||e&Z||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(G(t.async,t.generator)),e&Q||(t.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Q?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(t){this.expect(m.parenL),t.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(t,e){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(m.braceL);this.type!==m.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&tt(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=r,this.next(),t.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},H.parseClassElement=function(t){if(this.eat(m.semi))return null;var e=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(m.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===m.star?o=!0:n="static"}if(r.static=o,!n&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==m.star||this.canInsertSemicolon()?n="async":s=!0),!n&&(e>=9||!s)&&this.eat(m.star)&&(i=!0),!n&&!s&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=u:n=u)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),e<13||this.type===m.parenL||"method"!==a||i||s){var c=!r.static&&et(r,"constructor"),p=c&&t;c&&"method"!==a&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=c?"constructor":a,this.parseClassMethod(r,i,s,p)}else this.parseClassField(r);return r},H.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword},H.parseClassElementName=function(t){this.type===m.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},H.parseClassMethod=function(t,e,r,n){var i=t.key;"constructor"===t.kind?(e&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):t.static&&et(t,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=t.value=this.parseMethod(e,r,n);return"get"===t.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===t.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},H.parseClassField=function(t){if(et(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&et(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(m.eq)){var e=this.currentThisScope(),r=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=r}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},H.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==m.braceR;){var r=this.parseStatement(null);t.body.push(r)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},H.parseClassId=function(t,e){this.type===m.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},H.parseClassSuper=function(t){t.superClass=this.eat(m._extends)?this.parseExprSubscripts(null,!1):null},H.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},H.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,r=t.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,i=0===n?null:this.privateNameStack[n-1],s=0;s=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},H.parseExport=function(t,e){if(this.next(),this.eat(m.star))return this.parseExportAllDeclaration(t,e);if(this.eat(m._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var r=0,n=t.specifiers;r=13&&this.type===m.string){var t=this.parseLiteral(this.value);return L.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},H.adaptDirectivePrologue=function(t){for(var e=0;e=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var rt=W.prototype;rt.toAssignable=function(t,e,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=t.properties;n=8&&!o&&"async"===u.name&&!this.canInsertSemicolon()&&this.eat(m._function))return this.overrideContext(it.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,e);if(i&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[u],!1,e);if(this.options.ecmaVersion>=8&&"async"===u.name&&this.type===m.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return u=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(m.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[u],!0,e)}return u;case m.regexp:var c=this.value;return(n=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},n;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return(n=this.startNode()).value=this.type===m._null?null:this.type===m._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case m.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(i,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(t.parenthesizedAssign=p),t.parenthesizedBind<0&&(t.parenthesizedBind=p)),h;case m.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(m.bracketR,!0,!0,t),this.finishNode(n,"ArrayExpression");case m.braceL:return this.overrideContext(it.b_expr),this.parseObj(!1,t);case m._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}},at.parseExprAtomDefault=function(){this.unexpected()},at.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===m.parenL&&!t)return this.parseDynamicImport(e);if(this.type===m.dot){var r=this.startNodeAt(e.start,e.loc&&e.loc.start);return r.name="import",e.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(e)}this.unexpected()},at.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(m.parenR)){var e=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},at.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},at.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},at.parseParenExpression=function(){this.expect(m.parenL);var t=this.parseExpression();return this.expect(m.parenR),t},at.shouldParseArrow=function(t){return!this.canInsertSemicolon()},at.parseParenAndDistinguishExpression=function(t,e){var r,n=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,u=this.startLoc,c=[],p=!0,h=!1,l=new X,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;){if(p?p=!1:this.expect(m.comma),s&&this.afterTrailingComma(m.parenR,!0)){h=!0;break}if(this.type===m.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var v=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(m.parenR),t&&this.shouldParseArrow(c)&&this.eat(m.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(n,i,c,e);c.length&&!h||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(l,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((r=this.startNodeAt(o,u)).expressions=c,this.finishNodeAt(r,"SequenceExpression",v,g)):r=c[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(n,i);return y.expression=r,this.finishNode(y,"ParenthesizedExpression")}return r},at.parseParenItem=function(t){return t},at.parseParenArrowList=function(t,e,r,n){return this.parseArrowExpression(this.startNodeAt(t,e),r,!1,n)};var ut=[];at.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===m.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var r=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var n=this.start,i=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,i,!0,!1),this.eat(m.parenL)?t.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ut,this.finishNode(t,"NewExpression")},at.parseTemplateElement=function(t){var e=t.isTagged,r=this.startNode();return this.type===m.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===m.backQuote,this.finishNode(r,"TemplateElement")},at.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(r.quasis=[n];!n.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(m.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(r,"TemplateLiteral")},at.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},at.parseObj=function(t,e){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(m.braceR);){if(n)n=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,i,e),r.properties.push(s)}return this.finishNode(r,t?"ObjectPattern":"ObjectExpression")},at.parseProperty=function(t,e){var r,n,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===m.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(i=this.start,s=this.startLoc),t||(r=this.eat(m.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(a)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,t,r,n,i,s,e,o),this.finishNode(a,"Property")},at.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var r=t.value.start;"get"===t.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},at.parsePropertyValue=function(t,e,r,n,i,s,a,o){(r||n)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===m.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(r,n)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===m.comma||this.type===m.braceR||this.type===m.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),t.kind="init",e?t.value=this.parseMaybeDefault(i,s,this.copyNode(t.key)):this.type===m.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(i,s,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((r||n)&&this.unexpected(),this.parseGetterSetter(t))},at.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(m.bracketR),t.key;t.computed=!1}return t.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},at.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},at.parseMethod=function(t,e,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|G(e,n.generator)|(r?128:0)),this.expect(m.parenL),n.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},at.parseArrowExpression=function(t,e,r,n){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|G(r,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,n),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},at.parseFunctionBody=function(t,e,r,n){var i=e&&this.type!==m.braceL,s=this.strict,a=!1;if(i)t.body=this.parseMaybeAssign(n),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);s&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!s&&!a&&!e&&!r&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!s),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=u}this.exitScope()},at.isSimpleParamList=function(t){for(var e=0,r=t;e-1||i.functions.indexOf(t)>-1||i.var.indexOf(t)>-1,i.lexical.push(t),this.inModule&&1&i.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var s=this.currentScope();n=this.treatFunctionsAsVar?s.lexical.indexOf(t)>-1:s.lexical.indexOf(t)>-1||s.var.indexOf(t)>-1,s.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){n=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+t+"' has already been declared")},pt.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},pt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},pt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var lt=function(t,e,r){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new D(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},ft=W.prototype;function dt(t,e,r,n){return t.type=e,t.end=r,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=r),t}ft.startNode=function(){return new lt(this,this.start,this.startLoc)},ft.startNodeAt=function(t,e){return new lt(this,t,e)},ft.finishNode=function(t,e){return dt.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},ft.finishNodeAt=function(t,e,r,n){return dt.call(this,t,e,r,n)},ft.copyNode=function(t){var e=new lt(this,t.start,this.startLoc);for(var r in t)e[r]=t[r];return e};var vt,gt,yt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_t=yt+" Extended_Pictographic",mt=_t+" EBase EComp EMod EPres ExtPict",Et={9:yt,10:_t,11:_t,12:mt,13:mt,14:mt},bt={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},xt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",St="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Rt=St+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",wt=Rt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ot=wt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Nt=Ot+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Pt={9:St,10:Rt,11:wt,12:Ot,13:Nt,14:Nt+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},Ct={};for(var kt=0,Tt=[9,10,11,12,13,14];kt=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ct[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Lt(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function jt(t){return t>=65&&t<=90||t>=97&&t<=122}It.prototype.reset=function(t,e,r){var n=-1!==r.indexOf("v"),i=-1!==r.indexOf("u");this.start=0|t,this.source=e+"",this.flags=r,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},It.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},It.prototype.at=function(t,e){void 0===e&&(e=!1);var r=this.source,n=r.length;if(t>=n)return-1;var i=r.charCodeAt(t);if(!e&&!this.switchU||i<=55295||i>=57344||t+1>=n)return i;var s=r.charCodeAt(t+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},It.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var r=this.source,n=r.length;if(t>=n)return n;var i,s=r.charCodeAt(t);return!e&&!this.switchU||s<=55295||s>=57344||t+1>=n||(i=r.charCodeAt(t+1))<56320||i>57343?t+1:t+2},It.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},It.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},It.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},It.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},It.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var r=this.pos,n=0,i=t;n-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&n&&i&&this.raise(t.start,"Invalid regular expression flag")},At.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},At.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,r=t.backReferenceNames;e=9&&(r=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!r,!0}return t.pos=e,!1},At.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},At.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},At.regexp_eatBracedQuantifier=function(t,e){var r=t.pos;if(t.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue),t.eat(125)))return-1!==i&&i=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},At.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},At.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},At.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!Lt(e)&&(t.lastIntValue=e,t.advance(),!0)},At.regexp_eatPatternCharacters=function(t){for(var e=t.pos,r=0;-1!==(r=t.current())&&!Lt(r);)t.advance();return t.pos!==e},At.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e||(t.advance(),0))},At.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},At.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},At.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=I(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=I(t.lastIntValue);return!0}return!1},At.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,n=t.current(r);return t.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(n=t.lastIntValue),function(t){return h(t,!0)||36===t||95===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},At.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,r=this.options.ecmaVersion>=11,n=t.current(r);return t.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t,r)&&(n=t.lastIntValue),function(t){return l(t,!0)||36===t||95===t||8204===t||8205===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},At.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},At.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var r=t.lastIntValue;if(t.switchU)return r>t.maxBackReference&&(t.maxBackReference=r),!0;if(r<=t.numCapturingParens)return!0;t.pos=e}return!1},At.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},At.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},At.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},At.regexp_eatZero=function(t){return 48===t.current()&&!Bt(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},At.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},At.regexp_eatControlLetter=function(t){var e=t.current();return!!jt(e)&&(t.lastIntValue=e%32,t.advance(),!0)},At.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var r,n=t.pos,i=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(i&&s>=55296&&s<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(s-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=s}return!0}if(i&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((r=t.lastIntValue)>=0&&r<=1114111))return!0;i&&t.raise("Invalid unicode escape"),t.pos=n}return!1},At.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},At.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1};function Dt(t){return jt(t)||95===t}function Mt(t){return Dt(t)||Bt(t)}function Bt(t){return t>=48&&t<=57}function Ut(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Ft(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Vt(t){return t>=48&&t<=55}At.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var r=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((r=80===e)||112===e)){var n;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return r&&2===n&&t.raise("Invalid property name"),n;t.raise("Invalid property name")}return 0},At.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var r=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,r,n),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,i)}return 0},At.regexp_validateUnicodePropertyNameAndValue=function(t,e,r){C(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(r)||t.raise("Invalid property value")},At.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},At.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Dt(e=t.current());)t.lastStringValue+=I(e),t.advance();return""!==t.lastStringValue},At.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Mt(e=t.current());)t.lastStringValue+=I(e),t.advance();return""!==t.lastStringValue},At.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},At.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),r=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===r&&t.raise("Negated character class may contain strings"),!0}return!1},At.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},At.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var r=t.lastIntValue;!t.switchU||-1!==e&&-1!==r||t.raise("Invalid character class"),-1!==e&&-1!==r&&e>r&&t.raise("Range out of order in character class")}}},At.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var r=t.current();(99===r||Vt(r))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return 93!==n&&(t.lastIntValue=n,t.advance(),!0)},At.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},At.regexp_classSetExpression=function(t){var e,r=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(r=2);for(var n=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(r=1):t.raise("Invalid character in character class");if(n!==t.pos)return r;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(n!==t.pos)return r}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return r;2===e&&(r=2)}},At.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;return-1!==r&&-1!==n&&r>n&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},At.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},At.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var r=t.eat(94),n=this.regexp_classContents(t);if(t.eat(93))return r&&2===n&&t.raise("Negated character class may contain strings"),n;t.pos=e}if(t.eat(92)){var i=this.regexp_eatCharacterClassEscape(t);if(i)return i;t.pos=e}return null},At.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var r=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return r}else t.raise("Invalid escape");t.pos=e}return null},At.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},At.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},At.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t)&&(t.eat(98)?(t.lastIntValue=8,0):(t.pos=e,1)));var r=t.current();return!(r<0||r===t.lookahead()&&function(t){return 33===t||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t}(r)||function(t){return 40===t||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125}(r)||(t.advance(),t.lastIntValue=r,0))},At.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},At.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Bt(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},At.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},At.regexp_eatDecimalDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;Bt(r=t.current());)t.lastIntValue=10*t.lastIntValue+(r-48),t.advance();return t.pos!==e},At.regexp_eatHexDigits=function(t){var e=t.pos,r=0;for(t.lastIntValue=0;Ut(r=t.current());)t.lastIntValue=16*t.lastIntValue+Ft(r),t.advance();return t.pos!==e},At.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var r=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*r+t.lastIntValue:t.lastIntValue=8*e+r}else t.lastIntValue=e;return!0}return!1},At.regexp_eatOctalDigit=function(t){var e=t.current();return Vt(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},At.regexp_eatFixedHexDigits=function(t,e){var r=t.pos;t.lastIntValue=0;for(var n=0;n=this.input.length?this.finishToken(m.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Wt.readToken=function(t){return h(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Wt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888},Wt.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=e;(n=S(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,r),e,this.pos,t,this.curPosition())},Wt.skipLineComment=function(t){for(var e=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos8&&t<14||t>=5760&&R.test(String.fromCharCode(t))))break t;++this.pos}}},Wt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=t,this.value=e,this.updateContext(r)},Wt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},Wt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},Wt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),r=1,n=42===t?m.star:m.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++r,n=m.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(m.assign,r+1):this.finishOp(n,r)},Wt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(m.assign,3):this.finishOp(124===t?m.logicalOR:m.logicalAND,2):61===e?this.finishOp(m.assign,2):this.finishOp(124===t?m.bitwiseOR:m.bitwiseAND,1)},Wt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},Wt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(m.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},Wt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),r=1;return e===t?(r=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(m.assign,r+1):this.finishOp(m.bitShift,r)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(r=2),this.finishOp(m.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Wt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(m.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(61===t?m.eq:m.prefix,1)},Wt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(m.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(m.assign,3):this.finishOp(m.coalesce,2)}return this.finishOp(m.question,1)},Wt.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,h(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(m.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+I(t)+"'")},Wt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+I(t)+"'")},Wt.finishOp=function(t,e){var r=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,r)},Wt.readRegexp=function(){for(var t,e,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(E.test(n)&&this.raise(r,"Unterminated regular expression"),t)t=!1;else{if("["===n)e=!0;else if("]"===n&&e)e=!1;else if("/"===n&&!e)break;t="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new It(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var u=null;try{u=new RegExp(i,a)}catch(t){}return this.finishToken(m.regexp,{pattern:i,flags:a,value:u})},Wt.readInt=function(t,e,r){for(var n=this.options.ecmaVersion>=12&&void 0===e,i=r&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,u=0,c=null==e?1/0:e;u=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=t)break;o=p,a=a*t+h}}return n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=e&&this.pos-s!==e?null:a},Wt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var r=this.readInt(t);return null==r&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=zt(this.input.slice(e,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,r)},Wt.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var r=this.pos-e>=2&&48===this.input.charCodeAt(e);r&&this.strict&&this.raise(e,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!t&&this.options.ecmaVersion>=11&&110===n){var i=zt(this.input.slice(e,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,i)}r&&/[89]/.test(this.input.slice(e,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=(s=this.input.slice(e,this.pos),r?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(m.num,a)},Wt.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Wt.readString=function(t){for(var e="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(r,this.pos),e+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(x(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(r,this.pos++),this.finishToken(m.string,e)};var Yt={};Wt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==Yt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Wt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Yt;this.raise(t,e)},Wt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==m.template&&this.type!==m.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(m.template,t)):36===r?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote));if(92===r)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(x(r)){switch(t+=this.input.slice(e,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Wt.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return x(e)?"":String.fromCharCode(e)}},Wt.readHexChar=function(t){var e=this.pos,r=this.readInt(16,t);return null===r&&this.invalidStringToken(e,"Bad character escape sequence"),r},Wt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos>>0;return e===Number(t)?e:NaN},n.legalArrayIndex=function(t){var e=t>>>0;return String(e)===String(t)&&4294967295!==e?e:NaN},n.stripLocations_=function(t,e,r){for(var i in e?t.start=e:delete t.start,r?t.end=r:delete t.end,t)if("loc"!==i&&t.hasOwnProperty(i)){var s=t[i];s&&"object"==typeof s&&n.stripLocations_(s,e,r)}},n.prototype.REGEXP_MODE=1,n.prototype.REGEXP_THREAD_TIMEOUT=1e3,n.prototype.POLYFILL_TIMEOUT=1e3,n.prototype.getterStep_=!1,n.prototype.setterStep_=!1,n.prototype.appendCodeNumber_=0,n.prototype.taskCodeNumber_=0,n.prototype.parse_=function(t,e){var r={};for(var i in n.PARSE_OPTIONS)r[i]=n.PARSE_OPTIONS[i];return r.sourceFile=e,n.nativeGlobal.acorn.parse(t,r)},n.prototype.appendCode=function(t){var e=this.stateStack[0];if(!e||"Program"!==e.node.type)throw Error("Expecting original AST to start with a Program node");if("string"==typeof t&&(t=this.parse_(t,"appendCode"+this.appendCodeNumber_++)),!t||"Program"!==t.type)throw Error("Expecting new AST to start with a Program node");this.populateScope_(t,e.scope),Array.prototype.push.apply(e.node.body,t.body),e.node.body.variableCache_=null,e.done=!1},n.prototype.step=function(){var t,e=this.stateStack;do{var r=e[e.length-1];if(this.paused_)return!0;if(!r||"Program"===r.node.type&&r.done){if(!this.tasks.length)return!1;if(!(r=this.nextTask_()))return!0}var i=r.node,s=n.currentInterpreter_;n.currentInterpreter_=this;try{var a=this.stepFunctions_[i.type](e,r,i)}catch(t){if(t!==n.STEP_ERROR)throw this.value!==t&&(this.value=void 0),t}finally{n.currentInterpreter_=s}if(a&&e.push(a),this.getterStep_)throw this.value=void 0,Error("Getter not supported in this context");if(this.setterStep_)throw this.value=void 0,Error("Setter not supported in this context");t||i.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!i.end&&t>Date.now());return!0},n.prototype.run=function(){for(;!this.paused_&&this.step(););return this.paused_},n.prototype.getStatus=function(){if(this.paused_)return n.Status.ASYNC;var t=this.stateStack,e=t[t.length-1];if(e&&("Program"!==e.node.type||!e.done))return n.Status.STEP;var r=this.tasks[0];return r?r.time>Date.now()?n.Status.TASK:n.Status.STEP:n.Status.DONE},n.prototype.initGlobal=function(t){this.setProperty(t,"NaN",NaN,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"Infinity",1/0,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"undefined",void 0,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"window",t,n.READONLY_DESCRIPTOR),this.setProperty(t,"this",t,n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"self",t),this.OBJECT_PROTO=new n.Object(null),this.FUNCTION_PROTO=new n.Object(this.OBJECT_PROTO),this.initFunction(t),this.initObject(t),t.proto=this.OBJECT_PROTO,this.setProperty(t,"constructor",this.OBJECT,n.NONENUMERABLE_DESCRIPTOR),this.initArray(t),this.initString(t),this.initBoolean(t),this.initNumber(t),this.initDate(t),this.initRegExp(t),this.initError(t),this.initMath(t),this.initJSON(t);var e,r=this,i=this.createNativeFunction((function(t){throw EvalError("Can't happen")}),!1);i.eval=!0,this.setProperty(t,"eval",i,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"parseInt",this.createNativeFunction(parseInt,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"parseFloat",this.createNativeFunction(parseFloat,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"isNaN",this.createNativeFunction(isNaN,!1),n.NONENUMERABLE_DESCRIPTOR),this.setProperty(t,"isFinite",this.createNativeFunction(isFinite,!1),n.NONENUMERABLE_DESCRIPTOR);for(var s=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],a=0;a0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),r)},e=function(t){var e=Object(s.pseudoToNative(t));if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var r,n=i(e.length),a=new Array(n),o=0;o>> 0;","var start = arguments[1];","var relativeStart = start >> 0;","var k = relativeStart < 0 ?","Math.max(len + relativeStart, 0) :","Math.min(relativeStart, len);","var end = arguments[2];","var relativeEnd = end === undefined ?","len : end >> 0;","var final = relativeEnd < 0 ?","Math.max(len + relativeEnd, 0) :","Math.min(relativeEnd, len);","while (k < final) {","O[k] = value;","k++;","}","return O;","}","});","Object.defineProperty(Array.prototype, 'copyWithin', {","value: function(target, start/*, end*/) {","if (this == null) {","throw new TypeError('this is null or not defined');","}","var O = Object(this);","var len = O.length >>> 0;","var relativeTarget = target >> 0;","var to = relativeTarget < 0 ?","Math.max(len + relativeTarget, 0) :","Math.min(relativeTarget, len);","var relativeStart = start >> 0;","var from = relativeStart < 0 ?","Math.max(len + relativeStart, 0) :","Math.min(relativeStart, len);","var end = arguments[2];","var relativeEnd = end === undefined ? len : end >> 0;","var final = relativeEnd < 0 ?","Math.max(len + relativeEnd, 0) :","Math.min(relativeEnd, len);","var count = Math.min(final - from, len - to);","var direction = 1;","if (from < to && to < (from + count)) {","direction = -1;","from += count - 1;","to += count - 1;","}","while (count > 0) {","if (from in O) {","O[to] = O[from];","} else {","delete O[to];","}","from += direction;","to += direction;","count--;","}","return O;","}","});","Object.defineProperty(Array.prototype, 'find', {","value: function(predicate) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","var o = Object(this);","var len = o.length >>> 0;","if (typeof predicate !== 'function') {","throw new TypeError('predicate must be a function');","}","var thisArg = arguments[1];","var k = 0;","while (k < len) {","var kValue = o[k];","if (predicate.call(thisArg, kValue, k, o)) {","return kValue;","}","k++;","}","return undefined;","},","configurable: true,","writable: true","});","Object.defineProperty(Array.prototype, 'findIndex', {","value: function(predicate) {","if (this == null) {","throw new TypeError('Array.prototype.findIndex called on null or undefined');","}","if (typeof predicate !== 'function') {","throw new TypeError('predicate must be a function');","}","var list = Object(this);","var length = list.length >>> 0;","var thisArg = arguments[1];","var value;","for (var i = 0; i < length; i++) {","value = list[i];","if (predicate.call(thisArg, value, i, list)) {","return i;","}","}","return -1;","},","configurable: true,","writable: true","});","Object.defineProperty(Array.prototype, 'flat', {","value: function() {","if (this == null) {","throw new TypeError('this is null or not defined');","}","var flattend = [];","(function flat(array) {","array.forEach(function(el) {","if (Array.isArray(el)) flat(el);","else flattend.push(el);","});","})(this);","return flattend;","},","configurable: true,","writable: true","});","Object.defineProperty(Array.prototype, 'includes',","{configurable: true, writable: true, value:","function(searchElement, fromIndex) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","var o = Object(this);","var len = o.length >>> 0;","if (len === 0) {","return false;","}","var n = fromIndex | 0;","var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","function sameValueZero(x, y) {","return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));","}","while (k < len) {","if (sameValueZero(o[k], searchElement)) {","return true;","}","k++;","}","return false;","}","});","createArrayMethod_('pop',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_('push',","function(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_('shift',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_('unshift',","function(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_('reverse',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_('indexOf',","function(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_('lastIndexOf',","function(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_('slice',","function(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_('splice',","function(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 2) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","if (arguments.length > 2) {","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","}","o.length = len;","return removed;","}",");","createArrayMethod_('concat',","function(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_('join',","function(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_('every',","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callback.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_('filter',","function(callback, var_args) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (callback.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_('forEach',","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_('map',","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_('reduce',","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_('reduceRight',","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_('some',","function(callback /*, thisArg*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && callback.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_('sort',","function(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_('toLocaleString',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")},n.prototype.initString=function(t){var e,r=this;e=function(t){return t=arguments.length?n.nativeGlobal.String(t):"",r.calledWithNew()?(this.data=t,this):t},this.STRING=this.createNativeFunction(e,!0),this.setProperty(t,"String",this.STRING,n.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.STRING,"fromCharCode",this.createNativeFunction(String.fromCharCode,!1),n.NONENUMERABLE_DESCRIPTOR);for(var i=["charAt","charCodeAt","concat","indexOf","lastIndexOf","slice","substr","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim"],s=0;s= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + ","str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + ","str.substring(i + substr.length);","}","}","return str;","};","})();","")},n.prototype.initBoolean=function(t){var e,r=this;e=function(t){return t=n.nativeGlobal.Boolean(t),r.calledWithNew()?(this.data=t,this):t},this.BOOLEAN=this.createNativeFunction(e,!0),this.setProperty(t,"Boolean",this.BOOLEAN,n.NONENUMERABLE_DESCRIPTOR)},n.prototype.initNumber=function(t){var e,r=this;e=function(t){return t=arguments.length?n.nativeGlobal.Number(t):0,r.calledWithNew()?(this.data=t,this):t},this.NUMBER=this.createNativeFunction(e,!0),this.setProperty(t,"Number",this.NUMBER,n.NONENUMERABLE_DESCRIPTOR);for(var i=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],s=0;s=0;i--){var s=this.stateStack[i],a=s.node;if("CallExpression"===a.type){var o=s.func_;o&&r.length&&(r[r.length-1].datumName=this.getProperty(o,"name"))}!a.loc||r.length&&"CallExpression"!==a.type||r.push({datumLoc:a.loc})}var u=String(this.getProperty(t,"name"))+": "+String(this.getProperty(t,"message"))+"\n";for(i=0;i0;i.pop()){var s=i[i.length-1];switch(s.node.type){case"TryStatement":return void(s.cv={type:t,value:e,label:r});case"CallExpression":case"NewExpression":if(t===n.Completion.RETURN)return void(s.value=e);if(t===n.Completion.BREAK||t===n.Completion.CONTINUE)throw Error("Unsyntactic break/continue not rejected by Acorn");break;case"Program":if(t===n.Completion.RETURN)return;s.done=!0;break t}if(t===n.Completion.BREAK){if(r?s.labels&&-1!==s.labels.indexOf(r):s.isLoop||s.isSwitch)return void i.pop()}else if(t===n.Completion.CONTINUE&&(r?s.labels&&-1!==s.labels.indexOf(r):s.isLoop))return}var a;if(this.isa(e,this.ERROR)){var o={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},u=String(this.getProperty(e,"name")),c=this.getProperty(e,"message").valueOf();(a=(o[u]||Error)(c)).stack=String(this.getProperty(e,"stack"))}else a=String(e);throw this.value=a,a},n.prototype.nodeSummary=function(t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return this.nodeSummary(t.left)+" "+t.operator+" "+this.nodeSummary(t.right);case"CallExpression":return this.nodeSummary(t.callee)+"(...)";case"ConditionalExpression":return this.nodeSummary(t.test)+" ? "+this.nodeSummary(t.consequent)+" : "+this.nodeSummary(t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var e=this.nodeSummary(t.object),r=this.nodeSummary(t.property);return t.computed?e+"["+r+"]":e+"."+r;case"NewExpression":return"new "+this.nodeSummary(t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+this.nodeSummary(t.argument);case"UpdateExpression":var n=this.nodeSummary(t.argument);return t.prefix?t.operator+n:n+t.operator}return"???"},n.prototype.createTask_=function(t,e){var r,i,s,a=this.stateStack[this.stateStack.length-1],o=Array.from(e),u=o.shift(),c=Math.max(Number(o.shift()||0),0),p=this.newNode();if(u instanceof n.Object&&"Function"===u.class)i=u,p.type="CallExpression",r=a.scope;else{try{s=this.parse_(String(u),"taskCode"+this.taskCodeNumber_++)}catch(t){this.throwException(this.SYNTAX_ERROR,"Invalid code: "+t.message)}p.type="EvalProgram_",p.body=s.body;var h=a.node.arguments[0],l=h?h.start:void 0,f=h?h.end:void 0;n.stripLocations_(p,l,f),r=this.globalScope,o.length=0}var d=new n.Task(i,o,r,p,t?c:-1);return this.scheduleTask_(d,c),d.pid},n.prototype.scheduleTask_=function(t,e){t.time=Date.now()+e,this.tasks.push(t),this.tasks.sort((function(t,e){return t.time-e.time}))},n.prototype.deleteTask_=function(t){for(var e=0;eDate.now())return null;this.tasks.shift(),t.interval>=0&&this.scheduleTask_(t,t.interval);var e=new n.State(t.node,t.scope);return t.functionRef&&(e.doneCallee_=2,e.funcThis_=this.globalObject,e.func_=t.functionRef,e.doneArgs_=!0,e.arguments_=t.argsArray),e},n.prototype.createGetter_=function(t,e){if(!this.getterStep_)throw Error("Unexpected call to createGetter");this.getterStep_=!1;var r=Array.isArray(e)?e[0]:e,i=this.newNode();i.type="CallExpression";var s=new n.State(i,this.stateStack[this.stateStack.length-1].scope);return s.doneCallee_=2,s.funcThis_=r,s.func_=t,s.doneArgs_=!0,s.arguments_=[],s},n.prototype.createSetter_=function(t,e,r){if(!this.setterStep_)throw Error("Unexpected call to createSetter");this.setterStep_=!1;var i=Array.isArray(e)?e[0]:this.globalObject,s=this.newNode();s.type="CallExpression";var a=new n.State(s,this.stateStack[this.stateStack.length-1].scope);return a.doneCallee_=2,a.funcThis_=i,a.func_=t,a.doneArgs_=!0,a.arguments_=[r],a},n.prototype.boxThis_=function(t){if(null==t)return this.globalObject;if(!(t instanceof n.Object)){var e=this.createObjectProto(this.getPrototype(t));return e.data=t,e}return t},n.prototype.getGlobalScope=function(){return this.globalScope},n.prototype.getStateStack=function(){return this.stateStack},n.prototype.setStateStack=function(t){this.stateStack=t},n.Value,n.State=function(t,e){this.node=t,this.scope=e},n.Scope=function(t,e,r){this.parentScope=t,this.strict=e,this.object=r},n.Object=function(t){this.getter=Object.create(null),this.setter=Object.create(null),this.properties=Object.create(null),this.proto=t},n.Object.prototype.proto=null,n.Object.prototype.class="Object",n.Object.prototype.data=null,n.Object.prototype.toString=function(){if(!n.currentInterpreter_)return"[object Interpreter.Object]";if(!(this instanceof n.Object))return String(this);if("Array"===this.class){(a=n.toStringCycles_).push(this);try{var t=[],e=this.properties.length,r=!1;e>1024&&(e=1e3,r=!0);for(var i=0;i>=":o>>=u;break;case">>>=":o>>>=u;break;case"&=":o&=u;break;case"^=":o^=u;break;case"|=":o|=u;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}var c=this.setValue(e.leftReference_,o);if(c)return e.doneSetter_=!0,e.setterValue_=o,this.createSetter_(c,e.leftReference_,o);t.pop(),t[t.length-1].value=o},n.prototype.stepBinaryExpression=function(t,e,r){if(!e.doneLeft_)return e.doneLeft_=!0,new n.State(r.left,e.scope);if(!e.doneRight_)return e.doneRight_=!0,e.leftValue_=e.value,new n.State(r.right,e.scope);t.pop();var i,s=e.leftValue_,a=e.value;switch(r.operator){case"==":i=s==a;break;case"!=":i=s!=a;break;case"===":i=s===a;break;case"!==":i=s!==a;break;case">":i=s>a;break;case">=":i=s>=a;break;case"<":i=s>":i=s>>a;break;case">>>":i=s>>>a;break;case"in":a instanceof n.Object||this.throwException(this.TYPE_ERROR,"'in' expects an object, not '"+a+"'"),i=this.hasProperty(a,s);break;case"instanceof":this.isa(a,this.FUNCTION)||this.throwException(this.TYPE_ERROR,"'instanceof' expects an object, not '"+a+"'"),i=s instanceof n.Object&&this.isa(s,a);break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}t[t.length-1].value=i},n.prototype.stepBlockStatement=function(t,e,r){var i=e.n_||0,s=r.body[i];if(s)return e.n_=i+1,new n.State(s,e.scope);t.pop()},n.prototype.stepBreakStatement=function(t,e,r){var i=r.label&&r.label.name;this.unwind(n.Completion.BREAK,void 0,i)},n.prototype.evalCodeNumber_=0,n.prototype.stepCallExpression=function(t,e,r){if(!e.doneCallee_){e.doneCallee_=1;var i=new n.State(r.callee,e.scope);return i.components=!0,i}if(1===e.doneCallee_){e.doneCallee_=2;var s=e.value;if(Array.isArray(s)){if(e.func_=this.getValue(s),s[0]===n.SCOPE_REFERENCE?e.directEval_="eval"===s[1]:e.funcThis_=s[0],s=e.func_,this.getterStep_)return e.doneCallee_=1,this.createGetter_(s,e.value)}else e.func_=s;e.arguments_=[],e.n_=0}if(s=e.func_,!e.doneArgs_){if(0!==e.n_&&e.arguments_.push(e.value),r.arguments[e.n_])return new n.State(r.arguments[e.n_++],e.scope);if("NewExpression"===r.type){if(s instanceof n.Object&&!s.illegalConstructor||this.throwException(this.TYPE_ERROR,this.nodeSummary(r.callee)+" is not a constructor"),s===this.ARRAY)e.funcThis_=this.createArray();else{var a=s.properties.prototype;"object"==typeof a&&null!==a||(a=this.OBJECT_PROTO),e.funcThis_=this.createObjectProto(a)}e.isConstructor=!0}e.doneArgs_=!0}if(e.doneExec_)t.pop(),e.isConstructor&&"object"!=typeof e.value?t[t.length-1].value=e.funcThis_:t[t.length-1].value=e.value;else{e.doneExec_=!0,s instanceof n.Object||this.throwException(this.TYPE_ERROR,this.nodeSummary(r.callee)+" is not a function");var o=s.node;if(o){for(var u=this.createScope(o.body,s.parentScope),c=this.createArray(),p=0;pp?e.arguments_[p]:void 0;this.setProperty(u.object,h,l)}return u.strict||(e.funcThis_=this.boxThis_(e.funcThis_)),this.setProperty(u.object,"this",e.funcThis_,n.READONLY_DESCRIPTOR),e.value=void 0,new n.State(o.body,u)}if(s.eval){var f=e.arguments_[0];if("string"==typeof f){try{var d=this.parse_(String(f),"eval"+this.evalCodeNumber_++)}catch(t){this.throwException(this.SYNTAX_ERROR,"Invalid code: "+t.message)}var v=this.newNode();return v.type="EvalProgram_",v.body=d.body,n.stripLocations_(v,r.start,r.end),(u=e.directEval_?e.scope:this.globalScope).strict?u=this.createScope(d,u):this.populateScope_(d,u),this.value=void 0,new n.State(v,u)}e.value=f}else if(s.nativeFunc)e.scope.strict||(e.funcThis_=this.boxThis_(e.funcThis_)),e.value=s.nativeFunc.apply(e.funcThis_,e.arguments_);else{if(s.asyncFunc){var g=this,y=s.asyncFunc.length-1,_=e.arguments_.concat(new Array(y)).slice(0,y);return _.push((function(t){e.value=t,g.paused_=!1})),this.paused_=!0,e.scope.strict||(e.funcThis_=this.boxThis_(e.funcThis_)),void s.asyncFunc.apply(e.funcThis_,_)}this.throwException(this.TYPE_ERROR,this.nodeSummary(r.callee)+" is not callable")}}},n.prototype.stepConditionalExpression=function(t,e,r){var i=e.mode_||0;if(0===i)return e.mode_=1,new n.State(r.test,e.scope);if(1===i){e.mode_=2;var s=Boolean(e.value);if(s&&r.consequent)return new n.State(r.consequent,e.scope);if(!s&&r.alternate)return new n.State(r.alternate,e.scope);this.value=void 0}t.pop(),"ConditionalExpression"===r.type&&(t[t.length-1].value=e.value)},n.prototype.stepContinueStatement=function(t,e,r){var i=r.label&&r.label.name;this.unwind(n.Completion.CONTINUE,void 0,i)},n.prototype.stepDebuggerStatement=function(t,e,r){t.pop()},n.prototype.stepDoWhileStatement=function(t,e,r){if("DoWhileStatement"===r.type&&void 0===e.test_&&(e.value=!0,e.test_=!0),!e.test_)return e.test_=!0,new n.State(r.test,e.scope);if(e.value){if(r.body)return e.test_=!1,e.isLoop=!0,new n.State(r.body,e.scope)}else t.pop()},n.prototype.stepEmptyStatement=function(t,e,r){t.pop()},n.prototype.stepEvalProgram_=function(t,e,r){var i=e.n_||0,s=r.body[i];if(s)return e.n_=i+1,new n.State(s,e.scope);t.pop(),t[t.length-1].value=this.value},n.prototype.stepExpressionStatement=function(t,e,r){if(!e.done_)return this.value=void 0,e.done_=!0,new n.State(r.expression,e.scope);t.pop(),this.value=e.value},n.prototype.stepForInStatement=function(t,e,r){if(!e.doneInit_&&(e.doneInit_=!0,r.left.declarations&&r.left.declarations[0].init))return e.scope.strict&&this.throwException(this.SYNTAX_ERROR,"for-in loop variable declaration may not have an initializer"),new n.State(r.left,e.scope);if(!e.doneObject_)return e.doneObject_=!0,e.variable_||(e.variable_=e.value),new n.State(r.right,e.scope);if(e.isLoop||(e.isLoop=!0,e.object_=e.value,e.visited_=Object.create(null)),void 0===e.name_)t:for(;;){if(e.object_ instanceof n.Object){for(e.props_||(e.props_=Object.getOwnPropertyNames(e.object_.properties));void 0!==(i=e.props_.shift());)if(Object.prototype.hasOwnProperty.call(e.object_.properties,i)&&!e.visited_[i]&&(e.visited_[i]=!0,Object.prototype.propertyIsEnumerable.call(e.object_.properties,i))){e.name_=i;break t}}else if(null!==e.object_&&void 0!==e.object_)for(e.props_||(e.props_=Object.getOwnPropertyNames(e.object_));;){var i;if(void 0===(i=e.props_.shift()))break;if(e.visited_[i]=!0,Object.prototype.propertyIsEnumerable.call(e.object_,i)){e.name_=i;break t}}if(e.object_=this.getPrototype(e.object_),e.props_=null,null===e.object_)return void t.pop()}if(!e.doneVariable_){e.doneVariable_=!0;var s=r.left;if("VariableDeclaration"!==s.type){e.variable_=null;var a=new n.State(s,e.scope);return a.components=!0,a}e.variable_=[n.SCOPE_REFERENCE,s.declarations[0].id.name]}if(e.variable_||(e.variable_=e.value),!e.doneSetter_){e.doneSetter_=!0;var o=e.name_,u=this.setValue(e.variable_,o);if(u)return this.createSetter_(u,e.variable_,o)}return e.name_=void 0,e.doneVariable_=!1,e.doneSetter_=!1,r.body?new n.State(r.body,e.scope):void 0},n.prototype.stepForStatement=function(t,e,r){switch(e.mode_){default:if(e.mode_=1,r.init)return new n.State(r.init,e.scope);break;case 1:if(e.mode_=2,r.test)return new n.State(r.test,e.scope);break;case 2:if(e.mode_=3,!r.test||e.value)return e.isLoop=!0,new n.State(r.body,e.scope);t.pop();break;case 3:if(e.mode_=1,r.update)return new n.State(r.update,e.scope)}},n.prototype.stepFunctionDeclaration=function(t,e,r){t.pop()},n.prototype.stepFunctionExpression=function(t,e,r){t.pop();var i=(e=t[t.length-1]).scope;r.id&&(i=this.createSpecialScope(i)),e.value=this.createFunction(r,i,e.destinationName),r.id&&this.setProperty(i.object,r.id.name,e.value,n.READONLY_DESCRIPTOR)},n.prototype.stepIdentifier=function(t,e,r){if(t.pop(),e.components)t[t.length-1].value=[n.SCOPE_REFERENCE,r.name];else{var i=this.getValueFromScope(r.name);if(this.getterStep_){var s=i;return this.createGetter_(s,this.globalObject)}t[t.length-1].value=i}},n.prototype.stepIfStatement=n.prototype.stepConditionalExpression,n.prototype.stepLabeledStatement=function(t,e,r){t.pop();var i=e.labels||[];i.push(r.label.name);var s=new n.State(r.body,e.scope);return s.labels=i,s},n.prototype.stepLiteral=function(t,e,r){t.pop();var n=r.value;if(n instanceof RegExp){var i=this.createObjectProto(this.REGEXP_PROTO);this.populateRegExp(i,n),n=i}t[t.length-1].value=n},n.prototype.stepLogicalExpression=function(t,e,r){if("&&"!==r.operator&&"||"!==r.operator)throw SyntaxError("Unknown logical operator: "+r.operator);if(!e.doneLeft_)return e.doneLeft_=!0,new n.State(r.left,e.scope);if(e.doneRight_)t.pop(),t[t.length-1].value=e.value;else{if(!("&&"===r.operator&&!e.value||"||"===r.operator&&e.value))return e.doneRight_=!0,new n.State(r.right,e.scope);t.pop(),t[t.length-1].value=e.value}},n.prototype.stepMemberExpression=function(t,e,r){if(!e.doneObject_)return e.doneObject_=!0,new n.State(r.object,e.scope);var i;if(r.computed){if(!e.doneProperty_)return e.object_=e.value,e.doneProperty_=!0,new n.State(r.property,e.scope);i=e.value}else e.object_=e.value,i=r.property.name;if(t.pop(),e.components)t[t.length-1].value=[e.object_,i];else{var s=this.getProperty(e.object_,i);if(this.getterStep_){var a=s;return this.createGetter_(a,e.object_)}t[t.length-1].value=s}},n.prototype.stepNewExpression=n.prototype.stepCallExpression,n.prototype.stepObjectExpression=function(t,e,r){var i=e.n_||0,s=r.properties[i];if(e.object_){var a=e.destinationName;e.properties_[a]||(e.properties_[a]={}),e.properties_[a][s.kind]=e.value,e.n_=++i,s=r.properties[i]}else e.object_=this.createObjectProto(this.OBJECT_PROTO),e.properties_=Object.create(null);if(s){if("Identifier"===(o=s.key).type)a=o.name;else{if("Literal"!==o.type)throw SyntaxError("Unknown object structure: "+o.type);a=o.value}return e.destinationName=a,new n.State(s.value,e.scope)}for(var o in e.properties_){var u=e.properties_[o];if("get"in u||"set"in u){var c={configurable:!0,enumerable:!0,get:u.get,set:u.set};this.setProperty(e.object_,o,n.VALUE_IN_DESCRIPTOR,c)}else this.setProperty(e.object_,o,u.init)}t.pop(),t[t.length-1].value=e.object_},n.prototype.stepProgram=function(t,e,r){var i=r.body.shift();if(i)return e.done=!1,new n.State(i,e.scope);e.done=!0},n.prototype.stepReturnStatement=function(t,e,r){if(r.argument&&!e.done_)return e.done_=!0,new n.State(r.argument,e.scope);this.unwind(n.Completion.RETURN,e.value,void 0)},n.prototype.stepSequenceExpression=function(t,e,r){var i=e.n_||0,s=r.expressions[i];if(s)return e.n_=i+1,new n.State(s,e.scope);t.pop(),t[t.length-1].value=e.value},n.prototype.stepSwitchStatement=function(t,e,r){if(!e.test_)return e.test_=1,new n.State(r.discriminant,e.scope);for(1===e.test_&&(e.test_=2,e.switchValue_=e.value,e.defaultCase_=-1);;){var i=e.index_||0,s=r.cases[i];if(e.matched_||!s||s.test)if(s||e.matched_||-1===e.defaultCase_){if(!s)return void t.pop();if(!e.matched_&&!e.tested_&&s.test)return e.tested_=!0,new n.State(s.test,e.scope);if(e.matched_||e.value===e.switchValue_){e.matched_=!0;var a=e.n_||0;if(s.consequent[a])return e.isSwitch=!0,e.n_=a+1,new n.State(s.consequent[a],e.scope)}e.tested_=!1,e.n_=0,e.index_=i+1}else e.matched_=!0,e.index_=e.defaultCase_;else e.defaultCase_=i,e.index_=i+1}},n.prototype.stepThisExpression=function(t,e,r){t.pop(),t[t.length-1].value=this.getValueFromScope("this")},n.prototype.stepThrowStatement=function(t,e,r){if(!e.done_)return e.done_=!0,new n.State(r.argument,e.scope);this.throwException(e.value)},n.prototype.stepTryStatement=function(t,e,r){if(!e.doneBlock_)return e.doneBlock_=!0,new n.State(r.block,e.scope);if(e.cv&&e.cv.type===n.Completion.THROW&&!e.doneHandler_&&r.handler){e.doneHandler_=!0;var i=this.createSpecialScope(e.scope);return this.setProperty(i.object,r.handler.param.name,e.cv.value),e.cv=void 0,new n.State(r.handler.body,i)}if(!e.doneFinalizer_&&r.finalizer)return e.doneFinalizer_=!0,new n.State(r.finalizer,e.scope);t.pop(),e.cv&&this.unwind(e.cv.type,e.cv.value,e.cv.label)},n.prototype.stepUnaryExpression=function(t,e,r){if(!e.done_){e.done_=!0;var i=new n.State(r.argument,e.scope);return i.components="delete"===r.operator,i}t.pop();var s=e.value;switch(r.operator){case"-":s=-s;break;case"+":s=+s;break;case"!":s=!s;break;case"~":s=~s;break;case"delete":var a=!0;if(Array.isArray(s)){var o=s[0];o===n.SCOPE_REFERENCE&&(o=e.scope);var u=String(s[1]);try{delete o.properties[u]}catch(t){e.scope.strict?this.throwException(this.TYPE_ERROR,"Cannot delete property '"+u+"' of '"+o+"'"):a=!1}}s=a;break;case"typeof":s=s&&"Function"===s.class?"function":typeof s;break;case"void":s=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}t[t.length-1].value=s},n.prototype.stepUpdateExpression=function(t,e,r){if(!e.doneLeft_){e.doneLeft_=!0;var i=new n.State(r.argument,e.scope);return i.components=!0,i}if(e.leftSide_||(e.leftSide_=e.value),e.doneGetter_&&(e.leftValue_=e.value),!e.doneGetter_){var s=this.getValue(e.leftSide_);if(e.leftValue_=s,this.getterStep_){e.doneGetter_=!0;var a=s;return this.createGetter_(a,e.leftSide_)}}if(e.doneSetter_)return t.pop(),void(t[t.length-1].value=e.setterValue_);var o;if(s=Number(e.leftValue_),"++"===r.operator)o=s+1;else{if("--"!==r.operator)throw SyntaxError("Unknown update expression: "+r.operator);o=s-1}var u=r.prefix?o:s,c=this.setValue(e.leftSide_,o);if(c)return e.doneSetter_=!0,e.setterValue_=u,this.createSetter_(c,e.leftSide_,o);t.pop(),t[t.length-1].value=u},n.prototype.stepVariableDeclaration=function(t,e,r){var i=r.declarations,s=e.n_||0,a=i[s];for(e.init_&&a&&(this.setValueToScope(a.id.name,e.value),e.init_=!1,a=i[++s]);a;){if(a.init)return e.n_=s,e.init_=!0,e.destinationName=a.id.name,new n.State(a.init,e.scope);a=i[++s]}t.pop()},n.prototype.stepWithStatement=function(t,e,r){if(!e.doneObject_)return e.doneObject_=!0,new n.State(r.object,e.scope);t.pop();var i=this.createSpecialScope(e.scope,e.value);return new n.State(r.body,i)},n.prototype.stepWhileStatement=n.prototype.stepDoWhileStatement,n.nativeGlobal.Interpreter=n,n.prototype.step=n.prototype.step,n.prototype.run=n.prototype.run,n.prototype.appendCode=n.prototype.appendCode,n.prototype.createObject=n.prototype.createObject,n.prototype.createObjectProto=n.prototype.createObjectProto,n.prototype.createAsyncFunction=n.prototype.createAsyncFunction,n.prototype.createNativeFunction=n.prototype.createNativeFunction,n.prototype.getProperty=n.prototype.getProperty,n.prototype.setProperty=n.prototype.setProperty,n.prototype.getStatus=n.prototype.getStatus,n.prototype.nativeToPseudo=n.prototype.nativeToPseudo,n.prototype.pseudoToNative=n.prototype.pseudoToNative,n.prototype.getGlobalScope=n.prototype.getGlobalScope,n.prototype.getStateStack=n.prototype.getStateStack,n.prototype.setStateStack=n.prototype.setStateStack,n.VALUE_IN_DESCRIPTOR=n.VALUE_IN_DESCRIPTOR,n.Status=n.Status,t.exports=n},2543:function(t,e,r){var n;t=r.nmd(t),function(){var i,s="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",u=32,c=128,p=1/0,h=9007199254740991,l=NaN,f=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",_="[object Date]",m="[object Error]",E="[object Function]",b="[object GeneratorFunction]",x="[object Map]",S="[object Number]",R="[object Object]",w="[object Promise]",O="[object RegExp]",N="[object Set]",P="[object String]",C="[object Symbol]",k="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",L="[object Float64Array]",j="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",F="[object Uint16Array]",V="[object Uint32Array]",G=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,X=RegExp(Y.source),H=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),nt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",St="\\u2700-\\u27bf",Rt="a-z\\xdf-\\xf6\\xf8-\\xff",wt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ot="\\ufe0e\\ufe0f",Nt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pt="["+bt+"]",Ct="["+Nt+"]",kt="["+xt+"]",Tt="\\d+",At="["+St+"]",It="["+Rt+"]",Lt="[^"+bt+Nt+Tt+St+Rt+wt+"]",jt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+bt+"]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+wt+"]",Ft="\\u200d",Vt="(?:"+It+"|"+Lt+")",Gt="(?:"+Ut+"|"+Lt+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yt="(?:"+kt+"|"+jt+")?",qt="["+Ot+"]?",Xt=qt+Yt+"(?:"+Ft+"(?:"+[Dt,Mt,Bt].join("|")+")"+qt+Yt+")*",Ht="(?:"+[At,Mt,Bt].join("|")+")"+Xt,Jt="(?:"+[Dt+kt+"?",kt,Mt,Bt,Pt].join("|")+")",Kt=RegExp("['’]","g"),$t=RegExp(kt,"g"),Qt=RegExp(jt+"(?="+jt+")|"+Jt+Xt,"g"),Zt=RegExp([Ut+"?"+It+"+"+Wt+"(?="+[Ct,Ut,"$"].join("|")+")",Gt+"+"+zt+"(?="+[Ct,Ut+Vt,"$"].join("|")+")",Ut+"?"+Vt+"+"+Wt,Ut+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Ht].join("|"),"g"),te=RegExp("["+Ft+bt+xt+Ot+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[I]=ie[L]=ie[j]=ie[D]=ie[M]=ie[B]=ie[U]=ie[F]=ie[V]=!0,ie[v]=ie[g]=ie[T]=ie[y]=ie[A]=ie[_]=ie[m]=ie[E]=ie[x]=ie[S]=ie[R]=ie[O]=ie[N]=ie[P]=ie[k]=!1;var se={};se[v]=se[g]=se[T]=se[A]=se[y]=se[_]=se[I]=se[L]=se[j]=se[D]=se[M]=se[x]=se[S]=se[R]=se[O]=se[N]=se[P]=se[C]=se[B]=se[U]=se[F]=se[V]=!0,se[m]=se[E]=se[k]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oe=parseFloat,ue=parseInt,ce="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pe="object"==typeof self&&self&&self.Object===Object&&self,he=ce||pe||Function("return this")(),le=e&&!e.nodeType&&e,fe=le&&t&&!t.nodeType&&t,de=fe&&fe.exports===le,ve=de&&ce.process,ge=function(){try{return fe&&fe.require&&fe.require("util").types||ve&&ve.binding&&ve.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,_e=ge&&ge.isDate,me=ge&&ge.isMap,Ee=ge&&ge.isRegExp,be=ge&&ge.isSet,xe=ge&&ge.isTypedArray;function Se(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Re(t,e,r,n){for(var i=-1,s=null==t?0:t.length;++i-1}function ke(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Ze(t,e){for(var r=t.length;r--&&Ue(e,t[r],0)>-1;);return r}var tr=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),er=ze({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+ae[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function sr(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,n=t.length,i=0,s=[];++r",""":'"',"'":"'"}),fr=function t(e){var r,n=(e=null==e?he:fr.defaults(he.Object(),e,fr.pick(he,re))).Array,it=e.Date,bt=e.Error,xt=e.Function,St=e.Math,Rt=e.Object,wt=e.RegExp,Ot=e.String,Nt=e.TypeError,Pt=n.prototype,Ct=xt.prototype,kt=Rt.prototype,Tt=e["__core-js_shared__"],At=Ct.toString,It=kt.hasOwnProperty,Lt=0,jt=(r=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Dt=kt.toString,Mt=At.call(Rt),Bt=he._,Ut=wt("^"+At.call(It).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=de?e.Buffer:i,Vt=e.Symbol,Gt=e.Uint8Array,Wt=Ft?Ft.allocUnsafe:i,zt=sr(Rt.getPrototypeOf,Rt),Yt=Rt.create,qt=kt.propertyIsEnumerable,Xt=Pt.splice,Ht=Vt?Vt.isConcatSpreadable:i,Jt=Vt?Vt.iterator:i,Qt=Vt?Vt.toStringTag:i,te=function(){try{var t=us(Rt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,ce=it&&it.now!==he.Date.now&&it.now,pe=e.setTimeout!==he.setTimeout&&e.setTimeout,le=St.ceil,fe=St.floor,ve=Rt.getOwnPropertySymbols,ge=Ft?Ft.isBuffer:i,De=e.isFinite,ze=Pt.join,dr=sr(Rt.keys,Rt),vr=St.max,gr=St.min,yr=it.now,_r=e.parseInt,mr=St.random,Er=Pt.reverse,br=us(e,"DataView"),xr=us(e,"Map"),Sr=us(e,"Promise"),Rr=us(e,"Set"),wr=us(e,"WeakMap"),Or=us(Rt,"create"),Nr=wr&&new wr,Pr={},Cr=Ds(br),kr=Ds(xr),Tr=Ds(Sr),Ar=Ds(Rr),Ir=Ds(wr),Lr=Vt?Vt.prototype:i,jr=Lr?Lr.valueOf:i,Dr=Lr?Lr.toString:i;function Mr(t){if(Za(t)&&!Ga(t)&&!(t instanceof Vr)){if(t instanceof Fr)return t;if(It.call(t,"__wrapped__"))return Ms(t)}return new Fr(t)}var Br=function(){function t(){}return function(e){if(!Qa(e))return{};if(Yt)return Yt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Ur(){}function Fr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Vr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Gr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function an(t,e,r,n,s,a){var o,u=1&e,c=2&e,p=4&e;if(r&&(o=s?r(t,n,s,a):r(t)),o!==i)return o;if(!Qa(t))return t;var h=Ga(t);if(h){if(o=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return Oi(t,o)}else{var l=hs(t),f=l==E||l==b;if(qa(t))return Ei(t,u);if(l==R||l==v||f&&!s){if(o=c||f?{}:fs(t),!u)return c?function(t,e){return Ni(t,ps(t),e)}(t,function(t,e){return t&&Ni(e,To(e),t)}(o,t)):function(t,e){return Ni(t,cs(t),e)}(t,en(o,t))}else{if(!se[l])return s?t:{};o=function(t,e,r){var n,i=t.constructor;switch(e){case T:return bi(t);case y:case _:return new i(+t);case A:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case I:case L:case j:case D:case M:case B:case U:case F:case V:return xi(t,r);case x:return new i;case S:case P:return new i(t);case O:return function(t){var e=new t.constructor(t.source,lt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case N:return new i;case C:return n=t,jr?Rt(jr.call(n)):{}}}(t,l,u)}}a||(a=new qr);var d=a.get(t);if(d)return d;a.set(t,o),io(t)?t.forEach((function(n){o.add(an(n,e,r,n,t,a))})):to(t)&&t.forEach((function(n,i){o.set(i,an(n,e,r,i,t,a))}));var g=h?i:(p?c?es:ts:c?To:ko)(t);return we(g||t,(function(n,i){g&&(n=t[i=n]),Qr(o,i,an(n,e,r,i,t,a))})),o}function on(t,e,r){var n=r.length;if(null==t)return!n;for(t=Rt(t);n--;){var s=r[n],a=e[s],o=t[s];if(o===i&&!(s in t)||!a(o))return!1}return!0}function un(t,e,r){if("function"!=typeof t)throw new Nt(s);return Ns((function(){t.apply(i,r)}),e)}function cn(t,e,r,n){var i=-1,s=Ce,a=!0,o=t.length,u=[],c=e.length;if(!o)return u;r&&(e=Te(e,Je(r))),n?(s=ke,a=!1):e.length>=200&&(s=$e,a=!1,e=new Yr(e));t:for(;++i-1},Wr.prototype.set=function(t,e){var r=this.__data__,n=Zr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Gr,map:new(xr||Wr),string:new Gr}},zr.prototype.delete=function(t){var e=as(this,t).delete(t);return this.size-=e?1:0,e},zr.prototype.get=function(t){return as(this,t).get(t)},zr.prototype.has=function(t){return as(this,t).has(t)},zr.prototype.set=function(t,e){var r=as(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Yr.prototype.add=Yr.prototype.push=function(t){return this.__data__.set(t,a),this},Yr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Wr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Wr){var n=r.__data__;if(!xr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new zr(n)}return r.set(t,e),this.size=r.size,this};var pn=ki(_n),hn=ki(mn,!0);function ln(t,e){var r=!0;return pn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function fn(t,e,r){for(var n=-1,s=t.length;++n0&&r(o)?e>1?vn(o,e-1,r,n,i):Ae(i,o):n||(i[i.length]=o)}return i}var gn=Ti(),yn=Ti(!0);function _n(t,e){return t&&gn(t,e,ko)}function mn(t,e){return t&&yn(t,e,ko)}function En(t,e){return Pe(e,(function(e){return Ja(t[e])}))}function bn(t,e){for(var r=0,n=(e=gi(e,t)).length;null!=t&&re}function wn(t,e){return null!=t&&It.call(t,e)}function On(t,e){return null!=t&&e in Rt(t)}function Nn(t,e,r){for(var s=r?ke:Ce,a=t[0].length,o=t.length,u=o,c=n(o),p=1/0,h=[];u--;){var l=t[u];u&&e&&(l=Te(l,Je(e))),p=gr(l.length,p),c[u]=!r&&(e||a>=120&&l.length>=120)?new Yr(u&&l):i}l=t[0];var f=-1,d=c[0];t:for(;++f=o?u:u*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(i)}function Gn(t,e,r){for(var n=-1,i=e.length,s={};++n-1;)o!==t&&Xt.call(o,u,1),Xt.call(t,u,1);return t}function zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==s){var s=i;vs(i)?Xt.call(t,i,1):ui(t,i)}}return t}function Yn(t,e){return t+fe(mr()*(e-t+1))}function qn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=fe(e/2))&&(t+=t)}while(e);return r}function Xn(t,e){return Ps(Ss(t,e,ru),t+"")}function Hn(t){return Hr(Uo(t))}function Jn(t,e){var r=Uo(t);return Ts(r,sn(e,0,r.length))}function Kn(t,e,r,n){if(!Qa(t))return t;for(var s=-1,a=(e=gi(e,t)).length,o=a-1,u=t;null!=u&&++ss?0:s+e),(r=r>s?s:r)<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var a=n(s);++i>>1,a=t[s];null!==a&&!ao(a)&&(r?a<=e:a=200){var c=e?null:qi(t);if(c)return or(c);a=!1,i=$e,u=new Yr}else u=e?[]:o;t:for(;++n=n?t:ti(t,e,r)}var mi=ae||function(t){return he.clearTimeout(t)};function Ei(t,e){if(e)return t.slice();var r=t.length,n=Wt?Wt(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new Gt(e).set(new Gt(t)),e}function xi(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Si(t,e){if(t!==e){var r=t!==i,n=null===t,s=t==t,a=ao(t),o=e!==i,u=null===e,c=e==e,p=ao(e);if(!u&&!p&&!a&&t>e||a&&o&&c&&!u&&!p||n&&o&&c||!r&&c||!s)return 1;if(!n&&!a&&!p&&t1?r[s-1]:i,o=s>2?r[2]:i;for(a=t.length>3&&"function"==typeof a?(s--,a):i,o&&gs(r[0],r[1],o)&&(a=s<3?i:a,s=1),e=Rt(e);++n-1?s[a?e[o]:o]:i}}function Di(t){return Zi((function(e){var r=e.length,n=r,a=Fr.prototype.thru;for(t&&e.reverse();n--;){var o=e[n];if("function"!=typeof o)throw new Nt(s);if(a&&!u&&"wrapper"==ns(o))var u=new Fr([],!0)}for(n=u?n:r;++n1&&E.reverse(),f&&hu))return!1;var p=a.get(t),h=a.get(e);if(p&&h)return p==e&&h==t;var l=-1,f=!0,d=2&r?new Yr:i;for(a.set(t,e),a.set(e,t);++l-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return we(d,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ot):[]}(n),r)))}function ks(t){var e=0,r=0;return function(){var n=yr(),s=16-(n-r);if(r=n,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ts(t,e){var r=-1,n=t.length,s=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,na(t,r)}));function pa(t){var e=Mr(t);return e.__chain__=!0,e}function ha(t,e){return e(t)}var la=Zi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,s=function(e){return nn(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Vr&&vs(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:ha,args:[s],thisArg:i}),new Fr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(s)})),fa=Pi((function(t,e,r){It.call(t,r)?++t[r]:rn(t,r,1)})),da=ji(Vs),va=ji(Gs);function ga(t,e){return(Ga(t)?we:pn)(t,ss(e,3))}function ya(t,e){return(Ga(t)?Oe:hn)(t,ss(e,3))}var _a=Pi((function(t,e,r){It.call(t,r)?t[r].push(e):rn(t,r,[e])})),ma=Xn((function(t,e,r){var i=-1,s="function"==typeof e,a=za(t)?n(t.length):[];return pn(t,(function(t){a[++i]=s?Se(e,t,r):Pn(t,e,r)})),a})),Ea=Pi((function(t,e,r){rn(t,r,e)}));function ba(t,e){return(Ga(t)?Te:Dn)(t,ss(e,3))}var xa=Pi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Sa=Xn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&gs(t,e[0],e[1])?e=[]:r>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Vn(t,vn(e,1),[])})),Ra=ce||function(){return he.Date.now()};function wa(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Hi(t,c,i,i,i,i,e)}function Oa(t,e){var r;if("function"!=typeof e)throw new Nt(s);return t=lo(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var Na=Xn((function(t,e,r){var n=1;if(r.length){var i=ar(r,is(Na));n|=u}return Hi(t,n,e,r,i)})),Pa=Xn((function(t,e,r){var n=3;if(r.length){var i=ar(r,is(Pa));n|=u}return Hi(e,n,t,r,i)}));function Ca(t,e,r){var n,a,o,u,c,p,h=0,l=!1,f=!1,d=!0;if("function"!=typeof t)throw new Nt(s);function v(e){var r=n,s=a;return n=a=i,h=e,u=t.apply(s,r)}function g(t){var r=t-p;return p===i||r>=e||r<0||f&&t-h>=o}function y(){var t=Ra();if(g(t))return _(t);c=Ns(y,function(t){var r=e-(t-p);return f?gr(r,o-(t-h)):r}(t))}function _(t){return c=i,d&&n?v(t):(n=a=i,u)}function m(){var t=Ra(),r=g(t);if(n=arguments,a=this,p=t,r){if(c===i)return function(t){return h=t,c=Ns(y,e),l?v(t):u}(p);if(f)return mi(c),c=Ns(y,e),v(p)}return c===i&&(c=Ns(y,e)),u}return e=vo(e)||0,Qa(r)&&(l=!!r.leading,o=(f="maxWait"in r)?vr(vo(r.maxWait)||0,e):o,d="trailing"in r?!!r.trailing:d),m.cancel=function(){c!==i&&mi(c),h=0,n=p=a=c=i},m.flush=function(){return c===i?u:_(Ra())},m}var ka=Xn((function(t,e){return un(t,1,e)})),Ta=Xn((function(t,e,r){return un(t,vo(e)||0,r)}));function Aa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Nt(s);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=t.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Aa.Cache||zr),r}function Ia(t){if("function"!=typeof t)throw new Nt(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Aa.Cache=zr;var La=yi((function(t,e){var r=(e=1==e.length&&Ga(e[0])?Te(e[0],Je(ss())):Te(vn(e,1),Je(ss()))).length;return Xn((function(n){for(var i=-1,s=gr(n.length,r);++i=e})),Va=Cn(function(){return arguments}())?Cn:function(t){return Za(t)&&It.call(t,"callee")&&!qt.call(t,"callee")},Ga=n.isArray,Wa=ye?Je(ye):function(t){return Za(t)&&Sn(t)==T};function za(t){return null!=t&&$a(t.length)&&!Ja(t)}function Ya(t){return Za(t)&&za(t)}var qa=ge||vu,Xa=_e?Je(_e):function(t){return Za(t)&&Sn(t)==_};function Ha(t){if(!Za(t))return!1;var e=Sn(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ro(t)}function Ja(t){if(!Qa(t))return!1;var e=Sn(t);return e==E||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ka(t){return"number"==typeof t&&t==lo(t)}function $a(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Qa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Za(t){return null!=t&&"object"==typeof t}var to=me?Je(me):function(t){return Za(t)&&hs(t)==x};function eo(t){return"number"==typeof t||Za(t)&&Sn(t)==S}function ro(t){if(!Za(t)||Sn(t)!=R)return!1;var e=zt(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&At.call(r)==Mt}var no=Ee?Je(Ee):function(t){return Za(t)&&Sn(t)==O},io=be?Je(be):function(t){return Za(t)&&hs(t)==N};function so(t){return"string"==typeof t||!Ga(t)&&Za(t)&&Sn(t)==P}function ao(t){return"symbol"==typeof t||Za(t)&&Sn(t)==C}var oo=xe?Je(xe):function(t){return Za(t)&&$a(t.length)&&!!ie[Sn(t)]},uo=Wi(jn),co=Wi((function(t,e){return t<=e}));function po(t){if(!t)return[];if(za(t))return so(t)?pr(t):Oi(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=hs(t);return(e==x?ir:e==N?or:Uo)(t)}function ho(t){return t?(t=vo(t))===p||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function lo(t){var e=ho(t),r=e%1;return e==e?r?e-r:e:0}function fo(t){return t?sn(lo(t),0,f):0}function vo(t){if("number"==typeof t)return t;if(ao(t))return l;if(Qa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=He(t);var r=dt.test(t);return r||gt.test(t)?ue(t.slice(2),r?2:8):ft.test(t)?l:+t}function go(t){return Ni(t,To(t))}function yo(t){return null==t?"":ai(t)}var _o=Ci((function(t,e){if(Es(e)||za(e))Ni(e,ko(e),t);else for(var r in e)It.call(e,r)&&Qr(t,r,e[r])})),mo=Ci((function(t,e){Ni(e,To(e),t)})),Eo=Ci((function(t,e,r,n){Ni(e,To(e),t,n)})),bo=Ci((function(t,e,r,n){Ni(e,ko(e),t,n)})),xo=Zi(nn),So=Xn((function(t,e){t=Rt(t);var r=-1,n=e.length,s=n>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(n=1);++r1),e})),Ni(t,es(t),r),n&&(r=an(r,7,$i));for(var i=e.length;i--;)ui(r,e[i]);return r})),jo=Zi((function(t,e){return null==t?{}:function(t,e){return Gn(t,e,(function(e,r){return Oo(t,r)}))}(t,e)}));function Do(t,e){if(null==t)return{};var r=Te(es(t),(function(t){return[t]}));return e=ss(e),Gn(t,r,(function(t,r){return e(t,r[0])}))}var Mo=Xi(ko),Bo=Xi(To);function Uo(t){return null==t?[]:Ke(t,ko(t))}var Fo=Ii((function(t,e,r){return e=e.toLowerCase(),t+(r?Vo(e):e)}));function Vo(t){return Jo(yo(t).toLowerCase())}function Go(t){return(t=yo(t))&&t.replace(_t,tr).replace($t,"")}var Wo=Ii((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),zo=Ii((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Yo=Ai("toLowerCase"),qo=Ii((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Xo=Ii((function(t,e,r){return t+(r?" ":"")+Jo(e)})),Ho=Ii((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Jo=Ai("toUpperCase");function Ko(t,e,r){return t=yo(t),(e=r?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var $o=Xn((function(t,e){try{return Se(t,i,e)}catch(t){return Ha(t)?t:new bt(t)}})),Qo=Zi((function(t,e){return we(e,(function(e){e=js(e),rn(t,e,Na(t[e],t))})),t}));function Zo(t){return function(){return t}}var tu=Di(),eu=Di(!0);function ru(t){return t}function nu(t){return In("function"==typeof t?t:an(t,1))}var iu=Xn((function(t,e){return function(r){return Pn(r,t,e)}})),su=Xn((function(t,e){return function(r){return Pn(t,r,e)}}));function au(t,e,r){var n=ko(e),i=En(e,n);null!=r||Qa(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=En(e,ko(e)));var s=!(Qa(r)&&"chain"in r&&!r.chain),a=Ja(t);return we(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(s||e){var r=t(this.__wrapped__);return(r.__actions__=Oi(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Ae([this.value()],arguments))})})),t}function ou(){}var uu=Fi(Te),cu=Fi(Ne),pu=Fi(je);function hu(t){return ys(t)?We(js(t)):function(t){return function(e){return bn(e,t)}}(t)}var lu=Gi(),fu=Gi(!0);function du(){return[]}function vu(){return!1}var gu,yu=Ui((function(t,e){return t+e}),0),_u=Yi("ceil"),mu=Ui((function(t,e){return t/e}),1),Eu=Yi("floor"),bu=Ui((function(t,e){return t*e}),1),xu=Yi("round"),Su=Ui((function(t,e){return t-e}),0);return Mr.after=function(t,e){if("function"!=typeof e)throw new Nt(s);return t=lo(t),function(){if(--t<1)return e.apply(this,arguments)}},Mr.ary=wa,Mr.assign=_o,Mr.assignIn=mo,Mr.assignInWith=Eo,Mr.assignWith=bo,Mr.at=xo,Mr.before=Oa,Mr.bind=Na,Mr.bindAll=Qo,Mr.bindKey=Pa,Mr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ga(t)?t:[t]},Mr.chain=pa,Mr.chunk=function(t,e,r){e=(r?gs(t,e,r):e===i)?1:vr(lo(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var a=0,o=0,u=n(le(s/e));as?0:s+r),(n=n===i||n>s?s:lo(n))<0&&(n+=s),n=r>n?0:fo(n);r>>0)?(t=yo(t))&&("string"==typeof e||null!=e&&!no(e))&&!(e=ai(e))&&nr(t)?_i(pr(t),0,r):t.split(e,r):[]},Mr.spread=function(t,e){if("function"!=typeof t)throw new Nt(s);return e=null==e?0:vr(lo(e),0),Xn((function(r){var n=r[e],i=_i(r,0,e);return n&&Ae(i,n),Se(t,this,i)}))},Mr.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Mr.take=function(t,e,r){return t&&t.length?ti(t,0,(e=r||e===i?1:lo(e))<0?0:e):[]},Mr.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?ti(t,(e=n-(e=r||e===i?1:lo(e)))<0?0:e,n):[]},Mr.takeRightWhile=function(t,e){return t&&t.length?pi(t,ss(e,3),!1,!0):[]},Mr.takeWhile=function(t,e){return t&&t.length?pi(t,ss(e,3)):[]},Mr.tap=function(t,e){return e(t),t},Mr.throttle=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new Nt(s);return Qa(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ca(t,e,{leading:n,maxWait:e,trailing:i})},Mr.thru=ha,Mr.toArray=po,Mr.toPairs=Mo,Mr.toPairsIn=Bo,Mr.toPath=function(t){return Ga(t)?Te(t,js):ao(t)?[t]:Oi(Ls(yo(t)))},Mr.toPlainObject=go,Mr.transform=function(t,e,r){var n=Ga(t),i=n||qa(t)||oo(t);if(e=ss(e,4),null==r){var s=t&&t.constructor;r=i?n?new s:[]:Qa(t)&&Ja(s)?Br(zt(t)):{}}return(i?we:_n)(t,(function(t,n,i){return e(r,t,n,i)})),r},Mr.unary=function(t){return wa(t,1)},Mr.union=Zs,Mr.unionBy=ta,Mr.unionWith=ea,Mr.uniq=function(t){return t&&t.length?oi(t):[]},Mr.uniqBy=function(t,e){return t&&t.length?oi(t,ss(e,2)):[]},Mr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?oi(t,i,e):[]},Mr.unset=function(t,e){return null==t||ui(t,e)},Mr.unzip=ra,Mr.unzipWith=na,Mr.update=function(t,e,r){return null==t?t:ci(t,e,vi(r))},Mr.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:ci(t,e,vi(r),n)},Mr.values=Uo,Mr.valuesIn=function(t){return null==t?[]:Ke(t,To(t))},Mr.without=ia,Mr.words=Ko,Mr.wrap=function(t,e){return ja(vi(e),t)},Mr.xor=sa,Mr.xorBy=aa,Mr.xorWith=oa,Mr.zip=ua,Mr.zipObject=function(t,e){return fi(t||[],e||[],Qr)},Mr.zipObjectDeep=function(t,e){return fi(t||[],e||[],Kn)},Mr.zipWith=ca,Mr.entries=Mo,Mr.entriesIn=Bo,Mr.extend=mo,Mr.extendWith=Eo,au(Mr,Mr),Mr.add=yu,Mr.attempt=$o,Mr.camelCase=Fo,Mr.capitalize=Vo,Mr.ceil=_u,Mr.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=vo(r))==r?r:0),e!==i&&(e=(e=vo(e))==e?e:0),sn(vo(t),e,r)},Mr.clone=function(t){return an(t,4)},Mr.cloneDeep=function(t){return an(t,5)},Mr.cloneDeepWith=function(t,e){return an(t,5,e="function"==typeof e?e:i)},Mr.cloneWith=function(t,e){return an(t,4,e="function"==typeof e?e:i)},Mr.conformsTo=function(t,e){return null==e||on(t,e,ko(e))},Mr.deburr=Go,Mr.defaultTo=function(t,e){return null==t||t!=t?e:t},Mr.divide=mu,Mr.endsWith=function(t,e,r){t=yo(t),e=ai(e);var n=t.length,s=r=r===i?n:sn(lo(r),0,n);return(r-=e.length)>=0&&t.slice(r,s)==e},Mr.eq=Ba,Mr.escape=function(t){return(t=yo(t))&&H.test(t)?t.replace(q,er):t},Mr.escapeRegExp=function(t){return(t=yo(t))&&rt.test(t)?t.replace(et,"\\$&"):t},Mr.every=function(t,e,r){var n=Ga(t)?Ne:ln;return r&&gs(t,e,r)&&(e=i),n(t,ss(e,3))},Mr.find=da,Mr.findIndex=Vs,Mr.findKey=function(t,e){return Me(t,ss(e,3),_n)},Mr.findLast=va,Mr.findLastIndex=Gs,Mr.findLastKey=function(t,e){return Me(t,ss(e,3),mn)},Mr.floor=Eu,Mr.forEach=ga,Mr.forEachRight=ya,Mr.forIn=function(t,e){return null==t?t:gn(t,ss(e,3),To)},Mr.forInRight=function(t,e){return null==t?t:yn(t,ss(e,3),To)},Mr.forOwn=function(t,e){return t&&_n(t,ss(e,3))},Mr.forOwnRight=function(t,e){return t&&mn(t,ss(e,3))},Mr.get=wo,Mr.gt=Ua,Mr.gte=Fa,Mr.has=function(t,e){return null!=t&&ls(t,e,wn)},Mr.hasIn=Oo,Mr.head=zs,Mr.identity=ru,Mr.includes=function(t,e,r,n){t=za(t)?t:Uo(t),r=r&&!n?lo(r):0;var i=t.length;return r<0&&(r=vr(i+r,0)),so(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ue(t,e,r)>-1},Mr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:lo(r);return i<0&&(i=vr(n+i,0)),Ue(t,e,i)},Mr.inRange=function(t,e,r){return e=ho(e),r===i?(r=e,e=0):r=ho(r),function(t,e,r){return t>=gr(e,r)&&t=-9007199254740991&&t<=h},Mr.isSet=io,Mr.isString=so,Mr.isSymbol=ao,Mr.isTypedArray=oo,Mr.isUndefined=function(t){return t===i},Mr.isWeakMap=function(t){return Za(t)&&hs(t)==k},Mr.isWeakSet=function(t){return Za(t)&&"[object WeakSet]"==Sn(t)},Mr.join=function(t,e){return null==t?"":ze.call(t,e)},Mr.kebabCase=Wo,Mr.last=Hs,Mr.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var s=n;return r!==i&&(s=(s=lo(r))<0?vr(n+s,0):gr(s,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,s):Be(t,Ve,s,!0)},Mr.lowerCase=zo,Mr.lowerFirst=Yo,Mr.lt=uo,Mr.lte=co,Mr.max=function(t){return t&&t.length?fn(t,ru,Rn):i},Mr.maxBy=function(t,e){return t&&t.length?fn(t,ss(e,2),Rn):i},Mr.mean=function(t){return Ge(t,ru)},Mr.meanBy=function(t,e){return Ge(t,ss(e,2))},Mr.min=function(t){return t&&t.length?fn(t,ru,jn):i},Mr.minBy=function(t,e){return t&&t.length?fn(t,ss(e,2),jn):i},Mr.stubArray=du,Mr.stubFalse=vu,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=bu,Mr.nth=function(t,e){return t&&t.length?Fn(t,lo(e)):i},Mr.noConflict=function(){return he._===this&&(he._=Bt),this},Mr.noop=ou,Mr.now=Ra,Mr.pad=function(t,e,r){t=yo(t);var n=(e=lo(e))?cr(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Vi(fe(i),r)+t+Vi(le(i),r)},Mr.padEnd=function(t,e,r){t=yo(t);var n=(e=lo(e))?cr(t):0;return e&&ne){var n=t;t=e,e=n}if(r||t%1||e%1){var s=mr();return gr(t+s*(e-t+oe("1e-"+((s+"").length-1))),e)}return Yn(t,e)},Mr.reduce=function(t,e,r){var n=Ga(t)?Ie:Ye,i=arguments.length<3;return n(t,ss(e,4),r,i,pn)},Mr.reduceRight=function(t,e,r){var n=Ga(t)?Le:Ye,i=arguments.length<3;return n(t,ss(e,4),r,i,hn)},Mr.repeat=function(t,e,r){return e=(r?gs(t,e,r):e===i)?1:lo(e),qn(yo(t),e)},Mr.replace=function(){var t=arguments,e=yo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Mr.result=function(t,e,r){var n=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++nh)return[];var r=f,n=gr(t,f);e=ss(e),t-=f;for(var i=Xe(n,e);++r=a)return t;var u=r-cr(n);if(u<1)return n;var c=o?_i(o,0,u).join(""):t.slice(0,u);if(s===i)return c+n;if(o&&(u+=c.length-u),no(s)){if(t.slice(u).search(s)){var p,h=c;for(s.global||(s=wt(s.source,yo(lt.exec(s))+"g")),s.lastIndex=0;p=s.exec(h);)var l=p.index;c=c.slice(0,l===i?u:l)}}else if(t.indexOf(ai(s),u)!=u){var f=c.lastIndexOf(s);f>-1&&(c=c.slice(0,f))}return c+n},Mr.unescape=function(t){return(t=yo(t))&&X.test(t)?t.replace(Y,lr):t},Mr.uniqueId=function(t){var e=++Lt;return yo(t)+e},Mr.upperCase=Ho,Mr.upperFirst=Jo,Mr.each=ga,Mr.eachRight=ya,Mr.first=zs,au(Mr,(gu={},_n(Mr,(function(t,e){It.call(Mr.prototype,e)||(gu[e]=t)})),gu),{chain:!1}),Mr.VERSION="4.17.21",we(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Mr[t].placeholder=Mr})),we(["drop","take"],(function(t,e){Vr.prototype[t]=function(r){r=r===i?1:vr(lo(r),0);var n=this.__filtered__&&!e?new Vr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,f),type:t+(n.__dir__<0?"Right":"")}),n},Vr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),we(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Vr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),we(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Vr.prototype[t]=function(){return this[r](1).value()[0]}})),we(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Vr.prototype[t]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(ru)},Vr.prototype.find=function(t){return this.filter(t).head()},Vr.prototype.findLast=function(t){return this.reverse().find(t)},Vr.prototype.invokeMap=Xn((function(t,e){return"function"==typeof t?new Vr(this):this.map((function(r){return Pn(r,t,e)}))})),Vr.prototype.reject=function(t){return this.filter(Ia(ss(t)))},Vr.prototype.slice=function(t,e){t=lo(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Vr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=lo(e))<0?r.dropRight(-e):r.take(e-t)),r)},Vr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Vr.prototype.toArray=function(){return this.take(f)},_n(Vr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),s=Mr[n?"take"+("last"==e?"Right":""):e],a=n||/^find/.test(e);s&&(Mr.prototype[e]=function(){var e=this.__wrapped__,o=n?[1]:arguments,u=e instanceof Vr,c=o[0],p=u||Ga(e),h=function(t){var e=s.apply(Mr,Ae([t],o));return n&&l?e[0]:e};p&&r&&"function"==typeof c&&1!=c.length&&(u=p=!1);var l=this.__chain__,f=!!this.__actions__.length,d=a&&!l,v=u&&!f;if(!a&&p){e=v?e:new Vr(this);var g=t.apply(e,o);return g.__actions__.push({func:ha,args:[h],thisArg:i}),new Fr(g,l)}return d&&v?t.apply(this,o):(g=this.thru(h),d?n?g.value()[0]:g.value():g)})})),we(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Pt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Mr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Ga(i)?i:[],t)}return this[r]((function(r){return e.apply(Ga(r)?r:[],t)}))}})),_n(Vr.prototype,(function(t,e){var r=Mr[e];if(r){var n=r.name+"";It.call(Pr,n)||(Pr[n]=[]),Pr[n].push({name:e,func:r})}})),Pr[Mi(i,2).name]=[{name:"wrapper",func:i}],Vr.prototype.clone=function(){var t=new Vr(this.__wrapped__);return t.__actions__=Oi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Oi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Oi(this.__views__),t},Vr.prototype.reverse=function(){if(this.__filtered__){var t=new Vr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Vr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ga(t),n=e<0,i=r?t.length:0,s=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(t){for(var e,r=this;r instanceof Ur;){var n=Ms(r);n.__index__=0,n.__values__=i,e?s.__wrapped__=n:e=n;var s=n;r=r.__wrapped__}return s.__wrapped__=t,e},Mr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Vr){var e=t;return this.__actions__.length&&(e=new Vr(this)),(e=e.reverse()).__actions__.push({func:ha,args:[Qs],thisArg:i}),new Fr(e,this.__chain__)}return this.thru(Qs)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Jt&&(Mr.prototype[Jt]=function(){return this}),Mr}();he._=fr,(n=function(){return fr}.call(e,r,e,t))===i||(t.exports=n)}.call(this)},8961:(__unused_webpack_module,exports)=>{var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;r{"use strict";var n=r(995),i=r(2065),s=TypeError;t.exports=function(t){if(n(t))return t;throw s(i(t)+" is not a function")}},8493:(t,e,r)=>{"use strict";var n=r(5696),i=String,s=TypeError;t.exports=function(t){if(n(t))return t;throw s(i(t)+" is not an object")}},1555:(t,e,r)=>{"use strict";var n=r(2583),i=r(8904),s=r(8584),a=function(t){return function(e,r,a){var o,u=n(e),c=s(u),p=i(a,c);if(t&&r!=r){for(;c>p;)if((o=u[p++])!=o)return!0}else for(;c>p;p++)if((t||p in u)&&u[p]===r)return t||p||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2710:(t,e,r)=>{"use strict";var n=r(9602),i=n({}.toString),s=n("".slice);t.exports=function(t){return s(i(t),8,-1)}},3886:(t,e,r)=>{"use strict";var n=r(1747),i=r(3969),s=r(9817),a=r(5235);t.exports=function(t,e,r){for(var o=i(e),u=a.f,c=s.f,p=0;p{"use strict";var n=r(3558),i=r(5235),s=r(5042);t.exports=n?function(t,e,r){return i.f(t,e,s(1,r))}:function(t,e,r){return t[e]=r,t}},5042:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7378:(t,e,r)=>{"use strict";var n=r(995),i=r(5235),s=r(9025),a=r(2519);t.exports=function(t,e,r,o){o||(o={});var u=o.enumerable,c=void 0!==o.name?o.name:e;if(n(r)&&s(r,c,o),o.global)u?t[e]=r:a(e,r);else{try{o.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},2519:(t,e,r)=>{"use strict";var n=r(5917),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3558:(t,e,r)=>{"use strict";var n=r(4705);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4557:t=>{"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},6689:(t,e,r)=>{"use strict";var n=r(5917),i=r(5696),s=n.document,a=i(s)&&i(s.createElement);t.exports=function(t){return a?s.createElement(t):{}}},8310:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},18:(t,e,r)=>{"use strict";var n,i,s=r(5917),a=r(8310),o=s.process,u=s.Deno,c=o&&o.versions||u&&u.version,p=c&&c.v8;p&&(i=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},8477:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5196:(t,e,r)=>{"use strict";var n=r(5917),i=r(9817).f,s=r(3845),a=r(7378),o=r(2519),u=r(3886),c=r(9442);t.exports=function(t,e){var r,p,h,l,f,d=t.target,v=t.global,g=t.stat;if(r=v?n:g?n[d]||o(d,{}):(n[d]||{}).prototype)for(p in e){if(l=e[p],h=t.dontCallGetSet?(f=i(r,p))&&f.value:r[p],!c(v?p:d+(g?".":"#")+p,t.forced)&&void 0!==h){if(typeof l==typeof h)continue;u(l,h)}(t.sham||h&&h.sham)&&s(l,"sham",!0),a(r,p,l,t)}}},4705:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},2522:(t,e,r)=>{"use strict";var n=r(4705);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},519:(t,e,r)=>{"use strict";var n=r(2522),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},9544:(t,e,r)=>{"use strict";var n=r(3558),i=r(1747),s=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=i(s,"name"),u=o&&"something"===function(){}.name,c=o&&(!n||n&&a(s,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:c}},9602:(t,e,r)=>{"use strict";var n=r(2522),i=Function.prototype,s=i.call,a=n&&i.bind.bind(s,s);t.exports=n?a:function(t){return function(){return s.apply(t,arguments)}}},9689:(t,e,r)=>{"use strict";var n=r(5917),i=r(995);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},8748:(t,e,r)=>{"use strict";var n=r(1008),i=r(6695);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},5917:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},1747:(t,e,r)=>{"use strict";var n=r(9602),i=r(8547),s=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(i(t),e)}},4443:t=>{"use strict";t.exports={}},3567:(t,e,r)=>{"use strict";var n=r(3558),i=r(4705),s=r(6689);t.exports=!n&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},4801:(t,e,r)=>{"use strict";var n=r(9602),i=r(4705),s=r(2710),a=Object,o=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?o(t,""):a(t)}:a},7836:(t,e,r)=>{"use strict";var n=r(9602),i=r(995),s=r(9423),a=n(Function.toString);i(s.inspectSource)||(s.inspectSource=function(t){return a(t)}),t.exports=s.inspectSource},2763:(t,e,r)=>{"use strict";var n,i,s,a=r(204),o=r(5917),u=r(5696),c=r(3845),p=r(1747),h=r(9423),l=r(105),f=r(4443),d="Object already initialized",v=o.TypeError,g=o.WeakMap;if(a||h.state){var y=h.state||(h.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw v(d);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},s=function(t){return y.has(t)}}else{var _=l("state");f[_]=!0,n=function(t,e){if(p(t,_))throw v(d);return e.facade=t,c(t,_,e),e},i=function(t){return p(t,_)?t[_]:{}},s=function(t){return p(t,_)}}t.exports={set:n,get:i,has:s,enforce:function(t){return s(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return r}}}},995:(t,e,r)=>{"use strict";var n=r(4557),i=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},9442:(t,e,r)=>{"use strict";var n=r(4705),i=r(995),s=/#|\.prototype\./,a=function(t,e){var r=u[o(t)];return r===p||r!==c&&(i(e)?n(e):!!e)},o=a.normalize=function(t){return String(t).replace(s,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",p=a.POLYFILL="P";t.exports=a},6695:t=>{"use strict";t.exports=function(t){return null==t}},5696:(t,e,r)=>{"use strict";var n=r(995),i=r(4557),s=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===s}:function(t){return"object"==typeof t?null!==t:n(t)}},4413:t=>{"use strict";t.exports=!1},9527:(t,e,r)=>{"use strict";var n=r(9689),i=r(995),s=r(1927),a=r(6054),o=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&s(e.prototype,o(t))}},8584:(t,e,r)=>{"use strict";var n=r(8316);t.exports=function(t){return n(t.length)}},9025:(t,e,r)=>{"use strict";var n=r(9602),i=r(4705),s=r(995),a=r(1747),o=r(3558),u=r(9544).CONFIGURABLE,c=r(7836),p=r(2763),h=p.enforce,l=p.get,f=String,d=Object.defineProperty,v=n("".slice),g=n("".replace),y=n([].join),_=o&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),E=t.exports=function(t,e,r){"Symbol("===v(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(o?d(t,"name",{value:e,configurable:!0}):t.name=e),_&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return a(n,"source")||(n.source=y(m,"string"==typeof e?e:"")),t};Function.prototype.toString=E((function(){return s(this)&&l(this).source||c(this)}),"toString")},1807:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},5235:(t,e,r)=>{"use strict";var n=r(3558),i=r(3567),s=r(4944),a=r(8493),o=r(2207),u=TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h="enumerable",l="configurable",f="writable";e.f=n?s?function(t,e,r){if(a(t),e=o(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&f in r&&!r[f]){var n=p(t,e);n&&n[f]&&(t[e]=r.value,r={configurable:l in r?r[l]:n[l],enumerable:h in r?r[h]:n[h],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=o(e),a(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},9817:(t,e,r)=>{"use strict";var n=r(3558),i=r(519),s=r(8579),a=r(5042),o=r(2583),u=r(2207),c=r(1747),p=r(3567),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=o(t),e=u(e),p)try{return h(t,e)}catch(t){}if(c(t,e))return a(!i(s.f,t,e),t[e])}},9374:(t,e,r)=>{"use strict";var n=r(1198),i=r(8477).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},7795:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},1927:(t,e,r)=>{"use strict";var n=r(9602);t.exports=n({}.isPrototypeOf)},1198:(t,e,r)=>{"use strict";var n=r(9602),i=r(1747),s=r(2583),a=r(1555).indexOf,o=r(4443),u=n([].push);t.exports=function(t,e){var r,n=s(t),c=0,p=[];for(r in n)!i(o,r)&&i(n,r)&&u(p,r);for(;e.length>c;)i(n,r=e[c++])&&(~a(p,r)||u(p,r));return p}},8579:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},5748:(t,e,r)=>{"use strict";var n=r(519),i=r(995),s=r(5696),a=TypeError;t.exports=function(t,e){var r,o;if("string"===e&&i(r=t.toString)&&!s(o=n(r,t)))return o;if(i(r=t.valueOf)&&!s(o=n(r,t)))return o;if("string"!==e&&i(r=t.toString)&&!s(o=n(r,t)))return o;throw a("Can't convert object to primitive value")}},3969:(t,e,r)=>{"use strict";var n=r(9689),i=r(9602),s=r(9374),a=r(7795),o=r(8493),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=s.f(o(t)),r=a.f;return r?u(e,r(t)):e}},1688:(t,e,r)=>{"use strict";var n=r(6695),i=TypeError;t.exports=function(t){if(n(t))throw i("Can't call method on "+t);return t}},105:(t,e,r)=>{"use strict";var n=r(7871),i=r(8434),s=n("keys");t.exports=function(t){return s[t]||(s[t]=i(t))}},9423:(t,e,r)=>{"use strict";var n=r(5917),i=r(2519),s="__core-js_shared__",a=n[s]||i(s,{});t.exports=a},7871:(t,e,r)=>{"use strict";var n=r(4413),i=r(9423);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6661:(t,e,r)=>{"use strict";var n=r(18),i=r(4705),s=r(5917).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8904:(t,e,r)=>{"use strict";var n=r(2005),i=Math.max,s=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):s(r,e)}},2583:(t,e,r)=>{"use strict";var n=r(4801),i=r(1688);t.exports=function(t){return n(i(t))}},2005:(t,e,r)=>{"use strict";var n=r(1807);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8316:(t,e,r)=>{"use strict";var n=r(2005),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},8547:(t,e,r)=>{"use strict";var n=r(1688),i=Object;t.exports=function(t){return i(n(t))}},4171:(t,e,r)=>{"use strict";var n=r(519),i=r(5696),s=r(9527),a=r(8748),o=r(5748),u=r(2070),c=TypeError,p=u("toPrimitive");t.exports=function(t,e){if(!i(t)||s(t))return t;var r,u=a(t,p);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!i(r)||s(r))return r;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},2207:(t,e,r)=>{"use strict";var n=r(4171),i=r(9527);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},2065:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},8434:(t,e,r)=>{"use strict";var n=r(9602),i=0,s=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+s,36)}},6054:(t,e,r)=>{"use strict";var n=r(6661);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4944:(t,e,r)=>{"use strict";var n=r(3558),i=r(4705);t.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},204:(t,e,r)=>{"use strict";var n=r(5917),i=r(995),s=n.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},2070:(t,e,r)=>{"use strict";var n=r(5917),i=r(7871),s=r(1747),a=r(8434),o=r(6661),u=r(6054),c=n.Symbol,p=i("wks"),h=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return s(p,t)||(p[t]=o&&s(c,t)?c[t]:h("Symbol."+t)),p[t]}},1227:(t,e,r)=>{"use strict";var n=r(5196),i=r(3558),s=r(5235).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==s,sham:!i},{defineProperty:s})},8749:(t,e,r)=>{"use strict";r(1227),Object.defineProperty(e,"__esModule",{value:!0}),e.lodashOperators=void 0,e.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},7934:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__7934__}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__=__webpack_require__(8509);return __webpack_exports__})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["protected-eval"]=t():e["protected-eval"]=t()}(self,(()=>(()=>{var __webpack_modules__={14434:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{var t;window,t=()=>(()=>{"use strict";var e={282:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var i=n(883);t.addChoice=function(e){var t=e.value,n=e.label,r=e.id,o=e.groupId,s=e.disabled,a=e.elementId,l=e.customProperties,u=e.placeholder,c=e.keyCode;return{type:i.ACTION_TYPES.ADD_CHOICE,value:t,label:n,id:r,groupId:o,disabled:s,elementId:a,customProperties:l,placeholder:u,keyCode:c}},t.filterChoices=function(e){return{type:i.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:i.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:i.ACTION_TYPES.CLEAR_CHOICES}}},783:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var i=n(883);t.addGroup=function(e){var t=e.value,n=e.id,r=e.active,o=e.disabled;return{type:i.ACTION_TYPES.ADD_GROUP,value:t,id:n,active:r,disabled:o}}},464:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var i=n(883);t.addItem=function(e){var t=e.value,n=e.label,r=e.id,o=e.choiceId,s=e.groupId,a=e.customProperties,l=e.placeholder,u=e.keyCode;return{type:i.ACTION_TYPES.ADD_ITEM,value:t,label:n,id:r,choiceId:o,groupId:s,customProperties:a,placeholder:l,keyCode:u}},t.removeItem=function(e,t){return{type:i.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:i.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var i=n(883);t.clearAll=function(){return{type:i.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:i.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:i.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r=0?this._store.getGroupById(r):null;return this._store.dispatch((0,u.highlightItem)(n,!0)),t&&this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:n,value:s,label:l,groupValue:c&&c.value?c.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,n=e.groupId,i=void 0===n?-1:n,r=e.value,o=void 0===r?"":r,s=e.label,a=void 0===s?"":s,l=i>=0?this._store.getGroupById(i):null;return this._store.dispatch((0,u.highlightItem)(t,!1)),this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:t,value:o,label:a,groupValue:l&&l.value?l.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(n){t._removeItem(n),e&&t._triggerChange(n.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow,t.dropdown.height),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(h.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(h.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,n){var i=e?n.value:n;return t.push(i),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,n,i){var r=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===i&&(i=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(i&&this.clearChoices(),"function"==typeof e){var o=e(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return o})).then((function(e){return r.setChoices(e,t,n,i)})).catch((function(e){r.config.silent||console.error(e)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)r._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:n});else{var i=e;r._addChoice({value:i[t],label:i[n],isSelected:!!i.selected,isDisabled:!!i.disabled,placeholder:!!i.placeholder,customProperties:i.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,c.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,n=t.activeGroups,i=t.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var o=i.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));o.length>=1&&(r=this._createChoicesFragment(o,r)),r=this._createGroupsFragment(n,i,r)}else i.length>=1&&(r=this._createChoicesFragment(i,r));if(r.childNodes&&r.childNodes.length>0){var s=this._store.activeItems,a=this._canAddItem(s,this.input.value);if(a.response)this.choiceList.append(r),this._highlightChoice();else{var l=this._getTemplate("notice",a.notice);this.choiceList.append(l)}}else{var u=void 0;l=void 0,this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(u)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,n){var i=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var r=function(e){return t.filter((function(t){return i._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===i.config.renderSelectedChoices||!t.selected)}))}(e);if(r.length>=1){var o=i._getTemplate("choiceGroup",e);n.appendChild(o),i._createChoicesFragment(r,n,!0)}})),n},e.prototype._createChoicesFragment=function(e,t,n){var r=this;void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var o=this.config,s=o.renderSelectedChoices,a=o.searchResultLimit,l=o.renderChoiceLimit,u=this._isSearching?f.sortByScore:this.config.sorter,c=function(e){if("auto"!==s||r._isSelectOneElement||!e.selected){var n=r._getTemplate("choice",e,r.config.itemSelectText);t.appendChild(n)}},d=e;"auto"!==s||this._isSelectOneElement||(d=e.filter((function(e){return!e.selected})));var h=d.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),p=h.placeholderChoices,m=h.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(u);var g=d.length,v=this._isSelectOneElement?i(i([],p,!0),m,!0):m;this._isSearching?g=a:l&&l>0&&!n&&(g=l);for(var y=0;y=i){var s=r?this._searchChoices(e):0;this.passedElement.triggerEvent(h.EVENTS.search,{value:e,resultCount:s})}else o&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var n=!0,i="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,f.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!1,i="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&n&&(n=!1,i="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,i="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,notice:i}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(n," "))return 0;var r=this._store.searchableChoices,o=t,l=Object.assign(this.config.fuseOptions,{keys:i([],this.config.searchFields,!0),includeMatches:!0}),u=new s.default(r,l).search(o);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(u)),u.length},e.prototype._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,n=this._store.activeItems,i=this.input.isFocussed,r=this.dropdown.isActive,o=this.itemList.hasChildren(),s=String.fromCharCode(t),a=/[^\x00-\x1F]/.test(s),l=h.KEY_CODES.BACK_KEY,u=h.KEY_CODES.DELETE_KEY,c=h.KEY_CODES.ENTER_KEY,d=h.KEY_CODES.A_KEY,p=h.KEY_CODES.ESC_KEY,f=h.KEY_CODES.UP_KEY,m=h.KEY_CODES.DOWN_KEY,g=h.KEY_CODES.PAGE_UP_KEY,v=h.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case d:return this._onSelectKey(e,o);case c:return this._onEnterKey({event:e,activeItems:n,hasActiveDropdown:r});case p:return this._onEscapeKey(r);case f:case g:case m:case v:return this._onDirectionKey({event:e,hasActiveDropdown:r});case u:case l:return this._onDeleteKey(e,n,i)}},e.prototype._onKeyUp=function(e){var t=e.target,n=e.keyCode,i=this.input.value,r=this._store.activeItems,o=this._canAddItem(r,i),s=h.KEY_CODES.BACK_KEY,l=h.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&i){var u=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=u.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var c=(n===s||n===l)&&t&&!t.value,d=!this._isTextElement&&this._isSearching,p=this._canSearch&&o.response;c&&d?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var n=e.ctrlKey,i=e.metaKey;(n||i)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e){var t=e.event,n=e.activeItems,i=e.hasActiveDropdown,r=t.target,o=h.KEY_CODES.ENTER_KEY,s=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var a=this.input.value;this._canAddItem(n,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(s&&(this._handleButtonAction(n,r),t.preventDefault()),i){var l=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));l&&(n[0]&&(n[0].keyCode=o),this._handleChoiceAction(n,l)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e){var t=e.event,n=e.hasActiveDropdown,i=t.keyCode,r=t.metaKey,o=h.KEY_CODES.DOWN_KEY,s=h.KEY_CODES.PAGE_UP_KEY,a=h.KEY_CODES.PAGE_DOWN_KEY;if(n||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var l=i===o||i===a?1:-1,u="[data-choice-selectable]",c=void 0;if(r||i===a||i===s)c=l>0?this.dropdown.element.querySelector("".concat(u,":last-of-type")):this.dropdown.element.querySelector(u);else{var d=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=d?(0,f.getAdjacentEl)(d,u,l):this.dropdown.element.querySelector(u)}c&&((0,f.isScrolledIntoView)(c,this.choiceList.element,l)||this.choiceList.scrollToChildElement(c,l),this._highlightChoice(c)),t.preventDefault()}},e.prototype._onDeleteKey=function(e,t,n){var i=e.target;this._isSelectOneElement||i.value||!n||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(y&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild,i="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,n=this,i=e.target;i&&this.containerOuter.element.contains(i)&&((t={})[h.TEXT_TYPE]=function(){i===n.input.element&&n.containerOuter.addFocusState()},t[h.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),i===n.input.element&&n.showDropdown(!0)},t[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,n=this,i=e.target;if(i&&this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[h.TEXT_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),r&&n.unhighlightAll(),n.hideDropdown(!0))},t[h.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(i===n.input.element||i===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},t[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),r&&n.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,c.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var i=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),i?this._highlightPosition=n.indexOf(i):(i=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(i=n[0]),i.classList.add(this.config.classNames.highlightedState),i.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(h.EVENTS.highlightChoice,{el:i}),this.dropdown.isActive&&(this.input.setActiveDescendant(i.id),this.containerOuter.setActiveDescendant(i.id))}},e.prototype._addItem=function(e){var t=e.value,n=e.label,i=void 0===n?null:n,r=e.choiceId,o=void 0===r?-1:r,s=e.groupId,a=void 0===s?-1:s,l=e.customProperties,c=void 0===l?{}:l,d=e.placeholder,p=void 0!==d&&d,f=e.keyCode,m=void 0===f?-1:f,g="string"==typeof t?t.trim():t,v=this._store.items,y=i||g,b=o||-1,_=a>=0?this._store.getGroupById(a):null,w=v?v.length+1:1;this.config.prependValue&&(g=this.config.prependValue+g.toString()),this.config.appendValue&&(g+=this.config.appendValue.toString()),this._store.dispatch((0,u.addItem)({value:g,label:y,id:w,choiceId:b,groupId:a,customProperties:c,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(w),this.passedElement.triggerEvent(h.EVENTS.addItem,{id:w,value:g,label:y,customProperties:c,groupValue:_&&_.value?_.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,n=e.value,i=e.label,r=e.customProperties,o=e.choiceId,s=e.groupId,a=s&&s>=0?this._store.getGroupById(s):null;t&&o&&(this._store.dispatch((0,u.removeItem)(t,o)),this.passedElement.triggerEvent(h.EVENTS.removeItem,{id:t,value:n,label:i,customProperties:r,groupValue:a&&a.value?a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,n=e.label,i=void 0===n?null:n,r=e.isSelected,o=void 0!==r&&r,s=e.isDisabled,l=void 0!==s&&s,u=e.groupId,c=void 0===u?-1:u,d=e.customProperties,h=void 0===d?{}:d,p=e.placeholder,f=void 0!==p&&p,m=e.keyCode,g=void 0===m?-1:m;if(null!=t){var v=this._store.choices,y=i||t,b=v?v.length+1:1,_="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,a.addChoice)({id:b,groupId:c,elementId:_,value:t,label:y,disabled:l,customProperties:h,placeholder:f,keyCode:g})),o&&this._addItem({value:t,label:y,choiceId:b,customProperties:h,placeholder:f,keyCode:g})}},e.prototype._addGroup=function(e){var t=this,n=e.group,i=e.id,r=e.valueKey,o=void 0===r?"value":r,s=e.labelKey,a=void 0===s?"label":s,u=(0,f.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),c=i||Math.floor((new Date).valueOf()*Math.random()),d=!!n.disabled&&n.disabled;u?(this._store.dispatch((0,l.addGroup)({value:n.label,id:c,active:!0,disabled:d})),u.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[o],label:(0,f.isType)("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:c,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,l.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},e.prototype._getTemplate=function(e){for(var t,n=[],r=1;r{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=n(883),o=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,r=e.position;this.element=t,this.classNames=i,this.type=n,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e,t,n){if("number"!=typeof e)return!1;var i=!1;return"auto"===this.position?(i=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches)&&n.getBoundingClientRect().top-t<0&&(i=!1):"top"===this.position&&(i=!0),i},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e,t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,t,this.element)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,i.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){var t=e.element,n=e.type,i=e.classNames;this.element=t,this.classNames=i,this.type=n,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.element.getBoundingClientRect().height},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}();t.default=n},520:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var r=i(n(217));t.Dropdown=r.default;var o=i(n(613));t.Container=o.default;var s=i(n(11));t.Input=s.default;var a=i(n(624));t.List=a.default;var l=i(n(541));t.WrappedInput=l.default;var u=i(n(982));t.WrappedSelect=u.default},11:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=n(883),o=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,r=e.preventPaste;this.element=t,this.type=n,this.classNames=i,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,i.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,n=e.value,i=e.placeholder;t.minWidth="".concat(i.length+1,"ch"),t.width="".concat(n.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==r.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(883),r=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var n=this;if(e){var i=this.element.offsetHeight,r=this.element.scrollTop+i,o=e.offsetHeight,s=e.offsetTop+o,a=t>0?this.element.scrollTop+s-r:e.offsetTop;requestAnimationFrame((function(){n._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,n){var i=(n-e)/t,r=i>1?i:1;this.element.scrollTop=e+r},e.prototype._scrollUp=function(e,t,n){var i=(e-n)/t,r=i>1?i:1;this.element.scrollTop=e-r},e.prototype._animateScroll=function(e,t){var n=this,r=i.SCROLLING_SPEED,o=this.element.scrollTop,s=!1;t>0?(this._scrollDown(o,r,e),oe&&(s=!0)),s&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}();t.default=r},730:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=function(){function e(e){var t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,i.dispatchEvent)(this.element,e,t)},e}();t.default=r},541:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,i=t.classNames,r=t.delimiter,o=e.call(this,{element:n,classNames:i})||this;return o.delimiter=r,o}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(o(n(730)).default);t.default=s},982:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,i=t.classNames,r=t.template,o=e.call(this,{element:n,classNames:i})||this;return o.template=r,o}return r(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,n=document.createDocumentFragment();e.forEach((function(e){return i=e,r=t.template(i),void n.appendChild(r);var i,r})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(o(n(730)).default);t.default=s},883:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var i=n(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:i.sortByAlpha,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add "'.concat((0,i.sanitise)(e),'"')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},359:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},285:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},533:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},187:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(18),t),r(n(978),t),r(n(948),t),r(n(359),t),r(n(285),t),r(n(533),t),r(n(287),t),r(n(132),t),r(n(837),t),r(n(598),t),r(n(369),t),r(n(37),t),r(n(47),t),r(n(923),t),r(n(876),t)},287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},132:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},837:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},37:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},47:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},923:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},876:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},799:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,n){var i=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),"".concat(n,"-").concat(i)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,n){return null!=n&&(0,t.getType)(n)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,n){void 0===n&&(n=1);for(var i="".concat(n>0?"next":"previous","ElementSibling"),r=e[i];r;){if(r.matches(t))return r;r=r[i]}return r},t.isScrolledIntoView=function(e,t,n){return void 0===n&&(n=1),!!e&&(n>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,">").replace(/-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(s.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var a=i;return a.choiceId&&a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var l=i;return e.map((function(e){var t=e;return t.active=l.results.some((function(e){var n=e.item,i=e.score;return n.id===t.id&&(t.score=i,!0)})),t}));case"ACTIVATE_CHOICES":var u=i;return e.map((function(e){var t=e;return t.active=u.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,n){return void 0===e&&(e=t.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:e}},744:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r{Object.defineProperty(t,"__esModule",{value:!0});var n={containerOuter:function(e,t,n,i,r,o,s){var a=e.classNames.containerOuter,l=Object.assign(document.createElement("div"),{className:a});return l.dataset.type=o,t&&(l.dir=t),i&&(l.tabIndex=0),n&&(l.setAttribute("role",r?"combobox":"listbox"),r&&l.setAttribute("aria-autocomplete","list")),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false"),s&&l.setAttribute("aria-labelledby",s),l},containerInner:function(e){var t=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var n=e.classNames,i=n.list,r=n.listSingle,o=n.listItems;return Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(t?r:o)})},placeholder:function(e,t){var n,i=e.allowHTML,r=e.classNames.placeholder;return Object.assign(document.createElement("div"),((n={className:r})[i?"innerHTML":"innerText"]=t,n))},item:function(e,t,n){var i,r,o=e.allowHTML,s=e.classNames,a=s.item,l=s.button,u=s.highlightedState,c=s.itemSelectable,d=s.placeholder,h=t.id,p=t.value,f=t.label,m=t.customProperties,g=t.active,v=t.disabled,y=t.highlighted,b=t.placeholder,_=Object.assign(document.createElement("div"),((i={className:a})[o?"innerHTML":"innerText"]=f,i));if(Object.assign(_.dataset,{item:"",id:h,value:p,customProperties:m}),g&&_.setAttribute("aria-selected","true"),v&&_.setAttribute("aria-disabled","true"),b&&_.classList.add(d),_.classList.add(y?u:c),n){v&&_.classList.remove(c),_.dataset.deletable="";var w="Remove item",k=Object.assign(document.createElement("button"),((r={type:"button",className:l})[o?"innerHTML":"innerText"]=w,r));k.setAttribute("aria-label","".concat(w,": '").concat(p,"'")),k.dataset.button="",_.appendChild(k)}return _},choiceList:function(e,t){var n=e.classNames.list,i=Object.assign(document.createElement("div"),{className:n});return t||i.setAttribute("aria-multiselectable","true"),i.setAttribute("role","listbox"),i},choiceGroup:function(e,t){var n,i=e.allowHTML,r=e.classNames,o=r.group,s=r.groupHeading,a=r.itemDisabled,l=t.id,u=t.value,c=t.disabled,d=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(c?a:"")});return d.setAttribute("role","group"),Object.assign(d.dataset,{group:"",id:l,value:u}),c&&d.setAttribute("aria-disabled","true"),d.appendChild(Object.assign(document.createElement("div"),((n={className:s})[i?"innerHTML":"innerText"]=u,n))),d},choice:function(e,t,n){var i,r=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,l=o.itemSelectable,u=o.selectedState,c=o.itemDisabled,d=o.placeholder,h=t.id,p=t.value,f=t.label,m=t.groupId,g=t.elementId,v=t.disabled,y=t.selected,b=t.placeholder,_=Object.assign(document.createElement("div"),((i={id:g})[r?"innerHTML":"innerText"]=f,i.className="".concat(s," ").concat(a),i));return y&&_.classList.add(u),b&&_.classList.add(d),_.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(_.dataset,{choice:"",id:h,value:p,selectText:n}),v?(_.classList.add(c),_.dataset.choiceDisabled="",_.setAttribute("aria-disabled","true")):(_.classList.add(l),_.dataset.choiceSelectable=""),_},input:function(e,t){var n=e.classNames,i=n.input,r=n.inputCloned,o=Object.assign(document.createElement("input"),{type:"text",name:"search_terms",className:"".concat(i," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",t),o},dropdown:function(e){var t=e.classNames,n=t.list,i=t.listDropdown,r=document.createElement("div");return r.classList.add(n,i),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,n){var i,r=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,l=o.noResults,u=o.noChoices;void 0===n&&(n="");var c=[s,a];return"no-choices"===n?c.push(u):"no-results"===n&&c.push(l),Object.assign(document.createElement("div"),((i={})[r?"innerHTML":"innerText"]=t,i.className=c.join(" "),i))},option:function(e){var t=e.label,n=e.value,i=e.customProperties,r=e.active,o=e.disabled,s=new Option(t,n,!1,r);return i&&(s.dataset.customProperties="".concat(i)),s.disabled=!!o,s}};t.default=n},996:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=i(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}(e,n,l):i(n,l)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var l=a;e.exports=l},221:(e,t,n)=>{function i(e){return Array.isArray?Array.isArray(e):"[object Array]"===u(e)}n.r(t),n.d(t,{default:()=>$});function r(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e}function a(e){return null!=e}function l(e){return!e.trim().length}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const c=e=>`Missing ${e} property in key`,d=e=>`Property 'weight' in key '${e}' must be a positive integer`,h=Object.prototype.hasOwnProperty;class p{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=f(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function f(e){let t=null,n=null,o=null,s=1,a=null;if(r(e)||i(e))o=e,t=m(e),n=g(e);else{if(!h.call(e,"name"))throw new Error(c("name"));const i=e.name;if(o=i,h.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(d(i));t=m(i),n=g(i),a=e.getFn}return{path:t,id:n,weight:s,src:o,getFn:a}}function m(e){return i(e)?e:e.split(".")}function g(e){return i(e)?e.join("."):e}var v={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(a(e))if(t[d]){const h=e[t[d]];if(!a(h))return;if(d===t.length-1&&(r(h)||o(h)||function(e){return!0===e||!1===e||function(e){return s(e)&&null!==e}(e)&&"[object Boolean]"==u(e)}(h)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(h));else if(i(h)){l=!0;for(let e=0,n=h.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,r(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();r(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(a(s))if(i(s)){let e=[];const t=[{nestedArrIndex:-1,value:s}];for(;t.length;){const{nestedArrIndex:n,value:o}=t.pop();if(a(o))if(r(o)&&!l(o)){let t={v:o,i:n,n:this.norm.get(o)};e.push(t)}else i(o)&&o.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[o]=e}else if(r(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};n.$[o]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function _(e,t,{getFn:n=v.getFn,fieldNormWeight:i=v.fieldNormWeight}={}){const r=new b({getFn:n,fieldNormWeight:i});return r.setKeys(e.map(f)),r.setSources(t),r.create(),r}function w(e,{errors:t=0,currentLocation:n=0,expectedLocation:i=0,distance:r=v.distance,ignoreLocation:o=v.ignoreLocation}={}){const s=t/e.length;if(o)return s;const a=Math.abs(i-n);return r?s+a/r:a?1:s}const k=32;function x(e){let t={};for(let n=0,i=e.length;n{this.chunks.push({pattern:e,alphabet:x(e),startIndex:t})},c=this.pattern.length;if(c>k){let e=0;const t=c%k,n=c-t;for(;e{const{isMatch:f,score:m,indices:g}=function(e,t,n,{location:i=v.location,distance:r=v.distance,threshold:o=v.threshold,findAllMatches:s=v.findAllMatches,minMatchCharLength:a=v.minMatchCharLength,includeMatches:l=v.includeMatches,ignoreLocation:u=v.ignoreLocation}={}){if(t.length>k)throw new Error("Pattern length exceeds max of 32.");const c=t.length,d=e.length,h=Math.max(0,Math.min(i,d));let p=o,f=h;const m=a>1||l,g=m?Array(d):[];let y;for(;(y=e.indexOf(t,f))>-1;){let e=w(t,{currentLocation:y,expectedLocation:h,distance:r,ignoreLocation:u});if(p=Math.min(e,p),f=y+c,m){let e=0;for(;e=l;o-=1){let s=o-1,a=n[e.charAt(s)];if(m&&(g[s]=+!!a),y[o]=(y[o+1]<<1|1)&a,i&&(y[o]|=(b[o+1]|b[o])<<1|1|b[o+1]),y[o]&E&&(_=w(t,{errors:i,currentLocation:s,expectedLocation:h,distance:r,ignoreLocation:u}),_<=p)){if(p=_,f=s,f<=h)break;l=Math.max(1,2*h-f)}}if(w(t,{errors:i+1,currentLocation:h,expectedLocation:h,distance:r,ignoreLocation:u})>p)break;b=y}const C={isMatch:f>=0,score:Math.max(.001,_)};if(m){const e=function(e=[],t=v.minMatchCharLength){let n=[],i=-1,r=-1,o=0;for(let s=e.length;o=t&&n.push([i,r]),i=-1)}return e[o-1]&&o-i>=t&&n.push([i,o-1]),n}(g,a);e.length?l&&(C.indices=e):C.isMatch=!1}return C}(e,t,h,{location:i+p,distance:r,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});f&&(d=!0),c+=m,f&&g&&(u=[...u,...g])}));let h={isMatch:d,score:d?c/this.chunks.length:1};return d&&n&&(h.indices=u),h}}class C{constructor(e){this.pattern=e}static isMultiMatch(e){return O(e,this.multiRegex)}static isSingleMatch(e){return O(e,this.singleRegex)}search(){}}function O(e,t){const n=e.match(t);return n?n[1]:null}class S extends C{constructor(e,{location:t=v.location,threshold:n=v.threshold,distance:i=v.distance,includeMatches:r=v.includeMatches,findAllMatches:o=v.findAllMatches,minMatchCharLength:s=v.minMatchCharLength,isCaseSensitive:a=v.isCaseSensitive,ignoreLocation:l=v.ignoreLocation}={}){super(e),this._bitapSearch=new E(e,{location:t,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class P extends C{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const i=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+r,i.push([t,n-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const A=[class extends C{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},P,class extends C{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends C{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},S],M=A.length,T=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,R=new Set([S.type,P.type]);const D=[];function j(e,t){for(let n=0,i=D.length;n!(!e[I]&&!e.$or),V=e=>({[I]:Object.keys(e).map((t=>({[t]:e[t]})))});function F(e,t,{auto:n=!0}={}){const o=e=>{let a=Object.keys(e);const l=(e=>!!e[L])(e);if(!l&&a.length>1&&!N(e))return o(V(e));if((e=>!i(e)&&s(e)&&!N(e))(e)){const i=l?e[L]:a[0],o=l?e.$val:e[i];if(!r(o))throw new Error((e=>`Invalid value for key ${e}`)(i));const s={keyId:g(i),pattern:o};return n&&(s.searcher=j(o,t)),s}let u={children:[],operator:a[0]};return a.forEach((t=>{const n=e[t];i(n)&&n.forEach((e=>{u.children.push(o(e))}))})),u};return N(e)||(e=V(e)),o(e)}function U(e,t){const n=e.matches;t.matches=[],a(n)&&n.forEach((e=>{if(!a(e.indices)||!e.indices.length)return;const{indices:n,value:i}=e;let r={indices:n,value:i};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function B(e,t){t.score=e.score}class ${constructor(e,t={},n){this.options={...v,...t},this.options.useExtendedSearch,this._keyStore=new p(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof b))throw new Error("Incorrect 'index' type");this._myIndex=t||_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){a(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,i=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:i,score:r})=>{const o=e?e.weight:null;n*=Math.pow(0===r&&o?Number.EPSILON:r,(o||1)*(t?1:i))})),e.score=n}))}(u,{ignoreFieldNorm:l}),s&&u.sort(a),o(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:n=v.includeMatches,includeScore:i=v.includeScore}={}){const r=[];return n&&r.push(U),i&&r.push(B),e.map((e=>{const{idx:n}=e,i={item:t[n],refIndex:n};return r.length&&r.forEach((t=>{t(e,i)})),i}))}(u,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const t=j(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach((({v:e,i:n,n:r})=>{if(!a(e))return;const{isMatch:o,score:s,indices:l}=t.searchIn(e);o&&i.push({item:e,idx:n,matches:[{score:s,value:e,norm:r,indices:l}]})})),i}_searchLogical(e){const t=F(e,this.options),n=(e,t,i)=>{if(!e.children){const{keyId:n,searcher:r}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:r});return o&&o.length?[{idx:i,item:t,matches:o}]:[]}const r=[];for(let o=0,s=e.children.length;o{if(a(e)){let s=n(t,e,i);s.length&&(r[i]||(r[i]={idx:i,item:e,matches:[]},o.push(r[i])),s.forEach((({matches:e})=>{r[i].matches.push(...e)})))}})),o}_searchObjectList(e){const t=j(e,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach((({$:e,i})=>{if(!a(e))return;let o=[];n.forEach(((n,i)=>{o.push(...this._findMatches({key:n,value:e[i],searcher:t}))})),o.length&&r.push({idx:i,item:e,matches:o})})),r}_findMatches({key:e,value:t,searcher:n}){if(!a(t))return[];let r=[];if(i(t))t.forEach((({v:t,i,n:o})=>{if(!a(t))return;const{isMatch:s,score:l,indices:u}=n.searchIn(t);s&&r.push({score:l,key:e,value:t,idx:i,norm:o,indices:u})}));else{const{v:i,n:o}=t,{isMatch:s,score:a,indices:l}=n.searchIn(i);s&&r.push({score:a,key:e,value:i,norm:o,indices:l})}return r}}$.version="6.6.2",$.createIndex=_,$.parseIndex=function(e,{getFn:t=v.getFn,fieldNormWeight:n=v.fieldNormWeight}={}){const{keys:i,records:r}=e,o=new b({getFn:t,fieldNormWeight:n});return o.setKeys(i),o.setIndexRecords(r),o},$.config=v,$.parseQuery=F,function(...e){D.push(...e)}(class{constructor(e,{isCaseSensitive:t=v.isCaseSensitive,includeMatches:n=v.includeMatches,minMatchCharLength:i=v.minMatchCharLength,ignoreLocation:r=v.ignoreLocation,findAllMatches:o=v.findAllMatches,location:s=v.location,threshold:a=v.threshold,distance:l=v.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:r,location:s,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(T).filter((e=>e&&!!e.trim())),i=[];for(let e=0,r=n.length;e{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;tc,applyMiddleware:()=>v,bindActionCreators:()=>m,combineReducers:()=>p,compose:()=>g,createStore:()=>d,legacy_createStore:()=>h});var l="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function d(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var r=e,o=t,s=[],u=s,h=!1;function p(){u===s&&(u=s.slice())}function f(){if(h)throw new Error(a(3));return o}function m(e){if("function"!=typeof e)throw new Error(a(4));if(h)throw new Error(a(5));var t=!0;return p(),u.push(e),function(){if(t){if(h)throw new Error(a(6));t=!1,p();var n=u.indexOf(e);u.splice(n,1),s=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(h)throw new Error(a(9));try{h=!0,o=r(o,e)}finally{h=!1}for(var t=s=u,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{default:()=>r});var e=n(373),t=n.n(e);n(187),n(883),n(789),n(686);const r=t()})(),i.default})(),e.exports=t()},303:function(e,t){"use strict";var n=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.Components=void 0;class i{static component(e,t="components"){return i[t][e]?i[t][e]:i[t].component}static create(e,t,n){return new(i.component(e.type))(e,t,n)}static addDecorator(e,t){i.decorators[t]=e}static addComponent(e,t){if(e)return"function"!=typeof e?i.importComponent(e):(i.components[t]=e,e)}static importComponent(e={}){const t=i.component(e.extends,"decorators");let r=class{};r=n([t(e)],r),i.addComponent(r,e.type)}static setComponents(e){Object.assign(i.components,e)}}t.Components=i,i.components={},i.decorators={},t.render=function(e,t,n={},r={}){return i.create(t,n,r).attach(e)}},18641:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Template=void 0;const s=o(n(21823));class a{static addTemplates(e){var t=a.framework;a.templates=s.merge(a.templates,e),a.framework=t}static addTemplate(e,t){a.templates[e]=s.merge(a.current,t)}static extendTemplate(e,t){a.templates[e]=s.merge(a.templates[e],t)}static setTemplate(e,t){a.addTemplate(e,t)}static set current(e){const t=a.current;a._current=s.merge(t,e)}static get current(){return a._current}static set framework(e){a.templates.hasOwnProperty(e)&&(a._framework=e,a._current=a.templates[e])}static get framework(){return a._framework}static render(e,t,n="html",i=null){return"function"==typeof e?e(t):this.current[e]&&this.current[e][n]?this.current[e][n](t):i?i(t):"Unknown template"}}t.Template=a,a.templates=[],a._current={},a._framework="bootstrap"},50497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayComponent=void 0;const i=n(303),r=n(53127),o=n(92833);function s(e={}){return e.type||(e.type="array"),e.model||(e.model=r.NestedArrayModel),function(t){return class extends((0,o.NestedComponent)(e)(t)){}}}t.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"array")},38448:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;const a=n(303),l=n(18641),u=n(70678),c=o(n(55223)),d=n(29688),h=n(53127),p=n(37936);function f(e={}){(e=(0,p.merge)({type:"component",template:!1,schema:{persistent:!0,protected:!1}},e)).schema.type=e.type;const t=e.model||h.Model;return function(n){return class extends(t(e)(n)){constructor(){super(...arguments),this.attached=!1,this.refs={},this.template=e.template,this.attachedListeners=[]}get defaultOptions(){return{language:"en",namespace:"formio"}}get defaultTemplate(){return e=>`${e.t("Unknown Component")}`}interpolate(e,t){return u.Evaluator.interpolate(e,t)}renderContext(e={}){return super.renderContext?super.renderContext(e):e}evaluate(e,t={},n="",i=!1){return u.Evaluator.evaluate(e,this.evalContext(t),n,i)}render(e={}){return super.render?super.render(e):this.renderTemplate(this.template||this.component.type,this.renderContext(e))}getRefs(){return super.getRefs?super.getRefs():{}}loadRefs(e){const t=this.getRefs();for(const n in t)"single"===t[n]?this.refs[n]=e.querySelector(`[ref="${n}"]`):this.refs[n]=e.querySelectorAll(`[ref="${n}"]`)}attach(e){const t=Object.create(null,{attach:{get:()=>super.attach}});return s(this,void 0,void 0,(function*(){if(this.element&&!e&&(e=this.element),!e)return this;const n=e.parentNode;if(!n)return this;const i=Array.prototype.indexOf.call(n.children,e);return e.outerHTML=String(this.sanitize(this.render())),e=n.children[i],this.element=e,this.loadRefs(this.element),t.attach&&(yield t.attach.call(this,e)),this.attached=!0,this}))}redraw(){return s(this,void 0,void 0,(function*(){if(this.element)return this.clear(),this.attach()}))}sanitize(e){return(0,d.sanitize)(e,this.options)}get translations(){return this.options.language&&this.options.i18n&&this.options.i18n[this.options.language]?this.options.i18n[this.options.language]:{}}t(e){return this.translations[e]?this.translations[e]:e}evalContext(e={}){return Object.assign({instance:this,component:this.component,options:this.options,row:this.data,data:this.root?this.root.data:this.data,rowIndex:this.rowIndex,value:()=>this.dataValue,t:e=>this.t(e)},e)}renderTemplate(e,t={}){return l.Template.render(e,this.evalContext(t),"html",this.defaultTemplate)}isValueRedacted(){return this.component.protected||!this.component.persistent||"client-only"===this.component.persistent}setValue(e){let t=!1;return super.setValue&&(t=super.setValue(e)),this.updateValue(e)||t}getElement(){return this.element}detach(){this.refs={},this.attached=!1,this.removeAttachedListeners(),super.detach&&super.detach()}clear(){this.detach(),c.empty(this.getElement()),super.clear&&super.clear()}append(e){c.appendTo(e,this.element)}prepend(e){c.prependTo(e,this.element)}removeChild(e){c.removeChildFrom(e,this.element)}addEventListener(e,t,n){if(e)return"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent(`on${t}`,n),this.attachedListeners.push({obj:e,type:t,func:n}),this}removeAttachedListeners(){this.attachedListeners.forEach((e=>this.removeEventListener(e.obj,e.type,e.func))),this.attachedListeners=[]}removeEventListener(e,t,n){return e&&e.removeEventListener(t,n),this}}}}t.Component=f,a.Components.addDecorator(f,"component"),a.Components.addComponent(f()(),"component")},88435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataComponent=void 0;const i=n(303),r=n(53127),o=n(92833);function s(e={}){return e.type||(e.type="data"),e.model||(e.model=r.NestedDataModel),function(t){return class extends((0,o.NestedComponent)(e)(t)){}}}t.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"data")},70919:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Template=t.ArrayComponent=t.DataComponent=t.NestedComponent=t.Component=t.render=t.Components=void 0;var o=n(303);Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return o.Components}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return o.render}});var s=n(38448);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return s.Component}});var a=n(92833);Object.defineProperty(t,"NestedComponent",{enumerable:!0,get:function(){return a.NestedComponent}});var l=n(88435);Object.defineProperty(t,"DataComponent",{enumerable:!0,get:function(){return l.DataComponent}});var u=n(50497);Object.defineProperty(t,"ArrayComponent",{enumerable:!0,get:function(){return u.ArrayComponent}});var c=n(18641);Object.defineProperty(t,"Template",{enumerable:!0,get:function(){return c.Template}}),r(n(53127),t)},92833:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedComponent=void 0;const r=n(303),o=n(38448),s=n(53127);function a(e={}){return e.type||(e.type="nested"),e.model||(e.model=s.NestedModel),e.factory||(e.factory=r.Components),function(t){return class extends((0,o.Component)(e)(t)){get defaultTemplate(){return e=>`
${e.instance.renderComponents()}
`}attach(e){const t=Object.create(null,{attach:{get:()=>super.attach}});return i(this,void 0,void 0,(function*(){if(yield t.attach.call(this,e),this.element){const e=[],t=this.element.querySelectorAll(`[data-within="${this.id}"]`);Array.prototype.slice.call(t).forEach(((t,n)=>{e.push(this.components[n].attach(t))})),yield Promise.all(e)}return this}))}detach(){super.detach(),this.eachComponent((e=>e.detach()))}renderComponents(){return this.components.reduce(((e,t)=>e+t.render().replace(/(<[^\>]+)/,`$1 data-within="${this.id}"`)),"")}}}}t.NestedComponent=a,r.Components.addDecorator(a,"nested"),r.Components.addComponent(a()(),"nested")},53849:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.DataTableComponent=t.DataTable=void 0;const r=n(70919);class o{constructor(e,t,n){this.component=e,this.options=t,this.data=n}renderClasses(){let e="";return this.component.bordered&&(e+=" table-bordered"),this.component.striped&&(e+=" table-striped"),this.component.hover&&(e+=" table-hover"),this.component.condensed&&(e+=" table-condensed"),e}renderContext(e={}){return Object.assign({classes:this.renderClasses()},e)}}t.DataTable=o;let s=t.DataTableComponent=class extends o{};t.DataTableComponent=s=i([(0,r.ArrayComponent)({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],s)},3881:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.DataValueComponent=void 0;const r=n(70919),o=n(47845);let s=t.DataValueComponent=class extends o.HTML{};t.DataValueComponent=s=i([(0,r.Component)({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:e=>`<${e.tag} ref="val"${e.attrs}>${e.value()}`})],s)},47845:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLComponent=t.HTML=t.HTMLProperties=void 0;const r=n(70919);t.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:e=>`<${e.tag} ref="${e.ref}"${e.attrs}>${e.t(e.content)}`};class o{constructor(e,t,n){this.component=e,this.options=t,this.data=n}getAttributes(){let e=!1,t="";for(let n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){const i=this.component.attrs[n],r=Number.isNaN(parseInt(n));let o=r?n:i.attr;const s=r?i:i.value;"class"===o&&this.component.className&&(e=!0,o+=` ${this.component.className}`),t+=` ${o}="${this.interpolate(s,this.evalContext())}"`}return!e&&this.component.className&&(t+=` class="${this.interpolate(this.component.className,this.evalContext())}"`),t}renderContext(e={}){return Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},e)}}t.HTML=o;let s=t.HTMLComponent=class extends o{};t.HTMLComponent=s=i([(0,r.Component)(t.HTMLProperties)],s)},28685:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLContainerComponent=t.HTMLContainer=void 0;const r=n(70919),o=n(47845);class s extends o.HTML{renderContext(e={}){return super.renderContext(Object.assign({content:this.renderComponents()},e))}}t.HTMLContainer=s;let a=t.HTMLContainerComponent=class extends s{};t.HTMLContainerComponent=a=i([(0,r.NestedComponent)({type:"htmlcontainer",schema:o.HTMLProperties.schema,template:o.HTMLProperties.template})],a)},55438:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponent=t.Input=t.DataValueComponent=t.DataTableComponent=t.DataTable=t.HTMLContainerComponent=t.HTMLContainer=t.HTMLComponent=t.HTML=void 0;const r=i(n(86614)),o=n(47845),s=n(28685),a=n(53849),l=n(3881),u=n(6277);var c=n(47845);Object.defineProperty(t,"HTML",{enumerable:!0,get:function(){return c.HTML}}),Object.defineProperty(t,"HTMLComponent",{enumerable:!0,get:function(){return c.HTMLComponent}});var d=n(28685);Object.defineProperty(t,"HTMLContainer",{enumerable:!0,get:function(){return d.HTMLContainer}}),Object.defineProperty(t,"HTMLContainerComponent",{enumerable:!0,get:function(){return d.HTMLContainerComponent}});var h=n(53849);Object.defineProperty(t,"DataTable",{enumerable:!0,get:function(){return h.DataTable}}),Object.defineProperty(t,"DataTableComponent",{enumerable:!0,get:function(){return h.DataTableComponent}});var p=n(3881);Object.defineProperty(t,"DataValueComponent",{enumerable:!0,get:function(){return p.DataValueComponent}});var f=n(6277);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return f.Input}}),Object.defineProperty(t,"InputComponent",{enumerable:!0,get:function(){return f.InputComponent}}),t.default={components:{html:o.HTMLComponent,htmlcontainer:s.HTMLContainerComponent,datatable:a.DataTableComponent,datavalue:l.DataValueComponent,input:u.InputComponent},templates:r.default}},6277:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponent=t.Input=void 0;const o=n(70919),s=n(47845);class a extends s.HTML{getAttributes(){const e=super.getAttributes(),t=`${this.component.type}-${this.component.key}`.toLowerCase().replace(/[^a-z0-9\-]+/g,"_");return` type="${this.component.inputType}" id="${t}" name="${t}"${e}`}onInput(){this.updateValue(this.element.value)}attach(e){return r(this,void 0,void 0,(function*(){return this.addEventListener(this.element,this.component.changeEvent,this.onInput.bind(this)),this}))}detach(){this.removeEventListener(this.element,this.component.changeEvent,this.onInput.bind(this))}setValue(e){this.element&&(this.element.value=e)}}t.Input=a;let l=t.InputComponent=class extends a{};t.InputComponent=l=i([(0,o.Component)({type:"input",template:s.HTMLProperties.template,schema:Object.assign(Object.assign({},s.HTMLProperties.schema),{tag:"input",ref:"input",changeEvent:"input",inputType:"text"})})],l)},8845:(e,t)=>{t.A=function(e){var t,n="";return Array.prototype.join,n+='\n \n \n ',e.component.components.forEach((function(e){n+="\n \n "})),n+="\n \n \n \n ",e.instance.rows.forEach((function(e){n+="\n \n ",e.forEach((function(e){n+="\n \n "})),n+="\n \n "})),n+="\n \n
"+(null==(t=e.label||e.key)?"":t)+"
"+(null==(t=e.dataValue)?"":t)+"
"}},37680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.html=void 0;const i=n(8845).A;t.html=i},39655:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.datatable=void 0,t.datatable=o(n(37680))},86614:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(39655));t.default={bootstrap:s}},48410:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.use=t.useModule=t.usePlugin=void 0,n(96522);const r=n(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}});const o=n(12068),s=n(84679),a=n(70919);r.Formio.render=a.render,r.Formio.Components=a.Components,r.Formio.Validator=r.Formio.Rules=o.Validator,r.Formio.Evaluator=s.Evaluator,r.Formio.Utils=s.Utils,r.Formio.Templates=a.Template;const l=n(21823);function u(e,t){switch(e){case"options":if(!r.Formio.options)return;r.Formio.options=(0,l.merge)(r.Formio.options,t);break;case"templates":if(!r.Formio.Templates)return;const n=r.Formio.Templates.framework||"bootstrap";for(const e of Object.keys(t))r.Formio.Templates.extendTemplate(e,t[e]);t[n]&&(r.Formio.Templates.current=t[n]);break;case"components":if(!r.Formio.Components)return;r.Formio.Components.setComponents(t);break;case"framework":if(!r.Formio.Templates)return;r.Formio.Templates.framework=t;break;case"fetch":for(const e of Object.keys(t))r.Formio.registerPlugin(t[e],e);break;case"rules":if(!r.Formio.Rules)return;r.Formio.Rules.addRules(t);break;case"evaluator":if(!r.Formio.Evaluator)return;r.Formio.Evaluator.registerEvaluator(t);break;default:console.log("Unknown plugin option",e)}}function c(e){if("object"==typeof e)for(const t of Object.keys(e))u(t,e[t])}function d(...e){e.forEach((e=>{Array.isArray(e)?e.forEach((e=>c(e))):c(e)}))}t.usePlugin=u,t.useModule=c,t.use=d,r.Formio.useModule=c,r.Formio.usePlugin=u,r.Formio.use=d;const h=i(n(55438));r.Formio.use(h.default);const p=i(n(12191));r.Formio.use(p.default)},35349:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(48410),t),r(n(70919),t),r(n(53127),t),r(n(12191),t),r(n(84679),t),r(n(55438),t),r(n(12068),t)},46181:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitterBase=t.EventEmitter=void 0;const r=i(n(30228));t.EventEmitterBase=r.default,t.EventEmitter=function(e){return e||(e=class{}),class extends e{constructor(){super(...arguments),this.parent=null,this.events=new r.default}bubble(e,...t){return this.parent?this.parent.bubble(e,...t):this.emit(e,...t)}emit(e,...t){return this.events.emit(e,...t)}on(e,t,...n){return this.events.on(e,t,...n)}once(e,t,...n){return this.events.once(e,t,...n)}off(e,...t){return this.events.off(e,...t)}}}},66930:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const a=o(n(21823)),l=n(46181);t.Model=function(e={}){return e.schema||(e.schema={}),e.schema.key||(e.schema.key=""),function(t){return class n extends((0,l.EventEmitter)(t)){static schema(){return e.schema}constructor(e={},t={},n={}){super(e,t,n),this.component=e,this.options=t,this.data=n,this.root=null,this.validator=null,this.id=`e${Math.random().toString(36).substring(7)}`,this.component=a.merge({},this.defaultSchema,this.component),this.options=Object.assign(Object.assign({},this.defaultOptions),this.options),this.options.noInit||this.init()}get defaultOptions(){return{}}get defaultSchema(){return n.schema()}init(){this.hook("init"),this.options.validator&&(this.validator=this.options.validator.fromComponent(this))}checkComponentValidity(){return s(this,void 0,void 0,(function*(){return!this.validator||this.validator.check()}))}checkValidity(){return s(this,void 0,void 0,(function*(){return this.checkComponentValidity()}))}get errors(){return this.validator.errors}get emptyValue(){return null}isEmpty(e=this.dataValue){const t=!(!a.isArray(e)||1!==e.length)&&a.isEqual(e[0],this.emptyValue);return null==e||0===e.length||a.isEqual(e,this.emptyValue)||t}get dataValue(){return a.get(this.data,this.component.key)}set dataValue(e){this.component.key&&a.set(this.data,this.component.key,e)}hasChanged(e){return String(e)!==String(this.dataValue)}updateValue(e){const t=this.hasChanged(e);return this.dataValue=e,t&&this.bubble("change",e),t}getValue(){return this.dataValue}hook(e,...t){if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,t);{const e="function"==typeof t[t.length-1]?t[t.length-1]:null;return e?e(null,t[1]):t[1]}}}}}},2722:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedArrayModel=void 0;const s=o(n(21823)),a=n(36851);t.NestedArrayModel=function(e={}){return function(t){return class extends((0,a.NestedDataModel)(e)(t)){get defaultValue(){return[]}row(e){return ethis.removeComponent(e))),this.dataValue.splice(e,1),this.rows.splice(e,1)}addRow(e={},t=0){const n=e;this.dataValue[t]=n,this.createRowComponents(n,t)}setRowData(e,t){var n;this.dataValue[t]=e,null===(n=this.row(t))||void 0===n||n.forEach((t=>t.data=e))}rowChanged(e,t){var n;let i=!1;return null===(n=this.row(t))||void 0===n||n.forEach((t=>{const n=t.hasChanged(s.get(e,t.component.key));i=n||i,n&&t.bubble("change",t)})),i}createComponents(e){this.rows=[];let t=[];return this.eachRowValue(e,((e,n)=>{t=t.concat(this.createRowComponents(e,n))})),t}createRowComponents(e,t=0){const n=super.createComponents(e,(e=>{e.rowIndex=t}));return this.rows[t]=n,n}getIndexes(e){return super.getIndexes?super.getIndexes(e):{min:0,max:e.length-1}}eachRowValue(e,t){if(!e||!e.length)return;const n=this.getIndexes(e);for(let i=n.min;i<=n.max;i++)t(e[i],i)}get emptyValue(){return[]}get dataValue(){return s.get(this.data,this.component.key)}set dataValue(e){if(Array.isArray(e)){const t=this.dataValue;if(this.eachRowValue(e,((e,n)=>{n>=t.length&&this.addRow(e,n),this.setRowData(e,n)})),t.length>e.length)for(let n=e.length;n{n=this.rowChanged(e,t)||n})),n}setValue(e){var t=!1;return this.eachComponentValue(e,((e,n)=>{t=e.setValue(n)||t})),t}}}}},36851:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedDataModel=void 0;const s=o(n(21823)),a=n(84459);t.NestedDataModel=function(e={}){return function(t){return class extends((0,a.NestedModel)(e)(t)){get emptyValue(){return{}}get defaultValue(){return{}}componentData(){const e=s.get(this.data,this.component.key,this.defaultValue);return Object.keys(e).length||s.set(this.data,this.component.key,e),e}get dataValue(){return s.get(this.data,this.component.key)}set dataValue(e){this.eachComponentValue(e,((e,t)=>e.dataValue=t))}}}}},84459:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedModel=void 0;const a=o(n(21823)),l=n(66930);t.NestedModel=function(e={}){return e.schema||(e.schema={}),e.schema.components||(e.schema.components=[]),function(t){return class extends((0,l.Model)(e)(t)){init(){super.init(),this.components=[],this.createComponents(this.componentData())}componentData(){return this.data}createComponent(t,n,i){if(!e.factory)return console.log('Cannot create components. No "factory" provided.'),null;const r=e.factory.create(t,Object.assign({noInit:!0},n),i);return r.parent=this,r.root=this.root||this,r.init(),r}createComponents(e,t){const n=[];return(this.component.components||[]).forEach((i=>{const r=this.createComponent(i,this.options,e);r&&(this.components.push(r),n.push(r),t&&t(r))})),n}removeComponent(e){(this.components||[]).forEach(((t,n)=>{t===e&&(t.detach&&t.detach(),this.components.splice(n,1))}))}checkValidity(){return s(this,void 0,void 0,(function*(){return this.components.reduce(((e,t)=>e&&t.checkValidity()),this.checkComponentValidity())}))}get defaultValue(){return{}}get emptyValue(){return{}}get dataValue(){return this.data}eachComponent(e){a.each(this.components,((t,n)=>{if(!1===e(t,n))return!1}))}eachComponentValue(e,t){Object.keys(e).length&&this.eachComponent((n=>{t(n,a.get(e,n.component.key))}))}set dataValue(e){this.eachComponentValue(e,((e,t)=>e.dataValue=t))}setValue(e){var t=!1;return this.eachComponentValue(e,((e,n)=>{t=e.setValue(n)||t})),t}}}}},53127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestedArrayModel=t.NestedDataModel=t.NestedModel=t.Model=t.EventEmitter=void 0;var i=n(46181);Object.defineProperty(t,"EventEmitter",{enumerable:!0,get:function(){return i.EventEmitter}});var r=n(66930);Object.defineProperty(t,"Model",{enumerable:!0,get:function(){return r.Model}});var o=n(84459);Object.defineProperty(t,"NestedModel",{enumerable:!0,get:function(){return o.NestedModel}});var s=n(36851);Object.defineProperty(t,"NestedDataModel",{enumerable:!0,get:function(){return s.NestedDataModel}});var a=n(2722);Object.defineProperty(t,"NestedArrayModel",{enumerable:!0,get:function(){return a.NestedArrayModel}})},12191:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(79092));t.default=[r.default]},79092:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONLogicEvaluator=void 0;const r=n(84679),o=i(n(37580)),s=n(28936);class a extends r.BaseEvaluator{static evaluate(e,t={},n="",i=!1,o={}){let a=null;if("object"==typeof e)try{a=s.jsonLogic.apply(e,t)}catch(e){a=null,console.warn("An error occured within JSON Logic",e)}else a=r.BaseEvaluator.evaluate(e,t,n,i,o);return a}}t.JSONLogicEvaluator=a,t.default={evaluator:a,rules:o.default,jsonLogic:s.jsonLogic}},28936:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.jsonLogic=void 0;const a=s(n(18678));t.jsonLogic=a.default;const l=o(n(21823)),u=s(n(74353));n(48831).lodashOperators.forEach((e=>{l[e]&&a.default.add_operation(`_${e}`,l[e])})),a.default.add_operation("getDate",(e=>(0,u.default)(e).toISOString())),a.default.add_operation("relativeMinDate",(e=>(0,u.default)().subtract(e,"days").toISOString())),a.default.add_operation("relativeMaxDate",(e=>(0,u.default)().add(e,"days").toISOString()))},48831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","drop","dropRight","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},76932:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRule=void 0;const r=n(12068);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{error}}"}check(e=this.component.dataValue,t={},n={},r=0){return i(this,void 0,void 0,(function*(){const{json:i}=this.settings;if(!i)return!0;const o=this.component.evaluate(i,{data:t,row:n,rowIndex:r,input:e});return null===o||o}))}}t.JSONRule=o},37580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(76932);t.default={json:i.JSONRule}},31870:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const r=i(n(42681)),o=n(21823),s=n(61785),a=n(17112),l=i(n(30228)),u=i(n(81018)),{fetch:c,Headers:d}=(0,r.default)(),h=i(n(23370));var p;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(p||(t.FormioPathType=p={}));class f{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof f))return new f(e);if(t.useSessionToken&&f.useSessionToken(t),t.hasOwnProperty("base")&&t.base?this.base=t.base:f.baseUrl?this.base=f.baseUrl:window&&window.location&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),!e)return this.projectUrl=f.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const n=this.projectUrl||f.projectUrl,i=/(^|\/)(project)($|\/[^/]+)/,r=-1!==e.search(i);n&&this.base===n&&!r&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const o=this.getUrlParts(e);let s="",a=[];if(o){s=o[1]+o[2];const t=(e=o.length>3?o[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const l=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const i=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(i)&&(a=e.match(i),this[`${t}Url`]=a?n+a[0]:"",this[`${t}Id`]=a.length>1?a[1]:"",n+=a[0]),n},u=(e,t,n)=>{for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];if(Array.isArray(r))u(r,t,!0);else{const e=l(r,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||r||"Subdirectories"!==f.pathType)this.projectUrl=s;else{const e=`^${s.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:s}let c=!1;if(f.pathType&&(c="Subdomains"!==f.pathType),!this.noProject){if(r)u(["project"],s),e=e.replace(i,"");else if(s===this.base){if(o&&o.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=s;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${s}/${this.projectId}`)}}}else o&&o.length>2&&(o[2].split(".").length>2||s.includes("localhost"))&&!c&&(this.projectUrl=s,this.projectId=o[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(u(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))u(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),n=e.match(t);n&&n.length>1&&(this.pathType=n[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const i=["submission","action","v"];for(const t in i)if(i.hasOwnProperty(t)){const r=i[t];this[`${r}sUrl`]=`${this.projectUrl+e}/${r}`,this.pathType===r&&n&&n.length>2&&n[2]&&(this[`${r}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${r}Url`]=this.projectUrl+e+n[0])}}f.projectUrlSet||(f.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(f.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const i=`${e}Url`;return(t=t||"")&&(0,o.isObject)(t)&&(t=`?${f.serialize(t.params)}`),this.makeRequest(e,this[i]+t,"get",null,n)}save(e,t,n){const i=`${e}Id`,r=`${e}Url`,o=this[i]||t._id?"put":"post";let s=this[i]?this[r]:this[`${e}sUrl`];return this[i]||!t._id||"put"!==o||s.includes(t._id)||(s+=`/${t._id}`),f.cache={},this.makeRequest(e,s+this.query,o,t,n)}load(e,t,n){const i=`${e}Id`,r=`${e}Url`;if(t&&(0,o.isObject)(t)&&(t=f.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[i])return Promise.reject(`Missing ${i}`);let s=this[r]+t;return"form"!==e||isNaN(parseInt(this.vId))||(s+=-1===s.indexOf("?")?"?":"&",s+=`formRevision=${this.vId}`),this.makeRequest(e,s,"get",null,n)}makeRequest(e,t,n,i,r){return f.makeRequest(this,e,t,n,i,r)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,o.isObject)(e)&&(e=`?${f.serialize(e.params)}`),f.makeStaticRequest(`${f.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((n=>!n.revisions||isNaN(parseInt(this.vId))||"current"===n.revisions&&this.submissionId||n._vid==this.vId||n.revisionId===this.vId?n:(e&&(0,o.isObject)(e)&&(e=f.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(n._vid=e._vid,n.components=e.components,n.settings=e.settings,n.revisionId=e.revisionId,Object.assign({},n)))).catch((()=>Object.assign({},n))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return f.currentUser(this,e)}accessInfo(){return f.accessInfo(this)}oauthLogoutURI(e,t){return f.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return f.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return f.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!f.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const i=f.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${i}/token`,"GET",null,{ignoreCache:!0,header:new d({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const n=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=n;let i=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{i+=`?token=${t.key}`,e(i)}),(()=>{e(i)})).catch(n)}))}userPermissions(e,t,n){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((e=>{const t=e.shift(),n=e.shift()||{_id:!1,roles:[]},i=e.shift(),r=e.shift(),a={create:"create",read:"read",update:"edit",delete:"delete"},l={user:n,form:t,access:r,create:!1,read:!1,edit:!1,delete:!1};for(const e in r.roles)if(r.roles.hasOwnProperty(e)){const t=r.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return l.create=!0,l.read=!0,l.delete=!0,l.edit=!0,l}if(t&&t.submissionAccess)for(let e=0;e{if(e&&e.defaultPermission){const r=(0,o.get)(i.data,t);(Array.isArray(r)?r:[r]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(l[a.read]=!0),"create"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0),"write"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0),"admin"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0,l[a.delete]=!0))}))}})),l}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&f.getUser()?this.userPermissions(null).then((e=>!!e.create&&(f.setUser(null),!0))):e.create))}getUrlParts(e){return f.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:f.baseUrl;let i="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?i+=`(${n.replace(/^http[s]?:\/\//,"")})`:i+="([^/]+)",i+="($|\\/.*)",e.match(new RegExp(i))}static serialize(e,t){const n=[];for(const r in e)e.hasOwnProperty(r)&&n.push(`${encodeURIComponent(r)}=${encodeURIComponent((i=e[r],t?t(i):i))}`);var i;return n.join("&")}static getRequestArgs(e,t,n,i,r,s){i=(i||"GET").toUpperCase(),s&&(0,o.isObject)(s)||(s={});const a={url:n,method:i,data:r||null,opts:s};return t&&(a.type=t),e&&(a.formio=e),a}static makeStaticRequest(e,t,n,i){const r=f.getRequestArgs(null,"",e,t,n,i),s=h.default.pluginWait("preRequest",r).then((()=>h.default.pluginGet("staticRequest",r).then((e=>(0,o.isNil)(e)?f.request(r.url,r.method,r.data,r.opts.header,r.opts):e))));return h.default.pluginAlter("wrapStaticRequestPromise",s,r)}static makeRequest(e,t,n,i,r,s){if(!e)return f.makeStaticRequest(n,i,r,s);const a=f.getRequestArgs(e,t,n,i,r,s);a.opts=a.opts||{},a.opts.formio=e,a.opts.headers||(a.opts.headers={}),a.opts.headers=(0,o.defaults)(a.opts.headers,{Accept:"application/json","Content-type":"application/json"});const l=h.default.pluginWait("preRequest",a).then((()=>h.default.pluginGet("request",a).then((e=>(0,o.isNil)(e)?f.request(a.url,a.method,a.data,a.opts.header,a.opts):e))));return h.default.pluginAlter("wrapRequestPromise",l,a)}static request(e,t,n,i,r){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,o.isBoolean)(r)&&(r={ignoreCache:r}),r&&(0,o.isObject)(r)||(r={});const s=btoa(encodeURI(e));if(!r.ignoreCache&&"GET"===t&&f.cache.hasOwnProperty(s))return Promise.resolve(f.cloneResponse(f.cache[s]));"/"===e[0]&&(e=f.baseUrl+e);const a=i||new d(r.headers||{Accept:"application/json","Content-type":"application/json"}),l=f.getToken(r);l&&!r.noToken&&a.append("x-jwt-token",l);const u={};a.forEach((function(e,t){u[t]=e}));let c={method:t,headers:u,mode:"cors"};n&&(c.body=JSON.stringify(n)),c=h.default.pluginAlter("requestOptions",c,e),(c.namespace||f.namespace)&&(r.namespace=c.namespace||f.namespace);const p=c.headers["x-jwt-token"],m=h.default.pluginAlter("wrapFetchRequestPromise",f.fetch(e,c),{url:e,method:t,data:n,opts:r}).then((i=>{if(!(i=h.default.pluginAlter("requestResponse",i,f,n)).ok){if(440===i.status)f.setToken(null,r),f.events.emit("formio.sessionExpired",i.body);else if(401===i.status)f.events.emit("formio.unauthorized",i.body);else if(416===i.status)f.events.emit("formio.rangeIsNotSatisfiable",i.body);else if(504===i.status)return Promise.reject(new Error("Network request failed"));return(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((e=>Promise.reject(e)))}const s=i.headers.get("x-jwt-token");let a=!1;return"GET"!==t||p||!s||r.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),a=!0),i.status>=200&&i.status<300&&s&&""!==s&&!a&&f.setToken(s,r),204===i.status?{}:(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((e=>{let t=i.headers.get("content-range");if(t&&(0,o.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const n=t[0].split("-");e.skip=Number(n[0]),e.limit=n[1]-n[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!r.getHeaders)return e;const n={};return i.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>r.getHeaders?e:("GET"===t&&(f.cache[s]=e),f.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==r.noToken&&(f.setToken(null,r),f.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete f.cache[s],Promise.reject(n))));return m}static get token(){return f.tokens.formioToken||""}static set token(e){f.tokens.formioToken=e||""}static useSessionToken(e){let t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||f.namespace||"formio"}Token`,i=localStorage.getItem(n);i&&(localStorage.removeItem(n),sessionStorage.setItem(n,i));const r=`${t||f.namespace||"formio"}User`,o=localStorage.getItem(r);o&&(localStorage.removeItem(r),sessionStorage.setItem(r,o)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||f.namespace||"formio"}Token`;f.tokens||(f.tokens={});const i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,f.setUser(null,t));try{i.removeItem(n)}catch(e){u.default.erase(n,{path:"/"})}return f.tokens[n]=e,Promise.resolve(null)}if(f.tokens[n]!==e){f.tokens[n]=e;try{i.setItem(n,e)}catch(t){u.default.set(n,e,{path:"/"})}}return f.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||f.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(f.tokens||(f.tokens={}),f.tokens[n])return f.tokens[n];try{const i=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return f.tokens[t]=i||"",e.decode?(f.tokens[n]=f.tokens[t]?(0,a.jwtDecode)(f.tokens[t]):{},f.tokens[n]):f.tokens[t]}catch(e){return f.tokens[t]=u.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||f.namespace||"formio"}User`,i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,f.setToken(null,t)),f.events.emit("formio.user",null);try{return i.removeItem(n)}catch(e){return u.default.erase(n,{path:"/"})}}try{i.setItem(n,JSON.stringify(e))}catch(t){u.default.set(n,JSON.stringify(e),{path:"/"})}f.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||f.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(u.default.get(t))}}static setBaseUrl(e){f.baseUrl=e,f.projectUrlSet||(f.projectUrl=e)}static getBaseUrl(){return f.baseUrl}static setApiUrl(e){return f.setBaseUrl(e)}static getApiUrl(){return f.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),f.projectUrl=e,f.projectUrlSet=!0}static setProjectUrl(e){f.projectUrl=e,f.projectUrlSet=!0}static setAuthUrl(e){f.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),f.projectUrl}static getProjectUrl(){return f.projectUrl}static clearCache(){f.cache={}}static accessInfo(e){const t=e?e.projectUrl:f.projectUrl;return f.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:f.projectUrl;return f.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=f.authUrl;if(n||(n=e?e.projectUrl:f.projectUrl||f.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=f.getUser(t);if(e)return h.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const i=f.getToken(t);return t&&t.external||i?(t.fromCurrent=!0,f.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(f.setUser(e,t),e)))):h.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=f.authUrl?f.authUrl:e?e.projectUrl:f.baseUrl,i=()=>{f.setToken(null,t),f.setUser(null,t),f.clearCache(),localStorage.removeItem("useSessionToken")};return f.makeRequest(e,"logout",`${n}/logout`).then((function(e){return i(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw i(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let n=[];return location.search.substr(1).split("&").forEach((function(t){n=t.split("="),n.length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){n=t.split("="),n.length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return f.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||f.namespace||"formio"}LogoutAuthUrl`;return f.tokens[n],localStorage.setItem(n,e),f.tokens[n]}static samlInit(e={}){const t=f.pageQuery();if(t.saml){f.setUser(null);const e=f.setToken(t.saml);let n=window.location.toString();return n=n.substring(0,n.indexOf("?")),window.location.hash&&(n+=window.location.hash),window.history.replaceState({},document.title,n),e}e.relay||(e.relay=window.location.href);const n=f.authUrl||f.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if(void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,n)=>{const i=e.OktaAuth;delete e.OktaAuth;const r=new i(e);r.tokenManager.get("accessToken").then((i=>{i?t(f.oAuthCurrentUser(e.formio,i.accessToken)):location.hash?r.token.parseFromUrl().then((n=>{r.tokenManager.add("accessToken",n),t(f.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(r.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return f.samlInit(t);case"okta":return f.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,i=!1,r){if(!f.libraries.hasOwnProperty(e)){f.libraries[e]={},f.libraries[e].ready=new Promise(((t,n)=>{f.libraries[e].resolve=t,f.libraries[e].reject=n}));const s=`${e}Callback`;i||window[s]||(window[s]=()=>f.libraries[e].resolve());const a=(0,o.get)(window,t);if(a)f.libraries[e].resolve(a);else if((n=Array.isArray(n)?n:[n]).forEach((t=>{let n={},i="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":i="script",n={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":i="link",n={href:t.src,rel:"stylesheet"}}const o=document.createElement(i);if(o.setAttribute)for(const e in n)o.setAttribute(e,n[e]);r&&o.addEventListener("load",(()=>{f.libraries[e].loaded=!0,r(f.libraries[e].ready)}));const{head:s}=document;s&&s.appendChild(o)})),i){const n=setInterval((()=>{const i=(0,o.get)(window,t);i&&(clearInterval(n),f.libraries[e].resolve(i))}),200)}}const s=f.libraries[e];return r&&s.loaded?r(s.ready):s.ready}static libraryReady(e){return f.libraries.hasOwnProperty(e)&&f.libraries[e].ready?f.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,o.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(f.pathType=e)}static getPathType(){return f.pathType}}t.Formio=f,f.baseUrl="https://api.form.io",f.projectUrl="",f.authUrl="",f.projectUrlSet=!1,f.cache={},f.namespace="",f.events=new l.default,f.libraries={},f.fetch=c,f.Headers=d,f.tokens={},f.version="---VERSION---",f.plugins=h.default.plugins,f.deregisterPlugin=h.default.deregisterPlugin,f.registerPlugin=h.default.registerPlugin,f.getPlugin=h.default.getPlugin,f.pluginWait=h.default.pluginWait,f.pluginGet=h.default.pluginGet,f.pluginAlter=h.default.pluginAlter,h.default.Formio=f},23370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(21823);class r{static identity(e){return e}static deregisterPlugin(e){const t=r.plugins.length;return r.plugins=r.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||i.noop).call(e,r.Formio),!1))),t!==r.plugins.length}static registerPlugin(e,t){r.plugins.push(e),r.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||i.noop).call(e,r.Formio)}static getPlugin(e){for(const t of r.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(r.plugins.map((n=>(n[e]||i.noop).call(n,...t))))}static pluginGet(e,...t){const n=o=>{const s=r.plugins[o];return s?Promise.resolve((s[e]||i.noop).call(s,...t)).then((e=>(0,i.isNil)(e)?n(o+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return r.plugins.reduce(((t,i)=>(i[e]||r.identity)(t,...n)),t)}}r.plugins=[],t.default=r},94394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var i=n(31870);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return i.Formio}})},70678:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const s=o(n(21823));class a{static evaluator(e,...t){return l.noeval?(console.warn("No evaluations allowed for this renderer."),s.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=s.keys(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e.replace(/({{\s*(.*?)\s*}})/g,((e,i,r)=>{if(-1!==r.indexOf("("))return r.replace(/([^\(]+)\(([^\)]+)\s*\);?/,((e,i,r)=>{i=s.trim(i);const o=s.get(t,i);return o?(r&&(r=r.split(",").map((e=>0===(e=s.trim(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):s.get(t,e)))),l.evaluate(o,r,"",!1,t,n)):""}));{let e=r;-1!==r.indexOf("?")&&(e=r.replace(/\?\./g,"."));const i=e.split("||").map((e=>e.trim()));let o="",a="";for(let e=0;e{l[t]=e[t]}))}}t.Evaluator=l},49599:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dayjs=t.getDateSetting=t.formatDate=t.momentDate=t.convertFormatToMoment=t.currentTimezone=void 0;const r=i(n(74353));t.dayjs=r.default;const o=i(n(88569)),s=i(n(83826)),a=n(21823),l=n(70678);function u(){return r.default.tz.guess()}function c(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}r.default.extend(s.default),r.default.extend(o.default),t.currentTimezone=u,t.convertFormatToMoment=c,t.momentDate=function(e,t,n){const i=(0,r.default)(e);return"UTC"===n?r.default.utc():n!==u()||t&&t.match(/\s(z$|z\s)/)?i.tz(n):i},t.formatDate=function(e,t,n){const i=(0,r.default)(e);return"UTC"===n?`${r.default.utc().format(c(t))} UTC`:n?i.tz(n).format(`${c(t)} z`):i.format(c(t))},t.getDateSetting=function(e){if((0,a.isNil)(e)||(0,a.isNaN)(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;let t="string"!=typeof e||-1===e.indexOf("moment(")?(0,r.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=l.Evaluator.evaluator(`return ${e};`,"moment")(r.default);"string"==typeof n?t=(0,r.default)(n):"function"==typeof n.toDate?t=(0,r.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,r.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null}},55223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.removeChildFrom=t.prependTo=t.appendTo=void 0,t.appendTo=function(e,t){t&&e&&(null==t||t.appendChild(e))},t.prependTo=function(e,t){if(t&&e)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e)},t.removeChildFrom=function(e,t){if(t&&e&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}},t.empty=function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},61785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueName=t.guid=t.flattenComponents=t.eachComponent=void 0;const i=n(70678),r=n(21823);function o(e,t,n,i,r){e&&(i=i||"",e.forEach((s=>{if(!s)return;const a=s.columns&&Array.isArray(s.columns),l=s.rows&&Array.isArray(s.rows),u=s.components&&Array.isArray(s.components);let c=!1;const d=s.key?i?`${i}.${s.key}`:s.key:"";r&&(s.parent=Object.assign({},r),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows);const h=a||l||u||["htmlelement","content"].indexOf(s.type)>-1;(n||s.tree||!h)&&(c=t(s,d,e));const p=()=>s.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(s.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(s.type)||s.tree)?d:s.key&&"form"===s.type?`${d}.data`:i;c||(a?s.columns.forEach((e=>o(e.components,t,n,p(),r?s:null))):l?s.rows.forEach((e=>{Array.isArray(e)&&e.forEach((e=>o(e.components,t,n,p(),r?s:null)))})):u&&o(s.components,t,n,p(),r?s:null))})))}function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}t.eachComponent=o,t.flattenComponents=function(e,t){const n={};return o(e,((e,t)=>{n[t]=e}),t),n},t.guid=s,t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const o=e.split(".");let a=o.slice(0,o.length-1).join(".");const l=o.length>1?`.${(0,r.last)(o)}`:"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:s()}),`${i.Evaluator.interpolate(t,n)}${l}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},84679:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.dom=t.unwind=t.override=t.sanitize=t.BaseEvaluator=t.Evaluator=t.Utils=void 0,t.Utils=o(n(61785));var a=n(70678);Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return a.Evaluator}}),Object.defineProperty(t,"BaseEvaluator",{enumerable:!0,get:function(){return a.BaseEvaluator}});var l=n(29688);Object.defineProperty(t,"sanitize",{enumerable:!0,get:function(){return l.sanitize}});var u=n(62243);Object.defineProperty(t,"override",{enumerable:!0,get:function(){return u.override}});var c=n(17690);Object.defineProperty(t,"unwind",{enumerable:!0,get:function(){return c.unwind}}),t.dom=o(n(55223)),s(n(10002),t),s(n(49599),t),s(n(715),t)},17112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const n=!0===t.header?0:1,i=e.split(".")[n];if("string"!=typeof i)throw new Error("Invalid token specified: missing part #"+(n+1));let r;try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(i)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(r)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchInputMask=t.getInputMask=void 0;const i=n(21823);t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let i=0;it.length)return!1;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.override=void 0,t.override=function(e,t){for(let n in t)if(t.hasOwnProperty(n)){const i=t[n];if("function"==typeof i)e.prototype[n]=i;else{const t=Object.getOwnPropertyDescriptor(e.prototype,n);for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e](t[e]));Object.defineProperty(e.prototype,n,t)}}}},29688:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=void 0;const r=i(n(42838));let o=null;t.sanitize=function(e,t){const n=o||(window?(o=(0,r.default)(window),o):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),e;const i={ADD_ATTR:["ref","target","within"],USE_PROFILES:{html:!0}};return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((e=>{i.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(i.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(i.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(i.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(i.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(i.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),n.sanitize(e,i)}},17690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwind=t.rewind=t.mergeArray=t.mergeObject=void 0;const i=n(21823),r=n(61785);function o(e,t){(0,i.each)(e,(function(e,n){Array.isArray(e)?(t[n]||(t[n]=[]),s(e,t[n])):t[n]=e}))}function s(e,t){e.forEach((function(e){var n={};(0,i.each)(e,(function(e,t){Array.isArray(e)||(n[t]=e)}));var r=(0,i.find)(t,n);r?o(e,r):t.push(e)}))}t.mergeObject=o,t.mergeArray=s,t.rewind=function(e){var t={data:{}};return e&&e.length&&e.forEach((e=>o(e.data,t.data))),t},t.unwind=function(e,t){var n={},o={},s=[(0,i.fastCloneDeep)(t)],a=function(e,t,n,r,u){for(r=r||0,u=u||0;(0,i.has)(o,"["+u+"]."+n);)u+1>=s.length&&s.push((0,i.fastCloneDeep)(s[u])),u++;var c=n.replace(/\.[^\.]+$/,"");!(0,i.has)(s[u].data,c)&&s[u-1]&&(0,i.has)(s[u-1].data,c)&&(0,i.set)(s[u].data,c,(0,i.fastCloneDeep)((0,i.get)(s[u-1].data,c)));var d=[];(0,i.set)(s[u].data,n,d),(0,i.set)(o,"["+u+"]."+n,!0);for(var h=r;he[o].max&&(e[o].max=s):e[o]={max:s,param:o,parent:i||null,paths:{}},n+1{e.isInsideNestedForm=!0})),e.overlay&&(e.overlay.width||e.overlay.height)){var s=e.properties&&e.properties.dataPath,a=e.key;s&&(t=e.properties.dataPath,a=e.properties.dataPath);var l=(0,i.filter)(t.replace(new RegExp(".?"+e.key+"$"),"").split("."));s||!l.length||e.isInsideNestedForm||(a=l.map((function(e){return e+"[0]"})).join(".")+"."+e.key),e.multiple&&l.push(e.key),e.key=a,l&&l.length&&u(n,l)}}),!0),l(n,t.data),s}},10002:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.boolValue=t.escapeRegExCharacters=void 0;const s=o(n(21823));t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.boolValue=function(e){return s.isBoolean(e)?e:s.isString(e)?"true"===e.toLowerCase():!!e}},73454:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;class i{static addRules(e){i.rules=Object.assign(Object.assign({},i.rules),e)}static fromComponent(e){const t=e.component.validate||{};return e.component.unique&&(t.unique=!0),new this(e,t)}constructor(e,t){this.component=e,this.ruleOptions=t,this.rules={},this.errors=[];for(let e in t)t.hasOwnProperty(e)&&this.addRule(e,t[e])}addRule(e,t){t&&i.rules.hasOwnProperty(e)&&(this.rules[e]=new i.rules[e](this.component,t))}removeRule(e){this.rules.hasOwnProperty(e)&&delete this.rules[e]}check(e=this.component.dataValue,t={}){return n(this,void 0,void 0,(function*(){if(this.errors=[],this.component.isValueRedacted())return!0;for(let n in this.rules)if(this.rules.hasOwnProperty(n)){const i=this.rules[n],r=yield i.check(e,t);if(!0!==r){const{component:e}=this.component;this.errors.push({type:n,settings:i.settings,message:this.component.interpolate(i.defaultMessage,{error:r,settings:i.settings,field:e.label||e.title||e.key})})}}return 0===this.errors.length}))}getErrorInfo(){return this.errors.length?{component:this.component.component,value:this.component.dataValue,errors:this.errors}:null}}t.Validator=i,i.rules={}},12068:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.Rules=t.Validator=void 0;const r=i(n(82332));t.Rules=r.default;const o=n(73454);Object.defineProperty(t,"Validator",{enumerable:!0,get:function(){return o.Validator}}),o.Validator.addRules(r.default);var s=n(59076);Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return s.Rule}})},25749:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ error }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=this.settings;if(!t)return!0;const n=this.component.evaluate(t,{valid:!0,input:e},"valid",!0);return null===n||n}))}}t.CustomRule=o},41806:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DateRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} is not a valid date."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e||e instanceof Date)return!0;if("string"==typeof e){if("invalid date"===e.toLowerCase())return!1;e=new Date(e)}return"Invalid Date"!==e.toString()}))}}t.DateRule=o},28698:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.DayRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} is not a valid day."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e)return!0;if("string"!=typeof e)return!1;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/").map((e=>parseInt(e,10))),o=r[t],s=r[n],a=r[i],l=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(s,a);return!(isNaN(o)||o<0||o>l||isNaN(s)||s<0||s>12||isNaN(a)||a<0||a>9999)}))}}t.DayRule=o},41056:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.EmailRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must be a valid email."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!e||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}))}}t.EmailRule=o},73694:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaskRule=void 0;const r=n(84679),o=n(59076);class s extends o.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} does not match the mask."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){let t;if(this.component.isMultipleMasksField){const n=e?e.maskName:void 0,i=this.component.getMaskByName(n);i&&(t=(0,r.getInputMask)(i)),e=e?e.value:e}else t=(0,r.getInputMask)(this.settings);return!e||!t||(0,r.matchInputMask)(e,t)}))}}t.MaskRule=s},77390:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} cannot be greater than {{ settings }}."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseFloat(this.settings),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}))}}t.MaxRule=o},91762:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxDateRule=void 0;const o=n(84679),s=n(21823),a=r(n(74353)),l=n(59076);class u extends l.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain date after {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e)return!0;if(e===this.settings)return!0;const t=(0,a.default)(e),n=(0,o.getDateSetting)(this.settings);return!!(0,s.isNull)(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}))}}t.MaxDateRule=u},99670:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxLengthRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have no more than {{ settings }} characters."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}))}}t.MaxLengthRule=o},23093:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxWordsRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have no more than {{ settings }} words."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}))}}t.MaxWordsRule=o},5315:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MaxYearRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain year greater than {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n<=+t}))}}t.MaxYearRule=o},51568:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinRule=void 0;const r=n(59076),o=n(21823);class s extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} cannot be less than {{ settings }}."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseFloat(this.settings),n=parseFloat(e);return!(!(0,o.isNaN)(t)&&!(0,o.isNaN)(n))||n>=t}))}}t.MinRule=s},24516:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MinDateRule=void 0;const o=n(84679),s=n(21823),a=r(n(74353)),l=n(59076);class u extends l.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain date before {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){if(!e)return!0;const t=(0,a.default)(e),n=(0,o.getDateSetting)(this.settings);return!!(0,s.isNull)(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}))}}t.MinDateRule=u},46768:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinLengthRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have no more than {{ settings }} characters."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!(t&&e&&e.hasOwnProperty("length")&&!this.component.isEmpty(e))||e.length>=t}))}}t.MinLengthRule=o},63427:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinWordsRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must have at least {{ settings }} words."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=parseInt(this.settings,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}))}}t.MinWordsRule=o},93265:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MinYearRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} should not contain year less than {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!(n&&+t&&+n)||+n>=+t}))}}t.MinYearRule=o},45438:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.PatternRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} does not match the pattern {{ settings }}"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return new RegExp(`^${this.settings}$`).test(e)}))}}t.PatternRule=o},91787:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} is required"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!this.component.isEmpty(e)}))}}t.RequiredRule=o},59076:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=void 0,t.Rule=class{constructor(e,t){this.component=e,this.settings=t}check(e=this.component.dataValue,t={}){return n(this,void 0,void 0,(function*(){return!1}))}}},65930:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectRule=void 0;const o=n(84679),s=n(21823),a=r(n(42681)),{fetch:l,Headers:u,Request:c}=(0,a.default)(),d=n(59076);class h extends d.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} contains an invalid selection"}check(e=this.component.dataValue,t={}){return i(this,void 0,void 0,(function*(){if(!e||(0,s.isEmpty)(e))return!0;if(!this.settings)return!0;const n=this.component.component,i={url:this.settings,method:"GET",qs:{},json:!0,headers:{}};if((0,s.isBoolean)(i.url)){if(i.url=!!i.url,!i.url||"url"!==n.dataSrc||!n.data.url||!n.searchField)return!0;i.url=n.data.url,i.qs[n.searchField]=e,n.filter&&(i.url+=(i.url.includes("?")?"&":"?")+n.filter),n.selectFields&&(i.qs.select=n.selectFields)}if(!i.url)return!0;i.url=o.Evaluator.interpolate(i.url,{data:this.component.data});const r=[];(0,s.each)(i.qs,((e,t)=>{r.push(`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)})),i.url+=(i.url.includes("?")?"&":"?")+r.join("&"),n.data&&n.data.headers&&(0,s.each)(n.data.headers,(e=>{e.key&&(i.headers[e.key]=e.value)})),n.authenticate&&t.token&&(i.headers["x-jwt-token"]=t.token);const a=yield l(new c(i.url,{headers:new u(i.headers)})),d=yield a.json();return d&&d.length}))}}t.SelectRule=h},40391:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeRule=void 0;const o=n(59076),s=r(n(74353));class a extends o.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must contain valid time"}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!!this.component.isEmpty(e)||(this.settings?(0,s.default)(e,this.settings).isValid():(0,s.default)(e).isValid())}))}}t.TimeRule=a},59789:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueRule=void 0;const r=n(84679),o=n(21823),s=n(59076);class a extends s.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must be unique"}check(e=this.component.dataValue,t={}){return i(this,void 0,void 0,(function*(){if(!e||(0,o.isObjectLike)(e)&&(0,o.isEmpty)(e))return!0;const{form:n,submission:i,db:s}=t;if(!s)return!0;const a=`data.${this.component.path}`,l={form:n._id};(0,o.isString)(e)?l[a]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e)}$`),$options:"i"}:(0,o.isPlainObject)(e)&&e.address&&e.address.address_components&&e.address.place_id?l[`${a}.address.place_id`]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e.address.place_id)}$`),$options:"i"}:(0,o.isArray)(e)?l[a]={$all:e}:((0,o.isObject)(e)||(0,o.isNumber)(e))&&(l[a]={$eq:e}),l.deleted={$eq:null};const u=yield s.findOne(l);return i._id&&u._id.toString()===i._id}))}}t.UniqueRule=a},56645:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UrlRule=void 0;const r=n(59076);class o extends r.Rule{constructor(){super(...arguments),this.defaultMessage="{{ field }} must be a valid url."}check(e=this.component.dataValue){return i(this,void 0,void 0,(function*(){return!e||/^(?:(?:(?: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-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}))}}t.UrlRule=o},82332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(25749),r=n(41806),o=n(28698),s=n(41056),a=n(73694),l=n(77390),u=n(91762),c=n(99670),d=n(23093),h=n(51568),p=n(24516),f=n(46768),m=n(63427),g=n(45438),v=n(91787),y=n(65930),b=n(59789),_=n(56645),w=n(93265),k=n(5315),x=n(40391);t.default={custom:i.CustomRule,date:r.DateRule,day:o.DayRule,email:s.EmailRule,mask:a.MaskRule,max:l.MaxRule,maxDate:u.MaxDateRule,maxLength:c.MaxLengthRule,maxWords:d.MaxWordsRule,min:h.MinRule,minDate:p.MinDateRule,minLength:f.MinLengthRule,minWords:m.MinWordsRule,pattern:g.PatternRule,required:v.RequiredRule,select:y.SelectRule,unique:b.UniqueRule,url:_.UrlRule,minYear:w.MinYearRule,maxYear:k.MaxYearRule,time:x.TimeRule}},6650:function(e,t,n){"use strict";var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r0?e.slice(t):e},t.dropRight=function(e,t){return void 0===t&&(t=1),t>0?e.slice(0,-t):e},t.each=s,t.find=a,t.findIndex=function(e,t){return a(e,t,!0)},t.matches=l,t.findEach=u,t.filter=function(e,t){if(!e)return[];if(t||(t=function(e){return!!e}),Array.isArray(e)&&"function"==typeof t)return e.filter(t);var n=[];return u(e,t,(function(t,i){n.push(t),Array.isArray(t)?e.splice(i,1):delete e[i]})),n},t.last=function(e){return e[e.length-1]},t.head=function(e){return e[0]},t.map=function(e,t){return e.map(t)},t.intersection=function(e,t){return e.filter((function(e){return t.includes(e)}))}},80851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){var n;return void 0===t&&(t=100),function(){for(var i=[],r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRegExp=t.isBoolean=t.isNumber=t.isPlainObject=t.isObject=t.isObjectLike=t.isArray=t.isNull=t.isNil=t.isNaN=t.isInteger=t.isEmpty=t.isString=t.isEqual=t.noop=void 0;var i=n(6650);function r(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function o(e){return"object"==typeof e&&null!==e}function s(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}t.noop=function(){},t.isEqual=function e(t,n){var r=!1;return t===n||(t&&n&&(Array.isArray(t)||s(t))&&Object.keys(t).length===Object.keys(n).length&&(r=!0,(0,i.each)(t,(function(t,i){return!Array.isArray(t)&&!s(t)||e(n[i],t)?n[i]!==t?(r=!1,!0):void 0:(r=!1,!0)}))),r)},t.isString=function(e){return"string"==typeof e},t.isEmpty=function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length},t.isInteger=function(e){return Number.isInteger(e)},t.isNaN=function(e){return Number.isNaN(e)},t.isNil=function(e){return null==e},t.isNull=function(e){return null===e},t.isArray=function(e){return Array.isArray(e)},t.isObjectLike=o,t.isObject=s,t.isPlainObject=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},t.isNumber=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)},t.isBoolean=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)},t.isRegExp=function(e){return o(e)&&"[object RegExp]"==r(e)}},78405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sumBy=t.sum=t.mod=t.subtract=t.round=t.multiply=t.minBy=t.min=t.meanBy=t.mean=t.maxBy=t.max=t.floor=t.divide=t.ceil=t.add=void 0;var i=n(59951),r=n(37936);function o(e,t,n){return void 0===n&&(n=0),n?t(e*(n=Math.pow(10,n)))/n:t(e)}function s(e,t,n){var o=e[0];if(e.length<=1)return o;var s=(0,i.isString)(t);return e.slice(1).reduce((function(e,i){var o=s?(0,r.get)(e,t):t(e),a=s?(0,r.get)(i,t):t(i);return n(o,a)===a?i:e}),o)}function a(e,t){return e+t}function l(e){return e.reduce(a,0)}function u(e,t){return function(e,t,n){var o=e[0];if(e.length<=1)return o;var s=(0,i.isString)(t);return e.slice(1).reduce((function(e,n){return i=e,o=s?(0,r.get)(n,t):t(n),i+o;var i,o}),s?(0,r.get)(o,t):t(o))}(e,t)}t.add=a,t.ceil=function(e,t){return void 0===t&&(t=0),o(e,Math.ceil,t)},t.divide=function(e,t){return e/t},t.floor=function(e,t){return void 0===t&&(t=0),o(e,Math.floor,t)},t.max=function(e){return Math.max.apply(Math,e)},t.maxBy=function(e,t){return s(e,t,Math.max)},t.mean=function(e){return l(e)/e.length},t.meanBy=function(e,t){return u(e,t)/e.length},t.min=function(e){return Math.min.apply(Math,e)},t.minBy=function(e,t){return s(e,t,Math.min)},t.multiply=function(e,t){return e*t},t.round=function(e,t){return void 0===t&&(t=0),o(e,Math.round,t)},t.subtract=function(e,t){return e-t},t.mod=function(e,t){return e%t},t.sum=l,t.sumBy=u},37936:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length:!e.hasOwnProperty(t))||r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.endsWith=t.trim=void 0,t.trim=function(e,t){return void 0===t&&(t="\\s"),e.replace(new RegExp("^([".concat(t,"]*)(.*?)([").concat(t,"]*)$")),"$2")},String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),t.endsWith=function(e,t){return e.endsWith(t)}},94233:function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return i(r).default}});var o=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return i(o).default}});var s=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return i(s).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minYear,o=void 0===r?1:r,s=t.maxYear,a=void 0===s?9999:s,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}));return function(t){var i=[],r={dd:31,mm:12,yy:99,yyyy:a,HH:23,MM:59,SS:59},s={dd:1,mm:1,yy:0,yyyy:o,HH:0,MM:0,SS:0},u=t.split("");l.forEach((function(t){var n=e.indexOf(t),o=parseInt(r[t].toString().substr(0,1),10);parseInt(u[n],10)>o&&(u[n+1]=u[n],u[n]=0,i.push(n))}));var c=0,d=l.some((function(i){var l=e.indexOf(i),u=i.length,d=t.substr(l,u).replace(/\D/g,""),h=parseInt(d,10);"mm"===i&&(c=h||0);var p="dd"===i?n[c]:r[i];if("yyyy"===i&&(1!==o||9999!==a)){var f=parseInt(r[i].toString().substring(0,d.length),10);return hf}return h>p||d.length===u&&h0&&void 0!==arguments[0]?arguments[0]:o,t=e.length;if(e===o||e[0]===m[0]&&1===t)return m.split(o).concat([h]).concat(v.split(o));if(e===C&&x)return m.split(o).concat(["0",C,h]).concat(v.split(o));var r=e[0]===l&&T;r&&(e=e.toString().substr(1));var s=e.lastIndexOf(C),a=-1!==s,f=void 0,g=void 0,y=void 0;if(e.slice(-1*N)===v&&(e=e.slice(0,-1*N)),a&&(x||A)?(f=e.slice(e.slice(0,L)===m?L:0,s),g=n((g=e.slice(s+1,t)).replace(c,o))):f=e.slice(0,L)===m?e.slice(L):e,I&&(void 0===I?"undefined":i(I))===d){var _="."===w?"[.]":""+w,k=(f.match(new RegExp(_,"g"))||[]).length;f=f.slice(0,I+k*V)}return f=f.replace(c,o),D||(f=f.replace(/^0+(0$|[^0])/,"$1")),y=n(f=b?function(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}(f,w):f),(a&&x||!0===A)&&(e[s-1]!==C&&y.push(p),y.push(C,p),g&&((void 0===S?"undefined":i(S))===d&&(g=g.slice(0,S)),y=y.concat(g)),!0===A&&e[s-1]===C&&y.push(h)),L>0&&(y=m.split(o).concat(y)),r&&(y.length===L&&y.push(h),y=[u].concat(y)),v.length>0&&(y=y.concat(v.split(o))),y}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=t.prefix,m=void 0===f?r:f,g=t.suffix,v=void 0===g?o:g,y=t.includeThousandsSeparator,b=void 0===y||y,_=t.thousandsSeparatorSymbol,w=void 0===_?s:_,k=t.allowDecimal,x=void 0!==k&&k,E=t.decimalSymbol,C=void 0===E?a:E,O=t.decimalLimit,S=void 0===O?2:O,P=t.requireDecimal,A=void 0!==P&&P,M=t.allowNegative,T=void 0!==M&&M,R=t.allowLeadingZeroes,D=void 0!==R&&R,j=t.integerLimit,I=void 0===j?null:j,L=m&&m.length||0,N=v&&v.length||0,V=w&&w.length||0;return e.instanceOf="createNumberMask",e};var r="$",o="",s=",",a=".",l="-",u=/-/,c=/\D+/g,d="number",h=/\d/,p="[]"},function(e,t,n){"use strict";function i(e,t,n){var i=[];return e[t]===n?i.push(n):i.push(h,n),i.push(h),i}function r(e,t,n,i){var r=c;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+i+"]",f),c))===d?l:r.length<1?p:r[r.length-1]===u?r.slice(0,r.length-1):r}function o(e,t,n,i){var r=c;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",f),c)).length?e[t-1]===u&&i!==e.length?l:c:r}function s(e,t){return e.split(c).map((function(e){return e===p?e:t?g:m}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),l="*",u=".",c="",d="@",h="[]",p=" ",f="g",m=/[^\s]/,g=/[^.\s]/,v=/\s/g;t.default={mask:function(e,t){e=e.replace(v,c);var n=t.placeholderChar,a=t.currentCaretPosition,l=e.indexOf(d),h=e.lastIndexOf(u),p=h1&&f.substr(-1)===a&&r!==d.length&&(f=f.slice(0,f.length-1)),f};var i="@",r=/@/g,o="",s="@.",a=".",l="..",u=[],c=/\./g}])},78443:function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.inputElement,n=e.afterUpdate,i=(0,s.default)(e),r=function(e){var t=e.target.value;i.update(t),"function"==typeof n&&n(t)};return t.addEventListener("input",r),i.update(t.value),{textMaskInputElement:i,destroy:function(){t.removeEventListener("input",r)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0,t.maskInput=r;var o=n(2);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return i(o).default}});var s=i(n(5));t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isArray)(t)){if((void 0===t?"undefined":i(t))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,r.processCaretTraps)(t).maskWithoutCaretTraps}var l=n.guide,u=void 0===l||l,c=n.previousConformedValue,d=void 0===c?a:c,h=n.placeholderChar,p=void 0===h?o.placeholderChar:h,f=n.placeholder,m=void 0===f?(0,r.convertMaskToPlaceholder)(t,p):f,g=n.currentCaretPosition,v=n.keepCharPositions,y=!1===u&&void 0!==d,b=e.length,_=d.length,w=m.length,k=t.length,x=b-_,E=x>0,C=g+(E?-x:0),O=C+Math.abs(x);if(!0===v&&!E){for(var S=a,P=C;P=C&&t=0;M--){var T=A[M].char;T!==p&&T===m[M>=C&&_===k?M-x:M]&&A.splice(M,1)}var R=a,D=!1;e:for(var j=0;j0)for(;A.length>0;){var L=A.shift(),N=L.char,V=L.isNew;if(N===p&&!0!==y){R+=p;continue e}if(t[j].test(N)){if(!0===v&&!1!==V&&d!==a&&!1!==u&&E){for(var F=A.length,U=null,B=0;B0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.placeholderChar;if(!i(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=i,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(s));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var r=n(1),o=[],s="[]"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,r=void 0===t?i:t,o=e.previousPlaceholder,s=void 0===o?i:o,a=e.currentCaretPosition,l=void 0===a?0:a,u=e.conformedValue,c=e.rawValue,d=e.placeholderChar,h=e.placeholder,p=e.indexesOfPipedChars,f=void 0===p?n:p,m=e.caretTrapIndexes,g=void 0===m?n:m;if(0===l||!c.length)return 0;var v=c.length,y=r.length,b=h.length,_=u.length,w=v-y,k=w>0;if(w>1&&!k&&0!==y)return l;var x=0,E=void 0,C=void 0;if(!k||r!==u&&u!==h){var O=u.toLowerCase(),S=c.toLowerCase().substr(0,l).split(i).filter((function(e){return-1!==O.indexOf(e)}));C=S[S.length-1];var P=s.substr(0,S.length).split(i).filter((function(e){return e!==d})).length,A=h.substr(0,S.length).split(i).filter((function(e){return e!==d})).length,M=A!==P,T=void 0!==s[S.length-1]&&void 0!==h[S.length-2]&&s[S.length-1]!==d&&s[S.length-1]!==h[S.length-1]&&s[S.length-1]===h[S.length-2];!k&&(M||T)&&P>0&&h.indexOf(C)>-1&&void 0!==c[l]&&(E=!0,C=c[l]);for(var R=f.map((function(e){return O[e]})),D=R.filter((function(e){return e===C})).length,j=S.filter((function(e){return e===C})).length,I=h.substr(0,h.indexOf(d)).split(i).filter((function(e,t){return e===C&&c[t]!==e})).length,L=I+j+D+(E?1:0),N=0,V=0;V<_&&(x=V+1,O[V]===C&&N++,!(N>=L));V++);}else x=l-w;if(k){for(var F=x,U=x;U<=b;U++)if(h[U]===d&&(F=U),h[U]===d||-1!==g.indexOf(U)||U===b)return F}else if(E){for(var B=x-1;B>=0;B--)if(u[B]===C||-1!==g.indexOf(B)||0===B)return B}else for(var $=x;$>=0;$--)if(h[$-1]===d||-1!==g.indexOf($)||0===$)return $};var n=[],i=""},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){(n?n.activeElement:document.activeElement)===e&&(f?m((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,h=i.inputElement,f=i.mask,m=i.guide,g=i.pipe,v=i.placeholderChar,y=void 0===v?c.placeholderChar:v,b=i.keepCharPositions,_=void 0!==b&&b,w=i.showMask,k=void 0!==w&&w;if(void 0===n&&(n=h.value),n!==t.previousConformedValue){(void 0===f?"undefined":s(f))===p&&void 0!==f.pipe&&void 0!==f.mask&&(g=f.pipe,f=f.mask);var x=void 0,E=void 0;if(f instanceof Array&&(x=(0,u.convertMaskToPlaceholder)(f,y)),!1!==f){var C=function(e){if((0,u.isString)(e))return e;if((0,u.isNumber)(e))return String(e);if(null==e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}(n),O=h.selectionEnd,S=t.previousConformedValue,P=t.previousPlaceholder,A=void 0;if((void 0===f?"undefined":s(f))===c.strFunction){if(!1===(E=f(C,{currentCaretPosition:O,previousConformedValue:S,placeholderChar:y})))return;var M=(0,u.processCaretTraps)(E);E=M.maskWithoutCaretTraps,A=M.indexes,x=(0,u.convertMaskToPlaceholder)(E,y)}else E=f;var T={previousConformedValue:S,guide:m,placeholderChar:y,pipe:g,placeholder:x,currentCaretPosition:O,keepCharPositions:_},R=(0,l.default)(C,E,T).conformedValue,D=(void 0===g?"undefined":s(g))===c.strFunction,j={};D&&(!1===(j=g(R,o({rawValue:C},T)))?j={value:S,rejected:!0}:(0,u.isString)(j)&&(j={value:j}));var I=D?j.value:R,L=(0,a.default)({previousConformedValue:S,previousPlaceholder:P,conformedValue:I,placeholder:x,rawValue:C,currentCaretPosition:O,placeholderChar:y,indexesOfPipedChars:j.indexesOfPipedChars,caretTrapIndexes:A}),N=I===x&&0===L?k?x:d:I;t.previousConformedValue=N,t.previousPlaceholder=x,h.value!==N&&(C.includes("e-")?h.value=C:h.value=N,r(h,L,e.shadowRoot))}}}}};var a=i(n(4)),l=i(n(2)),u=n(3),c=n(1),d="",h="none",p="object",f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},48630:function(e,t){!function(e){"use strict";var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},o="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:o,"5module":o+" export import",6:o+" const class extends export import super"},a=/^in(stanceof)?$/,l=new RegExp("["+i+"]"),u=new RegExp("["+i+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function c(e,t){for(var n=65536,i=0;ie)return!1;if((n+=t[i+1])>=e)return!0}return!1}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&c(e,n)))}function h(e,i){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==i&&(c(e,n)||c(e,t)))))}var p=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new p(e,{beforeExpr:!0,binop:t})}var m={beforeExpr:!0},g={startsExpr:!0},v={};function y(e,t){return void 0===t&&(t={}),t.keyword=e,v[e]=new p(e,t)}var b={num:new p("num",g),regexp:new p("regexp",g),string:new p("string",g),name:new p("name",g),privateId:new p("privateId",g),eof:new p("eof"),bracketL:new p("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new p("]"),braceL:new p("{",{beforeExpr:!0,startsExpr:!0}),braceR:new p("}"),parenL:new p("(",{beforeExpr:!0,startsExpr:!0}),parenR:new p(")"),comma:new p(",",m),semi:new p(";",m),colon:new p(":",m),dot:new p("."),question:new p("?",m),questionDot:new p("?."),arrow:new p("=>",m),template:new p("template"),invalidTemplate:new p("invalidTemplate"),ellipsis:new p("...",m),backQuote:new p("`",g),dollarBraceL:new p("${",{beforeExpr:!0,startsExpr:!0}),eq:new p("=",{beforeExpr:!0,isAssign:!0}),assign:new p("_=",{beforeExpr:!0,isAssign:!0}),incDec:new p("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new p("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("/<=/>=",7),bitShift:f("<>/>>>",8),plusMin:new p("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new p("**",{beforeExpr:!0}),coalesce:f("??",1),_break:y("break"),_case:y("case",m),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",m),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",m),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",g),_if:y("if"),_return:y("return",m),_switch:y("switch"),_throw:y("throw",m),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",g),_super:y("super",g),_class:y("class",g),_extends:y("extends",m),_export:y("export"),_import:y("import",g),_null:y("null",g),_true:y("true",g),_false:y("false",g),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},_=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(_.source,"g");function k(e){return 10===e||13===e||8232===e||8233===e}function x(e,t,n){void 0===n&&(n=e.length);for(var i=t;i>10),56320+(1023&e)))}var j=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,I=function(e,t){this.line=e,this.column=t};I.prototype.offset=function(e){return new I(this.line,this.column+e)};var L=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function N(e,t){for(var n=1,i=0;;){var r=x(e,i,t);if(r<0)return new I(n,t-i);++n,i=r}}var V={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},F=!1;function U(e){var t={};for(var n in V)t[n]=e&&A(e,n)?e[n]:V[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!F&&"object"==typeof console&&console.warn&&(F=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),M(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}return M(t.onComment)&&(t.onComment=function(e,t){return function(n,i,r,o,s,a){var l={type:n?"Block":"Line",value:i,start:r,end:o};e.locations&&(l.loc=new L(this,s,a)),e.ranges&&(l.range=[r,o]),t.push(l)}}(t,t.onComment)),t}var B=256;function $(e,t){return 2|(e?4:0)|(t?8:0)}var z=function(e,t,n){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=R(s[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";!0!==e.allowReserved&&(i=r[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(i+=" await")),this.reservedWords=R(i);var o=(i?i+" ":"")+r.strict;this.reservedWordsStrict=R(o),this.reservedWordsStrictBind=R(o+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},H={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};z.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},H.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},H.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},H.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},H.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&B)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},H.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},H.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},H.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},H.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},H.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&B)>0},z.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,i=0;i=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(i+1))}e+=t[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,";"===this.input[e]&&e++}},q.eat=function(e){return this.type===e&&(this.next(),!0)},q.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},q.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},q.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},q.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||_.test(this.input.slice(this.lastTokEnd,this.start))},q.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},q.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},q.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},q.expect=function(e){this.eat(e)||this.unexpected()},q.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var Y=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};q.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},q.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,i=e.doubleProto;if(!t)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},q.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&i<56320)return!0;if(d(i,!0)){for(var r=n+1;h(i=this.input.charCodeAt(r),!0);)++r;if(92===i||i>55295&&i<56320)return!0;var o=this.input.slice(n,r);if(!a.test(o))return!0}return!1},K.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var e,t=C.exec(this.input),n=this.pos+t[0].length;return!(_.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(h(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},K.parseStatement=function(e,t,n){var i,r=this.type,o=this.startNode();switch(this.isLet(e)&&(r=b._var,i="let"),r){case b._break:case b._continue:return this.parseBreakContinueStatement(o,r.keyword);case b._debugger:return this.parseDebuggerStatement(o);case b._do:return this.parseDoStatement(o);case b._for:return this.parseForStatement(o);case b._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(o,!0);case b._if:return this.parseIfStatement(o);case b._return:return this.parseReturnStatement(o);case b._switch:return this.parseSwitchStatement(o);case b._throw:return this.parseThrowStatement(o);case b._try:return this.parseTryStatement(o);case b._const:case b._var:return i=i||this.value,e&&"var"!==i&&this.unexpected(),this.parseVarStatement(o,i);case b._while:return this.parseWhileStatement(o);case b._with:return this.parseWithStatement(o);case b.braceL:return this.parseBlock(!0,o);case b.semi:return this.parseEmptyStatement(o);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){C.lastIndex=this.pos;var s=C.exec(this.input),a=this.pos+s[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===b._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,c=this.parseExpression();return r===b.name&&"Identifier"===c.type&&this.eat(b.colon)?this.parseLabeledStatement(o,u,c,e):this.parseExpressionStatement(o,c)}},K.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type!==b.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},K.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(G),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===i.declarations.length?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var o=this.isContextual("let"),s=!1,a=new Y,l=this.parseExpression(!(t>-1)||"await",a);return this.type===b._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&s&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,a),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},K.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Z|(n?0:Q),!1,t)},K.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},K.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},K.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(J),this.enterScope(0);for(var n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var i=this.type===b._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},K.parseThrowStatement=function(e){return this.next(),_.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var X=[];K.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(b.parenR),e},K.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},K.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},K.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(G),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},K.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},K.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},K.parseLabeledStatement=function(e,t,n,i){for(var r=0,o=this.labels;r=0;a--){var l=this.labels[a];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},K.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},K.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var i=this.parseStatement(null);t.body.push(i)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},K.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},K.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},K.parseVar=function(e,t,n,i){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):i||"const"!==n||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?i||"Identifier"===r.id.type||t&&(this.type===b._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(b.comma))break}return e},K.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Z=1,Q=2;function ee(e,t){var n=t.key.name,i=e[n],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===i&&"iset"===r||"iset"===i&&"iget"===r||"sget"===i&&"sset"===r||"sset"===i&&"sget"===r?(e[n]="true",!1):!!i||(e[n]=r,!1)}function te(e,t){var n=e.computed,i=e.key;return!n&&("Identifier"===i.type&&i.name===t||"Literal"===i.type&&i.value===t)}K.parseFunction=function(e,t,n,i,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===b.star&&t&Q&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&Z&&(e.id=4&t&&this.type!==b.name?null:this.parseIdent(),!e.id||t&Q||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope($(e.async,e.generator)),t&Z||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=o,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&Z?"FunctionDeclaration":"FunctionExpression")},K.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},K.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),r=this.startNode(),o=!1;for(r.body=[],this.expect(b.braceL);this.type!==b.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(r.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(o&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),o=!0):s.key&&"PrivateIdentifier"===s.key.type&&ee(i,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},K.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",r=!1,o=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?a=!0:i="static"}if(n.static=a,!i&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==b.star||this.canInsertSemicolon()?i="async":o=!0),!i&&(t>=9||!o)&&this.eat(b.star)&&(r=!0),!i&&!o&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=l:i=l)}if(i?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===b.parenL||"method"!==s||r||o){var u=!n.static&&te(n,"constructor"),c=u&&e;u&&"method"!==s&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=u?"constructor":s,this.parseClassMethod(n,r,o,c)}else this.parseClassField(n);return n},K.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},K.parseClassElementName=function(e){this.type===b.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},K.parseClassMethod=function(e,t,n,i){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&te(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,n,i);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},K.parseClassField=function(e){if(te(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&te(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(b.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},K.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},K.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},K.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},K.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},K.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=0===i?null:this.privateNameStack[i-1],o=0;o=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},K.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,i=e.specifiers;n=13&&this.type===b.string){var e=this.parseLiteral(this.value);return j.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},K.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var ne=z.prototype;ne.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=e.properties;i=8&&!a&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(re.f_expr),this.parseFunction(this.startNodeAt(o,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(o,s),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===b.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(b.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,s),[l],!0,t)}return l;case b.regexp:var u=this.value;return(i=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},i;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(i=this.startNode()).value=this.type===b._null?null:this.type===b._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case b.parenL:var c=this.start,d=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),d;case b.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case b.braceL:return this.overrideContext(re.b_expr),this.parseObj(!1,e);case b._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},se.parseExprAtomDefault=function(){this.unexpected()},se.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},se.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},se.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},se.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},se.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},se.shouldParseArrow=function(e){return!this.canInsertSemicolon()},se.parseParenAndDistinguishExpression=function(e,t){var n,i=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,l=this.startLoc,u=[],c=!0,d=!1,h=new Y,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(c?c=!1:this.expect(b.comma),o&&this.afterTrailingComma(b.parenR,!0)){d=!0;break}if(this.type===b.ellipsis){s=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(u)&&this.eat(b.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(i,r,u,t);u.length&&!d||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,u.length>1?((n=this.startNodeAt(a,l)).expressions=u,this.finishNodeAt(n,"SequenceExpression",m,g)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(i,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},se.parseParenItem=function(e){return e},se.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var le=[];se.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=le,this.finishNode(e,"NewExpression")},se.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,"TemplateElement")},se.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(n.quasis=[i];!i.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},se.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!_.test(this.input.slice(this.lastTokEnd,this.start))},se.parseObj=function(e,t){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(i)i=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,r,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},se.parseProperty=function(e,t){var n,i,r,o,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(r=this.start,o=this.startLoc),e||(n=this.eat(b.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(s)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(s)):i=!1,this.parsePropertyValue(s,e,n,i,r,o,t,a),this.finishNode(s,"Property")},se.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},se.parsePropertyValue=function(e,t,n,i,r,o,s,a){(n||i)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,i)):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===b.comma||this.type===b.braceR||this.type===b.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||i)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,o,this.copyNode(e.key)):this.type===b.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||i)&&this.unexpected(),this.parseGetterSetter(e))},se.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},se.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},se.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|$(t,i.generator)|(n?128:0)),this.expect(b.parenL),i.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(i,"FunctionExpression")},se.parseArrowExpression=function(e,t,n,i){var r=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|$(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},se.parseFunctionBody=function(e,t,n,i){var r=t&&this.type!==b.braceL,o=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!o&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},se.isSimpleParamList=function(e){for(var t=0,n=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();i=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){i=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}i&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},ce.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ce.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ce.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ce.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var he=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new L(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},pe=z.prototype;function fe(e,t,n,i){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=n),e}pe.startNode=function(){return new he(this,this.start,this.startLoc)},pe.startNodeAt=function(e,t){return new he(this,e,t)},pe.finishNode=function(e,t){return fe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},pe.finishNodeAt=function(e,t,n,i){return fe.call(this,e,t,n,i)},pe.copyNode=function(e){var t=new he(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var me,ge,ve="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ye=ve+" Extended_Pictographic",be=ye+" EBase EComp EMod EPres ExtPict",_e={9:ve,10:ye,11:ye,12:be,13:be,14:be},we={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},ke="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",xe="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ee=xe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ce=Ee+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Oe=Ce+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Se=Oe+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Pe={9:xe,10:Ee,11:Ce,12:Oe,13:Se,14:Se+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},Ae={};for(var Me=0,Te=[9,10,11,12,13,14];Me=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ae[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function je(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ie(e){return e>=65&&e<=90||e>=97&&e<=122}De.prototype.reset=function(e,t,n){var i=-1!==n.indexOf("v"),r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},De.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},De.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,i=n.length;if(e>=i)return-1;var r=n.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=i)return r;var o=n.charCodeAt(e+1);return o>=56320&&o<=57343?(r<<10)+o-56613888:r},De.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,i=n.length;if(e>=i)return i;var r,o=n.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=i||(r=n.charCodeAt(e+1))<56320||r>57343?e+1:e+2},De.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},De.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},De.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},De.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},De.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,i=0,r=e;i-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===s&&(i=!0),"v"===s&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(e.start,"Invalid regular expression flag")},Re.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Re.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Re.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Re.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Re.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Re.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Re.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Re.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!je(t)&&(e.lastIntValue=t,e.advance(),!0)},Re.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!je(n);)e.advance();return e.pos!==t},Re.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Re.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Re.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Re.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=D(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=D(e.lastIntValue);return!0}return!1},Re.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},Re.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return e.advance(n),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),function(e){return h(e,!0)||36===e||95===e||8204===e||8205===e}(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)},Re.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Re.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Re.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Re.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Re.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Re.regexp_eatZero=function(e){return 48===e.current()&&!Ve(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Re.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Re.regexp_eatControlLetter=function(e){var t=e.current();return!!Ie(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Re.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(r&&o>=55296&&o<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(o-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=o}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1},Re.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Re.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function Le(e){return Ie(e)||95===e}function Ne(e){return Le(e)||Ve(e)}function Ve(e){return e>=48&&e<=57}function Fe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ue(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Be(e){return e>=48&&e<=55}Re.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var i;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===i&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return 0},Re.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},Re.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){A(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Re.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Re.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Le(t=e.current());)e.lastStringValue+=D(t),e.advance();return""!==e.lastStringValue},Re.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ne(t=e.current());)e.lastStringValue+=D(t),e.advance();return""!==e.lastStringValue},Re.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Re.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},Re.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Re.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Re.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Be(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return 93!==i&&(e.lastIntValue=i,e.advance(),!0)},Re.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Re.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var i=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(i!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},Re.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return-1!==n&&-1!==i&&n>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Re.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Re.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return n&&2===i&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},Re.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},Re.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Re.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Re.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)||(e.advance(),e.lastIntValue=n,0))},Re.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Re.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ve(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Re.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Re.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ve(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Re.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Fe(n=e.current());)e.lastIntValue=16*e.lastIntValue+Ue(n),e.advance();return e.pos!==t},Re.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Re.regexp_eatOctalDigit=function(e){var t=e.current();return Be(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Re.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i=this.input.length?this.finishToken(b.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ze.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ze.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},ze.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var i=void 0,r=t;(i=x(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},ze.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&E.test(String.fromCharCode(e))))break e;++this.pos}}},ze.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ze.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},ze.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},ze.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=42===e?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,i=b.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(b.assign,n+1):this.finishOp(i,n)},ze.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(124===e?b.logicalOR:b.logicalAND,2):61===t?this.finishOp(b.assign,2):this.finishOp(124===e?b.bitwiseOR:b.bitwiseAND,1)},ze.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},ze.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!_.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(b.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},ze.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(b.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ze.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(b.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===e?b.eq:b.prefix,1)},ze.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},ze.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+D(e)+"'")},ze.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+D(e)+"'")},ze.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ze.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(_.test(i)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new De(this));a.reset(n,r,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(r,s)}catch(e){}return this.finishToken(b.regexp,{pattern:r,flags:s,value:l})},ze.readInt=function(e,t,n){for(var i=this.options.ecmaVersion>=12&&void 0===t,r=n&&48===this.input.charCodeAt(this.pos),o=this.pos,s=0,a=0,l=0,u=null==t?1/0:t;l=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;a=c,s=s*e+d}}return i&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:s},ze.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=He(this.input.slice(t,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,n)},ze.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===i){var r=He(this.input.slice(t,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==i||n||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||n||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,s=(o=this.input.slice(t,this.pos),n?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(b.num,s)},ze.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},ze.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===i||8233===i?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(k(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var qe={};ze.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==qe)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ze.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qe;this.raise(e,t)},ze.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==b.template&&this.type!==b.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e)):36===n?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(k(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ze.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),"0"===i&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return k(t)?"":String.fromCharCode(t)}},ze.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ze.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos{"use strict";n.r(t),n.d(t,{cancelAnimationFrame:()=>o,requestAnimationFrame:()=>r});var i=["webkit","moz","ms","o"],r=function(){for(var e=0,t=i.length;e{e.exports="function"==typeof Array.from?Array.from:n(53166)},53166:e=>{var t,n,i,r;e.exports=(t=function(e){return"function"==typeof e},n=Math.pow(2,53)-1,i=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},r=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){"use strict";var n,o,s,a=this,l=arguments.length>1?arguments[1]:void 0;if(void 0!==l){if(!t(l))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var u=function(e,n){if(null!=e&&null!=n){var i=e[n];if(null==i)return;if(!t(i))throw new TypeError(i+" is not a function");return i}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==u){o=t(a)?Object(new a):[];var c,d,h=u.call(e);if(null==h)throw new TypeError("Array.from requires an array-like or iterable object");for(s=0;;){if(!(c=r(h)))return o.length=s,o;d=c.value,o[s]=l?l.call(n,d,s):d,s++}}else{var p=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f,m=i(p.length);for(o=t(a)?Object(new a(m)):new Array(m),s=0;s0){var t=e[0],i=t.previousElementSibling;if(i&&-1!==i.className.indexOf("group")&&!i.previousElementSibling&&(t=i),t.offsetTopo&&(n.scrollTop+=r-o)}}}()}function x(){_()&&k()}function E(){x()}function C(e){e.target!==n?x():e.preventDefault()}function O(){g||M(0)}function S(e,t){var n,r=_();if("Escape"===t)w();else{if(!r||c.length<1)return;"ArrowUp"===t?(n=c.indexOf(i),i=-1===n?void 0:c[(n+c.length-1)%c.length]):function(){var e=c.indexOf(i);i=c.length<1?void 0:-1===e?c[0]:c[(e+1)%c.length]}(),k()}e.preventDefault(),r&&e.stopPropagation()}function P(t){var n=t.key;switch(n){case"ArrowUp":case"ArrowDown":case"Escape":S(t,n);break;case"Enter":!function(t){if(i){g=!0;try{e.onSelect(i,v)}finally{g=!1}w()}a&&t.preventDefault()}(t)}}function A(){p&&M(1)}function M(e){v.value.length>=h||1===e?(b(),r=window.setTimeout((function(){return T(v.value,e,v.selectionStart||0)}),0===e||2===e?s:0)):w()}function T(t,n,r){if(!m){var o=++f;e.fetch(t,(function(e){f===o&&e&&(d=t,i=(c=e).length<1||l?void 0:c[0],k())}),n,r)}}function R(t){e.keyup?e.keyup({event:t,fetch:function(){return M(0)}}):_()||"ArrowDown"!==t.key||M(0)}function D(t){e.click&&e.click({event:t,fetch:function(){return M(2)}})}function j(){setTimeout((function(){t.activeElement!==v&&w()}),200)}return n.className="autocomplete "+(e.className||""),n.setAttribute("role","listbox"),v.setAttribute("role","combobox"),v.setAttribute("aria-expanded","false"),v.setAttribute("aria-autocomplete","list"),v.setAttribute("aria-controls",n.id),v.setAttribute("aria-owns",n.id),v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-haspopup","listbox"),o.position="absolute",n.addEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),n.addEventListener("focus",(function(){return v.focus()})),v.addEventListener("keyup",R),v.addEventListener("click",D),v.addEventListener("keydown",P),v.addEventListener("input",O),v.addEventListener("blur",j),v.addEventListener("focus",A),window.addEventListener("resize",E),t.addEventListener("scroll",C,!0),{destroy:function(){v.removeEventListener("focus",A),v.removeEventListener("keyup",R),v.removeEventListener("click",D),v.removeEventListener("keydown",P),v.removeEventListener("input",O),v.removeEventListener("blur",j),window.removeEventListener("resize",E),t.removeEventListener("scroll",C,!0),v.removeAttribute("role"),v.removeAttribute("aria-expanded"),v.removeAttribute("aria-autocomplete"),v.removeAttribute("aria-controls"),v.removeAttribute("aria-activedescendant"),v.removeAttribute("aria-owns"),v.removeAttribute("aria-haspopup"),b(),w(),m=!0},fetch:function(){T(v.value,3,v.selectionStart||0)}}}}()},81018:(e,t)=>{t.defaults={},t.set=function(e,n,i){var r=i||{},o=t.defaults,s=r.expires||o.expires,a=r.domain||o.domain,l=void 0!==r.path?r.path:void 0!==o.path?o.path:"/",u=void 0!==r.secure?r.secure:o.secure,c=void 0!==r.httponly?r.httponly:o.httponly,d=void 0!==r.samesite?r.samesite:o.samesite,h=s?new Date("number"==typeof s?(new Date).getTime()+864e5*s:s):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(h&&h.getTime()>=0?";expires="+h.toUTCString():"")+(a?";domain="+a:"")+(l?";path="+l:"")+(u?";secure":"")+(c?";httponly":"")+(d?";samesite="+d:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),i=n.indexOf("=");if(i=i<0?n.length:i,decodeURIComponent(n.slice(0,i).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(i+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),i=n.indexOf("=");i=i<0?n.length:i,e[decodeURIComponent(n.slice(0,i).replace(/^\s+/,""))]=decodeURIComponent(n.slice(i+1))}return e}},18092:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(e){var t=function(e,t){return e+t&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(e,n,i,r,o,s){return n=t(t(n,e),t(r,s)),t(n<>>32-o,i)}function r(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function o(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function l(e,n){var i=e[0],l=e[1],u=e[2],c=e[3];i=r(i,l,u,c,n[0],7,-680876936),c=r(c,i,l,u,n[1],12,-389564586),u=r(u,c,i,l,n[2],17,606105819),l=r(l,u,c,i,n[3],22,-1044525330),i=r(i,l,u,c,n[4],7,-176418897),c=r(c,i,l,u,n[5],12,1200080426),u=r(u,c,i,l,n[6],17,-1473231341),l=r(l,u,c,i,n[7],22,-45705983),i=r(i,l,u,c,n[8],7,1770035416),c=r(c,i,l,u,n[9],12,-1958414417),u=r(u,c,i,l,n[10],17,-42063),l=r(l,u,c,i,n[11],22,-1990404162),i=r(i,l,u,c,n[12],7,1804603682),c=r(c,i,l,u,n[13],12,-40341101),u=r(u,c,i,l,n[14],17,-1502002290),i=o(i,l=r(l,u,c,i,n[15],22,1236535329),u,c,n[1],5,-165796510),c=o(c,i,l,u,n[6],9,-1069501632),u=o(u,c,i,l,n[11],14,643717713),l=o(l,u,c,i,n[0],20,-373897302),i=o(i,l,u,c,n[5],5,-701558691),c=o(c,i,l,u,n[10],9,38016083),u=o(u,c,i,l,n[15],14,-660478335),l=o(l,u,c,i,n[4],20,-405537848),i=o(i,l,u,c,n[9],5,568446438),c=o(c,i,l,u,n[14],9,-1019803690),u=o(u,c,i,l,n[3],14,-187363961),l=o(l,u,c,i,n[8],20,1163531501),i=o(i,l,u,c,n[13],5,-1444681467),c=o(c,i,l,u,n[2],9,-51403784),u=o(u,c,i,l,n[7],14,1735328473),i=s(i,l=o(l,u,c,i,n[12],20,-1926607734),u,c,n[5],4,-378558),c=s(c,i,l,u,n[8],11,-2022574463),u=s(u,c,i,l,n[11],16,1839030562),l=s(l,u,c,i,n[14],23,-35309556),i=s(i,l,u,c,n[1],4,-1530992060),c=s(c,i,l,u,n[4],11,1272893353),u=s(u,c,i,l,n[7],16,-155497632),l=s(l,u,c,i,n[10],23,-1094730640),i=s(i,l,u,c,n[13],4,681279174),c=s(c,i,l,u,n[0],11,-358537222),u=s(u,c,i,l,n[3],16,-722521979),l=s(l,u,c,i,n[6],23,76029189),i=s(i,l,u,c,n[9],4,-640364487),c=s(c,i,l,u,n[12],11,-421815835),u=s(u,c,i,l,n[15],16,530742520),i=a(i,l=s(l,u,c,i,n[2],23,-995338651),u,c,n[0],6,-198630844),c=a(c,i,l,u,n[7],10,1126891415),u=a(u,c,i,l,n[14],15,-1416354905),l=a(l,u,c,i,n[5],21,-57434055),i=a(i,l,u,c,n[12],6,1700485571),c=a(c,i,l,u,n[3],10,-1894986606),u=a(u,c,i,l,n[10],15,-1051523),l=a(l,u,c,i,n[1],21,-2054922799),i=a(i,l,u,c,n[8],6,1873313359),c=a(c,i,l,u,n[15],10,-30611744),u=a(u,c,i,l,n[6],15,-1560198380),l=a(l,u,c,i,n[13],21,1309151649),i=a(i,l,u,c,n[4],6,-145523070),c=a(c,i,l,u,n[11],10,-1120210379),u=a(u,c,i,l,n[2],15,718787259),l=a(l,u,c,i,n[9],21,-343485551),e[0]=t(i,e[0]),e[1]=t(l,e[1]),e[2]=t(u,e[2]),e[3]=t(c,e[3])}function u(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function c(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function d(e){var t,n,i,r,o,s,a=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=a;t+=64)l(c,u(e.substring(t-64,t)));for(n=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(l(c,i),t=0;t<16;t+=1)i[t]=0;return r=(r=8*a).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),s=parseInt(r[1],16)||0,i[14]=o,i[15]=s,l(c,i),c}function h(e){var t,n,i,r,o,s,a=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=a;t+=64)l(u,c(e.subarray(t-64,t)));for(n=(e=t-64>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(l(u,i),t=0;t<16;t+=1)i[t]=0;return r=(r=8*a).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),s=parseInt(r[1],16)||0,i[14]=o,i[15]=s,l(u,i),u}function p(e){var t,i="";for(t=0;t<4;t+=1)i+=n[e>>8*t+4&15]+n[e>>8*t&15];return i}function f(e){var t;for(t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,i){var r,o,s,a,l=this.byteLength,u=t(n,l),c=l;return i!==e&&(c=t(i,l)),u>c?new ArrayBuffer(0):(r=c-u,o=new ArrayBuffer(r),s=new Uint8Array(o),a=new Uint8Array(this,u,r),s.set(a),o)}}(),_.prototype.append=function(e){return this.appendBinary(m(e)),this},_.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)l(this._hash,u(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},_.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(o,r),n=f(this._hash),e&&(n=b(n)),this.reset(),n},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},_.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.prototype._finish=function(e,t){var n,i,r,o=t;if(e[o>>2]|=128<<(o%4<<3),o>55)for(l(this._hash,e),o=0;o<16;o+=1)e[o]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),r=parseInt(n[1],16)||0,e[14]=i,e[15]=r,l(this._hash,e)},_.hash=function(e,t){return _.hashBinary(m(e),t)},_.hashBinary=function(e,t){var n=f(d(e));return t?b(n):n},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(e){var t,n=y(this._buff.buffer,e,!0),i=n.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)l(this._hash,c(n.subarray(t-64,t)));return this._buff=t-64>2]|=i[t]<<(t%4<<3);return this._finish(o,r),n=f(this._hash),e&&(n=b(n)),this.reset(),n},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var e=_.prototype.getState.call(this);return e.buff=v(e.buff),e},_.ArrayBuffer.prototype.setState=function(e){return e.buff=g(e.buff,!0),_.prototype.setState.call(this,e)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(e,t){var n=f(h(new Uint8Array(e)));return t?b(n):n},_}()}));return class{md5(t,n,i){this.aborted=!1,this.progress=0;let r=0;const o=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,a=Math.ceil(t.size/s),l=new e.ArrayBuffer,u=new FileReader;function c(){const e=r*s,n=e+s>=t.size?t.size:e+s;u.readAsArrayBuffer(o.call(t,e,n))}c(),u.onloadend=e=>{l.append(e.target.result),r++,this.progress=r/a,i&&"function"==typeof i&&i(this.progress),this.aborted?n("aborted"):r{"use strict";n.r(t),n.d(t,{compare:()=>c,compareVersions:()=>u,satisfies:()=>f,validate:()=>m,validateStrict:()=>g});const i=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,r=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(i);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},o=e=>"*"===e||"x"===e||"X"===e,s=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},a=(e,t)=>{if(o(e)||o(t))return 0;const[n,i]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(s(e),s(t));return n>i?1:n{for(let n=0;n{const n=r(e),i=r(t),o=n.pop(),s=i.pop(),a=l(n,i);return 0!==a?a:o&&s?l(o.split("."),s.split(".")):o||s?o?-1:1:0},c=(e,t,n)=>{p(n);const i=u(e,t);return d[n].includes(i)},d={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},h=Object.keys(d),p=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===h.indexOf(e))throw new Error(`Invalid operator, expected one of ${h.join("|")}`)},f=(e,t)=>{if((t=t.replace(/([><=]+)\s+/g,"$1")).includes("||"))return t.split("||").some((t=>f(e,t)));if(t.includes(" - ")){const[n,i]=t.split(" - ",2);return f(e,`>=${n} <=${i}`)}if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every((t=>f(e,t)));const n=t.match(/^([<>=~^]+)/),i=n?n[1]:"=";if("^"!==i&&"~"!==i)return c(e,t,i);const[o,s,a,,u]=r(e),[d,h,p,,m]=r(t),g=[o,s,a],v=[d,null!=h?h:"x",null!=p?p:"x"];if(m){if(!u)return!1;if(0!==l(g,v))return!1;if(-1===l(u.split("."),m.split(".")))return!1}const y=v.findIndex((e=>"0"!==e))+1,b="~"===i?2:y>1?y:1;return 0===l(g.slice(0,b),v.slice(0,b))&&-1!==l(g.slice(b),v.slice(b))},m=e=>"string"==typeof e&&/^[v\d]/.test(e)&&i.test(e),g=e=>"string"==typeof e&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(e)},34025:(e,t,n)=>{"use strict";var i=n(31803);e.exports=function(e,t){t=t||{};var n=i.boolean(t.allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var i=t.target&&t.target.ownerDocument||document,r=i.documentElement,o=i.body;e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}},74353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",a="week",l="month",u="quarter",c="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var a=t.name;b[a]=t,r=a}return!i&&r&&(y=r),r||!i&&y},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},E=v;E.l=k,E.i=w,E.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return x(e)=0&&(o[d]=parseInt(c,10))}var h=o[3],p=24===h?0:h,f=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",m=+t;return(r.utc(f).valueOf()-(m-=m%1e3))/6e4},l=i.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),a=Math.round((i-new Date(s))/1e3/60),l=r(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-a,!0);if(t){var u=l.utcOffset();l=l.add(n-u,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var i=n&&t,s=n||t||o,l=a(+r(),s);if("string"!=typeof e)return r(e).tz(s);var u=function(e,t,n){var i=e-60*t*1e3,r=a(i,n);if(t===r)return[i,t];var o=a(i-=60*(r-t)*1e3,n);return r===o?[i,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}(r.utc(e,i).valueOf(),l,s),c=u[0],d=u[1],h=r(c).utcOffset(d);return h.$x.$timezone=s,h},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){o=e}}}()},83826:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,r,o){var s=r.prototype;o.utc=function(e){return new r({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=s.utcOffset;s.utcOffset=function(i,r){var o=this.$utils().u;if(o(i))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof i&&(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var r=(""+i[0]).match(n)||["-",0,0],o=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===o?s:-s}(i),null===i))return this;var s=Math.abs(i)<=16?60*i:i,a=this;if(r)return a.$offset=s,a.$u=0===i,a;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var c=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var i=this.local(),r=o(e).local();return h.call(i,r,t,n)}}}()},9866:(e,t,n)=>{"use strict";var i,r=n(31803),o=n(37235),s=n(50727),a=n(43385),l=(i=n(36123))&&"object"==typeof i&&"default"in i?i.default:i;function u(e,t){void 0===t&&(t={});var n=this,i=4,u=!1;this.margin=t.margin||-1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var d={},h=a.createPointCB(d),p=l(),f=!1;window.addEventListener("mousemove",h,!1),window.addEventListener("touchmove",h,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),this.autoScroll=r.boolean(t.autoScroll),this.syncMove=r.boolean(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",h,!1),window.removeEventListener("touchmove",h,!1),window.removeEventListener("mousedown",w,!1),window.removeEventListener("touchstart",w,!1),window.removeEventListener("mouseup",k,!1),window.removeEventListener("touchend",k,!1),window.removeEventListener("pointerup",k,!1),window.removeEventListener("mouseleave",E,!1),window.removeEventListener("mousemove",O,!1),window.removeEventListener("touchmove",O,!1),window.removeEventListener("scroll",_,!0),e=[],t&&x()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.addElements.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.removeElements.apply(void 0,[e].concat(t))};var m,g,v=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),g=e,e=[],g.forEach((function(e){e===window?v=window:n.add(e)})),Object.defineProperties(this,{down:{get:function(){return f}},maxSpeed:{get:function(){return i}},point:{get:function(){return d}},scrolling:{get:function(){return u}}});var y,b=null;function _(t){for(var n=0;nr.right-n.margin?Math.ceil(Math.min(1,(d.x-r.right)/n.margin+1)*n.maxSpeed):0,i=d.yr.bottom-n.margin?Math.ceil(Math.min(1,(d.y-r.bottom)/n.margin+1)*n.maxSpeed):0,n.syncMove()&&p.dispatch(e,{pageX:d.pageX+t,pageY:d.pageY+i,clientX:d.x+t,clientY:d.y+i}),setTimeout((function(){i&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,i),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",w,!1),window.addEventListener("touchstart",w,!1),window.addEventListener("mouseup",k,!1),window.addEventListener("touchend",k,!1),window.addEventListener("pointerup",k,!1),window.addEventListener("mousemove",O,!1),window.addEventListener("touchmove",O,!1),window.addEventListener("mouseleave",E,!1),window.addEventListener("scroll",_,!0)}function c(e,t,n){return n?e.y>n.top&&e.yn.left&&e.x{"use strict";var t,n=void 0;"function"!=typeof Object.create?(t=function(){},n=function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var i=new t;return t.prototype=null,void 0!==n&&Object.defineProperties(i,n),null===e&&(i.__proto__=null),i}):n=Object.create;var i=n,r=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function o(e,t){t=t||{};for(var n=i(e),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n(34025))&&"object"==typeof i&&"default"in i?i.default:i;function o(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+e)}}t.createPointCB=r,t.getClientRect=o,t.pointInside=function(e,t){var n=o(t);return e.y>n.top&&e.yn.left&&e.x{"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(58089)),o=i(n(17749)),s=i(n(7152)),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=function(e){return null!=e&&"object"===(void 0===e?"undefined":a(e))&&1===e.nodeType&&"object"===a(e.style)&&"object"===a(e.ownerDocument)};function u(e){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}else if(s(e))return e}function c(e,t){if(t=p(t,!0),!l(t))return-1;for(var n=0;n0;)t[n]=arguments[n+1];return function(e,t){for(var n=0;n0;)t[n]=arguments[n+1];return t.map(p).reduce((function(t,n){var i=c(e,n);return-1!==i?t.concat(e.splice(i,1)):t}),[])},t.resolveElement=p,t.select=u,t.selectAll=function(e){return"string"==typeof e?Array.prototype.slice.apply(document.querySelectorAll(e)):o(e)?e.map(u):"length"in e?r(e).map(u):void 0}},42838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});const c=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),p=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),y=x(String.prototype.trim),b=x(Object.prototype.hasOwnProperty),_=x(RegExp.prototype.test),w=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let o=i.length;for(;o--;){let t=i[o];if("string"==typeof t){const e=r(t);e!==t&&(n(i)||(i[o]=e),t=e)}e[t]=!0}return e}function C(e){for(let t=0;t/gm),B=s(/\${[\w\W]*}/gm),$=s(/^data-[\-\w.\u00B7-\uFFFF]/),z=s(/^aria-[\-\w]+$/),H=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=s(/^(?:\w+script|data):/i),W=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=s(/^html$/i),K=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:U,TMPLIT_EXPR:B,DATA_ATTR:$,ARIA_ATTR:z,IS_ALLOWED_URI:H,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:W,DOCTYPE_NAME:Y,CUSTOM_ELEMENT:K});const J=1,X=3,Z=7,Q=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const i=e=>t(e);if(i.version="3.1.5",i.removed=[],!n||!n.document||n.document.nodeType!==ee)return i.isSupported=!1,i;let{document:r}=n;const s=r,l=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:k,Node:x,Element:C,NodeFilter:F,NamedNodeMap:U=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:$,trustedTypes:z}=n,q=C.prototype,W=S(q,"cloneNode"),K=S(q,"nextSibling"),ne=S(q,"childNodes"),ie=S(q,"parentNode");if("function"==typeof k){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let re,oe="";const{implementation:se,createNodeIterator:ae,createDocumentFragment:le,getElementsByTagName:ue}=r,{importNode:ce}=s;let de={};i.isSupported="function"==typeof e&&"function"==typeof ie&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:pe,TMPLIT_EXPR:fe,DATA_ATTR:me,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:be}=G;let{IS_ALLOWED_URI:_e}=G,we=null;const ke=E({},[...P,...A,...M,...R,...j]);let xe=null;const Ee=E({},[...I,...L,...N,...V]);let Ce=Object.seal(a(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}})),Oe=null,Se=null,Pe=!0,Ae=!0,Me=!1,Te=!0,Re=!1,De=!0,je=!1,Ie=!1,Le=!1,Ne=!1,Ve=!1,Fe=!1,Ue=!0,Be=!1,$e=!0,ze=!1,He={},qe=null;const We=E({},["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 Ye=null;const Ke=E({},["audio","video","img","source","image","track"]);let Ge=null;const Je=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let et=Qe,tt=!1,nt=null;const it=E({},[Xe,Ze,Qe],f);let rt=null;const ot=["application/xhtml+xml","text/html"];let st=null,at=null;const lt=r.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!at||at!==e){if(e&&"object"==typeof e||(e={}),e=O(e),rt=-1===ot.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===rt?f:p,we=b(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,st):ke,xe=b(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,st):Ee,nt=b(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,f):it,Ge=b(e,"ADD_URI_SAFE_ATTR")?E(O(Je),e.ADD_URI_SAFE_ATTR,st):Je,Ye=b(e,"ADD_DATA_URI_TAGS")?E(O(Ke),e.ADD_DATA_URI_TAGS,st):Ke,qe=b(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,st):We,Oe=b(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,st):{},Se=b(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,st):{},He=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Re=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,je=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Ve=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ue=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||H,et=e.NAMESPACE||Qe,Ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(Ae=!1),Ve&&(Ne=!0),He&&(we=E({},j),xe=[],!0===He.html&&(E(we,P),E(xe,I)),!0===He.svg&&(E(we,A),E(xe,L),E(xe,V)),!0===He.svgFilters&&(E(we,M),E(xe,L),E(xe,V)),!0===He.mathMl&&(E(we,R),E(xe,N),E(xe,V))),e.ADD_TAGS&&(we===ke&&(we=O(we)),E(we,e.ADD_TAGS,st)),e.ADD_ATTR&&(xe===Ee&&(xe=O(xe)),E(xe,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&E(Ge,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(qe===We&&(qe=O(qe)),E(qe,e.FORBID_CONTENTS,st)),$e&&(we["#text"]=!0),je&&E(we,["html","head","body"]),we.table&&(E(we,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=e.TRUSTED_TYPES_POLICY,oe=re.createHTML("")}else void 0===re&&(re=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(z,l)),null!==re&&"string"==typeof oe&&(oe=re.createHTML(""));o&&o(e),at=e}},dt=E({},["mi","mo","mn","ms","mtext"]),ht=E({},["foreignobject","annotation-xml"]),pt=E({},["title","style","font","a","script"]),ft=E({},[...A,...M,...T]),mt=E({},[...R,...D]),gt=function(e){h(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},vt=function(e,t){try{h(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Ne||Ve)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Le)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===rt&&et===Qe&&(e=' '+e+"");const i=re?re.createHTML(e):e;if(et===Qe)try{t=(new $).parseFromString(i,rt)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(et,"template",null);try{t.documentElement.innerHTML=tt?oe:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),et===Qe?ue.call(t,je?"html":"body")[0]:je?t.documentElement:o},bt=function(e){return ae.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof U)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof x&&e instanceof x},kt=function(e,t,n){de[e]&&c(de[e],(e=>{e.call(i,t,n,at)}))},xt=function(e){let t=null;if(kt("beforeSanitizeElements",e,null),_t(e))return gt(e),!0;const n=st(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return gt(e),!0;if(e.nodeType===Z)return gt(e),!0;if(De&&e.nodeType===Q&&_(/<[/\w]/g,e.data))return gt(e),!0;if(!we[n]||Oe[n]){if(!Oe[n]&&Ct(n)){if(Ce.tagNameCheck instanceof RegExp&&_(Ce.tagNameCheck,n))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))return!1}if($e&&!qe[n]){const t=ie(e)||e.parentNode,n=ne(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=W(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,K(e))}}return gt(e),!0}return e instanceof C&&!function(e){let t=ie(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});const n=p(e.tagName),i=p(t.tagName);return!!nt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===i||dt[i]):Boolean(ft[n]):e.namespaceURI===Xe?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Ze?"math"===n&&ht[i]:Boolean(mt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Ze&&!ht[i])&&!(t.namespaceURI===Xe&&!dt[i])&&!mt[n]&&(pt[n]||!ft[n]):!("application/xhtml+xml"!==rt||!nt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Re&&e.nodeType===X&&(t=e.textContent,c([he,pe,fe],(e=>{t=g(t,e," ")})),e.textContent!==t&&(h(i.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(gt(e),!0)},Et=function(e,t,n){if(Ue&&("id"===t||"name"===t)&&(n in r||n in lt))return!1;if(Ae&&!Se[t]&&_(me,t));else if(Pe&&_(ge,t));else if(!xe[t]||Se[t]){if(!(Ct(e)&&(Ce.tagNameCheck instanceof RegExp&&_(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&_(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&_(Ce.tagNameCheck,n)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))))return!1}else if(Ge[t]);else if(_(_e,g(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!Ye[e])if(Me&&!_(ve,g(n,ye,"")));else if(n)return!1;return!0},Ct=function(e){return"annotation-xml"!==e&&m(e,be)},Ot=function(e){kt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};let r=t.length;for(;r--;){const o=t[r],{name:s,namespaceURI:a,value:l}=o,u=st(s);let h="value"===s?l:y(l);if(n.attrName=u,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,kt("uponSanitizeAttribute",e,n),h=n.attrValue,n.forceKeepAttr)continue;if(vt(s,e),!n.keepAttr)continue;if(!Te&&_(/\/>/i,h)){vt(s,e);continue}if(De&&_(/((--!?|])>)|<\/(style|title)/i,h)){vt(s,e);continue}Re&&c([he,pe,fe],(e=>{h=g(h,e," ")}));const p=st(e.nodeName);if(Et(p,u,h)){if(!Be||"id"!==u&&"name"!==u||(vt(s,e),h="user-content-"+h),re&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(a);else switch(z.getAttributeType(p,u)){case"TrustedHTML":h=re.createHTML(h);break;case"TrustedScriptURL":h=re.createScriptURL(h)}try{a?e.setAttributeNS(a,s,h):e.setAttribute(s,h),_t(e)?gt(e):d(i.removed)}catch(e){}}}kt("afterSanitizeAttributes",e,null)},St=function e(t){let n=null;const i=bt(t);for(kt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)kt("uponSanitizeShadowNode",n,null),xt(n)||(n.content instanceof u&&e(n.content),Ot(n));kt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if(tt=!e,tt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Ie||ct(t),i.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){const t=st(e.nodeName);if(!we[t]||Oe[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)n=yt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===J&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Ne&&!Re&&!je&&-1===e.indexOf("<"))return re&&Fe?re.createHTML(e):e;if(n=yt(e),!n)return Ne?null:Fe?oe:""}n&&Le&>(n.firstChild);const l=bt(ze?e:n);for(;o=l.nextNode();)xt(o)||(o.content instanceof u&&St(o.content),Ot(o));if(ze)return e;if(Ne){if(Ve)for(a=le.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(xe.shadowroot||xe.shadowrootmode)&&(a=ce.call(s,a,!0)),a}let d=je?n.outerHTML:n.innerHTML;return je&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(Y,n.ownerDocument.doctype.name)&&(d="\n"+d),Re&&c([he,pe,fe],(e=>{d=g(d,e," ")})),re&&Fe?re.createHTML(d):d},i.setConfig=function(){ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},i.clearConfig=function(){at=null,Ie=!1},i.isValidAttribute=function(e,t,n){at||ct({});const i=st(e),r=st(t);return Et(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],h(de[e],t))},i.removeHook=function(e){if(de[e])return d(de[e])},i.removeHooks=function(e){de[e]&&(de[e]=[])},i.removeAllHooks=function(){de={}},i}()}()},38140:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){return function e(t,n,i){var r,o,s=window,a="application/octet-stream",l=i||a,u=t,c=!n&&!i&&u,d=document.createElement("a"),h=function(e){return String(e)},p=s.Blob||s.MozBlob||s.WebKitBlob||h,f=n||"download";if(p=p.call?p.bind(s):Blob,"true"===String(this)&&(l=(u=[u,l])[0],u=u[1]),c&&c.length<2048&&(f=c.split("/").pop().split("?")[0],d.href=c,-1!==d.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,f,a)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&p!==h))return navigator.msSaveBlob?navigator.msSaveBlob(b(u),f):_(u);l=(u=b(u)).type||a}else if(/([\x80-\xff])/.test(u)){for(var g=0,v=new Uint8Array(u.length),y=v.length;g{e.exports=function e(t,i,r){function o(a,l){if(!i[a]){if(!t[a]){var u=void 0;if(!l&&u)return undefined(a,!0);if(s)return s(a,!0);throw(u=new Error("Cannot find module '"+a+"'")).code="MODULE_NOT_FOUND",n(72427)}u=i[a]={exports:{}},t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,i,r)}return i[a].exports}for(var s=void 0,a=0;ae.left+f(e)/2:i>e.top+m(e)/2)}:function(){var t,o,s,a=e.children.length;for(t=0;tn)return o;if(!r&&s.top+s.height/2>i)return o}return null})()}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var i=e("ticky");t.exports=function(e,t,n){e&&i((function(){e.apply(n||null,t||[])}))}},{ticky:10}],5:[function(e,t,n){"use strict";var i=e("atoa"),r=e("./debounce");t.exports=function(e,t){var n=t||{},o={};return void 0===e&&(e={}),e.on=function(t,n){return o[t]?o[t].push(n):o[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var i=arguments.length;if(1===i)delete o[t];else if(0===i)o={};else{if(!(t=o[t]))return e;t.splice(t.indexOf(n),1)}return e},e.emit=function(){var t=i(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(o[t]||[]).slice(0);return function(){var o=i(arguments),a=this||e;if("error"===t&&!1!==n.throws&&!s.length)throw 1===o.length?o[0]:o;return s.forEach((function(i){n.async?r(i,o,a):i.apply(a,o),i._once&&e.off(t,i)})),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,i){(function(n){"use strict";var i=e("custom-event"),r=e("./eventmap"),o=n.document,s=function(e,t,n,i){return e.addEventListener(t,n,i)},a=function(e,t,n,i){return e.removeEventListener(t,n,i)},l=[];function u(e,t,n){if(t=function(e,t,n){var i,r;for(i=0;i{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=72427,e.exports=t},30228:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new r(i,o||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,s=new Array(o);r-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:l&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&a&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e,t,i,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=v(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},_.call(k.prototype),_.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];E.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,o){return new n((function(n,s){var l=new k(e,o);if(l.signal&&l.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var c=new i;function d(){c.abort()}c.onload=function(){var e,t,i={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};i.url="responseURL"in c?c.responseURL:i.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){n(new E(r,i))}),0)},c.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":u&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof m?l.headers.forEach((function(e,t){c.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){c.setRequestHeader(e,p(o.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=m,r.Request=k,r.Response=E),t.Headers=m,t.Request=k,t.Response=E,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},35543:e=>{"use strict";const t={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||t,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{e(...n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}function o(){let e,t;const n=new Promise(((n,i)=>{e=n,t=i}));return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function a(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}const o="string"!=typeof t?[].concat(t):t.split(".");for(;o.length>1;){if(r())return{};const t=i(o.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function l(e,t,n){const{obj:i,k:r}=a(e,t,Object);i[r]=n}function u(e,t){const{obj:n,k:i}=a(e,t);if(n)return n[i]}function c(e,t,n){for(const i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):c(e[i],t[i],n):e[i]=t[i]);return e}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function p(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>h[e])):e}const f=[" ",",","?","!",";"];function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(n);let r=e;for(let e=0;ee+o;)o++,s=i.slice(e,e+o).join(n),a=r[s];if(void 0===a)return;if(null===a)return null;if(t.endsWith(s)){if("string"==typeof a)return a;if(s&&"string"==typeof a[s])return a[s]}const l=i.slice(e+o).join(n);return l?m(a,l,n):void 0}r=r[i[e]]}return r}function g(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class v extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(s=e.split("."));const a=u(this.data,s);return a||!o||"string"!=typeof n?a:m(this.data&&this.data[e]&&this.data[e][t],n,r)}addResource(e,t,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."),i=t,t=s[1]),this.addNamespaces(t),l(this.data,s,i),r.silent||this.emit("added",e,t,n,i)}addResources(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),i=n,n=t,t=s[1]),this.addNamespaces(t);let a=u(this.data,s)||{};i?c(a,n,r):a={...a,...n},l(this.data,s,a),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var y={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,i,r))})),t}};const b={};class _ extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(r[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const i=f.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===i.length)return!0;const r=new RegExp(`(${i.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!r.test(e);if(!o){const t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(o=!0)}return o}(e,n,i));if(o&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:r};const o=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),e=o.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:`${a}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a}:o}const c=this.resolve(e,t);let d=c&&c.res;const h=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,f=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&"string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d&&["[object Number]","[object Function]","[object RegExp]"].indexOf(f)<0&&("string"!=typeof m||"[object Array]"!==f)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(c.res=e,c):e}if(r){const e="[object Array]"===f,n=e?[]:{},i=e?p:h;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${i}${r}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),n[e]===o&&(n[e]=d[e])}d=n}}else if(g&&"string"==typeof m&&"[object Array]"===f)d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let i=!1,s=!1;const u=void 0!==t.count&&"string"!=typeof t.count,h=_.hasDefaultValue(t),p=u?this.pluralResolver.getSuffix(l,t.count,t):"",f=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(d)&&h&&(i=!0,d=m),this.isValidLookup(d)||(s=!0,d=o);const g=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,v=h&&m!==d&&this.options.updateMissing;if(s||i||v){if(this.logger.log(v?"updateKey":"missingKey",l,a,o,v?m:d),r){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const r=h&&i!==d?i:g;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,n,r,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,n,r,v,t),this.emit("missingKey",e,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{i([e],o+n,t[`defaultValue${n}`]||m)}))})):i(e,o,m))}d=this.extendTranslation(d,e,t,c,n),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,i?d:void 0):this.options.parseMissingKeyHandler(d))}return i?(c.res=d,c):d}extendTranslation(e,t,n,i,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(s){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,s),l=a.key;n=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==s.count&&"string"!=typeof s.count,d=c&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(o=e,!b[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(b[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;r=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,s);else{let e;c&&(e=this.pluralResolver.getSuffix(n,s.count,s));const t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(o.push(l+e),s.ordinal&&0===e.indexOf(i)&&o.push(l+e.replace(i,this.options.pluralSeparator)),d&&o.push(l+t)),h){const n=`${l}${this.options.contextSeparator}${s.context}`;o.push(n),c&&(o.push(n+e),s.ordinal&&0===e.indexOf(i)&&o.push(n+e.replace(i,this.options.pluralSeparator)),d&&o.push(n+t))}}let a;for(;a=o.pop();)this.isValidLookup(t)||(i=a,t=this.getResource(n,e,a,s))})))}))})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}function w(e){return e.charAt(0).toUpperCase()+e.slice(1)}class k{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=g(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=g(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=w(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=w(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=w(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],r=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),n.forEach((e=>{i.indexOf(e)<0&&r(this.formatLanguageCode(e))})),i}}let x=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],E={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const C=["v1","v2","v3"],O=["v4"],S={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),this.options.compatibilityJSON&&!O.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return x.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:E[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(g(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>S[e]-S[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(e,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!C.includes(this.options.compatibilityJSON)}}function A(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){const i=u(e,n);return void 0!==i?i:u(t,n)}(e,t,n);return!o&&r&&"string"==typeof n&&(o=m(e,n,i),void 0===o&&(o=m(t,n,i))),o}class M{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:p,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,i){let r,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const r=A(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...t,interpolationkey:e}):r}const r=e.split(this.formatSeparator),o=r.shift().trim(),s=r.join(this.formatSeparator).trim();return this.format(A(t,l,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...i,...t,interpolationkey:o})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach((t=>{for(a=0;r=t.regex.exec(e);){const n=r[1].trim();if(o=c(n),void 0===o)if("function"==typeof d){const t=d(e,r,i);o="string"==typeof t?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))o="";else{if(h){o=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=s(o));const l=t.safeValue(o);if(e=e.replace(r[0],l),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,i,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const i=e.split(new RegExp(`${n}[ ]*{`));let o=`{${i[1]}`;e=i[0],o=this.interpolate(o,r);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return delete r.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];r={...o},r=r.replace&&"string"!=typeof r.replace?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,u=!0}if(i=t(a.call(this,n[1].trim(),r),r),i&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=s(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),u&&(i=l.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}function T(e){const t={};return function(n,i,r){const o=i+JSON.stringify(r);let s=t[o];return s||(s=e(i,r),t[o]=s),s(n)}}class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:T(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:T(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:T(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:T(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:T(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=T(t)}format(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:r,formatOptions:o}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===t&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((e=>{if(!e)return;const[t,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=r),"false"===r&&(n[t.trim()]=!1),"true"===r&&(n[t.trim()]=!0),isNaN(r)||(n[t.trim()]=parseInt(r,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[r]){let t=e;try{const s=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=s.locale||s.lng||i.locale||i.lng||n;t=this.formats[r](e,a,{...o,...i,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e}),e)}}class D extends r{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,i){const r={},o={},s={},a={};return e.forEach((e=>{let i=!0;t.forEach((t=>{const s=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===a[t]&&(a[t]=!0)))})),i||(s[e]=!0)})),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;const s={};this.queue.forEach((n=>{!function(e,t,n,i){const{obj:r,k:o}=a(e,t,Object);r[o]=r[o]||[],r[o].push(n)}(n.loaded,[r],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{s[e]||(s[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===s[e][t]&&(s[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:r,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}s&&a&&i{this.read.call(this,e,t,n,i+1,2*r,o)}),r):o(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,s);try{const n=a(e,t);n&&"function"==typeof n.then?n.then((e=>s(null,e))).catch(s):s(null,n)}catch(e){s(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const r=this.queueLoad(e,t,n,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(e,t,n,i,a):l(e,t,n,i),r&&"function"==typeof r.then?r.then((e=>s(null,e))).catch(s):s(null,r)}catch(e){s(e)}else l(e,t,n,i,s,a)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}function j(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,i)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function I(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function L(){}class N extends r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=I(e),this.services={},this.logger=i,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=j();function s(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...I(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(s(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=R);const n=new k(this.options);this.store=new v(this.options.resources,this.options);const o=this.services;o.logger=i,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=s(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new M(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new D(s(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=L),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=o(),l=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return t();const e=[],i=t=>{t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{e.indexOf(t)<0&&e.push(t)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>i(e))),this.options.preload&&this.options.preload.forEach((e=>i(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const i=o();return e||(e=this.languages),t||(t=this.options.ns),n||(n=L),this.services.backendConnector.reload(e,t,(e=>{i.resolve(),n(e)})),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&y.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const i=o();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(e,o)=>{o?(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{s(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}getFixedT(e,t,n){var i=this;const r=function(e,t){let o;if("object"!=typeof t){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l`${o.keyPrefix}${u}${e}`)):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,i.t(c,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||i&&!o(r,e)))}loadNamespaces(e,t){const n=o();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=o();"string"==typeof e&&(e=[e]);const i=this.options.preload||[],r=e.filter((e=>i.indexOf(e)<0));return r.length?(this.options.preload=i.concat(r),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new k(j());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new N(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},r=new N(i);return void 0===e.debug&&void 0===e.prefix||(r.logger=r.logger.clone(e)),["store","services","language"].forEach((e=>{r[e]=this[e]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new v(this.store.data,i),r.services.resourceStore=r.store),r.translator=new _(r.services,i),r.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{var t=Array.isArray,n=Object.prototype.toString;e.exports=t||function(e){return!!e&&"[object Array]"==n.call(e)}},7152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e){return null!=e&&"object"===(void 0===e?"undefined":i(e))&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}},22437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=/iPhone/i,r=/iPod/i,o=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,l=/Android/i,u=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,d=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,f=/BB10/i,m=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/Mobile(?:.+)Firefox\b/i,y=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function b(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,b=n.split("[FBAN");void 0!==b[1]&&(n=b[0]),void 0!==(b=n.split("Twitter"))[1]&&(n=b[0]);var _=function(e){return function(t){return t.test(e)}}(n),w={apple:{phone:_(i)&&!_(d),ipod:_(r),tablet:!_(i)&&(_(o)||y(t))&&!_(d),universal:_(s),device:(_(i)||_(r)||_(o)||_(s)||y(t))&&!_(d)},amazon:{phone:_(u),tablet:!_(u)&&_(c),device:_(u)||_(c)},android:{phone:!_(d)&&_(u)||!_(d)&&_(a),tablet:!_(d)&&!_(u)&&!_(a)&&(_(c)||_(l)),device:!_(d)&&(_(u)||_(c)||_(a)||_(l))||_(/\bokhttp\b/i)},windows:{phone:_(d),tablet:_(h),device:_(d)||_(h)},other:{blackberry:_(p),blackberry10:_(f),opera:_(m),firefox:_(v),chrome:_(g),device:_(p)||_(f)||_(m)||_(v)||_(g)},any:!1,phone:!1,tablet:!1};return w.any=w.apple.device||w.android.device||w.windows.device||w.other.device,w.phone=w.apple.phone||w.android.phone||w.windows.phone,w.tablet=w.apple.tablet||w.android.tablet||w.windows.tablet,w}},25063:function(e,t,n){n(48630);var i=function(e,t){"string"==typeof e&&(e=this.parse_(e,"code"));var n=e.constructor;this.newNode=function(){return new n({options:{}})};var r=this.newNode();for(var o in e)r[o]="body"===o?e[o].slice():e[o];this.ast=r,this.tasks=[],this.initFunc_=t,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var s,a=/^step([A-Z]\w*)$/;for(var l in this)"function"==typeof this[l]&&(s=l.match(a))&&(this.stepFunctions_[s[1]]=this[l].bind(this));this.globalScope=this.createScope(this.ast,null),this.globalObject=this.globalScope.object,this.ast=this.parse_(this.polyfills_.join("\n"),"polyfills"),this.polyfills_=void 0,i.stripLocations_(this.ast,void 0,void 0);var u=new i.State(this.ast,this.globalScope);u.done=!1,this.stateStack=[u],this.run(),this.value=void 0,this.ast=r,(u=new i.State(this.ast,this.globalScope)).done=!1,this.stateStack.length=0,this.stateStack[0]=u};i.Completion={NORMAL:0,BREAK:1,CONTINUE:2,RETURN:3,THROW:4},i.Status={DONE:0,STEP:1,TASK:2,ASYNC:3},i.PARSE_OPTIONS={locations:!0,ecmaVersion:5},i.READONLY_DESCRIPTOR={configurable:!0,enumerable:!0,writable:!1},i.NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!0},i.READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!1},i.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!1,enumerable:!1,writable:!1},i.VARIABLE_DESCRIPTOR={configurable:!1,enumerable:!0,writable:!0},i.STEP_ERROR={STEP_ERROR:!0},i.SCOPE_REFERENCE={SCOPE_REFERENCE:!0},i.VALUE_IN_DESCRIPTOR={VALUE_IN_DESCRIPTOR:!0},i.REGEXP_TIMEOUT={REGEXP_TIMEOUT:!0},i.toStringCycles_=[],i.vm=null,i.currentInterpreter_=null,i.nativeGlobal="undefined"==typeof globalThis?this||window:globalThis,i.WORKER_CODE=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"],i.legalArrayLength=function(e){var t=e>>>0;return t===Number(e)?t:NaN},i.legalArrayIndex=function(e){var t=e>>>0;return String(t)===String(e)&&4294967295!==t?t:NaN},i.stripLocations_=function(e,t,n){for(var r in t?e.start=t:delete e.start,n?e.end=n:delete e.end,e)if("loc"!==r&&e.hasOwnProperty(r)){var o=e[r];o&&"object"==typeof o&&i.stripLocations_(o,t,n)}},i.prototype.REGEXP_MODE=1,i.prototype.REGEXP_THREAD_TIMEOUT=1e3,i.prototype.POLYFILL_TIMEOUT=1e3,i.prototype.getterStep_=!1,i.prototype.setterStep_=!1,i.prototype.appendCodeNumber_=0,i.prototype.taskCodeNumber_=0,i.prototype.parse_=function(e,t){var n={};for(var r in i.PARSE_OPTIONS)n[r]=i.PARSE_OPTIONS[r];return n.sourceFile=t,i.nativeGlobal.acorn.parse(e,n)},i.prototype.appendCode=function(e){var t=this.stateStack[0];if(!t||"Program"!==t.node.type)throw Error("Expecting original AST to start with a Program node");if("string"==typeof e&&(e=this.parse_(e,"appendCode"+this.appendCodeNumber_++)),!e||"Program"!==e.type)throw Error("Expecting new AST to start with a Program node");this.populateScope_(e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.variableCache_=null,t.done=!1},i.prototype.step=function(){var e,t=this.stateStack;do{var n=t[t.length-1];if(this.paused_)return!0;if(!n||"Program"===n.node.type&&n.done){if(!this.tasks.length)return!1;if(!(n=this.nextTask_()))return!0}var r=n.node,o=i.currentInterpreter_;i.currentInterpreter_=this;try{var s=this.stepFunctions_[r.type](t,n,r)}catch(e){if(e!==i.STEP_ERROR)throw this.value!==e&&(this.value=void 0),e}finally{i.currentInterpreter_=o}if(s&&t.push(s),this.getterStep_)throw this.value=void 0,Error("Getter not supported in this context");if(this.setterStep_)throw this.value=void 0,Error("Setter not supported in this context");e||r.end||(e=Date.now()+this.POLYFILL_TIMEOUT)}while(!r.end&&e>Date.now());return!0},i.prototype.run=function(){for(;!this.paused_&&this.step(););return this.paused_},i.prototype.getStatus=function(){if(this.paused_)return i.Status.ASYNC;var e=this.stateStack,t=e[e.length-1];if(t&&("Program"!==t.node.type||!t.done))return i.Status.STEP;var n=this.tasks[0];return n?n.time>Date.now()?i.Status.TASK:i.Status.STEP:i.Status.DONE},i.prototype.initGlobal=function(e){this.setProperty(e,"NaN",NaN,i.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"Infinity",1/0,i.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"undefined",void 0,i.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"window",e,i.READONLY_DESCRIPTOR),this.setProperty(e,"this",e,i.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"self",e),this.OBJECT_PROTO=new i.Object(null),this.FUNCTION_PROTO=new i.Object(this.OBJECT_PROTO),this.initFunction(e),this.initObject(e),e.proto=this.OBJECT_PROTO,this.setProperty(e,"constructor",this.OBJECT,i.NONENUMERABLE_DESCRIPTOR),this.initArray(e),this.initString(e),this.initBoolean(e),this.initNumber(e),this.initDate(e),this.initRegExp(e),this.initError(e),this.initMath(e),this.initJSON(e);var t,n=this,r=this.createNativeFunction((function(e){throw EvalError("Can't happen")}),!1);r.eval=!0,this.setProperty(e,"eval",r,i.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"parseInt",this.createNativeFunction(parseInt,!1),i.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"parseFloat",this.createNativeFunction(parseFloat,!1),i.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"isNaN",this.createNativeFunction(isNaN,!1),i.NONENUMERABLE_DESCRIPTOR),this.setProperty(e,"isFinite",this.createNativeFunction(isFinite,!1),i.NONENUMERABLE_DESCRIPTOR);for(var o=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],s=0;s0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},t=function(e){var t=Object(o.pseudoToNative(e));if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var n,i=r(t.length),s=new Array(i),a=0;a>> 0;","var start = arguments[1];","var relativeStart = start >> 0;","var k = relativeStart < 0 ?","Math.max(len + relativeStart, 0) :","Math.min(relativeStart, len);","var end = arguments[2];","var relativeEnd = end === undefined ?","len : end >> 0;","var final = relativeEnd < 0 ?","Math.max(len + relativeEnd, 0) :","Math.min(relativeEnd, len);","while (k < final) {","O[k] = value;","k++;","}","return O;","}","});","Object.defineProperty(Array.prototype, 'copyWithin', {","value: function(target, start/*, end*/) {","if (this == null) {","throw new TypeError('this is null or not defined');","}","var O = Object(this);","var len = O.length >>> 0;","var relativeTarget = target >> 0;","var to = relativeTarget < 0 ?","Math.max(len + relativeTarget, 0) :","Math.min(relativeTarget, len);","var relativeStart = start >> 0;","var from = relativeStart < 0 ?","Math.max(len + relativeStart, 0) :","Math.min(relativeStart, len);","var end = arguments[2];","var relativeEnd = end === undefined ? len : end >> 0;","var final = relativeEnd < 0 ?","Math.max(len + relativeEnd, 0) :","Math.min(relativeEnd, len);","var count = Math.min(final - from, len - to);","var direction = 1;","if (from < to && to < (from + count)) {","direction = -1;","from += count - 1;","to += count - 1;","}","while (count > 0) {","if (from in O) {","O[to] = O[from];","} else {","delete O[to];","}","from += direction;","to += direction;","count--;","}","return O;","}","});","Object.defineProperty(Array.prototype, 'find', {","value: function(predicate) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","var o = Object(this);","var len = o.length >>> 0;","if (typeof predicate !== 'function') {","throw new TypeError('predicate must be a function');","}","var thisArg = arguments[1];","var k = 0;","while (k < len) {","var kValue = o[k];","if (predicate.call(thisArg, kValue, k, o)) {","return kValue;","}","k++;","}","return undefined;","},","configurable: true,","writable: true","});","Object.defineProperty(Array.prototype, 'findIndex', {","value: function(predicate) {","if (this == null) {","throw new TypeError('Array.prototype.findIndex called on null or undefined');","}","if (typeof predicate !== 'function') {","throw new TypeError('predicate must be a function');","}","var list = Object(this);","var length = list.length >>> 0;","var thisArg = arguments[1];","var value;","for (var i = 0; i < length; i++) {","value = list[i];","if (predicate.call(thisArg, value, i, list)) {","return i;","}","}","return -1;","},","configurable: true,","writable: true","});","Object.defineProperty(Array.prototype, 'flat', {","value: function() {","if (this == null) {","throw new TypeError('this is null or not defined');","}","var flattend = [];","(function flat(array) {","array.forEach(function(el) {","if (Array.isArray(el)) flat(el);","else flattend.push(el);","});","})(this);","return flattend;","},","configurable: true,","writable: true","});","Object.defineProperty(Array.prototype, 'includes',","{configurable: true, writable: true, value:","function(searchElement, fromIndex) {","if (this == null) {","throw new TypeError('\"this\" is null or not defined');","}","var o = Object(this);","var len = o.length >>> 0;","if (len === 0) {","return false;","}","var n = fromIndex | 0;","var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","function sameValueZero(x, y) {","return x === y || (typeof x === 'number' && typeof y === 'number' && isNaN(x) && isNaN(y));","}","while (k < len) {","if (sameValueZero(o[k], searchElement)) {","return true;","}","k++;","}","return false;","}","});","createArrayMethod_('pop',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_('push',","function(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_('shift',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_('unshift',","function(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_('reverse',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_('indexOf',","function(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_('lastIndexOf',","function(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_('slice',","function(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_('splice',","function(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 2) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","if (arguments.length > 2) {","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","}","o.length = len;","return removed;","}",");","createArrayMethod_('concat',","function(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_('join',","function(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_('every',","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callback.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_('filter',","function(callback, var_args) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (callback.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_('forEach',","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_('map',","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_('reduce',","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_('reduceRight',","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_('some',","function(callback /*, thisArg*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && callback.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_('sort',","function(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_('toLocaleString',","function() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")},i.prototype.initString=function(e){var t,n=this;t=function(e){return e=arguments.length?i.nativeGlobal.String(e):"",n.calledWithNew()?(this.data=e,this):e},this.STRING=this.createNativeFunction(t,!0),this.setProperty(e,"String",this.STRING,i.NONENUMERABLE_DESCRIPTOR),this.setProperty(this.STRING,"fromCharCode",this.createNativeFunction(String.fromCharCode,!1),i.NONENUMERABLE_DESCRIPTOR);for(var r=["charAt","charCodeAt","concat","indexOf","lastIndexOf","slice","substr","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim"],o=0;o= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + ","str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + ","str.substring(i + substr.length);","}","}","return str;","};","})();","")},i.prototype.initBoolean=function(e){var t,n=this;t=function(e){return e=i.nativeGlobal.Boolean(e),n.calledWithNew()?(this.data=e,this):e},this.BOOLEAN=this.createNativeFunction(t,!0),this.setProperty(e,"Boolean",this.BOOLEAN,i.NONENUMERABLE_DESCRIPTOR)},i.prototype.initNumber=function(e){var t,n=this;t=function(e){return e=arguments.length?i.nativeGlobal.Number(e):0,n.calledWithNew()?(this.data=e,this):e},this.NUMBER=this.createNativeFunction(t,!0),this.setProperty(e,"Number",this.NUMBER,i.NONENUMERABLE_DESCRIPTOR);for(var r=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],o=0;o=0;r--){var o=this.stateStack[r],s=o.node;if("CallExpression"===s.type){var a=o.func_;a&&n.length&&(n[n.length-1].datumName=this.getProperty(a,"name"))}!s.loc||n.length&&"CallExpression"!==s.type||n.push({datumLoc:s.loc})}var l=String(this.getProperty(e,"name"))+": "+String(this.getProperty(e,"message"))+"\n";for(r=0;r0;r.pop()){var o=r[r.length-1];switch(o.node.type){case"TryStatement":return void(o.cv={type:e,value:t,label:n});case"CallExpression":case"NewExpression":if(e===i.Completion.RETURN)return void(o.value=t);if(e===i.Completion.BREAK||e===i.Completion.CONTINUE)throw Error("Unsyntactic break/continue not rejected by Acorn");break;case"Program":if(e===i.Completion.RETURN)return;o.done=!0;break e}if(e===i.Completion.BREAK){if(n?o.labels&&-1!==o.labels.indexOf(n):o.isLoop||o.isSwitch)return void r.pop()}else if(e===i.Completion.CONTINUE&&(n?o.labels&&-1!==o.labels.indexOf(n):o.isLoop))return}var s;if(this.isa(t,this.ERROR)){var a={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},l=String(this.getProperty(t,"name")),u=this.getProperty(t,"message").valueOf();(s=(a[l]||Error)(u)).stack=String(this.getProperty(t,"stack"))}else s=String(t);throw this.value=s,s},i.prototype.nodeSummary=function(e){switch(e.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return this.nodeSummary(e.left)+" "+e.operator+" "+this.nodeSummary(e.right);case"CallExpression":return this.nodeSummary(e.callee)+"(...)";case"ConditionalExpression":return this.nodeSummary(e.test)+" ? "+this.nodeSummary(e.consequent)+" : "+this.nodeSummary(e.alternate);case"Identifier":return e.name;case"Literal":return e.raw;case"MemberExpression":var t=this.nodeSummary(e.object),n=this.nodeSummary(e.property);return e.computed?t+"["+n+"]":t+"."+n;case"NewExpression":return"new "+this.nodeSummary(e.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return e.operator+" "+this.nodeSummary(e.argument);case"UpdateExpression":var i=this.nodeSummary(e.argument);return e.prefix?e.operator+i:i+e.operator}return"???"},i.prototype.createTask_=function(e,t){var n,r,o,s=this.stateStack[this.stateStack.length-1],a=Array.from(t),l=a.shift(),u=Math.max(Number(a.shift()||0),0),c=this.newNode();if(l instanceof i.Object&&"Function"===l.class)r=l,c.type="CallExpression",n=s.scope;else{try{o=this.parse_(String(l),"taskCode"+this.taskCodeNumber_++)}catch(e){this.throwException(this.SYNTAX_ERROR,"Invalid code: "+e.message)}c.type="EvalProgram_",c.body=o.body;var d=s.node.arguments[0],h=d?d.start:void 0,p=d?d.end:void 0;i.stripLocations_(c,h,p),n=this.globalScope,a.length=0}var f=new i.Task(r,a,n,c,e?u:-1);return this.scheduleTask_(f,u),f.pid},i.prototype.scheduleTask_=function(e,t){e.time=Date.now()+t,this.tasks.push(e),this.tasks.sort((function(e,t){return e.time-t.time}))},i.prototype.deleteTask_=function(e){for(var t=0;tDate.now())return null;this.tasks.shift(),e.interval>=0&&this.scheduleTask_(e,e.interval);var t=new i.State(e.node,e.scope);return e.functionRef&&(t.doneCallee_=2,t.funcThis_=this.globalObject,t.func_=e.functionRef,t.doneArgs_=!0,t.arguments_=e.argsArray),t},i.prototype.createGetter_=function(e,t){if(!this.getterStep_)throw Error("Unexpected call to createGetter");this.getterStep_=!1;var n=Array.isArray(t)?t[0]:t,r=this.newNode();r.type="CallExpression";var o=new i.State(r,this.stateStack[this.stateStack.length-1].scope);return o.doneCallee_=2,o.funcThis_=n,o.func_=e,o.doneArgs_=!0,o.arguments_=[],o},i.prototype.createSetter_=function(e,t,n){if(!this.setterStep_)throw Error("Unexpected call to createSetter");this.setterStep_=!1;var r=Array.isArray(t)?t[0]:this.globalObject,o=this.newNode();o.type="CallExpression";var s=new i.State(o,this.stateStack[this.stateStack.length-1].scope);return s.doneCallee_=2,s.funcThis_=r,s.func_=e,s.doneArgs_=!0,s.arguments_=[n],s},i.prototype.boxThis_=function(e){if(null==e)return this.globalObject;if(!(e instanceof i.Object)){var t=this.createObjectProto(this.getPrototype(e));return t.data=e,t}return e},i.prototype.getGlobalScope=function(){return this.globalScope},i.prototype.getStateStack=function(){return this.stateStack},i.prototype.setStateStack=function(e){this.stateStack=e},i.Value,i.State=function(e,t){this.node=e,this.scope=t},i.Scope=function(e,t,n){this.parentScope=e,this.strict=t,this.object=n},i.Object=function(e){this.getter=Object.create(null),this.setter=Object.create(null),this.properties=Object.create(null),this.proto=e},i.Object.prototype.proto=null,i.Object.prototype.class="Object",i.Object.prototype.data=null,i.Object.prototype.toString=function(){if(!i.currentInterpreter_)return"[object Interpreter.Object]";if(!(this instanceof i.Object))return String(this);if("Array"===this.class){(s=i.toStringCycles_).push(this);try{var e=[],t=this.properties.length,n=!1;t>1024&&(t=1e3,n=!0);for(var r=0;r>=":a>>=l;break;case">>>=":a>>>=l;break;case"&=":a&=l;break;case"^=":a^=l;break;case"|=":a|=l;break;default:throw SyntaxError("Unknown assignment expression: "+n.operator)}var u=this.setValue(t.leftReference_,a);if(u)return t.doneSetter_=!0,t.setterValue_=a,this.createSetter_(u,t.leftReference_,a);e.pop(),e[e.length-1].value=a},i.prototype.stepBinaryExpression=function(e,t,n){if(!t.doneLeft_)return t.doneLeft_=!0,new i.State(n.left,t.scope);if(!t.doneRight_)return t.doneRight_=!0,t.leftValue_=t.value,new i.State(n.right,t.scope);e.pop();var r,o=t.leftValue_,s=t.value;switch(n.operator){case"==":r=o==s;break;case"!=":r=o!=s;break;case"===":r=o===s;break;case"!==":r=o!==s;break;case">":r=o>s;break;case">=":r=o>=s;break;case"<":r=o>":r=o>>s;break;case">>>":r=o>>>s;break;case"in":s instanceof i.Object||this.throwException(this.TYPE_ERROR,"'in' expects an object, not '"+s+"'"),r=this.hasProperty(s,o);break;case"instanceof":this.isa(s,this.FUNCTION)||this.throwException(this.TYPE_ERROR,"'instanceof' expects an object, not '"+s+"'"),r=o instanceof i.Object&&this.isa(o,s);break;default:throw SyntaxError("Unknown binary operator: "+n.operator)}e[e.length-1].value=r},i.prototype.stepBlockStatement=function(e,t,n){var r=t.n_||0,o=n.body[r];if(o)return t.n_=r+1,new i.State(o,t.scope);e.pop()},i.prototype.stepBreakStatement=function(e,t,n){var r=n.label&&n.label.name;this.unwind(i.Completion.BREAK,void 0,r)},i.prototype.evalCodeNumber_=0,i.prototype.stepCallExpression=function(e,t,n){if(!t.doneCallee_){t.doneCallee_=1;var r=new i.State(n.callee,t.scope);return r.components=!0,r}if(1===t.doneCallee_){t.doneCallee_=2;var o=t.value;if(Array.isArray(o)){if(t.func_=this.getValue(o),o[0]===i.SCOPE_REFERENCE?t.directEval_="eval"===o[1]:t.funcThis_=o[0],o=t.func_,this.getterStep_)return t.doneCallee_=1,this.createGetter_(o,t.value)}else t.func_=o;t.arguments_=[],t.n_=0}if(o=t.func_,!t.doneArgs_){if(0!==t.n_&&t.arguments_.push(t.value),n.arguments[t.n_])return new i.State(n.arguments[t.n_++],t.scope);if("NewExpression"===n.type){if(o instanceof i.Object&&!o.illegalConstructor||this.throwException(this.TYPE_ERROR,this.nodeSummary(n.callee)+" is not a constructor"),o===this.ARRAY)t.funcThis_=this.createArray();else{var s=o.properties.prototype;"object"==typeof s&&null!==s||(s=this.OBJECT_PROTO),t.funcThis_=this.createObjectProto(s)}t.isConstructor=!0}t.doneArgs_=!0}if(t.doneExec_)e.pop(),t.isConstructor&&"object"!=typeof t.value?e[e.length-1].value=t.funcThis_:e[e.length-1].value=t.value;else{t.doneExec_=!0,o instanceof i.Object||this.throwException(this.TYPE_ERROR,this.nodeSummary(n.callee)+" is not a function");var a=o.node;if(a){for(var l=this.createScope(a.body,o.parentScope),u=this.createArray(),c=0;cc?t.arguments_[c]:void 0;this.setProperty(l.object,d,h)}return l.strict||(t.funcThis_=this.boxThis_(t.funcThis_)),this.setProperty(l.object,"this",t.funcThis_,i.READONLY_DESCRIPTOR),t.value=void 0,new i.State(a.body,l)}if(o.eval){var p=t.arguments_[0];if("string"==typeof p){try{var f=this.parse_(String(p),"eval"+this.evalCodeNumber_++)}catch(e){this.throwException(this.SYNTAX_ERROR,"Invalid code: "+e.message)}var m=this.newNode();return m.type="EvalProgram_",m.body=f.body,i.stripLocations_(m,n.start,n.end),(l=t.directEval_?t.scope:this.globalScope).strict?l=this.createScope(f,l):this.populateScope_(f,l),this.value=void 0,new i.State(m,l)}t.value=p}else if(o.nativeFunc)t.scope.strict||(t.funcThis_=this.boxThis_(t.funcThis_)),t.value=o.nativeFunc.apply(t.funcThis_,t.arguments_);else{if(o.asyncFunc){var g=this,v=o.asyncFunc.length-1,y=t.arguments_.concat(new Array(v)).slice(0,v);return y.push((function(e){t.value=e,g.paused_=!1})),this.paused_=!0,t.scope.strict||(t.funcThis_=this.boxThis_(t.funcThis_)),void o.asyncFunc.apply(t.funcThis_,y)}this.throwException(this.TYPE_ERROR,this.nodeSummary(n.callee)+" is not callable")}}},i.prototype.stepConditionalExpression=function(e,t,n){var r=t.mode_||0;if(0===r)return t.mode_=1,new i.State(n.test,t.scope);if(1===r){t.mode_=2;var o=Boolean(t.value);if(o&&n.consequent)return new i.State(n.consequent,t.scope);if(!o&&n.alternate)return new i.State(n.alternate,t.scope);this.value=void 0}e.pop(),"ConditionalExpression"===n.type&&(e[e.length-1].value=t.value)},i.prototype.stepContinueStatement=function(e,t,n){var r=n.label&&n.label.name;this.unwind(i.Completion.CONTINUE,void 0,r)},i.prototype.stepDebuggerStatement=function(e,t,n){e.pop()},i.prototype.stepDoWhileStatement=function(e,t,n){if("DoWhileStatement"===n.type&&void 0===t.test_&&(t.value=!0,t.test_=!0),!t.test_)return t.test_=!0,new i.State(n.test,t.scope);if(t.value){if(n.body)return t.test_=!1,t.isLoop=!0,new i.State(n.body,t.scope)}else e.pop()},i.prototype.stepEmptyStatement=function(e,t,n){e.pop()},i.prototype.stepEvalProgram_=function(e,t,n){var r=t.n_||0,o=n.body[r];if(o)return t.n_=r+1,new i.State(o,t.scope);e.pop(),e[e.length-1].value=this.value},i.prototype.stepExpressionStatement=function(e,t,n){if(!t.done_)return this.value=void 0,t.done_=!0,new i.State(n.expression,t.scope);e.pop(),this.value=t.value},i.prototype.stepForInStatement=function(e,t,n){if(!t.doneInit_&&(t.doneInit_=!0,n.left.declarations&&n.left.declarations[0].init))return t.scope.strict&&this.throwException(this.SYNTAX_ERROR,"for-in loop variable declaration may not have an initializer"),new i.State(n.left,t.scope);if(!t.doneObject_)return t.doneObject_=!0,t.variable_||(t.variable_=t.value),new i.State(n.right,t.scope);if(t.isLoop||(t.isLoop=!0,t.object_=t.value,t.visited_=Object.create(null)),void 0===t.name_)e:for(;;){if(t.object_ instanceof i.Object){for(t.props_||(t.props_=Object.getOwnPropertyNames(t.object_.properties));void 0!==(r=t.props_.shift());)if(Object.prototype.hasOwnProperty.call(t.object_.properties,r)&&!t.visited_[r]&&(t.visited_[r]=!0,Object.prototype.propertyIsEnumerable.call(t.object_.properties,r))){t.name_=r;break e}}else if(null!==t.object_&&void 0!==t.object_)for(t.props_||(t.props_=Object.getOwnPropertyNames(t.object_));;){var r;if(void 0===(r=t.props_.shift()))break;if(t.visited_[r]=!0,Object.prototype.propertyIsEnumerable.call(t.object_,r)){t.name_=r;break e}}if(t.object_=this.getPrototype(t.object_),t.props_=null,null===t.object_)return void e.pop()}if(!t.doneVariable_){t.doneVariable_=!0;var o=n.left;if("VariableDeclaration"!==o.type){t.variable_=null;var s=new i.State(o,t.scope);return s.components=!0,s}t.variable_=[i.SCOPE_REFERENCE,o.declarations[0].id.name]}if(t.variable_||(t.variable_=t.value),!t.doneSetter_){t.doneSetter_=!0;var a=t.name_,l=this.setValue(t.variable_,a);if(l)return this.createSetter_(l,t.variable_,a)}return t.name_=void 0,t.doneVariable_=!1,t.doneSetter_=!1,n.body?new i.State(n.body,t.scope):void 0},i.prototype.stepForStatement=function(e,t,n){switch(t.mode_){default:if(t.mode_=1,n.init)return new i.State(n.init,t.scope);break;case 1:if(t.mode_=2,n.test)return new i.State(n.test,t.scope);break;case 2:if(t.mode_=3,!n.test||t.value)return t.isLoop=!0,new i.State(n.body,t.scope);e.pop();break;case 3:if(t.mode_=1,n.update)return new i.State(n.update,t.scope)}},i.prototype.stepFunctionDeclaration=function(e,t,n){e.pop()},i.prototype.stepFunctionExpression=function(e,t,n){e.pop();var r=(t=e[e.length-1]).scope;n.id&&(r=this.createSpecialScope(r)),t.value=this.createFunction(n,r,t.destinationName),n.id&&this.setProperty(r.object,n.id.name,t.value,i.READONLY_DESCRIPTOR)},i.prototype.stepIdentifier=function(e,t,n){if(e.pop(),t.components)e[e.length-1].value=[i.SCOPE_REFERENCE,n.name];else{var r=this.getValueFromScope(n.name);if(this.getterStep_){var o=r;return this.createGetter_(o,this.globalObject)}e[e.length-1].value=r}},i.prototype.stepIfStatement=i.prototype.stepConditionalExpression,i.prototype.stepLabeledStatement=function(e,t,n){e.pop();var r=t.labels||[];r.push(n.label.name);var o=new i.State(n.body,t.scope);return o.labels=r,o},i.prototype.stepLiteral=function(e,t,n){e.pop();var i=n.value;if(i instanceof RegExp){var r=this.createObjectProto(this.REGEXP_PROTO);this.populateRegExp(r,i),i=r}e[e.length-1].value=i},i.prototype.stepLogicalExpression=function(e,t,n){if("&&"!==n.operator&&"||"!==n.operator)throw SyntaxError("Unknown logical operator: "+n.operator);if(!t.doneLeft_)return t.doneLeft_=!0,new i.State(n.left,t.scope);if(t.doneRight_)e.pop(),e[e.length-1].value=t.value;else{if(!("&&"===n.operator&&!t.value||"||"===n.operator&&t.value))return t.doneRight_=!0,new i.State(n.right,t.scope);e.pop(),e[e.length-1].value=t.value}},i.prototype.stepMemberExpression=function(e,t,n){if(!t.doneObject_)return t.doneObject_=!0,new i.State(n.object,t.scope);var r;if(n.computed){if(!t.doneProperty_)return t.object_=t.value,t.doneProperty_=!0,new i.State(n.property,t.scope);r=t.value}else t.object_=t.value,r=n.property.name;if(e.pop(),t.components)e[e.length-1].value=[t.object_,r];else{var o=this.getProperty(t.object_,r);if(this.getterStep_){var s=o;return this.createGetter_(s,t.object_)}e[e.length-1].value=o}},i.prototype.stepNewExpression=i.prototype.stepCallExpression,i.prototype.stepObjectExpression=function(e,t,n){var r=t.n_||0,o=n.properties[r];if(t.object_){var s=t.destinationName;t.properties_[s]||(t.properties_[s]={}),t.properties_[s][o.kind]=t.value,t.n_=++r,o=n.properties[r]}else t.object_=this.createObjectProto(this.OBJECT_PROTO),t.properties_=Object.create(null);if(o){if("Identifier"===(a=o.key).type)s=a.name;else{if("Literal"!==a.type)throw SyntaxError("Unknown object structure: "+a.type);s=a.value}return t.destinationName=s,new i.State(o.value,t.scope)}for(var a in t.properties_){var l=t.properties_[a];if("get"in l||"set"in l){var u={configurable:!0,enumerable:!0,get:l.get,set:l.set};this.setProperty(t.object_,a,i.VALUE_IN_DESCRIPTOR,u)}else this.setProperty(t.object_,a,l.init)}e.pop(),e[e.length-1].value=t.object_},i.prototype.stepProgram=function(e,t,n){var r=n.body.shift();if(r)return t.done=!1,new i.State(r,t.scope);t.done=!0},i.prototype.stepReturnStatement=function(e,t,n){if(n.argument&&!t.done_)return t.done_=!0,new i.State(n.argument,t.scope);this.unwind(i.Completion.RETURN,t.value,void 0)},i.prototype.stepSequenceExpression=function(e,t,n){var r=t.n_||0,o=n.expressions[r];if(o)return t.n_=r+1,new i.State(o,t.scope);e.pop(),e[e.length-1].value=t.value},i.prototype.stepSwitchStatement=function(e,t,n){if(!t.test_)return t.test_=1,new i.State(n.discriminant,t.scope);for(1===t.test_&&(t.test_=2,t.switchValue_=t.value,t.defaultCase_=-1);;){var r=t.index_||0,o=n.cases[r];if(t.matched_||!o||o.test)if(o||t.matched_||-1===t.defaultCase_){if(!o)return void e.pop();if(!t.matched_&&!t.tested_&&o.test)return t.tested_=!0,new i.State(o.test,t.scope);if(t.matched_||t.value===t.switchValue_){t.matched_=!0;var s=t.n_||0;if(o.consequent[s])return t.isSwitch=!0,t.n_=s+1,new i.State(o.consequent[s],t.scope)}t.tested_=!1,t.n_=0,t.index_=r+1}else t.matched_=!0,t.index_=t.defaultCase_;else t.defaultCase_=r,t.index_=r+1}},i.prototype.stepThisExpression=function(e,t,n){e.pop(),e[e.length-1].value=this.getValueFromScope("this")},i.prototype.stepThrowStatement=function(e,t,n){if(!t.done_)return t.done_=!0,new i.State(n.argument,t.scope);this.throwException(t.value)},i.prototype.stepTryStatement=function(e,t,n){if(!t.doneBlock_)return t.doneBlock_=!0,new i.State(n.block,t.scope);if(t.cv&&t.cv.type===i.Completion.THROW&&!t.doneHandler_&&n.handler){t.doneHandler_=!0;var r=this.createSpecialScope(t.scope);return this.setProperty(r.object,n.handler.param.name,t.cv.value),t.cv=void 0,new i.State(n.handler.body,r)}if(!t.doneFinalizer_&&n.finalizer)return t.doneFinalizer_=!0,new i.State(n.finalizer,t.scope);e.pop(),t.cv&&this.unwind(t.cv.type,t.cv.value,t.cv.label)},i.prototype.stepUnaryExpression=function(e,t,n){if(!t.done_){t.done_=!0;var r=new i.State(n.argument,t.scope);return r.components="delete"===n.operator,r}e.pop();var o=t.value;switch(n.operator){case"-":o=-o;break;case"+":o=+o;break;case"!":o=!o;break;case"~":o=~o;break;case"delete":var s=!0;if(Array.isArray(o)){var a=o[0];a===i.SCOPE_REFERENCE&&(a=t.scope);var l=String(o[1]);try{delete a.properties[l]}catch(e){t.scope.strict?this.throwException(this.TYPE_ERROR,"Cannot delete property '"+l+"' of '"+a+"'"):s=!1}}o=s;break;case"typeof":o=o&&"Function"===o.class?"function":typeof o;break;case"void":o=void 0;break;default:throw SyntaxError("Unknown unary operator: "+n.operator)}e[e.length-1].value=o},i.prototype.stepUpdateExpression=function(e,t,n){if(!t.doneLeft_){t.doneLeft_=!0;var r=new i.State(n.argument,t.scope);return r.components=!0,r}if(t.leftSide_||(t.leftSide_=t.value),t.doneGetter_&&(t.leftValue_=t.value),!t.doneGetter_){var o=this.getValue(t.leftSide_);if(t.leftValue_=o,this.getterStep_){t.doneGetter_=!0;var s=o;return this.createGetter_(s,t.leftSide_)}}if(t.doneSetter_)return e.pop(),void(e[e.length-1].value=t.setterValue_);var a;if(o=Number(t.leftValue_),"++"===n.operator)a=o+1;else{if("--"!==n.operator)throw SyntaxError("Unknown update expression: "+n.operator);a=o-1}var l=n.prefix?a:o,u=this.setValue(t.leftSide_,a);if(u)return t.doneSetter_=!0,t.setterValue_=l,this.createSetter_(u,t.leftSide_,a);e.pop(),e[e.length-1].value=l},i.prototype.stepVariableDeclaration=function(e,t,n){var r=n.declarations,o=t.n_||0,s=r[o];for(t.init_&&s&&(this.setValueToScope(s.id.name,t.value),t.init_=!1,s=r[++o]);s;){if(s.init)return t.n_=o,t.init_=!0,t.destinationName=s.id.name,new i.State(s.init,t.scope);s=r[++o]}e.pop()},i.prototype.stepWithStatement=function(e,t,n){if(!t.doneObject_)return t.doneObject_=!0,new i.State(n.object,t.scope);e.pop();var r=this.createSpecialScope(t.scope,t.value);return new i.State(n.body,r)},i.prototype.stepWhileStatement=i.prototype.stepDoWhileStatement,i.nativeGlobal.Interpreter=i,i.prototype.step=i.prototype.step,i.prototype.run=i.prototype.run,i.prototype.appendCode=i.prototype.appendCode,i.prototype.createObject=i.prototype.createObject,i.prototype.createObjectProto=i.prototype.createObjectProto,i.prototype.createAsyncFunction=i.prototype.createAsyncFunction,i.prototype.createNativeFunction=i.prototype.createNativeFunction,i.prototype.getProperty=i.prototype.getProperty,i.prototype.setProperty=i.prototype.setProperty,i.prototype.getStatus=i.prototype.getStatus,i.prototype.nativeToPseudo=i.prototype.nativeToPseudo,i.prototype.pseudoToNative=i.prototype.pseudoToNative,i.prototype.getGlobalScope=i.prototype.getGlobalScope,i.prototype.getStateStack=i.prototype.getStateStack,i.prototype.setStateStack=i.prototype.setStateStack,i.VALUE_IN_DESCRIPTOR=i.VALUE_IN_DESCRIPTOR,i.Status=i.Status,e.exports=i},18678:function(e,t,n){var i,r;i=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e=t?[]:i}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,i){if(Array.isArray(n))return n.map((function(t){return e.apply(t,i)}));if(!e.is_logic(n))return n;var r,o,s,a,l,u=e.get_operator(n),c=n[u];if(Array.isArray(c)||(c=[c]),"if"===u||"?:"==u){for(r=0;r0){var d=String(u).split("."),h=t;for(r=0;r{var i,r;(r=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],i=0;i<=11;i++)for(var r=1;r<=28;r++){var o=t(new Date(e.BASELINE_YEAR,i,r));n?n&&n[n.length-1]!==o&&n.push(o):n.push()}return n},i=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),i=t,r=new Date(i).getTimezoneOffset(),s=null,a=null;ir&&(a=l),r=u),i+=864e5}return!(!s||!a)&&{s:o(s).getTime(),e:o(a).getTime()}},o=function t(n,i,r){void 0===i&&(i=e.DAY,r=e.HOUR);for(var o=new Date(n.getTime()-i).getTime(),s=n.getTime()+i,a=new Date(o).getTimezoneOffset(),l=o,u=null;l=i.rules[o].s&&t[o].e<=i.rules[o].e)){r="N/A";break}if(r=0,r+=Math.abs(t[o].s-i.rules[o].s),(r+=Math.abs(i.rules[o].e-t[o].e))>e.MAX_SCORE){r="N/A";break}}return function(e,t,n,i){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===i.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===i.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===i.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===i.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===i.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===i.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,r,i)},o={},s=r.olson.dst_rules.zones,a=s.length,l=e.AMBIGUITIES[n],u=0;u1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"}();return(t||void 0===t)&&(i=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),i||(i=r.olson.timezones[o],void 0!==e.AMBIGUITIES[i]&&(i=s(i))),{name:function(){return i},using_intl:t||void 0===t,needle:o,offsets:n()}}}}()).olson=r.olson||{},r.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},r.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=r:null!==n.amdD&&null!=n.amdO?void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i):window.jstz=r},55580:(e,t,n)=>{var i=n(56110)(n(9325),"DataView");e.exports=i},21549:(e,t,n)=>{var i=n(22032),r=n(63862),o=n(66721),s=n(12749),a=n(35749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var i=n(63702),r=n(70080),o=n(24739),s=n(48655),a=n(31175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var i=n(56110)(n(9325),"Map");e.exports=i},53661:(e,t,n)=>{var i=n(63040),r=n(17670),o=n(90289),s=n(4509),a=n(72949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var i=n(56110)(n(9325),"Promise");e.exports=i},76545:(e,t,n)=>{var i=n(56110)(n(9325),"Set");e.exports=i},38859:(e,t,n)=>{var i=n(53661),r=n(31380),o=n(51459);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t{var i=n(80079),r=n(51420),o=n(90938),s=n(63605),a=n(29817),l=n(80945);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=l,e.exports=u},51873:(e,t,n)=>{var i=n(9325).Symbol;e.exports=i},37828:(e,t,n)=>{var i=n(9325).Uint8Array;e.exports=i},28303:(e,t,n)=>{var i=n(56110)(n(9325),"WeakMap");e.exports=i},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},83729:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n{var i=n(96131);e.exports=function(e,t){return!(null==e||!e.length)&&i(e,t,0)>-1}},29905:e=>{e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i{var i=n(78096),r=n(72428),o=n(56449),s=n(3656),a=n(30361),l=n(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&r(e),d=!n&&!c&&s(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?i(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},34932:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n{var i=n(47237)("length");e.exports=i},61074:e=>{e.exports=function(e){return e.split("")}},16547:(e,t,n)=>{var i=n(43360),r=n(75288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},26025:(e,t,n)=>{var i=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},74733:(e,t,n)=>{var i=n(21791),r=n(95950);e.exports=function(e,t){return e&&i(t,r(t),e)}},43838:(e,t,n)=>{var i=n(21791),r=n(37241);e.exports=function(e,t){return e&&i(t,r(t),e)}},43360:(e,t,n)=>{var i=n(93243);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999:(e,t,n)=>{var i=n(37217),r=n(83729),o=n(16547),s=n(74733),a=n(43838),l=n(93290),u=n(23007),c=n(92271),d=n(48948),h=n(50002),p=n(83349),f=n(5861),m=n(76189),g=n(77199),v=n(35529),y=n(56449),b=n(3656),_=n(87730),w=n(23805),k=n(38440),x=n(95950),E=n(37241),C="[object Arguments]",O="[object Function]",S="[object Object]",P={};P[C]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[S]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[O]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,A,M,T,R){var D,j=1&n,I=2&n,L=4&n;if(A&&(D=T?A(t,M,T,R):A(t)),void 0!==D)return D;if(!w(t))return t;var N=y(t);if(N){if(D=m(t),!j)return u(t,D)}else{var V=f(t),F=V==O||"[object GeneratorFunction]"==V;if(b(t))return l(t,j);if(V==S||V==C||F&&!T){if(D=I||F?{}:v(t),!j)return I?d(t,a(D,t)):c(t,s(D,t))}else{if(!P[V])return T?t:{};D=g(t,V,j)}}R||(R=new i);var U=R.get(t);if(U)return U;R.set(t,D),k(t)?t.forEach((function(i){D.add(e(i,n,A,i,t,R))})):_(t)&&t.forEach((function(i,r){D.set(r,e(i,n,A,r,t,R))}));var B=N?void 0:(L?I?p:h:I?E:x)(t);return r(B||t,(function(i,r){B&&(i=t[r=i]),o(D,r,e(i,n,A,r,t,R))})),D}},39344:(e,t,n)=>{var i=n(23805),r=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},83915:(e,t,n)=>{var i=n(38859),r=n(15325),o=n(29905),s=n(34932),a=n(27301),l=n(19219);e.exports=function(e,t,n,u){var c=-1,d=r,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;n&&(t=s(t,a(n))),u?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new i(t));e:for(;++c{e.exports=function(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o{var i=n(14528),r=n(45891);e.exports=function e(t,n,o,s,a){var l=-1,u=t.length;for(o||(o=r),a||(a=[]);++l0&&o(c)?n>1?e(c,n-1,o,s,a):i(a,c):s||(a[a.length]=c)}return a}},86649:(e,t,n)=>{var i=n(83221)();e.exports=i},30641:(e,t,n)=>{var i=n(86649),r=n(95950);e.exports=function(e,t){return e&&i(e,t,r)}},47422:(e,t,n)=>{var i=n(31769),r=n(77797);e.exports=function(e,t){for(var n=0,o=(t=i(t,e)).length;null!=e&&n{var i=n(14528),r=n(56449);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},72552:(e,t,n)=>{var i=n(51873),r=n(659),o=n(59350),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):o(e)}},20426:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},96131:(e,t,n)=>{var i=n(2523),r=n(85463),o=n(76959);e.exports=function(e,t,n){return t==t?o(e,t,n):i(e,r,n)}},27534:(e,t,n)=>{var i=n(72552),r=n(40346);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},60270:(e,t,n)=>{var i=n(87068),r=n(40346);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,s,e,a))}},87068:(e,t,n)=>{var i=n(37217),r=n(25911),o=n(21986),s=n(50689),a=n(5861),l=n(56449),u=n(3656),c=n(37167),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),_=y?h:a(e),w=b?h:a(t),k=(_=_==d?p:_)==p,x=(w=w==d?p:w)==p,E=_==w;if(E&&u(e)){if(!u(t))return!1;y=!0,k=!1}if(E&&!k)return v||(v=new i),y||c(e)?r(e,t,n,m,g,v):o(e,t,_,n,m,g,v);if(!(1&n)){var C=k&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(C||O){var S=C?e.value():e,P=O?t.value():t;return v||(v=new i),g(S,P,n,m,v)}}return!!E&&(v||(v=new i),s(e,t,n,m,g,v))}},29172:(e,t,n)=>{var i=n(5861),r=n(40346);e.exports=function(e){return r(e)&&"[object Map]"==i(e)}},85463:e=>{e.exports=function(e){return e!=e}},45083:(e,t,n)=>{var i=n(1882),r=n(87296),o=n(23805),s=n(47473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?h:a).test(s(e))}},16038:(e,t,n)=>{var i=n(5861),r=n(40346);e.exports=function(e){return r(e)&&"[object Set]"==i(e)}},4901:(e,t,n)=>{var i=n(72552),r=n(30294),o=n(40346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!s[i(e)]}},88984:(e,t,n)=>{var i=n(55527),r=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903:(e,t,n)=>{var i=n(23805),r=n(55527),o=n(90181),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=r(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},84051:e=>{var t=Math.floor;e.exports=function(e,n){var i="";if(!e||n<1||n>9007199254740991)return i;do{n%2&&(i+=e),(n=t(n/2))&&(e+=e)}while(n);return i}},69302:(e,t,n)=>{var i=n(83488),r=n(56757),o=n(32865);e.exports=function(e,t){return o(r(e,t,i),e+"")}},73170:(e,t,n)=>{var i=n(16547),r=n(31769),o=n(30361),s=n(23805),a=n(77797);e.exports=function(e,t,n,l){if(!s(e))return e;for(var u=-1,c=(t=r(t,e)).length,d=c-1,h=e;null!=h&&++u{var i=n(37334),r=n(93243),o=n(83488),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},25160:e=>{e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i{e.exports=function(e,t){for(var n=-1,i=Array(e);++n{var i=n(51873),r=n(34932),o=n(56449),s=n(44394),a=i?i.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:(e,t,n)=>{var i=n(31800),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},19931:(e,t,n)=>{var i=n(31769),r=n(68090),o=n(68969),s=n(77797);e.exports=function(e,t){return t=i(t,e),null==(e=o(e,t))||delete e[s(r(t))]}},19219:e=>{e.exports=function(e,t){return e.has(t)}},24066:(e,t,n)=>{var i=n(83488);e.exports=function(e){return"function"==typeof e?e:i}},31769:(e,t,n)=>{var i=n(56449),r=n(28586),o=n(61802),s=n(13222);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:o(s(e))}},28754:(e,t,n)=>{var i=n(25160);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},23875:(e,t,n)=>{var i=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&i(t,e[n],0)>-1;);return n}},28380:(e,t,n)=>{var i=n(96131);e.exports=function(e,t){for(var n=-1,r=e.length;++n-1;);return n}},49653:(e,t,n)=>{var i=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},93290:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}},76169:(e,t,n)=>{var i=n(49653);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},73201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},93736:(e,t,n)=>{var i=n(51873),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},71961:(e,t,n)=>{var i=n(49653);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},23007:e=>{e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n{var i=n(16547),r=n(43360);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,l=t.length;++a{var i=n(21791),r=n(4664);e.exports=function(e,t){return i(e,r(e),t)}},48948:(e,t,n)=>{var i=n(21791),r=n(86375);e.exports=function(e,t){return i(e,r(e),t)}},55481:(e,t,n)=>{var i=n(9325)["__core-js_shared__"];e.exports=i},83221:e=>{e.exports=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}},57216:(e,t,n)=>{var i=n(84051),r=n(77556),o=n(28754),s=n(49698),a=n(81993),l=n(63912),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":r(t)).length;if(n<2)return n?i(t,e):t;var c=i(t,u(e/a(t)));return s(t)?o(l(c),0,e).join(""):c.slice(0,e)}},73893:(e,t,n)=>{var i=n(9325),r=n(61489),o=n(99374),s=n(13222),a=i.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=o(e),(n=null==n?0:l(r(n),292))&&a(e)){var i=(s(e)+"e").split("e"),u=t(i[0]+"e"+(+i[1]+n));return+((i=(s(u)+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}},53138:(e,t,n)=>{var i=n(11331);e.exports=function(e){return i(e)?void 0:e}},93243:(e,t,n)=>{var i=n(56110),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},25911:(e,t,n)=>{var i=n(38859),r=n(14248),o=n(19219);e.exports=function(e,t,n,s,a,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f{var i=n(51873),r=n(37828),o=n(75288),s=n(25911),a=n(20317),l=n(84247),u=i?i.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,i,u,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;i|=2,h.set(e,t);var g=s(p(e),p(t),i,u,d,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},50689:(e,t,n)=>{var i=n(50002),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,u=i(e),c=u.length;if(c!=i(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:r.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++d{var i=n(35970),r=n(56757),o=n(32865);e.exports=function(e){return o(r(e,void 0,i),e+"")}},34840:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},50002:(e,t,n)=>{var i=n(82199),r=n(4664),o=n(95950);e.exports=function(e){return i(e,o,r)}},83349:(e,t,n)=>{var i=n(82199),r=n(86375),o=n(37241);e.exports=function(e){return i(e,o,r)}},12651:(e,t,n)=>{var i=n(74218);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},56110:(e,t,n)=>{var i=n(45083),r=n(10392);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},28879:(e,t,n)=>{var i=n(74335)(Object.getPrototypeOf,Object);e.exports=i},659:(e,t,n)=>{var i=n(51873),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}},4664:(e,t,n)=>{var i=n(79770),r=n(63345),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return o.call(e,t)})))}:r;e.exports=a},86375:(e,t,n)=>{var i=n(14528),r=n(28879),o=n(4664),s=n(63345),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,o(e)),e=r(e);return t}:s;e.exports=a},5861:(e,t,n)=>{var i=n(55580),r=n(68223),o=n(32804),s=n(76545),a=n(28303),l=n(72552),u=n(47473),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=u(i),g=u(r),v=u(o),y=u(s),b=u(a),_=l;(i&&_(new i(new ArrayBuffer(1)))!=f||r&&_(new r)!=c||o&&_(o.resolve())!=d||s&&_(new s)!=h||a&&_(new a)!=p)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case m:return f;case g:return c;case v:return d;case y:return h;case b:return p}return t}),e.exports=_},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},49326:(e,t,n)=>{var i=n(31769),r=n(72428),o=n(56449),s=n(30361),a=n(30294),l=n(77797);e.exports=function(e,t,n){for(var u=-1,c=(t=i(t,e)).length,d=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},22032:(e,t,n)=>{var i=n(81042);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721:(e,t,n)=>{var i=n(81042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},12749:(e,t,n)=>{var i=n(81042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},35749:(e,t,n)=>{var i=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},76189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},77199:(e,t,n)=>{var i=n(49653),r=n(76169),o=n(73201),s=n(93736),a=n(71961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return s(e)}}},35529:(e,t,n)=>{var i=n(39344),r=n(28879),o=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:i(r(e))}},45891:(e,t,n)=>{var i=n(51873),r=n(72428),o=n(56449),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||r(e)||!!(s&&e&&e[s])}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e{var i=n(75288),r=n(64894),o=n(30361),s=n(23805);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?r(n)&&o(t,n.length):"string"==a&&t in n)&&i(n[t],e)}},28586:(e,t,n)=>{var i=n(56449),r=n(44394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296:(e,t,n)=>{var i,r=n(55481),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},70080:(e,t,n)=>{var i=n(26025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():r.call(t,n,1),--this.size,0))}},24739:(e,t,n)=>{var i=n(26025);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},48655:(e,t,n)=>{var i=n(26025);e.exports=function(e){return i(this.__data__,e)>-1}},31175:(e,t,n)=>{var i=n(26025);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},63040:(e,t,n)=>{var i=n(21549),r=n(80079),o=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},17670:(e,t,n)=>{var i=n(12651);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},90289:(e,t,n)=>{var i=n(12651);e.exports=function(e){return i(this,e).get(e)}},4509:(e,t,n)=>{var i=n(12651);e.exports=function(e){return i(this,e).has(e)}},72949:(e,t,n)=>{var i=n(12651);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},62224:(e,t,n)=>{var i=n(50104);e.exports=function(e){var t=i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},81042:(e,t,n)=>{var i=n(56110)(Object,"create");e.exports=i},3650:(e,t,n)=>{var i=n(74335)(Object.keys,Object);e.exports=i},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009:(e,t,n)=>{e=n.nmd(e);var i=n(34840),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r&&i.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},56757:(e,t,n)=>{var i=n(91033),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=r(o.length-t,0),l=Array(a);++s{var i=n(47422),r=n(25160);e.exports=function(e,t){return t.length<2?e:i(e,r(t,0,-1))}},9325:(e,t,n)=>{var i=n(34840),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},32865:(e,t,n)=>{var i=n(19570),r=n(51811)(i);e.exports=r},51811:e=>{var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51420:(e,t,n)=>{var i=n(80079);e.exports=function(){this.__data__=new i,this.size=0}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},80945:(e,t,n)=>{var i=n(80079),r=n(68223),o=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},76959:e=>{e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i{var i=n(99811),r=n(49698),o=n(77927);e.exports=function(e){return r(e)?o(e):i(e)}},63912:(e,t,n)=>{var i=n(61074),r=n(49698),o=n(42054);e.exports=function(e){return r(e)?o(e):i(e)}},61802:(e,t,n)=>{var i=n(62224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)})),t}));e.exports=s},77797:(e,t,n)=>{var i=n(44394);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},77927:e=>{var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+u+l+")*",d="(?:"+[o+i+"?",i,s,a,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+d+c,"g");e.exports=function(e){for(var t=h.lastIndex=0;h.test(e);)++t;return t}},42054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+l+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+u+l+")*",d="(?:"+[o+i+"?",i,s,a,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+d+c,"g");e.exports=function(e){return e.match(h)||[]}},21013:(e,t,n)=>{var i=n(25160),r=n(36800),o=n(61489),s=Math.ceil,a=Math.max;e.exports=function(e,t,n){t=(n?r(e,t,n):void 0===t)?1:a(o(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var u=0,c=0,d=Array(s(l/t));u{var i=n(9999);e.exports=function(e){return i(e,4)}},37334:e=>{e.exports=function(e){return function(){return e}}},38221:(e,t,n)=>{var i=n(23805),r=n(10124),o=n(99374),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,u,c,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,i=u;return l=u=void 0,f=t,d=e.apply(i,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=c}function _(){var e=r();if(b(e))return w(e);h=setTimeout(_,function(e){var n=t-(e-p);return g?a(n,c-(e-f)):n}(e))}function w(e){return h=void 0,v&&l?y(e):(l=u=void 0,d)}function k(){var e=r(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(_,t),m?y(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(_,t),y(p)}return void 0===h&&(h=setTimeout(_,t)),d}return t=o(t)||0,i(n)&&(m=!!n.leading,c=(g="maxWait"in n)?s(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},k.flush=function(){return void 0===h?d:w(r())},k}},66245:(e,t,n)=>{var i=n(83915),r=n(83120),o=n(69302),s=n(83693),a=o((function(e,t){return s(e)?i(e,r(t,1,s,!0)):[]}));e.exports=a},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},35970:(e,t,n)=>{var i=n(83120);e.exports=function(e){return null!=e&&e.length?i(e,1):[]}},33215:(e,t,n)=>{var i=n(30641),r=n(24066);e.exports=function(e,t){return e&&i(e,r(t))}},58156:(e,t,n)=>{var i=n(47422);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},61448:(e,t,n)=>{var i=n(20426),r=n(49326);e.exports=function(e,t){return null!=e&&r(e,t,i)}},83488:e=>{e.exports=function(e){return e}},72428:(e,t,n)=>{var i=n(27534),r=n(40346),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},56449:e=>{var t=Array.isArray;e.exports=t},64894:(e,t,n)=>{var i=n(1882),r=n(30294);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},83693:(e,t,n)=>{var i=n(64894),r=n(40346);e.exports=function(e){return r(e)&&i(e)}},3656:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=n(89935),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},2404:(e,t,n)=>{var i=n(60270);e.exports=function(e,t){return i(e,t)}},1882:(e,t,n)=>{var i=n(72552),r=n(23805);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730:(e,t,n)=>{var i=n(29172),r=n(27301),o=n(86009),s=o&&o.isMap,a=s?r(s):i;e.exports=a},11741:(e,t,n)=>{var i=n(98023);e.exports=function(e){return i(e)&&e!=+e}},69843:e=>{e.exports=function(e){return null==e}},98023:(e,t,n)=>{var i=n(72552),r=n(40346);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==i(e)}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},11331:(e,t,n)=>{var i=n(72552),r=n(28879),o=n(40346),s=Function.prototype,a=Object.prototype,l=s.toString,u=a.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=i(e))return!1;var t=r(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},38440:(e,t,n)=>{var i=n(16038),r=n(27301),o=n(86009),s=o&&o.isSet,a=s?r(s):i;e.exports=a},85015:(e,t,n)=>{var i=n(72552),r=n(56449),o=n(40346);e.exports=function(e){return"string"==typeof e||!r(e)&&o(e)&&"[object String]"==i(e)}},44394:(e,t,n)=>{var i=n(72552),r=n(40346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},37167:(e,t,n)=>{var i=n(4901),r=n(27301),o=n(86009),s=o&&o.isTypedArray,a=s?r(s):i;e.exports=a},95950:(e,t,n)=>{var i=n(70695),r=n(88984),o=n(64894);e.exports=function(e){return o(e)?i(e):r(e)}},37241:(e,t,n)=>{var i=n(70695),r=n(72903),o=n(64894);e.exports=function(e){return o(e)?i(e,!0):r(e)}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},2543:function(e,t,n){var i;e=n.nmd(e),function(){var r,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=32,u=128,c=1/0,d=9007199254740991,h=NaN,p=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",k="[object Map]",x="[object Number]",E="[object Object]",C="[object Promise]",O="[object RegExp]",S="[object Set]",P="[object String]",A="[object Symbol]",M="[object WeakMap]",T="[object ArrayBuffer]",R="[object DataView]",D="[object Float32Array]",j="[object Float64Array]",I="[object Int8Array]",L="[object Int16Array]",N="[object Int32Array]",V="[object Uint8Array]",F="[object Uint8ClampedArray]",U="[object Uint16Array]",B="[object Uint32Array]",$=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Y=RegExp(q.source),K=RegExp(W.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="["+we+"]",Ae="["+Se+"]",Me="["+ke+"]",Te="\\d+",Re="["+xe+"]",De="["+Ee+"]",je="[^"+we+Se+Te+xe+Ee+Ce+"]",Ie="\\ud83c[\\udffb-\\udfff]",Le="[^"+we+"]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Ce+"]",Ue="\\u200d",Be="(?:"+De+"|"+je+")",$e="(?:"+Fe+"|"+je+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Me+"|"+Ie+")?",We="["+Oe+"]?",Ye=We+qe+"(?:"+Ue+"(?:"+[Le,Ne,Ve].join("|")+")"+We+qe+")*",Ke="(?:"+[Re,Ne,Ve].join("|")+")"+Ye,Ge="(?:"+[Le+Me+"?",Me,Ne,Ve,Pe].join("|")+")",Je=RegExp("['’]","g"),Xe=RegExp(Me,"g"),Ze=RegExp(Ie+"(?="+Ie+")|"+Ge+Ye,"g"),Qe=RegExp([Fe+"?"+De+"+"+ze+"(?="+[Ae,Fe,"$"].join("|")+")",$e+"+"+He+"(?="+[Ae,Fe+Be,"$"].join("|")+")",Fe+"?"+Be+"+"+ze,Fe+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Ke].join("|"),"g"),et=RegExp("["+Ue+we+ke+Oe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,rt={};rt[D]=rt[j]=rt[I]=rt[L]=rt[N]=rt[V]=rt[F]=rt[U]=rt[B]=!0,rt[m]=rt[g]=rt[T]=rt[v]=rt[R]=rt[y]=rt[b]=rt[_]=rt[k]=rt[x]=rt[E]=rt[O]=rt[S]=rt[P]=rt[M]=!1;var ot={};ot[m]=ot[g]=ot[T]=ot[R]=ot[v]=ot[y]=ot[D]=ot[j]=ot[I]=ot[L]=ot[N]=ot[k]=ot[x]=ot[E]=ot[O]=ot[S]=ot[P]=ot[A]=ot[V]=ot[F]=ot[U]=ot[B]=!0,ot[b]=ot[_]=ot[M]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,ft=pt&&pt.exports===ht,mt=ft&&ut.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,_t=gt&>.isRegExp,wt=gt&>.isSet,kt=gt&>.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r-1}function Mt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var en=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,i=e.length,r=0,o=[];++n",""":'"',"'":"'"}),fn=function e(t){var n,i=(t=null==t?dt:fn.defaults(dt.Object(),t,fn.pick(dt,nt))).Array,re=t.Date,we=t.Error,ke=t.Function,xe=t.Math,Ee=t.Object,Ce=t.RegExp,Oe=t.String,Se=t.TypeError,Pe=i.prototype,Ae=ke.prototype,Me=Ee.prototype,Te=t["__core-js_shared__"],Re=Ae.toString,De=Me.hasOwnProperty,je=0,Ie=(n=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Me.toString,Ne=Re.call(Ee),Ve=dt._,Fe=Ce("^"+Re.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ft?t.Buffer:r,Be=t.Symbol,$e=t.Uint8Array,ze=Ue?Ue.allocUnsafe:r,He=sn(Ee.getPrototypeOf,Ee),qe=Ee.create,We=Me.propertyIsEnumerable,Ye=Pe.splice,Ke=Be?Be.isConcatSpreadable:r,Ge=Be?Be.iterator:r,Ze=Be?Be.toStringTag:r,et=function(){try{var e=lo(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=re&&re.now!==dt.Date.now&&re.now,ct=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=xe.ceil,pt=xe.floor,mt=Ee.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:r,Lt=t.isFinite,Ht=Pe.join,mn=sn(Ee.keys,Ee),gn=xe.max,vn=xe.min,yn=re.now,bn=t.parseInt,_n=xe.random,wn=Pe.reverse,kn=lo(t,"DataView"),xn=lo(t,"Map"),En=lo(t,"Promise"),Cn=lo(t,"Set"),On=lo(t,"WeakMap"),Sn=lo(Ee,"create"),Pn=On&&new On,An={},Mn=No(kn),Tn=No(xn),Rn=No(En),Dn=No(Cn),jn=No(On),In=Be?Be.prototype:r,Ln=In?In.valueOf:r,Nn=In?In.toString:r;function Vn(e){if(ea(e)&&!zs(e)&&!(e instanceof $n)){if(e instanceof Bn)return e;if(De.call(e,"__wrapped__"))return Vo(e)}return new Bn(e)}var Fn=function(){function e(){}return function(t){if(!Qs(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Un(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function si(e,t,n,i,o,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=o?n(e,i,o,s):n(e)),a!==r)return a;if(!Qs(e))return e;var d=zs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Or(e,a)}else{var h=ho(e),p=h==_||h==w;if(Ys(e))return _r(e,l);if(h==E||h==m||p&&!o){if(a=u||p?{}:fo(e),!l)return u?function(e,t){return Sr(e,co(e),t)}(e,function(e,t){return e&&Sr(t,Ta(t),e)}(a,e)):function(e,t){return Sr(e,uo(e),t)}(e,ni(a,e))}else{if(!ot[h])return o?e:{};a=function(e,t,n){var i,r=e.constructor;switch(t){case T:return wr(e);case v:case y:return new r(+e);case R:return function(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case j:case I:case L:case N:case V:case F:case U:case B:return kr(e,n);case k:return new r;case x:case P:return new r(e);case O:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new r;case A:return i=e,Ln?Ee(Ln.call(i)):{}}}(e,h,l)}}s||(s=new Yn);var f=s.get(e);if(f)return f;s.set(e,a),oa(e)?e.forEach((function(i){a.add(si(i,t,n,i,e,s))})):ta(e)&&e.forEach((function(i,r){a.set(r,si(i,t,n,r,e,s))}));var g=d?r:(c?u?to:eo:u?Ta:Ma)(e);return Ct(g||e,(function(i,r){g&&(i=e[r=i]),Qn(a,r,si(i,t,n,r,e,s))})),a}function ai(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ee(e);i--;){var o=n[i],s=t[o],a=e[o];if(a===r&&!(o in e)||!s(a))return!1}return!0}function li(e,t,n){if("function"!=typeof e)throw new Se(o);return Po((function(){e.apply(r,n)}),t)}function ui(e,t,n,i){var r=-1,o=At,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Tt(t,Gt(n))),i?(o=Mt,s=!1):t.length>=200&&(o=Xt,s=!1,t=new Wn(t));e:for(;++r-1},Hn.prototype.set=function(e,t){var n=this.__data__,i=ei(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(xn||Hn),string:new zn}},qn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return so(this,e).get(e)},qn.prototype.has=function(e){return so(this,e).has(e)},qn.prototype.set=function(e,t){var n=so(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,s),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var i=n.__data__;if(!xn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(i)}return n.set(e,t),this.size=n.size,this};var ci=Mr(yi),di=Mr(bi,!0);function hi(e,t){var n=!0;return ci(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function pi(e,t,n){for(var i=-1,o=e.length;++i0&&n(a)?t>1?mi(a,t-1,n,i,r):Rt(r,a):i||(r[r.length]=a)}return r}var gi=Tr(),vi=Tr(!0);function yi(e,t){return e&&gi(e,t,Ma)}function bi(e,t){return e&&vi(e,t,Ma)}function _i(e,t){return Pt(t,(function(t){return Js(e[t])}))}function wi(e,t){for(var n=0,i=(t=gr(t,e)).length;null!=e&&nt}function Ci(e,t){return null!=e&&De.call(e,t)}function Oi(e,t){return null!=e&&t in Ee(e)}function Si(e,t,n){for(var o=n?Mt:At,s=e[0].length,a=e.length,l=a,u=i(a),c=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Tt(h,Gt(t))),c=vn(h.length,c),u[l]=!n&&(t||s>=120&&h.length>=120)?new Wn(l&&h):r}h=e[0];var p=-1,f=u[0];e:for(;++p=a?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}));i--;)e[i]=e[i].value;return e}(r)}function $i(e,t,n){for(var i=-1,r=t.length,o={};++i-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;go(r)?Ye.call(e,r,1):lr(e,r)}}return e}function qi(e,t){return e+pt(_n()*(t-e+1))}function Wi(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Yi(e,t){return Ao(Eo(e,t,nl),e+"")}function Ki(e){return Gn(Fa(e))}function Gi(e,t){var n=Fa(e);return Ro(n,oi(t,0,n.length))}function Ji(e,t,n,i){if(!Qs(e))return e;for(var o=-1,s=(t=gr(t,e)).length,a=s-1,l=e;null!=l&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=i(o);++r>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s=200){var u=t?null:Wr(e);if(u)return ln(u);s=!1,r=Xt,l=new Wn}else l=t?[]:a;e:for(;++i=i?e:er(e,t,n)}var br=st||function(e){return dt.clearTimeout(e)};function _r(e,t){if(t)return e.slice();var n=e.length,i=ze?ze(n):new e.constructor(n);return e.copy(i),i}function wr(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function kr(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xr(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,s=aa(e),a=t!==r,l=null===t,u=t==t,c=aa(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||i&&a&&u||!n&&u||!o)return 1;if(!i&&!s&&!c&&e1?n[o-1]:r,a=o>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(o--,s):r,a&&vo(n[0],n[1],a)&&(s=o<3?r:s,o=1),t=Ee(t);++i-1?o[s?t[a]:a]:r}}function Lr(e){return Qr((function(t){var n=t.length,i=n,s=Bn.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Se(o);if(s&&!l&&"wrapper"==io(a))var l=new Bn([],!0)}for(i=l?i:n;++i1&&_.reverse(),p&&dl))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,p=!0,f=2&n?new Wn:r;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Ct(f,(function(n){var i="_."+n[0];t&n[1]&&!At(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(i),n)))}function To(e){var t=0,n=0;return function(){var i=yn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Ro(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,rs(e,n)}));function ds(e){var t=Vn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=Qr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $n&&go(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:r}),new Bn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(o)})),fs=Pr((function(e,t,n){De.call(e,n)?++e[n]:ii(e,n,1)})),ms=Ir($o),gs=Ir(zo);function vs(e,t){return(zs(e)?Ct:ci)(e,oo(t,3))}function ys(e,t){return(zs(e)?Ot:di)(e,oo(t,3))}var bs=Pr((function(e,t,n){De.call(e,n)?e[n].push(t):ii(e,n,[t])})),_s=Yi((function(e,t,n){var r=-1,o="function"==typeof t,s=qs(e)?i(e.length):[];return ci(e,(function(e){s[++r]=o?xt(t,e,n):Pi(e,t,n)})),s})),ws=Pr((function(e,t,n){ii(e,n,t)}));function ks(e,t){return(zs(e)?Tt:Li)(e,oo(t,3))}var xs=Pr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Es=Yi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),Bi(e,mi(t,1),[])})),Cs=ut||function(){return dt.Date.now()};function Os(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Kr(e,u,r,r,r,r,t)}function Ss(e,t){var n;if("function"!=typeof t)throw new Se(o);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ps=Yi((function(e,t,n){var i=1;if(n.length){var r=an(n,ro(Ps));i|=l}return Kr(e,i,t,n,r)})),As=Yi((function(e,t,n){var i=3;if(n.length){var r=an(n,ro(As));i|=l}return Kr(t,i,e,n,r)}));function Ms(e,t,n){var i,s,a,l,u,c,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Se(o);function m(t){var n=i,o=s;return i=s=r,d=t,l=e.apply(o,n)}function g(e){var n=e-c;return c===r||n>=t||n<0||p&&e-d>=a}function v(){var e=Cs();if(g(e))return y(e);u=Po(v,function(e){var n=t-(e-c);return p?vn(n,a-(e-d)):n}(e))}function y(e){return u=r,f&&i?m(e):(i=s=r,l)}function b(){var e=Cs(),n=g(e);if(i=arguments,s=this,c=e,n){if(u===r)return function(e){return d=e,u=Po(v,t),h?m(e):l}(c);if(p)return br(u),u=Po(v,t),m(c)}return u===r&&(u=Po(v,t)),l}return t=ma(t)||0,Qs(n)&&(h=!!n.leading,a=(p="maxWait"in n)?gn(ma(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){u!==r&&br(u),d=0,i=c=s=u=r},b.flush=function(){return u===r?l:y(Cs())},b}var Ts=Yi((function(e,t){return li(e,1,t)})),Rs=Yi((function(e,t,n){return li(e,ma(t)||0,n)}));function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(o);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Ds.Cache||qn),n}function js(e){if("function"!=typeof e)throw new Se(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ds.Cache=qn;var Is=vr((function(e,t){var n=(t=1==t.length&&zs(t[0])?Tt(t[0],Gt(oo())):Tt(mi(t,1),Gt(oo()))).length;return Yi((function(i){for(var r=-1,o=vn(i.length,n);++r=t})),$s=Ai(function(){return arguments}())?Ai:function(e){return ea(e)&&De.call(e,"callee")&&!We.call(e,"callee")},zs=i.isArray,Hs=vt?Gt(vt):function(e){return ea(e)&&xi(e)==T};function qs(e){return null!=e&&Zs(e.length)&&!Js(e)}function Ws(e){return ea(e)&&qs(e)}var Ys=gt||ml,Ks=yt?Gt(yt):function(e){return ea(e)&&xi(e)==y};function Gs(e){if(!ea(e))return!1;var t=xi(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Js(e){if(!Qs(e))return!1;var t=xi(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==pa(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Gt(bt):function(e){return ea(e)&&ho(e)==k};function na(e){return"number"==typeof e||ea(e)&&xi(e)==x}function ia(e){if(!ea(e)||xi(e)!=E)return!1;var t=He(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Ne}var ra=_t?Gt(_t):function(e){return ea(e)&&xi(e)==O},oa=wt?Gt(wt):function(e){return ea(e)&&ho(e)==S};function sa(e){return"string"==typeof e||!zs(e)&&ea(e)&&xi(e)==P}function aa(e){return"symbol"==typeof e||ea(e)&&xi(e)==A}var la=kt?Gt(kt):function(e){return ea(e)&&Zs(e.length)&&!!rt[xi(e)]},ua=zr(Ii),ca=zr((function(e,t){return e<=t}));function da(e){if(!e)return[];if(qs(e))return sa(e)?dn(e):Or(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=ho(e);return(t==k?on:t==S?ln:Fa)(e)}function ha(e){return e?(e=ma(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function fa(e){return e?oi(pa(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return h;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=fe.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?h:+e}function ga(e){return Sr(e,Ta(e))}function va(e){return null==e?"":sr(e)}var ya=Ar((function(e,t){if(wo(t)||qs(t))Sr(t,Ma(t),e);else for(var n in t)De.call(t,n)&&Qn(e,n,t[n])})),ba=Ar((function(e,t){Sr(t,Ta(t),e)})),_a=Ar((function(e,t,n,i){Sr(t,Ta(t),e,i)})),wa=Ar((function(e,t,n,i){Sr(t,Ma(t),e,i)})),ka=Qr(ri),xa=Yi((function(e,t){e=Ee(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&vo(t[0],t[1],o)&&(i=1);++n1),t})),Sr(e,to(e),n),i&&(n=si(n,7,Xr));for(var r=t.length;r--;)lr(n,t[r]);return n})),Ia=Qr((function(e,t){return null==e?{}:function(e,t){return $i(e,t,(function(t,n){return Oa(e,n)}))}(e,t)}));function La(e,t){if(null==e)return{};var n=Tt(to(e),(function(e){return[e]}));return t=oo(t),$i(e,n,(function(e,n){return t(e,n[0])}))}var Na=Yr(Ma),Va=Yr(Ta);function Fa(e){return null==e?[]:Jt(e,Ma(e))}var Ua=Dr((function(e,t,n){return t=t.toLowerCase(),e+(n?Ba(t):t)}));function Ba(e){return Ga(va(e).toLowerCase())}function $a(e){return(e=va(e))&&e.replace(ye,en).replace(Xe,"")}var za=Dr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ha=Dr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qa=Rr("toLowerCase"),Wa=Dr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ya=Dr((function(e,t,n){return e+(n?" ":"")+Ga(t)})),Ka=Dr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ga=Rr("toUpperCase");function Ja(e,t,n){return e=va(e),(t=n?r:t)===r?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xa=Yi((function(e,t){try{return xt(e,r,t)}catch(e){return Gs(e)?e:new we(e)}})),Za=Qr((function(e,t){return Ct(t,(function(t){t=Lo(t),ii(e,t,Ps(e[t],e))})),e}));function Qa(e){return function(){return e}}var el=Lr(),tl=Lr(!0);function nl(e){return e}function il(e){return Di("function"==typeof e?e:si(e,1))}var rl=Yi((function(e,t){return function(n){return Pi(n,e,t)}})),ol=Yi((function(e,t){return function(n){return Pi(e,n,t)}}));function sl(e,t,n){var i=Ma(t),r=_i(t,i);null!=n||Qs(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=_i(t,Ma(t)));var o=!(Qs(n)&&"chain"in n&&!n.chain),s=Js(e);return Ct(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Or(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Rt([this.value()],arguments))})})),e}function al(){}var ll=Ur(Tt),ul=Ur(St),cl=Ur(It);function dl(e){return yo(e)?zt(Lo(e)):function(e){return function(t){return wi(t,e)}}(e)}var hl=$r(),pl=$r(!0);function fl(){return[]}function ml(){return!1}var gl,vl=Fr((function(e,t){return e+t}),0),yl=qr("ceil"),bl=Fr((function(e,t){return e/t}),1),_l=qr("floor"),wl=Fr((function(e,t){return e*t}),1),kl=qr("round"),xl=Fr((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Se(o);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Os,Vn.assign=ya,Vn.assignIn=ba,Vn.assignInWith=_a,Vn.assignWith=wa,Vn.at=ka,Vn.before=Ss,Vn.bind=Ps,Vn.bindAll=Za,Vn.bindKey=As,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Vn.chain=ds,Vn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===r)?1:gn(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=i(ht(o/t));so?0:o+n),(i=i===r||i>o?o:pa(i))<0&&(i+=o),i=n>i?0:fa(i);n>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!ra(t))&&!(t=sr(t))&&rn(e)?yr(dn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Se(o);return t=null==t?0:gn(pa(t),0),Yi((function(n){var i=n[t],r=yr(n,0,t);return i&&Rt(r,i),xt(e,this,r)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?er(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?er(e,0,(t=n||t===r?1:pa(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?er(e,(t=i-(t=n||t===r?1:pa(t)))<0?0:t,i):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?cr(e,oo(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?cr(e,oo(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Se(o);return Qs(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ms(e,t,{leading:i,maxWait:t,trailing:r})},Vn.thru=hs,Vn.toArray=da,Vn.toPairs=Na,Vn.toPairsIn=Va,Vn.toPath=function(e){return zs(e)?Tt(e,Lo):aa(e)?[e]:Or(Io(va(e)))},Vn.toPlainObject=ga,Vn.transform=function(e,t,n){var i=zs(e),r=i||Ys(e)||la(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Qs(e)&&Js(o)?Fn(He(e)):{}}return(r?Ct:yi)(e,(function(e,i,r){return t(n,e,i,r)})),n},Vn.unary=function(e){return Os(e,1)},Vn.union=es,Vn.unionBy=ts,Vn.unionWith=ns,Vn.uniq=function(e){return e&&e.length?ar(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?ar(e,oo(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?ar(e,r,t):[]},Vn.unset=function(e,t){return null==e||lr(e,t)},Vn.unzip=is,Vn.unzipWith=rs,Vn.update=function(e,t,n){return null==e?e:ur(e,t,mr(n))},Vn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ur(e,t,mr(n),i)},Vn.values=Fa,Vn.valuesIn=function(e){return null==e?[]:Jt(e,Ta(e))},Vn.without=os,Vn.words=Ja,Vn.wrap=function(e,t){return Ls(mr(t),e)},Vn.xor=ss,Vn.xorBy=as,Vn.xorWith=ls,Vn.zip=us,Vn.zipObject=function(e,t){return pr(e||[],t||[],Qn)},Vn.zipObjectDeep=function(e,t){return pr(e||[],t||[],Ji)},Vn.zipWith=cs,Vn.entries=Na,Vn.entriesIn=Va,Vn.extend=ba,Vn.extendWith=_a,sl(Vn,Vn),Vn.add=vl,Vn.attempt=Xa,Vn.camelCase=Ua,Vn.capitalize=Ba,Vn.ceil=yl,Vn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ma(n))==n?n:0),t!==r&&(t=(t=ma(t))==t?t:0),oi(ma(e),t,n)},Vn.clone=function(e){return si(e,4)},Vn.cloneDeep=function(e){return si(e,5)},Vn.cloneDeepWith=function(e,t){return si(e,5,t="function"==typeof t?t:r)},Vn.cloneWith=function(e,t){return si(e,4,t="function"==typeof t?t:r)},Vn.conformsTo=function(e,t){return null==t||ai(e,t,Ma(t))},Vn.deburr=$a,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=bl,Vn.endsWith=function(e,t,n){e=va(e),t=sr(t);var i=e.length,o=n=n===r?i:oi(pa(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},Vn.eq=Fs,Vn.escape=function(e){return(e=va(e))&&K.test(e)?e.replace(W,tn):e},Vn.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Vn.every=function(e,t,n){var i=zs(e)?St:hi;return n&&vo(e,t,n)&&(t=r),i(e,oo(t,3))},Vn.find=ms,Vn.findIndex=$o,Vn.findKey=function(e,t){return Nt(e,oo(t,3),yi)},Vn.findLast=gs,Vn.findLastIndex=zo,Vn.findLastKey=function(e,t){return Nt(e,oo(t,3),bi)},Vn.floor=_l,Vn.forEach=vs,Vn.forEachRight=ys,Vn.forIn=function(e,t){return null==e?e:gi(e,oo(t,3),Ta)},Vn.forInRight=function(e,t){return null==e?e:vi(e,oo(t,3),Ta)},Vn.forOwn=function(e,t){return e&&yi(e,oo(t,3))},Vn.forOwnRight=function(e,t){return e&&bi(e,oo(t,3))},Vn.get=Ca,Vn.gt=Us,Vn.gte=Bs,Vn.has=function(e,t){return null!=e&&po(e,t,Ci)},Vn.hasIn=Oa,Vn.head=qo,Vn.identity=nl,Vn.includes=function(e,t,n,i){e=qs(e)?e:Fa(e),n=n&&!i?pa(n):0;var r=e.length;return n<0&&(n=gn(r+n,0)),sa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Ft(e,t,n)>-1},Vn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:pa(n);return r<0&&(r=gn(i+r,0)),Ft(e,t,r)},Vn.inRange=function(e,t,n){return t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,n){return e>=vn(t,n)&&e=-9007199254740991&&e<=d},Vn.isSet=oa,Vn.isString=sa,Vn.isSymbol=aa,Vn.isTypedArray=la,Vn.isUndefined=function(e){return e===r},Vn.isWeakMap=function(e){return ea(e)&&ho(e)==M},Vn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==xi(e)},Vn.join=function(e,t){return null==e?"":Ht.call(e,t)},Vn.kebabCase=za,Vn.last=Go,Vn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=pa(n))<0?gn(i+o,0):vn(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):Vt(e,Bt,o,!0)},Vn.lowerCase=Ha,Vn.lowerFirst=qa,Vn.lt=ua,Vn.lte=ca,Vn.max=function(e){return e&&e.length?pi(e,nl,Ei):r},Vn.maxBy=function(e,t){return e&&e.length?pi(e,oo(t,2),Ei):r},Vn.mean=function(e){return $t(e,nl)},Vn.meanBy=function(e,t){return $t(e,oo(t,2))},Vn.min=function(e){return e&&e.length?pi(e,nl,Ii):r},Vn.minBy=function(e,t){return e&&e.length?pi(e,oo(t,2),Ii):r},Vn.stubArray=fl,Vn.stubFalse=ml,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=wl,Vn.nth=function(e,t){return e&&e.length?Ui(e,pa(t)):r},Vn.noConflict=function(){return dt._===this&&(dt._=Ve),this},Vn.noop=al,Vn.now=Cs,Vn.pad=function(e,t,n){e=va(e);var i=(t=pa(t))?cn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Br(pt(r),n)+e+Br(ht(r),n)},Vn.padEnd=function(e,t,n){e=va(e);var i=(t=pa(t))?cn(e):0;return t&&it){var i=e;e=t,t=i}if(n||e%1||t%1){var o=_n();return vn(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return qi(e,t)},Vn.reduce=function(e,t,n){var i=zs(e)?Dt:qt,r=arguments.length<3;return i(e,oo(t,4),n,r,ci)},Vn.reduceRight=function(e,t,n){var i=zs(e)?jt:qt,r=arguments.length<3;return i(e,oo(t,4),n,r,di)},Vn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===r)?1:pa(t),Wi(va(e),t)},Vn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var i=-1,o=(t=gr(t,e)).length;for(o||(o=1,e=r);++id)return[];var n=p,i=vn(e,p);t=oo(t),e-=p;for(var r=Yt(i,t);++n=s)return e;var l=n-cn(i);if(l<1)return i;var u=a?yr(a,0,l).join(""):e.slice(0,l);if(o===r)return u+i;if(a&&(l+=u.length-l),ra(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=Ce(o.source,va(he.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(sr(o),l)!=l){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+i},Vn.unescape=function(e){return(e=va(e))&&Y.test(e)?e.replace(q,pn):e},Vn.uniqueId=function(e){var t=++je;return va(e)+t},Vn.upperCase=Ka,Vn.upperFirst=Ga,Vn.each=vs,Vn.eachRight=ys,Vn.first=qo,sl(Vn,(gl={},yi(Vn,(function(e,t){De.call(Vn.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Vn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Ct(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===r?1:gn(pa(n),0);var i=this.__filtered__&&!t?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=vn(n,i.__takeCount__):i.__views__.push({size:vn(n,p),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(nl)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Yi((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Pi(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(js(oo(e)))},$n.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(p)},yi($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Vn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof $n,u=a[0],c=l||zs(t),d=function(e){var t=o.apply(Vn,Rt([e],a));return i&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=l&&!p;if(!s&&c){t=m?t:new $n(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:r}),new Bn(g,h)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(zs(r)?r:[],e)}return this[n]((function(n){return t.apply(zs(n)?n:[],e)}))}})),yi($n.prototype,(function(e,t){var n=Vn[t];if(n){var i=n.name+"";De.call(An,i)||(An[i]=[]),An[i].push({name:t,func:n})}})),An[Nr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Or(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Or(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Or(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zs(e),i=t<0,r=n?e.length:0,o=function(e,t,n){for(var i=-1,r=n.length;++i=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var i=Vo(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Qo],thisArg:r}),new Bn(t,this.__chain__)}return this.thru(Qo)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return dr(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Ge&&(Vn.prototype[Ge]=function(){return this}),Vn}();dt._=fn,(i=function(){return fn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},50104:(e,t,n)=>{var i=n(53661);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},10124:(e,t,n)=>{var i=n(9325);e.exports=function(){return i.Date.now()}},90179:(e,t,n)=>{var i=n(34932),r=n(9999),o=n(19931),s=n(31769),a=n(21791),l=n(53138),u=n(38816),c=n(83349),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=i(t,(function(t){return t=s(t,e),u||(u=t.length>1),t})),a(e,c(e),n),u&&(n=r(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n}));e.exports=d},82485:(e,t,n)=>{var i=n(57216),r=n(81993),o=n(61489),s=n(13222),a=Math.ceil,l=Math.floor;e.exports=function(e,t,n){e=s(e);var u=(t=o(t))?r(e):0;if(!t||u>=t)return e;var c=(t-u)/2;return i(l(c),n)+e+i(a(c),n)}},36944:(e,t,n)=>{var i=n(73893)("round");e.exports=i},63560:(e,t,n)=>{var i=n(73170);e.exports=function(e,t,n){return null==e?e:i(e,t,n)}},63345:e=>{e.exports=function(){return[]}},89935:e=>{e.exports=function(){return!1}},17400:(e,t,n)=>{var i=n(99374),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},61489:(e,t,n)=>{var i=n(17400);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},99374:(e,t,n)=>{var i=n(54128),r=n(23805),o=n(44394),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},13222:(e,t,n)=>{var i=n(77556);e.exports=function(e){return null==e?"":i(e)}},44826:(e,t,n)=>{var i=n(77556),r=n(54128),o=n(28754),s=n(23875),a=n(28380),l=n(63912),u=n(13222);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return r(e);if(!e||!(t=i(t)))return e;var c=l(e),d=l(t),h=a(c,d),p=s(c,d)+1;return o(c,h,p).join("")}},56639:function(e,t,n){var i,r,o;!function(s,a){"use strict";e.exports?e.exports=a(n(95093)):(r=[n(95093)],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},o={},s={};e&&"string"==typeof e.version||P("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=e.version.split("."),l=+a[0],u=+a[1];function c(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",o=1,s=0,a=1;for(45===e.charCodeAt(0)&&(t=1,a=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var n,i=t.length;if(e1&&t[i-1]===1/0&&e>=t[i-2])return i-1;if(e>=t[i-1])return-1;for(var r=0,o=i-1;o-r>1;)t[n=Math.floor((r+o)/2)]<=e?r=n:o=n;return o}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(r).filter((function(t){return-1!==r[t].zones.indexOf(e)}))},parse:function(e){var t,n,i,r,o=+e,s=this.offsets,a=this.untils,l=a.length-1;for(r=0;ri&&A.moveInvalidForward&&(t=i),o3){var t=o[x(e)];if(t)return t;P("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,i,r,s=function(){var e,t,n,i,r=(new Date).getFullYear()-2,o=new v(new Date(r,0,1)),s=o.offset,a=[o];for(i=1;i<48;i++)(n=new Date(r,i,1).getTimezoneOffset())!==s&&(e=b(o,t=new v(new Date(r,i,1))),a.push(e),a.push(new v(new Date(e.at+6e4))),o=t,s=n);for(i=0;i<4;i++)a.push(new v(new Date(r+i,0,1))),a.push(new v(new Date(r+i,6,1)));return a}(),a=s.length,l=k(s),u=[];for(i=0;i0?u[0].zone.name:void 0}()),t},A.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(n[e]||n[i[e]])&&o[e]&&t.push(o[e]);return t.sort()},A.Zone=m,A.unpack=f,A.unpackBase60=d,A.needsOffset=S,A.moveInvalidForward=!0,A.moveAmbiguousForward=!1,A.countries=function(){return Object.keys(r)},A.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map((function(e){return{name:e,offset:C(e).utcOffset(new Date)}})):i};var M,T=e.fn;function R(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function D(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=A,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&S(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var o=t._z;t.utcOffset(-i,n),t._z=o}else t.zone(i,n)},T.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,n):P("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},T.zoneName=R(T.zoneName),T.zoneAbbr=R(T.zoneAbbr),T.utc=D(T.utc),T.local=D(T.local),T.utcOffset=(M=T.utcOffset,function(){return arguments.length>0&&(this._z=null),M.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&P("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var j=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(j)?(j.push("_z"),j.push("_a")):j&&(j._z=null),e}))},95093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function i(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},j={};function I(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(j[e]=r),t&&(j[t[0]]=function(){return M(r.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function L(e,t){return e.isValid()?(t=N(t,e.localeData()),D[t]=D[t]||function(e){var t,n,i,r=e.match(T);for(t=0,n=r.length;t=0&&R.test(e);)e=e.replace(R,i),R.lastIndex=0,n-=1;return e}var V={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?V[e]||V[e.toLowerCase()]:void 0}function U(e){var t,n,i={};for(n in e)s(e,n)&&(t=F(n))&&(i[t]=e[n]);return i}var B={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var $,z=/\d/,H=/\d\d/,q=/\d{3}/,W=/\d{4}/,Y=/[+-]?\d{6}/,K=/\d\d?/,G=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,X=/\d{1,3}/,Z=/\d{1,4}/,Q=/[+-]?\d{1,6}/,ee=/\d+/,te=/[+-]?\d+/,ne=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,se=/^([1-9]\d|\d)/;function ae(e,t,n){$[e]=S(t)?t:function(e,i){return e&&n?n:t}}function le(e,t){return s($,e)?$[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}$={};var he={};function pe(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=de(e)}),i=e.length,n=0;n68?1900:2e3)};var Se,Pe=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Te(this,e,n),i.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Te(e,t,n){var i,r,o,s,a;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),a=29!==(a=e.date())||1!==s||ge(o)?a:28,r?i.setUTCFullYear(o,s,a):i.setFullYear(o,s,a)}}function Re(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?ge(e)?29:28:31-i%7%2}Se=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(a=new Date(e+400,t,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,o,s),a}function ze(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function He(e,t,n){var i=7+t-n;return-(7+ze(e,0,i).getUTCDay()-t)%7+i-1}function qe(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+He(e,i,r);return a<=0?s=Oe(o=e-1)+a:a>Oe(e)?(o=e+1,s=a-Oe(e)):(o=e,s=a),{year:o,dayOfYear:s}}function We(e,t,n){var i,r,o=He(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+Ye(r=e.year()-1,t,n):s>Ye(e.year(),t,n)?(i=s-Ye(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Ye(e,t,n){var i=He(e,t,n),r=He(e+1,t,n);return(Oe(e)-i+r)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),ae("w",K,oe),ae("ww",K,H),ae("W",K,oe),ae("WW",K,H),fe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=de(e)}));function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),ae("d",K),ae("e",K),ae("E",K),ae("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ae("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ae("dddd",(function(e,t){return t.weekdaysRegex(e)})),fe(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e})),fe(["d","e","E"],(function(e,t,n,i){t[i]=de(e)}));var Ge="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=re,Qe=re,et=re;function tt(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=Se.call(this._weekdaysParse,s))||-1!==(r=Se.call(this._shortWeekdaysParse,s))||-1!==(r=Se.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Se.call(this._shortWeekdaysParse,s))||-1!==(r=Se.call(this._weekdaysParse,s))||-1!==(r=Se.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Se.call(this._minWeekdaysParse,s))||-1!==(r=Se.call(this._weekdaysParse,s))||-1!==(r=Se.call(this._shortWeekdaysParse,s))?r:null}function nt(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=ue(this.weekdaysMin(n,"")),r=ue(this.weekdaysShort(n,"")),o=ue(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);s.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,it),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+it.apply(this)+M(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+it.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+M(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)})),rt("a",!0),rt("A",!1),ae("a",ot),ae("A",ot),ae("H",K,se),ae("h",K,oe),ae("k",K,oe),ae("HH",K,H),ae("hh",K,H),ae("kk",K,H),ae("hmm",G),ae("hmmss",J),ae("Hmm",G),ae("Hmmss",J),pe(["H","HH"],_e),pe(["k","kk"],(function(e,t,n){var i=de(e);t[_e]=24===i?0:i})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[_e]=de(e),f(n).bigHour=!0})),pe("hmm",(function(e,t,n){var i=e.length-2;t[_e]=de(e.substr(0,i)),t[we]=de(e.substr(i)),f(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[_e]=de(e.substr(0,i)),t[we]=de(e.substr(i,2)),t[ke]=de(e.substr(r)),f(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var i=e.length-2;t[_e]=de(e.substr(0,i)),t[we]=de(e.substr(i))})),pe("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[_e]=de(e.substr(0,i)),t[we]=de(e.substr(i,2)),t[ke]=de(e.substr(r))}));var st=Ae("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:je,week:{dow:0,doy:6},weekdays:Ge,weekdaysMin:Xe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ut={},ct={};function dt(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=pt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dt(r,n)>=t-1)break;t--}o++}return at}(e)}function vt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Re(n[ve],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[ke]||0!==n[xe])?_e:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>59?ke:n[xe]<0||n[xe]>999?xe:-1,f(e)._overflowDayOfYear&&(tbe)&&(t=be),f(e)._overflowWeeks&&-1===t&&(t=Ee),f(e)._overflowWeekday&&-1===t&&(t=Ce),f(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xt=/^\/?Date\((-?\d+)/i,Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ct={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ot(e){var t,n,i,r,o,s,a=e._i,l=yt.exec(a)||bt.exec(a),u=wt.length,c=kt.length;if(l){for(f(e).iso=!0,t=0,n=u;t7)&&(l=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=We(jt(),o,s),n=At(t.gg,e._a[ve],u.year),i=At(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o),i<1||i>Ye(n,o,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=qe(n,i,r,o,s),e._a[ve]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=At(e._a[ve],r[ve]),(e._dayOfYear>Oe(s)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=ze(s,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[we]&&0===e._a[ke]&&0===e._a[xe]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:$e).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}function Tt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],f(e).empty=!0;var t,n,r,o,s,a,l,u=""+e._i,c=u.length,d=0;for(l=(r=N(e._f,e._locale).match(T)||[]).length,t=0;t0&&f(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),d+=n.length),j[o]?(n?f(e).empty=!1:f(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&f(e).unusedTokens.push(o);f(e).charsLeftOver=c-d,u.length>0&&f(e).unusedInput.push(u),e._a[_e]<=12&&!0===f(e).bigHour&&e._a[_e]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[_e]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[_e],e._meridiem),null!==(a=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(a,e._a[ve])),Mt(e),vt(e)}else Pt(e);else Ot(e)}function Rt(e){var t=e._i,n=e._f;return e._locale=e._locale||gt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(vt(t)):(c(t)?e._d=t:r(n)?function(e){var t,n,i,r,o,s,a=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:g()}));function Nt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return jt();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-pn:new Date(e,t,n).valueOf()}function gn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n,i,r,o=[],s=[],a=[],l=[],u=this.eras();for(e=0,t=u.length;e(o=Ye(e,i,r))&&(t=o),wn.call(this,e,t,n,i,r))}function wn(e,t,n,i,r){var o=qe(e,t,n,i,r),s=ze(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),ae("N",vn),ae("NN",vn),ae("NNN",vn),ae("NNNN",(function(e,t){return t.erasNameRegex(e)})),ae("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),pe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?f(n).era=r:f(n).invalidEra=e})),ae("y",ee),ae("yy",ee),ae("yyy",ee),ae("yyyy",ee),ae("yo",(function(e,t){return t._eraYearOrdinalRegex||ee})),pe(["y","yy","yyy","yyyy"],ve),pe(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,r):t[ve]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),ae("G",te),ae("g",te),ae("GG",K,H),ae("gg",K,H),ae("GGGG",Z,W),ae("gggg",Z,W),ae("GGGGG",Q,Y),ae("ggggg",Q,Y),fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=de(e)})),fe(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),ae("Q",z),pe("Q",(function(e,t){t[ye]=3*(de(e)-1)})),I("D",["DD",2],"Do","date"),ae("D",K,oe),ae("DD",K,H),ae("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],be),pe("Do",(function(e,t){t[be]=de(e.match(K)[0])}));var kn=Ae("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),ae("DDD",X),ae("DDDD",q),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),I("m",["mm",2],0,"minute"),ae("m",K,se),ae("mm",K,H),pe(["m","mm"],we);var xn=Ae("Minutes",!1);I("s",["ss",2],0,"second"),ae("s",K,se),ae("ss",K,H),pe(["s","ss"],ke);var En,Cn,On=Ae("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ae("S",X,z),ae("SS",X,H),ae("SSS",X,q),En="SSSS";En.length<=9;En+="S")ae(En,ee);function Sn(e,t){t[xe]=de(1e3*("0."+e))}for(En="S";En.length<=9;En+="S")pe(En,Sn);Cn=Ae("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var Pn=_.prototype;function An(e){return e}Pn.add=tn,Pn.calendar=function(e,t){1===arguments.length&&(arguments[0]?on(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!a(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?L(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(n,"Z")):L(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Pn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pn.toJSON=function(){return this.isValid()?this.toISOString():null},Pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pn.unix=function(){return Math.floor(this.valueOf()/1e3)},Pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Pn.isUtc=Yt,Pn.isUTC=Yt,Pn.zoneAbbr=function(){return this._isUTC?"UTC":""},Pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Pn.dates=x("dates accessor is deprecated. Use date instead.",kn),Pn.months=x("months accessor is deprecated. Use month instead",Ue),Pn.years=x("years accessor is deprecated. Use year instead",Pe),Pn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Pn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Rt(t))._a?(e=t._isUTC?p(t._a):jt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var Mn=A.prototype;function Tn(e,t,n,i){var r=gt(),o=p().set(i,t);return r[n](o,e)}function Rn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Tn(e,i,n,"month");return r}function Dn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,o=gt(),s=e?o._week.dow:0,a=[];if(null!=n)return Tn(t,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=Tn(t,(r+s)%7,i,"day");return a}Mn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i},Mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Mn.invalidDate=function(){return this._invalidDate},Mn.ordinal=function(e){return this._ordinal.replace("%d",e)},Mn.preparse=An,Mn.postformat=An,Mn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)},Mn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)},Mn.set=function(e){var t,n;for(n in e)s(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Mn.eras=function(e,t){var n,r,o,s=this._eras||gt("en")._eras;for(n=0,r=s.length;n=0)return l[i]},Mn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},Mn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Mn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Mn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Mn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Mn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Mn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return Ve.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Mn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ne),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Mn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Mn.week=function(e){return We(e,this._week.dow,this._week.doy).week},Mn.firstDayOfYear=function(){return this._week.doy},Mn.firstDayOfWeek=function(){return this._week.dow},Mn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ke(n,this._week.dow):e?n[e.day()]:n},Mn.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Mn.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Mn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Mn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Mn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=x("moment.lang is deprecated. Use moment.locale instead.",ft),i.langData=x("moment.langData is deprecated. Use moment.localeData instead.",gt);var jn=Math.abs;function In(e,t,n,i){var r=Jt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Ln(e){return e<0?Math.floor(e):Math.ceil(e)}function Nn(e){return 4800*e/146097}function Vn(e){return 146097*e/4800}function Fn(e){return function(){return this.as(e)}}var Un=Fn("ms"),Bn=Fn("s"),$n=Fn("m"),zn=Fn("h"),Hn=Fn("d"),qn=Fn("w"),Wn=Fn("M"),Yn=Fn("Q"),Kn=Fn("y"),Gn=Un;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Xn=Jn("milliseconds"),Zn=Jn("seconds"),Qn=Jn("minutes"),ei=Jn("hours"),ti=Jn("days"),ni=Jn("months"),ii=Jn("years");var ri=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function si(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ai=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,o,s,a,l=ai(this._milliseconds)/1e3,u=ai(this._days),c=ai(this._months),d=this.asSeconds();return d?(e=ce(l/60),t=ce(e/60),l%=60,e%=60,n=ce(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=li(this._months)!==li(d)?"-":"",s=li(this._days)!==li(d)?"-":"",a=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+i+"S":"")):"P0D"}var ci=Ft.prototype;return ci.isValid=function(){return this._isValid},ci.abs=function(){var e=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),e.milliseconds=jn(e.milliseconds),e.seconds=jn(e.seconds),e.minutes=jn(e.minutes),e.hours=jn(e.hours),e.months=jn(e.months),e.years=jn(e.years),this},ci.add=function(e,t){return In(this,e,t,1)},ci.subtract=function(e,t){return In(this,e,t,-1)},ci.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Nn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ci.asMilliseconds=Un,ci.asSeconds=Bn,ci.asMinutes=$n,ci.asHours=zn,ci.asDays=Hn,ci.asWeeks=qn,ci.asMonths=Wn,ci.asQuarters=Yn,ci.asYears=Kn,ci.valueOf=Gn,ci._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Ln(Vn(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=ce(o/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,s+=ce(n/24),a+=r=ce(Nn(s)),s-=Ln(Vn(r)),i=ce(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},ci.clone=function(){return Jt(this)},ci.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},ci.milliseconds=Xn,ci.seconds=Zn,ci.minutes=Qn,ci.hours=ei,ci.days=ti,ci.weeks=function(){return ce(this.days()/7)},ci.months=ni,ci.years=ii,ci.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=oi;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(o=Object.assign({},oi,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),i=function(e,t,n,i){var r=Jt(e).abs(),o=ri(r.as("s")),s=ri(r.as("m")),a=ri(r.as("h")),l=ri(r.as("d")),u=ri(r.as("M")),c=ri(r.as("w")),d=ri(r.as("y")),h=o<=n.ss&&["s",o]||o0,h[4]=i,si.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ci.toISOString=ui,ci.toString=ui,ci.toJSON=ui,ci.locale=an,ci.localeData=un,ci.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ui),ci.lang=ln,I("X",0,0,"unix"),I("x",0,0,"valueOf"),ae("x",te),ae("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),pe("x",(function(e,t,n){n._d=new Date(de(e))})),i.version="2.30.1",t=jt,i.fn=Pn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return jt(1e3*e)},i.months=function(e,t){return Rn(e,t,"months")},i.isDate=c,i.locale=ft,i.invalid=g,i.duration=Jt,i.isMoment=w,i.weekdays=function(e,t,n){return Dn(e,t,n,"weekdays")},i.parseZone=function(){return jt.apply(null,arguments).parseZone()},i.localeData=gt,i.isDuration=Ut,i.monthsShort=function(e,t){return Rn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return Dn(e,t,n,"weekdaysMin")},i.defineLocale=mt,i.updateLocale=function(e,t){if(null!=t){var n,i,r=lt;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(P(ut[e]._config,t)):(null!=(i=pt(e))&&(r=i._config),t=P(r,t),null==i&&(t.abbr=e),(n=new A(t)).parentLocale=ut[e],ut[e]=n),ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===ft()&&ft(e)):null!=ut[e]&&delete ut[e]);return ut[e]},i.locales=function(){return E(ut)},i.weekdaysShort=function(e,t,n){return Dn(e,t,n,"weekdaysShort")},i.normalizeUnits=F,i.relativeTimeRounding=function(e){return void 0===e?ri:"function"==typeof e&&(ri=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==oi[e]&&(void 0===t?oi[e]:(oi[e]=t,"s"===e&&(oi.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Pn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},53632:function(e,t,n){var i,r,o,s;r="Promise",s=function(){"use strict";var e,t,n,i=Object.prototype.toString,r="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function o(e,i){n.add(e,i),t||(t=r(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e0&&o(a,n))}catch(e){c.call(new h(n),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(a,t))}function d(e,t,n,i){for(var r=0;r{"use strict";n.r(t),n.d(t,{default:()=>x});var i=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new i,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),i=new _(t,n,this);w.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));const x=void 0!==o.ResizeObserver?o.ResizeObserver:k},42492:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});class i{constructor(e,t,n,i){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class r{static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,i=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new r(e[1],n,i,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const r=e.x-t.x,o=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,d=(t.y+n.y)/2,h=Math.sqrt(r*r+o*o),p=Math.sqrt(s*s+a*a),f=p/(h+p),m=c+(l-c)*f,g=d+(u-d)*f,v=t.x-m,y=t.y-g;return{c1:new i(l+v,u+y),c2:new i(c+v,d+y)}}constructor(e,t,n,i,r,o){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=i,this.startWidth=r,this.endWidth=o}length(){let e,t,n=0;for(let i=0;i<=10;i+=1){const r=i/10,o=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){const i=o-e,r=s-t;n+=Math.sqrt(i*i+r*r)}e=o,t=s}return n}point(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e}}class o{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends o{constructor(e,t={}){super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in t?t.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,i,r,o=0,s=null;const a=()=>{o=Date.now(),s=null,n=e.apply(i,r),s||(i=null,r=[])};return function(...l){const u=Date.now(),c=t-(u-o);return i=this,r=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),o=u,n=e.apply(i,r),s||(i=null,r=[])):s||(s=window.setTimeout(a,c)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,i)=>{const r=new Image,o=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/o,a=t.height||this.canvas.height/o,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),r.onload=()=>{this._ctx.drawImage(r,l,u,s,a),n()},r.onerror=e=>{i(e)},r.crossOrigin="anonymous",r.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;this._drawingStroke=!0;const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,i=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,r=this._createPoint(t,n,i),o=this._data[this._data.length-1],s=o.points,a=s.length>0&&s[s.length-1],l=!!a&&r.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(o);if(!a||!a||!l){const e=this._addPoint(r,u);a?e&&this._drawCurve(e,u):this._drawDot(r,u),s.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._drawingStroke&&(this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const r=this.canvas.getBoundingClientRect();return new i(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),i=r.fromPoints(n,e);return n.shift(),i}return null}_calculateCurveWidths(e,t,n){const i=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i,n),o={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,o}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,i=e.endWidth-e.startWidth,r=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,i),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const r of e){const{points:e}=r,o=this._getPointGroupOptions(r);if(e.length>1)for(let n=0;n{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const i=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",i),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),o.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:i,maxWidth:r})=>{const s=document.createElement("circle"),a=n>0?n:(i+r)/2;s.setAttribute("r",a.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),o.appendChild(s)})),o.outerHTML}}},55459:e=>{"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},79244:(e,t,n)=>{"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof i(e).Element||e instanceof Element}function o(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}n.r(t),n.d(t,{animateFill:()=>ct,createSingleton:()=>at,default:()=>yt,delegate:()=>ut,followCursor:()=>ft,hideAll:()=>ot,inlinePositioning:()=>mt,roundArrow:()=>he,sticky:()=>gt});var a=Math.max,l=Math.min,u=Math.round;function c(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(c())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),a=1,l=1;t&&o(e)&&(a=e.offsetWidth>0&&u(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&u(s.height)/e.offsetHeight||1);var c=(r(e)?i(e):window).visualViewport,h=!d()&&n,p=(s.left+(h&&c?c.offsetLeft:0))/a,f=(s.top+(h&&c?c.offsetTop:0))/l,m=s.width/a,g=s.height/l;return{width:m,height:g,top:f,right:p+m,bottom:f+g,left:p,x:p,y:f}}function p(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return h(m(e)).left+p(e).scrollLeft}function v(e){return i(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function b(e,t,n){void 0===n&&(n=!1);var r,s,a=o(t),l=o(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,i=u(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),c=m(t),d=h(e,l,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(a||!a&&!n)&&(("body"!==f(t)||y(c))&&(v=(r=t)!==i(r)&&o(r)?{scrollLeft:(s=r).scrollLeft,scrollTop:s.scrollTop}:p(r)),o(t)?((b=h(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):c&&(b.x=g(c))),{x:d.left+v.scrollLeft-b.x,y:d.top+v.scrollTop-b.y,width:d.width,height:d.height}}function _(e){var t=h(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function w(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function k(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:o(e)&&y(e)?e:k(w(e))}function x(e,t){var n;void 0===t&&(t=[]);var r=k(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),s=i(r),a=o?[s].concat(s.visualViewport||[],y(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(x(w(a)))}function E(e){return["table","td","th"].indexOf(f(e))>=0}function C(e){return o(e)&&"fixed"!==v(e).position?e.offsetParent:null}function O(e){for(var t=i(e),n=C(e);n&&E(n)&&"static"===v(n).position;)n=C(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(c());if(/Trident/i.test(c())&&o(e)&&"fixed"===v(e).position)return null;var n=w(e);for(s(n)&&(n=n.host);o(n)&&["html","body"].indexOf(f(n))<0;){var i=v(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",P="bottom",A="right",M="left",T="auto",R=[S,P,A,M],D="start",j="end",I="viewport",L="popper",N=R.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+j])}),[]),V=[].concat(R,[T]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+j])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function U(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var B={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function K(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?q(r):null,s=r?W(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case S:t={x:a,y:n.y-i.height};break;case P:t={x:a,y:n.y+n.height};break;case A:t={x:n.x+n.width,y:l};break;case M:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case D:t[u]=t[u]-(n[c]/2-i[c]/2);break;case j:t[u]=t[u]+(n[c]/2-i[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,f=a.x,g=void 0===f?0:f,y=a.y,b=void 0===y?0:y,_="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=_.x,b=_.y;var w=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),x=M,E=S,C=window;if(d){var T=O(n),R="clientHeight",D="clientWidth";T===i(n)&&"static"!==v(T=m(n)).position&&"absolute"===l&&(R="scrollHeight",D="scrollWidth"),(o===S||(o===M||o===A)&&s===j)&&(E=P,b-=(p&&T===C&&C.visualViewport?C.visualViewport.height:T[R])-r.height,b*=c?1:-1),o!==M&&(o!==S&&o!==P||s!==j)||(x=A,g-=(p&&T===C&&C.visualViewport?C.visualViewport.width:T[D])-r.width,g*=c?1:-1)}var I,L=Object.assign({position:l},d&&G),N=!0===h?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:u(n*r)/r||0,y:u(i*r)/r||0}}({x:g,y:b},i(n)):{x:g,y:b};return g=N.x,b=N.y,c?Object.assign({},L,((I={})[E]=k?"0":"",I[x]=w?"0":"",I.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",I)):Object.assign({},L,((t={})[E]=k?b+"px":"",t[x]=w?g+"px":"",t.transform="",t))}const X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];o(r)&&f(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(i)&&f(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return Z[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t,n){return t===I?ie(function(e,t){var n=i(e),r=m(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;var c=d();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:l+g(e),y:u}}(e,n)):r(t)?function(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ie(function(e){var t,n=m(e),i=p(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=a(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=a(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+g(e),u=-i.scrollTop;return"rtl"===v(r||n).direction&&(l+=a(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}(m(e)))}function oe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ae(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,u=n.strategy,c=void 0===u?e.strategy:u,d=n.boundary,p=void 0===d?"clippingParents":d,g=n.rootBoundary,y=void 0===g?I:g,b=n.elementContext,_=void 0===b?L:b,k=n.altBoundary,E=void 0!==k&&k,C=n.padding,M=void 0===C?0:C,T=oe("number"!=typeof M?M:se(M,R)),D=_===L?"reference":L,j=e.rects.popper,N=e.elements[E?D:_],V=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=x(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&o(e)?O(e):e;return r(n)?t.filter((function(e){return r(e)&&ne(e,n)&&"body"!==f(e)})):[]}(e):[].concat(t),u=[].concat(s,[n]),c=u[0],d=u.reduce((function(t,n){var r=re(e,n,i);return t.top=a(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=a(r.left,t.left),t}),re(e,c,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}(r(N)?N:N.contextElement||m(e.elements.popper),p,y,c),F=h(e.elements.reference),U=K({reference:F,element:j,strategy:"absolute",placement:s}),B=ie(Object.assign({},j,U)),$=_===L?B:F,z={top:V.top-$.top+T.top,bottom:$.bottom-V.bottom+T.bottom,left:V.left-$.left+T.left,right:$.right-V.right+T.right},H=e.modifiersData.offset;if(_===L&&H){var q=H[s];Object.keys(z).forEach((function(e){var t=[A,P].indexOf(e)>=0?1:-1,n=[S,P].indexOf(e)>=0?"y":"x";z[e]+=q[n]*t}))}return z}function le(e,t,n){return a(e,l(t,n))}function ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ce(e){return[S,A,P,M].some((function(t){return e[t]>=0}))}var de=z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=void 0===o||o,a=r.resize,l=void 0===a||a,u=i(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach((function(e){e.addEventListener("scroll",n.update,H)})),l&&u.addEventListener("resize",n.update,H),function(){s&&c.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),l&&u.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,u={placement:q(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},X,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=V.reduce((function(e,n){return e[n]=function(e,t,n){var i=q(e),r=[M,S].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[M,A].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=q(g),y=l||(v!==g&&f?function(e){if(q(e)===T)return[];var t=Q(e);return[te(e),t,te(t)]}(g):[Q(g)]),b=[g].concat(y).reduce((function(e,n){return e.concat(q(n)===T?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?V:l,c=W(i),d=c?a?N:N.filter((function(e){return W(e)===c})):R,h=d.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=ae(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,k=new Map,x=!0,E=b[0],C=0;C=0,F=L?"width":"height",U=ae(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),B=L?I?A:M:I?P:S;_[F]>w[F]&&(B=Q(B));var $=Q(B),z=[];if(o&&z.push(U[j]<=0),a&&z.push(U[B]<=0,U[$]<=0),z.every((function(e){return e}))){E=O,x=!1;break}k.set(O,z)}if(x)for(var H=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},Y=f?3:1;Y>0&&"break"!==H(Y);Y--);t.placement!==E&&(t.modifiersData[i]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,u=void 0!==s&&s,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,y=ae(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:h}),b=q(t.placement),w=W(t.placement),k=!w,x=Y(b),E="x"===x?"y":"x",C=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,j="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,I="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(C){if(o){var V,F="y"===x?S:M,U="y"===x?P:A,B="y"===x?"height":"width",$=C[x],z=$+y[F],H=$-y[U],K=m?-R[B]/2:0,G=w===D?T[B]:R[B],J=w===D?-R[B]:-T[B],X=t.elements.arrow,Z=m&&X?_(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[F],te=Q[U],ne=le(0,T[B],Z[B]),ie=k?T[B]/2-K-ne-ee-I.mainAxis:G-ne-ee-I.mainAxis,re=k?-T[B]/2+K+ne+te+I.mainAxis:J+ne+te+I.mainAxis,oe=t.elements.arrow&&O(t.elements.arrow),se=oe?"y"===x?oe.clientTop||0:oe.clientLeft||0:0,ue=null!=(V=null==L?void 0:L[x])?V:0,ce=$+re-ue,de=le(m?l(z,$+ie-ue-se):z,$,m?a(H,ce):H);C[x]=de,N[x]=de-$}if(u){var he,pe="x"===x?S:M,fe="x"===x?P:A,me=C[E],ge="y"===E?"height":"width",ve=me+y[pe],ye=me-y[fe],be=-1!==[S,M].indexOf(b),_e=null!=(he=null==L?void 0:L[E])?he:0,we=be?ve:me-T[ge]-R[ge]-_e+I.altAxis,ke=be?me+T[ge]+R[ge]-_e-I.altAxis:ye,xe=m&&be?function(e,t,n){var i=le(e,t,n);return i>n?n:i}(we,me,ke):le(m?we:ve,me,m?ke:ye);C[E]=xe,N[E]=xe-me}t.modifiersData[i]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=q(n.placement),l=Y(a),u=[M,A].indexOf(a)>=0?"height":"width";if(o&&s){var c=function(e,t){return oe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,R))}(r.padding,n),d=_(o),h="y"===l?S:M,p="y"===l?P:A,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=O(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=c[h],w=v-d[u]-c[p],k=v/2-d[u]/2+y,x=le(b,k,w),E=l;n.modifiersData[i]=((t={})[E]=x,t.centerOffset=x-k,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ne(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ae(t,{elementContext:"reference"}),a=ae(t,{altBoundary:!0}),l=ue(s,i),u=ue(a,r,o),c=ce(l),d=ce(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),he='',pe="tippy-content",fe="tippy-backdrop",me="tippy-arrow",ge="tippy-svg-arrow",ve={passive:!0,capture:!0},ye=function(){return document.body};function be(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function _e(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function we(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ke(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function xe(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function Ee(e){return[].concat(e)}function Ce(e,t){-1===e.indexOf(t)&&e.push(t)}function Oe(e){return e.split("-")[0]}function Se(e){return[].slice.call(e)}function Pe(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ae(){return document.createElement("div")}function Me(e){return["Element","Fragment"].some((function(t){return _e(e,t)}))}function Te(e){return _e(e,"MouseEvent")}function Re(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function De(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function je(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ie(e){var t,n=Ee(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Le(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function Ne(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Ve={isTouch:!1},Fe=0;function Ue(){Ve.isTouch||(Ve.isTouch=!0,window.performance&&document.addEventListener("mousemove",Be))}function Be(){var e=performance.now();e-Fe<20&&(Ve.isTouch=!1,document.removeEventListener("mousemove",Be)),Fe=e}function $e(){var e=document.activeElement;if(Re(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var ze=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),He=Object.assign({appendTo:ye,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),qe=Object.keys(He);function We(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=He[r])?i:o),t}),{});return Object.assign({},e,t)}function Ye(e,t){var n=Object.assign({},t,{content:we(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(We(Object.assign({},He,{plugins:t}))):qe).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},He.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var Ke=function(){return"innerHTML"};function Ge(e,t){e[Ke()]=t}function Je(e){var t=Ae();return!0===e?t.className=me:(t.className=ge,Me(e)?t.appendChild(e):Ge(t,e)),t}function Xe(e,t){Me(t.content)?(Ge(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ge(e,t.content):e.textContent=t.content)}function Ze(e){var t=e.firstElementChild,n=Se(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(pe)})),arrow:n.find((function(e){return e.classList.contains(me)||e.classList.contains(ge)})),backdrop:n.find((function(e){return e.classList.contains(fe)}))}}function Qe(e){var t=Ae(),n=Ae();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Ae();function r(n,i){var r=Ze(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Xe(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(Je(i.arrow))):o.appendChild(Je(i.arrow)):a&&o.removeChild(a)}return i.className=pe,i.setAttribute("data-state","hidden"),Xe(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}Qe.$$tippy=!0;var et=1,tt=[],nt=[];function it(e,t){var n,i,r,o,s,a,l,u,c=Ye(e,Object.assign({},He,We(Pe(t)))),d=!1,h=!1,p=!1,f=!1,m=[],g=ke(Y,c.interactiveDebounce),v=et++,y=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:v,reference:e,popper:Ae(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(!b.state.isDestroyed){D("onBeforeUpdate",[b,t]),q();var n=b.props,i=Ye(e,Object.assign({},n,Pe(t),{ignoreAttributes:!0}));b.props=i,H(),n.interactiveDebounce!==i.interactiveDebounce&&(L(),g=ke(Y,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?Ee(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded"),I(),R(),k&&k(n,i),b.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Ve.isTouch&&!b.props.touch,r=be(b.props.duration,0,He.duration);if(!(e||t||n||i||P().hasAttribute("disabled")||(D("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,S()&&(w.style.visibility="visible"),R(),U(),b.state.isMounted||(w.style.transition="none"),S()){var o=M();De([o.box,o.content],0)}var s,l,u;a=function(){var e;if(b.state.isVisible&&!f){if(f=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,S()&&b.props.animation){var t=M(),n=t.box,i=t.content;De([n,i],r),je([n,i],"visible")}j(),I(),Ce(nt,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&S()&&function(e,t){$(e,(function(){b.state.isShown=!0,D("onShown",[b])}))}(r)}},l=b.props.appendTo,u=P(),(s=b.props.interactive&&l===ye||"parent"===l?u.parentNode:we(l,[u])).contains(w)||s.appendChild(w),b.state.isMounted=!0,X()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=be(b.props.duration,1,He.duration);if(!(e||t||n)&&(D("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,d=!1,S()&&(w.style.visibility="hidden"),L(),B(),R(!0),S()){var r=M(),o=r.box,s=r.content;b.props.animation&&(De([o,s],i),je([o,s],"hidden"))}j(),I(),b.props.animation?S()&&function(e,t){$(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(i,b.unmount):b.unmount()}},hideWithInteractivity:function(e){A().addEventListener("mousemove",g),Ce(tt,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Z(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w),nt=nt.filter((function(e){return e!==b})),b.state.isMounted=!1,D("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b]))}};if(!c.render)return b;var _=c.render(b),w=_.popper,k=_.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var x=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return H(),I(),R(),D("onCreate",[b]),c.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",g)})),b;function C(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function O(){return"hold"===C()[0]}function S(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function P(){return l||e}function A(){var e=P().parentNode;return e?Ie(e):document}function M(){return Ze(w)}function T(e){return b.state.isMounted&&!b.state.isVisible||Ve.isTouch||o&&"focus"===o.type?0:be(b.props.delay,e?0:1,He.delay)}function R(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function D(e,t,n){var i;void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(i=b.props)[e].apply(i,t)}function j(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=w.id;Ee(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function I(){!E&&b.props.aria.expanded&&Ee(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){A().removeEventListener("mousemove",g),tt=tt.filter((function(e){return e!==g}))}function N(t){if(!Ve.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Ne(w,n)){if(Ee(b.props.triggerTarget||e).some((function(e){return Ne(e,n)}))){if(Ve.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||B())}}}function V(){p=!0}function F(){p=!1}function U(){var e=A();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,ve),e.addEventListener("touchstart",F,ve),e.addEventListener("touchmove",V,ve)}function B(){var e=A();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,ve),e.removeEventListener("touchstart",F,ve),e.removeEventListener("touchmove",V,ve)}function $(e,t){var n=M().box;function i(e){e.target===n&&(Le(n,"remove",i),t())}if(0===e)return t();Le(n,"remove",s),Le(n,"add",i),s=i}function z(t,n,i){void 0===i&&(i=!1),Ee(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function H(){var e;O()&&(z("touchstart",W,{passive:!0}),z("touchend",K,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,W),e){case"mouseenter":z("mouseleave",K);break;case"focus":z(ze?"focusout":"blur",G);break;case"focusin":z("focusout",G)}}))}function q(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!h){var i="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,I(),!b.state.isVisible&&Te(e)&&tt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function Y(e){var t=e.target,n=P().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var i=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=Oe(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,u="top"===s?a.bottom.y:0,c="right"===s?a.left.x:0,d="left"===s?a.right.x:0,h=t.top-i+l>o,p=i-t.bottom-u>o,f=t.left-n+c>o,m=n-t.right-d>o;return h||p||f||m}))})(i,e)&&(L(),te(e))}}function K(e){J(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==P()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!Ve.isTouch&&O()!==e.type.indexOf("touch")>=0}function X(){Z();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=S()?Ze(w).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||P()}:e,c=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=M().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];S()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=de(u,w,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:c}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Se(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),U();var t=T(!0),i=C(),r=i[0],o=i[1];Ve.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=T(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else B()}}function rt(e,t){void 0===t&&(t={});var n=He.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ue,ve),window.addEventListener("blur",$e);var i,r=Object.assign({},t,{plugins:n}),o=(i=e,Me(i)?[i]:function(e){return _e(e,"NodeList")}(i)?Se(i):Array.isArray(i)?i:Se(document.querySelectorAll(i))).reduce((function(e,t){var n=t&&it(t,r);return n&&e.push(n),e}),[]);return Me(e)?o[0]:o}rt.defaultProps=He,rt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){He[t]=e[t]}))},rt.currentInput=Ve;var ot=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;nt.forEach((function(e){var t=!1;if(n&&(t=Re(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},st=Object.assign({},X,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),at=function(e,t){var n;void 0===t&&(t={});var i,r=e,o=[],s=[],a=t.overrides,l=[],u=!1;function c(){s=r.map((function(e){return Ee(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){o=r.map((function(e){return e.reference}))}function h(e){r.forEach((function(t){e?t.enable():t.disable()}))}function p(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===i&&e.setProps(r)},function(){t.setProps=n}}))}function f(e,t){var n=s.indexOf(t);if(t!==i){i=t;var l=(a||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=o[n])?void 0:e.getBoundingClientRect()}}))}}h(!1),d(),c();var m={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,f(e,o[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},g=rt(Ae(),Object.assign({},xe(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[st])})})),v=g.show;g.show=function(e){if(v(),!i&&null==e)return f(g,o[0]);if(!i||null!=e){if("number"==typeof e)return o[e]&&f(g,o[e]);if(r.indexOf(e)>=0){var t=e.reference;return f(g,t)}return o.indexOf(e)>=0?f(g,e):void 0}},g.showNext=function(){var e=o[0];if(!i)return g.show(0);var t=o.indexOf(i);g.show(o[t+1]||e)},g.showPrevious=function(){var e=o[o.length-1];if(!i)return g.show(e);var t=o.indexOf(i),n=o[t-1]||e;g.show(n)};var y=g.setProps;return g.setProps=function(e){a=e.overrides||a,y(e)},g.setInstances=function(e){h(!0),l.forEach((function(e){return e()})),r=e,h(!1),d(),c(),l=p(g),g.setProps({triggerTarget:s})},l=p(g),g},lt={mouseover:"mouseenter",focusin:"focus",click:"click"};function ut(e,t){var n=[],i=[],r=!1,o=t.target,s=xe(t,["target"]),a=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({touch:He.touch},s,{showOnCreate:!0}),u=rt(e,a);function c(e){if(e.target&&!r){var n=e.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||He.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&s.indexOf(lt[e.type])<0)){var a=rt(n,l);a&&(i=i.concat(a))}}}}function d(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return Ee(u).forEach((function(e){var t=e.destroy,o=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},e.enable=function(){o(),i.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){s(),i.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;d(t,"touchstart",c,ve),d(t,"mouseover",c),d(t,"focusin",c),d(t,"click",c)}(e)})),u}var ct={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Ze(e.popper),i=n.box,r=n.content,o=e.props.animateFill?function(){var e=Ae();return e.className=fe,je([e],"hidden"),e}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,je([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&je([o],"hidden")}}}},dt={clientX:0,clientY:0},ht=[];function pt(e){var t=e.clientX,n=e.clientY;dt={clientX:t,clientY:n}}var ft={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Ie(e.props.triggerTarget||t),i=!1,r=!1,o=!0,s=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function u(){n.removeEventListener("mousemove",d)}function c(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,o=n.clientX,s=n.clientY,a=t.getBoundingClientRect(),l=o-a.left,u=s-a.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,i=s;"initial"===r&&(n=e.left+l,i=e.top+u);var a="horizontal"===r?e.top:i,c="vertical"===r?e.right:n,d="horizontal"===r?e.bottom:i,h="vertical"===r?e.left:n;return{width:c-h,height:d-a,top:a,right:c,bottom:d,left:h}}})}function h(){e.props.followCursor&&(ht.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",pt)}(n))}function p(){0===(ht=ht.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",pt)}(n)}return{onCreate:h,onDestroy:p,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;i||void 0!==o&&s.followCursor!==o&&(p(),o?(h(),!e.state.isMounted||r||a()||l()):(u(),c()))},onMount:function(){e.props.followCursor&&!r&&(o&&(d(dt),o=!1),a()||l())},onTrigger:function(e,t){Te(t)&&(dt={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),u(),o=!0)}}}},mt={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,i=-1,r=!1,o=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var s=r.state;e.props.inlinePositioning&&(-1!==o.indexOf(s.placement)&&(o=[]),t!==s.placement&&-1===o.indexOf(s.placement)&&(o.push(s.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],o=n[n.length-1],s="top"===e,a=r.top,l=o.bottom,u=s?r.left:o.left,c=s?r.right:o.right;return{top:a,bottom:l,left:u,right:c,width:c-u,height:l-a};case"left":case"right":var d=Math.min.apply(Math,n.map((function(e){return e.left}))),h=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===d:t.right===h})),f=p[0].top,m=p[p.length-1].bottom;return{top:f,bottom:m,left:d,right:h,width:h-d,height:m-f};default:return t}}(Oe(e),n.getBoundingClientRect(),Se(n.getClientRects()),i)}(s.placement)}})),t=s.placement)}};function a(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,s),r=!0,e.setProps(t),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,n){if(Te(n)){var r=Se(e.reference.getClientRects()),o=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),s=r.indexOf(o);i=s>-1?s:i}},onHidden:function(){i=-1}}}},gt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function s(){var a=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=i("popper")?n.getBoundingClientRect():null;(a&&vt(r,a)||l&&vt(o,l))&&e.popperInstance&&e.popperInstance.update(),r=a,o=l,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function vt(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}rt.setDefaultProps({render:Qe});const yt=rt},31803:(e,t)=>{"use strict";function n(e,t){return void 0===e?void 0===t?e:t:e}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var i=h(n(13518)),r=h(n(14948)),o=h(n(45073)),s=h(n(77186)),a=h(n(14808)),l=h(n(7775)),u=h(n(37037)),c=h(n(49910)),d=h(n(96792));function h(e){return e&&e.__esModule?e:{default:e}}},22311:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,n,r,o,s){return i((a=i(i(t,e),i(r,s)))<<(l=o)|a>>>32-l,n);var a,l}function o(e,t,n,i,o,s,a){return r(t&n|~t&i,e,t,o,s,a)}function s(e,t,n,i,o,s,a){return r(t&i|n&~i,e,t,o,s,a)}function a(e,t,n,i,o,s,a){return r(t^n^i,e,t,o,s,a)}function l(e,t,n,i,o,s,a){return r(n^(t|~i),e,t,o,s,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>r%32&255,o=parseInt(i.charAt(n>>>4&15)+i.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},14808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(37037))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},27656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},2858:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};const i=new Uint8Array(16)},9042:(e,t)=>{"use strict";function n(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function i(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;d=c,c=u,u=i(l,30)>>>0,l=s,s=a}r[0]=r[0]+s>>>0,r[1]=r[1]+l>>>0,r[2]=r[2]+u>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},49910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var i,r=(i=n(37037))&&i.__esModule?i:{default:i};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function s(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}t.default=function(e,t=0){const n=s(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},13518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(2858))&&i.__esModule?i:{default:i},o=n(49910);let s,a,l=0,u=0;t.default=function(e,t,n){let i=t&&n||0;const c=t||new Array(16);let d=(e=e||{}).node||s,h=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==h){const t=e.random||(e.rng||r.default)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=a=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:u+1;const m=p-l+(f-u)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>l)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,u=f,a=h,p+=122192928e5;const g=(1e4*(268435455&p)+f)%4294967296;c[i++]=g>>>24&255,c[i++]=g>>>16&255,c[i++]=g>>>8&255,c[i++]=255&g;const v=p/4294967296*1e4&268435455;c[i++]=v>>>8&255,c[i++]=255&v,c[i++]=v>>>24&15|16,c[i++]=v>>>16&255,c[i++]=h>>>8|128,c[i++]=255&h;for(let e=0;e<6;++e)c[i+e]=d[e];return t||(0,o.unsafeStringify)(c)}},14948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(59025)),r=o(n(22311));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("v3",48,r.default);t.default=s},59025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function i(e,i,s,a){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(46140)),r=s(n(2858)),o=n(49910);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();const s=(e=e||{}).random||(e.rng||r.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=s[e];return t}return(0,o.unsafeStringify)(s)}},77186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(59025)),r=o(n(9042));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("v5",80,r.default);t.default=s},37037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(27656))&&i.__esModule?i:{default:i};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},7775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(37037))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},68961:(__unused_webpack_module,exports)=>{var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60612);t.default={framework:"bootstrap5",templates:{bootstrap5:i.default}}},44619:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,e.mode.autocomplete){for(var i in n+='\n
\n \n ',e.component.disableClearIcon||(n+='\n \n '),n+="\n
\n"}return n+="\n",e.self.manualModeEnabled&&(n+='\n
\n \n
\n"),n+="\n",e.self.manualMode&&(n+='\n
\n '+(null==(t=e.children)?"":t)+"\n
\n"),n+"\n"}},86928:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
',e.displayValue?n+=null==(t=e.displayValue)?"":t:n+="-",n+"
\n"}},31667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(44619),r=n(86928);t.default={form:i.default,html:r.default}},39493:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="'+(null==(t=e.t("errorListHotkey"))?"":t)+"\n "),n+"\n\n"}},85765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(39493);t.default={form:i.default}},77038:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n
\n '+(null==(t=e.sidebar)?"":t)+'\n
\n
\n '+(null==(t=e.form)?"":t)+"\n
\n
\n"}},14572:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(77038);t.default={form:i.default}},83175:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n ',e.disableBuilderActions||(n+='\n
\n \n \n
\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n '),n+"\n "+(null==(t=e.html)?"":t)+"\n\n"}},20663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(83175);t.default={form:i.default}},79602:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n '+(null==(t=e.html)?"":t)+"\n
\n"}},32504:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(79602);t.default={form:i.default}},13716:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n

'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"

\n
\n ",e.helplinks&&(n+='\n \n "),n+='\n
\n
\n
\n ",e.preview||(n+='\n
\n \n \n \n
\n "),n+="\n
\n ",e.preview&&(n+='\n
\n
\n
\n

'+(null==(t=e.t("Preview"))?"":t)+'

\n
\n
\n
\n '+(null==(t=e.preview)?"":t)+"\n
\n
\n
\n ",e.componentInfo.help&&(n+='\n
\n '+(null==(t=e.t(e.componentInfo.help))?"":t)+"\n
\n "),n+='\n
\n \n \n \n
\n
\n "),n+"\n
\n"}},51970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(13716);t.default={form:i.default}},785:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'\n '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n\n"}},9241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(785);t.default={form:i.default}},43922:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n \n ',e.groups.forEach((function(e){n+="\n "+(null==(t=e)?"":t)+"\n "})),n+="\n
\n"}},38296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(43922);t.default={form:i.default}},11727:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n
\n \n '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n \n
\n
\n \n
\n ',e.group.componentOrder.length||e.subgroups.length?(n+="\n ",!e.group.componentOrder||e.group.componentOrder.forEach((function(i){n+='\n \n ',e.group.components[i].icon&&(n+='\n \n '),n+="\n "+(null==(t=e.t(e.group.components[i].title,{_userInput:!0}))?"":t)+"\n \n "})),n+="\n "+(null==(t=e.subgroups.join(""))?"":t)+"\n "):n+="\n
"+(null==(t=e.t("No Matches Found"))?"":t)+"
\n ",n+="\n
\n
\n\n"}},22719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(11727);t.default={form:i.default}},75359:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n '+(null==(t=e.sidebar)?"":t)+'\n
\n
\n \n
\n '+(null==(t=e.form)?"":t)+"\n
\n
\n
\n"}},69295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(75359);t.default={form:i.default}},22461:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n ref="button"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>\n",e.component.leftIcon&&(n+=' '),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n \n'),n+="\n",e.component.rightIcon&&(n+=' '),n+"\n\n
\n \n
\n'}},71702:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},66909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(22461),r=n(71702);t.default={form:i.default,html:r.default}},27094:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='
\n <'+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.checked&&(n+="checked=true"),n+='\n aria-required="'+(null==(t=e.component.validate.required)?"":t)+'"\n ',e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n >\n ",e.self.labelIsHidden()||(n+='\n \n "),n+="\n ",e.component.tooltip&&(n+='\n \n '),n+"\n
\n"}},61801:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n
',e.checked?n+="True":n+="False",n+"
\n"}},95828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(27094),r=n(61801);t.default={form:i.default,html:r.default}},69354:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(i,r){n+='\n
\n '+(null==(t=e.columnComponents[r])?"":t)+"\n
\n"})),n+="\n"}},144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(69354);t.default={form:i.default}},36382:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+'\n
\n '),n+"\n
\n"}},82396:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(36382);t.default={form:i.default}},91477:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n
\n
\n
'+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"\n ",e.options.vpat?n+='\n \n ':n+='\n \n ',n+='\n
\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+"\n "),n+='\n
\n ',e.options.vpat&&(n+='\n \n "),n+'\n \n
\n
\n
\n \n
\n
\n'}},87733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(91477);t.default={form:i.default}},26213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+((null==(t=e.children.join(""))?"":t)+"\n")}},37957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(26213);t.default={form:i.default}},16166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n '+(null==(t=e.children)?"":t)+"\n
\n"}},85636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16166);t.default={form:i.default}},93751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button","form-group":"formio-form-group"}},65069:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n '+(null==(t=i.hideLabel?"":e.t(i.label||i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+=' '),n+="\n \n "})),n+="\n ",e.hasExtraColumn&&(n+='\n \n "),n+="\n \n \n "),n+='\n \n ',e.rows.forEach((function(i,r){n+="\n ",e.hasGroups&&e.groups[r]&&(n+='\n \n '+(null==(t=e.groups[r].label)?"":t)+"\n \n "),n+='\n \n ',e.component.reorder&&(n+='\n \n '),n+="\n ",e.columns.forEach((function(r){n+='\n \n "})),n+="\n ",e.hasExtraColumn&&(n+="\n ",e.hasRemoveButtons&&(n+='\n \n '),n+="\n ",e.canAddColumn&&(n+='\n \n "),n+="\n "),n+="\n \n "})),n+="\n \n ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(n+='\n \n \n \n \n \n "),n+="\n
\n '+(null==(t=e.t("Add/Remove"))?"":t)+"\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n \n "),n+="\n
\n \n \n "+(null==(t=i[r.key])?"":t)+"\n \n \n \n '+(null==(t=e.placeholder)?"":t)+"\n
\n \n
\n"}},87078:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n ',e.hasHeader&&(n+="\n \n \n ",e.columns.forEach((function(i){n+='\n \n "})),n+="\n \n \n "),n+="\n \n ",e.rows.forEach((function(i){n+="\n \n ",e.columns.forEach((function(r){n+='\n \n "})),n+="\n \n "})),n+="\n \n
\n '+(null==(t=i.hideLabel?"":e.t(i.label||i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+=' '),n+="\n
\n '+(null==(t=i[r.key])?"":t)+"\n
\n"}},31373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65069),r=n(87078);t.default={form:i.default,html:r.default}},63481:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n "),n+="\n
"+(null==(t=e.day)?"":t)+"
\n
\n "),n+="\n ",e.showMonth&&(n+='\n
\n ',e.component.hideInputLabels||(n+='\n
\n "),n+="\n ",!e.dayFirst&&e.showDay&&(n+='\n
\n ',e.component.hideInputLabels||(n+='\n
\n "),n+="\n ",e.showYear&&(n+='\n
\n ',e.component.hideInputLabels||(n+='\n
\n "),n+'\n\n\n'}},77153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(63481);t.default={form:i.default}},75509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
\n
\n \n
\n'}},48885:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(75509);t.default={form:i.default}},90409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.header&&(n+='\n
  • \n '+(null==(t=e.header)?"":t)+"\n
  • \n "),n+="\n ",e.rows.forEach((function(i,r){n+='\n
  • \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n
    \n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
    \n "),n+='\n
    \n
    \n '+(null==(t=e.errors[r])?"":t)+"\n
    \n
    \n
  • \n "})),n+="\n ",e.footer&&(n+='\n \n "),n+="\n
\n",!e.readOnly&&e.hasAddButton&&(n+='\n\n"),n+="\n"}},47762:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.header&&(n+='\n
  • \n '+(null==(t=e.header)?"":t)+"\n
  • \n "),n+="\n ",e.rows.forEach((function(i,r){n+='\n
  • \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n
    \n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
    \n "),n+='\n
    \n
    \n '+(null==(t=e.errors[r])?"":t)+"\n
    \n
    \n
  • \n "})),n+="\n ",e.footer&&(n+='\n \n "),n+="\n
\n"}},23665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90409),r=n(47762);t.default={form:i.default,html:r.default}},8943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n \n ',e.header&&(n+='\n \n '+(null==(t=e.header)?"":t)+"\n \n "),n+='\n \n ',e.rows.forEach((function(i,r){n+='\n \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n \n "),n+="\n ",e.errors[r]&&(n+='\n \n "),n+="\n \n "})),n+="\n \n ",e.footer&&(n+="\n \n \n "+(null==(t=e.footer)?"":t)+"\n \n \n "),n+="\n
\n
\n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
\n
\n
\n
\n '+(null==(t=e.errors[r])?"":t)+"\n
\n
\n
\n
\n
\n",!e.readOnly&&e.hasAddButton&&(n+='\n\n"),n+="\n"}},31956:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n \n ',e.header&&(n+='\n \n '+(null==(t=e.header)?"":t)+"\n \n "),n+='\n \n ',e.rows.forEach((function(i,r){n+='\n \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n \n "),n+="\n ",e.errors[r]&&(n+='\n \n "),n+="\n \n "})),n+="\n \n ",e.footer&&(n+="\n \n \n "+(null==(t=e.footer)?"":t)+"\n \n \n "),n+="\n
\n
\n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
\n
\n
\n
\n '+(null==(t=e.errors[r])?"":t)+"\n
\n
\n
\n
\n
\n"}},76383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8943),r=n(31956);t.default={form:i.default,html:r.default}},38644:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="

"+(null==(t=e.t("error"))?"":t)+"\n ",e.options.vpat&&(n+='\n \n '),n+="\n

\n
    \n ",e.errors.forEach((function(e){n+='\n
  • \n \n '+(null==(t=e.message)?"":t)+"\n \n
  • \n "})),n+="\n
\n"}},96034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(38644);t.default={form:i.default}},96012:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n ',e.label.hidden||(n+='\n
\n '+(null==(t=e.labelMarkup)?"":t)+"\n
\n "),n+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n
\n \n
\n '),n+='\n\n
\n '+(null==(t=e.element)?"":t)+"\n
\n
\n\n",e.component.description&&(n+='\n
'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"
\n"),n+"\n"}},66655:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n \n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n
'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"
\n"),n+"\n"}},28975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(66655),r=n(96012);t.default={form:i.default,align:r.default}},96377:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="
\n ",e.component.legend&&(n+='\n \n '+(null==(t=e.t(e.component.legend,{_userInput:!0}))?"":t)+"\n ",e.component.tooltip&&(n+='\n \n '),n+="\n \n "),n+="\n ",e.collapsed||(n+='\n
\n '+(null==(t=e.children)?"":t)+"\n
\n "),n+"\n
\n"}},85153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(96377);t.default={form:i.default}},93643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.options.vpat&&(n+='\n \n'),n+="\n",e.self.imageUpload?(n+="\n
\n ",e.files.forEach((function(i){n+='\n
\n \n '+(null==(t=i.originalName||i.name)?\n ',e.disabled||(n+='\n \n '),n+="\n \n
\n "})),n+="\n
\n"):(n+="\n ",e.options.vpat&&(n+="\n
"+(null==(t=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":t)+"
\n "),n+='\n
    \n \n ",e.files.forEach((function(i){n+='\n
  • \n
    \n ',e.disabled||(n+='\n
    \n '),n+='\n
    \n '+(null==(t=e.t("Press to open "))?"":t)+""+(null==(t=i.originalName||i.name)?"":t)+"\n \n ",n+='\n
    \n
    '+(null==(t=e.fileSize(i.size))?"":t)+"
    \n ",e.self.hasTypes&&!e.disabled&&(n+='\n
    \n \n
    \n "),n+="\n ",e.self.hasTypes&&e.disabled&&(n+='\n
    '+(null==(t=i.fileType)?"":t)+"
    \n "),n+="\n
    \n
  • \n "})),n+="\n
\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n ",e.self.useWebViewCamera?n+='\n
\n \n \n
\n ":e.self.cameraMode?n+='\n
\n \n
\n \n \n ":(n+='\n \n '),n+="\n"),n+="\n",e.statuses.forEach((function(i){n+='\n
\n
\n
'+(null==(t=i.originalName)?"":t)+'\n \n '+(null==(t=e.t("Remove button. Press to remove "+i.originalName||0))?"":t)+'\n '+(null==(t=i.message?i.message.replace(";","."):"")?"":t)+'\n \n
\n
'+(null==(t=e.fileSize(i.size))?"":t)+'
\n
\n
\n
\n ',"progress"===i.status?n+='\n
\n
\n '+(null==(t=i.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"\n
\n
\n ":"error"===i.status?n+='\n
'+(null==(t=e.t(i.message))?"":t)+"
\n ":n+='\n
'+(null==(t=e.t(i.message))?"":t)+"
\n ",n+="\n
\n
\n
\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n
\n ',e.component.storage||(n+="\n

"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"

\n "),n+="\n ",e.support.filereader||(n+="\n

"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"

\n "),n+="\n ",e.support.formdata||(n+="\n

"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"

\n "),n+="\n ",e.support.progress||(n+="\n

"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"

\n "),n+="\n
\n"),n+="\n"}},27251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(93643);t.default={form:i.default}},25918:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<"+(null==(t=e.tag)?"":t)+' class="formio-component-htmlelement '+(null==(t=e.component.className)?"":t)+'" ref="html"\n ',e.attrs.forEach((function(e){n+="\n "+(null==(t=e.attr)?"":t)+'="'+(null==(t=e.value)?"":t)+'"\n '})),n+="\n>"+(null==(t=e.t(e.content))?"":t),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(n+=""),n+="\n"}},6268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(25918);t.default={form:i.default}},67262:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+''+(null==(t=e.content)?"":t)+"\n"}},46460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(67262);t.default={form:i.default}},42955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,n)=>{let i=t;switch(t){case"cog":i="gear";break;case"copy":i="back";break;case"bars":i="list";break;case"remove":i="trash";break;case"font":i="type";break;case"hashtag":i="hash";break;case"th-list":i="menu-button-wide";break;case"dot-circle-o":i="ui-radios";break;case"plus-square":i="ui-checks";break;case"phone-square":i="phone";break;case"home":i="house";break;case"clock-o":case"time":i="clock";break;case"usd":i="currency-dollar";break;case"html5":i="file-richtext";break;case"pencil-square-o":i="pencil-square";break;case"columns":i="layout-three-columns";break;case"list-alt":i="window";break;case"th-large":i="grid-fill";break;case"folder-o":i="folder";break;case"square-o":i="square";break;case"user-secret":i="person-fill-slash";break;case"folder-open":i="folder2-open";break;case"th":i="grid-3x3-gap-fill";break;case"tasks":i="view-stacked";break;case"indent":i="text-indent-left";break;case"refresh":i="arrow-repeat";break;case"files-o":i="files";break;case"wpforms":i="window-stack";break;case"cube":i="box";break;case"cubes":i="boxes";break;case"check-square-o":i="check-square";break;case"plus":i="plus-lg";break;case"question-sign":i="question-circle";break;case"remove-circle":i="x-circle";break;case"new-window":i="window-plus";break;case"move":i="arrows-move"}return n?"spinner-border spinner-border-sm":`fa fa-${t} bi bi-${i}`}},60612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(31667),r=n(14572),o=n(20663),s=n(32504),a=n(51970),l=n(9241),u=n(38296),c=n(22719),d=n(69295),h=n(66909),p=n(95828),f=n(144),m=n(82396),g=n(87733),v=n(37957),y=n(31179),b=n(85636),_=n(31373),w=n(77153),k=n(48885),x=n(23665),E=n(76383),C=n(28975),O=n(85153),S=n(27251),P=n(6268),A=n(46460),M=n(42955),T=n(25115),R=n(27025),D=n(60802),j=n(2879),I=n(42589),L=n(72776),N=n(37014),V=n(83218),F=n(28178),U=n(71766),B=n(16557),$=n(83041),z=n(72057),H=n(61161),q=n(10348),W=n(50957),Y=n(744),K=n(29256),G=n(56129),J=n(20880),X=n(84001),Z=n(43279),Q=n(43168),ee=n(54455),te=n(5497),ne=n(28832),ie=n(44219),re=n(17077),oe=n(60106),se=n(79059),ae=n(41449),le=n(37833),ue=n(68195),ce=n(93751),de=n(96034),he=n(85765);t.default=Object.assign(Object.assign({transform(e,t,n){if(!t)return t;if("class"===e){let e="";return"form-group"===t&&(e="mb-2 ",n&&n.component.block&&(e+="d-grid ")),`${e}${this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}`}return t},defaultIconset:"bi",iconClass:M.default,cssClasses:ce.default,address:i.default,builder:r.default,builderComponent:o.default,builderComponents:s.default,builderEditForm:a.default,builderPlaceholder:l.default,builderSidebar:u.default,builderSidebarGroup:c.default,builderWizard:d.default,button:h.default,checkbox:p.default,columns:f.default,component:m.default,componentModal:g.default,components:v.default,tableComponents:y.default,container:b.default,datagrid:_.default,day:w.default,dialog:k.default,editgrid:x.default,editgridTable:E.default,field:C.default,fieldset:O.default,file:S.default,html:P.default,icon:A.default,input:T.default,label:R.default,loader:D.default,loading:j.default,map:I.default,message:L.default,modaledit:V.default,modaldialog:N.default,modalPreview:F.default,multipleMasksInput:U.default,multiValueRow:B.default,multiValueTable:$.default,panel:z.default,pdf:H.default,pdfBuilder:q.default,pdfBuilderUpload:W.default,radio:Y.default,resourceAdd:K.default,select:G.default,selectOption:J.default,signature:X.default,survey:Z.default,tab:Q.default,table:ee.default,tree:te.default},ne.default),{webform:ie.default,well:re.default,wizard:oe.default,wizardHeader:se.default,wizardHeaderClassic:ae.default,wizardHeaderVertical:le.default,wizardNav:ue.default,errorsList:de.default,alert:he.default})},76659:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n
\n '),n+="\n ",e.prefix&&(n+='\n
\n ',e.prefix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n ",n+="\n
\n "),n+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var i in n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n aria-required="'+(null==(t="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":t)+'"\n >'+(null==(t=e.input.content)?"":t)+"\n ",e.hasValueMaskInput&&(n+='\n \n '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n
\n'),n+="\n","datetime"===e.component.type&&(n+='\n\n'),n+="\n",e.suffix&&(n+='\n
\n ',e.suffix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n ",n+="\n
\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n
\n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n
\n ',e.component.showCharCount&&(n+='\n \n '),n+="\n ",e.component.showWordCount&&(n+='\n \n '),n+="\n
\n"),n+"\n"}},59048:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"
\n"}},25115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(76659),r=n(59048);t.default={form:i.default,html:r.default}},90761:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+='\n , '+(null==(t=e.t("numeric only"))?"":t)+",\n "),n+="\n ",e.component.tooltip&&(n+='\n \n '),n+"\n\n"}},27025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90761);t.default={form:i.default}},37108:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
\n
\n
\n
\n
\n'}},60802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(37108);t.default={form:i.default}},7247:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},2879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(7247);t.default={form:i.default}},38717:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n'}},42589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(38717);t.default={form:i.default}},87970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
'+(null==(t=e.message)?"":t)+"
\n"}},72776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(87970);t.default={form:i.default}},62980:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n\n\n '+(null==(t=e.previewText)?"":t)+'\n\n
\n '+(null==(t=e.messages)?"":t)+"\n
\n"}},28178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(62980);t.default={form:i.default}},54496:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n
\n
\n \n '+(null==(t=e.t("Close"))?"":t)+'\n \n
\n
\n
\n'}},37014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(54496);t.default={form:i.default}},3300:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n \n \n \n
'+(null==(t=e.content)?"":t)+"
\n
\n"}},83218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3300);t.default={form:i.default}},52749:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n '+(null==(t=e.element)?"":t)+"\n \n ",e.disabled||(n+='\n \n \n \n '),n+"\n\n"}},16557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(52749);t.default={form:i.default}},45753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n '+(null==(t=e.rows)?"":t)+"\n ",e.disabled||(n+='\n \n \n \n "),n+"\n \n
\n \n
\n"}},83041:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(45753);t.default={form:i.default}},54464:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='\n '+(null==(t=e.label)?"":t)+"\n "})),n+='\n \n {"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(54464);t.default={form:i.default}},73649:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n
\n \n ',e.component.collapsible&&(n+='\n \n '),n+="\n ",e.component.hideLabel&&!e.builder||(n+="\n "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n \n '),n+="\n \n
\n "),n+="\n ",e.collapsed&&!e.builder||(n+='\n
\n '+(null==(t=e.children)?"":t)+"\n
\n "),n+"\n
\n"}},72057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(73649);t.default={form:i.default}},66529:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n\t\n\t\t\n\t\n\t\n\t\t\n\t\n
\n '+(null==(t=e.submitButton)?"":t)+"\n
\n"}},61161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(66529);t.default={form:i.default}},87278:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n
\n '+(null==(t=e.sidebar)?"":t)+'\n
\n
\n\t
\n '+(null==(t=e.form)?"":t)+"\n
\n
\n"}},10348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(87278);t.default={form:i.default}},60333:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n

'+(null==(t=e.t("Upload a PDF File"))?"":t)+'

\n \n
\n \n '+(null==(t=e.t("Drop pdf to start, or"))?"":t)+' '+(null==(t=e.t("browse"))?"":t)+'\n \n \n
\n
\n\n
\n
\n\n'}},50957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60333);t.default={form:i.default}},66690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n ',["left","top"].includes(e.component.optionsLabelPosition)&&(n+='\n \n "),n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';n+='\n value="'+(null==(t=i.value)?"":t)+'"\n ',e.value&&(e.value===i.value||"object"==typeof e.value&&e.value.hasOwnProperty(i.value)&&e.value[i.value])&&(n+="\n checked=true\n "),n+="\n ",i.disabled&&(n+="\n disabled=true\n "),n+='\n id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=i.value)?"":t)+'"\n role="'+(null==(t="selectboxes"===e.component.type?"checkbox":"radio")?"":t)+'"\n >\n ',e.component.optionsLabelPosition&&!["right","bottom"].includes(e.component.optionsLabelPosition)||(n+='\n \n "),n+="\n \n "})),n+="\n\n"}},58613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='
\n ')+"\n "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n
\n"}},744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(66690),r=n(58613);t.default={form:i.default,html:r.default}},41090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'\n \n \n \n \n \n \n \n \n
\n '+(null==(t=e.element)?"":t)+'\n
\n \n
\n"}},29256:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(41090);t.default={form:i.default}},15193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+=''+(null==(t=e.selectOptions)?"":t)+'\n\n'}},51202:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"
\n"}},56129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(15193),r=n(51202);t.default={form:i.default,html:r.default}},95434:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="\n"}},31885:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label,{_userInput:!0}))?"":t),n+"\n"}},20880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(95434),r=n(31885);t.default={form:i.default,html:r.default}},89721:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n\n \n \n \n \n ',e.required&&(n+='\n \n '),n+='\n \n\n',e.component.footer&&(n+='\n \n"),n+"\n"}},25730:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'\n'}},84001:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(89721),r=n(25730);t.default={form:i.default,html:r.default}},99903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n \n \n ',e.component.values.forEach((function(i){n+='\n \n "})),n+="\n \n \n \n ",e.component.questions.forEach((function(i){n+="\n \n \n ",e.component.values.forEach((function(r){n+='\n \n '})),n+="\n \n "})),n+="\n \n
\n '+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+='\n \n '),n+="\n
\n "+(null==(t=e.t(i.label))?"":t)+"\n ",i.tooltip&&(n+='\n \n '),n+="\n \n \n
\n"}},62724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n ',e.component.questions.forEach((function(i){n+="\n \n \n \n \n "})),n+="\n \n
"+(null==(t=e.t(i.label))?"":t)+"\n ",e.component.values.forEach((function(r){n+="\n ",e.value&&e.value.hasOwnProperty(i.value)&&e.value[i.value]===r.value&&(n+="\n "+(null==(t=e.t(r.label))?"":t)+"\n "),n+="\n "})),n+="\n
\n"}},43279:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(99903),r=n(62724);t.default={form:i.default,html:r.default}},3607:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(i,r){n+='\n
\n
\n

'+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+'

\n
\n \n '+(null==(t=e.tabComponents[r])?"":t)+"\n
\n \n"})),n+="\n"}},42906:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n \n
\n ",e.component.components.forEach((function(i,r){n+='\n \n '+(null==(t=e.tabComponents[r])?"":t)+"\n
\n "})),n+="\n\n"}},43168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3607),r=n(42906);t.default={flat:i.default,form:r.default}},65063:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n ",e.component.header&&e.component.header.length>0&&(n+="\n \n \n ",e.component.header.forEach((function(i){n+="\n \n "})),n+="\n \n \n "),n+="\n \n ",e.tableComponents.forEach((function(i,r){n+='\n \n ',i.forEach((function(i,o){n+='\n \n "})),n+="\n \n
'+(null==(t=e.t(e.component.label))?"":t)+"
"+(null==(t=e.t(i))?"":t)+"
\n "})),n+="\n
\n"}},54455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65063);t.default={form:i.default}},11107:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.children.forEach((function(e){n+='\n \n '+(null==(t=e)?"":t)+"\n \n"})),n+="\n"}},31179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(11107);t.default={form:i.default}},53873:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n
\n':n+='\n
  • \n',n+="\n ",e.content&&(n+='\n
    \n '+(null==(t=e.content)?"":t)+"\n
    \n "),n+="\n ",e.childNodes&&e.childNodes.length&&(n+='\n
      \n '+(null==(t=e.childNodes.join(""))?"":t)+"\n
    \n "),n+="\n",e.node.isRoot?n+="\n
  • \n":n+="\n \n",n+"\n"}},5497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(53873);t.default={form:i.default}},55220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n
    '+(null==(t=e.children)?"":t)+"
    \n ",e.readOnly||(n+='\n
    \n \n \n
    \n "),n+"\n
    \n"}},28832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(55220),r=n(87509);t.default={treeView:{form:r.default},treeEdit:{form:i.default}}},87509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.values.forEach((function(e){n+='\n
    \n '+(null==(t=e)?"":t)+"\n
    \n "})),n+='\n
    \n
    \n ',e.node.hasChildren&&(n+='\n \n "),n+="\n ",e.readOnly||(n+='\n \n \n \n ",e.node.revertAvailable&&(n+='\n \n "),n+="\n "),n+="\n
    \n
    \n
    \n"}},84850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    '+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"
    \n"}},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    '+(null==(t=e.children)?"":t)+"
    \n"}},44219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5939),r=n(84850);t.default={form:i.default,builder:r.default}},46677:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n
    \n '+(null==(t=e.children)?"":t)+"\n
    \n
    \n"}},17077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(46677);t.default={form:i.default}},66055:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    '+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"
    \n"}},24348:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n
    \n ',"wizardHeaderVertical"===e.wizardHeaderType?(n+='\n
    \n ',"right"!==e.wizardHeaderLocation&&(n+='\n
    \n '+(null==(t=e.wizardHeader)?"":t)+"\n
    \n "),n+='\n
    \n '+(null==(t=e.components)?"":t)+"\n
    \n ","right"===e.wizardHeaderLocation&&(n+='\n
    \n '+(null==(t=e.wizardHeader)?"":t)+"\n
    \n "),n+='\n
    \n
    \n '+(null==(t=e.wizardNav)?"":t)+"\n
    \n "):n+="\n "+(null==(t=e.wizardHeader)?"":t)+'\n
    \n '+(null==(t=e.components)?"":t)+"\n
    \n "+(null==(t=e.wizardNav)?"":t)+"\n ",n+"\n
    \n
    \n"}},60106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(24348),r=n(66055);t.default={form:i.default,builder:r.default}},46251:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n"}},79059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(46251);t.default={form:i.default}},4769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n"}},41449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4769);t.default={form:i.default}},30977:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n"}},37833:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(30977);t.default={form:i.default}},51707:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
      \n ',e.buttonOrder.forEach((function(i){n+="\n ","cancel"===i&&e.buttons.cancel&&(n+='\n
    • \n \n
    • \n "),n+="\n ","previous"===i&&e.buttons.previous&&(n+='\n
    • \n \n
    • \n "),n+="\n ","next"===i&&e.buttons.next&&(n+='\n
    • \n \n
    • \n "),n+="\n ","submit"===i&&e.buttons.submit&&(n+="\n
    • \n ",e.disableWizardSubmit?n+='\n \n ":n+='\n \n ",n+="\n
    • \n "),n+="\n "})),n+="\n
    \n"}},68195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(51707);t.default={form:i.default}},57423:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.util.eachComponent(e.components,(function(i){n+="\n ",i.hasOwnProperty("tableView")&&!i.tableView||(n+='\n
    '+(null==(t=e.t(i.label))?"":t)+"
    \n "),n+="\n "})),n+="\n
    \n"}},76274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(63468),r=n(57423);t.default={row:i.default,header:r.default}},63468:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.util.eachComponent(e.components,(function(i){n+="\n ",i.hasOwnProperty("tableView")&&!i.tableView||(n+='\n
    \n '+(null==(t=e.getView(i,e.row[i.key]))?"":t)+"\n
    \n "),n+="\n "})),n+="\n ",e.self.options.readOnly||(n+='\n
    \n
    \n \n \n
    \n
    \n '),n+="\n
    \n"}},85185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editgrid=void 0;const i=n(76274);t.editgrid=i.default},1704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.baseUrl=e||"https://cdn.form.io",this.overrides={},this.libs={ace:"1.4.12",bootstrap:"4.6.2",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.2","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,n){let i;return i="latest"===n||""===n?`${e}/${t}`:`${e}/${t}/${n}`,i}updateUrls(){for(const e in this.libs)e in this.overrides?this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]):this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}},31959:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(98625)),l=n(29857),u=o(n(34600)),c=s(n(35543)),d=s(n(2543)),h=s(n(95093)),p=s(n(78443));t.default=class{constructor(e){this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},e||{}),this.id=u.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||c.default,this.events=e&&e.events?e.events:new a.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}on(e,t,n,i=!1){if(!this.events)return;const r=`${this.options.namespace}.${e}`;return t.id=this.id,t.key=this.key,t.internal=n,this.events[i?"once":"on"](r,t)}once(e,t,n){return this.on(e,t,n,!0)}onAny(e){if(this.events)return this.events.onAny(e)}offAny(e){if(this.events)return this.events.offAny(e)}off(e,t){if(!this.events)return;const n=`${this.options.namespace}.${e}`;this.events.listeners(n).forEach((e=>{e&&e.id===this.id&&(t&&t!==e||this.events.off(n,e))}))}emit(e,...t){this.events&&this.events.emit(`${this.options.namespace}.${e}`,...t)}hasEventHandler(e){if(!this.events)return!1;const t=`${this.options.namespace}.${e}`;return this.events.listeners(t).some((e=>!!e&&(e.id===this.id||e.key===this.key)))}addEventListener(e,t,n,i){if(e)return i||this.eventHandlers.push({id:this.id,obj:e,type:t,func:n}),"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent(`on${t}`,n),this}removeEventListener(e,t,n=null){const i=[];if(e)return this.eventHandlers.forEach(((r,o)=>{r.id!==this.id||!e.removeEventListener||r.type!==t||n&&r.func!==n||(e.removeEventListener(t,r.func),i.push(o))})),i.length&&d.default.pullAt(this.eventHandlers,i),this}removeEventListeners(){this.eventHandlers.forEach((e=>{this.id===e.id&&e.type&&e.obj&&e.obj.removeEventListener&&e.obj.removeEventListener(e.type,e.func)})),this.eventHandlers=[]}removeAllEvents(e){this.events&&d.default.each(this.events._events,((t,n)=>{d.default.each(t,(t=>{t&&this.id===t.id&&(e||t.internal)&&this.events.off(n,t)}))}))}teardown(){delete this.i18next,delete this.events}destroy(e=!1){this.removeEventListeners(),this.removeAllEvents(),e&&this.teardown()}appendTo(e,t){return null==t||t.appendChild(e),this}prependTo(e,t){if(t)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e);return this}removeChildFrom(e,t){if(t&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}return this}ce(e,t,n=null){const i=document.createElement(e);return t&&this.attr(i,t),this.appendChild(i,n),i}appendChild(e,t){return Array.isArray(t)?t.forEach((t=>this.appendChild(e,t))):t instanceof HTMLElement||t instanceof Text?e.appendChild(t):t&&e.appendChild(this.text(t.toString())),this}maskPlaceholder(e){return e.map((e=>e instanceof RegExp?this.placeholderChar:e)).join("")}get placeholderChar(){var e;return(null===(e=this.component)||void 0===e?void 0:e.inputMaskPlaceholderChar)||"_"}setInputMask(e,t,n){if(e&&t){const i=u.getInputMask(t,this.placeholderChar);this.defaultMask=i;try{e.mask&&e.mask.destroy(),e.mask=(0,p.default)({inputElement:e,mask:i,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}i.numeric&&e.setAttribute("pattern","\\d*"),n&&e.setAttribute("placeholder",this.maskPlaceholder(i))}}t(e,...t){return this.i18next?this.i18next.t(e,...t):e}text(e){return document.createTextNode(this.t(e))}attr(e,t){e&&d.default.each(t,((t,n)=>{void 0!==t&&(0===n.indexOf("on")?this.addEventListener(e,n.substr(2).toLowerCase(),t):e.setAttribute(n,t))}))}hasClass(e,t){return!!e&&(t=` ${t} `,` ${e.className} `.replace(/[\n\t\r]/g," ").indexOf(t)>-1)}addClass(e,t){if(!(e&&e instanceof HTMLElement))return this;const n=e.getAttribute("class");return(null==n?void 0:n.includes(t))||e.setAttribute("class",`${n} ${t}`),this}removeClass(e,t){if(!(e&&t&&e instanceof HTMLElement))return this;let n=e.getAttribute("class");return n&&(n=n.replace(new RegExp(` ${t}`,"g"),""),e.setAttribute("class",n)),this}empty(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}evalContext(e){var t;return Object.assign({_:d.default,utils:u,util:u,user:l.Formio.getUser(),moment:h.default,instance:this,self:this,token:l.Formio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:(null===(t=this.options)||void 0===t?void 0:t.formConfig)?this.options.formConfig:{}},e,d.default.get(this.root,"options.evalContext",{}))}interpolate(e,t,n={}){return"function"==typeof e||!this.component.content&&!this.component.html||u.Evaluator.templateSettings.interpolate.test(e)||(e=u.translateHTMLTemplate(String(e),(e=>this.t(e)))),u.interpolate(e,this.evalContext(t),n)}evaluate(e,t,n,i){return u.evaluate(e,this.evalContext(t),n,i)}hook(){const e=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1));{const e="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return e?e(null,arguments[1]):arguments[1]}}}},98625:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=n(30228),a=o(n(34600));class l extends s.EventEmitter{constructor(e={}){const{loadLimit:t=1e3,eventsSafeInterval:n=300}=e;super(),this.onAny=e=>{this.on("any",e)},this.offAny=e=>{this.off("any",e)};const i=a.observeOverload((()=>{console.warn(`There were more than ${t} events emitted in ${n} ms. It might be caused by events' infinite loop`,this.id)}),{limit:t,delay:n});this.emit=(...e)=>{super.emit(...e),super.emit("any",...e),i()}}}t.default=l},18633:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(31959)),l=n(29857),u=s(n(46043)),c=s(n(84591)),d=o(n(34600)),h=s(n(53632));class p extends a.default{constructor(...e){let t=e[0]instanceof HTMLElement?e[2]:e[1];l.Formio.options&&l.Formio.options.form&&(t=Object.assign(t,l.Formio.options.form)),super(t),this.options.useSessionToken&&l.Formio.useSessionToken(this.options),this.ready=new h.default(((e,t)=>{this.readyResolve=e,this.readyReject=t})),this.instance=null,e[0]instanceof HTMLElement?(this.element&&delete this.element.component,this.element=e[0],this.options=e[2]||{},this.options.events=this.events,this.setForm(e[1]).then((()=>this.readyResolve(this.instance))).catch(this.readyReject)):e[0]?(this.element=null,this.options=e[1]||{},this.options.events=this.events,this.setForm(e[0]).then((()=>this.readyResolve(this.instance))).catch(this.readyReject)):(this.element=null,this.options={},this.options.events=this.events),this.display=""}create(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,u.default.displays[e]?new u.default.displays[e](this.element,this.options):new u.default.displays.webform(this.element,this.options)}set form(e){this.setForm(e)}errorForm(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}setForm(e){let t;if("string"==typeof(e=e||this.form)){const n=new l.Formio(e);let i;t=this.getSubmission(n,this.options).catch((e=>{i=e})).then((t=>n.loadForm().catch((e=>{i=e})).then((n=>{if(i&&(n=this.errorForm(i)),this.instance=this.instance||this.create(n.display),this.instance.url=e,this.instance.nosubmit=!1,this._form=this.instance.form=n,t&&(this.instance.submission=t),i)throw i;return this.instance}))))}else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,t=this.instance.ready;return t.then((()=>(this.element&&delete this.element.component,this.element=this.instance.element,this.instance)))}getSubmission(e,t){return e.submissionId?e.loadSubmission(null,t):h.default.resolve()}get form(){return this._form}setDisplay(e){return this.display===e&&this.instance?h.default.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}empty(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}static embed(e){return new h.default((t=>{e&&e.src||t();const n=this.id||`formio-${Math.random().toString(36).substring(7)}`,i=e.class||"formio-form-wrapper";let r=e.styles?``:"";r+=`
    `,document.write(r);let o=0;const s=setInterval((()=>{o++;const i=document.getElementById(n);(i||o>10)&&(t(new p(i,e.src).ready),clearInterval(s))}),10)}))}sanitize(e,t){return!1!==this.options.sanitize||t?d.sanitize(e,this.options):e}setContent(e,t,n){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n),!0)}build(){if(!this.instance)return h.default.reject("Form not ready. Use form.ready promise");if(!this.element)return h.default.reject("No DOM element for form.");const e=this.options&&this.options.template?this.options.template:"bootstrap",t=c.default[e].loader||c.default.bootstrap.loader;return this.setContent(this.element,t.form),this.render().then((e=>(this.setContent(this.element,e),this.attach(this.element).then((()=>this.instance))))).then((e=>(this.emit("build",e),e)))}render(){return this.instance?h.default.resolve(this.instance.render()).then((e=>(this.emit("render",e),e))):h.default.reject("Form not ready. Use form.ready promise")}attach(e){return this.instance?(this.element&&delete this.element.component,this.element=e,this.instance.attach(this.element).then((e=>(this.emit("attach",e),e)))):h.default.reject("Form not ready. Use form.ready promise")}teardown(){super.teardown(),delete this.instance,delete this.ready}}t.default=p,l.Formio.embedForm=e=>p.embed(e),l.Formio.createForm=(...e)=>new p(...e).ready,l.Formio.Form=p},76482:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),o=i(n(5292)),s=i(n(18633));class a extends s.default{constructor(e,t,n){n=n||{},super(e,t=t||{},Object.assign(n,a.options,r.Formio.options&&r.Formio.options.builder?r.Formio.options.builder:{}))}create(e){return o.default.builders[e]?new o.default.builders[e](this.element,this.options):new o.default.builders.webform(this.element,this.options)}}a.options={},t.default=a,r.Formio.builder=(...e)=>new a(...e).ready,r.Formio.FormBuilder=a},29857:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const r=n(35349);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}});const o=i(n(1704)),s=i(n(77486));r.Formio.cdn=new o.default,r.Formio.Providers=s.default,r.Formio.version="FORMIO_VERSION";const a=e=>null==e;r.Formio.prototype.uploadFile=function(e,t,n,i,o,l,u,c,d,h,p,f){const m={provider:e,method:"upload",file:t,fileName:n,dir:i};c=c||"file";const g=r.Formio.pluginWait("preRequest",m).then((()=>r.Formio.pluginGet("fileRequest",m).then((r=>{if(e&&a(r)){const r=s.default.getProvider("storage",e);if(r){const e=new r(this);return p&&p(),e.uploadFile(t,n,i,o,l,u,c,d,h,f)}throw"Storage provider not found"}return r||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",g,m)},r.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},i=r.Formio.pluginWait("preRequest",n).then((()=>r.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&a(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).downloadFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",i,n)},r.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},i=r.Formio.pluginWait("preRequest",n).then((()=>r.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&a(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).deleteFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",i,n)},r.Formio.Promise=Promise},90177:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632)),o=n(29857),s=i(n(97567)),a=n(34600);class l extends s.default{constructor(e,t){t.display="pdf",super(e,t),this.components=[]}init(){super.init(),this.on("iframe-submission",(e=>this.setValue(e,{fromIframe:!0})),!0),this.on("iframe-change",(e=>this.setValue(e,{fromIframe:!0})),!0),this.on("iframe-getIframePositions",(e=>{const t=document.getElementById(`iframe-${e.formId}`);if(t){const n=t.getBoundingClientRect();this.postMessage({name:"iframePositions",data:{formId:e.formId,iframe:{top:n.top},scrollY:window.scrollY||window.pageYOffset}})}})),this.on("iframe-ready",(()=>this.iframeReadyResolve()),!0)}render(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}redraw(){return this.postMessage({name:"redraw"}),this.builderMode?r.default.resolve():super.redraw()}destroy(e=!1){this.iframeElement&&(delete this.iframeElement.formioComponent,this.iframeElement.formioComponent=null),super.destroy(e)}rebuild(){return this.attached&&this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),r.default.resolve()):(this.postMessage({name:"redraw"}),super.rebuild())}attachComponents(e,t,n){return t=t||this.components,n=n||this.component.components,e=this.hook("attachComponents",e,t,n,this),Promise.resolve()}attach(e){return super.attach(e).then((()=>{this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),this.submitButton.refs=Object.assign({},this.refs),this.submitButton.attachButton(),this.iframeReady=new r.default(((e,t)=>{this.iframeReadyResolve=e,this.iframeReadyReject=t})),this.iframeElement=this.ce("iframe",{src:this.getSrc(),id:`iframe-${this.id}`,seamless:!0,class:"formio-iframe"}),this.iframeElement.formioContainer=this.component.components,this.iframeElement.formioComponent=this,this.empty(this.refs.iframeContainer),this.appendChild(this.refs.iframeContainer,this.iframeElement),this.form.base=o.Formio.getBaseUrl(),this.form.projectUrl=o.Formio.getProjectUrl(),this.postMessage({name:"form",data:this.form});const t=this.components.find((e=>e.element===this.refs.button));t&&this.refs.button.classList.toggle("hidden",!t.visible),this.addEventListener(this.refs.zoomIn,"click",(e=>{e.preventDefault(),this.postMessage({name:"zoomIn"})})),this.addEventListener(this.refs.zoomOut,"click",(e=>{e.preventDefault(),this.postMessage({name:"zoomOut"})}));const n=(0,a.fastCloneDeep)(this.form);this.formio&&(n.projectUrl=this.formio.projectUrl,n.url=this.formio.formUrl,n.base=this.formio.base,this.postMessage({name:"token",data:this.formio.getToken()})),this.emit("attach")}))}getSubmission(){return new r.default((e=>{this.once("iframe-submission",e),this.postMessage({name:"getSubmission"})}))}submitForm(e={}){return this.postMessage({name:"getErrors"}),this.getSubmission().then((()=>super.submitForm(e)))}getSrc(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";let e=`${this._form.settings.pdf.src}.html`;const t=[`id=${this.id}`];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&t.push("checkboxbackground=1"),this.options.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push(`zoom=${this.options.zoom}`),this.builderMode&&t.push("builder=1"),t.length&&(e+=`?${t.join("&")}`),e}setForm(e,t={}){return super.setForm(e,t).then((()=>{this.formio&&(e.projectUrl=this.formio.projectUrl,e.url=this.formio.formUrl,e.base=this.formio.base,this.postMessage({name:"token",data:this.formio.getToken()})),this.postMessage({name:"form",data:this.form})}))}setValue(e,t={}){const n=super.setValue(e,t);return t&&t.fromIframe||this.once("iframe-ready",(()=>{n&&this.postMessage({name:"submission",data:e})})),n}postMessage(e){this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then((()=>{!this.iframeElement||!this.iframeElement.contentWindow||"form"===e.name&&this.iframeFormSetUp||(this.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),this.iframeFormSetUp="form"===e.name)})))}focusOnComponent(e){this.postMessage({name:"focusErroredField",data:e})}clear(){}showErrors(e,t){var n;const i=document.getElementById("submit-error"),r=this.t("submitError"),o=(null===(n=this.refs.buttonMessage)||void 0===n?void 0:n.textContent.trim())===r;if(!i&&this.errors.length&&!o){const e=this.ce("p",{class:"help-block"});this.setContent(e,r),e.addEventListener("click",(()=>{window.scrollTo(0,0)}));const t=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(e,t),this.appendTo(t,this.element)}!this.errors.length&&i&&i.remove(),super.showErrors(e,t)}isSubmitButtonHidden(){let e=!1;return(0,a.eachComponent)(this.component.components,(t=>{"button"!==t.type||"submit"!==t.action&&t.action||(e=t.hidden||!1)})),e}}t.default=l,"undefined"!=typeof window&&window.addEventListener("message",(e=>{let t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&o.Formio.forms.hasOwnProperty(t.formId)&&o.Formio.forms[t.formId].emit(`iframe-${t.name}`,t.data)}))},28042:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(53632)),s=n(29857),a=i(n(57692)),l=n(34600),u=n(30214),c=i(n(87338)),d=i(n(90177));class h extends a.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!0,t.display="pdf",e?super(e,t):super(t),this.dragDropEnabled=!1}get defaultGroups(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}get hasPDF(){return r.default.has(this.webform.form,"settings.pdf")}get projectUrl(){return this.options.projectUrl||s.Formio.getProjectUrl()}init(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}render(){return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))})))}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}attach(e){if(!this.hasPDF){if(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",(e=>{e.preventDefault()})),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){const e=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(t){return this.className="fileSelector",t.preventDefault(),e.upload(t.dataTransfer.files[0]),!1}))}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",(e=>{e.preventDefault(),"function"==typeof this.refs.hiddenFileInputElement.trigger?this.refs.hiddenFileInputElement.trigger("click"):this.refs.hiddenFileInputElement.click()})),this.addEventListener(this.refs.hiddenFileInputElement,"change",(()=>{this.refs.hiddenFileInputElement.value&&(this.upload(this.refs.hiddenFileInputElement.files[0]),this.refs.hiddenFileInputElement.value="")}))),o.default.resolve()}return super.attach(e).then((()=>(this.loadRefs(this.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),this.afterAttach(),this.element)))}afterAttach(){this.on("saveComponent",(e=>{this.webform.postMessage({name:"updateElement",data:e})})),this.on("removeComponent",(e=>{this.webform.postMessage({name:"removeElement",data:e})})),this.initIframeEvents(),this.updateDropzoneDimensions();const e=this.refs.sidebar;e&&(this.addClass(e,"disabled"),this.webform.on("iframe-ready",(()=>{this.pdfLoaded=!0,this.updateDragAndDrop(),this.removeClass(e,"disabled")}),!0))}upload(e){const t=new s.Formio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),t.uploadFile("url",e,e,"",(e=>{if(this.refs.uploadProgress){const t=Math.floor(e.loaded/e.total*100);this.refs.uploadProgress.style.width=`${t}%`,this.refs.uploadProgress.innerHTML=t>98?this.t("Converting PDF. Please wait."):`${this.t("Uploading")} ${t}%`}}),`${this.projectUrl}/upload`,{},"file").then((e=>{var t,n,i,o;let s=!1;if((null===(t=e.data.formfields)||void 0===t?void 0:t.components)&&e.data.formfields.components.length){const t="submit"===(null===(n=this.webform.form.components[0])||void 0===n?void 0:n.key),r="page1"===(null===(i=this.webform.form.components[0])||void 0===i?void 0:i.key)&&0===(null===(o=this.webform.form.components[0])||void 0===o?void 0:o.components.length),a=0===this.webform.form.components.length;(t||r||a)&&(s=!0,this.webform.form.components=e.data.formfields.components)}this.refs.dragDropText&&(this.refs.dragDropText.style.display="inherit"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="none"),r.default.set(this.webform.form,"settings.pdf",{id:e.data.file,src:e.data.filesServer?`${e.data.filesServer}${e.data.path}`:`${new URL(this.projectUrl).origin}/pdf-proxy${e.data.path}`,nonFillableConversionUsed:s&&e.data.formfields.nonFillableConversionUsed}),this.emit("pdfUploaded",e.data),this.redraw()})).catch((e=>this.setUploadError(e)))}setUploadError(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}createForm(e){return e.skipInit=!1,e.hideLoader=!0,this.webform=new d.default(this.element,e),this.webform.on("attach",(()=>{this.refs.iframeDropzone&&![...this.refs.form.children].includes(this.refs.iframeDropzone)&&this.prependTo(this.refs.iframeDropzone,this.refs.form)})),this.webform}destroy(e=!1){super.destroy(e),this.webform.destroy(e)}getParentContainer(e){let t=[],n=null;return(0,u.eachComponent)(this.webform._form.components,((i,r,o)=>{if(i.id===e.component.id)return t=o,n=i,!0}),!0),{formioComponent:e.parent,formioContainer:t,originalComponent:n}}initIframeEvents(){this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",(e=>{const t=this.webform.getComponentById(e.id);if(t&&t.component){const n=!0;t.component.overlay={page:e.page,left:e.left,top:e.top,height:e.height,width:e.width},this.options.noNewEdit||t.component.noNewEdit||this.editComponent(t.component,this.getParentContainer(t),n),this.emit("updateComponent",t.component)}return t})),this.webform.on("iframe-componentUpdate",(e=>{const t=this.webform.getComponentById(e.id);return t&&t.component&&(t.component.overlay={page:e.overlay.page,left:e.overlay.left,top:e.overlay.top,height:e.overlay.height,width:e.overlay.width},this.emit("updateComponent",t.component),this.emit("change",this.form)),t})),this.webform.on("iframe-componentClick",(e=>{const t=this.webform.getComponentById(e.id);t&&this.editComponent(t.component,this.getParentContainer(t))}),!0)}initDropzoneEvents(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",(e=>(e.preventDefault(),!1))),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}updateDragAndDrop(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}prepSidebarComponentsForDrag(){this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach((e=>{[...e.children].forEach((e=>{e.draggable=!0,e.setAttribute("draggable",!0),this.removeEventListener(e,"dragstart"),this.removeEventListener(e,"dragend"),this.addEventListener(e,"dragstart",this.onDragStart.bind(this),!0),this.addEventListener(e,"dragend",this.onDragEnd.bind(this),!0),this.addEventListener(e,"drag",(e=>{e.target.style.cursor="none"}))}))}))}updateDropzoneDimensions(){if(!this.refs.iframeDropzone)return;const e=(0,l.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?`${e.height}px`:"1000px",this.refs.iframeDropzone.style.width=e&&e.width?`${e.width}px`:"100%"}onDragStart(e){const{offsetX:t=0,offsetY:n=0}=e;this.itemOffsetX=t,this.itemOffsetY=n,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}onDropzoneDrop(e){return this.dropEmitted=!0,this.dropEvent=e,e.preventDefault(),!1}onDragEnd(e){const t=this.webform.refs.iframeContainer.getBoundingClientRect(),n=this.dropEvent?this.dropEvent.layerX:null,i=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(!(!this.dropEmitted&&(0,l.getBrowserInfo)().chrome&&"macOS"===globalThis.navigator.userAgentData.platform&&t.left{this.repeatablePaths.includes(t)&&this.webform.postMessage({name:"updateElement",data:e.component})})),this.repeatablePaths=e),e.length&&(0,u.eachComponent)(this.webform.getComponents(),((e,t)=>{this.repeatablePaths.includes(t)&&this.webform.postMessage({name:"showBuilderErrors",data:{compId:e.component.id,errorMessage:`API Key is not unique: ${e.key}`}})}))}}t.default=h},97567:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(95093)),s=n(38385),a=i(n(98625)),l=i(n(2899)),u=n(29857),c=i(n(53632)),d=i(n(87422)),h=i(n(42574)),p=n(34600),f=n(30214);u.Formio.forms={},u.Formio.registerComponent=d.default.setComponent;class m extends h.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],super(null,function(e){var t;return(e=r.default.defaults(e,{submitOnEnter:!1,iconset:(t=e&&e.icons?e.icons:u.Formio.icons,"fontawesome"===t?"fa":t||""),i18next:null,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:u.Formio.cdn.baseUrl})).events||(e.events=new a.default),e}(t)),this.executeShortcuts=e=>{const{target:t}=e;if(!this.keyboardCatchableElement(t))return;const n=e.ctrlKey||e.metaKey,i=e.keyCode;let o="";65<=i&&i<=90?o=String.fromCharCode(i):13===i?o="Enter":27===i&&(o="Esc"),r.default.each(this.shortcuts,(t=>{t.ctrl&&!n||t.shortcut===o&&(t.element.click(),e.preventDefault())}))},this.setElement(e),u.Formio.forms[this.id]=this,this.options.baseUrl&&u.Formio.setBaseUrl(this.options.baseUrl);let n=l.default;if(t&&t.i18n&&!t.i18nReady&&(t.i18n.resources?n=t.i18n:r.default.each(t.i18n,((e,t)=>{"options"===t?r.default.merge(n,e):n.resources[t]?r.default.assign(n.resources[t].translation,e):n.resources[t]={translation:r.default.assign((0,p.fastCloneDeep)(l.default.resources.en.translation),e)}})),t.i18n=n,t.i18nReady=!0),t&&t.i18n?this.options.i18n=t.i18n:this.options.i18n=n,this.options.language&&(this.options.i18n.lng=this.options.language),this.type="form",this._src="",this._loading=!1,this._form={},this.draftEnabled=!1,this.savingDraft=!0,this.options.saveDraftThrottle?this.triggerSaveDraft=r.default.throttle(this.saveDraft.bind(this),this.options.saveDraftThrottle):this.triggerSaveDraft=this.saveDraft.bind(this),this.customErrors=[],this.nosubmit=!1,this.submitted=!1,this.submitting=!1,this.formio=null,this.loader=null,this.alert=null,this.onSubmission=null,this.submissionSet=!1,this.formReady=new c.default(((e,t)=>{this.formReadyResolve=e,this.formReadyReject=t})),this.submissionReady=new c.default(((e,t)=>{this.submissionReadyResolve=e,this.submissionReadyReject=t})),this.shortcuts=[],this.localize().then((()=>{this.language=this.options.language})),this.options.saveDraft&&!this.options.skipDraftRestore){const e=u.Formio.getUser();e&&!this.submissionSet&&this.restoreDraft(e._id)}this.component.clearOnHide=!1,this.root=this,this.localRoot=this}get language(){return this.options.language}get emptyValue(){return null}componentContext(){return this._data}set language(e){if(!this.i18next)return;let t=this;if(t)if(t.options.language=e,t.i18next.language!==e)try{t.i18next.changeLanguage(e,(e=>{e?t=null:t&&(t.rebuild(),t.emit("languageChanged"),t=null)}))}catch(e){return void(t=null)}else t=null}get componentComponents(){return this.form.components}get shadowRoot(){return this.options.shadowRoot}addLanguage(e,t,n=!1){if(this.i18next){var i=r.default.assign((0,p.fastCloneDeep)(l.default.resources.en.translation),t);this.i18next.addResourceBundle(e,"translation",i,!0,!0),n&&(this.language=e)}}localize(){if(!this.i18next)return c.default.resolve(null);if(this.i18next.initialized)return c.default.resolve(this.i18next);this.i18next.initialized=!0;let e=this;return new c.default(((t,n)=>{try{if(!e)return;e.i18next.init(Object.assign(Object.assign({},e.options.i18n),{compatibilityJSON:"v3"}),(i=>{if(e||n(new Error("Lost reference to `this` while initializing i18next.")),e.options.language=e.i18next.language.split(";")[0],i)return e=null,n(i);const r=e.i18next;e=null,t(r)}))}catch(t){return e=null,n(t)}}))}keyboardCatchableElement(e){return"TEXTAREA"!==e.nodeName&&("INPUT"!==e.nodeName||-1===["text","email","password"].indexOf(e.type))}addShortcut(e,t){if(t&&/^([A-Z]|Enter|Esc)$/i.test(t))if("Enter"===(t=r.default.capitalize(t))||"Esc"===t){if("BUTTON"!==e.tagName)return;this.shortcuts.push({shortcut:t,element:e})}else this.shortcuts.push({ctrl:!0,shortcut:t,element:e})}removeShortcut(e,t){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&r.default.remove(this.shortcuts,{shortcut:t,element:e})}get src(){return this._src}loadSubmission(){return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then((e=>this.setSubmission(e)),(e=>this.submissionReadyReject(e))).catch((e=>this.submissionReadyReject(e))):this.submissionReadyResolve(),this.submissionReady}setSrc(e,t){return this.setUrl(e,t)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then((e=>{const t=this.setForm(e);return this.loadSubmission(),t})).catch((e=>{console.warn(e),this.formReadyReject(e)}))):c.default.resolve()}set src(e){this.setSrc(e)}get url(){return this._src}setUrl(e,t){return!(!e||"string"!=typeof e||e===this._src||(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new u.Formio(e,t),"form"===this.type&&(this.options.src=e),0))}set url(e){this.setUrl(e)}get ready(){return this.formReady.then((()=>super.ready.then((()=>!this.loadingSubmission||this.submissionReady))))}get loading(){return this._loading}set loading(e){if(this._loading!==e){if(this._loading=e,!this.loader&&e){this.loader=this.ce("div",{class:"loader-wrapper"});const e=this.ce("div",{class:"loader text-center"});this.loader.appendChild(e)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}setForm(e,t){var n,i,o;const a=this._form&&(null===(n=this._form.components)||void 0===n?void 0:n.length);try{if(a&&JSON.stringify(this._form)===JSON.stringify(e))return c.default.resolve();if(this._form=(null==t?void 0:t.keepAsReference)?e:r.default.cloneDeep(e),this.onSetForm&&this.onSetForm(r.default.cloneDeep(this._form),e),null===(o=null===(i=this.parent)||void 0===i?void 0:i.component)||void 0===o?void 0:o.modalEdit)return c.default.resolve()}catch(e){return console.warn(e),c.default.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),"schema"in e&&(0,s.compareVersions)(e.schema,"1.x")>0&&this.ready.then((()=>{this.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")})),e&&e.module){let t=null;if("string"==typeof e.module)try{t=this.evaluate(`return ${e.module}`)}catch(e){console.warn(e)}else t=e.module;t&&(u.Formio.use(t),t.options&&t.options.form&&(this.options=Object.assign(this.options,t.options.form)))}return this.initialized=!1,(this.rebuild()||c.default.resolve()).then((()=>(this.emit("formLoad",e),this.triggerRecaptcha(),setTimeout((()=>{this.onChange(t),this.formReadyResolve()}),0),this.formReady)))}get form(){return this._form||(this._form={components:[]}),this._form}set form(e){this.setForm(e)}get submission(){return this.getValue()}set submission(e){this.setSubmission(e)}setSubmission(e,t={}){return t=Object.assign(Object.assign({},t),{fromSubmission:!r.default.has(t,"fromSubmission")||t.fromSubmission}),this.onSubmission=this.formReady.then((n=>(n&&(t=Object.assign(Object.assign({},t),n)),this.submissionSet=!0,this.triggerChange(t),this.emit("beforeSetSubmission",e),this.setValue(e,t),this.submissionReadyResolve(e))),(e=>this.submissionReadyReject(e))).catch((e=>this.submissionReadyReject(e)))}saveDraft(){if(!this.draftEnabled)return;if(!this.formio)return void console.warn(this.t("saveDraftInstanceError"));if(!u.Formio.getUser())return void console.warn(this.t("saveDraftAuthError"));const e=(0,p.fastCloneDeep)(this.submission);e.state="draft",this.savingDraft||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(e).then((e=>{this.submission._id=e._id,this.savingDraft=!1,this.emit("saveDraft",e)})))}restoreDraft(e){this.formio?(this.savingDraft=!0,this.formio.loadSubmissions({params:{state:"draft",owner:e}}).then((e=>{if(e.length>0&&!this.options.skipDraftRestore){const t=(0,p.fastCloneDeep)(e[0]);return this.setSubmission(t).then((()=>{this.draftEnabled=!0,this.savingDraft=!1,this.emit("restoreDraft",t)}))}this.draftEnabled=!0,this.savingDraft=!1,this.emit("restoreDraft",null)}))):console.warn(this.t("restoreDraftInstanceError"))}get schema(){const e=(0,p.fastCloneDeep)(r.default.omit(this._form,["components"]));return e.components=[],this.eachComponent((t=>e.components.push(t.schema))),e}mergeData(e,t){r.default.mergeWith(e,t,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return t}))}setValue(e,t={}){e&&e.data||(e={data:{}}),this._submission.metadata=e.metadata||{},this.editing=!!e._id,!this.options.submissionTimezone&&e.metadata&&e.metadata.timezone&&(this.options.submissionTimezone=e.metadata.timezone);const n=super.setValue(e.data,t);return t.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,n}getValue(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}init(){return this._submission=this._submission||{data:{}},this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",(e=>{this.submit(!1,e).catch((e=>!1!==e&&console.log(e)))}),!0),this.on("checkValidity",(e=>this.checkValidity(e,!0,e)),!0),this.on("requestUrl",(e=>this.submitUrl(e.url,e.headers)),!0),this.on("resetForm",(()=>this.resetValue()),!0),this.on("deleteSubmission",(()=>this.deleteSubmission()),!0),this.on("refreshData",(()=>this.updateValue()),!0),this.executeFormController(),this.formReady}executeFormController(){if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then((()=>{this.evaluate(this.form.controller,{components:this.components,instance:this})}))}teardown(){this.emit("formDelete",this.id),delete u.Formio.forms[this.id],delete this.executeShortcuts,delete this.triggerSaveDraft,super.teardown()}destroy(e=!1){return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),super.destroy(e)}build(e){return e||this.element?this.ready.then((()=>{e=e||this.element,super.build(e)})):this.ready}getClassName(){let e="formio-form";return this.options.readOnly&&(e+=" formio-read-only"),e}render(){return super.render(this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}redraw(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):c.default.resolve()}attach(e){this.setElement(e),this.loadRefs(e,{webform:"single"});const t=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),t.then((()=>(this.emit("render",this.element),this.setValue(this._submission,{noUpdateEvent:!0}))))}hasRequiredFields(){let e=!1;return(0,f.eachComponent)(this.form.components,(t=>{if(t.validate.required)return e=!0,!0}),!0),e}resetValue(){r.default.each(this.getComponents(),(e=>e.resetValue())),this.setPristine(!0),this.onChange()}setAlert(e,t,n){if(e||!this.submitted)if(this.options.noAlerts)t||this.emit("error",!1);else{if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.removeEventListener(e,"click"),this.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null}catch(e){}if(t){const i={class:n&&n.classes||`alert alert-${e}`,id:`error-list-${this.id}`},r={message:t instanceof HTMLElement?t.outerHTML:t,attrs:i,type:e};this.alert=(0,p.convertStringToHTMLElement)(this.renderTemplate("alert",r),`#${i.id}`)}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.addEventListener(e,"click",(e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)})),this.addEventListener(e,"keydown",(e=>{if(13===e.keyCode){e.preventDefault();const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}}))})),this.prepend(this.alert))}else this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.removeEventListener(e,"click"),this.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null)}focusOnComponent(e){if(e){const t=this.getComponent(e);t&&t.focus()}}showErrors(e,t,n){this.loading=!1;let i=this.errors;if(e?Array.isArray(e)?i=i.concat(e):i.push(e):i=super.errors,i=i.concat(this.customErrors),i=i.concat(this.serverErrors||[]),!i.length)return void this.setAlert(!1);i.forEach((e=>{const{components:t=[]}=e;e.component&&t.push(e.component),e.path&&t.push(e.path),t.forEach((t=>{const n=this._parentPath+(0,p.getStringFromComponentPath)(t),i=this.getComponent(t,r.default.identity,n);e.fromServer&&(i.serverErrors?i.serverErrors.push(e):i.serverErrors=[e]),r.default.compact(Array.isArray(i)?i:[i]).forEach((t=>t.setCustomValidity(e.message,!0)))}))}));const o=[];i.forEach((e=>{if(e){const t=(t,n)=>{const i=!r.default.isUndefined(n)&&e.messages&&e.messages[n],o=i&&i.formattedKeyOrPath||i.path||e.component&&e.component.key||e.fromServer&&e.path;let s=o?(0,p.getStringFromComponentPath)(o):"";return s=this._parentPath+s,"string"==typeof e||e.formattedKeyOrPath||(e.formattedKeyOrPath=s),{message:(0,p.unescapeHTML)(t),keyOrPath:s}};if(e.messages=r.default.uniqBy(e.messages,(e=>e.message)),e.messages&&e.messages.length){const{component:n}=e;e.messages.forEach((({message:e,context:i,fromServer:r},s)=>{const a=(null==i?void 0:i.hasLabel)||r?this.t("alertMessage",{message:this.t(e)}):this.t("alertMessageWithLabel",{label:this.t(n.label),message:this.t(e)});o.push(t(a,s))}))}else if(e){const n=r.default.isObject(e)?this.t("alertMessage",{message:this.t(e.message||"")}):this.t("alertMessage",{message:this.t(e)});o.push(t(n))}}}));const s=this.renderTemplate("errorsList",{errors:o});return this.root.setAlert("danger",s),t&&this.emit("error",i),i}onSubmit(e,t){var n;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,p.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success",`

    ${this.t("complete")}

    `),this.draftEnabled&&(null===(n=this.triggerSaveDraft)||void 0===n?void 0:n.cancel)&&this.triggerSaveDraft.cancel(),this.emit("submit",e,t),t&&this.emit("submitDone",e),e}normalizeError(e){return e&&("object"==typeof e&&"details"in e&&(e=e.details),"string"==typeof e&&(e={message:e})),e}onSubmissionError(e){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;let t;return t=this.submitted?this.showErrors():this.showErrors(e,!0),this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),t}onChange(e,t,n,i){e=e||{};let o=!1;t&&t.component&&(this.customErrors=this.customErrors.filter((e=>e.component&&e.component!==t.component.key))),super.onChange(e,!0);const s=r.default.clone(this.submission);e.changed=s.changed=t,e.changes=i,n&&this.pristine&&(this.pristine=!1),s.isValid=this.checkData(s.data,e),this.loading=!1,this.submitted&&this.showErrors(),n&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit("change",s,e,n),o=!0),o&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}checkData(e,t={}){const n=super.checkData(e,t);return(r.default.isEmpty(t)||t.noValidate)&&this.submitted&&this.showErrors(),n}deleteSubmission(){return this.formio.deleteSubmission().then((()=>{this.emit("submissionDeleted",this.submission),this.resetValue()}))}cancel(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}setMetadata(e){e.metadata=e.metadata||{},r.default.defaults(e.metadata,{timezone:r.default.get(this,"_submission.metadata.timezone",(0,p.currentTimezone)()),offset:parseInt(r.default.get(this,"_submission.metadata.offset",(0,o.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}submitForm(e={}){return this.clearServerErrors(),new c.default(((t,n)=>{if(this.options.readOnly)return t({submission:this.submission,saved:!1});const i=(0,p.fastCloneDeep)(this.submission||{});this.setMetadata(i),i.state=e.state||"submitted";const o="draft"===i.state;this.hook("beforeSubmit",Object.assign(Object.assign({},i),{component:e.component}),((s,a)=>s?n(s):(i._vnote=a&&a._vnote?a._vnote:"",o||i.data?o||this.checkValidity(i.data,!0)?(this.everyComponent((e=>{const{persistent:t}=e.component;"client-only"===t&&r.default.unset(i.data,e.path)})),void this.hook("customValidation",Object.assign(Object.assign({},i),{component:e.component}),(e=>{if(e)return"string"==typeof e&&(e={message:e}),e=Array.isArray(e)?e:[e],this.customErrors=e,n();if(this.loading=!0,this._form&&this._form.action){const e=i.data._id&&this._form.action.includes(i.data._id)?"PUT":"POST";return u.Formio.makeStaticRequest(this._form.action,e,i,this.formio?this.formio.options:{}).then((e=>t({submission:e,saved:!0}))).catch((e=>(this.setServerErrors(e),n(e))))}const r=this.formio;if(this.nosubmit||!r)return t({submission:i,saved:!1});r[r.actionUrl?"saveAction":"saveSubmission"](i).then((e=>t({submission:e,saved:!0}))).catch((e=>(this.setServerErrors(e),n(e))))}))):n():n("Invalid Submission"))))}))}setServerErrors(e){e.details?this.serverErrors=e.details.filter((e=>e.level?"error"===e.level:e)).map((e=>(e.fromServer=!0,e))):"string"==typeof e&&(this.serverErrors=[{fromServer:!0,level:"error",message:e}])}executeSubmit(e){return this.submitted=!0,this.submitting=!0,this.submitForm(e).then((({submission:e,saved:t})=>this.onSubmit(e,t))).then((e=>(this.submissionInProcess=!1,e))).catch((e=>(this.submissionInProcess=!1,c.default.reject(this.onSubmissionError(e)))))}clearServerErrors(){var e;null===(e=this.serverErrors)||void 0===e||e.forEach((e=>{if(e.path){const t=(0,p.getArrayFromComponentPath)(e.path),n=this.getComponent(t,r.default.identity,e.formattedKeyOrPath);n&&(n.serverErrors=[])}})),this.serverErrors=[]}submit(e,t){return this.submissionInProcess=!0,e?this.executeSubmit(t):this.beforeSubmit(t).then((()=>this.executeSubmit(t)))}submitUrl(e,t){if(!e)return console.warn("Missing URL argument");const n=this.submission||{},i=e,r={method:"POST",headers:{}};if(t&&t.length>0&&t.map((e=>{""!==e.header&&""!==e.value&&(r.headers[e.header]=this.interpolate(e.value,n))})),!i||!r)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");u.Formio.makeStaticRequest(i,r.method,n,{headers:r.headers}).then((()=>{this.emit("requestDone"),this.setAlert("success","

    Success

    ")})).catch((e=>{this.showErrors(`${e.statusText?e.statusText:""} ${e.status?e.status:e}`),this.emit("error",`${e.statusText?e.statusText:""} ${e.status?e.status:e}`),console.error(`${e.statusText?e.statusText:""} ${e.status?e.status:e}`),this.setAlert("danger",`

    ${e.statusText?e.statusText:""} ${e.status?e.status:e}

    `)}))}triggerRecaptcha(){if(!this||!this.components)return;const e=(0,p.searchComponents)(this.components,{"component.type":"recaptcha","component.eventType":"formLoad"});e.length>0&&e[0].verify(`${this.form.name?this.form.name:"form"}Load`)}set nosubmit(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}get nosubmit(){return this._nosubmit||!1}get conditions(){var e,t;return null!==(t=null===(e=this.schema.settings)||void 0===e?void 0:e.conditions)&&void 0!==t?t:[]}get variables(){var e,t;return null!==(t=null===(e=this.schema.settings)||void 0===e?void 0:e.variables)&&void 0!==t?t:[]}}t.default=m,m.setBaseUrl=u.Formio.setBaseUrl,m.setApiUrl=u.Formio.setApiUrl,m.setAppUrl=u.Formio.setAppUrl},57692:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(97567)),o=i(n(96877)),s=i(n(79244)),a=i(n(53632)),l=i(n(87422)),u=n(29857),c=n(34600),d=n(30214),h=i(n(87338)),p=i(n(2543)),f=i(n(9866)),m=i(n(59452));n(1835),"undefined"!=typeof window&&void 0===window.global&&(window.global=window);const g=i(n(23770));class v extends o.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!1,t.display=t.display||"form",super(null,t),this.moveHandler=e=>{e.stopPropagation(),e.preventDefault(),38===e.keyCode&&this.updateComponentPlacement(!0),40===e.keyCode&&this.updateComponentPlacement(!1),13===e.keyCode&&this.stopMoving(this.selectedElement)},this.setElement(e),this.dragulaLib=g.default,this.builderHeight=0,this.schemas={},this.repeatablePaths=[],this.sideBarScroll=p.default.get(this.options,"sideBarScroll",!0),this.sideBarScrollOffset=p.default.get(this.options,"sideBarScrollOffset",0),this.dragDropEnabled=!0,this.builder=p.default.defaultsDeep({},this.options.builder,this.defaultGroups),p.default.each(this.defaultGroups,((e,t)=>{!1===e&&(this.builder[t]=!1)})),this.groups={},this.groupOrder=[];for(const e in this.builder)this.builder[e]&&(this.builder[e].key=e,this.groups[e]=this.builder[e],this.groups[e].components=this.groups[e].components||{},this.groups[e].componentOrder=this.groups[e].componentOrder||[],this.groups[e].subgroups=Object.keys(this.groups[e].groups||{}).map((t=>(this.groups[e].groups[t].componentOrder=Object.keys(this.groups[e].groups[t].components).map((e=>e)),this.groups[e].groups[t]))),this.groupOrder.push(this.groups[e]));this.groupOrder=this.groupOrder.filter((e=>e&&!e.ignore)).sort(((e,t)=>e.weight-t.weight)).map((e=>e.key));for(const e in l.default.components){const t=l.default.components[e];if(t.builderInfo&&t.builderInfo.schema){this.schemas[e]=t.builderInfo.schema,t.type=e;const n=t.builderInfo;n.key=t.type,this.addBuilderComponentInfo(n)}}for(const e in this.groups){const t=this.groups[e];for(const n in t.components){const i="resource"===e?`component-${n}`:n;let r=t.components[i];!0===r&&l.default.components[n]&&l.default.components[n].builderInfo&&(r=l.default.components[n].builderInfo),r&&r.schema?(this.schemas[n]=r.schema,t.components[i]=r,t.components[i].key=n):delete t.components[i]}this.orderComponents(t)}this.options.hooks=this.options.hooks||{},this.options.hooks.renderComponent=(e,{component:t,self:n})=>{var i;return"form"!==n.type||n.key?this.options.disabled&&this.options.disabled.includes(n.key)||n.parent.noDragDrop?e:this.renderTemplate("builderComponent",{html:e,disableBuilderActions:null===(i=null==n?void 0:n.component)||void 0===i?void 0:i.disableBuilderActions,childComponent:t}):this.hook("renderComponentFormTemplate",e.replace("formio-component-form",""))},this.options.hooks.renderComponents=(e,{components:t,self:n})=>"datagrid"===n.type&&t.length>0||n.noDragDrop?e:((!t||!t.length&&!t.nodrop||"form"===n.type&&t.length<=1&&(0===t.length||"button"===t[0].type))&&(e=this.renderTemplate("builderPlaceholder",{position:0})+e),this.renderTemplate("builderComponents",{key:n.key,type:n.type,html:e})),this.options.hooks.renderInput=(e,{self:t})=>"hidden"===t.type?e+t.name:e,this.options.hooks.renderLoading=(e,{self:t})=>"form"===t.type&&t.key?t.name:e,this.options.hooks.attachComponents=(e,t,n,i)=>{if(!e)return;if(i.noDragDrop)return e;const r=e.querySelector(`[ref="${i.component.key}-container"]`)||e;return r.formioContainer=n,r.formioComponent=i,this.dragula&&this.allowDrop(e)&&this.dragula.containers.push(r),("datagrid"===i.type||"datamap"===i.type)&&t.length>0?e:e.children[0]},this.options.hooks.attachDatagrid=(e,t)=>{t.loadRefs(e,{[`${t.key}-container`]:"single"});const n=t.refs[`${t.key}-container`];n&&t.attachComponents(n.parentNode,[],t.component.components)},this.options.hooks.attachComponent=this.attachComponent.bind(this);const n={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};this.options&&this.options.resourceTag?n.params.tags=[this.options.resourceTag]:this.options&&this.options.hasOwnProperty("resourceTag")||(n.params.tags=["builder"]);const i=new u.Formio(u.Formio.projectUrl),r=this.options.builder&&!1===this.options.builder.resource;if(i.loadProject().then((e=>{if(e&&(p.default.get(e,"settings.addConfigToForms",!1)||p.default.get(e,"addConfigToForms",!1))){const t=e.config||{};this.options.formConfig=t;const n="webform._form.config",i=p.default.get(this,n);this.webform&&!i&&p.default.set(this,n,t)}})).catch((e=>{console.warn(`Could not load project settings: ${e.message||e}`)})),!i.noProject&&!r&&i.formsUrl){const e=this.options.builder&&this.options.builder.resource;i.loadForms(n).then((t=>{t.length&&(this.builder.resource={title:e?e.title:"Existing Resource Fields",key:"resource",weight:e?e.weight:50,subgroups:[],components:[],componentOrder:[]},this.groups.resource={title:e?e.title:"Existing Resource Fields",key:"resource",weight:e?e.weight:50,subgroups:[],components:[],componentOrder:[]},this.groupOrder.includes("resource")||this.groupOrder.push("resource"),this.addExistingResourceFields(t))}))}this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.pathComponentsMapping={},this.arrayDataComponentPaths=[],this.nestedDataComponents=[],this.arrayDataComponents=[]}allowDrop(){return!0}addExistingResourceFields(e){p.default.each(e,((e,t)=>{const n=`resource-${e.name}`,i={key:n,title:e.title,components:[],componentOrder:[],default:0===t};(0,d.eachComponent)(e.components,(t=>{if("button"===t.type)return;if(this.options&&this.options.resourceFilter&&(!t.tags||-1===t.tags.indexOf(this.options.resourceFilter)))return;let r=t.label;!r&&t.key&&(r=p.default.upperFirst(t.key)),i.componentOrder.push(`component-${t.key}`),i.components[`component-${t.key}`]=p.default.merge((0,c.fastCloneDeep)(l.default.components[t.type]?l.default.components[t.type].builderInfo:l.default.components.unknown.builderInfo),{key:t.key,title:r,group:"resource",subgroup:n},{schema:Object.assign(Object.assign({},t),{label:t.label,key:t.key,lockKey:!0,source:this.options.noSource?void 0:e._id,isNew:!0})})}),!0),this.groups.resource.subgroups.push(i)})),this.triggerRedraw()}attachTooltip(e,t){return(0,s.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:t})}attachComponent(e,t){if(e.formioComponent=t,t.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),t.refs.copyComponent&&(this.attachTooltip(t.refs.copyComponent,this.t("Copy")),t.addEventListener(t.refs.copyComponent,"click",(()=>this.copyComponent(t)))),t.refs.pasteComponent){const e=this.attachTooltip(t.refs.pasteComponent,this.t("Paste below"));t.addEventListener(t.refs.pasteComponent,"click",(()=>{e.hide(),this.pasteComponent(t)}))}t.refs.moveComponent&&(this.attachTooltip(t.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&t.addEventListener(t.refs.moveComponent,"click",(()=>{this.moveComponent(t)})));const n=this.getParentElement(e);return t.refs.editComponent&&(this.attachTooltip(t.refs.editComponent,this.t("Edit")),t.addEventListener(t.refs.editComponent,"click",(()=>this.editComponent(t.schema,n,!1,!1,t.component,{inDataGrid:t.isInDataGrid})))),t.refs.editJson&&(this.attachTooltip(t.refs.editJson,this.t("Edit JSON")),t.addEventListener(t.refs.editJson,"click",(()=>this.editComponent(t.schema,n,!1,!0,t.component)))),t.refs.removeComponent&&(this.attachTooltip(t.refs.removeComponent,this.t("Remove")),t.addEventListener(t.refs.removeComponent,"click",(()=>this.removeComponent(t.schema,n,t.component)))),e}createForm(e){return this.webform=new r.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}get ready(){return this.webform.ready}get defaultGroups(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}redraw(){return r.default.prototype.redraw.call(this)}get form(){return this.webform.form}get schema(){return this.webform.schema}set form(e){this.setForm(e)}get container(){return this.webform.form.components}findNamespaceRoot(e){const t=(0,c.getArrayFromComponentPath)(e.path);let n=this.webform.getComponent(t);n=Array.isArray(n)?n[0]:n;const i=this.recurseNamespace(n);if(!i||this.form.key===i)return this.form.components;const r=e.component;if(i===e.key)return[...r.components,r];const o=(0,d.getComponent)(this.form.components,i,!0);return o?o.components:n.components}recurseNamespace(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}render(){return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]}))),keyboardActionsEnabled:this.keyboardActionsEnabled})))}),form:this.webform.render()})}attach(e){return this.on("change",(e=>{this.populateRecaptchaSettings(e)})),super.attach(e).then((()=>{if(this.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),this.sideBarScroll&&m.default.current.handleBuilderSidebarScroll&&m.default.current.handleBuilderSidebarScroll.call(this,this),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&this.addClass(this.refs.form,"builder-paste-mode"),!(0,c.bootstrapVersion)(this.options)){const e=(e,t)=>{let n=e.getAttribute(`data-${t}`);return n||(n=e.getAttribute(`data-bs-${t}`)),n},t=(e,t)=>{t?(e.classList.add(["show"]),e.style.display="inherit"):(e.classList.remove(["show"]),e.style.display="none")};this.refs["sidebar-group"].forEach((n=>{t(n,"true"===e(n,"default"))})),this.refs["sidebar-anchor"].forEach(((n,i)=>{this.addEventListener(n,"click",(()=>{const r=e(n,"parent").slice(17),o=e(n,"target").slice(7);this.refs["sidebar-group"].forEach(((n,s)=>{const a="true"===e(n,"default"),l=n.getAttribute("id").slice(6),u=e(n,"parent").slice(17);t(n,a&&u===o||l===r||s===i)}))}),!0)}))}this.keyboardActionsEnabled&&this.refs["sidebar-component"].forEach((e=>{this.addEventListener(e,"keydown",(t=>{13===t.keyCode&&this.addNewComponent(e)}))})),this.addEventListener(this.refs["sidebar-search"],"input",p.default.debounce((e=>{const t=e.target.value;this.searchFields(t)}),300)),this.dragDropEnabled&&this.initDragula();const t=this.dragula;if(this.refs.form)return(0,f.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&(null==t?void 0:t.dragging)}}),this.webform.attach(this.refs.form)}))}searchFields(e=""){const t=e.toLowerCase(),n=this.refs.sidebar,i=this.refs["sidebar-groups"];if(!n||!i)return;const r=(e,t="")=>{const n=p.default.toPlainObject(e),{subgroups:i=[],components:r}=n,o=[];for(const e in r){const n=r[e].title.toLowerCase().match(t),i=r[e].key.toLowerCase().match(t);(n||i)&&o.push(r[e])}return this.orderComponents(n,o),t&&(n.default=!0),n.componentOrder.length||i.length?n:null},o=(e,t)=>p.default.clone(e).map((e=>r(e,t))).filter((e=>!p.default.isNull(e))),s=e=>({group:r(this.groups[e],t),groupKey:e,groupId:n.id||i.id,subgroups:o(this.groups[e].subgroups,t).map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))});i.innerHTML=((e,t)=>p.default.cloneDeep(e).filter((e=>r(this.groups[e],t))))(this.groupOrder,t).map((e=>this.renderTemplate("builderSidebarGroup",s(e)))).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===t&&this.triggerRedraw()}orderComponents(e,t){const n=t||e.components,i=0===e.key.indexOf("resource-");n&&(e.componentOrder=Object.keys(n).map((e=>n[e])).filter((e=>e&&!e.ignore&&!e.ignoreForForm)).sort(((e,t)=>e.weight-t.weight)).map((e=>i?`component-${e.key}`:e.key)))}updateDragAndDrop(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}initDragula(){const e=this.options;this.dragula&&this.dragula.destroy();const t=Array.prototype.slice.call(this.refs["sidebar-container"]).filter((e=>"group-container-resource"!==e.id));g.default&&(this.dragula=(0,g.default)(t,{moves(t){let n=!0;return Array.from(t.classList).filter((e=>0===e.indexOf("formio-component-"))).forEach((t=>{const i=t.slice(17);e.disabled&&e.disabled.includes(i)&&(n=!1)})),t.classList.contains("no-drag")&&(n=!1),n},copy:e=>e.classList.contains("drag-copy"),accepts:(e,t)=>!e.contains(t)&&!t.classList.contains("no-drop")}).on("drop",((e,t,n,i)=>this.onDrop(e,t,n,i))))}detach(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&m.default.current.clearBuilderSidebarScroll&&m.default.current.clearBuilderSidebarScroll.call(this,this),super.detach()}getComponentInfo(e,t){let n;if(this.schemas.hasOwnProperty(e))n=(0,c.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(t)){const i=this.groups[t].components;i.hasOwnProperty(e)&&(n=(0,c.fastCloneDeep)(i[e].schema))}else if("resource"===t.slice(0,t.indexOf("-"))){const i=this.groups.resource.subgroups,r=p.default.find(i,{key:t});r&&r.components.hasOwnProperty(`component-${e}`)&&(n=(0,c.fastCloneDeep)(r.components[`component-${e}`].schema))}else if("searchFields"===t){const t=this.groups.resource.subgroups;for(let i=0;it.some((t=>t.components.some((t=>t.key===e.key)))))),o=p.default.findIndex(t.rows[r],(t=>t.components.some((t=>t.key===e.key)))),n=`rows[${r}][${o}].components`;break;case"columns":i=p.default.findIndex(t.columns,(t=>t.components.some((t=>t.key===e.key)))),n=`columns[${i}].components`;break;case"tabs":s=p.default.findIndex(t.components,(t=>t.components.some((t=>t.key===e.key)))),n=`components[${s}].components`}return n}onDrop(e,t,n,i){var r;if(!t)return;if(e.contains(t))return;const o=e.getAttribute("data-key"),s=e.getAttribute("data-type"),l=e.getAttribute("data-group");let u,c,f,m;if(o&&l?(u=this.getComponentInfo(o,l),!u&&s&&(u=this.getComponentInfo(s,l)),c=!0):n.formioContainer&&(m=p.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),-1!==m&&(u=n.formioContainer.splice(p.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1),u=u[0])),!u)return;const g="resource"===l?`component-${o}`:o,v=(null===(r=this.groups[l])||void 0===r?void 0:r.components[g])||{};if(v.disableSiblings){let e=!1;if((0,d.eachComponent)(this.webform.components,(t=>{t.type!==v.schema.type||(e=!0)}),!0),e)return this.webform.redraw(),void this.webform.setAlert("danger",`You cannot add more than one ${v.key} component to one page.`)}t!==n&&h.default.uniquify(this.findNamespaceRoot(t.formioComponent),u);const y=t.formioComponent;t.formioContainer&&(i?(i.getAttribute("data-noattach")?m=i.getAttribute("data-position"):(m=p.default.findIndex(t.formioContainer,{key:p.default.get(i,"formioComponent.component.key")}),m=-1===m?0:m),-1!==m&&t.formioContainer.splice(m,0,u)):t.formioContainer.push(u),f=this.getComponentsPath(u,y.component),m=p.default.findIndex(p.default.get(y.schema,f),{key:u.key}),-1===m&&(m=0)),y&&y.addChildComponent&&y.addChildComponent(u,e,t,n,i);const b="datagrid"===y.type;let _;return!c||this.options.noNewEdit||u.noNewEdit||this.editComponent(u,t,c,null,null,{inDataGrid:b}),t!==n?n.formioContainer&&n.contains(t)?_=n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&(_=n.formioComponent.rebuild()),_=t.formioComponent.rebuild()):_=t.formioComponent.rebuild(),_||(_=a.default.resolve()),_.then((()=>{this.emit("addComponent",u,y,f,m,c&&!this.options.noNewEdit&&!u.noNewEdit),(!c||this.options.noNewEdit||u.noNewEdit)&&this.emit("change",this.form)}))}setForm(e){var t;if(e.components||(e.components=[]),e&&e.properties&&(this.options.properties=e.properties),this.keyboardActionsEnabled=p.default.get(this.options,"keyboardBuilder",!1)||(null===(t=this.options.properties)||void 0===t?void 0:t.keyboardBuilder),!this.options.noDefaultSubmitButton&&!e.components.length&&e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){const t=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then((()=>(this.refs.form&&(this.builderHeight=this.refs.form.offsetHeight),t?this.rebuild().then((()=>this.form)):this.form)))}return a.default.resolve(e)}populateRecaptchaSettings(e){let t=!1;this.form.components&&((0,d.eachComponent)(e.components,(e=>{if(!t)return"recaptcha"===e.type?(t=!0,!1):void 0})),t?p.default.set(e,"settings.recaptcha.isEnabled",!0):p.default.get(e,"settings.recaptcha.isEnabled")&&p.default.set(e,"settings.recaptcha.isEnabled",!1))}removeComponent(e,t,n){if(!t)return;let i=!0;const r=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);if(this.options.alwaysConfirmComponentRemoval||r){const e=r?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?";i=window.confirm(this.t(e))}n||(n=t.formioContainer.find((t=>t.id===e.id)));const o=t.formioContainer?t.formioContainer.indexOf(n):0;if(i&&-1!==o){const n=this.getComponentsPath(e,t.formioComponent.component);t.formioContainer?t.formioContainer.splice(o,1):t.formioComponent&&t.formioComponent.removeChildComponent&&t.formioComponent.removeChildComponent(e),(t.formioComponent.rebuild()||a.default.resolve()).then((()=>{this.emit("removeComponent",e,t.formioComponent.schema,n,o),this.emit("change",this.form)}))}return i}replaceDoubleQuotes(e,t=[]){if(e)return t.forEach((t=>{e[t]&&(e[t]=e[t].replace(/"/g,"'"))})),e}updateComponent(e,t){if(this.preview){this.preview.form={components:[p.default.omit(Object.assign({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{}};const t=["label","tooltip"];this.preview.form.components.forEach((e=>this.replaceDoubleQuotes(e,t)));const n=this.componentEdit.querySelector('[ref="preview"]');n&&(this.setContent(n,this.preview.render()),this.preview.attach(n))}const n=(0,d.getComponent)(this.editForm.components,"defaultValue",!0);if(n&&"hidden"!==e.type)if(t&&(t.component&&"defaultValue"===t.component.key||t.instance&&n.hasComponent&&n.hasComponent(t.instance))){let n=t.instance._data.key;const i=(0,c.getArrayFromComponentPath)(t.instance.path);i.shift(),i.length&&(i.unshift(e.key),n=(0,c.getStringFromComponentPath)(i)),p.default.set(this.preview._data,n,t.value),p.default.set(this.webform._data,n,t.value)}else{p.default.assign(n.component,p.default.omit(Object.assign({},e),["key","label","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));const i=n.parent;let r=-1,o=-1;if(i.tabs.some(((e,t)=>{e.some(((e,i)=>e.id===n.id&&(r=t,o=i,!0)))})),-1!==r&&-1!==o&&t&&t.value){const e=i.tabs[r][o+1];i.removeComponent(n);const t=i.addComponent(n.component,n.data,e);p.default.pull(t.validators,"required"),i.tabs[r].splice(o,1,t),t.checkValidity=()=>!0,t.build(n.element)}}this.emit("updateComponent",e)}findRepeatablePaths(){const e=[],t=new Map;return(0,d.eachComponent)(this.form.components,((n,i)=>{n.key&&(t.has(n.key)?t.get(n.key).includes(i)?e.push(i):t.set(n.key,[...t.get(n.key),i]):t.set(n.key,[i]))}),!0),e}highlightInvalidComponents(){const e=this.findRepeatablePaths();let t=!1;this.webform.everyComponent((n=>{var i,r;const o=n.path;e.includes(o)?(n.setCustomValidity(`API Key is not unique: ${n.key}`),t=!0):(null===(r=null===(i=n.error)||void 0===i?void 0:i.message)||void 0===r?void 0:r.startsWith("API Key is not unique"))&&n.setCustomValidity("")})),this.emit("builderFormValidityChange",t)}saveComponent(e,t,n,i){this.editForm.detach();const r=t?t.formioContainer:this.container,o=t?t.formioComponent:this;this.dialog.close();const s=r?this.getComponentsPath(e,o.component):"";i||(i=t.formioContainer.find((t=>t.id===e.id)));const l=r?r.indexOf(i):0;if(-1!==l){let e=this.editForm.submission.data;e=e.componentJson||e;const u=["label","tooltip"];this.replaceDoubleQuotes(e,u),this.hook("beforeSaveComponentSettings",e);let c=null;o.getComponents().forEach((e=>{e.component.key===i.key&&(c=e)}));const d=c.component,h=c.schema,p=this.isParentSaveChildMethod(t.formioComponent);return r&&!p?(r[l]=e,c&&(c.component=e)):p&&t.formioComponent.saveChildComponent(e),(o.rebuild()||a.default.resolve()).then((()=>{const e=r?r[l]:c?c.schema:[];if(this.emitSaveComponentEvent(e,d,o.schema,s,l,n,h),this.emit("change",this.form),this.highlightInvalidComponents(),this.isComponentCreated){const e=t.formioComponent.components[0];this.moveComponent(e),this.isComponentCreated=!1}}))}return this.highlightInvalidComponents(),a.default.resolve()}emitSaveComponentEvent(e,t,n,i,r,o,s){this.emit("saveComponent",e,t,n,i,r,o,s)}editComponent(e,t,n,i,o,s={}){if(!e.key)return;let a=!1;const u=(0,c.fastCloneDeep)(e);let d=l.default.components[u.type];const f=void 0===d;i=i||f,d=f?l.default.components.unknown:d,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());const m=p.default.clone(p.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();const g=p.default.get(this.options,`editForm.${u.type}`,{});m.editForm=this.form,m.editComponent=e,m.flags=s,this.hook("editComponentParentInstance",m,t),this.editForm=new r.default(Object.assign(Object.assign(Object.assign({},p.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{language:this.options.language}),m)),this.hook("editFormProperties",t),this.editForm.form=i&&!f?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:d.editForm(p.default.cloneDeep(g));const v={};this.hook("instanceOptionsPreview",v);const y=new d(u,v),b=this.hook("builderComponentSchema",e,y);this.editForm.submission=i?{data:{componentJson:b,showFullSchema:this.options.showFullJsonSchema}}:{data:y.component},this.preview&&this.preview.destroy(),d.builderInfo.hasOwnProperty("preview")&&!d.builderInfo.preview||(this.preview=new r.default(p.default.omit(Object.assign(Object.assign({},this.options),{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",b,i)),this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:d.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,p.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(u),this.editForm.on("change",(r=>{if(r.changed){if(r.changed.component&&"showFullSchema"===r.changed.component.key){const{value:t}=r.changed;return void(this.editForm.submission={data:{componentJson:t?y.component:e,showFullSchema:t}})}(r.changed.component&&"key"===r.changed.component.key||i)&&(u.keyModified=!0);let o=!1;if(r.changed.instance?o=["label","title"].includes(r.changed.instance.path):r.changed.component&&(o=["label","title"].includes(r.changed.component.key)),o&&n&&(r.data.keyModified||this.editForm.everyComponent((e=>{if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(this.updateComponentKey(r.data)),!1})),this.form)){let e=this.findNamespaceRoot(t.formioComponent);e=e.filter((e=>m.editComponent.id!==e.id)),h.default.uniquify(e,r.data)}this.updateComponent(r.data.componentJson||r.data,r.changed)}})),this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach((t=>{this.addEventListener(t,"click",(t=>{t.preventDefault(),this.editForm.detach(),this.emit("cancelComponent",e),this.dialog.close(),this.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach((n=>{this.addEventListener(n,"click",(n=>{n.preventDefault(),a=!0,this.editForm.detach(),this.removeComponent(e,t,o),this.dialog.close(),this.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach((i=>{this.addEventListener(i,"click",(i=>{if(i.preventDefault(),!this.editForm.checkValidity(this.editForm.data,!0,this.editForm.data))return this.editForm.setPristine(!1),this.editForm.showErrors(),!1;a=!0,this.saveComponent(e,t,n,o)}))}));const _=()=>{this.editForm.destroy(!0),this.preview&&(this.preview.destroy(!0),this.preview=null),n&&!a&&(this.removeComponent(e,t,o),this.highlightInvalidComponents()),this.removeEventListener(this.dialog,"close",_),this.dialog=null};this.addEventListener(this.dialog,"close",_),this.emit("editComponent",e)}updateComponentKey(e){return p.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}moveComponent(e){e.element.focus(),e.element.classList.add("builder-selected"),this.selectedElement=e,this.removeEventListener(e.element,"keydown"),this.addEventListener(e.element,"keydown",this.moveHandler.bind(this))}updateComponentPlacement(e){const t=this.selectedElement;let n,i;const r=e?-1:1;if(t){const o=t.element,s=e?o.previousElementSibling:o.nextElementSibling,a=o.parentNode,l=a.formioContainer.length;if(l&&l<=1)return;a.formioContainer&&(n=p.default.findIndex(a.formioContainer,{key:o.formioComponent.component.key}),-1!==n&&(i=a.formioContainer.splice(p.default.findIndex(a.formioContainer,{key:o.formioComponent.component.key}),1),i=i[0],a.removeChild(o)));const u=a.formioComponent.components.length;if(n=-1===n?0:n+r,-1===n)a.formioContainer.push(i),a.appendChild(o);else if(n===u){const e=a.formioContainer[0].key;n=p.default.findIndex(a.formioComponent.components,{key:e});const t=a.formioComponent.components[n].element;a.formioContainer.splice(0,0,i),a.insertBefore(o,t)}else-1!==n&&(a.formioContainer.splice(n,0,i),e?a.insertBefore(o,s):a.insertBefore(o,s.nextElementSibling));o.focus()}}stopMoving(e){e.element.parentNode.formioComponent.rebuild()}addNewComponent(e){var t;const n=document.querySelector(".formio-builder-form"),i=e.getAttribute("data-key"),r=e.getAttribute("data-group");let o;i&&r&&(o=this.getComponentInfo(i,r)),this.options.noNewEdit||o.noNewEdit||(h.default.uniquify(this.findNamespaceRoot(n.formioComponent),o),this.editComponent(o,n,!0,null,null)),(null===(t=n.formioComponent.components[0])||void 0===t?void 0:t.element)?n.formioContainer.splice(0,0,o):n.formioContainer.push(o),n.formioComponent.rebuild().then((()=>{this.isComponentCreated=!0}))}copyComponent(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}pasteComponent(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){const t=window.sessionStorage.getItem("formio.clipboard");if(t){const n=JSON.parse(t),i=this.getParentElement(e.element);if(i){h.default.uniquify(this.findNamespaceRoot(i.formioComponent),n);let t="",r=0;const o=this.isParentSaveChildMethod(i.formioComponent);i.formioContainer&&!o?(r=i.formioContainer.indexOf(e.component),t=this.getComponentsPath(n,i.formioComponent.component),i.formioContainer.splice(r+1,0,n)):o&&i.formioComponent.saveChildComponent(n,!1),i.formioComponent.rebuild(),this.emitSaveComponentEvent(n,n,i.formioComponent.component,t,r+1,!0,n)}this.emit("change",this.form)}}}isParentSaveChildMethod(e){return!(!e||!e.saveChildComponent)}getParentElement(e){let t=e;do{t=t.parentNode}while(t&&!t.formioComponent);return t}addBuilderComponentInfo(e){if(!e||!e.group||!this.groups[e.group])return;e=p.default.clone(e);const t=this.groups[e.group];return t.components.hasOwnProperty(e.key)||(t.components[e.key]=e),e}init(){return this.webform&&this.webform.init(),super.init()}clear(){this.webform.initialized&&this.webform.clear()}destroy(e=!1){this.webform.initialized&&this.webform.destroy(e),super.destroy(e)}addBuilderGroup(e,t){this.groups[e]?this.updateBuilderGroup(e,t):(this.groups[e]=t,this.groupOrder.push(e),this.triggerRedraw())}updateBuilderGroup(e,t){this.groups[e]&&(this.groups[e]=t,this.triggerRedraw())}generateKey(e){return e.key||p.default.camelCase(e.title||e.label||e.placeholder||e.type)}}t.default=v},4212:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632)),o=i(n(2543)),s=i(n(97567)),a=n(29857),l=n(34600);class u extends s.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]||{}):t=arguments[0]||{},t.display="wizard",super(e,t),this.pages=[],this.prefixComps=[],this.suffixComps=[],this.components=[],this.originalComponents=[],this.page=0,this.currentPanel=null,this.currentPanels=null,this.currentNextPage=0,this._seenPages=[0],this.subWizards=[],this.allPages=[],this.lastPromise=r.default.resolve(),this.enabledIndex=0,this.editMode=!1,this.originalOptions=o.default.cloneDeep(this.options)}isLastPage(){const e=this.getNextPage();return o.default.isNumber(e)?-1===e:o.default.isNull(e)}getPages(e={}){const{all:t=!1}=e;return(this.hasExtraPages?this.components:this.pages).filter(t?o.default.identity:(e,t)=>this._seenPages.includes(t))}get hasExtraPages(){return!o.default.isEmpty(this.subWizards)}get data(){return super.data}get localData(){var e,t;return(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.root)||void 0===t?void 0:t.submission.data)||this.submission.data}checkConditions(e,t,n){const i=super.checkConditions(e,t,n);return this.establishPages(e),i}set data(e){this._data=e,o.default.each(this.getPages({all:!0}),(e=>{e.data=this.componentContext(e)}))}getComponents(){return this.submitting?this.getPages({all:this.isLastPage()}):super.getComponents()}resetValue(){this.getPages({all:!0}).forEach((e=>e.resetValue())),this.setPristine(!0)}init(){var e,t,n;this.options.buttonSettings=o.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(t=null===(e=this.options)||void 0===e?void 0:e.breadcrumbSettings)||void 0===t?void 0:t.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=o.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;const i=super.init();return this.setComponentSchema(),(null===(n=this.pages)||void 0===n?void 0:n[this.page])&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",(e=>{const t=this.subWizards.find((t=>{var n;return(null==e?void 0:e.id)&&(null===(n=t.subForm)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)}));this.subWizards.length&&t&&(t.subForm.setValue(e._submission,{},!0),this.establishPages(),this.redraw())})),i}get wizardKey(){return`wizard-${this.id}`}get wizard(){return this.form}set wizard(e){this.setForm(e)}get buttons(){const e={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach((t=>{this.hasButton(t.name)&&(e[t.name]=t)})),e}get buttonOrder(){var e,t,n;return null!==(n=null===(t=null===(e=this.options.properties)||void 0===e?void 0:e.wizardButtonOrder)||void 0===t?void 0:t.toLowerCase().split(", "))&&void 0!==n?n:["cancel","previous","next","submit"]}get renderContext(){var e,t;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null===(t=null===(e=this.root)||void 0===e?void 0:e.component)||void 0===t?void 0:t.type),panels:this.allPages.length?this.allPages.map((e=>e.component)):this.pages.map((e=>e.component)),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}prepareNavigationSettings(e){const t=this.currentPanel;return t&&t.buttonSettings&&Object.keys(t.buttonSettings).forEach((()=>{Object.keys(e.buttons).forEach((n=>{(void 0!==t.buttonSettings[n]&&!t.buttonSettings[n]||e.isSubForm)&&(e.buttons[n]=null)}))})),this.renderTemplate("wizardNav",e)}prepareHeaderSettings(e,t){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(t,e)}render(){const e=this.renderContext;this.component.key&&e.panels.map((t=>{t.key===this.component.key&&(this.currentPanel=t,e.wizardPageTooltip=this.getFormattedTooltip(t.tooltip))}));const t=this.prepareNavigationSettings(e),n=`wizardHeader${o.default.get(this.form,"settings.wizardHeaderType","")}`,i=o.default.get(this.form,"settings.wizardHeaderLocation","left"),r=this.prepareHeaderSettings(e,n);return this.renderTemplate("wizard",Object.assign(Object.assign({},e),{className:super.getClassName(),wizardHeader:r,wizardHeaderType:n,wizardHeaderLocation:i,wizardNav:t,components:this.renderComponents([...this.prefixComps,...this.currentPage.components,...this.suffixComps])}),this.builderMode?"builder":"form")}redrawNavigation(){if(this.element){let e=this.element.querySelector(`#${this.wizardKey}-nav`);e&&(this.detachNav(),e.outerHTML=this.renderTemplate("wizardNav",this.renderContext),e=this.element.querySelector(`#${this.wizardKey}-nav`),this.loadRefs(e,{[`${this.wizardKey}-cancel`]:"single",[`${this.wizardKey}-previous`]:"single",[`${this.wizardKey}-next`]:"single",[`${this.wizardKey}-submit`]:"single"}),this.attachNav())}}redrawHeader(){if(this.element){let e=this.element.querySelector(`#${this.wizardKey}-header`);e&&(this.detachHeader(),e.outerHTML=this.renderTemplate(`wizardHeader${o.default.get(this.form,"settings.wizardHeaderType","")}`,this.renderContext),e=this.element.querySelector(`#${this.wizardKey}-header`),this.loadRefs(e,{[`${this.wizardKey}-link`]:"multiple",[`${this.wizardKey}-tooltip`]:"multiple"}),this.attachHeader())}}attach(e){var t;this.setElement(e),this.loadRefs(e,{[this.wizardKey]:"single",[`${this.wizardKey}-header`]:"single",[`${this.wizardKey}-cancel`]:"single",[`${this.wizardKey}-previous`]:"single",[`${this.wizardKey}-next`]:"single",[`${this.wizardKey}-submit`]:"single",[`${this.wizardKey}-link`]:"multiple",[`${this.wizardKey}-tooltip`]:"multiple"}),!this.options.readOnly&&!this.editMode||this.enabledIndex||(this.enabledIndex=(null===(t=this.pages)||void 0===t?void 0:t.length)-1),this.hook("attachWebform",e,this);const n=this.attachComponents(this.refs[this.wizardKey],[...this.prefixComps,...this.currentPage.components,...this.suffixComps]);return this.attachNav(),this.attachHeader(),n.then((()=>{this.emit("render",{component:this.currentPage,page:this.page}),this.component.scrollToTop&&this.scrollPageToTop()}))}scrollPageToTop(){var e;const t=null!==(e=this.refs[`${this.wizardKey}-header`])&&void 0!==e?e:this.refs[this.wizardKey];t&&("scrollIntoView"in t?t.scrollIntoView(!0):this.scrollIntoView(t))}isBreadcrumbClickable(){let e=null;return this.pages.map((t=>{o.default.isEqual(this.currentPage.component,t.component)&&(e=t)})),this.isClickableDefined?this.options.breadcrumbSettings.clickable:o.default.get(e,"component.breadcrumbClickable",!0)}isAllowPrevious(){let e=null;return this.pages.map((t=>{o.default.isEqual(this.currentPage.component,t.component)&&(e=t)})),o.default.get(e.component,"allowPrevious",this.options.allowPrevious)}handleNaviageteOnEnter(e){if(13===e.keyCode){const e=new CustomEvent("click"),t=this.refs[`${this.wizardKey}-${this.buttons.next.name}`];t&&t.dispatchEvent(e)}}handleSaveOnEnter(e){if(13===e.keyCode){const e=new CustomEvent("click"),t=this.refs[`${this.wizardKey}-${this.buttons.submit.name}`];t&&t.dispatchEvent(e)}}attachNav(){this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),o.default.each(this.buttons,(e=>{const t=this.refs[`${this.wizardKey}-${e.name}`];this.addEventListener(t,"click",(n=>{n.preventDefault(),t.setAttribute("disabled","disabled"),this.setLoading(t,!0),this[e.method]().then((()=>{t.removeAttribute("disabled"),this.setLoading(t,!1)})).catch((()=>{t.removeAttribute("disabled"),this.setLoading(t,!1)}))}))}))}emitWizardPageSelected(e){this.emit("wizardPageSelected",this.pages[e],e)}attachHeader(){var e;const t=this.isAllowPrevious();this.attachTooltips(this.refs[`${this.wizardKey}-tooltip`],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||t)&&(null===(e=this.refs[`${this.wizardKey}-link`])||void 0===e||e.forEach(((e,n)=>{(!t||n<=this.enabledIndex)&&this.addEventListener(e,"click",(e=>(this.emit("wizardNavigationClicked",this.pages[n]),e.preventDefault(),this.setPage(n).then((()=>{this.emitWizardPageSelected(n)})))))})))}detachNav(){this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),o.default.each(this.buttons,(e=>{this.removeEventListener(this.refs[`${this.wizardKey}-${e.name}`],"click")}))}detachHeader(){this.refs[`${this.wizardKey}-link`]&&this.refs[`${this.wizardKey}-link`].forEach((e=>{this.removeEventListener(e,"click")}))}transformPages(){const e=[],t=this.getSortedComponents(this);let n=[];this.allPages=[];const i=(e,t,r=!0)=>{const s=[],a=["datagrid","editgrid","dynamicWizard"],u=(null==e?void 0:e.subForm)?this.getSortedComponents(e.subForm):(null==e?void 0:e.components)||[],c=u.filter((e=>e._visible)).filter((e=>!a.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard))),d=u.filter((e=>{var t;return"wizard"!==(null===(t=e.subForm)||void 0===t?void 0:t._form.display)}));let h=!1;if((0,l.eachComponent)(c,(e=>{if(e&&e.component&&("panel"===e.component.type&&(null==e?void 0:e.parent.wizard)&&!i(e,t,!1)&&(r&&(this.setRootPanelId(e),s.push(e)),h=!0),e.isNestedWizard&&e.subForm)){const t=i(e,s,r);h||(h=t)}}),!0),"panel"===e.component.type&&(!h&&r&&(this.setRootPanelId(e),t.push(e)),h&&d.length)){const t=o.default.clone(e);t.components=d,this.setRootPanelId(t),n.push(t)}return r&&(t.push(...n,...s),n=[]),h};t.forEach((t=>{t.visible&&i(t,e)}),[]),this.localRoot&&this.id===this.localRoot.id&&e.forEach(((e,t)=>{e.eachComponent((e=>{e.page=t}))})),this.allPages=e}getSortedComponents({components:e,originalComponents:t}){const n=[],i=[];return e&&e.length&&e.map((e=>{"panel"===e.component.type&&(i[e.component.key||e.component.title]=e)})),null==t||t.forEach((e=>{e.key||(e.key=e.title),i[e.key]&&n.push(i[e.key])})),n}findRootPanel(e){var t;return(null===(t=e.parent)||void 0===t?void 0:t.parent)?this.findRootPanel(e.parent):e}setRootPanelId(e){var t;if(e.rootPanelId&&e.rootPanelId!==e.id)return;const n=(null===(t=e.parent)||void 0===t?void 0:t.parent)?this.findRootPanel(e.parent):e;e.rootPanelId=n.id}establishPages(e=this.data){this.pages=[],this.prefixComps=[],this.suffixComps=[];const t=[],n={},i=Object.assign(Object.assign({},o.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach((e=>{"panel"===e.component.type&&(n[e.component.key||e.component.title]=e)})),this.originalComponents&&this.originalComponents.forEach((r=>{if("panel"===r.type){r.key||(r.key=r.title);let o=n[r.key];const s=this.shouldForceShow(r),a=this.shouldForceHide(r);let u=o?o.visible:(0,l.checkCondition)(r,e,e,this.component,this)&&!r.hidden;s?u=!0:a&&(u=!1),u&&(t.push(r),o&&this.pages.push(o)),!o&&u&&(o=this.createComponent(r,i),o.visible=u,this.pages.push(o),o.eachComponent((e=>{e.page=this.pages.length-1})))}else"button"!==r.type&&(this.pages.length?this.suffixComps.push(this.createComponent(r,i)):this.prefixComps.push(this.createComponent(r,i)))})),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),t}updatePages(){this.pages=this.allPages}addComponents(){this.establishPages()}setPage(e){if(e===this.page)return r.default.resolve();if(e>=0&&e{var n,i;return e.id===(null===(i=null===(n=this.pages)||void 0===n?void 0:n[t])||void 0===i?void 0:i.rootPanelId)})))}return this._seenPages.includes(t)||(this._seenPages=this._seenPages.concat(t)),this.redraw().then((()=>{this.checkData(this.submission.data)})),r.default.resolve()}return this.pages.length?r.default.reject("Page not found"):(this.redraw(),r.default.resolve())}pageFieldLogic(e){var t;(null===(t=this.pages)||void 0===t?void 0:t[e])&&(this.component=this.pages[e].component,this.originalComponent=(0,l.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}get currentPage(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}getNextPage(){var e;if(null===(e=this.pages)||void 0===e?void 0:e[this.page]){const e=this.submission.data,t=this.pages[this.page].component;if(t){const n=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(t.nextPage){const i=this.evaluate(t.nextPage,{next:n,data:e,page:n,form:t},"next");if(null===i)return this.currentNextPage=null,null;const r=parseInt(i,10);return!isNaN(parseInt(r,10))&&isFinite(r)?(this.currentNextPage=r,r):(this.currentNextPage=this.getPageIndexByKey(i),this.currentNextPage)}return this.currentNextPage=n,n}this.currentNextPage=null}return null}getPreviousPage(){return this.page-1}beforeSubmit(){const e=this.getPages();return r.default.all(e.map((e=>(e.options.beforeSubmit=!0,e.beforeSubmit()))))}beforePage(e){return new r.default(((t,n)=>{this.hook(e?"beforeNext":"beforePrev",this.currentPage,this.submission,(i=>{i&&(this.showErrors(i,!0),n(i));const r=this.currentPage;r?r.beforePage(e).then(t).catch(n):t()}))}))}emitNextPage(){this.emit("nextPage",{page:this.page,submission:this.submission})}nextPage(){return this.options.readOnly?this.beforePage(!0).then((()=>this.setPage(this.getNextPage()).then((()=>{this.emitNextPage()})))):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then((()=>this.setPage(this.getNextPage()).then((()=>{!this.options.readOnly&&!this.editMode&&this.enabledIndexe.setPristine(!1))),this.scrollIntoView(this.element),r.default.reject(this.showErrors([],!0)))}emitPrevPage(){this.emit("prevPage",{page:this.page,submission:this.submission})}prevPage(){return this.beforePage().then((()=>this.setPage(this.getPreviousPage()).then((()=>{this.emitPrevPage()}))))}cancel(e){return this.options.readOnly?r.default.resolve():super.cancel(e)?(this.setPristine(!0),this.setPage(0).then((()=>(this.enabledIndex&&(this.enabledIndex=0),this.onChange(),this.redraw(),this.page)))):r.default.resolve()}getPageIndexByKey(e){let t=this.page;return this.pages.forEach(((n,i)=>{if(n.component.key===e)return t=i,!1})),t}get schema(){return this.wizard}setComponentSchema(){const e={};if(this.originalComponents=[],this.component.components.map((t=>{"panel"===t.type&&(t.key=(0,l.uniqueKey)(e,t.key||"panel"),e[t.key]=!0,this.wizard.full?(this.options.show=this.options.show||{},this.options.show[t.key]=!0):this.wizard.hasOwnProperty("full")&&!o.default.isEqual(this.originalOptions.show,this.options.show)&&(this.options.show=Object.assign({},this.originalOptions.show||{}))),this.originalComponents.push(o.default.clone(t))})),!Object.keys(e).length){const e={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[e],this.originalComponents.push(o.default.clone(e))}}setForm(e,t){if(e)return super.setForm(e,t)}onSetForm(e,t){this.component.components=(this._parentPath?t.components:e.components)||[],this.setComponentSchema()}setEditMode(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}setValue(e,t={},n){this._submission=e,(t&&t.fromSubmission&&(this.options.readOnly||this.editMode)&&!this.isHtmlRenderMode()||t&&t.fromSubmission&&(this.prefixComps.length||this.suffixComps.length)&&e._id)&&(this._data=e.data),n||this.establishPages(e.data);const i=this.getPages({all:!0}).reduce(((n,i)=>this.setNestedValue(i,e.data,t,n)||n),!1);return i&&this.pageFieldLogic(this.page),this.setEditMode(e),i}isClickable(e,t){return this.page!==t&&(0,l.firstNonNil)([o.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}hasButton(e,t=this.getNextPage()){const{previous:n=this.options.buttonSettings.showPrevious,cancel:i=this.options.buttonSettings.showCancel,submit:r=this.options.buttonSettings.showSubmit,next:s=this.options.buttonSettings.showNext}=o.default.get(this.currentPage,"component.buttonSettings",{});switch(e){case"previous":return n&&this.getPreviousPage()>-1;case"next":return s&&null!==t&&-1!==t;case"cancel":return i&&!this.options.readOnly;case"submit":return r&&!this.options.readOnly&&(null===t||this.page===this.pages.length-1);default:return!0}}pageId(e){return e.key?`${e.key}-${e.title}`:e.components&&e.components.length>0?this.pageId(e.components[0]):e.title}onChange(e,t,n,i){var r,s;let a,l;super.onChange(e,t,n,i),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));const u=this.currentNextPage;this.hasExtraPages?(a=this.pages.map((e=>e.component.key)),this.establishPages(),l=this.pages.map((e=>e.component.key))):(a=this.currentPanels||this.pages.map((e=>e.component.key)),l=this.establishPages().map((e=>e.key)),this.currentPanels=l,(null===(r=this.currentPanel)||void 0===r?void 0:r.key)&&(null===(s=this.currentPanels)||void 0===s?void 0:s.length)&&this.setPage(this.currentPanels.findIndex((e=>e===this.currentPanel.key)))),(!o.default.isEqual(l,a)||e&&e.fromSubmission)&&this.redrawHeader(),u!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}redraw(){var e,t;return(null===(t=null===(e=this.parent)||void 0===e?void 0:e.component)||void 0===t?void 0:t.modalEdit)?this.parent.redraw():super.redraw()}checkValidity(e,t,n,i){return this.checkCondition(n,e)?(!i||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(((i,r)=>r.checkValidity(e,t,n)&&i),!0):(this.setCustomValidity(""),!0)}get errors(){return this.isLastPage()?super.errors:this.currentPage.errors}focusOnComponent(e){let t=0;const[n]=this.pages.filter(((n,i)=>{let r=!1;return n.getComponent(e,(n=>{n.path===e&&(t=i,r=!0)})),r}));return n&&n!==this.currentPage?this.setPage(t).then((()=>{this.checkValidity(this.submission.data,!0,this.submission.data),this.showErrors(),super.focusOnComponent(e)})):super.focusOnComponent(e)}}t.default=u,u.setBaseUrl=a.Formio.setBaseUrl,u.setApiUrl=a.Formio.setApiUrl,u.setAppUrl=a.Formio.setAppUrl},42913:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(57692)),o=i(n(97567)),s=i(n(87338)),a=i(n(2543)),l=n(34600);class u extends r.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!1,t.display="wizard",super(e,t),this._form={components:[this.getPageConfig(1)]},this.page=0;for(const e in this.groups)this.groups[e]&&this.groups[e].components&&(this.groups[e].componentOrder=Object.keys(this.groups[e].components).map((t=>this.groups[e].components[t])).filter((e=>e&&!e.ignore)).sort(((e,t)=>e.weight-t.weight)).map((e=>e.key)));const n=this.options.hooks.renderComponents;this.options.hooks.renderComponents=(e,{components:t,self:i})=>"form"!==i.type||i.root?n(e,{components:t,self:i}):e;const i=this.options.hooks.attachComponents;this.options.hooks.attachComponents=(e,t,n,r)=>"form"!==r.type||r.root?i(e,t,n,r):e,this.on("saveComponent",((e,t)=>{const n=this.webform.components.map((({component:e})=>e));if(this._form.components.includes(t))this._form.components[this._form.components.indexOf(t)]=e,this.rebuild();else if(n.includes(t))this._form.components.push(e),this.rebuild();else{const n=this._form.components.findIndex((e=>t.key===e.key));-1!==n&&(this._form.components[n]=e,this.rebuild())}}),!0)}removeComponent(e,t,n){const i=super.removeComponent(e,t,n);if(i&&"panel"===e.type){const t=this.pages.findIndex((t=>t.key===e.key)),n=this._form.components.findIndex((t=>t.key===e.key));-1!==t&&this.removePage(t,n)}return i}allowDrop(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}get pages(){return a.default.filter(this._form.components,{type:"panel"})}get currentPage(){const e=this.pages;return e&&e.length>=this.page?e[this.page]:null}set form(e){if(this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length){const e=this._form.components.filter((e=>"button"!==e.type));this._form.components=[this.getPageConfig(1,e)]}this.rebuild()}get form(){return this._form}get schema(){a.default.assign(this.currentPage,this.webform._form.components[0]);const e=new o.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}render(){return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))})))}),pages:this.pages,form:this.webform.render()})}attach(e){return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach(((e,t)=>{e.parentNode.dragInfo={index:t}})),this.dragulaLib&&this.dragulaLib([this.element.querySelector(".wizard-pages")]).on("drop",this.onReorder.bind(this)),this.refs.addPage.forEach((e=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.addPage()}))})),this.refs.gotoPage.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.setPage(t)}))})),super.attach(e)}rebuild(){var e;const t=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:t?[t]:[],controller:(null===(e=this._form)||void 0===e?void 0:e.controller)||""},{keepAsReference:!0}),this.redraw()}addPage(e){const t=e&&e.schema?(0,l.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return s.default.uniquify(this._form.components,t),this._form.components.push(t),this.emitSaveComponentEvent(t,t,this._form,"components",this._form.components.length-1,!0,t),this.emit("change",this._form),this.rebuild()}removePage(e,t){return this._form.components.splice(t,1),this.emit("change",this._form),e===this.pages.length?0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1):this.rebuild()}onReorder(e,t,n,i){if(!e.dragInfo||i&&!i.dragInfo)return void console.warn("There is no Drag Info available for either dragged or sibling element");const r=e.dragInfo.index,o=i?i.dragInfo.index:this.pages.length,s=o>r,a=(0,l.fastCloneDeep)(this._form.components),u=this._form.components[r];return a.splice(o,0,u),a.splice(s?r:r+1,1),this._form.components=(0,l.fastCloneDeep)(a),this.rebuild().then((()=>{this.emit("change",this._form)}))}setPage(e){if(e!==this.page)return this.page=e,this.rebuild()}getPageConfig(e,t=[]){return{title:`Page ${e}`,label:`Page ${e}`,type:"panel",key:`page${e}`,components:t}}pasteComponent(e){if(!(e instanceof u))return this._form.components.find((t=>a.default.isEqual(e.component,t)))?void this.addPage(e):super.pasteComponent(e)}}t.default=u},18975:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(31959)),o=i(n(53632)),s=i(n(2543));class a extends r.default{static get info(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}get defaultSettings(){return a.info.defaultSettings}get element(){return this._element}constructor(e,t){super(e),this.namespace="formio.plugin",this.component=t||{},this.settings=s.default.merge({},this.defaultSettings,e||{})}attach(e){return this._element=e,o.default.resolve()}destroy(){}}t.default=a},42584:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844));t.default=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n
      \n
    • < 28 bits = Very Weak;
    • \n
    • 28 - 35 bits = Weak; should keep out most people;
    • \n
    • 36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;
    • \n
    • 60 - 127 bits = Strong; can be good for guarding financial information;
    • \n
    • > 128 bits = Very Strong; often overkill;
    • \n
    \n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},r.default.javaScriptValue("Check","check","",1100,'

    Example:

    valid = !value.includes(data.email) ? true : "Password should not be variation of the email";

    ',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},r.default.javaScriptValue("Is Valid","isValid","",1100,"

    Example:

    valid = entropy > maxEntropy / 2 ;

    ","","entropyCurrent entropy bits of the password.levelCurrent strength level of the password.",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},r.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"

    Example:

    values = [ data.name, data.dataOfBirth, data.favoriteColor ];

    ","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}]},60918:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(18975)),s=i(n(42584));class a extends o.default{static get info(){return{supportedComponents:["password"],name:"passwordStrength",components:s.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n
    \n {% if (!ctx.readOnly && !ctx.pristine) { %}\n
    \n {% } %}\n \n ",location:{insert:"after",selector:'[ref="element"]'}}}}get defaultSettings(){return a.info.defaultSettings}get rules(){return{length:{check:(e,t)=>{const n=t.minLength||this.component.component.validate.minLength||6;return!(e.length!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters",increaseCharactersPoolSize:26},numeric:{check:e=>!!/[0-9]/g.test(e)||"Value must contain numeric characters",increaseCharactersPoolSize:10},lowerCase:{check:e=>!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters",increaseCharactersPoolSize:26},symbols:{check:e=>!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols",increaseCharactersPoolSize:32}}}get charactersPoolLength(){return this._charactersPoolLength}set charactersPoolLength(e){this._charactersPoolLength=e}get level(){return this._level||this.getLevel()}set level(e){this._level=e}get entropy(){return this._entropy}get dictionarySize(){return this.settings.dictionarySize||171476}set entropy(e){const t=this.getLevel(),n="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&t.name!==this.level.name||n)&&this.updateView()}get template(){return this.settings.template}get tooltip(){var e,t;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||`${null===(t=this.level)||void 0===t?void 0:t.name} strongness`}get rulesSettings(){return this.settings.rulesSettings||[]}get customRules(){return this.settings.customRules||[]}log2(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}calculatePasswordEntropy(e,t){return e&&t?this.log2(Math.pow(t,e)):0}calculatePasswordEntropyWords(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}render(){const e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}checkBlackList(e){const t=[...this.settings.blackList];let n=this.settings.customBlacklistedWords;n&&"string"==typeof n&&(n=this.evaluate(n,this.component.evalContext({value:e}),"values"),n&&n.length&&t.push(...n));let i=e;const r=[];for(let n=0;n=Math.round(this.maxEntropy/2)}handleRuleCheckResult(e,t,n,i){if(!0!==e)i.push({validation:t.name,message:n,level:t.required?"error":"warning"});else if(t.increaseCharactersPoolSize)return t.increaseCharactersPoolSize;return 0}performChecks(e){const t=[];let n=0;return this.rulesSettings.forEach((i=>{if(this.rules[i.name]){const o=r.default.merge({},this.rules[i.name],i),s=o.check(e,i.options||{}),a=i.message||s;n+=this.handleRuleCheckResult(s,o,a,t)}})),this.customRules.forEach((i=>{if(i.check&&"string"==typeof i.check){const r=this.evaluate(i.check,this.component.evalContext({value:e}),"valid"),o="string"==typeof r?r:`Password does not meet ${i.name} validation`;n+=this.handleRuleCheckResult(r,i,o,t)}})),{charactersPoolSize:n,errors:t}}checkValidity(e){var t;const n=e.length,{charactersPoolSize:i,errors:r}=this.performChecks(e);this.errors=r;const o=this.calculatePasswordEntropy(n,i),s=(null===(t=this.settings.blackList)||void 0===t?void 0:t.length)||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return s&&!0!==s?(this.handleBlackListCheckResult(s),this.entropy=Math.min(o,s.entropy)):this.entropy=o,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}handleBlackListCheckResult(e){const t=e.blacklistedWords,n=this.settings.disableBlacklistedWords,i=`Password ${n?"must":"should"} not include common words: ${t.join(", ")}`,r={name:"blacklist",required:n};this.handleRuleCheckResult(!1,r,i,this.errors)}constructor(e,t){super(e,t),this._entropy=0,this.levels=[...this.settings.levels||this.defaultSettings.levels],this.levels.sort(((e,t)=>e.maxEntropy-t.maxEntropy)),this.level=this.levels[0],this.maxEntropy=this.levels[this.levels.length-1].maxEntropy}attach(e){super.attach(e);const t=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,t)||this.component.append(t),this._element=t,this.component.on("redraw",(()=>this.updateView())),this.component.on("componentError",(()=>this.updateView())),this.updateView()}insertContainer(e,t){var n,i;if(!e||!t)return!1;const r=null===(n=this.settings.location)||void 0===n?void 0:n.insert,o=null===(i=this.settings.location)||void 0===i?void 0:i.selector;let s;if(o&&(s=e.querySelector(o)),!s)return console.warn(`No elements found using selector: ${o}`),!1;{const e=s.parentNode;switch(r){case"after":return!!e&&(e.insertBefore(t,s.nextSibling||null),!0);case"before":return!!e&&(e.insertBefore(t,s),!0);default:return console.warn(`Unknown insert option: ${r}`),!1}}}destroy(){super.destroy()}getLevel(e=this.entropy){const t=this.levels[0];let n=t.maxEntropy;if(e<=t.maxEntropy)return t;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(let t=1;tn&&e<=i.maxEntropy)return i;n=i.maxEntropy}return t}updateView(){if(!this.element)return;const e=this.render();this.element.innerHTML=e}}t.default=a},76667:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.editForms=void 0;const r=i(n(60918));t.editForms=[r.default.info].map((({components:e,name:t,defaultSettings:n})=>({type:"form",key:"settings",display:"form",input:!0,components:e,defaultValue:{data:n},customConditional:({row:e})=>e.name.value===t}))),t.default={passwordStrength:r.default}},64142:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(28042)),s=i(n(57692)),a=i(n(42913));class l{static addBuilder(e,t){l.builders[e]=t}static addBuilders(e){l.builders=r.default.merge(l.builders,e)}static getBuilder(e){return l.builders[e]}static getBuilders(){return l.builders}}l.builders={pdf:o.default,webform:s.default,wizard:a.default},t.default=l},5292:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(64142));t.default=r.default},87422:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),o=i(n(33844)),s=i(n(21445)),a=i(n(2543));class l{static set EditFormUtils(e){l._editFormUtils=e}static get EditFormUtils(){return l._editFormUtils}static set baseEditForm(e){l._baseEditForm=e}static get baseEditForm(){return l._baseEditForm}static recalculateComponents(){window&&window.Formio&&window.Formio.AllComponents&&l.setComponents(window.Formio.AllComponents)}static get components(){return l._components||(l._components={}),l._components}static setComponents(e){e.base&&(e.base.tableView=function(e,t){return l.create(t.component,t.options||{},t.data||{},!0).getView(e)}),a.default.assign(l.components,e)}static addComponent(e,t){return l.setComponent(e,t)}static setComponent(e,t){l.components[e]=t}static create(e,t,n){let i=null;return i=e.type&&l.components.hasOwnProperty(e.type)?new l.components[e.type](e,t,n):e.arrayTree?new l.components.datagrid(e,t,n):e.tree?new l.components.nesteddata(e,t,n):Array.isArray(e.components)?new l.components.nested(e,t,n):t&&t.server?new l.components.hidden(e,t,n):new r.default(e,t,n),i}}l._editFormUtils=o.default,l._baseEditForm=s.default,t.default=l},21445:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(42248)),s=i(n(60406)),a=i(n(16220)),l=i(n(96958)),u=i(n(83258)),c=i(n(17901)),d=i(n(60924)),h=i(n(33844));t.default=function(...e){const t=r.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:l.default},{label:"Data",key:"data",weight:10,components:s.default},{label:"Validation",key:"validation",weight:20,components:c.default},{label:"API",key:"api",weight:30,components:a.default},{label:"Conditional",key:"conditional",weight:40,components:o.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:d.default}]}]).concat(e.map((e=>({type:"tabs",key:"tabs",components:r.default.cloneDeep(e)}))));return{components:r.default.unionWith(t,h.default.unifyComponents).concat({type:"hidden",key:"type"})}}},96877:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(78443),l=s(n(53632)),u=s(n(79244)),c=s(n(2543)),d=s(n(22437)),h=n(29857),p=o(n(34600)),f=s(n(78820)),m=n(34600),g=s(n(31959)),v=s(n(85179)),y=s(n(95357)),b=s(n(76667)),_=n(87468),w=s(n(51637)),k=s(n(59452)),x=p.getBrowserInfo().ie;class E extends g.default{static schema(...e){return c.default.merge({input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]},...e)}static get Validator(){return f.default}static tableView(e,t){}constructor(e,t,n){super(Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},t||{})),e&&e.id&&(this.id=e.id),this._hasCondition=null,this.refs={},e&&this.options.components&&this.options.components[e.type]&&c.default.merge(e,this.options.components[e.type]),this.validator=f.default,this.path="",this.component=this.mergeSchema(e||{}),this.component.id=this.id,this.afterComponentAssign(),this.originalComponent=(0,m.fastCloneDeep)(this.component),this.attached=!1,this.rendered=!1,this._data=n||{},this.error="",this.tooltip="",this.row=this.options.row,this._disabled=!!(0,m.boolValue)(this.component.disabled)&&this.component.disabled,this.root=this.options.root,this.localRoot=this.options.localRoot,this.pristine=!0,this.parent=this.options.parent,this.options.name=this.options.name||"data",this.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],this._path="",this._parentPath=this.options.parentPath||"",this.resetCaches(),this._parentVisible=!this.options.hasOwnProperty("parentVisible")||this.options.parentVisible,this._visible=this._parentVisible&&this.conditionallyVisible(null,n),this._parentDisabled=!1;let i=[],r=null,o=[];const s=c.default.debounce(((...e)=>{this.root&&(this.root.changing=!1),o=[],!e[1]&&r&&(e[1]=r),c.default.isEmpty(e[0])&&r&&(e[0]=r.flags),r=null,e[3]=i;const t=this.onChange(...e);return i=[],t}),100);this.triggerChange=(...e)=>(e[1]&&(r=e[1],i.push(r)),this.root&&(this.root.changing=!0),e.length&&(o=e),s(...o)),this.triggerRedraw=c.default.debounce(this.redraw.bind(this),100),this.tooltips=[],this.addons=[],this.invalid=!1,this.component&&(this.type=this.component.type,this.allowData&&this.key&&(this.options.name+=`[${this.key}]`,!this.visible&&this.component.clearOnHide||(this.hasValue()?this.dataValue=this.dataValue:this.shouldAddDefaultValue&&(this.dataValue=this.defaultValue))),this.info=this.elementInfo()),this.hook("component"),this.options.skipInit||this.init()}get data(){return this._data}set data(e){this._data=e}mergeSchema(e={}){return c.default.defaultsDeep(e,this.defaultSchema)}get ready(){return l.default.resolve(this)}get isPDFReadOnlyMode(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}get labelInfo(){const e={};e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass=`${this.iconClass("question-sign")} text-muted`;const t=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,m.boolValue)(this.component.validate.required)&&!t&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}init(){var e;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),(null===(e=this.component.addons)||void 0===e?void 0:e.length)&&this.component.addons.forEach((e=>this.createAddon(e)))}afterComponentAssign(){}createAddon(e){var t;const n=e.name;if(!n)return;const i=(null===(t=e.settings)||void 0===t?void 0:t.data)||{},r=b.default[n.value];let o=null;if(r){const e=r.info.supportedComponents;(null==e?void 0:e.length)&&-1===e.indexOf(this.component.type)?console.warn(`Addon ${n.label} does not support component of type ${this.component.type}.`):(o=new r(i,this),this.addons.push(o))}return o}teardown(){this.element&&(delete this.element.component,delete this.element),delete this._currentForm,delete this.parent,delete this.root,delete this.triggerChange,delete this.triggerRedraw,this.options&&(delete this.options.root,delete this.options.parent,delete this.options.i18next),super.teardown()}destroy(e=!1){super.destroy(e),this.detach(),this.addons.forEach((e=>e.destroy())),e&&this.teardown()}get shouldDisabled(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}get isInputComponent(){return!this.component.hasOwnProperty("input")||this.component.input}get allowData(){return this.hasInput}get hasInput(){return this.isInputComponent||this.refs.input&&this.refs.input.length}get defaultSchema(){return E.schema()}get key(){return c.default.get(this.component,"key","")}set parentVisible(e){this._parentVisible=e}get parentVisible(){return this._parentVisible}set parentDisabled(e){this._parentDisabled=e}get parentDisabled(){return this._parentDisabled}shouldForceVisibility(e,t){return!!this.options[t]&&(e||(e=this.component),c.default.isArray(this.options[t])?this.options[t].includes(e.key):this.options[t][e.key])}shouldForceHide(e){return this.shouldForceVisibility(e,"hide")}shouldForceShow(e){return this.shouldForceVisibility(e,"show")}set visible(e){if(this._visible!==e){if(e&&this.shouldForceHide())return;if(!e&&this.shouldForceShow())return;this._visible=e,this.clearOnHide(),this.redraw()}}get visible(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)}get currentForm(){return this._currentForm}set currentForm(e){this._currentForm=e}get fullMode(){return"full"===this.options.attachMode}get builderMode(){return"builder"===this.options.attachMode}get calculatedPath(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}get labelPosition(){return this.component.labelPosition}get labelWidth(){const e=this.component.labelWidth;return e>=0?e:30}get labelMargin(){const e=this.component.labelMargin;return e>=0?e:3}get isAdvancedLabel(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}get labelPositions(){return this.labelPosition.split("-")}get skipInEmail(){return!1}rightDirection(e){return!this.options.condensedMode&&"right"===e}getLabelInfo(e=!1){const t=this.rightDirection(this.labelPositions[0]),n="left"===this.labelPositions[0]||e,i=this.rightDirection(this.labelPositions[1]);let r="";if(this.component.hideLabel){const e=this.labelWidth+this.labelMargin;r=t?`margin-right: ${e}%`:"",r=n?`margin-left: ${e}%`:""}return{isRightPosition:t,isRightAlign:i,labelStyles:`\n flex: ${this.labelWidth};\n ${t?"margin-left":"margin-right"}: ${this.labelMargin}%;\n `,contentStyles:`\n flex: ${100-this.labelWidth-this.labelMargin};\n ${r};\n ${this.component.hideLabel?"max-width: "+(100-this.labelWidth-this.labelMargin):""};\n `}}getModifiedSchema(e,t,n){const i={};return t?(c.default.each(e,((e,r)=>{if(!c.default.isArray(e)&&c.default.isObject(e)&&t.hasOwnProperty(r)){const n=this.getModifiedSchema(e,t[r],!0);c.default.isEmpty(n)||(i[r]=n)}else c.default.isArray(e)?0===e.length||c.default.isEqual(e,t[r])||(i[r]=e):(!n&&"type"===r||!n&&"key"===r||!n&&"label"===r||!n&&"input"===r||!n&&"tableView"===r||""!==e&&!t.hasOwnProperty(r)||""!==e&&e!==t[r]||t[r]&&e!==t[r])&&(i[r]=e)})),i):e}get schema(){return(0,m.fastCloneDeep)(this.getModifiedSchema(c.default.omit(this.component,"id"),this.defaultSchema))}get isInDataGrid(){return this.inDataGrid}t(e,t={},...n){return e?e in w.default&&t._userInput?e:(t.data=this.rootValue,t.row=this.data,t.component=this.component,super.t(e,t,...n)):""}labelIsHidden(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}transform(e,t){const n=this.options.template?k.default.templates[this.options.template]:k.default.current;return n.hasOwnProperty("transform")?n.transform(e,t,this):(e,t)=>t}getTemplate(e,t){t=Array.isArray(t)?t:[t],e=Array.isArray(e)?e:[e],t.includes("form")||t.push("form");let n=null;if(this.options.templates&&(n=this.checkTemplate(this.options.templates,e,t),n))return n;const i=this.options.template?k.default.templates[this.options.template]:k.default.current;if(n=this.checkTemplate(i,e,t),n)return n;const r=e[e.length-1],o=k.default.defaultTemplates[r];if(!o)return`Unknown template: ${r}`;return this.checkTemplateMode(o,t)||o.form}checkTemplate(e,t,n){for(const i of t){const t=e[i];if(t){const e=this.checkTemplateMode(t,n);if(e)return e}}return null}checkTemplateMode(e,t){for(const n of t){const t=e[n];if(t)return t}return null}getFormattedAttribute(e){return e?this.t(e,{_userInput:!0}).replace(/"/g,"""):""}getFormattedTooltip(e){const t=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"
    ");return this.getFormattedAttribute(t)}isHtmlRenderMode(){return"html"===this.options.renderMode}renderTemplate(e,t={},n){const i=n||this.options.renderMode||"form";t.component=this.component,t.self=this,t.options=this.options,t.readOnly=this.options.readOnly,t.iconClass=this.iconClass.bind(this),t.size=this.size.bind(this),t.t=this.t.bind(this),t.transform=this.transform.bind(this),t.id=t.id||this.id,t.key=t.key||this.key,t.value=t.value||this.dataValue,t.disabled=this.disabled,t.builder=this.builderMode,t.render=(...e)=>(console.warn("Form.io 'render' template function is deprecated.\n If you need to render template (template A) inside of another template (template B),\n pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),this.renderTemplate(...e)),t.label=t.labelInfo||this.labelInfo,t.tooltip=this.getFormattedTooltip(this.component.tooltip);const r=[`${e}-${this.component.type}-${this.key}`,`${e}-${this.component.type}`,`${e}-${this.key}`,`${e}`];return this.hook(`render${e.charAt(0).toUpperCase()+e.substring(1,e.length)}`,this.interpolate(this.getTemplate(r,i),t),t,i)}sanitize(e,t,n){var i;return!this.shouldSanitizeValue&&!t||this.options.pdf&&!t?e:p.sanitize(e,{sanitizeConfig:c.default.merge((null===(i=this.options)||void 0===i?void 0:i.sanitizeConfig)||{},n||{})})}renderString(e,t){return e?this.interpolate(e,t):""}performInputMapping(e){return e}get widget(){var e;const t=this.component.widget;return t&&(null===(e=this.root)||void 0===e?void 0:e.shadowRoot)&&(t.shadowRoot=this.root.shadowRoot),t&&y.default[t.type]?new y.default[t.type](t,this.component,this):null}getBrowserLanguage(){const e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"];let n;if(Array.isArray(e.languages))for(let t=0;t [ref="${n}"]`:`[ref="${n}"]`;r&&i.startsWith("single")?this.refs[n]=e.querySelector(o):this.refs[n]=e.querySelectorAll(o)}}setOpenModalElement(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}getModalPreviewTemplate(){var e;const t="password"===this.component.type?this.dataValue.replace(/./g,"•"):this.dataValue,n=this.error?{level:"error",message:this.error.message}:"";let i;return this.hasInput&&(null===(e=this.component.validate)||void 0===e?void 0:e.required)&&!this.isPDFReadOnlyMode&&(i={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(t,{modalPreview:!0})||this.t("Click to set value"),messages:n&&this.renderTemplate("message",n),labelInfo:i})}build(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}get hasModalSaveButton(){return!0}render(e=`Unknown component: ${this.component.type}`,t=!1){const n=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):v.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}attachTooltips(e){null==e||e.forEach(((e,t)=>{if(e){const n=e.getAttribute("data-tooltip"),i=e.getAttribute("data-title"),r=this.interpolate(i||n).replace(/(?:\r\n|\r|\n)/g,"
    ");this.tooltips[t]=(0,u.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:this.t(r,{_userInput:!0})})}}))}createComponentModal(e,t,n){return new v.default(this,e,t,n)}attach(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){const t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue,i=this.componentModal&&t?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,t,n),this.setOpenModalElement(i)}this.attached=!0,this.setElement(e),e.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);const t=this.component.type;return t&&this.hook(`attach${t.charAt(0).toUpperCase()+t.substring(1,t.length)}`,e,this),this.restoreFocus(),this.addons.forEach((t=>t.attach(e))),l.default.resolve()}restoreFocus(){var e,t,n;(null===(t=null===(e=this.root)||void 0===e?void 0:e.focusedComponent)||void 0===t?void 0:t.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(n=this.root.currentSelection)||void 0===n?void 0:n.index),this.restoreCaretPosition())}addShortcut(e,t){e&&this.root&&this.root!==this&&(t||(t=this.component.shortcut),this.root.addShortcut(e,t))}removeShortcut(e,t){e&&this.root!==this&&(t||(t=this.component.shortcut),this.root.removeShortcut(e,t))}detach(){c.default.each(this.refs,(e=>{typeof e===NodeList?e.forEach((e=>{delete e.component})):e&&delete e.component})),this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}checkRefresh(e,t,n){const i=c.default.get(t,"instance.path",!1);i&&this.path===i||("data"===e?this.refresh(this.data,t,n):i&&(0,m.getComponentPath)(t.instance)===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}checkRefreshOn(e,t={}){if(e=e||[],t.noRefresh)return;!e.length&&t.changed&&(e=[t.changed]);const n=t.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;n&&(Array.isArray(n)?n.forEach((n=>e.forEach((e=>this.checkRefresh(n,e,t))))):e.forEach((e=>this.checkRefresh(n,e,t))))}refresh(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!c.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,m.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}inContext(e){if(e.data===this.data)return!0;let t=this.parent;for(;t;){if(t.data===e.data)return!0;t=t.parent}return!1}get viewOnly(){return this.options.readOnly&&this.options.viewAsHtml}setElement(e){this.element&&(delete this.element.component,delete this.element),this.element=e}createViewOnlyElement(){return this.setElement(this.ce("dl",{id:this.id})),this.element&&(this.element.component=this),this.element}get defaultViewOnlyValue(){return"-"}getWidgetValueAsString(e,t){const n=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||n)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){const n=[];return e.forEach(((e,i)=>{const r=this.refs.input[i]&&this.refs.input[i].widget;r&&n.push(r.getValueAsString(e,t))})),n}return this.refs.input[0].widget.getValueAsString(e,t)}getValueAsString(e,t){if(!e)return"";if(e=this.getWidgetValueAsString(e,t),Array.isArray(e))return e.join(", ");if(c.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";const n=e.toString();return this.sanitize(n)}getView(e,t){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,t)}updateItems(...e){this.restoreValue(),this.onChange(...e)}itemValue(e,t=!1){if(c.default.isObject(e)&&!c.default.isArray(e)){if(this.valueProperty)return c.default.get(e,this.valueProperty);if(t)return e.value}return e}itemValueForHTMLMode(e){return Array.isArray(e)?e.map((e=>Array.isArray(e)?this.itemValueForHTMLMode(e):this.itemValue(e))).join(", "):this.itemValue(e)}createModal(e,t,n){const i=this.ce("div",t||{});this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(e),document.body.appendChild(i),document.body.classList.add("modal-open"),i.close=()=>{document.body.classList.remove("modal-open"),i.dispatchEvent(new CustomEvent("close"))},this.addEventListener(i,"close",(()=>this.removeChildFrom(i,document.body)));const r=e=>{e.preventDefault(),i.close()},o=e=>{n?n().then((()=>r(e))).catch((()=>{})):r(e)};return this.addEventListener(i.refs.dialogOverlay,"click",o),this.addEventListener(i.refs.dialogClose,"click",o),i}get optimizeRedraw(){return!(!this.options.optimizeRedraw||!this.element||this.visible||(this.addClass(this.element,"formio-removed"),0))}get className(){let e=this.hasInput?`${this.transform("class","form-group")} has-feedback `:"";return e+=`formio-component formio-component-${this.component.type} `,this.key&&"form"!==this.key&&(e+=`formio-component-${this.key} `),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,m.boolValue)(this.component.validate.required)&&(e+=" required"),this.labelIsHidden()&&(e+=" formio-component-label-hidden"),this.visible||(e+=" formio-hidden"),e}get customStyle(){let e="";return c.default.each(this.component.style,((t,n)=>{""!==t&&(e+=`${n}:${t};`)})),e}get isMobile(){return(0,d.default)()}getElement(){return this.element}evalContext(e){return super.evalContext(Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},e))}setPristine(e){this.pristine=e}get isPristine(){return this.pristine}setDirty(e){this.dirty=e}get isDirty(){return this.dirty}removeValue(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}iconClass(e,t){const n=this.options.iconset||k.default.current.defaultIconset||"fa";return k.default.current.hasOwnProperty("iconClass")?k.default.current.iconClass(n,e,t):"fa"===this.options.iconset?k.default.defaultTemplates.iconClass(n,e,t):e}size(e){return k.default.current.hasOwnProperty("size")?k.default.current.size(e):e}get name(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}get errorLabel(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}errorMessage(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}setContent(e,t,n,i){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n,i),!0)}restoreCaretPosition(){var e,t,n;if((null===(e=this.root)||void 0===e?void 0:e.currentSelection)&&(null===(t=this.refs.input)||void 0===t?void 0:t.length)){const{selection:e,index:t}=this.root.currentSelection;let i=this.refs.input[t];const r=/text|search|password|tel|url/i.test(i.type||"");if(i)r&&i.setSelectionRange(...e);else{i=this.refs.input[this.refs.input.length];const e=(null===(n=i.value)||void 0===n?void 0:n.length)||0;r&&i.setSelectionRange(e,e)}}}redraw(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return l.default.resolve();this.detach(),this.emit("redraw");const e=this.element.parentNode,t=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.setElement(e.children[t]),this.attach(this.element)}rebuild(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}removeEventListeners(){super.removeEventListeners(),this.tooltips.forEach((e=>e.destroy())),this.tooltips=[]}hasClass(e,t){if(e)return super.hasClass(e,this.transform("class",t))}addClass(e,t){if(e)return super.addClass(e,this.transform("class",t))}removeClass(e,t){if(e)return super.removeClass(e,this.transform("class",t))}hasCondition(){return null!==this._hasCondition||(this._hasCondition=p.hasCondition(this.component)),this._hasCondition}conditionallyVisible(e,t){return e=e||this.rootValue,t=t||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}checkCondition(e,t){return p.checkCondition(this.component,e||this.data,t||this.rootValue,this.root?this.root._form:{},this)}checkComponentConditions(e,t,n){e=e||this.rootValue,t=t||{},n=n||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,n)&&this.redraw();const i=this.conditionallyVisible(e,n);return this.visible!==i&&(this.visible=i),i}checkConditions(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkComponentConditions(e,t,n)}get logic(){return this.component.logic||[]}fieldLogic(e,t){e=e||this.rootValue,t=t||this.data;const n=this.logic;if(0===n.length)return;const i=(0,m.fastCloneDeep)(this.originalComponent);let r=n.reduce(((n,r)=>{const o=p.checkTrigger(i,r.trigger,t,e,this.root?this.root._form:{},this);return!!o&&this.applyActions(i,r.actions,o,t,e)||n}),!1);if(!c.default.isEqual(this.component,i)){this.component=i,r=!0;const e=this.shouldDisabled;this.disabled!==e&&(this.disabled=e)}return r}isIE(){if("undefined"==typeof window)return!1;const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}const n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}defineActionValue(e,t){return this.evaluate(e.value,t,"value")}applyActions(e,t,n,i,r){return r=r||this.rootValue,i=i||this.data,t.reduce(((t,o)=>{switch(o.type){case"property":{p.setActionProperty(e,o,n,i,r,this);const s=o.property.value;c.default.isEqual(c.default.get(this.component,s),c.default.get(e,s))||(t=!0);break}case"value":{const s=this.getValue(),a=this.defineActionValue(o,{value:c.default.clone(s),data:r,row:i,component:e,result:n});c.default.isEqual(s,a)||this.component.clearOnHide&&!this.visible||(this.setValue(a),this.viewOnly&&(this.dataValue=a),t=!0);break}case"mergeComponentSchema":{const s=this.evaluate(o.schemaDefinition,{value:c.default.clone(this.getValue()),data:r,row:i,component:e,result:n},"schema");c.default.assign(e,s),c.default.isEqual(this.component,e)||(t=!0);break}case"customAction":{const s=this.getValue(),a=this.evaluate(o.customAction,{value:c.default.clone(s),data:r,row:i,input:s,component:e,result:n},"value");c.default.isEqual(s,a)||this.component.clearOnHide&&!this.visible||(this.setValue(a),this.viewOnly&&(this.dataValue=a),t=!0);break}}return t}),!1)}addInputError(e,t,n){this.addMessages(e),this.setErrorClasses(n,t,!!e)}removeInputError(e){this.setErrorClasses(e,!0,!1)}addMessages(e){e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=c.default.uniqBy(e,(e=>e.message)),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map((e=>(e.message&&"string"==typeof e.message&&(e.message=e.message.replaceAll("<","<").replaceAll(">",">")),this.renderTemplate("message",e)))).join("")))}setErrorClasses(e,t,n,i,r=this.element){this.clearErrorClasses(),e.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(e,n),n&&(e.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!0)})),t&&this.options.highlightErrors?this.addClass(r,this.options.componentErrorClass):this.addClass(r,"has-error")),i&&this.addClass(r,"has-message")}setElementInvalid(e,t){e&&(t?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",t?"true":"false"))}clearOnHide(){this.rootPristine&&!this.options.server&&!(0,m.isInsideScopingComponent)(this)||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}triggerRootChange(...e){this.options.onChange?this.options.onChange(...e):this.root&&this.root.triggerChange(...e)}onChange(e,t){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});const n={instance:this,component:this.component,value:this.dataValue,flags:e};this.emit("componentChange",n);let i=!1;return e.modified&&(i=!0,delete e.modified),t||this.triggerRootChange(e,n,i),n}get wysiwygDefault(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}addCKE(e,t,n){return(t=c.default.isEmpty(t)?{}:t).base64Upload=!this.component.isUploadEnabled,t.mediaEmbed={previewsInData:!0},t=c.default.merge(this.wysiwygDefault.ckeditor,c.default.get(this.options,"editors.ckeditor.settings",{}),t),this.component.isUploadEnabled&&t.extraPlugins.push((0,_.getFormioUploadAdapterPlugin)(this.fileService,this)),h.Formio.requireLibrary("ckeditor",x?"CKEDITOR":"ClassicEditor",c.default.get(this.options,"editors.ckeditor.src",`${h.Formio.cdn.ckeditor}/ckeditor.js`),!0).then((()=>{if(!e.parentNode)return l.default.reject();if(x){const t=CKEDITOR.replace(e);return t.on("change",(()=>n(t.getData()))),l.default.resolve(t)}return ClassicEditor.create(e,t).then((e=>(e.model.document.on("change",(()=>n(e.data.get()))),e)))}))}addQuill(e,t,n){return t=c.default.isEmpty(t)?this.wysiwygDefault.quill:t,t=c.default.merge(this.wysiwygDefault.quill,c.default.get(this.options,"editors.quill.settings",{}),t),t=Object.assign(Object.assign({},t),{modules:Object.assign({table:!0},t.modules)}),h.Formio.requireLibrary(`quill-css-${t.theme}`,"Quill",[{type:"styles",src:`${h.Formio.cdn.quill}/quill.${t.theme}.css`}],!0),h.Formio.requireLibrary("quill","Quill",c.default.get(this.options,"editors.quill.src",`${h.Formio.cdn.quill}/quill.min.js`),!0).then((()=>h.Formio.requireLibrary("quill-table","Quill",`${h.Formio.cdn.baseUrl}/quill/quill-table.js`,!0).then((()=>{if(!e.parentNode)return l.default.reject();this.quill=new Quill(e,x?Object.assign(Object.assign({},t),{modules:{}}):t);const i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),this.quill.addContainer("ql-custom").appendChild(i);const r=e.parentNode.querySelector(".ql-source");r&&this.addEventListener(r,"click",(e=>{e.preventDefault(),"inherit"===i.style.display&&this.quill.setContents(this.quill.clipboard.convert({html:i.value})),i.style.display="none"===i.style.display?"inherit":"none"})),this.addEventListener(e,"click",(()=>this.quill.focus()));const o=document.querySelectorAll(".ql-formats > button");for(let e=0;e{i.value=this.quill.root.innerHTML,n(i)})),this.quill}))))}get shouldSanitizeValue(){var e;return!1!==(null===(e=this.options)||void 0===e?void 0:e.sanitize)}addAce(e,t,n){if(!t||"snow"===t.theme){const e=t?t.mode:"";t={},e&&(t.mode=e)}return t=c.default.merge(this.wysiwygDefault.ace,c.default.get(this.options,"editors.ace.settings",{}),t||{}),h.Formio.requireLibrary("ace","ace",c.default.get(this.options,"editors.ace.src",`${h.Formio.cdn.ace}/ace.js`),!0).then((i=>((i=i.edit(e)).removeAllListeners("change"),i.setOptions(t),i.getSession().setMode(t.mode),i.on("change",(()=>n(i.getValue()))),t.isUseWorkerDisabled&&i.session.setUseWorker(!1),i)))}get tree(){return this.component.tree||!1}get emptyValue(){return null}hasValue(e){return!c.default.isUndefined(c.default.get(e||this.data,this.key))}get rootValue(){return this.root?this.root.data:this.data}get rootPristine(){return c.default.get(this,"root.pristine",!1)}get dataValue(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){const e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return c.default.get(this._data,this.key)}set dataValue(e){this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)&&(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null!=e?c.default.set(this._data,this.key,e):this.unset())}splice(e,t={}){if(this.hasValue()){const n=this.dataValue||[];c.default.isArray(n)&&n.hasOwnProperty(e)&&(n.splice(e,1),this.dataValue=n,this.triggerChange(t))}}unset(){c.default.unset(this._data,this.key)}deleteValue(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}getCustomDefaultValue(e){return this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}get shouldAddDefaultValue(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}get defaultValue(){let e=this.emptyValue;this.component.defaultValue&&(e=this.component.defaultValue),e=this.getCustomDefaultValue(e);const t=e=>{if("string"==typeof e){const t=this.placeholderChar;e=(0,a.conformToMask)(e,this.defaultMask,{placeholderChar:t}).conformedValue,p.matchInputMask(e,this.defaultMask)||(e="")}else e="";return e};return this.defaultMask&&(e=Array.isArray(e)?e.map(t):t(e)),c.default.cloneDeep(e)}getValue(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e=[];for(const t in this.refs.input)if(this.refs.input.hasOwnProperty(t)){if(!this.component.multiple)return this.getValueAt(t);e.push(this.getValueAt(t))}return 0!==e.length||this.component.multiple?e:""}getValueAt(e){const t=this.performInputMapping(this.refs.input[e]);return t?t.value:void 0}setValue(e,t={}){const n=this.updateValue(e,t);if(e=this.dataValue,!this.hasInput)return n;const i=Array.isArray(e),r=this.refs.fileLink||this.refs.input;if(i&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&r&&r.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&t&&t.fromSubmission&&n)return this.redraw(),n;for(const n in this.refs.input)this.refs.input.hasOwnProperty(n)&&this.setValueAt(n,i?e[n]:e,t);return n}setValueAt(e,t,n={}){n.noDefault||null!=t||this.component.multiple||(t=this.defaultValue);const i=this.performInputMapping(this.refs.input[e]),r=this.refs.valueMaskInput;(null==r?void 0:r.mask)&&r.mask.textMaskInputElement.update(t),i.mask?i.mask.textMaskInputElement.update(t):i.widget&&i.widget.setValue?i.widget.setValue(t):i.value=t}get hasSetValue(){return this.hasValue()&&!this.isEmpty(this.dataValue)}setDefaultValue(){if(this.defaultValue&&this.shouldAddDefaultValue){const e=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(e,{noUpdateEvent:!0})}}restoreValue(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}normalizeValue(e){return this.component.multiple&&!Array.isArray(e)&&(e=e?[e]:[]),e}updateComponentValue(e,t={}){let n=t.resetValue||null!=e?e:this.getValue();n=this.normalizeValue(n,t);const i=this.dataValue;let r=void 0!==n&&this.hasChanged(n,i);return r&&(this.dataValue=n,r=this.dataValue!==i,this.updateOnChange(t,r)),this.componentModal&&t&&t.fromSubmission&&this.componentModal.setValue(e),r}updateValue(...e){return this.updateComponentValue(...e)}getIcon(e,t,n,i="icon"){return this.renderTemplate("icon",{className:this.iconClass(e),ref:i,styles:n,content:t})}resetValue(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}hasChanged(e,t){return!(null==e&&(null==t||this.isEmpty(t))||(null==e||!this.allowData||this.hasValue())&&c.default.isEqual(e,t))}updateOnChange(e={},t=!1){return!(e.noUpdateEvent||!t||(this.triggerChange(e),0))}convertNumberOrBoolToString(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}doValueCalculation(e,t,n){var i;return this.evaluate(this.component.calculateValue,{value:e,data:t,row:n||this.data,submission:(null===(i=this.root)||void 0===i?void 0:i._submission)||{data:this.rootValue}},"value")}calculateComponentValue(e,t,n){if(c.default.isUndefined(c.default.get(this,"root.data")))return!1;const{clearOnHide:i}=this.component,r=!this.visible&&i,o=c.default.get(this.component,"allowCalculateOverride",!1);if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!this.component.calculateValue&&!this.component.calculateValueVariable||r||this.options.server&&!this.component.calculateServer||t.dataSourceInitialLoading&&o)return!1;const s=this.dataValue;let a=this.doValueCalculation(s,e,n,t);c.default.isNil(a)&&(a=this.emptyValue);const l=!c.default.isEqual(s,a);if(o){const e=t.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(s))this.calculationLocked=!1;else if(this.calculationLocked||e)return this.calculationLocked=!0,!1;const n=void 0===this.calculatedValue;n&&(this.calculatedValue=null);const i=this.normalizeValue(this.convertNumberOrBoolToString(a)),r=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),o=this.normalizeValue(this.convertNumberOrBoolToString(s)),u=!c.default.isEqual(r,i),d=!c.default.isEqual(o,r);if(u&&d&&!n)return!1;if(r&&d&&!u)return!1;if(t.isReordered||!u)return!1;if(e)return this.calculatedValue=a,!1;if(n&&!this.isEmpty(s)&&l&&u)return!0}return this.calculatedValue=a,!!l&&(t.noPristineChangeOnModified||(this.pristine=!1),t.triggeredComponentId=this.id,this.setValue(a,t))}calculateValue(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.calculateComponentValue(e,t,n)}get label(){return this.component.label}set label(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}getRoot(){return this.root}invalidMessage(e,t,n,i){return n||this.checkCondition(i,e)?this.invalid?this.invalid:!this.hasInput||!t&&this.pristine?"":c.default.map(f.default.checkComponent(this,e),"message").join("\n\n"):""}isValid(e,t){return!this.invalidMessage(e,t)}setComponentValidity(e,t,n){const i=!!e.filter((e=>"error"===e.level&&!e.fromServer)).length;return!e.length||n&&!this.error||this.isEmpty(this.defaultValue)&&!t&&this.pristine?n||this.setCustomValidity(""):this.setCustomValidity(e,t),!i}checkComponentValidity(e,t,n,i={}){var r;e=e||this.rootValue,n=n||this.data;const{async:o=!1,silentCheck:s=!1}=i;if(this.shouldSkipValidation(e,t,n))return this.setCustomValidity(""),!o||l.default.resolve(!0);const a=f.default.checkComponent(this,e,n,!0,o);let u=a;return(null===(r=this.serverErrors)||void 0===r?void 0:r.length)&&(u=a.concat(this.serverErrors)),o?u.then((e=>this.setComponentValidity(e,t,s))):this.setComponentValidity(u,t,s)}checkValidity(e,t,n,i){e=e||this.rootValue,n=n||this.data;const r=this.checkComponentValidity(e,t,n,{silentCheck:i});return this.checkModal(),r}checkAsyncValidity(e,t,n,i){return l.default.resolve(this.checkComponentValidity(e,t,n,{async:!0,silentCheck:i}))}checkData(e,t,n){if(e=e||this.rootValue,t=t||{},n=n||this.data,this.resetCaches(),t.fromBlur||this.checkRefreshOn(t.changes,t),t.noCheck)return!0;if(this.checkComponentConditions(e,t,n),this.id!==t.triggeredComponentId&&this.calculateComponentValue(e,t,n),t.noValidate&&!t.validateOnInit&&!t.fromIframe)return t.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&t.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,n,!0),!0;let i=!1;if((this.options.alwaysDirty||t.dirty)&&(i=!0),t.fromSubmission&&this.hasValue(e)&&(i=!0),this.setDirty(i),"blur"===this.component.validateOn&&t.fromSubmission)return!0;const r=this.checkComponentValidity(e,i,n,t);return this.checkModal(),r}checkModal(e=!0,t=!1){this.component.modalEdit&&this.componentModal&&(t&&!e?this.setErrorClasses([this.refs.openModal],t,!e,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}get validationValue(){return this.dataValue}isEmpty(e=this.dataValue){const t=!(!c.default.isArray(e)||1!==e.length)&&c.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||c.default.isEqual(e,this.emptyValue)||t}isEqual(e,t=this.dataValue){return this.isEmpty(e)&&this.isEmpty(t)||c.default.isEqual(e,t)}validateMultiple(){return!0}get errors(){return this.error?[this.error]:[]}clearErrorClasses(e=this.element){this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}setInputWidgetErrorClasses(e,t){this.isInputComponent&&this.component.widget&&(null==e?void 0:e.length)&&e.forEach((e=>{(null==e?void 0:e.widget)&&e.widget.setErrorClasses&&e.widget.setErrorClasses(t)}))}addFocusBlurEvents(e){this.addEventListener(e,"focus",(()=>{this.root.focusedComponent!==this?(this.root.pendingBlur&&this.root.pendingBlur(),this.root.focusedComponent=this,this.emit("focus",this)):this.root.focusedComponent===this&&this.root.pendingBlur&&(this.root.pendingBlur.cancel(),this.root.pendingBlur=null)})),this.addEventListener(e,"blur",(()=>{this.root.pendingBlur=p.delay((()=>{this.emit("blur",this),"blur"===this.component.validateOn&&this.root.triggerChange({fromBlur:!0},{instance:this,component:this.component,value:this.dataValue,flags:{fromBlur:!0}}),this.root.focusedComponent=null,this.root.pendingBlur=null}))}))}setCustomValidity(e,t,n){const i=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);const r=!!e.filter((e=>"error"===e.level)).length;let o=i;if(this.component.multiple){const t=Array.from(i);t.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(t,!1),o=t.filter((t=>{var n;return null===(n=e.some)||void 0===n?void 0:n.call(e,(e=>{var n;return(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.input)===t}))}))}e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:e[0].message,messages:e,external:!!n},this.emit("componentError",this.error),this.addMessages(e,t,o),o&&this.setErrorClasses(o,t,r,!!e.length)):(!this.error||this.error&&this.error.external===!!n)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,o&&this.setErrorClasses(o,t,r,!!e.length),this.clearErrorClasses())}isValueHidden(){return(!this.component.protected||!this.root.editing)&&!(!this.root||!this.root.hasOwnProperty("editing"))&&!(!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}shouldSkipValidation(e,t,n){return[()=>this.component.validate.custom&&!this.dataValue&&!this.component.validate.required,()=>this.options.readOnly,()=>!this.hasInput,()=>this.isValueHidden(),()=>!this.visible,()=>!this.checkCondition(n,e)].some((e=>e()))}whenReady(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}get dataReady(){return l.default.resolve()}asString(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(c.default.toString).join(", ")}get disabled(){return this._disabled||this.parentDisabled}set disabled(e){this._disabled=e}setDisabled(e,t){e&&(e.disabled=t,t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}setLoading(e,t){e&&e.loading!==t&&(e.loading=t,!e.loader&&t&&(e.loader=this.ce("i",{class:`${this.iconClass("refresh",!0)} button-icon-right`})),e.loader&&(t?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}selectOptions(e,t,n,i){c.default.each(n,(t=>{const n={value:t.value};void 0!==i&&t.value===i&&(n.selected="selected");const r=this.ce("option",n);r.appendChild(this.text(t.label)),e.appendChild(r)}))}setSelectValue(e,t){const n=e.querySelectorAll("option");c.default.each(n,(e=>{e.value===t?e.setAttribute("selected","selected"):e.removeAttribute("selected")})),e.onchange&&e.onchange(),e.onselect&&e.onselect()}getRelativePath(e){const t=`.${this.key}`,n=this.isInputComponent?this.path:this.path.slice(0).replace(t,"");return e.replace(n,"")}clear(){this.detach(),this.empty(this.getElement())}append(e){this.appendTo(e,this.element)}prepend(e){this.prependTo(e,this.element)}removeChild(e){this.removeChildFrom(e,this.element)}detachLogic(){this.logic.forEach((e=>{if("event"===e.trigger.type){const t=this.interpolate(e.trigger.event);this.off(t)}}))}attachLogic(){this.builderMode||this.logic.forEach((e=>{if("event"===e.trigger.type){const t=this.interpolate(e.trigger.event);this.on(t,((...t)=>{const n=(0,m.fastCloneDeep)(this.originalComponent);if(this.applyActions(n,e.actions,t)&&!c.default.isEqual(this.component,n)){this.component=n;const e=this.conditionallyVisible(null,null),t=this.shouldDisabled;this.visible!==e&&(this.visible=e),this.disabled!==t&&(this.disabled=t),this.redraw()}}),!0)}}))}elementInfo(){const e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),c.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}autofocus(){this.component.autofocus&&!this.builderMode&&!this.options.preview&&this.on("render",(()=>this.focus()),!0)}scrollIntoView(e=this.element){if(!e)return;const{left:t,top:n}=e.getBoundingClientRect();window.scrollTo(t+window.scrollX,n+window.scrollY)}focus(e){var t,n;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null===(t=this.refs.input)||void 0===t?void 0:t.length){const t="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1];if("calendar"===(null===(n=this.component.widget)||void 0===n?void 0:n.type)){const e=t.nextSibling;e&&e.focus()}else t.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}get fileService(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;const e=new h.Formio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl=`${e.projectUrl}/form/${this.root._form._id}`),e}resetCaches(){}get previewMode(){return!1}}t.default=E,E.externalLibraries={},E.requireLibrary=function(e,t,n,i){if(!E.externalLibraries.hasOwnProperty(e)){E.externalLibraries[e]={},E.externalLibraries[e].ready=new l.default(((t,n)=>{E.externalLibraries[e].resolve=t,E.externalLibraries[e].reject=n}));const r=`${e}Callback`;i||window[r]||(window[r]=function(){this.resolve()}.bind(E.externalLibraries[e]));const o=c.default.get(window,t);o?E.externalLibraries[e].resolve(o):((n=Array.isArray(n)?n:[n]).forEach((e=>{let t={},n="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":n="script",t={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":n="link",t={href:e.src,rel:"stylesheet"}}const i=document.createElement(n);for(const e in t)i.setAttribute(e,t[e]);document.getElementsByTagName("head")[0].appendChild(i)})),i&&setTimeout((function n(){const i=c.default.get(window,t);i?E.externalLibraries[e].resolve(i):setTimeout(n,200)}),200))}return E.externalLibraries[e].ready},E.libraryReady=function(e){return E.externalLibraries.hasOwnProperty(e)&&E.externalLibraries[e].ready?E.externalLibraries[e].ready:l.default.reject(`${e} library was not required.`)}},16220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},42248:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),o=n(34600);t.default=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:e=>(0,o.getContextComponents)(e)}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},r.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"

    You must assign the show variable a boolean result.

    Note: Advanced Conditional logic will override the results of the Simple Conditional logic.

    Example
    show = !!data.showMe;
    ",'

    Click here for an example

    ')]},60406:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844));t.default=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact sales@form.io for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},r.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'

    Example:

    value = data.firstName + " " + data.lastName;

    ','

    Example:

    {"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}
    '),r.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"

    Example:

    value = data.a + data.b + data.c;

    ",'

    Example:

    {"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}

    Click here for an example

    ',"tokenThe decoded JWT token for the authenticated user."),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}]},96958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the MDN documentation on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional(e){var t,n;return null===(n=null===(t=e.instance.options)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},60924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},83258:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),o=n(34600);t.default=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'
    \n
    \n {{ value.length }} {{ ctx.t("Advanced Logic Configured") }}\n
    \n
    ',row:'
    \n
    \n
    {{ row.name }}
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    ',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"{{ item.label }}",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:({row:e})=>"simple"===e.type,components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:()=>!0},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:e=>(0,o.getContextComponents)(e)}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:({row:e})=>"javascript"===e.type},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:({row:e})=>"json"===e.type},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:({row:e})=>"event"===e.type}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'
    \n
    {{ value.length }} {{ ctx.t("actions") }}
    \n
    ',row:'
    \n
    \n
    {{ row.name }}
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    ',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"{{ item.label }}",type:"select"},{weight:20,type:"select",template:"{{ item.label }}",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:({row:e})=>"property"===e.type},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"{{ item.label }}",type:"select",customConditional:({row:e})=>"property"===e.type&&e.hasOwnProperty("property")&&"boolean"===e.property.type},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:({row:e})=>"property"===e.type&&e.hasOwnProperty("property")&&"string"===e.property.type&&!e.property.component},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:({row:e})=>"value"===e.type},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:({row:e})=>"mergeComponentSchema"===e.type},Object.assign(r.default.logicVariablesTable("inputThe value that was input into this component"),{customConditional:({row:e})=>"customAction"===e.type}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:({row:e})=>"customAction"===e.type}]}]}]}]},17901:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),o=i(n(10196));t.default=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:()=>!o.default.noeval||o.default.protectedEval,components:[r.default.logicVariablesTable("inputThe value that was input into this component"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n \n

    Enter custom validation code.

    \n

    You must assign the valid variable as either true or an error message if validation fails.

    \n
    Example:
    \n
    valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';
    \n
    "},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'

    Execute custom logic using JSONLogic.

    Example:
    '+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"
    "},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n

    This allows you to set different custom error messages for different errors\n (in contrast to “Custom Error Message”, which only allows you to set one\n error message for all errors). E.g.

    \n\n
    {\n  "required": "{{ field }} is required. Try again.",\n  "maxLength": "{{ field }} is too long. Try again."\n}
    \n\n

    You can set the following keys (among others):

    \n
      \n
    • required
    • \n
    • min
    • \n
    • max
    • \n
    • minLength
    • \n
    • maxLength
    • \n
    • minWords
    • \n
    • maxWords
    • \n
    • invalid_email
    • \n
    • invalid_date
    • \n
    • invalid_day
    • \n
    • invalid_regex
    • \n
    • mask
    • \n
    • pattern
    • \n
    • custom
    • \n
    \n\n

    Depending on the error message some of the following template variables can be used in the script:

    \n
      \n
    • {{ field }} is replaced with the label of the field.
    • \n
    • {{ min }}
    • \n
    • {{ max }}
    • \n
    • {{ length }}
    • \n
    • {{ pattern }}
    • \n
    • {{ minDate }}
    • \n
    • {{ maxDate }}
    • \n
    • {{ minYear }}
    • \n
    • {{ maxYear }}
    • \n
    • {{ regex }}
    • \n
    \n '}]}]},33844:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(10196)),s={sortAndFilterComponents:e=>r.default.filter(r.default.sortBy(e,"weight"),(e=>!e.ignore)),unifyComponents:(e,t)=>e.key&&t.key?!e.skipMerge&&!t.skipMerge&&e.key===t.key&&(r.default.each(e,((n,i)=>{!e.overrideEditForm&&t.hasOwnProperty(i)||(t[i]=n)})),r.default.each(t,((n,i)=>{!t.overrideEditForm&&e.hasOwnProperty(i)||(e[i]=n)})),e.components&&(t.components=s.sortAndFilterComponents(r.default.unionWith(e.components,t.components,s.unifyComponents))),!0):r.default.isEqual(e,t),logicVariablesTable:e=>({type:"htmlelement",tag:"div",content:'

    The following variables are available in all scripts.

    '+(e=e||"")+'
    formThe complete form JSON object
    submissionThe complete submission object.
    dataThe complete submission data object.
    rowContextual "row" data, used within DataGrid, EditGrid, and Container components
    componentThe current component JSON
    instanceThe current component instance.
    valueThe current value of the component.
    momentThe moment.js library for date manipulation.
    _An instance of Lodash.
    utilsAn instance of the FormioUtils object.
    utilAn alias for "utils".

    '}),javaScriptValue(e,t,n,i,r,s,a="",l){const u=[this.logicVariablesTable(a),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:`${t}-js`,customConditional:()=>!o.default.noeval||o.default.protectedEval,components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:`

    Enter custom javascript code.

    ${r}`}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:`${t}-json`,components:[{type:"htmlelement",tag:"div",content:'

    Execute custom logic using JSONLogic.

    Full Lodash support is provided using an "_" before each operation, such as {"_sum": {var: "data.a"}}

    '+s},{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return l&&u.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:`${t}Panel`,weight:i,components:u}}};t.default=s},85179:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(34600);t.default=class{static render(e,t,n){const i=e.renderTemplate("component",t,n);return e.renderTemplate("componentModal",Object.assign(Object.assign({},t),{children:i}))}constructor(e,t,n,i){this.isOpened=n,this.component=e,this.element=t,this.currentValue=(0,o.fastCloneDeep)(null!=i?i:this.component.getValue()),this.dataLoaded=!1,this.init()}get refs(){return this.component.refs}init(){this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=e=>{this.isValueChanged()&&!this.component.disabled?this.showDialog():this.closeModalHandler(e)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}setValue(e){this.dataLoaded&&this.currentValue===e||(this.currentValue=(0,o.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}setOpenModalElement(e){var t;(null===(t=this.component)||void 0===t?void 0:t.visible)&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}get templateRefs(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}loadRefs(){this.component.loadRefs(this.element,this.templateRefs)}removeEventListeners(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}setEventListeners(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}isValueChanged(){let e=this.component.getValue(),t=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,t=this.currentValue.data),!r.default.isEqual((0,o.fastCloneDeep)(e),t)}setOpenEventListener(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(e=this.refs.openModalWrapper)&&void 0!==e?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}openModalHandler(e){e.preventDefault(),this.openModal()}positionOverElement(){let e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;e=e>0?e:10,this.refs.modalWrapper.style.paddingTop=`${e}px`}openModal(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}updateView(){const e=r.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}closeModal(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}closeModalHandler(e){e.preventDefault(),this.component.disabled||this.component.setValue(r.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}showDialog(){this.dialogElement=this.component.ce("div");const e=`\n

    ${this.component.t("Do you want to clear changes?")}

    \n
    \n \n \n
    \n `;this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}closeDialog(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}saveDialog(e){this.closeDialog(e),this.closeModalHandler(e)}saveModalValueHandler(e){var t;e.preventDefault(),this.currentValue=(0,o.fastCloneDeep)(null!==(t=this.component.dataValue)&&void 0!==t?t:this.component.getValue()),this.closeModal()}}},94342:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877));class o extends r.default{render(e){return this.noField?super.render(e):this.isAdvancedLabel||this.options.condensedMode?super.render(this.renderTemplate("field",Object.assign(Object.assign({},this.getLabelInfo(this.options.condensedMode)),{labelMarkup:this.renderTemplate("label"),element:e}),"align")):super.render(this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}}t.default=o},17389:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14463)),o=n(34600),s=i(n(95357)),a=i(n(53632)),l=i(n(2543));class u extends r.default{constructor(e,t,n){super(e,t,n),this.triggerUpdateValueAt=l.default.debounce(this.updateValueAt.bind(this),100)}static schema(...e){return r.default.schema({widget:{type:"input"}},...e)}get inputInfo(){const e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||l.default.get(this.root,"form.settings.disableAutocomplete"))&&(e.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),l.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}get autocompleteDisableAttrName(){return"off"}get maskOptions(){return l.default.map(this.component.inputMasks,(e=>({label:e.label,value:e.label})))}get isMultipleMasksField(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}getMaskByName(e){const t=l.default.find(this.component.inputMasks,(t=>t.label===e));return t?t.mask:void 0}setInputMask(e,t){const n=t||this.component.displayMask||this.component.inputMask;return super.setInputMask(e,n,!this.component.placeholder)}getMaskOptions(){return this.component.inputMasks.map((e=>({label:e.label,value:e.label})))}getWordCount(e){return e?e.trim().split(/\s+/).length:0}get remainingWords(){return l.default.parseInt(l.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}get prefix(){return this.component.prefix}get suffix(){if(this.component.widget&&"calendar"===this.component.widget.type){const e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,o.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}renderElement(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"""));const n=this.inputInfo;n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,""");const i=this.component.inputMask,r=this.component.displayMask,o=i&&r&&i!==r;return this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:o,index:t},this.isHtmlRenderMode()?"html":null)}setCounter(e,t,n,i){if(i){const r=i-n;r>0?this.removeClass(t,"text-danger"):this.addClass(t,"text-danger"),this.setContent(t,this.t(`{{ remaining }} ${e} remaining.`,{remaining:r}))}else this.setContent(t,this.t(`{{ count }} ${e}`,{count:n}))}updateValueAt(e,t,n){if(t=t||{},l.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]){const t=l.default.parseInt(l.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),t)}if(l.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]){const t=l.default.parseInt(l.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[n],e.length,t)}}getValueAt(e){const t=this.performInputMapping(this.refs.input[e]);return t&&t.widget?t.widget.getValue():t?t.value:void 0}updateValue(e,t,n){t=t||{};const i=super.updateValue(e,t);return this.triggerUpdateValueAt(this.dataValue,t,n),i}parseValue(e){return e}formatValue(e){return e}attach(e){return this.loadRefs(e,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),super.attach(e)}getWidget(e){return e=e||0,this.refs.input&&this.refs.input[e]?this.refs.input[e].widget:null}attachElement(e,t){super.attachElement(e,t),e.widget&&e.widget.destroy();let n=a.default.resolve();return e.widget=this.createWidget(t),e.widget&&(n=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[t]&&e.widget.addPrefix(this.refs.prefix[t]),this.refs.suffix&&this.refs.suffix[t]&&e.widget.addSuffix(this.refs.suffix[t])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",(e=>{13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),this.emit("submitButton"))})),n}createWidget(e){var t,n;if(!this.component.widget)return null;const i="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if((null===(t=this.root)||void 0===t?void 0:t.shadowRoot)&&(i.shadowRoot=null===(n=this.root)||void 0===n?void 0:n.shadowRoot),!s.default.hasOwnProperty(i.type))return null;const r=new s.default[i.type](i,this.component,this,e);return r.on("update",(()=>this.updateValue(this.getValue(),{modified:!0},e)),!0),r.on("redraw",(()=>this.redraw()),!0),r}teardown(){if(this.element&&this.element.widget&&(this.element.widget.destroy(),delete this.element.widget),this.refs&&this.refs.input)for(let e=0;e<=this.refs.input.length;e++){const t=this.getWidget(e);t&&t.destroy()}super.teardown()}detach(){if(this.refs&&this.refs.input)for(let e=0;e<=this.refs.input.length;e++){const t=this.getWidget(e);t&&t.destroy()}this.refs.input=[],super.detach()}}t.default=u},52850:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(22261));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default}],...e)}},80460:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94342)),o=n(29857),s=i(n(2543)),a=i(n(53632));class l extends r.default{static schema(...e){return r.default.schema({dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"{{ item.label }}",validate:{onlyAvailableItems:!1}},...e)}get isSelectURL(){return"url"===this.component.dataSrc}get requestHeaders(){const e=new o.Formio.Headers;if(this.component.data&&this.component.data.headers)try{s.default.each(this.component.data.headers,(t=>{t.key&&e.set(t.key,this.interpolate(t.value))}))}catch(e){console.warn(e.message)}return e}setItems(){}updateCustomItems(){}loadItems(){}getOptionTemplate(e,t){if(!this.component.template)return e.label;const n={noeval:!0,data:{}},i=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e},n):e.label,this.shouldSanitizeValue),r=this.component.reference&&(null==t?void 0:t._id)?t._id.toString():t;return r&&!s.default.isObject(r)&&n.data.item&&(this.templateData[r]=n.data.item),i}itemTemplate(e,t){var n;if(s.default.isEmpty(e))return"";const i=this.sanitize(this.getOptionTemplate(e,t),this.shouldSanitizeValue);if(i){const e=i.replace(/<\/?[^>]+(>|$)/g,""),t=null===(n=this.i18next)||void 0===n?void 0:n.translator;if(!e||t&&!this.t(e,{_userInput:!0}))return;return t?i.replace(e,this.t(e,{_userInput:!0})):e}return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue)}handleLoadingError(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn(`Unable to load resources for ${this.key}`)}updateItems(e,t){if(!this.component.data)return console.warn(`Select component ${this.key} does not have data configuration.`),void this.itemsLoadedResolve();if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(t);break;case"resource":{if(!this.component.data.resource||!t&&!this.active)return void this.itemsLoadedResolve();let n=this.options.formio?this.options.formio.formsUrl:`${o.Formio.getProjectUrl()}/form`;if(n+=`/${this.component.data.resource}/submission`,t||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(n,e,this.requestHeaders)}catch(e){console.warn(`Unable to load resources for ${this.key}`)}else this.setItems(this.downloadedResources);break}case"url":{if(!t&&!this.active&&!this.calculatedValue&&"select"===this.component.type)return void this.itemsLoadedResolve();let n,i,{url:r}=this.component.data;if(r.startsWith("/")){const e=r.startsWith("/project")?o.Formio.getBaseUrl():o.Formio.getProjectUrl()||o.Formio.getBaseUrl();r=e+r}this.component.data.method?(n=this.component.data.method,i="POST"===n.toUpperCase()?this.component.data.body:null):n="GET";const s=this.component.authenticate?{}:{noToken:!0};this.loadItems(r,e,this.requestHeaders,s,n,i);break}case"indexeddb":if("undefined"==typeof window)return;if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){const e=window.indexedDB.open(this.component.indexeddb.database);e.onupgradeneeded=e=>{if(this.component.customOptions){const t=e.target.result;t.createObjectStore(this.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=()=>{const e=t.transaction(this.component.indexeddb.table,"readwrite");this.component.customOptions.forEach((t=>{e.objectStore(this.component.indexeddb.table).put(t)}))}}},e.onerror=()=>{window.alert(e.errorCode)},e.onsuccess=e=>{const t=e.target.result.transaction(this.component.indexeddb.table,"readwrite").objectStore(this.component.indexeddb.table);new a.default((e=>{const n=[];t.getAll().onsuccess=t=>{t.target.result.forEach((e=>{n.push(e)})),e(n)}})).then((e=>{s.default.isEmpty(this.component.indexeddb.filter)||(e=s.default.filter(e,this.component.indexeddb.filter)),this.setItems(e)}))}}}else this.itemsLoadedResolve()}}t.default=l},22261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:e=>!e.data.template&&e.instance&&e.instance._currentForm.options.editComponent?e.instance._currentForm.options.editComponent.template:e.data.template},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},14463:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94342)),o=i(n(53632)),s=i(n(2543));class a extends r.default{get dataValue(){const e=super.dataValue;return!e&&this.component.multiple?[]:e}set dataValue(e){super.dataValue=e}get defaultValue(){let e=super.defaultValue;return this.component.multiple&&(e=s.default.isArray(e)?e.length?e:[super.emptyValue]:[e]),e}get addAnother(){return this.t(this.component.addAnother||"Add Another")}useWrapper(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}render(){if(!this.useWrapper())return super.render(`
    \n ${this.renderElement("hidden"!==this.component.type?this.dataValue:"")}\n
    `);let e=this.dataValue;return Array.isArray(e)||(e=e?[e]:[]),super.render(this.renderTemplate("multiValueTable",{rows:e.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother}))}renderElement(){return""}renderRow(e,t){return this.renderTemplate("multiValueRow",{index:t,disabled:this.disabled,element:`${this.renderElement(e,t)}`})}attach(e){const t=super.attach(e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});const n=[];return this.refs.input.forEach(((e,t)=>{n.push(this.attachElement.call(this,e,t))})),this.component.multiple?(this.refs.removeRow.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.removeValue(t)}))})),this.refs.addButton.forEach((e=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.addValue()}))})),t.then((()=>o.default.all(n)))):o.default.all(n)}detach(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach((e=>{e.mask&&e.mask.destroy(),e.widget&&e.widget.destroy()})),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach((e=>{e.mask&&e.mask.destroy()})),super.detach()}attachElement(e,t){if(this.addEventListener(e,this.inputInfo.changeEvent,(()=>{const n=s.default.get(this.component,"case","mixed");if("mixed"!==n){const{selectionStart:t,selectionEnd:i}=e;"uppercase"===n&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===n&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=t,e.selectionEnd=i)}try{this.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return this.updateValue(null,{modified:"hidden"!==this.component.type},t);setTimeout((()=>this.updateValue(null,{modified:"hidden"!==this.component.type},t)),1)})),!this.attachMultiMask(t)){const t=()=>{this.setInputMask(e);const t=this.component.inputMask,n=this.component.displayMask;t&&n&&n!==t&&this.refs.valueMaskInput&&this.setInputMask(this.refs.valueMaskInput,t)};"blur"===this.inputInfo.changeEvent?this.addEventListener(e,this.inputInfo.changeEvent,(()=>{t(),this.dataValue=this.refs.input[0].value,this.checkComponentValidity()&&this.updateComponentValue(this.refs.input[0].value)})):t()}}saveCaretPosition(e,t){var n,i;(null===(i=null===(n=this.root)||void 0===n?void 0:n.focusedComponent)||void 0===i?void 0:i.path)===this.path&&(this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:t})}onSelectMaskHandler(e){this.updateMask(e.target.maskInput,this.getMaskPattern(e.target.value))}getMaskPattern(e){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[e])return this.multiMasks[e];const t=this.component.inputMasks.find((t=>t.label===e));return this.multiMasks[e]=t?t.mask:this.component.inputMasks[0].mask,this.multiMasks[e]}attachMultiMask(e){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;const t=this.refs.select[e];return t.onchange=this.onSelectMaskHandler.bind(this),t.maskInput=this.refs.mask[e],this.setInputMask(t.maskInput,this.component.inputMasks[0].mask),!0}updateMask(e,t){t&&(this.setInputMask(e,t,!this.component.placeholder),this.updateValue())}addNewValue(e){void 0===e&&(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue,Array.isArray(e)&&0===e.length&&(e=this.emptyValue));let t=this.dataValue||[];Array.isArray(t)||(t=[t]),Array.isArray(e)?t=t.concat(e):t.push(e),this.dataValue=t}addValue(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}t.default=a},10280:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422));t.default=function(...e){return r.default.baseEditForm([{key:"data",ignore:!0},{key:"validation",ignore:!0}],...e)}},39142:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(94342)),s=i(n(87422)),a=i(n(53632)),l=n(34600);class u extends o.default{static schema(...e){return o.default.schema({tree:!1,lazyLoad:!1},...e)}constructor(e,t,n){super(e,t,n),this.type="components",this._collapsed=!!this.component.collapsed}get defaultSchema(){return u.schema()}get schema(){const e=super.schema,t=r.default.uniqBy(this.getComponents(),"component.key");return e.components=r.default.map(t,"schema"),e}get collapsed(){return this._collapsed}collapse(e){const t=this.redraw();return e||this.checkValidity(this.data,!this.pristine,null,this.pristine),t}set collapsed(e){this._collapsed=e,this.collapse(e)}set visible(e){const t=this._visible!==e;this._visible=e;const n=this.visible,i=this.shouldForceShow(),r=this.shouldForceHide();this.components.forEach((e=>{e.parentVisible=n;const t=e.conditionallyVisible();i||t?e.visible=!0:!r&&n&&t||(e.visible=!1),e.visible||(e.error="")})),t&&(this.clearOnHide(),this.redraw())}get visible(){return super.visible}set parentVisible(e){super.parentVisible=e,this.components.forEach((e=>e.parentVisible=this.visible))}get parentVisible(){return super.parentVisible}get disabled(){return super.disabled}set disabled(e){super.disabled=e,this.components.forEach((t=>t.parentDisabled=e))}set parentDisabled(e){super.parentDisabled=e,this.components.forEach((e=>{e.parentDisabled=this.disabled}))}get parentDisabled(){return super.parentDisabled}get ready(){return a.default.all(this.getComponents().map((e=>e.ready)))}get currentForm(){return super.currentForm}set currentForm(e){super.currentForm=e,this.getComponents().forEach((t=>{t.currentForm=e}))}get rowIndex(){return this._rowIndex}set rowIndex(e){this._rowIndex=e,this.eachComponent((t=>{t.rowIndex=e}))}componentContext(){return this._data}get data(){return this._data}set data(e){this._data=e,this.eachComponent((e=>{e.data=this.componentContext(e)}))}getComponents(){return this.components||[]}everyComponent(e,t){const n=this.getComponents();r.default.each(n,((i,r)=>!1!==e(i,n,r)&&("function"!=typeof i.everyComponent||!1!==i.everyComponent(e,t))&&void 0))}hasComponent(e){let t=!1;return this.everyComponent((n=>{if(n===e)return t=!0,!1})),t}flattenComponents(){const e={};return this.everyComponent((t=>{e[t.component.flattenAs||t.key]=t})),e}eachComponent(e){r.default.each(this.getComponents(),((t,n)=>{if(!1===e(t,n))return!1}))}getComponent(e,t,n){n=n||(0,l.getStringFromComponentPath)(e),e=(0,l.getArrayFromComponentPath)(e);const i=n,o=r.default.clone(e);let s=o.shift();const a=o;let u=null,c=null;return r.default.isNumber(s)&&(s=a.shift()),r.default.isString(s)?(this.everyComponent(((e,r)=>{const o=!e.hasInput||!e.path||i.includes(e.path);if(e.component.key===s&&(c=e,o))return u=e,a.length>0&&"getComponent"in e?u=e.getComponent(a,t,n):t&&t(e,r),!1})),u||(u=c),u):u}getComponentById(e,t){let n=null;return this.everyComponent(((i,r)=>{if(i.id===e)return n=i,t&&t(i,r),!1})),n}calculateComponentPath(e){let t="";if(e.component.key){let n=this;for(;n&&!n.allowData&&n.parent;)n=n.parent;const i=e.row?`[${Number.parseInt(e.row)}]`:"";return t=n.path?`${n.path}${i}.`:"",t+=e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"",t+=e.component.key,t}}createComponent(e,t,n,i,o){if(!e)return;t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=(null==t?void 0:t.root)||this.root||this,t.localRoot=this.localRoot,t.skipInit=!0,"pdf"===t.display&&this.builderMode||(e.id=(0,l.getRandomComponentId)()),!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);const a=s.default.create(e,t,n,!0),u=this.calculateComponentPath(a);if(u&&(a.path=u),a.init(),e.internal)return a;if(i){const e=r.default.findIndex(this.components,{id:i.id});-1!==e?this.components.splice(e,0,a):this.components.push(a)}else if(o){const e=r.default.findIndex(this.components,{id:o.id});-1!==e?this.components[e]=a:this.components.push(a)}else this.components.push(a);return a}getContainer(){return this.element}get componentComponents(){return this.component.components||[]}get nestedKey(){return`nested-${this.key}`}get templateName(){return"container"}init(){return this.components=this.components||[],this.addComponents(),super.init()}addComponents(e,t){e=e||this.data,this.components=this.components||[],(t=t||this.options).components?this.components=t.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEach((t=>this.addComponent(t,e)))}addComponent(e,t,n,i){t=t||this.data,this.components=this.components||[],this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,t,n,i);return this.createComponent(e,this.options,t,n||null)}beforeFocus(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}render(e){return super.render(e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}renderComponents(e){const t=(e=e||this.getComponents()).map((e=>e.render()));return this.renderTemplate("components",{children:t,components:e})}attach(e){const t=super.attach(e);this.loadRefs(e,{header:"single",collapsed:this.collapsed,[this.nestedKey]:"single"});let n=a.default.resolve();return this.refs[this.nestedKey]&&(n=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",(()=>{this.collapsed=!this.collapsed})),this.addEventListener(this.refs.header,"keydown",(e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.collapsed=!this.collapsed)}))),a.default.all([t,n])}attachComponentsLogic(e){e=e||this.components,r.default.each(e,(e=>{e.attachLogic(),r.default.isFunction(e.attachComponentsLogic)&&e.attachComponentsLogic()}))}attachComponents(e,t,n){if(t=t||this.components,n=n||this.component.components,!(e=this.hook("attachComponents",e,t,n,this)))return new a.default((()=>{}));let i=0;const r=[];return Array.prototype.slice.call(e.children).forEach((e=>{!e.getAttribute("data-noattach")&&t[i]&&(r.push(t[i].attach(e)),i++)})),a.default.all(r)}removeComponent(e,t,n=!1){t=t||this.components,e.destroy(n),r.default.remove(t,{id:e.id})}removeComponentByKey(e,t){if(!this.getComponent(e,((e,n)=>{this.removeComponent(e,n),t&&t(e,n)})))return t&&t(null),null}removeComponentById(e,t){if(!this.getComponentById(e,((e,n)=>{this.removeComponent(e,n),t&&t(e,n)})))return t&&t(null),null}updateValue(e,t={}){return this.components.reduce(((e,n)=>n.updateValue(null,t)||e),super.updateValue(e,t))}shouldSkipValidation(e,t,n){return!this.component.input||super.shouldSkipValidation(e,t,n)}checkData(e,t,n,i){if(this.builderMode)return!0;e=e||this.rootValue,t=t||{},n=n||this.data;const o=(i=i&&r.default.isArray(i)?i:this.getComponents()).reduce(((i,r)=>r.checkData(e,t,n)&&i),super.checkData(e,t,n));return this.checkModal(o,this.isDirty),o}checkConditions(e,t,n){const i=super.checkConditions(e,t,n);return this.getComponents().forEach((n=>n.checkConditions(e,t,n.data))),i}clearOnHide(e){super.clearOnHide(e),this.component.clearOnHide&&(this.allowData&&!this.hasValue()&&(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach((t=>t.clearOnHide(e)))}restoreComponentsContext(){this.getComponents().forEach((e=>e.data=this.dataValue))}beforePage(e){return a.default.all(this.getComponents().map((t=>t.beforePage(e))))}beforeSubmit(){return a.default.all(this.getComponents().map((e=>e.beforeSubmit())))}calculateValue(e,t,n){return!!this.conditionallyVisible()&&this.getComponents().reduce(((i,r)=>r.calculateValue(e,t,n)||i),super.calculateValue(e,t,n))}isLastPage(){return this.pages.length-1===this.page}isValid(e,t){return this.getComponents().reduce(((n,i)=>i.isValid(e,t)&&n),super.isValid(e,t))}checkChildComponentsValidity(e,t,n,i,r){return this.getComponents().reduce(((r,o)=>o.checkValidity(e,t,n,i)&&r),r)}checkValidity(e,t,n,i){if(!this.checkCondition(n,e))return this.setCustomValidity(""),!0;const r=this.checkChildComponentsValidity(e,t,n,i,super.checkValidity(e,t,n,i));return this.checkModal(r,t),r}checkAsyncValidity(e,t,n,i){return this.ready.then((()=>{const r=[super.checkAsyncValidity(e,t,n,i)];return this.eachComponent((o=>r.push(o.checkAsyncValidity(e,t,n,i)))),a.default.all(r).then((e=>e.reduce(((e,t)=>e&&t),!0)))}))}setPristine(e){super.setPristine(e),this.getComponents().forEach((t=>t.setPristine(e)))}get isPristine(){return this.pristine&&this.getComponents().every((e=>e.isPristine))}get isDirty(){return this.dirty&&this.getComponents().every((e=>e.isDirty))}detach(){this.components.forEach((e=>{e.detach()})),super.detach()}clear(){this.components.forEach((e=>{e.clear()})),super.clear()}destroy(e=!1){this.destroyComponents(e),super.destroy(e)}destroyComponents(e=!1){this.getComponents().slice().forEach((t=>this.removeComponent(t,this.components,e))),this.components=[]}get errors(){const e=this.error?[this.error]:[];return this.getComponents().reduce(((e,t)=>e.concat(t.errors||[])),e).filter((e=>"hidden"!==e.level))}getValue(){return this.data}resetValue(){super.resetValue(),this.getComponents().forEach((e=>e.resetValue())),this.setPristine(!0)}get dataReady(){return a.default.all(this.getComponents().map((e=>e.dataReady)))}setNestedValue(e,t,n={}){return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.tree&&e.hasValue(t)?e.setValue(r.default.get(t,e.key),n):e.setValue(t,n):t&&e.hasValue(t)?e.setValue(r.default.get(t,e.key),n):this.rootPristine&&!e.visible||!e.shouldAddDefaultValue?void 0:(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)))}setValue(e,t={}){return!!e&&(e.submitAsDraft&&!e.submit&&(t.noValidate=!0),this.getComponents().reduce(((n,i)=>this.setNestedValue(i,e,t,n)||n),!1))}get lazyLoad(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}t.default=u},33670:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(96877)),s=i(n(42574));class a extends s.default{static schema(...e){return s.default.schema({disableAddingRemovingRows:!1},...e)}componentContext(e){return this.iteratableRows[e.rowIndex].data}get iteratableRows(){throw new Error("Getter #iteratableRows() is not implemented")}get rowIndex(){return super.rowIndex}set rowIndex(e){this._rowIndex=e}init(){super.init(),this.prevHasAddButton=this.hasAddButton()}checkAddButtonChanged(){const e=this.hasAddButton();e!==this.prevHasAddButton&&(this.prevHasAddButton=e,this.redraw())}checkData(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",e,t,o.default.prototype.checkData.call(this,e,t,n))}checkRows(e,t,n,i,r){return this.iteratableRows.reduce(((i,o,s)=>((null==n?void 0:n.rowIndex)&&(null==n?void 0:n.rowIndex)!==s||this.checkRow(e,t,n,o.data,o.components,r))&&i),i)}checkRow(e,t,n,i,o,s){(null==n?void 0:n.isolateRow)&&(s=!0,n.noRefresh=!0);const a=r.default.reduce(o,((r,o)=>o[e](t,n,i,s)&&r),!0);return(null==n?void 0:n.noRefresh)&&delete n.noRefresh,a}hasAddButton(){const e=r.default.get(this.component,"validate.maxLength"),t=r.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length{e.component.key===i&&(a=e,o.length>0&&"getComponent"in e?l=e.getComponent(o,t,n):t&&t(e,r),s=null!==u?l:s.concat(l||a))}),u),s&&0!==s.length||!a||(s=null!==u?a:[a]),s):s}everyComponent(e,t,n){if(r.default.isObject(t)&&(n=t,t=null),null==n?void 0:n.email)return;const i=this.getComponents(t);r.default.each(i,((t,r)=>!1!==e(t,i,r)&&("function"!=typeof t.everyComponent||!1!==t.everyComponent(e,n))&&void 0))}getValueAsString(e,t){var n;if(null==t?void 0:t.email){let e='\n \n \n \n ';return null===(n=this.component.components)||void 0===n||n.forEach((t=>{const n=t.label||t.key;e+=``})),e+="\n \n \n \n ",this.iteratableRows.forEach((({components:n})=>{e+="",r.default.each(n,(n=>{e+='"})),e+=""})),e+="\n \n
    ${n}
    ',n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=n.getView(n.dataValue,t)),e+="
    \n ",e}return e&&e.length?super.getValueAsString(e,t):""}getComponents(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:super.getComponents()}}t.default=a},42574:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),o=i(n(39142)),s=i(n(2543));class a extends o.default{hasChanged(e,t){return null!=e&&!this.hasValue()||!s.default.isEqual(e,t)}get allowData(){return!0}get emptyValue(){return{}}componentContext(){return this.dataValue}getValueAsString(e,t){if(null==t?void 0:t.email){let e='\n \n \n ';return this.everyComponent((n=>{n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=`\n \n \n \n \n `)}),Object.assign(Object.assign({},t),{fromRoot:!0})),e+="\n \n
    ${n.label}${n.getView(n.dataValue,t)}
    \n ",e}return s.default.isEmpty(e)?"":(null==t?void 0:t.modalPreview)?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"[Complex Data]"}getDataValueAsTable(e,t){let n='\n \n \n ';const i=new RegExp("<(.*?)>");return this.components.forEach((e=>{if(e.isInputComponent&&e.visible&&!e.skipInEmail){const r=e.getView(e.dataValue,t);n+=`\n \n \n \n \n `}}),Object.assign(Object.assign({},t),{fromRoot:!0})),n+="\n \n
    ${e.label}${e.component&&"html"===e.component.inputFormat&&i.test(r)?r:``}
    \n ",n}everyComponent(e,t){if(null==t?void 0:t.email){if(!t.fromRoot)return;delete t.fromRoot}return super.everyComponent(e,t)}getValue(){return this.dataValue}updateValue(e,t={}){return r.default.prototype.updateValue.call(this,e,t)}setValue(e,t={}){let n=!1;const i=this.hasValue();return i&&s.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&s.default.isObject(e)&&i||(n=!0,this.dataValue=this.defaultValue),n=super.setValue(e,t)||n,this.updateOnChange(t,n),n}}t.default=a},995:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(1434)),s=i(n(57674)),a=i(n(13239));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default},{key:"display",components:s.default},{label:"Provider",key:"provider",weight:15,components:a.default}],...e)}},46103:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressComponentMode=void 0;const r=i(n(78609)),o=i(n(2543)),s=n(29857),a=n(77029),l=i(n(94342)),u=i(n(39142)),c=i(n(44435));t.AddressComponentMode={Autocomplete:"autocomplete",Manual:"manual"};const d="address-autocomplete-remove-value-icon--hidden",h="show = _.get(instance, 'parent.manualMode', false);";class p extends c.default{static schema(...e){return c.default.schema({type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:h},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:h},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:h},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:h},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:h},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:h}]},...e)}static get builderInfo(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:p.schema()}}mergeSchema(e={}){let{defaultSchema:t}=this;return e.components&&(t=o.default.omit(t,"components")),o.default.defaultsDeep(e,t)}init(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&u.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),l.default.prototype.init.call(this),!this.builderMode)if(this.component.provider){const{provider:e,providerOptions:t}=this.component;this.provider=this.initializeProvider(e,t)}else if(this.component.map){this.component.provider=a.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};const{map:e,provider:t,providerOptions:n}=this.component,{key:i,region:r}=e;i&&o.default.set(n,"params.key",i),r&&o.default.set(n,"params.region",r),this.provider=this.initializeProvider(t,n)}}initializeProvider(e,t={}){const n=this.interpolate(t.url);return new(s.Formio.Providers.getProvider("address",e))(Object.assign(Object.assign({},t),{url:n}))}get emptyValue(){return this.manualModeEnabled?{mode:t.AddressComponentMode.Autocomplete,address:{}}:{}}get mode(){var e,n;return this.manualModeEnabled&&null!==(n=null===(e=this.dataValue)||void 0===e?void 0:e.mode)&&void 0!==n?n:t.AddressComponentMode.Autocomplete}set mode(e){this.manualModeEnabled&&(this.dataValue.mode=e)}get autocompleteMode(){return this.mode===t.AddressComponentMode.Autocomplete}get manualMode(){return this.mode===t.AddressComponentMode.Manual}get manualModeEnabled(){return!this.isMultiple&&Boolean(this.component.enableManualMode)}restoreComponentsContext(){this.getComponents().forEach((e=>{e.data=this.address,e.setValue(e.dataValue,{noUpdateEvent:!0})}))}get isMultiple(){return Boolean(this.component.multiple)}get address(){return this.isMultiple?o.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue}set address(e){this.manualModeEnabled&&!this.isMultiple?this.dataValue.address=e:this.dataValue=e}get defaultValue(){let e=super.defaultValue;return this.isMultiple&&(e=o.default.isArray(e)?e:[e]),e}get defaultSchema(){return p.schema()}isValueInLegacyFormat(e){return e&&!e.mode}normalizeValue(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:t.AddressComponentMode.Autocomplete,address:e}:e}setValue(e,t={}){const n=l.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),(n||!o.default.isEmpty(e)&&t.fromSubmission)&&this.redraw(),n}static get modeSwitcherRef(){return"modeSwitcher"}static get removeValueIconRef(){return"removeValueIcon"}static get searchInputRef(){return"searchInput"}static get addRowButtonRef(){return"addButton"}static get removeRowButtonRef(){return"removeRow"}get modeSwitcher(){return this.refs&&this.refs[p.modeSwitcherRef]||null}get removeValueIcon(){return this.refs&&this.refs[p.removeValueIconRef]||null}get searchInput(){return this.refs&&this.refs[p.searchInputRef]||null}get addRowButton(){return this.refs&&this.refs[p.addRowButtonRef]||null}get removeRowButton(){return this.refs&&this.refs[p.removeRowButtonRef]||null}get searchInputAttributes(){const e={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.disabled&&(e.disabled="disabled"),o.default.defaults(e,this.component.attributes),e}get templateName(){return"address"}get gridTemplateName(){return"multiValueTable"}get rowTemplateName(){return"multiValueRow"}get hasChildren(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}get addAnother(){return this.t(this.component.addAnother||"Add Another")}renderElement(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:p.modeSwitcherRef,removeValueIcon:p.removeValueIconRef,searchInput:p.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}renderRow(e,t){return this.renderTemplate(this.rowTemplateName,{index:t,disabled:this.disabled,element:`${this.renderElement(e,t)}`})}renderGrid(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}render(){return this.isMultiple?super.render(this.renderGrid()):super.render(this.renderElement())}onSelectAddress(e,t,n){this.isMultiple?(this.address[n]=e,this.address=[...this.address]):this.address=e,this.triggerChange({modified:!0}),t&&(t.value=this.getDisplayValue(this.isMultiple?this.address[n]:this.address)),this.updateRemoveIcon(n)}addRow(){this.address=this.address.concat(this.emptyValue),super.redraw()}attach(e){const n=(this.builderMode||this.manualMode?super.attach:l.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){const{provider:e,providerOptions:t}=this.component;this.provider=this.initializeProvider(e,t)}return this.loadRefs(e,{[p.addRowButtonRef]:"single",[p.modeSwitcherRef]:"single",[p.removeRowButtonRef]:"multiple",[p.removeValueIconRef]:"multiple",[p.searchInputRef]:"multiple"}),this.searchInput.forEach(((e,t)=>{!this.builderMode&&e&&this.provider&&("google"===this.component.provider?this.provider.attachAutocomplete(e,t,this.onSelectAddress.bind(this)):(0,r.default)({input:e,debounceWaitMs:300,fetch:(e,t)=>{const n=e;this.provider.search(n).then(t)},render:e=>{const t=this.ce("div");return t.textContent=this.getDisplayValue(e),t},onSelect:n=>{this.onSelectAddress(n,e,t)}}),this.addEventListener(e,"blur",(()=>{e&&e.value&&(e.value=this.getDisplayValue(this.isMultiple?this.address[t]:this.address))})),this.addEventListener(e,"keyup",(()=>{e&&(e.value||this.clearAddress(e,t))})))})),this.addRowButton&&this.addEventListener(this.addRowButton,"click",(e=>{e.preventDefault(),this.addRow()})),this.removeRowButton.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.removeValue(t)}))})),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",(()=>{this.modeSwitcher&&(this.dataValue=this.emptyValue,this.mode=this.modeSwitcher.checked?t.AddressComponentMode.Manual:t.AddressComponentMode.Autocomplete,this.builderMode||(this.manualMode&&this.restoreComponentsContext(),this.triggerChange({modified:!0})),this.redraw())})),this.builderMode||(this.removeValueIcon.forEach(((e,t)=>{this.updateRemoveIcon(t);const n=()=>{var e;const n=null===(e=this.searchInput)||void 0===e?void 0:e[t];this.clearAddress(n,t),n&&n.focus()};this.addEventListener(e,"click",n),this.addEventListener(e,"keydown",(({key:e})=>{"Enter"===e&&n()}))})),o.default.each(this.refs.searchInput||[],(e=>this.addFocusBlurEvents(e)))),n}addChildComponent(e){e.customConditional=h}redraw(){const e=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return super.redraw().then((t=>(e&&this.modeSwitcher&&this.modeSwitcher.focus(),t)))}clearAddress(e,t){var n;this.isEmpty()||this.triggerChange(),(null===(n=this.address)||void 0===n?void 0:n[t])?this.address[t]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(t)}getDisplayValue(e=this.address){return this.provider&&!this.manualMode?this.provider.getDisplayValue(e):""}validateMultiple(){return this.isMultiple}updateRemoveIcon(e){var t;const n=null===(t=this.removeValueIcon)||void 0===t?void 0:t[e];if(n){const t=this.isMultiple?this.address[e]:this.address;this.isEmpty(t)||this.disabled?this.addClass(n,d):this.removeClass(n,d)}}getValueAsString(e,n){if(!e)return"";const i=this.normalizeValue(e),{address:r,mode:s}=this.manualModeEnabled?i:{address:i,mode:t.AddressComponentMode.Autocomplete},a=s===t.AddressComponentMode.Manual;return this.provider&&!a?this.getDisplayValue(r):a?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:r,data:this.data,component:this.component}):this.getComponents().filter((e=>e.hasValue(r))).map((e=>[e,o.default.get(r,e.key)])).filter((([e,t])=>!e.isEmpty(t))).map((([e,t])=>e.getValueAsString(t,n))).join(", "):super.getValueAsString(r,n)}focus(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}t.default=p},1434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",customConditional:({data:e})=>!e.enableManualMode},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0,customDefaultValue:({instance:e})=>e.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}]},57674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:({data:e})=>!e.multiple},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:({data:e})=>Boolean(e.enableManualMode)},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:({data:e})=>e.multiple}]},13239:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(29857);t.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>r.default.values(o.Formio.Providers.getProviders("address")).sort().map((e=>({label:e.displayName,value:e.name})))},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the link for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},93019:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(34600);t.default=class{constructor(e,t){this.container=e,this.alert=null,this.parentComponent=t,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}get refsNames(){return{messageRef:"multiple"}}get alertTypes(){return{error:"danger",success:"success",info:"info",warning:"warning"}}showErrors(e=[],t=!1,n={}){e=r.default.isArray(e)?e:[e];const i=this.createMessagesList("error",e);return this.showAlert("error",i,n),t&&this.parentComponent.emit("error",e),e}showMessage(e,t,n={}){let i=e;i instanceof HTMLElement?i.setAttribute("ref","messageRef"):i=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(t,i,n)}createMessagesList(e,...t){if("error"===e)return this.createErrorList(...t)}createErrorList(e){const t=this.parentComponent.ce("p");this.parentComponent.setContent(t,this.parentComponent.t("error"));const n=this.parentComponent.ce("ul"),i=document.createDocumentFragment();return e.forEach((e=>this.appendErrorToList(e,n))),t.appendChild(n),i.appendChild(t),i}showAlert(e,t,n={}){const{customClasses:i,customEvents:r}=n;this.setAlert(e,t,{customClasses:i}),this.alert&&(this.attach({customEvents:r}),this.parentComponent.prependTo(this.alert,this.container))}setAlert(e,t,n={}){const i=this.alertTypes[e];if(this.alert&&this.clear(),t){const{id:r=`${e}-list-${this.parentComponent.id}`,customClasses:o=`alert alert-${i}`}=n;this.alert=this.parentComponent.ce("div",{id:r,class:o}),t instanceof HTMLElement?this.parentComponent.appendTo(t,this.alert):this.parentComponent.setContent(this.alert,t)}}attach(e){var t,n,i;let{customEvents:r={}}=e;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);const o=(null===(t=r.click)||void 0===t?void 0:t.listeners)||[],s=(null===(n=r.keypress)||void 0===n?void 0:n.listeners)||[];r=Object.assign(Object.assign({},r),{click:[...o,e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}],keypress:[...s,e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}]}),(null===(i=this.refs.messageRef)||void 0===i?void 0:i.length)&&this.refs.messageRef.forEach((e=>{Object.entries(r).forEach((([t,n])=>{n.forEach((n=>this.parentComponent.addEventListener(e,t,n))),this.eventListenersKeys.push(t)}))}))}clear(){var e;try{(null===(e=this.refs.messageRef)||void 0===e?void 0:e.length)&&this.refs.messageRef.forEach((e=>{this.eventListenersKeys.forEach((t=>this.parentComponent.removeEventListener(e,t)))})),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}focusOnComponent(e){var t;if(e){const n=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,i=null===(t=this.parentComponent.root)||void 0===t?void 0:t.getComponent(n,null,e);i&&r.default.isFunction(i.focus)&&i.focus()}}createMessage(e,t,n,i,r){if("error"===e)return this.createErrorMessage(t,n,i,r)}createErrorMessage(e,t,n,i){var s,a;const l={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":`${t}. Click to navigate to the field with following error.`},u=this.parentComponent.ce("li",l);this.parentComponent.setContent(u,t);const c=!r.default.isUndefined(n)&&(null===(s=null==i?void 0:i.messages)||void 0===s?void 0:s[n]),d=(null==c?void 0:c.path)||(null===(a=null==i?void 0:i.component)||void 0===a?void 0:a.key);if(d){const e=(0,o.getStringFromComponentPath)(d);u.dataset.componentKey=e}this.parentComponent.appendTo(u,e)}appendErrorToList(e,t){var n;if(null===(n=null==e?void 0:e.messages)||void 0===n?void 0:n.length)e.messages.forEach((({message:n},i)=>{this.createMessage("error",t,n,i,e)}));else if(e){const n=r.default.isObject(e)?e.message||"":e;this.createMessage("error",t,n)}}}},1835:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(27452)),o=i(n(995)),s=i(n(72289)),a=i(n(52167)),l=i(n(14399)),u=i(n(21445)),c=i(n(47431)),d=i(n(34847)),h=i(n(11879)),p=i(n(34865)),f=i(n(37347)),m=i(n(40503)),g=i(n(29491)),v=i(n(11681)),y=i(n(68991)),b=i(n(95201)),_=i(n(86129)),w=i(n(8957)),k=i(n(52850)),x=i(n(78665)),E=i(n(50983)),C=i(n(10280)),O=i(n(84119)),S=i(n(21419)),P=i(n(44103)),A=i(n(31739)),M=i(n(59287)),T=i(n(22859)),R=i(n(10837)),D=i(n(85955)),j=i(n(63357)),I=i(n(67483)),L=i(n(9117)),N=i(n(22307)),V=i(n(47633)),F=i(n(82647)),U=i(n(74501)),B=i(n(94259)),$=i(n(87815)),z=i(n(45425)),H=i(n(20031)),q=i(n(26627)),W=i(n(50493));r.default.address.editForm=o.default,r.default.button.editForm=s.default,r.default.checkbox.editForm=a.default,r.default.columns.editForm=l.default,r.default.component.editForm=u.default,r.default.container.editForm=c.default,r.default.content.editForm=d.default,r.default.currency.editForm=h.default,r.default.datagrid.editForm=p.default,r.default.datamap.editForm=f.default,r.default.datetime.editForm=m.default,r.default.day.editForm=g.default,r.default.editgrid.editForm=v.default,r.default.email.editForm=y.default,r.default.fieldset.editForm=b.default,r.default.file.editForm=_.default,r.default.form.editForm=w.default,r.default.list.editForm=k.default,r.default.hidden.editForm=x.default,r.default.htmlelement.editForm=E.default,r.default.nested.editForm=C.default,r.default.number.editForm=O.default,r.default.panel.editForm=S.default,r.default.password.editForm=P.default,r.default.phoneNumber.editForm=A.default,r.default.radio.editForm=M.default,r.default.recaptcha.editForm=T.default,r.default.resource.editForm=R.default,r.default.select.editForm=j.default,r.default.selectboxes.editForm=D.default,r.default.signature.editForm=I.default,r.default.survey.editForm=L.default,r.default.table.editForm=N.default,r.default.tabs.editForm=V.default,r.default.tags.editForm=F.default,r.default.textarea.editForm=U.default,r.default.textfield.editForm=B.default,r.default.time.editForm=$.default,r.default.tree.editForm=z.default,r.default.unknown.editForm=H.default,r.default.url.editForm=q.default,r.default.well.editForm=W.default,t.default=r.default},72289:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(27546));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}],...e)}},73249:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(53632)),s=i(n(94342)),a=i(n(17389)),l=n(34600);class u extends s.default{static schema(...e){return a.default.schema({type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0},...e)}static get builderInfo(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:u.schema()}}constructor(e,t,n){super(e,t,n),this.filesUploading=[]}get defaultSchema(){return u.schema()}get inputInfo(){const e=super.elementInfo();return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class=`btn btn-${this.component.theme}`,this.component.size&&(e.attr.class+=` btn-${this.component.size}`),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=` ${this.component.customClass}`),e.content=this.t(this.component.label,{_userInput:!0}),e}get labelInfo(){return{hidden:!0}}set loading(e){this.setLoading(this.refs.button,e)}get skipInEmail(){return!0}createLabel(){}createInput(e){return this.refs.button=super.createInput(e),this.refs.button}get emptyValue(){return!1}getValue(){return this.dataValue}get clicked(){return this.dataValue}get defaultValue(){return!1}get className(){let e=super.className;return e+=` ${this.transform("class","form-group")}`,e}get oauthConfig(){return r.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}render(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),super.render(this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}attachButton(){this.addShortcut(this.refs.button);let e=null,t=null;if("submit"===this.component.action&&(this.on("submitButton",(()=>{this.disabled=!0}),!0),this.on("cancelSubmit",(()=>{this.disabled=!1}),!0),this.on("submitDone",(e=>{const t=r.default.isString(e)?e:this.t("complete");this.loading=!1,this.disabled=!1,this.addClass(this.refs.button,"btn-success submit-success"),this.removeClass(this.refs.button,"btn-danger submit-fail"),this.addClass(this.refs.buttonMessageContainer,"has-success"),this.removeClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,t)}),!0),this.on("submitError",(e=>{const t=r.default.isString(e)?this.t(e):this.t(this.errorMessage("submitError"));this.loading=!1,this.disabled=!1,this.hasError=!0,this.removeClass(this.refs.button,"btn-success submit-success"),this.addClass(this.refs.button,"btn-danger submit-fail"),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.addClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,t)}),!0),this.on("fileUploadingStart",(e=>{this.filesUploading.push(e),this.disabled=!0,this.setDisabled(this.refs.button,this.disabled)}),!0),this.on("fileUploadingEnd",(e=>{const t=this.filesUploading.indexOf(e);-1!==t&&this.filesUploading.splice(t,1),this.disabled=!!this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled)}),!0),e=(e,t)=>{this.removeClass(this.refs.button,"btn-success submit-success"),t&&(this.removeClass(this.refs.button,"btn-danger submit-fail"),this.hasError&&(this.hasError=!1,this.setContent(this.refs.buttonMessage,""),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.removeClass(this.refs.buttonMessageContainer,"has-error")))},t=()=>{this.hasError=!0,this.removeClass(this.refs.button,"btn-success submit-success"),this.addClass(this.refs.button,"btn-danger submit-fail"),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.addClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,this.t(this.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",(()=>{this.disabled=!0}),!0),this.on("requestDone",(()=>{this.loading=!1,this.disabled=!1}),!0)),this.on("change",((t,n)=>{let i=t.isValid;const r=n&&n.silent;n&&n.noValidate&&(this.component.disableOnInvalid||this.hasError)&&(i=n.rootValidity||!this.root||this.root.checkValidity(this.root.data,null,null,!0),n.rootValidity=i),this.isDisabledOnInvalid=this.component.disableOnInvalid&&(r||!i),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),e&&e(t,i)}),!0),this.on("error",(()=>{this.loading=!1,this.disabled=!1,t&&t()}),!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",(e=>{13===e.keyCode&&this.onClick.call(this,e)})),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",(()=>{this.refs.buttonMessageContainer.classList.contains("has-error")&&this.root&&this.root.alert&&this.scrollIntoView(this.root.alert)})),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){const e=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");const t=new RegExp(`[\\?&]${e}=([^&#]*)`).exec(location.search);return t?decodeURIComponent(t[1].replace(/\+/g," ")):t}("iss");e&&0===this.oauthConfig.authURI.indexOf(e)&&this.openOauth(this.oauthConfig)}}get shouldDisabled(){var e;return super.shouldDisabled||!!(null===(e=this.filesUploading)||void 0===e?void 0:e.length)||this.isDisabledOnInvalid}attach(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});const t=super.attach(e);return this.attachButton(),t}detach(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),super.detach()}onClick(e){if(this.triggerReCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":e.preventDefault(),e.stopPropagation(),this.loading=!0,this.emit("submitButton",{state:this.component.state||"submitted",component:this.component,instance:this});break;case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:e});break;case"custom":{const e=this.getRoot(),t={},n={};(0,l.eachComponent)(e.components,((e,i)=>{const r=e.component||e;t[i]=r,n[r.key]=r}),!0),this.evaluate(this.component.custom,{form:e,flattened:t,components:n}),this.triggerChange();break}case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this)return void console.warn("You must add the OAuth button to a form for it to function properly");if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger",`The Following Error Has Occured ${this.oauthConfig.error}`);break}this.openOauth(this.oauthConfig)}}openOauth(e){if(!this.root.formio)return void console.warn("You must attach a Form API url to your form in order to use OAuth buttons.");let t={response_type:"code",client_id:e.clientId,redirect_uri:e.redirectURI||window.location.origin||`${window.location.protocol}//${window.location.host}`,state:e.state,scope:e.scope};const n=t.redirect_uri;e.display&&(t.display=e.display),t=Object.keys(t).map((e=>`${e}=${encodeURIComponent(t[e])}`)).join("&");const i=-1!==e.authURI.indexOf("?")?"&":"?",s=`${e.authURI}${i}${t}`,a=window.open(s,e.provider,"width=1020,height=618"),l=setInterval((()=>{try{const t=a.location.host,i=window.location.host;if(a&&!a.closed&&t===i){a.close();const t=a.location.search.substr(1).split("&").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});if(t.error)return alert(t.error_description||t.error),void this.root.setAlert("danger",t.error_description||t.error);if(e.state!==t.state)return void this.root.setAlert("danger","OAuth state does not match. Please try logging in again.");let i=o.default.resolve();if(r.default.has(this,"root.form.config.oauth")&&this.root.form.config.oauth[this.component.oauthProvider])t.provider=e.provider,t.redirectURI=n,t.triggeredBy=this.oauthComponentPath,i=this.root.formio.makeRequest("oauth",`${this.root.formio.projectUrl}/oauth2`,"POST",t);else{const r={data:{},oauth:{}};r.oauth[e.provider]=t,r.oauth[e.provider].redirectURI=n,e.logoutURI&&this.root.formio.oauthLogoutURI(e.logoutURI),r.oauth[e.provider].triggeredBy=this.oauthComponentPath,i=this.root.formio.saveSubmission(r)}i.then((e=>{this.root.onSubmit(e,!0)})).catch((e=>{this.root.onSubmissionError(e)}))}}catch(e){"SecurityError"===e.name||"Error"===e.name&&"Permission denied"===e.message||this.root.setAlert("danger",e.message||e)}a&&!a.closed&&void 0!==a.closed||clearInterval(l)}),100)}get oauthComponentPath(){const e=(0,l.getArrayFromComponentPath)(this.path);return r.default.chain(e).filter((e=>!r.default.isNumber(e))).join(".").value()}focus(){this.refs.button&&this.refs.button.focus()}triggerReCaptcha(){if(!this.root)return;let e;this.root.everyComponent((t=>{"recaptcha"===t.component.type&&"buttonClick"===t.component.eventType&&t.component.buttonKey===this.component.key&&(e=t)})),e&&e.verify(`${this.component.key}Click`)}}t.default=u},27546:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87338)),o=i(n(2543));t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional(e){var t,n;return null===(n=null===(t=e.instance.options)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}},{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'bi bi-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'bi bi-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}]},52167:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(80238)),s=i(n(5558)),a=i(n(53109));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default},{key:"display",components:s.default},{key:"validation",components:a.default}],...e)}},27539:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(94342));class s extends o.default{static schema(...e){return o.default.schema({type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""},...e)}static get builderInfo(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:s.schema()}}get defaultSchema(){return s.schema()}get defaultValue(){const{name:e}=this.component,t=super.defaultValue;return e?this.component[e]||this.emptyValue:"true"===(t||this.component.defaultValue||!1).toString()}get labelClass(){let e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),`${e}`}get hasSetValue(){return this.hasValue()}get inputInfo(){const e=super.elementInfo();return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name=`data[${this.component.name}]`),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}get labelInfo(){return{hidden:!0}}render(){return super.render(this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"
    ")}))}attach(e){return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,(()=>this.updateValue(null,{modified:!0}))),this.addShortcut(this.input)),super.attach(e)}detach(e){e&&this.input&&this.removeShortcut(this.input),super.detach()}get emptyValue(){return"radio"===this.component.inputType&&null}isEmpty(e=this.dataValue){return super.isEmpty(e)||!1===e}get key(){return this.component.name?this.component.name:super.key}getValueAt(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}getValue(){const e=super.getValue();return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}get checked(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}setCheckedState(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e?(this.input.value=1,this.input.checked=1):"off"===e?(this.input.value=0,this.input.checked=0):e?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),e}setValue(e,t={}){if(void 0!==this.setCheckedState(e)||!this.input&&void 0!==e&&(this.visible||this.conditionallyVisible()||!this.component.clearOnHide)){const n=this.updateValue(e,t);return this.isHtmlRenderMode()&&t&&t.fromSubmission&&n&&this.redraw(),n}return!1}getValueAsString(e){const{name:t,value:n}=this.component,i=t?r.default.isEqual(e,n):e;return this.t(i?"Yes":"No")}updateValue(e,t){this.component.name&&t.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(t,!0));const n=super.updateValue(e,t);return n&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),n}}t.default=s},80238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},5558:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87338)),o=i(n(2543));t.default=[{key:"labelPosition",ignore:!0},{key:"labelWidth",ignore:!0},{key:"labelMargin",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}},{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}]},53109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},14399:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(56088));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},53067:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(39142));class s extends o.default{static schema(...e){return o.default.schema({label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1},...e)}static get builderInfo(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",weight:10,schema:s.schema()}}constructor(e,t,n){super(e,t,n),this.rows=[]}get schema(){var e;const t=r.default.omit(super.schema,["components"]);return null===(e=t.columns)||void 0===e||e.map(((e,n)=>{e.components.map(((e,i)=>{const o=r.default.clone(e);o.internal=!0;const s=this.createComponent(o);delete s.component.internal,t.columns[n].components[i]=s.schema}))})),t}get defaultSchema(){return s.schema()}get className(){return`row ${super.className}`}get columnKey(){return`column-${this.id}`}init(){super.init(),this.columns=[],r.default.each(this.component.columns,((e,t)=>{this.columns[t]=[],e.size||(e.size="md"),e.currentWidth=e.width||0,Array.isArray(e.components)||(e.components=[]),r.default.each(e.components,(e=>{const n=this.createComponent(e);n.column=t,this.columns[t].push(n)}))})),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}labelIsHidden(){return!0}render(){return super.render(this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map((e=>this.renderComponents(e)))}))}justifyColumn(e,t){const n=r.default.every(e,(e=>!e.visible)),i=this.component.columns[t],o=n&&e.length?0:i.width,s=!r.default.isEqual(o,i.currentWidth);return i.currentWidth=o,s}justify(){return this.columns.reduce(((e,t,n)=>this.justifyColumn(t,n)||e),!1)}attach(e){this.loadRefs(e,{[this.columnKey]:"multiple"});const t=super.attach(e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(((e,t)=>this.attachComponents(e,this.columns[t],this.component.columns[t].components))),t}get gridSize(){return 12}groupByRow(){const e=e=>e.component.width,t=r.default.reduce(this.components,((t,n)=>{const i=[...t.stack,n];return r.default.sumBy(i,e)<=this.gridSize?(t.stack=i,t):(t.rows=[...t.rows,t.stack],t.stack=[n],t)}),{stack:[],rows:[]});return r.default.concat(t.rows,[t.stack])}checkData(e,t,n,i){const r=super.checkData(e,t,n,i);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),r}detach(e){super.detach(e)}destroy(e=!1){super.destroy(e),this.columns=[]}}t.default=s},56088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The width, offset, push, and pull settings for each column.",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}},{type:"number",key:"width",defaultValue:6,label:"Width"},{type:"number",key:"offset",defaultValue:0,label:"Offset"},{type:"number",key:"push",defaultValue:0,label:"Push"},{type:"number",key:"pull",defaultValue:0,label:"Pull"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0}]},47431:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(33200)),s=i(n(39664));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",components:s.default}],...e)}},44435:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(34600),s=i(n(96877)),a=i(n(94342)),l=i(n(42574));class u extends l.default{static schema(...e){return l.default.schema({label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]},...e)}static get builderInfo(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",weight:10,schema:u.schema()}}constructor(...e){super(...e),this.type="container"}addComponents(e,t){return super.addComponents(this.dataValue,t)}get defaultSchema(){return u.schema()}get emptyValue(){return{}}get templateName(){return"container"}componentContext(){return this.dataValue}checkData(e,t,n,i){return e=e||this.rootValue,t=t||{},n=n||this.data,(i=i&&r.default.isArray(i)?i:this.getComponents()).reduce(((n,i)=>i.checkData(e,t,this.dataValue)&&n),s.default.prototype.checkData.call(this,e,t,n))}checkChildComponentsValidity(e,t,n,i,r){return super.checkChildComponentsValidity(e,t,this.dataValue,i,r)}focus(){const e=(0,o.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}checkConditions(e,t,n){const i=a.default.prototype.checkConditions.call(this,e,t,n);return this.getComponents().forEach((n=>n.checkConditions(e,t,this.dataValue))),i}}t.default=u},39664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},33200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},34847:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(48264)),s=i(n(15068));t.default=function(...e){const t=r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:s.default}],...e);return t.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(t.components),t}},95211:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),o=i(n(2543)),s=i(n(53632));class a extends r.default{static schema(...e){return r.default.schema({label:"Content",type:"content",key:"content",input:!1,html:""},...e)}static get builderInfo(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:a.schema()}}get defaultSchema(){return a.schema()}get content(){if(this.builderMode)return this.component.html||"Content";const e=o.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}render(){return super.render(this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}get dataReady(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||s.default.resolve()}attach(e){return this.loadRefs(e,{html:"single"}),this.dataReady.then((()=>{this.refs.html&&this.setContent(this.refs.html,this.content)})),this.component.refreshOnChange&&this.on("change",(()=>{this.refs.html&&this.setContent(this.refs.html,this.content)}),!0),super.attach(e)}get emptyValue(){return""}}t.default=a},48264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},15068:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
    Content
    ',key:"content",weight:30,input:!0,customConditional:e=>"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}]}]}]}]},11879:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(4582)),s=i(n(40510));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}],...e)}},77171:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(94233),o=n(78443),s=i(n(2543)),a=n(34600),l=i(n(84803));class u extends l.default{static schema(...e){return l.default.schema({type:"currency",label:"Currency",key:"currency"},...e)}static get builderInfo(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:u.schema()}}constructor(e,t,n){e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),super(e,t,n)}createNumberMask(){const e=s.default.get(this.component,"decimalLimit",2),t=(0,a.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||t.prefix,this.currencySuffix=this.options.suffix||t.suffix,(0,r.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:s.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:s.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:s.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}isDecimalAllowed(){return s.default.get(this.component,"allowDecimal",!0)}setInputMask(e){let t=`${(0,a.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}).prefix}[0-9`;t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,o.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:t=>("$0._"===t&&setTimeout((()=>{const t=e.value.length-1;e.setSelectionRange(t,t)})),t),shadowRoot:this.root?this.root.shadowRoot:null})}get defaultSchema(){return u.schema()}parseNumber(e){return super.parseNumber(this.stripPrefixSuffix(e))}parseValue(e){return super.parseValue(this.stripPrefixSuffix(e))}addZerosAndFormatValue(e){if(!e&&0!==e)return;const t=s.default.get(this.component,"decimalLimit",2);let n,i="",r=[];const o=!!this.currencyPrefix&&e.includes(this.currencyPrefix),a=!!this.currencySuffix&&e.includes(this.currencySuffix),l=e.includes("-")||!1;if((e=this.stripPrefixSuffix(l?e.replace("-",""):e)).includes(this.decimalSeparator)?([n,i]=e.split(this.decimalSeparator),r=[...i.split("")]):n=e,i.lengththis.addZerosAndFormatValue(super.getValueAsString(e,t)))).join(", "):this.addZerosAndFormatValue(n):n}formatValue(e){return e||"0"===e?this.addZerosAndFormatValue(e):super.formatValue(e)}stripPrefixSuffix(e){if("string"==typeof e)try{const t=!!this.currencyPrefix&&e.includes(this.currencyPrefix),n=!!this.currencySuffix&&e.includes(this.currencySuffix),i=e.includes(this.delimiter),r=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),!t&&!n||i||r||!Number.isNaN(+e)&&e||(e="0")}catch(e){}return e}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"focus",(()=>{e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)})),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(this.addZerosAndFormatValue(this.parseValue(e.value)))}))}}t.default=u},40510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"},{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"},{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Pa’anga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bolívar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},4582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},34865:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(40250)),s=i(n(4490)),a=i(n(6561));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},81841:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(33670)),s=n(34600);class a extends o.default{static schema(...e){return o.default.schema({label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]},...e)}static get builderInfo(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",weight:30,schema:a.schema()}}constructor(...e){super(...e),this.type="datagrid",this.tabIndex=0}init(){this.components=this.components||[],this.rows=[],this.columns=[...this.component.components],!this.initRows&&r.default.isEqual(this.dataValue,this.emptyValue)||this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}get dataValue(){const e=super.dataValue;return e&&Array.isArray(e)?e:this.emptyValue}set dataValue(e){super.dataValue=e}get defaultSchema(){return a.schema()}get initEmpty(){return this.component.initEmpty||this.component.noFirstRow}get initRows(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}get emptyValue(){return this.initEmpty?[]:[{}]}get addAnotherPosition(){return r.default.get(this.component,"addAnotherPosition","bottom")}get minLength(){return this.hasRowGroups()?r.default.sum(this.getGroupSizes()):r.default.get(this.component,"validate.minLength",0)}get defaultValue(){const e=this.builderMode,t=this.initEmpty;if(e||t&&!this.dataValue.length)return t&&!e?[]:[{}];const n=super.defaultValue;let i;i=Array.isArray(n)?n:n&&"object"==typeof n?[n]:this.emptyValue;for(let e=i.length;e{t.disabled=e})),r.default.each(this.refs[`${this.datagridKey}-removeRow`],(t=>{t.disabled=e}))}get disabled(){return super.disabled}get datagridKey(){return`datagrid-${this.key}`}get allowReorder(){return!this.options.readOnly&&r.default.get(this.component,"reorder",!1)}get iteratableRows(){return this.rows.map(((e,t)=>({components:e,data:this.dataValue[t]})))}getRowChunks(e,t){const[,n]=e.reduce((([e,t],n)=>{const i=e+n;return[i,[...t,[e,i]]]}),[0,[]]);return n.map((e=>r.default.slice(t,...e)))}getGroups(){const e=r.default.get(this.component,"rowGroups",[]),t=r.default.map(e,"numberOfRows").slice(0,-1).reduce(((e,t)=>{const n=e[e.length-1];return e.concat(n+t)}),[0]);return e.reduce(((e,n,i)=>Object.assign(Object.assign({},e),{[t[i]]:n})),{})}getGroupSizes(){return r.default.map(r.default.get(this.component,"rowGroups",[]),"numberOfRows")}hasRowGroups(){return r.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}totalRowsNumber(e){return r.default.sum(r.default.map(e,"numberOfRows"))}setStaticValue(e){this.dataValue=r.default.range(e).map((()=>({})))}hasExtraColumn(){return this.hasRemoveButtons()||this.canAddColumn}hasRemoveButtons(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}hasTopSubmit(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}hasBottomSubmit(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}get canAddColumn(){return this.builderMode}render(){const e=this.getColumns();let t=0;const n=this.hasRemoveButtons();this.component.reorder&&t++,n&&t++,this.canAddColumn&&t++;const i=Math.floor(12/(e.length+t));return super.render(this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:r.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:n,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:i.toString()}))}getRows(){return this.rows.map((e=>{const t={};return r.default.each(e,((e,n)=>{t[n]=e.render()})),t}))}getColumns(){return this.columns.filter((e=>!this.visibleColumns.hasOwnProperty(e.key)||this.visibleColumns[e.key]))}hasHeader(){return this.component.components.reduce(((e,t)=>e||(t.label||t.title)&&!t.hideLabel),!1)}loadRefs(e,t){if(super.loadRefs(e,t),"single"===t.messageContainer){const t=r.default.last(e.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=t||this.refs.messageContainer}}attach(e){this.loadRefs(e,{[`${this.datagridKey}-row`]:"multiple",[`${this.datagridKey}-tbody`]:"single",[`${this.datagridKey}-addRow`]:"multiple",[`${this.datagridKey}-removeRow`]:"multiple",[`${this.datagridKey}-group-header`]:"multiple",[this.datagridKey]:"multiple",messageContainer:"single"}),this.allowReorder&&(this.refs[`${this.datagridKey}-row`].forEach(((e,t)=>{e.dragInfo={index:t}})),this.root.dragulaLib&&(this.dragula=this.root.dragulaLib([this.refs[`${this.datagridKey}-tbody`]],{moves:(e,t,n)=>{const i=n.getAttribute("data-key");if(t.getAttribute("data-key")===i)return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",((e,t)=>{e&&e.children&&t&&t.children&&r.default.each(t.children,((t,n)=>{const i=getComputedStyle(t,null);if(""!==i.cssText)e.children[n].style.cssText=i.cssText;else{const t=Object.values(i).reduce(((e,t)=>`${e}${t}:${i.getPropertyValue(t)};`),"");e.children[n].style.cssText=t}}))})))),this.refs[`${this.datagridKey}-addRow`].forEach((e=>{this.addEventListener(e,"click",this.addRow.bind(this))})),this.refs[`${this.datagridKey}-removeRow`].forEach(((e,t)=>{this.addEventListener(e,"click",this.removeRow.bind(this,t))})),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs[`${this.datagridKey}-row`]),this.refs[`${this.datagridKey}-group-header`].forEach(((e,t)=>{this.addEventListener(e,"click",(()=>this.toggleGroup(e,t)))})));const t=this.getColumns(),n=t.length;return this.rows.forEach(((e,i)=>{let r=0;t.forEach((e=>{this.attachComponents(this.refs[this.datagridKey][i*n+r],[this.rows[i][e.key]],this.getComponentsContainer()),r++}))})),super.attach(e)}getComponentsContainer(){return this.component.components}onReorder(e,t,n,i){if(!e.dragInfo||i&&!i.dragInfo)return void console.warn("There is no Drag Info available for either dragged or sibling element");const r=e.dragInfo.index,o=i?i.dragInfo.index:this.dataValue.length,a=o>r,l=(0,s.fastCloneDeep)(this.dataValue),u=l[r];l.splice(o,0,u),l.splice(a?r:r+1,1),this.setValue(l,{isReordered:!0}),this.rebuild()}focusOnNewRowElement(e){Object.keys(e).find((t=>{const n=(0,s.getFocusableElements)(e[t].element);return!(!n||!n[0]||(n[0].focus(),0))}))}addRow(){const e=this.rows.length;let t;this.dataValue.length===e&&this.dataValue.push({});const n=this.dataValue,i=this.defaultValue;this.initEmpty&&i[e]?(t=i[e],n[e]=t):t=n[e],this.rows[e]=this.createRowComponents(t,e),this.emit("dataGridAddRow",{component:this.component,row:t}),this.checkConditions(),this.triggerChange(),this.redraw().then((()=>{this.focusOnNewRowElement(this.rows[e])}))}updateComponentsRowIndex(e,t){e.forEach(((e,n)=>{var i;if(null===(i=e.options)||void 0===i?void 0:i.name){const n=`[${this.key}][${t}]`;e.options.name=e.options.name.replace(`[${this.key}][${e.rowIndex}]`,n)}e.rowIndex=t,e.row=`${t}-${n}`,e.path=this.calculateComponentPath(e)}))}updateRowsComponents(e){this.rows.slice(e).forEach(((t,n)=>{this.updateComponentsRowIndex(Object.values(t),e+n)}))}removeRow(e){this.splice(e,{isReordered:!0}),this.emit("dataGridDeleteRow",{index:e});const[t]=this.rows.splice(e,1);this.removeRowComponents(t),this.updateRowsComponents(e),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}removeRowComponents(e){r.default.each(e,(e=>this.removeComponent(e)))}getRowValues(){return this.dataValue}setRowComponentsData(e,t){r.default.each(this.rows[e],(e=>{e.data=t}))}createRows(e,t){let n=!1;const i=this.getRowValues();i.forEach(((e,i)=>{!t&&this.rows[i]?this.setRowComponentsData(i,e):(this.rows[i]&&this.removeRowComponents(this.rows[i]),this.rows[i]=this.createRowComponents(e,i),n=!0)}));const r=this.rows.splice(i.length),o=!!r.length;return o&&r.forEach((e=>this.removeRowComponents(e))),e||!n&&!o||this.redraw(),n}createRowComponents(e,t){const n={};return this.tabIndex=0,this.component.components.map(((i,o)=>{const s=r.default.clone(this.options);let a;s.name+=`[${t}]`,s.row=`${t}-${o}`,this.builderMode?(i.id=i.id+t,a=i):a=Object.assign(Object.assign({},i),{id:i.id+t});const l=this.createComponent(a,s,e);l.parentDisabled=!!this.disabled,l.rowIndex=t,l.inDataGrid=!0,a.tabindex&&parseInt(a.tabindex)>this.tabIndex&&(this.tabIndex=parseInt(a.tabindex)),n[i.key]=l})),n}checkValidity(e,t,n,i){if(e=e||this.rootValue,n=n||this.data,!this.checkCondition(n,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,t,n,{silentCheck:i}))return!1;const r=this.checkRows("checkValidity",e,t,!0,i);return this.checkModal(r,t),r}checkColumns(e,t={}){e=e||this.rootValue;let n=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};const i={};let o=!1;const s=this.dataValue;this.rows.forEach(((n,a)=>{r.default.each(n,((n,l)=>{if(n&&"function"==typeof n.checkConditions){const u=void 0===i[l];if(i[l]=!!i[l]||n.checkConditions(e,t,s[a])&&"hidden"!==n.type,n.component.logic&&u){const e=r.default.findIndex(this.columns,["key",l]);r.default.isEqual(this.columns[e],n.component)||(o=!0,this.columns[e]=n.component)}}}))}));const a=!r.default.isEqual(i,this.visibleColumns)||o;return r.default.each(i,(e=>{n|=e})),this.visibleColumns=i,{rebuild:a,show:n}}checkComponentConditions(e,t,n){const i=this.visible;if(!super.checkComponentConditions(e,t,n))return!1;const{rebuild:r,show:o}=this.checkColumns(e,t);return!r&&i||this.createRows(!1,r),o}setValue(e,t={}){if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"==typeof e?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});const n=t.fromSubmission&&!r.default.isEqual(e,this.emptyValue),i=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||n)&&!this.createRows()&&i&&this.redraw(),this.componentModal&&n&&this.componentModal.setValue(e),this.rows.forEach(((n,i)=>{e.length<=i||r.default.each(n,(n=>{n.rowIndex=i,this.setNestedValue(n,e[i],t)}))})),this.updateOnChange(t,i),i}restoreComponentsContext(){this.rows.forEach(((e,t)=>r.default.forIn(e,(e=>e.data=this.dataValue[t]))))}getComponent(e,t){e=Array.isArray(e)?e:[e];const[n,...i]=e;let o=[];if(r.default.isNumber(n)&&i.length){const e=i.pop();return o=this.rows[n][e],o||Object.entries(this.rows[n]).forEach((([,n])=>{if("getComponent"in n){const i=n.getComponent([e],t);i&&(o=i)}})),o&&r.default.isFunction(t)&&t(o,this.getComponents()),i.length&&"getComponent"in o?o.getComponent(i,t):o}return r.default.isString(n)?(this.everyComponent(((e,r)=>{if(e.component.key===n){let n=e;i.length>0&&"getComponent"in e?n=e.getComponent(i,t):t&&t(e,r),o=o.concat(n)}})),o.length>0?o:null):o}toggleGroup(e,t){e.classList.toggle("collapsed"),r.default.each(this.refs.chunks[t],(e=>{e.classList.toggle("hidden")}))}}t.default=a},40250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},4490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:e=>!e.data.enableRowGroups,calculateValue:e=>!!e.data.enableRowGroups||e.data.disableAddingRemovingRows},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:e=>!e.data.disableAddingRemovingRows},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:e=>!e.data.disableAddingRemovingRows},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},6561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},37347:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(37354)),s=i(n(95309));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default}],...e)}},7927:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),o=i(n(81841)),s=i(n(2543)),a=i(n(30228)),l=n(34600);class u extends o.default{static schema(...e){return r.default.schema({label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}},...e)}static get builderInfo(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",weight:20,schema:u.schema()}}get schema(){const e=super.schema;return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),s.default.omit(e,"components")}constructor(e,t,n){super(e,t,n),this.type="datamap"}init(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns={key:!0,[this.valueKey]:!0},this.component.valueComponent.hideLabel=!0}get defaultSchema(){return u.schema()}get emptyValue(){return{}}get dataValue(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),s.default.get(this.data,this.key))}set dataValue(e){super.dataValue=e}get defaultValue(){const e=super.defaultValue;return Array.isArray(e)?e[0]:this.emptyValue}get keySchema(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}get valueKey(){return this.component.valueComponent.key}getRowValues(){const e=this.dataValue;return this.builderMode?[e]:s.default.isEmpty(e)?[]:Object.keys(e).map((()=>e))}getComponentsContainer(){return this.builderMode?this.getComponents().map((e=>e.component)):super.getComponentsContainer()}get iteratableRows(){return this.rows.map((e=>Object.keys(e).map((t=>({components:e[t],data:e[t].dataValue})))))}componentContext(e){return this.iteratableRows[e.row].find((t=>t.components.key===e.key)).data}hasHeader(){return!0}hasRemoveButtons(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}getColumns(){const e=Object.assign({},this.keySchema),t=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,t.hideLabel=!1,this.component.keyBeforeValue?[e,t]:[t,e]}getRowKey(e){const t=Object.keys(this.dataValue);return t[e]||(t[e]=(0,l.uniqueKey)(this.dataValue,this.defaultRowKey)),t[e]}get defaultRowKey(){return"key"}setRowComponentsData(e,t){s.default.each(this.rows[e],(n=>{"__key"===n.key?n.data={__key:Object.keys(t)[e]}:n.data=t}))}getValueAsString(e,t){if((null==t?void 0:t.email)&&this.visible&&!this.skipInEmail&&s.default.isObject(e)){let n='\n \n \n ';return n=Object.keys(e).reduce(((n,i)=>n+`\n \n \n \n \n `),n),n+="\n \n
    ${i}${this.getView(e[i],t)}
    \n ",n}return s.default.isEmpty(e)?"":(null==t?void 0:t.modalPreview)?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"object"==typeof e?"[Complex Data]":e}getDataValueAsTable(e,t){let n='\n \n \n ';return this.visible&&s.default.isObject(e)&&Object.keys(e).forEach((i=>{n+=`\n \n \n \n \n `})),n+="\n \n
    ${i}${this.getView(e[i],t)}
    \n ",n}createRowComponents(e,t){let n=this.builderMode?this.valueKey:this.getRowKey(t);const i=s.default.clone(this.options);i.events=new a.default,i.name+=`[${t}]`,i.row=`${t}`;const r={};r.__key=this.createComponent(this.keySchema,i,{__key:this.builderMode?this.defaultRowKey:n}),r.__key.on("componentChange",(e=>{const t=this.dataValue,i=(0,l.uniqueKey)(t,e.value);t[i]=t[n],delete t[n];const o=r[this.valueKey];o.component.key=i,o.path=this.calculateComponentPath(o),n=i}));const o=s.default.clone(this.component.valueComponent);o.key=n;const u=this.options;return u.row=i.row,r[this.valueKey]=this.createComponent(o,u,this.dataValue),r}get canAddColumn(){return!1}addChildComponent(e){this.component.valueComponent=e}saveChildComponent(e){e.key!==this.keySchema.key&&(this.component.valueComponent=e)}removeChildComponent(){const e=u.schema();this.component.valueComponent=e.valueComponent}addRow(){const e=this.rows.length;this.rows[e]=this.createRowComponents(this.dataValue,e),this.redraw(),this.triggerChange()}removeRow(e){const t=Object.keys(this.dataValue);t[e]&&delete this.dataValue[t[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}setValue(e,t={}){const n=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(t,n),n}checkColumns(){return!this.builderMode&&this.dataValue&&Object.keys(this.dataValue).length&&Object.keys(this.dataValue).length>(this.rows||[]).length?{rebuild:!0,show:!0}:{rebuild:!1,show:!0}}}t.default=u},37354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},95309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:e=>!e.data.disableAddingRemovingRows}]},40503:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(77610)),s=i(n(4182)),a=i(n(70202)),l=i(n(66543)),u=i(n(84113));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:a.default},{label:"Date",key:"date",weight:1,components:s.default},{label:"Time",key:"time",weight:2,components:l.default},{key:"data",components:o.default},{key:"validation",components:u.default}],...e)}},88131:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(95093)),s=i(n(17389)),a=i(n(30301));class l extends s.default{static schema(...e){return s.default.schema({type:"datetime",label:"Date / Time",key:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}},...e)}static get builderInfo(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:l.schema()}}constructor(e,t,n){super(e,t,n);const i=this.component.timezone||this.options.timezone,o=!r.default.get(this.component,"timePicker.showMeridian",!0);this.component.enableDate||(this.component.format=this.component.format.replace(/yyyy-MM-dd /g,"")),this.component.enableTime?this.component.format=o?this.component.format.replace(/hh:mm a$/g,"HH:mm"):this.component.format.replace(/HH:mm$/g,"hh:mm a"):this.component.format=this.component.format.replace(/ hh:mm a$/g,"");let s=this.component.customOptions||{};if("string"==typeof s)try{s=JSON.parse(s)}catch(e){console.warn(e.message),s={}}this.component.widget=Object.assign({type:"calendar",timezone:i,displayInTimezone:r.default.get(this.component,"displayInTimezone","viewer"),locale:this.options.language,useLocaleSettings:r.default.get(this.component,"useLocaleSettings",!1),allowInput:r.default.get(this.component,"allowInput",!0),mode:"single",enableTime:r.default.get(this.component,"enableTime",!0),noCalendar:!r.default.get(this.component,"enableDate",!0),format:this.component.format,hourIncrement:r.default.get(this.component,"timePicker.hourStep",1),minuteIncrement:r.default.get(this.component,"timePicker.minuteStep",5),time_24hr:o,readOnly:this.options.readOnly,minDate:r.default.get(this.component,"datePicker.minDate"),disabledDates:r.default.get(this.component,"datePicker.disable"),disableWeekends:r.default.get(this.component,"datePicker.disableWeekends"),disableWeekdays:r.default.get(this.component,"datePicker.disableWeekdays"),disableFunction:r.default.get(this.component,"datePicker.disableFunction"),maxDate:r.default.get(this.component,"datePicker.maxDate")},s),this.validators.push("date")}get defaultSchema(){return l.schema()}get defaultValue(){let e=super.defaultValue;return!e&&this.component.defaultDate&&(e=a.default.getDateSetting(this.component.defaultDate),e=e?e.toISOString():""),e}get emptyValue(){return""}get momentFormat(){return a.default.convertFormatToMoment(this.component.format)}isEmpty(e=this.dataValue){return!(!e||"Invalid Date"!==e.toString())||super.isEmpty(e)}formatValue(e){const t=o.default.utc(e).toISOString();return"Invalid date"===t?e:t}isEqual(e,t=this.dataValue){return this.isEmpty(e)&&this.isEmpty(t)||o.default.utc(e).format(this.momentFormat)===o.default.utc(t).format(this.momentFormat)}createWrapper(){return!1}checkValidity(e,t,n){return this.refs.input&&this.refs.input.forEach((e=>{e.widget&&e.widget.enteredDate&&(t=!0)})),super.checkValidity(e,t,n)}getValueAsString(e){let t=a.default.convertFormatToMoment(this.component.format);t+=t.match(/z$/)?"":" z";const n=this.timezone;return e&&!this.attached&&n?r.default.trim(a.default.momentDate(e,t,n).format(t)):(e?r.default.trim((0,o.default)(e).format(t)):e)||""}}t.default=l},77610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},4182:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10196)),o=i(n(33844));t.default=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:()=>!r.default.noeval||r.default.protectedEval,components:[o.default.logicVariablesTable("dateThe date object."),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the Docs',weight:22},{type:"htmlelement",tag:"div",content:"

    Example

    // Disable all weekends
    date.getDay() === 0 || date.getDay() === 6
    \n "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}]},70202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"{{ item.label }}",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}},{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by DateParser Codes',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'
    \n
    Label
    \n
    onClick
    \n
    ',row:'
    \n
    \n {{ flattenedComponents.label.getView(row.label) }}\n
    \n
    \n {{ flattenedComponents.onClick.getView(row.onClick) }}\n
    \n {% if (!instance.disabled) { %}\n
    \n
    \n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
    \n
    \n {% } %}\n
    '},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},66543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},84113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:({data:e,component:t})=>!(t.datePicker&&t.datePicker.minDate&&-1!==t.datePicker.minDate.indexOf("moment")||e.enableMinDateInput)},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:({data:e,component:t})=>!(!t.datePicker||!t.datePicker.minDate||-1===t.datePicker.minDate.indexOf("moment"))||e.enableMinDateInput},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:({data:e,component:t})=>!(t.datePicker&&t.datePicker.maxDate&&-1!==t.datePicker.maxDate.indexOf("moment")||e.enableMaxDateInput)},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:({data:e,component:t})=>!(!t.datePicker||!t.datePicker.maxDate||-1===t.datePicker.maxDate.indexOf("moment"))||e.enableMaxDateInput}]},29491:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(15762)),s=i(n(98690)),a=i(n(73417)),l=i(n(41546)),u=i(n(57618)),c=i(n(47439));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"day",label:"Day",weight:3,components:l.default},{key:"month",label:"Month",weight:3,components:u.default},{key:"year",label:"Year",weight:3,components:c.default}],...e)}},22823:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(94342)),s=n(34600);class a extends o.default{static schema(...e){return o.default.schema({type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1},...e)}static get builderInfo(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:a.schema()}}get emptyValue(){return"00/00/0000"}get valueMask(){return/^\d{2}\/\d{2}\/\d{4}$/}get dayRequired(){return this.showDay&&r.default.get(this.component,"fields.day.required",!1)}get showDay(){return!r.default.get(this.component,"fields.day.hide",!1)}get monthRequired(){return this.showMonth&&r.default.get(this.component,"fields.month.required",!1)}get showMonth(){return!r.default.get(this.component,"fields.month.hide",!1)}get yearRequired(){return this.showYear&&r.default.get(this.component,"fields.year.required",!1)}get showYear(){return!r.default.get(this.component,"fields.year.hide",!1)}get defaultSchema(){return a.schema()}get shouldDisabled(){return super.shouldDisabled||this.parentDisabled}get inputInfo(){const e=super.elementInfo();return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}inputDefinition(e){let t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=r.default.get(this.component,"fields.year.minYear",1900)||1900,n=r.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:`${this.component.key}-${e}`,class:`form-control ${this.transform("class",`formio-day-component-${e}`)}`,type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.component.fields[e].placeholder,step:1,min:t,max:n}}}selectDefinition(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:`${this.component.key}-${e}`,class:"form-control",name:e,lang:this.options.language}}}get days(){if(this._days)return this._days;this._days=[{value:"",label:r.default.get(this.component,"fields.day.placeholder","")}];for(let e=1;e<=31;e++)this._days.push({value:e,label:e.toString()});return this._days}get months(){return this._months||(this._months=[{value:"",label:r.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}get years(){if(this._years)return this._years;this._years=[{value:"",label:r.default.get(this.component,"fields.year.placeholder","")}];const e=r.default.get(this.component,"fields.year.minYear",1900)||1900,t=r.default.get(this.component,"fields.year.maxYear",2030)||2030;for(let n=e;n<=t;n++)this._years.push({value:n,label:n.toString()});return this._years}setErrorClasses(e,t,n){super.setErrorClasses(e,t,n),super.setErrorClasses([this.refs.day,this.refs.month,this.refs.year],t,n)}removeInputError(e){super.removeInputError([this.refs.day,this.refs.month,this.refs.year]),super.removeInputError(e)}init(){super.init(),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);const e=this.component.fields.year.minYear,t=this.component.fields.year.maxYear;this.component.maxYear=t,this.component.minYear=e;const n=(0,s.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?n.dayFirst:this.component.dayFirst}render(){return this.isHtmlRenderMode()?super.render(this.renderTemplate("input")):super.render(this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}renderField(e){return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this[`${e}s`].reduce(((e,t)=>e+this.renderTemplate("selectOption",{option:t,selected:!1,attrs:{}})),"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}attach(e){this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});const t=super.attach(e);return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach((e=>this.setDisabled(e,!0)))):(this.addEventListener(this.refs.day,"input",(()=>this.updateValue(null,{modified:!0}))),this.addEventListener(this.refs.month,"input",(()=>{const e=this.refs.year?parseInt(new Date(this.refs.year.value,this.refs.month.value,0).getDate(),10):"",t=this.getFieldValue("day");!this.component.fields.day.hide&&e&&(this.refs.day.max=e),e&&t>e&&(this.refs.day.value=this.refs.day.max),this.updateValue(null,{modified:!0})})),this.addEventListener(this.refs.year,"input",(()=>this.updateValue(null,{modified:!0}))),this.addEventListener(this.refs.input,this.info.changeEvent,(()=>this.updateValue(null,{modified:!0})))),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,t}validateRequired(e,t){const{day:n,month:i,year:r}=this.parts;return!(this.dayRequired&&!n||this.monthRequired&&!i||this.yearRequired&&!r||(0,s.boolValue)(e)&&this.isEmpty(t))}set disabled(e){super.disabled=e,this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}normalizeValue(e){if(!e||this.valueMask.test(e))return e;const t=[],n=e.split("/"),[i,r,o]=this.component.dayFirst?[0,1,2]:[1,0,2],s=this.component.defaultValue?this.component.defaultValue.split("/"):"",a=(e,i)=>t.push(e?n.shift():i);return this.dayFirst&&a(this.showDay,s?s[i]:"00"),a(this.showMonth,s?s[r]:"00"),this.dayFirst||a(this.showDay,s?s[i]:"00"),a(this.showYear,s?s[o]:"0000"),t.join("/")}setValueAt(e,t){if(!t||"Invalid date"===t)return null;const n=t.split("/");let i;this.component.dayFirst&&(i=n.shift());const r=n.shift();this.component.dayFirst||(i=n.shift());const o=n.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===i?"":parseInt(i,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===r?"":parseInt(r,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===o?"":parseInt(o,10))}getFieldValue(e){const t=this.dataValue?this.dataValue.split("/"):[];let n=0;switch(e){case"month":n=t[this.dayFirst?1:0];break;case"day":n=t[this.dayFirst?0:1];break;case"year":n=t[2]}return n=parseInt(n,10),!r.default.isNaN(n)&&r.default.isNumber(n)?n:0}get parts(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}get format(){let e="";return this.component.dayFirst&&this.showDay&&(e+="D/"),this.showMonth&&(e+="M/"),!this.component.dayFirst&&this.showDay&&(e+="D/"),this.showYear?(e+="YYYY",e):e.length?e.substring(0,e.length-1):e}getDate(e){let t,n,i,o=[];const[s,a,l]=this.component.dayFirst?[0,1,2]:[1,0,2],u=e||this.component.defaultValue;let c;return u&&(o=u.split("/").map((e=>parseInt(e,10)))),this.showDay&&this.refs.day&&(t=parseInt(this.refs.day.value,10)),(void 0===t||r.default.isNaN(t))&&(t=o[s]&&!r.default.isNaN(o[s])?o[s]:0),this.showMonth&&this.refs.month&&(n=parseInt(this.refs.month.value,10)),(void 0===n||r.default.isNaN(n))&&(n=o[a]&&!r.default.isNaN(o[a])?o[a]:0),this.showYear&&this.refs.year&&(i=parseInt(this.refs.year.value)),(void 0===i||r.default.isNaN(i))&&(i=o[l]&&!r.default.isNaN(o[l])?o[l]:0),t||n||i?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",i=this.showYear?i.toString().padStart(4,0):"",c=this.component.dayFirst?`${t}${this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":""}${n}${this.showMonth&&this.showYear?"/":""}${i}`:`${n}${this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":""}${t}${this.showDay&&this.showYear?"/":""}${i}`,c):null}get date(){return this.getDate()}normalizeMinMaxDates(){return[this.component.minDate,this.component.maxDate].map((e=>e?e.split("-").reverse().join("/"):e))}get validationValue(){return[this.component.minDate,this.component.maxDate]=this.dayFirst?this.normalizeMinMaxDates():[this.component.minDate,this.component.maxDate],this.dataValue}getValue(){return super.getValue()||this.dataValue}getValueAt(e){const t=this.date||this.emptyValue;return t?(this.refs.input[e].value=t,this.refs.input[e].value):(this.refs.input[e].value="",null)}getValueAsString(e){return this.getDate(e)||""}focus(){var e,t,n;this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?null===(e=this.refs.day)||void 0===e||e.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?null===(t=this.refs.month)||void 0===t||t.focus():this.showDay||this.showDay||!this.showYear||null===(n=this.refs.year)||void 0===n||n.focus()}isPartialDay(e){if(!e)return!1;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/");return"00"===r[t]||"00"===r[n]||"0000"===r[i]}getValidationFormat(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}t.default=a},15762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},41546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},98690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},57618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",input:!0}]},73417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},47439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.year.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:203,type:"number",input:!0,key:"fields.year.minYear",label:"Minimum Year",placeholder:"1900",tooltip:"The minimum year that can be entered."},{weight:204,type:"number",input:!0,key:"fields.year.maxYear",label:"Maximum Year",placeholder:"2030",tooltip:"The maximum year that can be entered."},{weight:210,type:"textfield",input:!0,key:"fields.year.placeholder",label:"Placeholder",placeholder:"Year Placeholder",tooltip:"The placeholder text that will appear when Year field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Year part of the component.",key:"fields.year.hide",input:!0}]},11681:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(60762)),s=i(n(35818)),a=i(n(45563)),l=i(n(1537));t.default=function(...e){return r.default.baseEditForm([{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:l.default}],...e)}},80865:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(53632)),s=i(n(33670)),a=i(n(96877)),l=i(n(93019)),u=n(34600),c=n(85185),d={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"};class h extends s.default{static schema(...e){return s.default.schema({type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:h.defaultHeaderTemplate,row:h.defaultRowTemplate,tableHeader:h.defaultTableHeaderTemplate,tableRow:h.defaultTableRowTemplate,footer:""}},...e)}static get builderInfo(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",weight:30,schema:h.schema()}}static get defaultHeaderTemplate(){return'
    \n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n
    {{ t(component.label) }}
    \n {% } %}\n {% }) %}\n
    '}static get defaultTableHeaderTemplate(){return'\n \n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n {{ component.label }}\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n Actions\n {% } %}\n \n '}static get defaultRowTemplate(){return'
    \n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n
    \n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n
    \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n
    \n
    \n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
    \n
    \n {% } %}\n
    '}static get defaultTableRowTemplate(){return'\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n \n {{ getView(component, row[component.key]) }}\n \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n \n
    \n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
    \n \n {% } %}\n '}get defaultDialogTemplate(){return`\n

    ${this.t("Do you want to clear data?")}

    \n
    \n \n \n
    \n `}get defaultRowTemplate(){return this.displayAsTable?h.defaultTableRowTemplate:h.defaultRowTemplate}get defaultHeaderTemplate(){return this.displayAsTable?h.defaultTableHeaderTemplate:h.defaultHeaderTemplate}get rowTemplate(){let e;return e=u.Evaluator.noeval?this.displayAsTable?c.editgrid.tableRow:c.editgrid.row:this.displayAsTable?r.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):r.default.get(this.component,"templates.row",this.defaultRowTemplate),e}get headerTemplate(){let e;return e=u.Evaluator.noeval?this.displayAsTable?c.editgrid.tableHeader:c.editgrid.header:this.displayAsTable?r.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):r.default.get(this.component,"templates.header",this.defaultHeaderTemplate),e}get hasScopedChildren(){return!this.inlineEditMode}get defaultSchema(){return h.schema()}get emptyValue(){return[]}get editgridKey(){return`editgrid-${this.key}`}get rowRef(){return`${this.editgridKey}-row`}get rowElements(){return this.refs[this.rowRef]}get rowRefs(){return this.refs[`editgrid-${this.component.key}-row`]}get addRowRef(){return`${this.editgridKey}-addRow`}get addRowElements(){return this.refs[this.addRowRef]}get saveRowRef(){return`${this.editgridKey}-saveRow`}get saveRowElements(){return this.refs[this.saveRowRef]}get cancelRowRef(){return`${this.editgridKey}-cancelRow`}get cancelRowElements(){return this.refs[this.cancelRowRef]}get inlineEditMode(){return this.component.inlineEdit}get saveEditMode(){return!this.inlineEditMode}get minLength(){return r.default.get(this.component,"validate.minLength",0)}get data(){return this._data}get dataValue(){return super.dataValue||[]}set dataValue(e){super.dataValue=e}get displayAsTable(){return this.component.displayAsTable}set data(e){this._data=e;const t=this.dataValue;(this.editRows||[]).forEach(((e,n)=>{t[n]||e.state===d.New||(t[n]={});const i=t[n]||{};e.data=i,e.components.forEach((e=>{e.data=i}))}))}get iteratableRows(){return this.editRows}get defaultValue(){const e=super.defaultValue,t=Array.isArray(e)?e:[];return r.default.times(this.minLength-t.length,(()=>t.push({}))),t}constructor(...e){super(...e),this.type="editgrid"}hasRemoveButtons(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}init(){if(this.builderMode)return this.editRows=[],super.init();this.components=this.components||[];const e=this.dataValue;if(!e.length&&this.component.openWhenEmpty){const e={};this.editRows=[],this.createRow(e,0)}else this.editRows=e.map(((e,t)=>({components:this.lazyLoad?[]:this.createRowComponents(e,t),data:e,state:d.Saved,backup:null,error:null,rowIndex:t})));this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&r.default.each(this.editRows||[],((e,t)=>this.checkRowVariableTypeComponents(e,t)))}checkRowVariableTypeComponents(e,t){const n=e.components;r.default.some(this.variableTypeComponentsIndexes,(e=>{const t=n[e];return t.type!==t.component.type}))&&(e.components=this.createRowComponents(e.data,t,!0))}setVariableTypeComponents(){this.variableTypeComponentsIndexes=[],r.default.each(this.component.components,((e,t)=>{e.typeChangeEnabled&&this.variableTypeComponentsIndexes.push(t)}))}isOpen(e){return[d.New,d.Editing,d.Viewing].includes(e.state)}isComponentVisibleInSomeRow(e){const t=this.editRows,n=[d.Saved,d.Editing,d.Draft],i=t.filter((e=>r.default.includes(n,e.state)));this.visibleInHeader=this.visibleInHeader||[];const o=(e,t)=>{t||r.default.remove(this.visibleInHeader,(t=>t===e.key)),t&&!r.default.includes(this.visibleInHeader,e.key)&&this.visibleInHeader.push(e.key)};if(r.default.isEmpty(t)){const t=this.createRowComponents({},0);let n;(0,u.eachComponent)(t,(t=>{t.component.key===e.key&&(n=t),t.checkConditions()}));const i=!n||n.visible;return[...this.components].forEach((e=>this.removeComponent(e,this.components))),o(e,i),i}const s=r.default.get(this.component,"openWhenEmpty")&&1===t.length&&t[0].state===d.New;return r.default.isEmpty(t)||!r.default.isEmpty(i)||s?r.default.some(s?t:i,((t,n)=>{let i;if(t.state===d.Editing)i=r.default.includes(this.visibleInHeader,e.key);else{const t=this.flattenComponents(n)[e.key];i=!t||t.visible,o(e,i)}return i})):r.default.includes(this.visibleInHeader,e.key)}render(e){if(this.builderMode)return super.render();const t=this.dataValue,n=this.headerTemplate,i=this.t.bind(this),o=this.displayAsTable?"editgridTable":"editgrid";return super.render(e||this.renderTemplate(o,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(n,{displayValue:e=>this.displayComponentValue(e,!0),components:this.component.components,value:t,t:i}),footer:this.renderString(r.default.get(this.component,"templates.footer"),{components:this.component.components,value:t,t:i}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map((e=>this.isOpen(e))),errors:this.editRows.map((e=>e.error)),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}renderComponents(e){const t=(e=e||this.getComponents()).map((e=>e.render())),n=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(n,{children:t,components:e})}attach(e){if(this.builderMode)return super.attach(e);this.loadRefs(e,{[this.addRowRef]:"multiple",[this.saveRowRef]:"multiple",[this.cancelRowRef]:"multiple",[this.rowRef]:"multiple"}),this.addRowElements.forEach((e=>{this.addEventListener(e,"click",(()=>this.addRow()))}));let t=0;this.rowElements.forEach(((e,n)=>{const i=this.editRows[n];(null==i?void 0:i.isRowSelected)&&e.classList.add("selected"),this.isOpen(i)?(this.attachComponents(e,i.components),this.addEventListener(this.saveRowElements[t],"click",(()=>this.saveRow(n,!0))),this.addEventListener(this.cancelRowElements[t],"click",(()=>this.cancelRow(n))),t++):[{className:"removeRow",event:"click",action:()=>this.removeRow(n,!0)},{className:"editRow",event:"click",action:()=>{this.editRow(n).then((()=>{var e;if(this.component.rowDrafts){this.validateRow(i,!1);const t=i.errors&&!!i.errors.length;this.component.modal&&t&&(null===(e=this.root)||void 0===e?void 0:e.submitted)&&(this.alert.showErrors(i.errors,!1),i.alerts=!0)}}))}},{className:"row",event:"click",action:()=>{e.classList.toggle("selected");let t="editGridSelectRow";Array.from(e.classList).includes("selected")?i.isRowSelected=!0:(delete i.isRowSelected,t="editGridUnSelectRow"),this.emit(t,{component:this.component,data:this.dataValue[n]})}}].forEach((({className:t,event:n,action:i})=>{const r=e.getElementsByClassName(t);Array.prototype.forEach.call(r,(e=>{this.addEventListener(e,n,i)}))}))})),t?this.addClass(this.refs.component,`formio-component-${this.component.type}-row-open`):this.removeClass(this.refs.component,`formio-component-${this.component.type}-row-open`);const n=super.attach(e);return this.loadRefs(e,{messageContainer:"single-scope"}),n}flattenRowDataValue(e){const t={};return Object.keys(e).forEach((n=>{r.default.isObject(e[n])&&!r.default.isNil(e[n])?Object.assign(t,this.flattenRowDataValue(e[n])):t[n]=e[n]})),t}isComponentVisibleInRow(e,t){const n=t[e.key];return!n||n.visible}displayComponentValue(e,t){return!!(e.hasOwnProperty("tableView")&&!e.tableView||!t?r.default.includes(this.visibleInHeader,e.key):this.isComponentVisibleInSomeRow(e))}renderRow(e,t){const n=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);{const e=this.flattenComponents(t),i=this.rowTemplate;return this.renderString(i,{row:n[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:e,displayValue:e=>this.displayComponentValue(e),isVisibleInRow:t=>this.isComponentVisibleInRow(t,e),getView:(t,n)=>{var i,r;const o=e[t.key],s=o?o.getView(n||o.dataValue):"",a=new RegExp("<(.*?)>");return"string"==typeof s&&s.length&&!(null===(i=o.component)||void 0===i?void 0:i.template)&&a.test(s)&&"html"!==(null===(r=o.component)||void 0===r?void 0:r.inputFormat)?``:s},state:this.editRows[t].state,t:this.t.bind(this)})}}eachComponent(e,t){r.default.each(this.getComponents(t),((t,n)=>{if(!1===e(t,n))return!1}))}restoreComponentsContext(){this.getComponents().forEach((e=>{var t;const n=this.dataValue[e.rowIndex],i=null===(t=this.editRows[e.rowIndex])||void 0===t?void 0:t.data;e.data=n||i}))}flattenComponents(e){const t={};return this.everyComponent((e=>{t[e.component.flattenAs||e.key]=e}),e),t}getComponents(e){var t;return this.editRows=this.editRows||[],this.builderMode?super.getComponents():r.default.isNumber(e)?(null===(t=this.editRows[e])||void 0===t?void 0:t.components)||[]:this.editRows.reduce(((e,t)=>e.concat(t.components||[])),[])}destroyComponents(e=!1,t=0){if(this.builderMode)return super.destroyComponents(e);this.getComponents(t).slice().forEach((t=>this.removeComponent(t,this.components,e)))}createRow(e,t){const n={components:this.createRowComponents(e,t),data:e,state:d.New,backup:null,error:null,rowIndex:t};return this.editRows.push(n),this.inlineEditMode&&this.dataValue.push(e),n}addRow(){if(this.options.readOnly)return;const e=this.editRows.length,t=this.createRow({},e);return this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:t}),this.checkRow("checkData",null,{},t.data,t.components),this.component.modal?this.addRowModal(e):this.redraw(),t}addRowModal(e){const t=this.ce("div"),n=this.editRows[e];n.willBeSaved=!1;const{components:i}=n;t.innerHTML=this.renderComponents(i);const r=this.component.modal?this.createModal(t,{},(()=>this.showDialog(e))):void 0;return r.classList.add(`editgrid-row-modal-${this.id}`),n.dialog=r,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new l.default(r.refs.dialogContents,this),this.addEventListener(r,"close",(()=>{n.willBeSaved||(this.editRows[e]&&this.editRows[e].state!==d.New&&this.editRows[e].components.forEach((e=>{e.setPristine(!0)})),this.cancelRow(e)),this.alert&&(this.alert.clear(),this.alert=null),delete n.confirmationDialog,delete n.dialog})),r.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:()=>{this.component.rowDrafts||n.components.forEach((e=>e.setPristine(!1))),this.validateRow(n,!0)||this.component.rowDrafts?(n.willBeSaved=!0,r.close(),this.saveRow(e,!0)):(this.alert.showErrors(n.errors,!1),n.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(t,i)}showDialog(e){const t=this.editRows[e];if(r.default.isEqual(t.backup,t.data))return o.default.resolve();const n=this.ce("div",{ref:"confirmationDialog"}),i=this.component.dialogTemplate||this.defaultDialogTemplate;n.innerHTML=i,n.refs={},this.loadRefs.call(n,n,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});const s=this.createModal(n);s.classList.add(`editgrid-row-modal-confirmation-${this.id}`);const a=e=>{e.preventDefault(),s.close()};let l;const u=new o.default(((e,t)=>{l={resolve:e,reject:t}}));return this.addEventListener(n.refs.dialogYesButton,"click",(e=>{a(e),l.resolve()})),this.addEventListener(n.refs.dialogCancelButton,"click",(e=>{a(e),l.reject()})),t.confirmationDialog=s,u}editRow(e){const t=this.editRows[e],n=t.state===d.Editing||t.state===d.New;if(!t||n)return o.default.resolve();t.prevState=t.state,t.state=this.options.readOnly?d.Viewing:d.Editing,this.lazyLoad&&0===t.components.length&&(t.components=this.createRowComponents(t.data,e));const i=(0,u.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=i:(t.backup=(0,u.fastCloneDeep)(t.data),t.data=i,this.restoreRowContext(t)),this.component.modal?this.addRowModal(e):this.redraw()}clearErrors(e){const t=this.editRows[e];t&&Array.isArray(t.components)&&t.components.forEach((e=>{e.setPristine(!0),e.setCustomValidity("")}))}cancelRow(e){if(this.options.readOnly)return;const t=this.editRows[e];switch(t.state){case d.New:t.state=d.Removed,this.clearErrors(e),this.destroyComponents(!1,e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case d.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.clearErrors(e)}this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:t}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}saveRow(e,t){var n,i;const r=this.editRows[e];if(this.options.readOnly)return;this.component.rowDrafts||r.components.forEach((e=>e.setPristine(!1)));const o=this.validateRow(r,!0);if(!this.component.rowDrafts&&!o)return!1;if(this.saveEditMode){const t=this.dataValue;switch((null===(i=null===(n=this.root)||void 0===n?void 0:n.focusedComponent)||void 0===i?void 0:i.component.typeChangeEnabled)&&(this.root.focusedComponent=null),r.state){case d.New:{const n=t.length;t.push(r.data),r.components.forEach((e=>e.rowIndex=n)),e!==n&&(this.editRows.splice(e,1),this.editRows.splice(n,0,r));break}case d.Editing:t[e]=r.data}}return r.state=this.component.rowDrafts&&!o?d.Draft:d.Saved,r.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:r.data,instance:this}),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&r.components.forEach((e=>e.setPristine(this.pristine))),this.checkValidity(null,!0),this.redraw(),r.alerts&&(r.alerts=!1),!0}beforeFocus(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);const t=this.getRelativePath(e.path),n=(0,u.getArrayFromComponentPath)(t),i=n[0];let o=n[0];this.editRows.forEach(((e,t)=>{e.rowIndex===i&&(o=t)})),r.default.isNumber(o)&&this.editRow(o)}updateComponentsRowIndex(e,t){e.forEach(((e,n)=>{e.rowIndex=t,e.row=`${t}-${n}`}))}updateRowsComponents(e){this.editRows.slice(e).forEach(((t,n)=>{this.updateComponentsRowIndex(t.components,e+n)}))}baseRemoveRow(e){const t=this.editRows[e];return t.state=d.Removed,this.destroyComponents(!1,e),t}removeRow(e,t){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}createRowComponents(e,t,n){if(this.components)for(let e=0;e{var a;if(n&&i&&this.variableTypeComponentsIndexes.length){const e=i[s];if(!r.default.includes(this.variableTypeComponentsIndexes,s)||(null==e?void 0:e.type)===(null===(a=null==e?void 0:e.component)||void 0===a?void 0:a.type))return e;o=e.component}const l=r.default.clone(o),u=r.default.clone(this.options);u.name+=`[${t}]`,u.row=`${t}-${s}`,u.onChange=(e={},n,i)=>{var r,o;if((null===(r=n.instance.root)||void 0===r?void 0:r.id)&&(null===(o=this.root)||void 0===o?void 0:o.id)!==n.instance.root.id?n.instance.root.triggerChange(e,n,i):this.component.modal||this.triggerRootChange(e,n,i),this.inlineEditMode)return;const s=this.editRows[t];if(null==s?void 0:s.alerts)this.checkData(null,Object.assign(Object.assign({},e),{changed:n,rowIndex:t}),this.data);else if(s){const t=this.component.rowDrafts&&!this.shouldValidateDraft(s);this.checkRow("checkData",null,Object.assign(Object.assign({},e),{changed:n,silentCheck:t}),s.data,s.components,t)}this.variableTypeComponentsIndexes.length&&(this.checkRowVariableTypeComponents(s,t),this.redraw())};const c=this.createComponent(r.default.assign({},l,{row:u.row}),u,e,null,n&&i?i[s]:null);return c.rowIndex=t,c.inEditGrid=!0,c}))}hasOpenRows(){return this.editRows.some((e=>this.isOpen(e)))}shouldValidateDraft(e){var t,n;return e.state===d.Draft&&!this.pristine&&!(null===(t=this.root)||void 0===t?void 0:t.pristine)&&!this.hasOpenRows()||(null===(n=this.root)||void 0===n?void 0:n.submitted)}shouldValidateRow(e,t){return this.shouldValidateDraft(e)||e.state===d.Editing||e.alerts||t}validateRow(e,t,n){var i;let r=!0;const o=[...this.errors];return this.shouldValidateRow(e,t)&&e.components.forEach((i=>{const o=this.component.rowDrafts&&!this.shouldValidateDraft(e)||n;r&=i.checkValidity(null,t,null,o)})),this.component.validate&&this.component.validate.row&&(r=this.evaluate(this.component.validate.row,{valid:r,row:e.data},"valid",!0),"true"!==r.toString()?(e.error=r,r=!1):e.error=null,null===r&&(r=`Invalid row validation for ${this.key}`)),e.errors=r?null:this.errors.filter((e=>!o.includes(e))),this.component.rowDrafts&&!(null===(i=this.root)||void 0===i?void 0:i.submitted)||this.showRowErrorAlerts(e,!!r),!!r}showRowErrorAlerts(e,t){var n;e.alerts&&this.alert&&((null===(n=e.errors)||void 0===n?void 0:n.length)&&!t?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear())}checkValidity(e,t,n,i){return e=e||this.rootValue,n=n||this.data,this.checkCondition(n,e)?this.checkComponentValidity(e,t,n,{silentCheck:i}):(this.setCustomValidity(""),!0)}checkComponentValidity(e,t,n,i={}){var r,o,s;const{silentCheck:a}=i,l=this.errors.length,u=super.checkComponentValidity(e,t,n,i);if(!u&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,t,n))return!0;let c=!0,d=!1;if(this.editRows.forEach(((e,n)=>{const i=this.validateRow(e,t,a);if(c&=i,this.rowRefs){const t=this.rowRefs[n];if(t){const n=t.querySelector(".editgrid-row-error");i||!n||this.component.rowDrafts&&!this.shouldValidateDraft(e)?n&&(n.textContent=""):(this.addClass(n,"help-block"),n.textContent=this.t(this.errorMessage("invalidRowError")))}}d|=t&&this.isOpen(e)})),!c)return a||this.component.rowDrafts&&!(null===(r=this.root)||void 0===r?void 0:r.submitted)||(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),t),this.removeClass(this.element,"has-error")),!1;if(d&&this.saveEditMode)return this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),t),!1;const h=this.invalid||this.invalidMessage(e,t);return(null===(o=this.errors)||void 0===o?void 0:o.length)!==l&&(null===(s=this.root)||void 0===s?void 0:s.submitted)&&!h?(this.setCustomValidity(h,t),this.root.showErrors()):this.setCustomValidity(h,t),u}changeState(e,t){e||t.resetValue&&this.component.modalEdit?this.rebuild():this.redraw()}setValue(e,t={}){if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!=typeof e)return!1;e=[e]}const n=this.hasChanged(e,this.dataValue);t.noValidate=!n,this.parent&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach(((e,n)=>{const i=this.editRows[n];i?(i.data=e,this.restoreRowContext(i,t),i.state=d.Saved,i.backup=null,i.error=null):this.editRows[n]={components:this.lazyLoad?[]:this.createRowComponents(e,n),data:e,state:d.Saved,backup:null,error:null}}));let{length:i}=this.dataValue;return this.editRows[i]&&this.editRows[i].state===d.New&&(i+=1),this.editRows.slice(i).forEach(((e,t)=>this.baseRemoveRow(i+t))),this.editRows=this.editRows.slice(0,i),this.openWhenEmpty(),this.updateOnChange(t,n),this.checkData(),this.changeState(n,t),n}openWhenEmpty(){const e=!this.dataValue.length&&this.component.openWhenEmpty;if(!this.editRows.length&&e&&!this.builderMode){const e={};this.createRow(e,0)}}restoreRowContext(e,t={}){e.components.forEach((n=>{n.data=e.data,this.setNestedValue(n,e.data,t)}))}emptyRows(){this.editRows.forEach(((e,t)=>this.destroyComponents(!1,t))),this.editRows=[]}resetValue(){super.resetValue(),this.emptyRows()}}t.default=h,h.prototype.hasChanged=a.default.prototype.hasChanged},60762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},35818:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10196));t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:()=>!r.default.noeval},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},45563:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10196));t.default=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the header of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&!e.displayAsTable},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the header of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&e.displayAsTable},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the Lodash Template used to render each row of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&!e.displayAsTable},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the Lodash Template used to render each row of the Edit grid.",customConditional:({data:e})=>(!r.default.noeval||r.default.protectedEval)&&e.displayAsTable},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the footer of the Edit grid.",customConditional:()=>!r.default.noeval||r.default.protectedEval},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}]},1537:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invalid. Errors will occur when try to submit with invalid rows."}]},68991:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(7318)),s=i(n(48949));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"validation",components:s.default}],...e)}},99563:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767));class o extends r.default{static schema(...e){return r.default.schema({type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}},...e)}static get builderInfo(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:o.schema()}}init(){super.init(),this.validators.push("email")}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.inputInfo;return e.attr.type=this.component.mask?"password":"email",e}normalizeValue(e,t={}){return e=super.normalizeValue(e,t),this.options.server&&e&&(e=Array.isArray(e)?e.map((e=>e.toLowerCase())):e.toLowerCase()),e}}t.default=o},7318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},48949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},95201:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(69922));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},57441:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(39142));class o extends r.default{static schema(...e){return r.default.schema({label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1},...e)}static get builderInfo(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",weight:20,schema:o.schema()}}get defaultSchema(){return o.schema()}get className(){return`${this.transform("class","form-group")} ${super.className}`}get templateName(){return"fieldset"}constructor(...e){super(...e),this.noField=!0}}t.default=o},69922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:e=>e.data.legend},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},86129:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(10518)),s=i(n(670)),a=i(n(74736)),l=i(n(39277));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:l.default}],...e)}},54065:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(94342)),s=n(34600),a=r(n(38140)),l=r(n(2543)),u=r(n(53632)),c=r(n(70103)),d=r(n(18092));let h,p,f=navigator.camera||h;"undefined"!=typeof window?p=window.HTMLCanvasElement:void 0!==n.g&&(p=n.g.HTMLCanvasElement),p&&!p.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var i=this;setTimeout((function(){for(var r=atob(i.toDataURL(t,n).split(",")[1]),o=r.length,s=new Uint8Array(o),a=0;ae.url))}get emptyValue(){return[]}getValueAsString(e){return l.default.isArray(e)?l.default.map(e,"originalName").join(", "):l.default.get(e,"originalName","")}getValue(){return this.dataValue}get defaultValue(){const e=super.defaultValue;return Array.isArray(e)?e:[]}get hasTypes(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}get fileDropHidden(){return this._fileBrowseHidden}set fileDropHidden(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}render(){return super.render(this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}getVideoStream(e){return navigator.mediaDevices.getUserMedia({video:Object.assign({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}stopVideoStream(e){e.getVideoTracks().forEach((e=>e.stop()))}getFrame(e){return new u.default((t=>{const n=document.createElement("canvas");n.height=e.videoHeight,n.width=e.videoWidth,n.getContext("2d").drawImage(e,0,0),n.toBlob(t)}))}startVideo(){this.getVideoStream().then((e=>{this.videoStream=e;const{videoPlayer:t}=this.refs;if(!t)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();t.srcObject=e;const n=parseInt(this.component.webcamSize)||320;t.setAttribute("width",n),t.play()})).catch((e=>{console.error(e),this.cameraMode=!1,this.redraw()}))}stopVideo(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}takePicture(){const{videoPlayer:e}=this.refs;if(!e)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();this.getFrame(e).then((e=>{e.name=`photo-${Date.now()}.png`,this.upload([e]),this.cameraMode=!1,this.redraw()}))}browseFiles(e={}){return new u.default((t=>{const n=this.ce("input",Object.assign({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},e));document.body.appendChild(n),n.addEventListener("change",(()=>{t(n.files),document.body.removeChild(n)}),!0),"function"==typeof n.trigger?n.trigger("click"):n.click()}))}set cameraMode(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()}get cameraMode(){return this._cameraMode}get useWebViewCamera(){return this.imageUpload&&f}get imageUpload(){return Boolean(this.component.image)}get browseOptions(){const e={};if(this.component.multiple&&(e.multiple=!0),!this.isMobile.any){const t=this.component.filePattern.trim()||"",n="image/*";!this.imageUpload||t&&"*"!==t?this.imageUpload&&!t.includes(n)?e.accept=`${n},${t}`:e.accept=t:e.accept=n}return e}deleteFile(e){const{options:t={}}=this.component;if(e&&["url","indexeddb"].includes(this.component.storage)){const{fileService:n}=this;if(n&&"function"==typeof n.deleteFile)n.deleteFile(e,t);else{const t=this.options.formio||this.root&&this.root.formio;t&&t.makeRequest("",e.url,"delete")}}}attach(e){this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[];const t=super.attach(e);if(this.refs.fileDrop){this.statuses.length||this.refs.fileDrop.removeAttribute("hidden");const e=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(t){this.className="fileSelector",t.preventDefault(),e.upload(t.dataTransfer.files)}))}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",(e=>{e.preventDefault(),this.browseFiles(this.browseOptions).then((e=>{this.upload(e)}))})),this.refs.fileLink.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.getFile(this.dataValue[t])}))})),this.refs.removeLink.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{const n=this.dataValue[t];this.deleteFile(n),e.preventDefault(),this.splice(t),this.redraw()}))})),this.refs.fileStatusRemove.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.abortUpload&&this.abortUpload(),this.statuses.splice(t,1),this.redraw()}))})),this.refs.galleryButton&&f&&this.addEventListener(this.refs.galleryButton,"click",(e=>{e.preventDefault(),f.getPicture((e=>{window.resolveLocalFileSystemURL(e,(e=>{e.file((e=>{const t=new FileReader;t.onloadend=t=>{const n=new Blob([new Uint8Array(t.target.result)],{type:e.type});n.name=e.name,this.upload([n])},t.readAsArrayBuffer(e)}))}))}),(e=>{console.error(e)}),{sourceType:f.PictureSourceType.PHOTOLIBRARY})})),this.refs.cameraButton&&f&&this.addEventListener(this.refs.cameraButton,"click",(e=>{e.preventDefault(),f.getPicture((e=>{window.resolveLocalFileSystemURL(e,(e=>{e.file((e=>{const t=new FileReader;t.onloadend=t=>{const n=new Blob([new Uint8Array(t.target.result)],{type:e.type});n.name=e.name,this.upload([n])},t.readAsArrayBuffer(e)}))}))}),(e=>{console.error(e)}),{sourceType:f.PictureSourceType.CAMERA,encodingType:f.EncodingType.PNG,mediaType:f.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})})),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",(e=>{e.preventDefault(),this.takePicture()})),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",(e=>{e.preventDefault(),this.cameraMode=!this.cameraMode,this.redraw()})),this.refs.fileType.forEach(((e,t)=>{this.dataValue[t].fileType=this.dataValue[t].fileType||this.component.fileTypes[0].label,this.addEventListener(e,"change",(e=>{e.preventDefault();const n=this.component.fileTypes.find((t=>t.value===e.target.value));this.dataValue[t].fileType=n.label}))})),this.fileService){const e=[];this.filesReady=new u.default(((e,t)=>{this.filesReadyResolve=e,this.filesReadyReject=t})),this.refs.fileImage.forEach(((t,n)=>{e.push(this.loadImage(this.dataValue[n]).then((e=>t.src=e)))})),e.length?u.default.all(e).then((()=>{this.filesReadyResolve()})).catch((()=>this.filesReadyReject())):this.filesReadyResolve()}return t}fileSize(e,t,n,i,r){return`${(t=Math,n=t.log,r=n(e)/n(1024)|0,e/t.pow(1024,r)).toFixed(2)} ${r?`${"kMGTPEZY"[--r]}B`:"Bytes"}`}globStringToRegex(e){let t="",n=[];if((e=e.replace(/\s/g,"")).length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{const i=e.split(",");if(i.length>1)for(let e=0;e|:\\-]","g"),"\\$&")}$`,t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}translateScalars(e){if("string"==typeof e){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024);if(e.search(/gb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024*1024);if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e}validatePattern(e,t){if(!t)return!0;const n=this.globStringToRegex(t);let i=!0;if(n.regexp&&n.regexp.length){const t=new RegExp(n.regexp,"i");i=!l.default.isNil(e.type)&&t.test(e.type)||!l.default.isNil(e.name)&&t.test(e.name)}return i=n.excludes.reduce(((t,n)=>{const i=new RegExp(n,"i");return t&&(l.default.isNil(e.type)||!i.test(e.type))&&(l.default.isNil(e.name)||!i.test(e.name))}),i),i}validateMinSize(e,t){return e.size+.1>=this.translateScalars(t)}validateMaxSize(e,t){return e.size-.1<=this.translateScalars(t)}upload(e){this.component.multiple||(this.statuses.length&&(this.statuses=[]),e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,(e=>i(this,void 0,void 0,(function*(){const t=(0,s.uniqueName)(e.name,this.component.fileNameTemplate,this.evalContext()),n=e.name?e.name.replaceAll("<","<").replaceAll(">",">"):e.name,i={originalName:n,name:t,size:e.size,status:"info",message:this.t("Processing file. Please wait..."),hash:""};if("true"===this.root.form.submissionRevisions){this.statuses.push(i),this.redraw();const t=new d.default,n=yield new Promise(((n,i)=>{this.emit("fileUploadingStart"),t.md5(e,((e,t)=>e?i(e):n(t)))}));this.emit("fileUploadingEnd"),i.hash=n}this.filesUploading||(this.filesUploading=[]);const r=this.filesUploading.some((t=>t===e.name));this.filesUploading.push(e.name);const o=this.dataValue.some((t=>t.originalName===e.name)),a=this.statuses.findIndex((t=>t.originalName===e.name&&"error"===t.status));(o||r)&&(i.status="error",i.message=this.t(`File with the same name is already ${r?"being ":""}uploaded`)),-1!==a&&(this.statuses.splice(a,1),this.redraw()),this.component.filePattern&&!this.validatePattern(e,this.component.filePattern)&&(i.status="error",i.message=this.t("File is the wrong type; it must be {{ pattern }}",{pattern:this.component.filePattern})),this.component.fileMinSize&&!this.validateMinSize(e,this.component.fileMinSize)&&(i.status="error",i.message=this.t("File is too small; it must be at least {{ size }}",{size:this.component.fileMinSize})),this.component.fileMaxSize&&!this.validateMaxSize(e,this.component.fileMaxSize)&&(i.status="error",i.message=this.t("File is too big; it must be at most {{ size }}",{size:this.component.fileMaxSize}));const u=this.interpolate(this.component.dir||""),{fileService:h}=this;if(h||(i.status="error",i.message=this.t("File Service not provided.")),"true"!==this.root.form.submissionRevisions&&(this.statuses.push(i),this.redraw()),"error"!==i.status){this.component.privateDownload&&(e.private=!0);const{storage:r,options:o={}}=this.component,s=this.interpolate(this.component.url,{file:i});let a=null,d=null;this.root.everyComponent((e=>{var t,n;((null===(t=e.component)||void 0===t?void 0:t.submissionAccess)||(null===(n=e.component)||void 0===n?void 0:n.defaultPermission))&&(d=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}],d.forEach((t=>{a=["admin","write","create"].includes(t.type)?e.component.key:null})))}));const p=this.component.fileKey||"file",f=a?this.currentForm.submission.data[a]._id:null;let m=null;if(this.root.options.fileProcessor)try{this.refs.fileProcessingLoader&&(this.refs.fileProcessingLoader.style.display="block");const t=(0,c.default)(this.fileService,this.root.options.fileProcessor);m=yield t(e,this.component.properties)}catch(e){return i.status="error",i.message=this.t("File processing has been failed."),this.fileDropHidden=!1,void this.redraw()}finally{this.refs.fileProcessingLoader&&(this.refs.fileProcessingLoader.style.display="none")}i.message=this.t("Starting upload."),this.redraw();const g=h.uploadFile(r,m||e,t,u,(e=>{i.status="progress",i.progress=parseInt(100*e.loaded/e.total),delete i.message,this.redraw()}),s,o,p,d,f,(()=>{this.emit("fileUploadingStart",g)}),(e=>this.abortUpload=e)).then((e=>{const t=this.statuses.indexOf(i);-1!==t&&this.statuses.splice(t,1),e.originalName=n,e.hash=i.hash,this.hasValue()||(this.dataValue=[]),this.dataValue.push(e),l.default.pull(this.filesUploading,e.originalName),this.fileDropHidden=!1,this.redraw(),this.triggerChange(),this.emit("fileUploadingEnd",g)})).catch((t=>{i.status="error",i.message="string"==typeof t?t:t.toString(),delete i.progress,this.fileDropHidden=!1,l.default.pull(this.filesUploading,e.name),this.redraw(),this.emit("fileUploadingEnd",g)}))}else this.filesUploading.splice(this.filesUploading.indexOf(e.name),1)})))))}getFile(e){const{options:t={}}=this.component,{fileService:n}=this;if(!n)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),n.downloadFile(e,t).then((e=>{e&&(["base64","indexeddb"].includes(e.storage)?(0,a.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))})).catch((e=>{alert(e)}))}focus(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}destroy(e=!1){this.stopVideo(),super.destroy(e)}}t.default=m},10518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"defaultValue",ignore:!0}]},670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0}]},74736:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),o=i(n(2543));t.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>o.default.map(r.Formio.Providers.getProviders("storage"),((e,t)=>({label:e.title,value:t})))}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See https://github.com/danialfarid/ng-file-upload#server-side for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n "withCredentials": true\n}',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:'(optional) { {name} }-{ {guid} }"',tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See https://github.com/danialfarid/ng-file-upload#full-reference for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See https://github.com/danialfarid/ng-file-upload#full-reference for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See https://github.com/danialfarid/ng-file-upload#full-reference for how to specify file sizes.",weight:70}]},39277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},8957:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(21086)),s=i(n(86892)),a=i(n(82710));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{label:"Form",key:"form",weight:10,components:s.default},{label:"Data",key:"data",weight:10,components:a.default}],...e)}},86309:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(96877)),s=i(n(85179)),a=i(n(30228)),l=i(n(53632)),u=n(34600),c=n(29857),d=i(n(18633));class h extends o.default{static schema(...e){return o.default.schema({label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0},...e)}static get builderInfo(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:h.schema()}}init(){if(super.init(),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),this.component.src||this.options.formio||!this.component.form&&!this.component.path||(this.component.project?(this.formSrc=c.Formio.getBaseUrl(),(0,u.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+=`/${this.component.project}`,this.options.project=this.formSrc):(this.formSrc=c.Formio.getProjectUrl(),this.options.project=this.formSrc),this.component.form?(0,u.isMongoId)(this.component.form)?this.formSrc+=`/form/${this.component.form}`:this.formSrc+=`/${this.component.form}`:this.component.path&&(this.formSrc+=`/${this.component.path}`)),!this.formSrc&&this.options.formio){const e=this.options.formio.formsUrl;if(this.component.form&&(0,u.isMongoId)(this.component.form))this.formSrc=`${e}/${this.component.form}`;else{const t=this.component.path||this.component.form;this.formSrc=`${e.replace(/\/form$/,"")}/${t}`}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}get dataReady(){return this.subFormReady||l.default.resolve()}get defaultValue(){return this.subForm?super.defaultValue:null}get defaultSchema(){return h.schema()}get emptyValue(){return{data:{}}}get ready(){return this.subFormReady||l.default.resolve()}get useOriginalRevision(){var e,t;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!!(null===(t=this.formObj)||void 0===t?void 0:t.revisions)}setFormRevision(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,"");const t=Number.parseInt(e);isNaN(t)?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+=`/v/${e}`)}getComponent(e,t){"data"===(e=(0,u.getArrayFromComponentPath)(e))[0]&&e.shift();const n=`${this.path}.data.${(0,u.getStringFromComponentPath)(e)}`;if(this.subForm)return this.subForm.getComponent(e,t,n)}getSubOptions(e={}){return e.parentPath=`${this.path}.data.`,e.events=this.createEmitter(),r.default.set(e,"buttonSettings.showSubmit",!1),this.options?(this.options.base&&(e.base=this.options.base),this.options.project&&(e.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(e.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(e.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(e.buttonSettings=r.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange),e):e}render(){if(this.builderMode)return super.render(this.component.label||"Nested form");const e=this.subForm?this.subForm.render():this.renderTemplate("loading");return super.render(e)}asString(e){return this.getValueAsString(e)}getValueAsString(e){return e?!e.data&&e._id?e._id:e.data&&Object.keys(e.data).length?"[Complex Data]":"No data provided":"No data provided"}attach(e){return this.builderMode?super.attach(e):super.attach(e).then((()=>(!this.isSubFormLazyLoad()||this.hasLoadedForm||this.subFormLoading||this.createSubForm(!0),this.subFormReady.then((()=>{if(this.empty(e),this.options.builder)this.setContent(e,this.ce("div",{class:"text-muted text-center p-2"},this.text(this.formObj.title)));else{if(this.setContent(e,this.render()),this.subForm&&(this.isNestedWizard&&(e=this.root.element),this.subForm.attach(e),this.valueChanged=this.hasSetValue,this.valueChanged||"submitted"===this.dataValue.state?this.restoreValue():this.setDefaultValue()),!this.builderMode&&this.component.modalEdit){const t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue;this.componentModal=new s.default(this,e,t,n),this.setOpenModalElement()}this.calculateValue()}})))))}detach(){this.subForm&&this.subForm.detach(),super.detach()}get currentForm(){return this._currentForm}get hasLoadedForm(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}set currentForm(e){this._currentForm=e,this.subForm&&this.subForm.getComponents().forEach((e=>{e.currentForm=this}))}get isRevisionChanged(){return r.default.isNumber(this.subFormRevision)&&r.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}destroy(e=!1){this.subForm&&(this.subForm.destroy(e),this.subForm=null,this.subFormReady=null),super.destroy(e)}redraw(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),super.redraw()}everyComponent(...e){this.subForm&&this.subForm.everyComponent(...e)}setSubFormDisabled(e){e.disabled=this.disabled}updateSubWizards(e){var t,n;if(this.isNestedWizard&&(null===(t=this.root)||void 0===t?void 0:t.subWizards)&&"wizard"===(null===(n=null==e?void 0:e._form)||void 0===n?void 0:n.display)){const t=this.root.subWizards.findIndex((e=>e.component.form===this.component.form));-1!==t?this.root.subWizards[t]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}createSubForm(e){return this.subFormReady=this.loadSubForm(e).then((e=>{if(e)return(0,u.eachComponent)(e.components,(e=>{this.hideSubmitButton(e)})),this.subForm&&this.subForm.destroy(),new d.default(e,this.getSubOptions()).ready.then((e=>(this.subForm=e,this.subForm.currentForm=this,this.subForm.parent=this,this.subForm.parentVisible=this.visible,this.subForm.on("change",(()=>{this.subForm&&(this.dataValue=this.subForm.getValue(),this.triggerChange({noEmit:!0}))})),this.subForm.url=this.formSrc,this.subForm.nosubmit=!0,this.subForm.root=this.root,this.subForm.localRoot=this.isNestedWizard?this.localRoot:this.subForm,this.restoreValue(),this.valueChanged=this.hasSetValue,this.onChange(),this.subForm)))})).then((e=>(this.updateSubWizards(e),e))),this.subFormReady}hideSubmitButton(e){"button"===e.type&&("submit"===e.action||!e.action)&&(e.hidden=!0)}loadSubForm(e){return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?l.default.resolve():!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&r.default.isUndefined(this.subFormRevision)?this.formSrc?(this.subFormLoading=!0,new c.Formio(this.formSrc).loadForm({params:{live:1}}).then((e=>(this.formObj=e,this.subFormLoading=!1,e))).catch((e=>(console.log(e),null)))):l.default.resolve():(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),l.default.resolve(this.formObj))}get subFormData(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}checkComponentValidity(e,t,n,i){const r=(i=i||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,t,null,r):super.checkComponentValidity(e,t,n,i)}checkComponentConditions(e,t,n){const i=super.checkComponentConditions(e,t,n);return i?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then((()=>{if(this.subForm)return this.subForm.checkConditions(this.subFormData)})),i):i}calculateValue(e,t,n){return this.subForm?this.subForm.calculateValue(this.subFormData,t):super.calculateValue(e,t,n)}setPristine(e){super.setPristine(e),this.subForm&&this.subForm.setPristine(e)}get shouldSubmit(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}getSubFormData(){return"pdf"===r.default.get(this.subForm,"form.display")?this.subForm.getSubmission():l.default.resolve(this.dataValue)}submitSubForm(e){return this.shouldSubmit?this.subFormReady.then((()=>this.subForm?(this.subForm.nosubmit=!1,this.subForm.submitForm().then((e=>(this.subForm.loading=!1,this.subForm.showAllErrors=!1,this.dataValue=e.submission,this.dataValue))).catch((t=>(this.subForm.showAllErrors=!0,e?(this.subForm.onSubmissionError(t),l.default.reject(t)):{})))):this.dataValue)):this.getSubFormData()}beforePage(e){return e?this.submitSubForm(!0).then((()=>super.beforePage(e))):super.beforePage(e)}beforeSubmit(){var e;const t=this.dataValue;return t&&t._id&&t.form&&!(null===(e=this.subForm)||void 0===e?void 0:e.wizard)?(this.dataValue=t,l.default.resolve(this.dataValue)):this.submitSubForm(!1).then((()=>this.dataValue)).then((()=>super.beforeSubmit()))}isSubFormLazyLoad(){var e,t;return"wizard"===(null===(t=null===(e=this.root)||void 0===e?void 0:e._form)||void 0===t?void 0:t.display)&&this.component.lazyLoad}isHidden(){return!this.visible||!super.checkConditions(this.rootValue)}setValue(e,t={}){var n;const i=super.setValue(e,t);if(this.valueChanged=!0,this.subForm){const i=e._frid?"_frid":"_vid";this.useOriginalRevision&&(r.default.isNumber(e[i])||r.default.isNumber(e._fvid))&&r.default.isNumber(null===(n=this.subForm.form)||void 0===n?void 0:n[i])&&e._fvid!==this.subForm.form[i]?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then((()=>{this.attach(this.element)}))):this.setSubFormValue(e,t)}return i}setSubFormValue(e,t){if(e&&e._id&&this.subForm.formio&&r.default.isEmpty(e.data)){const t=e.form||this.formObj.form||this.component.form,n=`${this.subForm.formio.formsUrl}/${t}/submission/${e._id}`;this.subForm.setUrl(n,this.options),this.subForm.loadSubmission()}else this.subForm.setValue(e,t)}isEmpty(e=this.dataValue){return null===e||r.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(e.data)&&!e._id}areAllComponentsEmpty(e){let t=!0;return this.subForm?this.subForm.everyComponent((n=>{const i=r.default.get(e,n.key);t&=n.isEmpty(i)})):t=!1,t}getValue(){return this.subForm?this.subForm.getValue():this.dataValue}get errors(){let e=super.errors;return this.subForm&&(e=e.concat(this.subForm.errors)),e}updateSubFormVisibility(){this.subForm&&(this.subForm.parentVisible=this.visible)}get isNestedWizard(){var e,t,n,i,r;return"wizard"===(null===(t=null===(e=this.subForm)||void 0===e?void 0:e._form)||void 0===t?void 0:t.display)&&"wizard"===(null===(r=null===(i=null===(n=this.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i._form)||void 0===r?void 0:r.display)}get visible(){return super.visible}set visible(e){const t=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((()=>{this.updateSubFormVisibility(),this.clearOnHide()})),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),t?this.rebuild():this.redraw()}!e&&t&&this.root.redraw()}get parentVisible(){return super.parentVisible}set parentVisible(e){if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((()=>{this.updateSubFormVisibility()})),void this.redraw();this.updateSubFormVisibility(),this.redraw()}}isInternalEvent(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}createEmitter(){const e=new a.default,t=e.emit,n=this;return e.emit=function(e,...i){const r=e.replace(`${n.options.namespace}.`,"");t.call(this,e,...i),n.isInternalEvent(r)||n.emit(r,...i)},e}deleteValue(){super.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}t.default=h},82710:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844));t.default=[r.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'

    Example:

    value = data.firstName + " " + data.lastName;

    ','

    Example:

    {"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}
    '),r.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"

    Example:

    value = data.a + data.b + data.c;

    ",'

    Example:

    {"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}

    Click here for an example

    '),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}]},21086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},86892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"{{ item.title }}",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional({instance:e,data:t}){var n,i,r,o;const s=null===(i=null===(n=e.root)||void 0===n?void 0:n.getComponent("form"))||void 0===i?void 0:i.defaultDownloadedResources.find((e=>e._id===t.form)),a="wizard";return(null===(o=null===(r=e.options)||void 0===r?void 0:r.editForm)||void 0===o?void 0:o.display)===a&&s&&s.display!==a}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"{{ item._vid }}",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},78665:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(18106)),s=i(n(19274));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}],...e)}},68905:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(17389));class o extends r.default{static schema(...e){return r.default.schema({type:"hidden",tableView:!1,inputType:"hidden"},...e)}static get builderInfo(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",schema:o.schema()}}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.elementInfo();return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}get skipInEmail(){return!0}validateMultiple(){return!1}labelIsHidden(){return!0}get emptyValue(){return""}setValue(e,t={}){return this.updateValue(e,t)}getValue(){return this.dataValue}}t.default=o},19274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},18106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},50983:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(21026)),s=i(n(16022));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:s.default}],...e)}},3571:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),o=i(n(2543));class s extends r.default{static schema(...e){return r.default.schema({label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1},...e)}static get builderInfo(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",schema:s.schema()}}get defaultSchema(){return s.schema()}get content(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return` ${this.component.content} `;const e=o.default.get(this.root,"submission",{}),t=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(t,this.shouldSanitizeValue)}get singleTags(){return["br","img","hr"]}checkRefreshOn(e){super.checkRefreshOn(e),!this.builderMode&&this.component.refreshOnChange&&this.element&&!o.default.isUndefined(e)&&(o.default.isBoolean(e)&&e||!o.default.isEmpty(e))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}renderContent(){const e=o.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map((t=>({attr:t.attr,value:this.interpolate(t.value,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data})}))),content:this.content,singleTags:this.singleTags})}render(){return super.render(this.renderContent())}attach(e){return this.loadRefs(e,{html:"single"}),super.attach(e)}}t.default=s},21026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",key:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
    Content
    ',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},16022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
    Content
    ',key:"content",weight:30,input:!0,customConditional:e=>"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}]}]}]}]},27452:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(46103)),o=i(n(73249)),s=i(n(27539)),a=i(n(53067)),l=i(n(96877)),u=i(n(85179)),c=i(n(44435)),d=i(n(95211)),h=i(n(77171)),p=i(n(81841)),f=i(n(7927)),m=i(n(88131)),g=i(n(22823)),v=i(n(80865)),y=i(n(99563)),b=i(n(57441)),_=i(n(54065)),w=i(n(86309)),k=i(n(68905)),x=i(n(17389)),E=i(n(14463)),C=i(n(94342)),O=i(n(80460)),S=i(n(3571)),P=i(n(39142)),A=i(n(42574)),M=i(n(33670)),T=i(n(84803)),R=i(n(39007)),D=i(n(66387)),j=i(n(63983)),I=i(n(15811)),L=i(n(92383)),N=i(n(74429)),V=i(n(39991)),F=i(n(43397)),U=i(n(29071)),B=i(n(71397)),$=i(n(85783)),z=i(n(96337)),H=i(n(51299)),q=i(n(18509)),W=i(n(41767)),Y=i(n(35891)),K=i(n(12337)),G=i(n(63691)),J=i(n(78647)),X=i(n(99493));t.default={address:r.default,base:l.default,component:l.default,componentmodal:u.default,button:o.default,checkbox:s.default,columns:a.default,container:c.default,content:d.default,currency:h.default,datagrid:p.default,datamap:f.default,datetime:m.default,day:g.default,editgrid:v.default,email:y.default,input:x.default,field:C.default,multivalue:E.default,list:O.default,fieldset:b.default,file:_.default,form:w.default,hidden:k.default,htmlelement:S.default,nested:P.default,nesteddata:A.default,nestedarray:M.default,number:T.default,panel:R.default,password:D.default,phoneNumber:j.default,radio:I.default,recaptcha:L.default,resource:N.default,select:F.default,selectboxes:V.default,signature:U.default,survey:B.default,table:$.default,tabs:z.default,tags:H.default,textarea:q.default,textfield:W.default,time:Y.default,tree:K.default,unknown:G.default,url:J.default,well:X.default}},84119:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(30062)),s=i(n(17382)),a=i(n(17277));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",components:a.default}],...e)}},84803:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(78443),o=i(n(2543)),s=n(94233),a=i(n(17389)),l=n(34600);class u extends a.default{static schema(...e){return a.default.schema({type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}},...e)}static get builderInfo(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:u.schema()}}constructor(...e){var t,n;super(...e),this.validators=this.validators.concat(["min","max"]);const i=(0,l.getNumberSeparators)(this.options.language||navigator.language);this.decimalSeparator=this.options.decimalSeparator=this.options.decimalSeparator||(null===(t=this.options.properties)||void 0===t?void 0:t.decimalSeparator)||i.decimalSeparator,this.component.delimiter?(this.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),this.delimiter=(null===(n=this.options.properties)||void 0===n?void 0:n.thousandsSeparator)||this.options.thousandsSeparator||i.delimiter):this.delimiter="";const r=o.default.get(this.component,"requireDecimal",!1);if(this.decimalLimit=(0,l.getNumberDecimalLimit)(this.component,r?2:20),o.default.has(this.options,`languageOverride.${this.options.language}`)){const e=o.default.get(this.options,`languageOverride.${this.options.language}`);this.decimalSeparator=e.decimalSeparator,this.delimiter=e.delimiter}this.numberMask=this.createNumberMask()}createNumberMask(){return(0,s.createNumberMask)({prefix:"",suffix:"",requireDecimal:o.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:o.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:o.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:o.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:o.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}get defaultSchema(){return u.schema()}get defaultValue(){let e=super.defaultValue;return e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&o.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}isDecimalAllowed(){return o.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}parseNumber(e){return e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer?parseInt(e,10):parseFloat(e)}setInputMask(e){let t="[0-9";t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,r.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}get inputInfo(){const e=super.inputInfo;return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}getValueAt(e){if(!this.refs.input.length||!this.refs.input[e])return null;const t=this.refs.input[e].value;return t&&"-_"!==t?this.parseNumber(t):null}setValueAt(e,t,n={}){return super.setValueAt(e,this.formatValue(this.parseValue(t)),n)}parseValue(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));let t=parseFloat(e);return t=o.default.isNaN(t)?null:String(t).replace(".",this.decimalSeparator),t}formatValue(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?`${e}${this.decimalSeparator}${o.default.repeat("0",this.decimalLimit)}`:this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?`${e}${o.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)}`:e}focus(){const e=this.refs.input[0];e&&(super.focus.call(this),e.setSelectionRange(0,e.value.length))}getMaskedValue(e){return(e=null===e?"0":e.toString()).includes(".")&&"."!==this.decimalSeparator&&(e=e.replace(".",this.decimalSeparator)),(0,r.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}getValueAsString(e,t){return e||0===e?(e=this.getWidgetValueAsString(e,t),Array.isArray(e)?e.map((e=>this.getMaskedValue(e))).join(", "):this.getMaskedValue(e)):""}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(this.formatValue(this.parseValue(e.value)))}))}}t.default=u},17382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},30062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},17277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},21419:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(13266)),s=i(n(71652));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"conditional",components:s.default}],...e)}},39007:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(39142)),o=n(34600),s=i(n(86309));class a extends r.default{static schema(...e){return r.default.schema({label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1},...e)}static get builderInfo(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/form-building/layout-components#panel",weight:30,schema:a.schema()}}get defaultSchema(){return a.schema()}get templateName(){return"panel"}constructor(...e){super(...e),this.noField=!0,this.on("componentError",(()=>{(0,o.hasInvalidComponent)(this)&&this.collapsed&&(this.collapsed=!1)}))}getComponent(e,t,n){var i;return(null===(i=this.root)||void 0===i?void 0:i.parent)instanceof s.default&&(e=e.replace(this._parentPath,"")),super.getComponent(e,t,n)}}t.default=a},71652:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),o=i(n(2404)),s=i(n(90179)),a=i(n(66245)),l=i(n(95950)),u=r.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n

    You must assign the next variable with the API key of the next page.

    \n

    The global variable data is provided, and allows you to access the data of any form component, by using its API key.

    \n

    Also moment library is available, and allows you to manipulate dates in a convenient way.

    \n
    Example
    next = data.addComment ? 'page3' : 'page4';
    \n","\n

    Submission data is available as JsonLogic variables, with the same api key as your components.

    \n");t.default=[Object.assign(Object.assign({},u),{customConditional(e){let t=!1;if("wizard"===e.instance.options.editForm.display){const{components:n}=e.instance.options.editForm,i=e.instance.options.editComponent;n&&i&&(t=n.some((e=>{const t=(0,a.default)((0,l.default)(e),(0,l.default)(i))||[];return t.push("components"),(0,o.default)((0,s.default)(e,t),(0,s.default)(i,t))})))}return t}})]},13266:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2404)),o=i(n(90179)),s=i(n(66245)),a=i(n(95950));t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:e=>e.data.title},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{type:"select",input:!0,label:"Breadcrumb Type",key:"breadcrumb",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Condensed",value:"condensed"},{label:"Hidden",value:"none"}]}},{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,conditional:{json:{"!==":[{var:"data.breadcrumb"},"none"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional(e){let t=!1;if("wizard"===e.instance.options.editForm.display){const{components:n}=e.instance.options.editForm,i=e.instance.options.editComponent;n&&i&&(t=n.some((e=>{const t=(0,s.default)((0,a.default)(e),(0,a.default)(i))||[];return t.push("components"),(0,r.default)((0,o.default)(e,t),(0,o.default)(i,t))})))}return t}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}]},44103:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(99878)),s=i(n(11998)),a=i(n(9157));t.default=function(...e){return(0,r.default)([{key:"data",components:s.default},{key:"display",components:o.default},{key:"validation",components:a.default}],...e)}},66387:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767)),o=i(n(2543));class s extends r.default{static schema(...e){return r.default.schema({type:"password",label:"Password",key:"password",protected:!0,tableView:!1},...e)}static get builderInfo(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:s.schema()}}get defaultSchema(){return o.default.omit(s.schema(),["protected","tableView"])}get inputInfo(){const e=super.inputInfo;return e.attr.type="password",e}get autocompleteDisableAttrName(){return"new-password"}}t.default=s},11998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},99878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},9157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},31739:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(17795));t.default=function(...e){return(0,r.default)([{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:o.default}],...e)}},63983:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767));class o extends r.default{static schema(...e){return r.default.schema({type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""},...e)}static get builderInfo(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:o.schema()}}get defaultSchema(){return o.schema()}}t.default=o},17795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},59287:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(52850)),o=i(n(73368)),s=i(n(9784)),a=i(n(66323));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},15811:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(80460)),s=i(n(53632)),a=n(29857),l=n(34600);class u extends o.default{static schema(...e){return o.default.schema({type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1},...e)}static get builderInfo(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:u.schema()}}constructor(e,t,n){super(e,t,n),this.previousValue=this.dataValue||null}get defaultSchema(){return u.schema()}get defaultValue(){let e=super.defaultValue;return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}get inputInfo(){var e;const t=super.elementInfo();return t.type="input",t.changeEvent="click",t.attr.class="form-check-input",t.attr.name=t.attr.name+=`[${null===(e=this.root)||void 0===e?void 0:e.id}-${this.id}]`,t}get emptyValue(){return""}get isRadio(){return"radio"===this.component.inputType}get optionSelectedClass(){return"radio-selected"}init(){super.init(),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems","availableValueProperty"]);let e=[];const t=r.default.debounce(((...t)=>(e=[],this.updateItems.apply(this,t))),100);this.triggerUpdate=(...n)=>("function"==typeof this.itemsLoadedResolve&&this.itemsLoadedResolve(),this.itemsLoaded=new s.default((e=>{this.itemsLoadedResolve=e})),n.length&&(e=n),t(...e)),this.itemsLoaded=new s.default((e=>{this.itemsLoadedResolve=e})),this.shouldLoad=!0,this.loadedOptions=[]}render(){return super.render(this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row}))}attach(e){return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(((e,t)=>{if(this.addEventListener(e,this.inputInfo.changeEvent,(()=>{this.updateValue(null,{modified:!0})})),this.component.values[t]&&this.addShortcut(e,this.component.values[t].shortcut),this.isRadio){let t=this.dataValue;r.default.isString(this.dataValue)||(t=r.default.toString(this.dataValue)),e.checked=t===e.value&&(e.value||"url"!==this.component.dataSrc),this.addEventListener(e,"keyup",(n=>{" "===n.key&&t===e.value&&(n.preventDefault(),this.updateValue(null,{modified:!0}))}))}})),this.triggerUpdate(),this.setSelectedClasses(),super.attach(e)}detach(e){e&&this.refs.input&&this.refs.input.forEach(((e,t)=>{this.component.values[t]&&this.removeShortcut(e,this.component.values[t].shortcut)})),super.detach()}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;let e=this.dataValue;return this.refs.input.forEach((t=>{t.checked&&(e=t.value)})),e}validateValueProperty(){return"values"===this.component.dataSrc||!r.default.some(this.refs.wrapper,((e,t)=>this.refs.input[t].checked&&this.loadedOptions[t].invalid))}validateValueAvailability(e,t){if(!(0,l.boolValue)(e)||!t)return!0;const n=this.component.values;return!!n&&-1!==n.findIndex((({value:e})=>this.normalizeValue(e)===t))}getValueAsString(e){if(r.default.isString(e)||(e=r.default.toString(e)),"values"!==this.component.dataSrc)return e;const t=r.default.find(this.component.values,(t=>t.value===e));return r.default.get(t,"label","")}setValueAt(e,t){if(this.refs.input&&this.refs.input[e]&&null!=t){const n=this.refs.input[e].value;this.refs.input[e].checked=n===t.toString()}}loadItems(e,t,n,i,r,o){"GET"===(r=r||"GET").toUpperCase()&&(o=null),i.ignoreCache=this.component.ignoreCache,i.header=n,this.shouldLoad&&(this.loading=!0,a.Formio.makeRequest(this.options.formio,"select",e,r,o,i).then((e=>{this.loading=!1,this.error=null,this.setItems(e),this.shouldLoad=!1,this.redraw()})).catch((e=>{this.handleLoadingError(e)})))}setItems(e){null==e||e.forEach(((e,t)=>{this.loadedOptions[t]={value:e[this.component.valueProperty],label:this.itemTemplate(e,e[this.component.valueProperty])},(r.default.isUndefined(e[this.component.valueProperty])||r.default.isObject(e[this.component.valueProperty])||!this.isRadio&&r.default.isBoolean(e[this.component.valueProperty]))&&(this.loadedOptions[t].invalid=!0)}))}setSelectedClasses(){if(this.refs.wrapper){const e=this.dataValue;this.refs.wrapper.forEach(((t,n)=>{const i=this.refs.input[n];("checkbox"===i.type?e[i.value]:i.value.toString()===e.toString())?(this.addClass(t,this.optionSelectedClass),i.setAttribute("checked","true")):(this.removeClass(t,this.optionSelectedClass),i.removeAttribute("checked"))}))}}updateValue(e,t){const n=super.updateValue(e,t);return n&&this.setSelectedClasses(),t&&t.modified&&this.isRadio?(this.currentValue=this.dataValue,t&&t.modified&&!t.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(t),this.setSelectedClasses()),this.previousValue=this.dataValue,n):(n&&(this.previousValue=this.dataValue),n)}normalizeValue(e){return e===this.emptyValue?e:(!isNaN(parseFloat(e))&&isFinite(e)&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1),super.normalizeValue(e))}}t.default=u},73368:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87338)),o=i(n(2543));t.default=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange(e){e&&e.flags&&e.flags&&e.flags.modified&&(e.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}]},9784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},66323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},22859:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(77408));t.default=function(){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}])}},92383:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),o=n(29857),s=i(n(58156)),a=i(n(38221)),l=i(n(53632));class u extends r.default{static schema(...e){return r.default.schema({type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"},...e)}static get builderInfo(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"/userguide/form-building/premium-components#recaptcha",weight:40,schema:u.schema()}}render(){return this.recaptchaResult=null,this.builderMode?super.render("reCAPTCHA"):super.render("",!0)}createInput(){if(this.builderMode)this.append(this.text(this.name));else{const e=(0,s.default)(this.root.form,"settings.recaptcha.siteKey");if(e){const t=`https://www.google.com/recaptcha/api.js?render=${e}`;this.recaptchaApiReady=o.Formio.requireLibrary("googleRecaptcha","grecaptcha",t,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}createLabel(){}verify(e){const t=(0,s.default)(this.root.form,"settings.recaptcha.siteKey");if(t){if(!this.recaptchaApiReady){const e=`https://www.google.com/recaptcha/api.js?render=${(0,s.default)(this.root.form,"settings.recaptcha.siteKey")}`;this.recaptchaApiReady=o.Formio.requireLibrary("googleRecaptcha","grecaptcha",e,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new l.default(((n,i)=>{this.recaptchaApiReady.then((()=>{this.isLoading||(this.isLoading=!0,grecaptcha.ready((0,a.default)((()=>{grecaptcha.execute(t,{action:e}).then((e=>this.sendVerificationRequest(e).then((({verificationResult:e,token:t})=>(this.recaptchaResult=Object.assign(Object.assign({},e),{token:t}),this.updateValue(this.recaptchaResult),n(e)))))).catch((()=>{this.isLoading=!1}))}),1e3)))})).catch((()=>i()))})).then((()=>{this.isLoading=!1})))}else console.warn("There is no Site Key specified in settings in form JSON")}beforeSubmit(){return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then((()=>super.beforeSubmit())):super.beforeSubmit()}sendVerificationRequest(e){return o.Formio.makeStaticRequest(`${o.Formio.projectUrl}/recaptcha?recaptchaToken=${e}`).then((t=>({verificationResult:t,token:e})))}checkComponentValidity(e,t,n,i={}){e=e||this.rootValue,n=n||this.data;const{async:r=!1}=i;if(!r)return super.checkComponentValidity(e,t,n,i);const o=n[this.component.key];return o&&o.token?o.success?this.hook("validateReCaptcha",o.token,(()=>l.default.resolve(!0))).then((e=>e)).catch((e=>(this.setCustomValidity(e.message||e),!1))):(this.setCustomValidity("ReCAPTCHA: Token validation error"),l.default.resolve(!1)):(this.setCustomValidity("ReCAPTCHA: Token is not specified in submission"),l.default.resolve(!1))}normalizeValue(e){return this.recaptchaResult?this.recaptchaResult:e}}t.default=u},77408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(34600);t.default=[{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this reCAPTCHA would react to",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this reCAPTCHA should react to",weight:660,customConditional:e=>"buttonClick"===e.data.eventType,data:{custom:e=>(0,i.getContextButtons)(e)}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}]},10837:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(51602));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default}],...e)}},74429:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(43397));class o extends r.default{static schema(...e){return r.default.schema({type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"{{ item.data }}"},...e)}static get builderInfo(){return{title:"Resource",group:"premium",icon:"files-o",weight:90,documentation:"/userguide/form-building/form-components#resource",schema:o.schema()}}init(){super.init(),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}get defaultSchema(){return o.schema()}}t.default=o},51602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:'The Resource component is deprecated. Use the Select component with data source of "Resource" instead.'},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"{{ item.title }}",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search filters based on the fields of the resource. See the Resource.js documentation for the format of these filters.",placeholder:"The fields to query on the server",weight:52},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:53,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters."},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:53,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters"},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:53,tooltip:"The HTML template for the result data items."},{type:"checkbox",input:!0,weight:54,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:55,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}}]},63357:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(52850)),o=i(n(17938)),s=i(n(40770)),a=i(n(71465));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},43397:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(29857),s=i(n(80460)),a=i(n(18633)),l=i(n(53632)),u=n(34600),c=i(n(62646));class d extends s.default{static schema(...e){return s.default.schema({type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1},...e)}static get builderInfo(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/form-building/form-components#select",schema:d.schema()}}init(){super.init(),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);let e=[];const t=r.default.debounce(((...t)=>(e=[],this.updateItems.apply(this,t))),100);this.triggerUpdate=(...n)=>("function"==typeof this.itemsLoadedResolve&&this.itemsLoadedResolve(),this.itemsLoaded=new l.default((e=>{this.itemsLoadedResolve=e})),n.length&&(e=n),t(...e)),this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new l.default((e=>{this.itemsLoadedResolve=e})),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}get dataReady(){return this.root&&this.root.submissionSet&&!this.attached?l.default.resolve():this.itemsLoaded}get defaultSchema(){return d.schema()}get emptyValue(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){const e=this.component.data.json[0];let t;return t=this.valueProperty?r.default.get(e,this.valueProperty):e,t&&"string"==typeof t?"":{}}return this.valueProperty?"":{}}get valueProperty(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}get inputInfo(){const e=super.elementInfo();return e.type="select",e.changeEvent="change",e}get isSelectResource(){return"resource"===this.component.dataSrc}get itemsFromUrl(){return this.isSelectResource||this.isSelectURL}get isInfiniteScrollProvided(){return this.itemsFromUrl}get shouldDisabled(){return super.shouldDisabled||this.parentDisabled}isEntireObjectDisplay(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}selectValueAndLabel(e){const t=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(e)?e:this.itemValue(e));return{value:t,label:this.itemTemplate(this.isEntireObjectDisplay()&&!r.default.isObject(e.data)?{data:e}:e,t)}}itemTemplate(e,t){if(!r.default.isNumber(e)&&r.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){const t=e.label||e,n="string"==typeof t?this.t(t,{_userInput:!0}):t;return this.sanitize(n,this.shouldSanitizeValue)}if(this.component.multiple?this.dataValue.find((e=>t===e)):this.dataValue===t){const n=this.selectData;if(n){const i=this.component.reference&&(null==t?void 0:t._id)?t._id.toString():t;this.templateData&&this.templateData[i]||this.getOptionTemplate(e,t),this.component.multiple?n[i]&&(e=n[i]):e=n}}if("string"==typeof e||"number"==typeof e)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(e))return e.map((e=>"string"==typeof e||"number"==typeof e?this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue):e));if(e.data){const t=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&r.default.isObject(e.data)&&!t?JSON.stringify(e.data):e.data}return super.itemTemplate(e,t)}addOption(e,t,n={},i=(0,u.getRandomComponentId)()){if(r.default.isNil(t))return;const o=this.component.idPath?this.component.idPath.split(".").reduceRight(((e,t)=>({[t]:e})),i):{},s=Object.assign({value:this.getOptionValue(e),label:t},o);if((!this.component.uniqueOptions||!this.selectOptions.find((e=>r.default.isEqual(e.value,s.value))))&&(e&&this.selectOptions.push(s),this.refs.selectContainer&&"html5"===this.component.widget)){s.value&&r.default.isObject(s.value)&&r.default.isEmpty(s.value)&&(s.value="");const t=document.createElement("div");t.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:r.default.isEqual(this.getOptionValue(this.dataValue),s.value),option:s,attrs:n,id:i,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&r.default.isObject(e)&&i}),this.shouldSanitizeValue).trim(),s.element=t.firstChild,this.refs.selectContainer.appendChild(s.element)}}addValueOptions(e){e=e||[];let t=!1,n=this.dataValue;if(this.options.pdf&&!e.length&&"url"===this.component.dataSrc&&this.valueProperty&&(n=Array.isArray(n)?n.map((e=>r.default.set({},this.valueProperty,e))):r.default.set({},this.valueProperty,n)),!this.selectOptions.length){const i=Array.isArray(n)&&this.component.multiple?n:[n];t=this.addCurrentChoices(i,e),t||this.component.multiple||this.addPlaceholder()}return t}disableInfiniteScroll(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}setItems(e,t){var n,i;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(this.component.onSetItems&&"function"==typeof this.component.onSetItems){const t=this.component.onSetItems(this,e);t&&(e=t)}let o;if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(e=r.default.get(e,this.component.selectValues,e)||[]),this.itemsFromUrl){o=!!this.isSelectURL&&r.default.isEqual(e,this.downloadedResources);const t=this.component.limit>e.length,n=o&&this.downloadedResources&&this.downloadedResources.length===e.length;t?this.disableInfiniteScroll():n?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)o||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!r.default.isEmpty(this.dataValue)&&this.component.idPath){const t=r.default.get(this.dataValue,this.component.idPath,null),n=!r.default.isNil(t)&&e.find((e=>r.default.get(e,this.component.idPath)===t));n&&this.setValue(n)}if(t||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),r.default.each(e,((e,t)=>{if(this.root&&this.root.options.editForm&&this.root.options.editForm._id&&this.root.options.editForm._id===e._id)return;const n=this.selectValueAndLabel(e);this.addOption(n.value,n.label,{},r.default.get(e,this.component.idPath,String(t)))})),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!t||!(null===(i=null===(n=this.choices)||void 0===n?void 0:n.input)||void 0===i?void 0:i.isFocussed))if(this.isEmpty()){if(this.shouldAddDefaultValue&&!this.options.readOnly){const e=this.defaultValue;this.isEmpty(e)||this.setValue(e)}}else this.setValue(this.dataValue,{noUpdateEvent:!0});this.itemsLoadedResolve()}getSingleItemValueForHTMLMode(e){var t;const n=null===(t=this.selectOptions)||void 0===t?void 0:t.find((({value:t})=>r.default.isEqual(t,e)));return n&&n.label||e}itemValueForHTMLMode(e){return this.isHtmlRenderMode()?Array.isArray(e)?e.map((e=>Array.isArray(e)?this.itemValueForHTMLMode(e):this.getSingleItemValueForHTMLMode(e))).join(", "):this.getSingleItemValueForHTMLMode(e):super.itemValueForHTMLMode(e)}get defaultValue(){let e=super.defaultValue;return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}getTemplateKeys(){if(this.templateKeys=[],this.options.readOnly&&this.component.template){const e=this.component.template.match(/({{\s*(.*?)\s*}})/g);e&&e.forEach((e=>{const t=e.match(/{{\s*item\.(.*?)\s*}}/);t&&t.length>1&&this.templateKeys.push(t[1])}))}}get loadingError(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}get selectData(){const e=r.default.get(this.root,"submission.metadata.selectData",{});return r.default.get(e,this.path)}get shouldLoad(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){const e=this.dataValue,t=this.selectData;return this.templateKeys.reduce(((n,i)=>{const o=r.default.has(e,i)||r.default.has(t,i);return n||!o}),!1)}return!0}loadItems(e,t,n,i,s,a){if(i=i||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly)return this.isScrollLoading=!1,this.loading=!1,void this.itemsLoadedResolve();const l=parseInt(this.component.minSearch,10);if(this.component.searchField&&l>0&&(!t||t.lengththis.interpolate(e)))),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),i.ignoreCache=this.component.ignoreCache,i.header=n,this.loading=!0,o.Formio.makeRequest(this.options.formio,"select",e,s,a,i).then((e=>{this.loading=!1,this.error=null,this.setItems(e,!!t)})).catch((e=>{this.itemsFromUrl&&(this.setItems([]),this.disableInfiniteScroll()),this.isScrollLoading=!1,this.handleLoadingError(e)}))}handleLoadingError(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn(`Unable to load resources for ${this.key}`)}get requestHeaders(){const e=new o.Formio.Headers;if(this.component.data&&this.component.data.headers)try{r.default.each(this.component.data.headers,(t=>{t.key&&e.set(t.key,this.interpolate(t.value))}))}catch(e){console.warn(e.message)}return e}getCustomItems(){const e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,u.isPromise)(e),e}asyncCustomValues(){return r.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}updateCustomItems(e){if(this.asyncCustomValues()){if(!e&&!this.active)return void this.itemsLoadedResolve();this.loading=!0,this.getCustomItems().then((e=>{this.loading=!1,this.setItems(e||[])})).catch((e=>{this.handleLoadingError(e)}))}else this.setItems(this.getCustomItems()||[])}isEmpty(e=this.dataValue){return super.isEmpty(e)||void 0===e}refresh(e,{instance:t}){this.component.clearOnRefresh&&t&&!t.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}get additionalResourcesAvailable(){return r.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}get serverCount(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount}set serverCount(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}get downloadedResources(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources}set downloadedResources(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}addPlaceholder(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}activate(){!this.loading&&this.active||this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}setLoadingItem(e=!1){this.choices?e?this.choices.setChoices([{value:`${this.id}-loading`,label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:``,disabled:!0}],"value","label",!0):"url"!==this.component.dataSrc&&"resource"!==this.component.dataSrc||this.addOption("",this.t("loading..."))}get active(){return!this.component.lazyLoad||this.activated}render(){const e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,super.render(this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}wrapElement(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}choicesOptions(){const e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,t=this.t(this.component.placeholder,{_userInput:!0});let n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}const i={maxPatternLength:1e3,distance:1e3};return Object.assign({removeItemButton:!this.component.disabled&&r.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:t,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:e,searchChoices:!this.component.searchField,searchFields:r.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?Object.assign({tokenize:!0,matchAllTokens:!0},i):Object.assign({},r.default.get(this,"component.fuseOptions",{}),Object.assign({include:"score",threshold:r.default.get(this,"component.selectThreshold",.3)},i)),valueComparer:r.default.isEqual,resetScrollPosition:!1},n)}attach(e){var t,n,i;const s=super.attach(e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});const l=this.refs.autocompleteInput;l&&this.addEventListener(l,"change",(e=>{this.setValue(e.target.value)}));const u=this.refs.selectContainer;if(!u)return;if(this.addEventListener(u,this.inputInfo.changeEvent,(()=>this.updateValue(null,{modified:!0}))),this.attachRefreshOnBlur(),"html5"===this.component.widget)return this.addFocusBlurEvents(u),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectOptions||[]),this.focusableElement=u,this.addEventListener(u,"focus",(()=>this.update())),void this.addEventListener(u,"keydown",(e=>{const{key:t}=e;["Backspace","Delete"].includes(t)&&this.setValue(this.emptyValue)}));const d=u.tabIndex;this.addPlaceholder(),this.i18next&&u.setAttribute("dir",this.i18next.dir()),(null===(i=null===(n=null===(t=this.choices)||void 0===t?void 0:t.containerOuter)||void 0===n?void 0:n.element)||void 0===i?void 0:i.parentNode)&&this.choices.destroy();const h=this.choicesOptions();if(c.default&&(this.choices=new c.default(u,h),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",(()=>this.focusableElement.focus()))),this.addFocusBlurEvents(this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",(()=>this.onScroll())))),this.focusableElement.setAttribute("tabIndex",d),this.component.searchField){this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",(e=>{this.isFromSearch=!!e.target.value,e.target.value?(this.serverCount=null,this.downloadedResources=[]):this.triggerUpdate()})),this.addEventListener(u,"choice",(()=>{this.component.multiple&&"resource"===this.component.dataSrc&&this.isFromSearch&&this.triggerUpdate(),this.isFromSearch=!1}));const e=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0,t=e=>{this.triggerUpdate(e.detail.value)};this.addEventListener(u,"search",r.default.debounce(t,e)),this.addEventListener(u,"stopSearch",(()=>this.triggerUpdate())),this.addEventListener(u,"hideDropdown",(()=>{this.choices&&this.choices.input&&this.choices.input.element&&(this.choices.input.element.value=""),this.updateItems(null,!0)}))}return this.addEventListener(u,"showDropdown",(()=>this.update())),this.choices&&h.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(h.placeholderValue),this.addEventListener(u,"removeItem",(()=>{this.addPlaceholderItem(h.placeholderValue)}))),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",(e=>{e.preventDefault();const t=this.ce("div"),n=this.createModal(t),i=`${r.default.get(this.root,"formio.projectUrl",o.Formio.getProjectUrl())}/form/${this.component.data.resource}`;new a.default(t,i,{}).ready.then((e=>{e.on("submit",(e=>{let t=this.valueProperty?r.default.get(e,this.valueProperty):e;this.component.multiple&&(t=[...this.dataValue,t]),this.setValue(t),this.triggerUpdate(),n.close()}))}))})),this.disabled=this.shouldDisabled,this.triggerUpdate(),s}get isLoadingAvailable(){return!this.isScrollLoading&&this.additionalResourcesAvailable}onScroll(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}attachRefreshOnBlur(){this.component.refreshOnBlur&&this.on("blur",(e=>{this.checkRefreshOn([{instance:e,value:e.dataValue}],{fromBlur:!0})}))}addPlaceholderItem(e){this.choices._store.activeItems.length||this.choices._addItem({value:e,label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}update(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}set disabled(e){super.disabled=e,this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}get disabled(){return super.disabled}set visible(e){e&&!this._visible!=!e&&this.triggerUpdate(),super.visible=e}get visible(){return super.visible}addCurrentChoices(e,t,n){if(!e)return!1;const i=[],o=e.reduce(((e,o)=>{if(!o||r.default.isEmpty(o))return e;let s=!1;const a=t===this.selectOptions;return t&&t.length&&r.default.each(t,(e=>{if(e._id&&o._id&&e._id===o._id)return s=!0,!1;const t=n?e.value:this.itemValue(e,a);return s|=r.default.isEqual(t,o),!s})),s?s||e:(i.push(this.selectValueAndLabel(o)),!0)}),!1);return i.length&&(this.choices&&this.choices.setChoices(i,"value","label"),i.map((e=>{this.addOption(e.value,e.label)}))),o}getValueAsString(e){return this.component.multiple&&Array.isArray(e)?e.map(this.asString.bind(this)).join(", "):this.asString(e)}getValue(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;let e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===e)return{};const t=this.selectOptions[e]||this.selectOptions.find((t=>t.id===e));t&&r.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return null==e&&(e=""),e}redraw(){const e=super.redraw();return this.triggerUpdate(),e}normalizeSingleValue(e,t){var n;if(r.default.isNil(e))return;const i=r.default.isObject(e);if(i&&0===Object.keys(e).length)return e;if(t){const t=this.component.reference&&(null==e?void 0:e._id)?e._id.toString():e,o=!i||this.component.reference;if(t&&o&&this.templateData&&this.templateData[t]&&(null===(n=this.root)||void 0===n?void 0:n.submission)){const e=this.root.submission;e.metadata||(e.metadata={}),e.metadata.selectData||(e.metadata.selectData={});let n=this.templateData[t];if(this.component.multiple){n={};const e=this.dataValue;e&&e.length&&e.forEach((e=>{const t=this.component.reference?e._id.toString():e;n[t]=this.templateData[t]}))}r.default.set(e.metadata.selectData,this.path,n)}}const o=this.component.dataType||"auto",s={value:e,number(){const t=Number(this.value),n=e.toString()===t.toString();return!Number.isNaN(t)&&Number.isFinite(t)&&""!==e&&n&&(this.value=t),this},boolean(){return!r.default.isString(this.value)||"true"!==this.value.toLowerCase()&&"false"!==this.value.toLowerCase()||(this.value="true"===this.value.toLowerCase()),this},string(){return this.value=String(this.value),this},object(){return this},auto(){return r.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return s[o]().value}catch(t){return console.warn("Failed to normalize value",t),e}}normalizeValue(e){return this.component.multiple&&Array.isArray(e)?e.map((e=>this.normalizeSingleValue(e,!0))):super.normalizeValue(this.normalizeSingleValue(e,!0))}setValue(e,t={}){const n=this.dataValue;if("html5"===this.component.widget&&(r.default.isEqual(e,n)||r.default.isEqual(n,{})&&r.default.isEqual(t,{})))return!1;const i=this.updateValue(e,t);e=this.dataValue;const o=!this.isEmpty(n),s=!this.isEmpty(e);if(this.component.multiple&&Array.isArray(e)?e=e.map((e=>"boolean"==typeof e||"number"==typeof e?e.toString():e)):"boolean"!=typeof e&&"number"!=typeof e||(e=e.toString()),this.isHtmlRenderMode()&&t&&t.fromSubmission&&i)return this.itemsLoaded.then((()=>{this.redraw()})),i;if(this.loading)return i;if(this.isInitApiCallNeeded(s)){this.loading=!0,this.lazyLoadInit=!0;const t=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(r.default.get(e.data||e,t,e),!0),i}return this.itemsLoaded.then((()=>{this.addValueOptions(),this.setChoicesValue(e,o,t)})),i}isInitApiCallNeeded(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}setChoicesValue(e,t,n={}){const i=!this.isEmpty(e)||n.fromSubmission;if(t=void 0===t||t,this.choices)if(i){this.choices.removeActiveItems();const t=Array.isArray(e)&&this.component.multiple?e:[e];this.addCurrentChoices(t,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(t)}else(t||n.resetValue)&&this.choices.removeActiveItems();else if(i){const t=Array.isArray(e)?e:[e];if(!r.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2){const{value:e,label:t}=this.selectValueAndLabel(this.dataValue);this.addOption(e,t)}r.default.each(this.selectOptions,(e=>{r.default.each(t,(t=>{if(""===e.value&&(e.value={}),r.default.isEqual(t,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1}))}))}else r.default.each(this.selectOptions,(e=>{e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))}))}get itemsLoaded(){return this._itemsLoaded||l.default.resolve()}set itemsLoaded(e){this._itemsLoaded=e}validateValueAvailability(e,t){if(!(0,u.boolValue)(e)||!t)return!0;const n=this.getOptionsValues();if(n){if(r.default.isObject(t)){const e=e=>{const n=this.normalizeSingleValue(e,!0);if(!r.default.isObject(n))return!1;try{return JSON.stringify(n)===JSON.stringify(t)}catch(e){return console.warn.error("Error while comparing items",e),!1}};return-1!==n.findIndex((t=>e(t)))}return-1!==n.findIndex((e=>this.normalizeSingleValue(e)===t))}return!1}getOptionValue(e){return r.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):r.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:r.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):r.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}getOptionsValues(){let e=[];switch(this.component.dataSrc){case"values":e=this.component.data.values;break;case"json":e=this.component.data.json;break;case"custom":e=this.getCustomItems()}if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(Array.isArray(e))return e.map((e=>this.getOptionValue(this.itemValue(e))))}deleteValue(){this.setValue("",{noUpdateEvent:!0}),this.unset()}validateMultiple(){return!1}isBooleanOrNumber(e){return"number"==typeof e||"boolean"==typeof e}getNormalizedValues(){if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map((e=>({label:e.label,value:String(this.normalizeSingleValue(e.value))})))}asString(e){var t;const n=(e,t)=>t?(Array.isArray(e)?e.forEach((e=>e[t]=e[t].toString())):e[t]=e[t].toString(),e):(this.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some((e=>this.isBooleanOrNumber(e)))&&(e=e.map((e=>{this.isBooleanOrNumber(e)&&(e=e.toString())}))),e);if(e=n(e=null!=e?e:this.getValue()),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){const{items:i,valueProperty:o}="values"===this.component.dataSrc?{items:n(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:n(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},s=()=>{const t=r.default.find(i,[o,e]),n=this.defaultSchema.data.values||[];return r.default.isEqual(t,n[0])?"-":t};e=this.component.multiple&&Array.isArray(e)?r.default.filter(i,(t=>e.includes(t.value))):o?null!==(t=s())&&void 0!==t?t:{value:e,label:e}:e}if(r.default.isString(e))return e;if(Array.isArray(e)){const t=[];return e.forEach((e=>t.push(this.itemTemplate(e)))),"resource"===this.component.dataSrc&&t.length>0?t.join(", "):t.length>0?t.join("
    "):"-"}return r.default.isNil(e)?"-":this.itemTemplate(e)}detach(){var e,t;this.off("blur"),this.choices&&((null===(t=null===(e=this.choices.containerOuter)||void 0===e?void 0:e.element)||void 0===t?void 0:t.parentNode)&&this.choices.destroy(),this.choices=null),super.detach()}focus(){this.focusableElement&&(super.focus.call(this),this.focusableElement.focus())}setErrorClasses(e,t,n,i,r=this.element){super.setErrorClasses(e,t,n,i,r),this.choices?super.setErrorClasses([this.choices.containerInner.element],t,n,i,r):super.setErrorClasses([this.refs.selectContainer],t,n,i,r)}}t.default=d},17938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(34600);t.default=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'
    Example:
    ["apple", "banana", "orange"].
    Example 2:
    [{"name": "John", "email": "john.doe@test.com"}, {"name": "Jane", "email": "jane.doe@test.com"}].
    ',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"{{ item.title }}",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"{{ item.label }}",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems(e,t){const n="resource"===t.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,i.eachComponent)(t.components,((e,t)=>{e.input&&n.push({label:e.label||e.key,key:`data.${t}`})})),n},onChange(e){if(e&&e.flags&&e.flags.modified){const t=e.instance.data.valueProperty,n=`{{ item.${t||"data"} }}`,i=t?`${t}__regex`:"";e.instance.root.getComponent("template").setValue(n),e.instance.root.getComponent("searchField").setValue(i)}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"{{ item.label }}",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."}]},40770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},71465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},85955:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(59287)),o=i(n(9823));t.default=function(...e){return(0,r.default)([{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:o.default}],...e)}},39991:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(15811));class s extends o.default{static schema(...e){return o.default.schema({type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1},...e)}static get builderInfo(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:s.schema()}}constructor(...e){super(...e),this.validators=this.validators.concat("minSelectedCount","maxSelectedCount","availableValueProperty")}init(){super.init(),this.component.inputType="checkbox"}get defaultSchema(){return s.schema()}get inputInfo(){const e=super.elementInfo();return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}get emptyValue(){return this.component.values.reduce(((e,t)=>(t.value&&(e[t.value]=!1),e)),{})}get defaultValue(){let e=this.emptyValue;return r.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}isEmpty(e=this.dataValue){let t=!0;for(const n in e)if(e.hasOwnProperty(n)&&e[n]){t=!1;break}return t}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e={};return r.default.each(this.refs.input,(t=>{e[t.value]=!!t.checked})),e}normalizeValue(e){return"object"!=typeof(e=e||{})&&(e="string"==typeof e?{[e]:!0}:{}),Array.isArray(e)&&r.default.each(e,(t=>{e[t]=!0})),e}setValue(e,t={}){const n=this.updateValue(e,t);return e=this.dataValue,this.isHtmlRenderMode()?n&&this.redraw():r.default.each(this.refs.input,(t=>{r.default.isUndefined(e[t.value])&&(e[t.value]=!1),t.checked=!!e[t.value]})),n}getValueAsString(e){return e?(0,r.default)(this.component.values||[]).filter((t=>e[t.value])).map("label").join(", "):""}setSelectedClasses(){if(this.refs.wrapper){const e=this.dataValue,t=Object.keys(e);this.refs.wrapper.forEach(((n,i)=>{let r=t[i];const o=this.refs.input[i];(null==o?void 0:o.value.toString())!==r&&(r=t.find((e=>(null==o?void 0:o.value.toString())===e)));const s=e[r];s&&r?(this.addClass(n,this.optionSelectedClass),o.setAttribute("checked","true")):!s&&r&&(this.removeClass(n,this.optionSelectedClass),o.removeAttribute("checked"))}))}}setInputsDisabled(e,t){this.refs.input&&this.refs.input.forEach((n=>{(t&&!n.checked||!t)&&(n.disabled=e)}))}checkComponentValidity(e,t,n,i){const r=this.component.validate.minSelectedCount,o=this.component.validate.maxSelectedCount,s=this.isValid(e,t);if((o||r)&&!this.shouldSkipValidation(e,t,n)){const e=Object.keys(this.validationValue).reduce(((e,t)=>(this.validationValue[t]&&e++,e)),0);if(o&&e>=o?this.setInputsDisabled(!0,!0):o&&!this.shouldDisabled&&this.setInputsDisabled(!1),!s&&o&&e>o){const e=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:o});return this.setCustomValidity(e,t),!1}if(!s&&r&&e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},67483:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(93794)),s=i(n(87378)),a=i(n(97625));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},29071:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(42492)),o=i(n(43591)),s=i(n(17389)),a=i(n(2543));class l extends s.default{static schema(...e){return s.default.schema({type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0},...e)}static get builderInfo(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:l.schema()}}init(){var e,t,n,i,r;super.init(),this.currentWidth=0,this.scale=1,this.ratio=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&"pdf"===(null===(e=this.options)||void 0===e?void 0:e.display)&&(null===(t=this.component.overlay)||void 0===t?void 0:t.width)&&(null===(n=this.component.overlay)||void 0===n?void 0:n.height)&&(this.ratio=(null===(i=this.component.overlay)||void 0===i?void 0:i.width)/(null===(r=this.component.overlay)||void 0===r?void 0:r.height),this.component.width="100%",this.component.height="auto")}get emptyValue(){return""}get defaultSchema(){return l.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",e.attr.type="hidden",e}get className(){return`${super.className} signature-pad`}labelIsHidden(){return this.component.hideLabel}setValue(e,t={}){const n=super.setValue(e,t);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?n&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),n}showCanvas(e){e?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}onDisabled(){this.showCanvas(!super.disabled),this.signaturePad&&(super.disabled?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}checkSize(e,t){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;const n=this.currentWidth*this.scale;this.refs.canvas.width=n;const i=this.ratio?n/this.ratio:this.refs.padBody.offsetHeight*this.scale,r=this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.height=i>r?r:i,this.refs.canvas.style.maxWidth=this.currentWidth*this.scale+"px",this.refs.canvas.style.maxHeight=`${r}px`;const o=this.refs.canvas.getContext("2d");o.setTransform(1,0,0,1,0,0),o.scale(1/this.scale,1/this.scale),o.fillStyle=this.signaturePad.backgroundColor,o.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}renderElement(e,t){return this.renderTemplate("signature",{element:super.renderElement(e,t),required:a.default.get(this.component,"validate.required",!1)})}get hasModalSaveButton(){return!1}getModalPreviewTemplate(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?``:this.t("Click to Sign")})}attach(e){this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});const t=super.attach(e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new r.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",(()=>this.setValue(this.signaturePad.toDataURL()))),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),this.builderMode||this.options.preview||(this.observer=new o.default((()=>{this.checkSize()})),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",a.default.debounce((()=>this.checkSize()),10)),setTimeout(function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}.bind(this),20))),this.addEventListener(this.refs.refresh,"click",(e=>{e.preventDefault(),this.showCanvas(!0),this.signaturePad.clear(),this.setValue(this.defaultValue)})),this.setValue(this.dataValue),t}detach(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,super.detach()}getValueAsString(e){return e?"Yes":"No"}focus(){this.refs.padBody.focus()}setDataToSigaturePad(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}t.default=l},93794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},87378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:({options:e})=>{var t;return"pdf"===(null===(t=null==e?void 0:e.editForm)||void 0===t?void 0:t.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},97625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},9117:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(91670)),s=i(n(78110)),a=i(n(44909));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},71397:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(94342)),s=n(34600);class a extends o.default{static schema(...e){return o.default.schema({type:"survey",label:"Survey",key:"survey",questions:[],values:[]},...e)}static get builderInfo(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:a.schema()}}get defaultSchema(){return a.schema()}render(){return super.render(this.renderTemplate("survey"))}attach(e){this.loadRefs(e,{input:"multiple"});const t=super.attach(e);return this.refs.input.forEach((e=>{this.disabled?e.setAttribute("disabled","disabled"):this.addEventListener(e,"change",(()=>this.updateValue(null,{modified:!0})))})),this.setValue(this.dataValue),t}setValue(e,t={}){if(!e)return!1;r.default.each(this.component.questions,(t=>{r.default.each(this.refs.input,(n=>{n.name===this.getInputName(t)&&(n.checked=n.value===e[t.value])}))}));const n=this.updateValue(e,t);return n&&this.isHtmlRenderMode()&&this.redraw(),n}get emptyValue(){return{}}get defaultValue(){const e=super.defaultValue;if(e&&!r.default.isObject(e)&&this.component.values.some((t=>t.value===e))){const t={};return this.component.questions.forEach((n=>{t[n.value]=e})),t}return e}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e={};return r.default.each(this.component.questions,(t=>{r.default.each(this.refs.input,(n=>{if(n.checked&&n.name===this.getInputName(t))return e[t.value]=n.value,!1}))})),e}set disabled(e){super.disabled=e,r.default.each(this.refs.input,(e=>{e.disabled=!0}))}get disabled(){return super.disabled}validateRequired(e,t){return!(0,s.boolValue)(e)||this.component.questions.reduce(((e,n)=>e&&Boolean(t[n.value])),!0)}getInputName(e){return`${this.options.name}[${e.value}]`}getValueAsString(e,t){if(null==t?void 0:t.email){let t='\n \n \n \n \n \n \n \n \n ';return r.default.forIn(e,((e,n)=>{const i=r.default.find(this.component.questions,["value",n]),o=r.default.find(this.component.values,["value",e]);i&&o&&(t+=`\n \n \n \n \n `)})),t+="
    QuestionValue
    ${i.label}${o.label}
    ",t}return super.getValueAsString(e,t)}}t.default=a},91670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},78110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0}]},44909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0}]},22307:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(46218));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},85783:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(87338)),s=i(n(39142));class a extends s.default{static emptyTable(e,t){const n=[];for(let i=0;i{e.rows&&e.rows.length||(e.rows=a.emptyTable(this.component.numRows,this.component.numCols)),e.rows[t.tableRow]||(e.rows[t.tableRow]=[]),e.rows[t.tableRow][t.tableColumn]||(e.rows[t.tableRow][t.column]={components:[]}),e.rows[t.tableRow][t.tableColumn].components.push(t.schema)})),e.rows.length||(e.rows=a.emptyTable(this.component.numRows,this.component.numCols)),e}get className(){let e=`table-responsive ${super.className}`;return this.component.bordered||(e+=" no-top-border-table"),e}get cellClassName(){let e="";return this.component.cellAlignment&&(e=`cell-align-${this.component.cellAlignment}`),e}get tableKey(){return`table-${this.key}`}get colWidth(){const{numCols:e}=this.component;return e&&"number"==typeof e?Math.floor(12/e).toString():""}constructor(...e){super(...e),this.noField=!0}init(){super.init();for(let e=0;e{this.table[n]=[],r.default.each(t,((t,i)=>{this.table[n][i]=[],this.component.cloneRows&&(t.components.length?e[i]=t:e[i]&&(t.components=r.default.cloneDeep(e[i].components),o.default.uniquify(this.root._form.components,t))),r.default.each(t.components,(e=>{let t;this.builderMode?(e.id=e.id+n,t=e):t=Object.assign(Object.assign({},e),{id:e.id+n});const r=this.createComponent(t);r.tableRow=n,r.tableColumn=i,this.table[n][i].push(r)}))}))}))}render(){return super.render(this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map((e=>e.map((e=>this.renderComponents(e)))))}))}attach(e){const t=this.table.reduce(((e,t,n)=>(e[`${this.tableKey}-${n}`]="multiple",e)),{});this.loadRefs(e,t);const n=super.attach(e);return this.table.forEach(((e,t)=>{e.forEach(((e,n)=>{this.attachComponents(this.refs[`${this.tableKey}-${t}`][n],this.table[t][n],this.component.rows[t][n].components)}))})),n}destroy(e=!1){super.destroy(e),delete this.table}}t.default=a},46218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704}]},47633:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(18618));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},96337:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(39142));class s extends o.default{static schema(...e){return o.default.schema({label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1},...e)}static get builderInfo(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",schema:s.schema()}}get defaultSchema(){return s.schema()}get schema(){const e=super.schema,t=r.default.cloneDeep(this.component.components);return e.components=t.map(((e,t)=>(e.components=this.tabs[t].map((e=>e.schema)),e))),e}get tabKey(){return`tab-${this.key}`}get tabLikey(){return`tabLi-${this.key}`}get tabLinkKey(){return`tabLink-${this.key}`}constructor(...e){super(...e),this.currentTab=0,this.noField=!0}init(){this.components=[],this.tabs=[],r.default.each(this.component.components,((e,t)=>{this.tabs[t]=[],e.components=e.components||[],r.default.each(e.components,(e=>{const n=this.createComponent(e);n.tab=t,this.tabs[t].push(n)}))}))}render(){return super.render(this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map((e=>this.renderComponents(e)))},this.options.flatten||this.options.pdf?"flat":null))}attach(e){this.loadRefs(e,{[this.tabLinkKey]:"multiple",[this.tabKey]:"multiple",[this.tabLikey]:"multiple"}),["change","error"].forEach((e=>this.on(e,this.handleTabsValidation.bind(this))));const t=super.attach(e);return this.refs[this.tabLinkKey].forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.setTab(t)}))})),this.refs[this.tabKey].forEach(((e,t)=>{this.attachComponents(e,this.tabs[t],this.component.components[t].components)})),t}detach(e){super.detach(e)}setTab(e){this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,r.default.each(this.refs[this.tabKey],(e=>{this.removeClass(e,"formio-tab-panel-active"),e.style.display="none"})),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",r.default.each(this.refs[this.tabLinkKey],((e,t)=>{this.refs[this.tabLinkKey][t]&&(this.removeClass(e,"active"),this.removeClass(e,"formio-tab-link-active")),this.refs[this.tabLikey][t]&&(this.removeClass(this.refs[this.tabLikey][t],"active"),this.removeClass(this.refs[this.tabLikey][t],"formio-tab-link-container-active"))})),this.refs[this.tabLikey][e]&&(this.addClass(this.refs[this.tabLikey][e],"active"),this.addClass(this.refs[this.tabLikey][e],"formio-tab-link-container-active")),this.refs[this.tabLinkKey][e]&&(this.addClass(this.refs[this.tabLinkKey][e],"active"),this.addClass(this.refs[this.tabLinkKey][e],"formio-tab-link-active")),this.triggerChange())}beforeFocus(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);const t=this.tabs.findIndex((t=>t.some((t=>t===e))));-1!==t&&this.currentTab!==t&&this.setTab(t)}setErrorClasses(e,t,n,i,r=this.element){this.component.modalEdit&&super.setErrorClasses(e,t,n,i,r),e.forEach((e=>{this.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(this.options.highlightErrors?this.addClass(e,"tab-error"):this.addClass(e,"has-error"))}))}clearErrorClasses(e){if(!this.options.server&&this.rendered){if(this.component.modalEdit){const t=Array.isArray(e)||e instanceof NodeList?this.element:e;super.clearErrorClasses(t)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach((e=>{this.removeClass(e,"is-invalid"),this.removeClass(e,"tab-error"),this.removeClass(e,"has-error")}))}}handleTabsValidation(){if(!this.refs[this.tabLinkKey]||!this.refs[this.tabLinkKey].length||!this.tabs.length)return;this.clearErrorClasses(this.refs[this.tabLinkKey]);const e=this.tabs.reduce(((e,t,n)=>t.some((e=>!!e.error))?[...e,n]:e),[]);if(!e.length)return;const t=[...this.refs[this.tabLinkKey]].filter(((t,n)=>e.includes(n)));this.setErrorClasses(t)}}t.default=s},18618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0}]},82647:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(24494));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:o.default}],...e)}},51299:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(17389)),o=i(n(76644));class s extends r.default{static schema(...e){return r.default.schema({type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0},...e)}static get builderInfo(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:s.schema()}}init(){super.init()}get emptyValue(){return"string"===this.component.storeas?"":[]}get defaultSchema(){return s.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",e.attr.type="text",e.changeEvent="change",e}get delimiter(){return this.component.delimeter||","}attachElement(e,t){if(super.attachElement(e,t),!e)return;if(this.i18next&&e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),!o.default)return;const n=!!this.component.placeholder;this.choices=new o.default(e,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:n,placeholderValue:n?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",(()=>{const e=this.choices.input.value,t=this.component.maxTags,n=this.choices.getValue(!0).length,i=this.choices.getValue(!0).some((t=>t.trim()===e.trim()));e&&(t&&n===t?(this.choices.addItems=!1,this.choices.clearInput()):i?this.choices.clearInput():(this.choices.setValue([e]),this.choices.clearInput(),this.choices.hideDropdown(!0),this.updateValue(null,{modified:!0})))}))}detach(){this.choices&&(this.choices.destroy(),this.choices=null),super.detach()}normalizeValue(e){return"string"===this.component.storeas&&Array.isArray(e)?e.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof e?e.split(this.delimiter).filter((e=>e)):e}setValue(e,t={}){const n=super.setValue(e,t);if(this.choices){let e=this.dataValue;if(this.choices.removeActiveItems(),e){"string"==typeof e&&(e=e.split(this.delimiter).filter((e=>e)));const t=Array.isArray(e)?e:[e];this.choices.setValue(t.map((e=>this.sanitize(e,this.shouldSanitizeValue))))}}return n}set disabled(e){super.disabled=e,this.choices&&(e?this.choices.disable():this.choices.enable())}get disabled(){return super.disabled}focus(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}getValueAsString(e){if(!e)return"";if(Array.isArray(e))return e.join(`${this.delimiter||","} `);const t=e.toString();return this.sanitize(t,this.shouldSanitizeValue)}}t.default=s},24494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags."},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},74501:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(57150)),s=i(n(81741));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"validation",components:s.default}],...e)}},18509:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767)),o=i(n(2543)),s=i(n(53632)),a=n(34600);class l extends r.default{static schema(...e){return r.default.schema({type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}},...e)}static get builderInfo(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:l.schema()}}init(){super.init(),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}get defaultSchema(){return l.schema()}get inputInfo(){const e=super.inputInfo;return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}validateMultiple(){return!this.isJsonValue}renderElement(e,t){const n=this.inputInfo;if(n.attr=n.attr||{},n.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){const t=this.info.attr.style||"",n=`
    `;return this.renderTemplate("well",{children:n,nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t})}get autoExpand(){return this.component.autoExpand}updateEditorValue(e,t){t=this.getConvertedValue(this.trimBlanks(t));const n=this.dataValue;if(this.component.multiple&&Array.isArray(n)){const i=o.default.clone(n);i[e]=t,t=i}o.default.isEqual(t,n)||o.default.isEmpty(t)&&o.default.isEmpty(n)||this.updateValue(t,{modified:!this.autoModified},e),this.autoModified=!1}attachElement(e,t){if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,t),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");let n=o.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[t]=new s.default((i=>{switch(this.component.editor){case"ace":n||(n={}),n.mode=this.component.as?`ace/mode/${this.component.as}`:"ace/mode/javascript",this.addAce(e,n,(e=>this.updateEditorValue(t,e))).then((e=>{this.editors[t]=e;let n=this.dataValue;return n=this.component.multiple&&Array.isArray(n)?n[t]:n,e.setValue(this.setConvertedValue(n,t)),i(e),e})).catch((e=>console.warn(e)));break;case"quill":(n.hasOwnProperty("toolbarGroups")||n.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),n=this.wysiwygDefault.quill),this.addQuill(e,n,(()=>this.updateEditorValue(t,this.editors[t].root.innerHTML))).then((e=>{if(this.editors[t]=e,this.component.isUploadEnabled){const t=this;e.getModule("uploader").options.handler=function(...e){t.imageHandler.call(t,this,...e)}}e.root.spellcheck=this.component.spellcheck,(this.options.readOnly||this.disabled)&&e.disable();let n=this.dataValue;return n=this.component.multiple&&Array.isArray(n)?n[t]:n,e.setContents(e.clipboard.convert({html:this.setConvertedValue(n,t)})),i(e),e})).catch((e=>console.warn(e)));break;case"ckeditor":n=n||{},n.rows=this.component.rows,this.addCKE(e,n,(e=>this.updateEditorValue(t,e))).then((e=>{this.editors[t]=e;let n=this.dataValue;n=this.component.multiple&&Array.isArray(n)?n[t]:n;const r=this.setConvertedValue(n,t),s=this.options.readOnly||this.disabled;if((0,a.getBrowserInfo)().ie)e.on("instanceReady",(()=>{e.setReadOnly(s),e.setData(r)}));else{const t=parseInt(this.component.rows,10);if(o.default.isFinite(t)&&o.default.has(e,"ui.view.editable.editableElement")){const n=31*t+14;e.ui.view.editable.editableElement.style.height=`${n}px`}e.isReadOnly=s,e.data.set(r)}return i(e),e}));break;default:super.attachElement(e,t)}})),e}attach(e){const t=super.attach(e);return this.restoreValue(),t}imageHandler(e,t,n){const i=e.quill;if(!n||!n.length)return void console.warn("No files selected");i.enable(!1);const{uploadStorage:r,uploadUrl:o,uploadOptions:s,uploadDir:l,fileKey:u}=this.component;let c;this.fileService.uploadFile(r,n[0],(0,a.uniqueName)(n[0].name),l||"",null,o,s,u).then((e=>(c=e,this.fileService.downloadFile(e)))).then((e=>{i.enable(!0);const n=Quill.import("delta");i.updateContents((new n).retain(t.index).delete(t.length).insert({image:e.url},{alt:JSON.stringify(c)}),Quill.sources.USER)})).catch((e=>{console.warn("Quill image upload failed"),console.warn(e),i.enable(!0)}))}get isPlain(){return!this.component.wysiwyg&&!this.component.editor}get htmlView(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}setValueAt(e,t,n={}){if(super.setValueAt(e,t,n),this.editorsReady[e]){const i=n=>i=>{if(!n.skipWysiwyg)switch(this.autoModified=!0,this.component.editor){case"ace":i.setValue(this.setConvertedValue(t,e));break;case"quill":if(this.component.isUploadEnabled)this.setAsyncConvertedValue(t).then((e=>{const t=i.clipboard.convert({html:e});i.setContents(t)}));else{const n=this.setConvertedValue(t,e),r=i.clipboard.convert({html:n});i.setContents(r)}break;case"ckeditor":i.data.set(this.setConvertedValue(t,e))}};this.editorsReady[e].then(i(o.default.clone(n)))}}setValue(e,t={}){return this.isPlain||this.options.readOnly||this.disabled?(e=this.component.multiple&&Array.isArray(e)?e.map(((e,t)=>this.setConvertedValue(e,t))):this.setConvertedValue(e),super.setValue(e,t)):(t.skipWysiwyg=o.default.isEqual(e,this.getValue()),super.setValue(e,t))}setContent(e,t,n){super.setContent(e,t,n,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}setReadOnlyValue(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&("plain"===this.component.inputFormat?this.refs.input[t].innerText=this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[t],this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}get isJsonValue(){return this.component.as&&"json"===this.component.as}setConvertedValue(e,t){if(this.isJsonValue&&!o.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return o.default.isString(e)||(e=""),this.setReadOnlyValue(e,t),e}setAsyncConvertedValue(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}o.default.isString(e)||(e="");const t=(new DOMParser).parseFromString(e,"text/html"),n=t.getElementsByTagName("img");return n.length?this.setImagesUrl(n).then((()=>e=t.getElementsByTagName("body")[0].innerHTML)):s.default.resolve(e)}setImagesUrl(e){return s.default.all(o.default.map(e,(e=>{let t;try{t=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return this.fileService.downloadFile(t).then((t=>{e.setAttribute("src",t.url)}))})))}addAutoExpanding(e,t){let n=null,i=null;const r=t=>{const n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t},s=()=>{0!==e.scrollHeight&&((t,i)=>{const r=[];for(;t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&r.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;e.style.height="",e.style.height=`${e.scrollHeight+n}px`,r.forEach((e=>{e.node.scrollTop=e.scrollTop}))})(e)},a=o.default.debounce((()=>{s();const t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null);let o=e.offsetHeight;o{const t="

     

    ",n="


    ",i="


     

    ",r=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${i}|${i}$`,"g");return"string"==typeof e?e.replace(r,""):e};return Array.isArray(e)?e.forEach(((n,i)=>{e[i]=t(n)})):e=t(e),e}onChange(e,t){const n=super.onChange(e,t);return this.updateSizes.forEach((e=>e())),n}hasChanged(e,t){return super.hasChanged(this.trimBlanks(e),this.trimBlanks(t))}isEmpty(e=this.dataValue){return super.isEmpty(this.trimBlanks(e))}get defaultValue(){let e=super.defaultValue;return"quill"!==this.component.editor||e||(e="


    "),e}getConvertedValue(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}detach(){this.editors.forEach((e=>{e.destroy&&e.destroy()})),this.editors=[],this.editorsReady=[],this.updateSizes.forEach((e=>this.removeEventListener(window,"resize",e))),this.updateSizes=[],super.detach()}getValue(){return this.isPlain?this.getConvertedValue(super.getValue()):this.dataValue}focus(){var e,t,n;switch(super.focus(),this.component.editor){case"ckeditor":null===(e=this.editorsReady[0])||void 0===e||e.then((()=>{var e,t;(null===(t=null===(e=this.editors[0].editing)||void 0===e?void 0:e.view)||void 0===t?void 0:t.focus)&&this.editors[0].editing.view.focus(),this.element.scrollIntoView()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"ace":null===(t=this.editorsReady[0])||void 0===t||t.then((()=>{this.editors[0].focus(),this.element.scrollIntoView()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"quill":null===(n=this.editorsReady[0])||void 0===n||n.then((()=>{this.editors[0].focus()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}))}}}t.default=l},57150:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(29857);t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>r.default.map(o.Formio.Providers.getProviders("storage"),((e,t)=>({label:e.title,value:t})))},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See https://github.com/danialfarid/ng-file-upload#server-side for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n "withCredentials": true\n }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"String",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:(e,t,n,i,r)=>r?r.wysiwygDefault:"",conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}]},81741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},94259:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),o=i(n(66024)),s=i(n(18824)),a=i(n(62627));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:o.default},{key:"validation",components:a.default}],...e)}},41767:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=s(n(17389)),l=n(78443),u=o(n(34600)),c=s(n(53632));class d extends a.default{static schema(...e){return a.default.schema({label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}},...e)}static get builderInfo(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:d.schema()}}get defaultSchema(){return d.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",e}get emptyValue(){return""}constructor(e,t,n){var i,r,o;super(e,t,n);const s=(null===(i=this.component.widget)||void 0===i?void 0:i.timezone)||this.options.timezone,a=(null===(r=this.component.widget)||void 0===r?void 0:r.displayInTimezone)||"viewer";"calendar"===(null===(o=this.component.widget)||void 0===o?void 0:o.type)&&(this.component.widget=Object.assign(Object.assign({},this.component.widget),{readOnly:this.options.readOnly,timezone:s,displayInTimezone:a,locale:this.component.widget.locale||this.options.language,saveAs:"text"}))}attach(e){return this.loadRefs(e,{valueMaskInput:"single"}),super.attach(e)}maskValue(e,t={}){if(e&&"object"==typeof e||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){const n=t.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(n)?n[0]:n}return e}normalizeValue(e,t={}){return this.isMultipleMasksField?Array.isArray(e)?super.normalizeValue(e.map((e=>this.maskValue(e,t)))):super.normalizeValue(this.maskValue(e,t)):super.normalizeValue(e)}setValueAt(e,t,n={}){if(!this.isMultipleMasksField)return super.setValueAt(e,t,n);const i=(t=this.maskValue(t,n)).value||"",r=this.refs.mask?this.refs.mask[e]:null,o=this.refs.select?this.refs.select[e]:null,s=this.getMaskPattern(t.maskName);if(!(r&&o&&s))return super.setValueAt(e,i,n);{const e=this.placeholderChar;r.value=(0,l.conformToMask)(i,u.getInputMask(s),{placeholderChar:e}).conformedValue,o.value=t.maskName}}unmaskValue(e,t=this.component.displayMask){const n=u.getInputMask(t,this.placeholderChar);return u.unmaskValue(e,n,this.placeholderChar)}getValueAt(e){var t,n;if(!this.isMultipleMasksField){const i=super.getValueAt(e),r=this.component.inputMask,o=this.component.displayMask;return r&&!o||o===r?i:o&&!r?this.unmaskValue(i,o):(null===(t=this.refs.valueMaskInput)||void 0===t?void 0:t.mask)?(this.refs.valueMaskInput.mask.textMaskInputElement.update(i),null===(n=this.refs.valueMaskInput)||void 0===n?void 0:n.value):i}const i=this.refs.mask?this.refs.mask[e]:null,r=this.refs.select?this.refs.select[e]:null;return{value:i?i.value:void 0,maskName:r?r.value:void 0}}getValueAsString(e,t){return e&&"plain"===this.component.inputFormat&&/<[^<>]+>/g.test(e)&&(e=e.replaceAll("<","<").replaceAll(">",">")),super.getValueAsString(e,t)}isHtmlRenderMode(){return super.isHtmlRenderMode()||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}isEmpty(e=this.dataValue){return this.isMultipleMasksField?super.isEmpty(e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):super.isEmpty((e||"").toString().trim())}truncateMultipleSpaces(e){return e?e.trim().replace(/\s{2,}/g," "):e}get validationValue(){const e=super.validationValue;return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}beforeSubmit(){let e=this.dataValue;return this.component.truncateMultipleSpaces&&e?(e=this.truncateMultipleSpaces(e),this.dataValue=e,c.default.resolve(e).then((()=>super.beforeSubmit()))):c.default.resolve(e)}}t.default=d},66024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"{{ item.label }}",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},18824:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(95357)),o=i(n(2543));t.default=[{weight:400,type:"select",input:!0,key:"widget.type",label:"Widget",placeholder:"Select a widget",tooltip:"The widget is the display UI used to input the value of the field.",defaultValue:"input",onChange:e=>{e.data.widget=o.default.pick(e.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:e=>{const{calculatedValue:t}=e.instance,{type:n}=e.data.widget;if(o.default.isEmpty(o.default.omit(e.data.widget,"type"))||o.default.isEmpty(o.default.omit(t,"type"))){if(t&&!t.type)return e.data.widget;const i=e.instance._currentForm.options.editComponent.widget;if(i&&!o.default.isEmpty(o.default.omit(i,"type"))&&n===i.type)return o.default.omit(i,"language");if(n)return o.default.omit(r.default[n].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.

    9: numeric
    a: alphabetical
    *: alphanumeric

    Example telephone mask: (999) 999-9999

    See the jquery.inputmask documentation for more information.",customConditional:e=>!e.data.allowMultipleMasks},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).

    9: numeric
    a: alphabetical
    *: alphanumeric

    Example telephone mask: (999) 999-9999

    See the jquery.inputmask documentation for more information.",customConditional:e=>!e.data.allowMultipleMasks},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:e=>!e.data.allowMultipleMasks},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field.
    E.g., ˍ
    Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:e=>e.data.inputMask||e.data.displayMask},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:e=>!0===e.data.allowMultipleMasks,reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the MDN documentation on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",key:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}]},62627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},87815:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(21445)),o=i(n(82690)),s=i(n(77298));t.default=function(...e){return(0,r.default)([{key:"data",components:o.default},{key:"display",components:s.default}],...e)}},35891:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(95093)),o=i(n(41767)),s=n(34600),a="HH:mm:ss";class l extends o.default{static schema(...e){return o.default.schema({type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:a},...e)}constructor(e,t,n){super(e,t,n);const{edge:i,version:r}=(0,s.getBrowserInfo)();this.component.inputMask=this.getInputMaskFromFormat(this.component.format),this.component.inputType=i&&r<=18?"text":this.component.inputType||"time",this.rawData=this.component.multiple?[]:this.emptyValue}init(){super.init(),"text"===this.component.inputType&&this.validators.push("time")}static get builderInfo(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time",weight:55,schema:l.schema()}}get dataFormat(){return this.component.dataFormat||a}get defaultSchema(){return l.schema()}get defaultValue(){let e=super.defaultValue;return this.component.multiple&&Array.isArray(e)?e=e.map((e=>e?this.getStringAsValue(e):e)):e&&(e=this.getStringAsValue(e)),e}get validationValue(){return Array.isArray(this.rawData)&&!this.rawData.length||!this.rawData?this.dataValue:this.rawData}get inputInfo(){const e=super.inputInfo;return e.attr.type=this.component.inputType,e}get skipMaskValidation(){return!0}isNotCompleteInput(e){return e.includes("_")}removeValue(e){this.rawData=Array.isArray(this.rawData)?[...this.rawData.slice(0,e),...this.rawData.slice(e+1)]:this.emptyValue,super.removeValue(e)}resetRawData(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}setRawValue(e,t){Array.isArray(this.rawData)?this.rawData[t]=e:this.rawData=e}getRawValue(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}getValueAt(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;const{value:t}=this.refs.input[e];return t?(this.setRawValue(t,e),this.getStringAsValue(t)):(this.resetRawData(e),this.emptyValue)}setValueAt(e,t){this.setRawValue(t?this.getValueAsString(t):t,e),this.refs.input[e].value=this.getRawValue(e)}getStringAsValue(e){return e?(0,r.default)(e,this.component.format).format(this.component.dataFormat):e}getValueAsString(e){return(e?(0,r.default)(e,this.component.dataFormat).format(this.component.format):e)||""}getInputMaskFromFormat(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(e.value)}))}}t.default=l},82690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},77298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},67993:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543));class o{constructor(e,{data:t={},children:n=[]}={},{checkNode:i,createComponents:s,isNew:a=!0,removeComponents:l,parentPath:u=""}={}){this.parent=e,this.previousData={},this.persistentData=r.default.cloneDeep(t),this.new=a,this.createComponents=s,this.checkNode=i,this.removeComponents=l,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=u,this.resetData(),this.children=n.map(((e,t)=>new o(this,e,{checkNode:i,createComponents:s,isNew:!1,removeComponents:l,parentPath:this.getChildrenPath(t)})))}get value(){return this.new?null:{data:r.default.cloneDeep(this.persistentData),children:this.children.filter((e=>!e.new)).map((e=>e.value))}}get isRoot(){return null===this.parent}get changing(){return this.new||this.editing}get hasChangingChildren(){return this.changin||this.children.some((e=>e.hasChangingChildren))}get hasData(){return!r.default.isEmpty(this.persistentData)}get hasChildren(){return Array.isArray(this.children)&&this.children.length>0}getChildrenPath(e){return this.parentPath?`${this.parentPath}.children[${e}]`:""}eachChild(e){return e(this),this.children.forEach((t=>t.eachChild(e))),this}getComponents(){return this.children.reduce(((e,t)=>e.concat(t.getComponents())),this.components)}validateNode(){let e=!0;return this.getComponents().forEach((t=>{t.setPristine(!1),e&=t.checkValidity(null,!1,this.persistentData)})),e}addChild(){if(this.new)return null;const e=new o(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(e),e}removeChild(e){return this.new||(this.children=this.children.filter((t=>t!==e))),this}edit(){return this.new?this:(this.editing=!0,this.resetData())}save(){const e=this.validateNode();return this.changing&&e&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),e}cancel(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}remove(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}revert(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}commitData(){return this.previousData=this.persistentData,this.persistentData=r.default.cloneDeep(this.data),this.clearComponents(),this}resetData(){return this.data=r.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}updateComponentsContext(){return this.changing?this.instantiateComponents():this.clearComponents(),this}instantiateComponents(){this.components=this.createComponents(this.data,this),this.components.forEach((e=>{if(this.parentPath){const t=this.calculateComponentPath(e);e.path=t}})),this.checkNode(this)}clearComponents(){this.removeComponents(this.components),this.components=[]}calculateComponentPath(e){let t="";return e.component.key&&(t=`${this.parentPath}.data.${e.component.key}`),t}}t.default=o},45425:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(21445)),o=i(n(69066));t.default=function(...e){return(0,r.default)([{key:"data",components:o.default}],...e)}},12337:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(96877)),s=i(n(87422)),a=i(n(42574)),l=i(n(67993)),u=i(n(53632));class c extends a.default{static schema(...e){return a.default.schema({label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1},...e)}static get builderInfo(){return{title:"Tree",icon:"indent",group:"data",weight:40,documentation:"/userguide/form-building/data-components#tree",schema:c.schema()}}constructor(...e){super(...e),this.type="tree"}get emptyValue(){return{}}get viewComponents(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}init(){if(this.builderMode)return super.init();this.components=[],this.componentOptions=Object.assign(Object.assign({},this.options),{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}get disabled(){return super.disabled}set disabled(e){super.disabled=e,this.viewComponents.forEach((t=>t.parentDisabled=e))}get isDefaultValueComponent(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}destroy(e=!1){this.builderMode||this.removeComponents(this._viewComponents,e),super.destroy(e)}createComponents(e,t){const n=this.componentComponents.map((t=>{const n=s.default.create(t,this.componentOptions,e);return n.init(),n.parentDisabled=this.disabled,n}));return t&&this.checkNode(this.data,t),n}removeComponents(e,t=!1){return e.map((e=>e.destroy(t)))}render(){return this.builderMode?super.render():super.render(this.renderTree(this.treeRoot))}renderTree(e={},t=!0){const n=e.hasChildren&&!e.collapsed?this.renderChildNodes(e.children,!t):[],i=e.changing?this.renderEdit(e):this.renderView(e);return this.renderTemplate("tree",{odd:t,childNodes:n,content:i,node:e})}renderChildNodes(e=[],t){return e.map((e=>this.renderTree(e,t)))}renderEdit(e={}){return this.renderTemplate("treeEdit",{children:this.renderComponents(e.components),node:e})}renderView(e={}){return this.renderTemplate("treeView",{values:this.viewComponents.map((t=>(t.data=e.data,t.checkComponentConditions(e.data),t.getView(t.dataValue)))),nodeData:e.data,node:e})}attach(e){return this.builderMode?super.attach(e):(this.loadRefs(e,{root:"single"}),u.default.all([super.attach(e),this.attachNode(this.refs.root,this.treeRoot)]))}attachNode(e,t){if(!e)return u.default.resolve();let n=u.default.resolve(),i=u.default.resolve();return t.refs=r.default.reduce(e.children,((e,t)=>t.hasAttribute("ref")?Object.assign(Object.assign({},e),{[t.getAttribute("ref")]:t}):e),{}),t.refs.content&&(this.attachActions(t),n=this.attachComponents(t)),t.refs.childNodes&&(i=this.attachChildren(t)),u.default.all([n,i])}attachActions(e){var t;e.editing||this.loadRefs.call(e,e.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(e,(null===(t=e.refs.content.children[0])||void 0===t?void 0:t.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",(()=>{this.addChild(e)})),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",(()=>{this.cancelNode(e)})),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",(()=>{this.editNode(e)})),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",(()=>{this.removeNode(e)})),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",(()=>{this.revertNode(e)})),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",(()=>{this.saveNode(e)})),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",(()=>{this.toggleNode(e)}))}attachComponents(e,...t){return this.builderMode?super.attachComponents.call(this,e,...t):(this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?super.attachComponents(e.refs.nodeEdit,e.components):u.default.resolve())}attachChildren(e){const t=e.refs.childNodes.children;return u.default.all(r.default.map(t,((t,n)=>this.attachNode(t,e.children[n]))))}setValue(e,t={}){const n=this.updateValue(e,t);return this.setRoot(),n}addChild(e){this.options.readOnly||e.new||this.hook("tree.addChild",{parent:e,component:this},(()=>{const t=e.addChild();return this.redraw(),t}))}cancelNode(e){this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},(()=>(e.isRoot?e.persistentData&&!r.default.isEmpty(e.persistentData)?(e.cancel(),this.redraw()):this.removeRoot():(e.cancel(),this.redraw()),e)))}editNode(e){this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},(()=>(e.edit(),this.redraw(),e)))}removeNode(e){this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},(()=>(e.isRoot?this.removeRoot():(e.remove(),this.updateTree()),e)))}revertNode(e){!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},(()=>(e.revert(),this.updateTree(),e)))}saveNode(e){this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},(()=>(e.save()&&this.updateTree(),e)))}toggleNode(e){this.hook("tree.toggleNode",{node:e,component:this},(()=>(e.collapsed=!e.collapsed,this.redraw(),e)))}removeRoot(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}setRoot(){const e=this.getValue();this.treeRoot=new l.default(null,e,{isNew:!!this.builderMode||!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}getValue(){return this.dataValue||{}}updateTree(){this.updateValue(this.treeRoot.value),this.redraw()}checkData(e,t,n){return this.checkNode(e,this.treeRoot,t,n)}checkNode(e,t,n,i){return t.children.reduce(((t,r)=>this.checkNode(e,r,n,i)&&t),super.checkData(e,n,t.data,t.components)&&!t.editing&&!t.new)}getComponents(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():super.getComponents()}}t.default=c,c.prototype.hasChanged=o.default.prototype.hasChanged},69066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},20031:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(67002));t.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:r.default}]}]}}},63691:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877));class o extends r.default{static schema(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}static get builderInfo(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:o.schema()}}get defaultSchema(){return o.schema()}}t.default=o},67002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see custom component documentation.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},26627:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),o=i(n(51444)),s=i(n(396)),a=i(n(31863));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default},{key:"data",components:s.default},{key:"validation",components:a.default}],...e)}},78647:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767));class o extends r.default{static schema(...e){return r.default.schema({type:"url",label:"Url",key:"url",inputType:"url"},...e)}static get builderInfo(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:o.schema()}}constructor(e,t,n){super(e,t,n),this.validators.push("url")}get defaultSchema(){return o.schema()}elementInfo(){const e=super.elementInfo();return e.attr.type=this.component.mask?"password":"url",e}}t.default=o},396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"case",ignore:!0}]},51444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},31863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},50493:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),o=i(n(77946));t.default=function(...e){return(0,r.default)([{key:"display",components:o.default}],...e)}},99493:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(39142));class o extends r.default{static schema(...e){return r.default.schema({type:"well",key:"well",input:!1,persistent:!1,components:[]},...e)}static get builderInfo(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",weight:60,schema:o.schema()}}get defaultSchema(){return o.schema()}get className(){return`${this.component.customClass}`}get templateName(){return"well"}constructor(...e){super(...e),this.noField=!0}}t.default=o},77946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0}]},69628:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(90177)),s=i(n(97567)),a=i(n(4212));class l{static addDisplay(e,t){l.displays[e]=t}static addDisplays(e){l.displays=r.default.merge(l.displays,e)}static getDisplay(e){return l.displays[e]}static getDisplays(){return l.displays}}l.displays={pdf:o.default,webform:s.default,wizard:a.default},t.default=l},46043:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(69628));t.default=r.default},577:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.Form=t.Utils=t.ValueSources=t.Transformers=t.QuickRules=t.Operators=t.Conjunctions=t.Templates=t.Widgets=t.Rules=t.Providers=t.Displays=t.Components=t.useModule=t.registerModule=void 0;const r=i(n(2543)),o=n(29857);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const s=i(n(27452)),a=i(n(87422));t.Components=a.default;const l=i(n(69628));t.Displays=l.default;const u=i(n(59452));t.Templates=u.default;const c=i(n(77486));t.Providers=c.default;const d=i(n(64237));t.Rules=d.default;const h=i(n(65370));t.Conjunctions=h.default;const p=i(n(55728));t.Operators=p.default;const f=i(n(36961));t.QuickRules=f.default;const m=i(n(66307));t.Transformers=m.default;const g=i(n(20902));t.ValueSources=g.default;const v=i(n(95357));t.Widgets=v.default;const y=i(n(18633));t.Form=y.default;const b=i(n(30301));t.Utils=b.default;const _=i(n(10196));function w(e,t=null){if("object"==typeof e)for(const n of Object.keys(e)){const i=e.framework||o.Formio.Templates.framework||"bootstrap";switch(n){case"options":o.Formio.options=r.default.merge(o.Formio.options,e.options);break;case"templates":for(const t of Object.keys(e.templates))o.Formio.Templates.extendTemplate(t,e.templates[t]);e.templates[i]&&(o.Formio.Templates.current=e.templates[i]);break;case"components":o.Formio.Components.setComponents(e.components);break;case"framework":o.Formio.Templates.framework=e.framework;break;case"fetch":for(const t of Object.keys(e.fetch))o.Formio.registerPlugin(e.fetch[t],t);break;case"providers":for(const t of Object.keys(e.providers))o.Formio.Providers.addProviders(t,e.providers[t]);break;case"displays":o.Formio.Displays.addDisplays(e.displays);break;case"rules":o.Formio.Rules.addRules(e.rules);break;case"evaluator":o.Formio.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":o.Formio.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":o.Formio.Operators.addOperators(e.operators);break;case"quickRules":o.Formio.QuickRules.addQuickRules(e.quickRules);break;case"transformers":o.Formio.Transformers.addTransformers(e.transformers);break;case"valueSources":o.Formio.ValueSources.addValueSources(e.valueSources);break;default:if(t){t(n,e)||console.warn("Unknown module option",n);break}console.log("Unknown module option",n)}}}function k(e=null){return(...t)=>{t.forEach((t=>{Array.isArray(t)?t.forEach((t=>w(t,e))):w(t,e)}))}}o.Formio.loadModules=(e=`${o.Formio.getApiUrl()}/externalModules.js`,t="externalModules")=>{o.Formio.requireLibrary(t,t,e,!0).then((e=>{o.Formio.use(e)}))},o.Formio.Components=a.default,o.Formio.Templates=u.default,o.Formio.Utils=b.default,o.Formio.Form=y.default,o.Formio.Displays=l.default,o.Formio.Providers=c.default,o.Formio.Rules=d.default,o.Formio.Widgets=v.default,o.Formio.Evaluator=_.default,o.Formio.Conjunctions=h.default,o.Formio.Operators=p.default,o.Formio.QuickRules=f.default,o.Formio.Transformers=m.default,o.Formio.ValueSources=g.default,o.Formio.AllComponents=s.default,o.Formio.Formio=o.Formio,o.Formio.Components.setComponents(s.default),t.registerModule=w,t.useModule=k,o.Formio.use=k()},2899:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(51637)),o=n(34600);t.default={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,o.fastCloneDeep)(r.default)}}}},92595:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Builders=t.FormBuilder=void 0;const s=o(n(76482));t.FormBuilder=s.default;const a=o(n(64142));t.Builders=a.default;const l=n(577);l.Formio.Builders=a.default,l.Formio.use=(0,l.useModule)(((e,t)=>"builders"===e&&(l.Formio.Builders.addBuilders(t.builders),!0))),r(n(577),t)},37092:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(44085)),s=i(n(77689)),a=i(n(75940));class l{static addProvider(e,t,n){l.providers[e]=l.providers[e]||{},l.providers[e][t]=n}static addProviders(e,t){l.providers[e]=r.default.merge(l.providers[e],t)}static getProvider(e,t){if(l.providers[e]&&l.providers[e][t])return l.providers[e][t]}static getProviders(e){if(l.providers[e])return l.providers[e]}}l.providers={address:o.default,auth:s.default,storage:a.default},t.default=l},21416:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const r=i(n(2543)),o=n(29857);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=r.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return r.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return r.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return o.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const n=this.getRequestOptions(t);return(n.params=n.params||{})[this.queryProperty]=e,this.makeRequest(n).then((e=>this.responseProperty?r.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?r.default.get(e,this.displayValueProperty,""):String(e)}}},58697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const i=n(21416);class r extends i.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=r},26101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const i=n(21416);class r extends i.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:n}=e;return`${n}?${this.serialize(t)}`}}t.CustomAddressProvider=r},77029:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const r=n(29857),o=i(n(2543)),s=n(21416),a=i(n(53632));class l extends s.AddressProvider{static get name(){return"google"}static get displayName(){return"Google Maps"}constructor(e={}){var t;super(e),this.setAutocompleteOptions();let n="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(n+=`&key=${e.params.key}`),r.Formio.requireLibrary(this.getLibraryName(),"google.maps.places",n)}get displayValueProperty(){return"formattedPlace"}get alternativeDisplayValueProperty(){return"formatted_address"}set autocompleteOptions(e){this._autocompleteOptions=e}get autocompleteOptions(){return this._autocompleteOptions}setAutocompleteOptions(){let e=o.default.get(this.options,"params.autocompleteOptions",{});o.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}beforeMergeOptions(e){this.convertRegionToAutocompleteOption(e)}getLibraryName(){return"googleMaps"}convertRegionToAutocompleteOption(e){const t=e;let n=o.default.get(t,"params.region","");if(n&&!o.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();const e={UK:"GB"};e[n]&&(n=e[n]),o.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[n])}}getRequiredAddressProperties(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}addRequiredProviderOptions(e){const t=this.getRequiredAddressProperties();o.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((n=>{e[n]&&(t[n]=e[n])})),t}attachAutocomplete(e,t,n){r.Formio.libraryReady(this.getLibraryName()).then((()=>{const i=new google.maps.places.Autocomplete(e,this.autocompleteOptions);i.addListener("place_changed",(()=>{const r=this.filterPlace(i.getPlace());r.formattedPlace=o.default.get(i,"gm_accessors_.place.se.formattedPrediction",r[this.alternativeDisplayValueProperty]),n(r,e,t)}))}))}search(){return a.default.resolve()}makeRequest(){return a.default.resolve()}getDisplayValue(e){const t=o.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return o.default.get(e,t,"")}}t.GoogleAddressProvider=l},37242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const i=n(21416);class r extends i.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=r},44085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(58697),r=n(26101),o=n(77029),s=n(37242);t.default={[i.AzureAddressProvider.name]:i.AzureAddressProvider,[r.CustomAddressProvider.name]:r.CustomAddressProvider,[o.GoogleAddressProvider.name]:o.GoogleAddressProvider,[s.NominatimAddressProvider.name]:s.NominatimAddressProvider}},77689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},77486:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(37092));t.default=r.default},70103:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632));t.default=(e,t)=>(n,i)=>new r.default(((r,o)=>{const s=new XMLHttpRequest;s.onerror=e=>{e.networkError=!0,o(e)},s.onabort=e=>{e.networkError=!0,o(e)},s.onload=()=>{if(s.status>=200&&s.status<300){const e=s.getResponseHeader("Content-Type")||n.type;r(new File([s.response],n.name,{type:e}))}else o(s.response||"Unable to process file")},s.onabort=o,s.open("POST",t.url);const a=e.getToken();a&&s.setRequestHeader("x-jwt-token",a),s.responseType="arraybuffer";const l=new FormData;l.append("file",n),l.append("processorOptions",JSON.stringify(t.options||{})),l.append("options",JSON.stringify(i||{})),s.send(l)}))},57171:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(38034)),o=e=>({uploadFile:(t,n,i,o,s,a,l,u,c,d)=>r.default.upload(e,"azure",((e,n)=>(e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,n,i,o,u,c,d).then((()=>({storage:"azure",name:r.default.path([i,n]),size:t.size,type:t.type,groupPermissions:u,groupId:c}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${r.default.trim(t.name)}`,"GET")});o.title="Azure File Services",t.default=o},7489:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632)),o=()=>({title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new r.default(((i,r)=>{n.onload=n=>{const r=n.target.result;i({storage:"base64",name:t,url:r,size:e.size,type:e.type})},n.onerror=()=>r(this),n.readAsDataURL(e)}))},downloadFile:e=>r.default.resolve(e)});o.title="Base64",t.default=o},71793:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632)),o=n(38034),s=e=>({uploadFile:(t,n,i,s,a,l,u,c,d,h)=>new r.default(((r,a)=>{const l=new XMLHttpRequest;"function"==typeof s&&(l.upload.onprogress=s),"function"==typeof h&&h((()=>l.abort()));const u=new FormData;u.append("name",n),u.append("dir",i),u.append("file",t),l.onerror=e=>{e.networkError=!0,a(e)},l.onload=()=>{if(l.status>=200&&l.status<300){const e=JSON.parse(l.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=d,e.groupPermissions=c,r(e)}else a(l.response||"Unable to upload file")},l.onabort=a,l.open("POST",`${e.formUrl}/storage/gdrive`),(0,o.setXhrHeaders)(e,l);const p=e.getToken();p&&l.setRequestHeader("x-jwt-token",p),l.send(u)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,r.default.resolve(t)}});s.title="Google Drive",t.default=s},75940:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(7489)),o=i(n(63900)),s=i(n(57171)),a=i(n(63565)),l=i(n(15339)),u=i(n(71793));t.default={base64:r.default,s3:o.default,url:a.default,azure:s.default,indexeddb:l.default,googledrive:u.default}},15339:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(22831),o=i(n(53632)),s=()=>({title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,i,s,a){if("indexedDB"in window)return new o.default((e=>{const t=indexedDB.open(a.indexeddb,3);t.onsuccess=function(t){const n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(a.indexeddbTable)}})).then((t=>{const n=new FileReader;return new o.default(((i,o)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),o=(0,r.v4)(n),l={id:o,data:n,name:e.name,size:e.size,type:e.type,url:s},u=t.transaction([a.indexeddbTable],"readwrite");u.objectStore(a.indexeddbTable).put(l,o).onerror=function(e){console.log("error storing data"),console.error(e)},u.oncomplete=function(){i({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:s,id:o})}},n.onerror=()=>o(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new o.default((e=>{indexedDB.open(t.indexeddb,3).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new o.default(((i,r)=>{const o=n.transaction([t.indexeddbTable],"readonly"),s=o.objectStore(t.indexeddbTable).get(e.id);s.onsuccess=()=>{o.oncomplete=()=>{const t=s.result,n=new File([s.result.data],e.name,{type:s.result.type}),o=new FileReader;o.onload=n=>{t.url=n.target.result,t.storage=e.storage,i(t)},o.onerror=()=>r(this),o.readAsDataURL(n)}},s.onerror=()=>r(this)}))))},deleteFile(e,t){return new o.default((e=>{indexedDB.open(t.indexeddb,3).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new o.default(((i,r)=>{const o=n.transaction([t.indexeddbTable],"readwrite"),s=o.objectStore(t.indexeddbTable).delete(e.id);s.onsuccess=()=>{o.oncomplete=()=>{const e=s.result;i(e)}},s.onerror=()=>r(this)}))))}});s.title="IndexedDB",t.default=s},63900:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632)),o=i(n(38034)),s=e=>({uploadFile:(t,n,i,r,s,a,l,u,c,d)=>o.default.upload(e,"s3",((e,r)=>{if(r.data.fileName=n,r.data.key=o.default.path([r.data.key,i,n]),r.signed)return e.openAndSetHeaders("PUT",r.signed),e.setRequestHeader("Content-Type",t.type),t;{const n=new FormData;for(const e in r.data)n.append(e,r.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",r.url),n}}),t,n,i,r,u,c,d).then((e=>({storage:"s3",name:n,bucket:e.bucket,key:e.data.key,url:o.default.path([e.url,e.data.key]),acl:e.data.acl,size:t.size,type:t.type}))),downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${o.default.trim(t.bucket)}&key=${o.default.trim(t.key)}`,"GET"):r.default.resolve(t)});s.title="S3",t.default=s},87468:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getFormioUploadAdapterPlugin=void 0;const r=n(34600),o=i(n(53632));class s{constructor(e,t,n){this.loader=e,this.fileService=t,this.component=n}upload(){return this.loader.file.then((e=>new o.default(((t,n)=>{const{uploadStorage:i,uploadUrl:o,uploadOptions:s,uploadDir:a,fileKey:l}=this.component.component,u=[i,e,(0,r.uniqueName)(e.name),a||"",e=>this.onUploadProgress(e),o,s,l,null,null],c=this.fileService.uploadFile(...u,(()=>this.component.emit("fileUploadingStart",c))).then((e=>this.fileService.downloadFile(e))).then((e=>t({default:e.url}))).catch((e=>{console.warn("An Error occured while uploading file",e),n(e)})).finally((()=>{this.component.emit("fileUploadingEnd",c)}))}))))}abort(){}onUploadProgress(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}t.getFormioUploadAdapterPlugin=(e,t)=>n=>{n.plugins.get("FileRepository").createUploadAdapter=n=>new s(n,e,t)}},63565:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(53632)),o=e=>{const t=(t,n,i,o,s,a,l)=>new r.default(((r,u)=>{const c=new XMLHttpRequest,d="string"==typeof o,h=new FormData;if("function"==typeof a&&(c.upload.onprogress=a),"function"==typeof l&&l((()=>c.abort())),!d)for(const e in o)h.append(e,o[e]);c.onload=()=>{if(c.status>=200&&c.status<300){let e={};try{e="string"==typeof c.response?JSON.parse(c.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let i=e.hasOwnProperty("url")?e.url:`${c.responseURL}/${n}`;i&&"/"===i[0]&&(i=`${t}${i}`),r({url:i,data:e})}else u(c.response||"Unable to upload file")},c.onerror=()=>u(c),c.onabort=()=>u(c);let p=t+(t.indexOf("?")>-1?"&":"?");for(const e in i)p+=`${e}=${i[e]}&`;"&"===p[p.length-1]&&(p=p.substr(0,p.length-1)),c.open("POST",p),d&&c.setRequestHeader("Content-Type","application/json");const f=e.getToken();if(f&&c.setRequestHeader("x-jwt-token",f),s){const e="string"==typeof s?JSON.parse(s):s;for(const t in e)c[t]=e[t]}c.send(d?o:h)}));return{title:"Url",name:"url",uploadFile(n,i,r,o,s,a,l,u,c,d){const h=function(u){return t(s,i,{baseUrl:encodeURIComponent(e.projectUrl),project:u?u.project:"",form:u?u._id:""},{[l]:n,name:i,dir:r},a,o,d).then((t=>(t.data=t.data||{},t.data.baseUrl=e.projectUrl,t.data.project=u?u.project:"",t.data.form=u?u._id:"",{storage:"url",name:i,url:t.url,size:n.size,type:n.type,data:t.data})))};return n.private&&e.formId?e.loadForm().then((e=>h(e))):h()},deleteFile:e=>new r.default(((t,n)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?t("File deleted"):n(i.response||"Unable to delete file")},i.send(null)})),downloadFile:n=>n.private?(e.submissionId&&n.data&&(n.data.submission=e.submissionId),t(n.url,n.name,{},JSON.stringify(n)).then((e=>e.data))):r.default.resolve(n)}};o.title="Url",t.default=o},38034:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const r=i(n(53632)),o=i(n(44826));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const i in n)e[i]&&t.setRequestHeader(i,n[i])}};const s={trim:e=>(0,o.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(s.trim).join("/"),upload:(e,n,i,o,a,l,u,c,d,h)=>new r.default(((r,p)=>{const f=new XMLHttpRequest;f.onerror=e=>{e.networkError=!0,p(e)},f.onabort=p,f.onload=()=>{if(f.status>=200&&f.status<300){const n=JSON.parse(f.response),o=new XMLHttpRequest;"function"==typeof u&&(o.upload.onprogress=u),"function"==typeof h&&h((()=>o.abort())),o.openAndSetHeaders=(...n)=>{o.open(...n),(0,t.setXhrHeaders)(e,o)},o.onerror=e=>{e.networkError=!0,p(e)},o.onabort=e=>{e.networkError=!0,p(e)},o.onload=()=>{o.status>=200&&o.status<300?r(n):p(o.response||"Unable to upload file")},o.onabort=p,o.send(i(o,n))}else p(f.response||"Unable to sign file")},f.open("POST",`${e.formUrl}/storage/${n}`),f.setRequestHeader("Accept","application/json"),f.setRequestHeader("Content-Type","application/json; charset=UTF-8");const m=e.getToken();m&&f.setRequestHeader("x-jwt-token",m),f.send(JSON.stringify({name:s.path([l,a]),size:o.size,type:o.type,groupPermissions:c,groupId:d}))}))};t.default=s},59452:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(84591));class s{static get templates(){return s._templates||(s._templates=o.default),s._templates}static addTemplate(e,t){s.templates[e]=t}static extendTemplate(e,t){s.templates[e]=r.default.merge({},s.templates[e],t)}static setTemplate(e,t){s.addTemplate(e,t)}static set current(e){const t=s.current;s._current=r.default.merge({},t,e)}static get current(){return s._current?s._current:s.defaultTemplates}static get defaultTemplates(){return s.templates.hasOwnProperty("bootstrap")?s.templates.bootstrap:{}}static set framework(e){s.templates.hasOwnProperty(e)&&(s._framework=e,s._current=s.templates[e])}static get framework(){return s._framework}}t.default=s},84591:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(69619));t.default={bootstrap:r.default.templates.bootstrap5}},51637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form"}},62646:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CODES=void 0;const r=i(n(76644));r.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){const{placeholderOption:e}=this.passedElement;return!!e&&e.text}const{placeholder:e,placeholderValue:t}=this.config,{element:{dataset:n}}=this.passedElement;if(e){if(t)return t;if(n.placeholder)return n.placeholder}return!1},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};class o extends r.default{constructor(...e){super(...e),this._onTabKey=this._onTabKey.bind(this),this.isDirectionUsing=!1,this.shouldOpenDropDown=!0}_handleButtonAction(e,t){if(!this._isSelectOneElement)return super._handleButtonAction(e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&super._handleButtonAction(e,t)}_onEnterKey(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),super._onEnterKey(e)}_onDirectionKey(...e){if(!this._isSelectOneElement)return super._onDirectionKey(...e);this.isDirectionUsing=!0,super._onDirectionKey(...e),this.onSelectValue(...e),clearTimeout(this.timeout),this.timeout=setTimeout((()=>{this.isDirectionUsing=!1}),250)}_onTabKey({activeItems:e,hasActiveDropdown:t}){t&&this._selectHighlightedChoice(e)}_selectHighlightedChoice(e){const t=this.dropdown.getChild(`.${this.config.classNames.highlightedState}`);t&&this._handleChoiceAction(e,t),event.preventDefault()}_onKeyDown(e){if(!this._isSelectOneElement)return super._onKeyDown(e);const{target:n,keyCode:i,ctrlKey:r,metaKey:o}=e;if(n!==this.input.element&&!this.containerOuter.element.contains(n))return;const s=this._store.activeItems,a=this.input.isFocussed,l=this.dropdown.isActive,u=this.itemList.hasChildren,c=String.fromCharCode(i),{BACK_KEY:d,DELETE_KEY:h,TAB_KEY:p,ENTER_KEY:f,A_KEY:m,ESC_KEY:g,UP_KEY:v,DOWN_KEY:y,PAGE_UP_KEY:b,PAGE_DOWN_KEY:_}=t.KEY_CODES,w=r||o;if(!l&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(c)){const e=this.input.element.value;this.input.element.value=e?`${e}${c}`:c,this.showDropdown()}const k={[m]:this._onAKey,[p]:this._onTabKey,[f]:this._onEnterKey,[g]:this._onEscapeKey,[v]:this._onDirectionKey,[b]:this._onDirectionKey,[y]:this._onDirectionKey,[_]:this._onDirectionKey,[h]:this._onDeleteKey,[d]:this._onDeleteKey};k[i]&&k[i]({event:e,target:n,keyCode:i,metaKey:o,activeItems:s,hasFocusedInput:a,hasActiveDropdown:l,hasItems:u,hasCtrlDownKeyPressed:w})}onSelectValue({event:e,activeItems:t,hasActiveDropdown:n}){n?this._selectHighlightedChoice(t):this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())}showDropdown(...e){this.shouldOpenDropDown?super.showDropdown(...e):this.shouldOpenDropDown=!0}hideDropdown(...e){this.isDirectionUsing||super.hideDropdown(...e)}_onBlur(...e){this._isScrollingOnIe||super._onBlur(...e)}}t.default=o},10196:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(55459)),s={noeval:!1,protectedEval:!1,cache:{},templateSettings:{evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},evaluator:(e,...t)=>s.noeval?(console.warn("No evaluations allowed for this renderer."),r.default.noop):("object"==typeof t[0]&&(t=r.default.keys(t[0])),new Function(...t,e)),template(e,t){if(t=t||(0,o.default)(e),s.cache[t])return s.cache[t];try{return e=e.replace(/ctx\./g,""),s.cache[t]=r.default.template(e,s.templateSettings)}catch(t){console.warn("Error while processing template",t,e)}},interpolate(e,t,n){const i=r.default.isObject(n)?n:{noeval:n};if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}let o;if(e=String(e),s.noeval||i.noeval)return e.replace(/({{\s*(.*?)\s*}})/g,((e,n,o)=>{const s=o.split("||").map((e=>e.trim()));let a="",l="";for(let e=0;eArray.isArray(t)?e(...t):e(t),registerEvaluator:e=>{Object.keys(e).forEach((t=>{s[t]=e[t]}))}};t.default=s},87338:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=n(34600);t.default={uniquify(e,t){let n=!1;const i={};return(0,o.eachComponent)(e,(e=>{if(i[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}),!0),(0,o.eachComponent)([t],(e=>{if(!e.key)return;const t=(0,o.uniqueKey)(i,e.key);return t!==e.key&&(e.key=t,n=!0),i[t]=!0,!!(["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)||void 0}),!0),n},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:()=>r.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map((e=>String.fromCharCode(e))),getAdditionalShortcuts(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts(e,t){const n=[];return(0,o.eachComponent)(e,(e=>{e!==t&&(e.shortcut&&n.push(e.shortcut),e.values&&e.values.forEach((e=>{e.shortcut&&n.push(e.shortcut)})))}),!0),n},getAvailableShortcuts(e,t){return t?[""].concat(r.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(t.type)),this.getBindedShortcuts(e.components,t))).map((e=>({label:e,value:e}))):[]}}},84854:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkInvalidDate=t.lessOrGreater=t.CALENDAR_ERROR_MESSAGES=void 0;const r=i(n(95093)),o=i(n(2543));function s(e,t){return{message:e,result:t}}function a(e,n,i,o){let s="",a=!0;if(i&&e.isValid()){const o=(0,r.default)(i,n);e>o&&(s=t.CALENDAR_ERROR_MESSAGES.greater(o,n),a=!1)}if(o&&e.isValid()){const i=(0,r.default)(o,n);e`The entered date is greater than ${e.format(t)}`,less:(e,t)=>`The entered date is less than ${e.format(t)}`},t.lessOrGreater=a,t.checkInvalidDate=function(e,n,i,l){const u=(0,r.default)(e,n,!0),c=u.isValid();if(!c){const u=e.match(/[^a-z0-9_]/gi),c=new RegExp(u.join("|"),"gi"),d=e.replace(/_*/gi,"").split(c),h=n[1]?n[1].split(c):n[0].split(c),p=o.default.findIndex(h,((e,t)=>1===e.length&&t===h.length-1));if(d[o.default.findIndex(h,(e=>e.match(/yyyy/gi)))]/1e3<1)return s(t.CALENDAR_ERROR_MESSAGES.INVALID,!1);if(d[0].length===h[0].length){const e=d.map(((e,t)=>{let n=e;return e||t!==p?e||(n="01"):n="AM",u[t]&&(n=`${n}${u[t]}`),n})),o=(0,r.default)(e.join(""),n,!0);if(o.isValid()){const e=a(o,n[0],l,i);if(!e.result){const{message:t,result:n}=e;return s(t,n)}return s(t.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1)}return s(t.CALENDAR_ERROR_MESSAGES.INVALID,!1)}return s(t.CALENDAR_ERROR_MESSAGES.INVALID,!1)}if(c&&-1===e.indexOf("_")){const e=a(u,n[0],l,i);if(!e.result){const{message:t,result:n}=e;return s(t,n)}}return s("",!0)}},3577:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543));t.default=class{static get operatorKey(){return""}static get displayedName(){return""}static get requireValue(){return!0}execute(e){return!0}getResult(e={}){const{value:t}=e;return r.default.isArray(t)?r.default.some(t,(t=>this.execute(Object.assign(Object.assign({},e),{value:t})))):this.execute(e)}}},48421:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(95093));class s extends r.default{static get operatorKey(){return"dateGreaterThan"}static get displayedName(){return"Greater Than"}getFormattedDates({value:e,comparedValue:t,conditionTriggerComponent:n}){const i=n?n.getValidationFormat:null;return{date:i?(0,o.default)(e,n.getValidationFormat()):(0,o.default)(e),comparedDate:i?(0,o.default)(t,n.getValidationFormat()):(0,o.default)(t)}}execute(e,t="isAfter"){const{value:n,instance:i,conditionComponentPath:r}=e;if(!n)return!1;let o=null;if(i&&i.root&&(o=i.root.getComponent(r)),o&&o.isPartialDay&&o.isPartialDay(n))return!1;const{date:s,comparedDate:a}=this.getFormattedDates(Object.assign(Object.assign({},e),{conditionTriggerComponent:o}));return s[t](a)}}t.default=s},60126:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class o extends r.default{static get operatorKey(){return"dateGreaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute(e){return super.execute(e,"isSameOrAfter")}}t.default=o},61268:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class o extends r.default{static get operatorKey(){return"dateLessThan"}static get displayedName(){return"Less Than"}execute(e){return super.execute(e,"isBefore")}}t.default=o},55709:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class o extends r.default{static get operatorKey(){return"dateLessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute(e){return super.execute(e,"isSameOrBefore")}}t.default=o},16296:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"endsWith"}static get displayedName(){return"Ends With"}execute({value:e,comparedValue:t}){return o.default.endsWith(e,t)}}t.default=s},52297:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"greaterThan"}static get displayedName(){return"Greater Than"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&e>t}}t.default=s},74842:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"greaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&(e>t||o.default.isEqual(e,t))}}t.default=s},19107:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"includes"}static get displayedName(){return"Includes"}execute({value:e,comparedValue:t}){return o.default.includes(e,t)}}t.default=s},54952:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class o extends r.default{static get operatorKey(){return"isDateEqual"}static get displayedName(){return"Is Equal To"}execute(e){return super.execute(e,"isSame")}}t.default=o},78940:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"isEmpty"}static get displayedName(){return"Is Empty"}static get requireValue(){return!1}execute({value:e,instance:t,conditionComponentPath:n}){const i=o.default.isEmpty(e);if(t&&t.root){const e=t.root.getComponent(n);return e?e.isEmpty():i}return i}getResult(e){return this.execute(e)}}t.default=s},92565:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"isEqual"}static get displayedName(){return"Is Equal To"}execute({value:e,comparedValue:t}){if(e&&t&&typeof e!=typeof t&&o.default.isString(t))try{t=JSON.parse(t)}catch(e){}return o.default.isObject(e)&&t&&o.default.isString(t)?e[t]:o.default.isEqual(e,t)}}t.default=s},59013:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class o extends r.default{static get operatorKey(){return"isNotDateEqual"}static get displayedName(){return"Is Not Equal To"}execute(e){return!super.execute(e,"isSame")}}t.default=o},66427:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(78940));class o extends r.default{static get operatorKey(){return"isNotEmpty"}static get displayedName(){return"Is Not Empty"}getResult(e){return!super.getResult(e)}}t.default=o},41552:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"isNotEqual"}static get displayedName(){return"Is Not Equal To"}execute({value:e,comparedValue:t}){return!o.default.isEqual(e,t)}}t.default=s},63696:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),o=i(n(2543));class s extends r.default{static get operatorKey(){return"lessThan"}static get displayedName(){return"Less Than"}execute({value:e,comparedValue:t}){return o.default.isNumber(e)&&e{if(!o)return;const s=o.columns&&Array.isArray(o.columns),l=o.rows&&Array.isArray(o.rows),u=o.components&&Array.isArray(o.components);let c=!1;const d=o.key?i?`${i}.${o.key}`:o.key:"";r&&(o.parent=(0,a.default)(r),delete o.parent.components,delete o.parent.componentMap,delete o.parent.columns,delete o.parent.rows);const h=s||l||u&&!o.input||["htmlelement","content"].indexOf(o.type)>-1;(n||o.tree||!h)&&(c=t(o,d,e));const p=()=>o.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(o.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable","tagpad"].includes(o.type)||o.tree)?d:o.key&&"form"===o.type?`${d}.data`:i;c||(s?o.columns.forEach((e=>y(e.components,t,n,p(),r?o:null)),!0):l?o.rows.forEach((e=>{Array.isArray(e)&&e.forEach((e=>y(e.components,t,n,p(),r?o:null)),!0)})):u&&y(o.components,t,n,p(),r?o:null,!0))})),e.noRecurse&&delete e.noRecurse}}function b(e,t){if((0,u.default)(t))return e.key===t||e.path===t;{let n=!1;return(0,l.default)(t,((t,i)=>{if(n=(0,r.default)(e,i)===t,!n)return!1})),n}}function _(e,t){const n=[];return y(e,(e=>{b(e,t)&&n.push(e)}),!0),n}function w(e,t,n,i){if(e){if(n=n||[],!t)return i(e);e.forEach((function(r,o){var s=n.slice();s.push(o),r&&(r.hasOwnProperty("columns")&&Array.isArray(r.columns)&&(s.push("columns"),r.columns.forEach((function(e,n){var r=s.slice();r.push(n),r.push("components"),w(e.components,t,r,i)}))),r.hasOwnProperty("rows")&&Array.isArray(r.rows)&&(s.push("rows"),r.rows.forEach((function(e,n){var r=s.slice();r.push(n),e.forEach((function(e,n){var o=r.slice();o.push(n),o.push("components"),w(e.components,t,o,i)}))}))),r.hasOwnProperty("components")&&Array.isArray(r.components)&&(s.push("components"),w(r.components,t,s,i)),r.key===t&&i(r,s,e))}))}}function k(e,t){var n=t.pop();0!==t.length&&(e=(0,r.default)(e,t)),e.splice(n,1)}function x(e){return parseFloat((0,u.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.eachComponent=y,t.matchComponent=b,t.getComponent=function(e,t,n){let i;return y(e,((e,n)=>{if(n===t||e.path===t)return i=e,!0}),n),i},t.searchComponents=_,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),_(e,t)},t.findComponent=w,t.removeComponent=k,t.generateFormChange=function(e,t){let n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":n={op:"edit",key:t.originalComponent.key,patches:(0,g.compare)(t.originalComponent,t.component)},n.patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.applyFormChanges=function(e,t){const n=[];return t.forEach((function(t){var i=!1;switch(t.op){case"add":var s=t.component;w(e.components,t.container,null,(function(n){t.container||(n=e),w(e.components,t.key,null,(function(t,n){s=t,k(e.components,n)})),i=!0,(0,r.default)(n,t.path).splice(t.index,0,s)}));break;case"remove":w(e.components,t.key,null,(function(t,n){i=!0,(0,r.default)(e.components,n).key!==t.key&&n.pop(),k(e.components,n)}));break;case"edit":w(e.components,t.key,null,(function(s,a){i=!0;try{const n=(0,r.default)(e.components,a),i=(0,g.applyPatch)(s,t.patches).newDocument;n.key!==i.key&&a.pop(),(0,o.default)(e.components,a,i)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.flattenComponents=function(e,t){const n={};return y(e,((e,t)=>{n[t]=e}),t),n},t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||v.default.some(e.conditional.conditions||[],(e=>e.component&&e.operator))||e.conditional.json||e.conditional.condition))},t.parseFloatExt=x,t.formatAsCurrency=function(e){const t=x(e);if((0,c.default)(t))return"";const n=(0,p.default)(t,2).toString().split(".");return n[0]=(0,f.default)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,m.default)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,h.default)(e)){if((0,s.default)(e,t))return v.default.get(e,t);let i=null;return(0,l.default)(e,(e=>{const t=n(e);if(!(0,d.default)(t))return i=t,!1})),i}return null};return n(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return y(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,i)=>{n.push({key:e.key,property:`value[${i}].label`,string:e.values[i].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{n.push({key:e.key,property:"select",string:t})}))}),!0),n}},30301:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(34600));"object"==typeof n.g&&(n.g.FormioUtils=s),t.default=s},85231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},34600:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.observeOverload=t.withSwitch=t.firstNonNil=t.unfold=t.bootstrapVersion=t.uniqueKey=t.iterateKey=t.delay=t.fieldData=t.getCurrencyAffixes=t.getNumberDecimalLimit=t.getNumberSeparators=t.matchInputMask=t.unmaskValue=t.getInputMask=t.convertFormatToMask=t.convertFormatToMoment=t.convertFormatToFlatpickr=t.getLocaleDateFormatInfo=t.formatOffset=t.formatDate=t.momentDate=t.loadZones=t.shouldLoadZones=t.zonesLoaded=t.offsetDate=t.currentTimezone=t.isValidDate=t.getDateSetting=t.guid=t.uniqueName=t.convertStringToHTMLElement=t.unescapeHTML=t.setActionProperty=t.checkTrigger=t.checkCondition=t.checkJsonConditional=t.checkCustomConditional=t.getComponentActualValue=t.checkSimpleConditional=t.checkCalculated=t.isMongoId=t.boolValue=t.getElementRect=t.getPropertyValue=t.getRandomComponentId=t.evaluate=t.moment=t.ConditionOperators=t.jsonLogic=void 0,t._=t.getFocusableElements=t.isInsideScopingComponent=t.isPromise=t.getDataParentComponent=t.getComponentPath=t.getComponentPathWithoutIndicies=t.getBrowserInfo=t.getIEBrowserVersion=t.round=t.getStringFromComponentPath=t.hasInvalidComponent=t.getArrayFromComponentPath=t.isInputComponent=t.interpolate=t.Evaluator=t.fastCloneDeep=t.sanitize=t.translateHTMLTemplate=t.getContextButtons=t.getContextComponents=void 0;const l=a(n(2543));t._=l.default;const u=a(n(42681)),c=a(n(18678));t.jsonLogic=c.default;const d=a(n(56639)),h=a(n(54472)),p=n(85231),f=a(n(53632)),m=a(n(42838)),g=n(30214),v=a(n(10196));t.Evaluator=v.default;const y=a(n(93432));t.ConditionOperators=y.default;const b=v.default.interpolate;t.interpolate=b;const{fetch:_}=(0,u.default)({Promise:f.default});function w(e,t,n,i){let r=null;const o=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=l.default.get(t.instance,"root._form",{}));const s=o.key;if("string"==typeof e){n&&(e+=`;return ${n}`),i&&(e=e.replace(/({{\s+(.*)\s+}})/,((e,n,i)=>0===i.indexOf("data.")?l.default.get(t.data,i.replace("data.","")):0===i.indexOf("row.")?l.default.get(t.row,i.replace("row.","")):l.default.get(t.data,i))));try{e=v.default.evaluator(e,t),t=l.default.values(t)}catch(t){console.warn(`An error occured within the custom function for ${s}`,t),r=null,e=!1}}if("function"==typeof e)try{r=v.default.evaluate(e,t)}catch(e){r=null,console.warn(`An error occured within custom function for ${s}`,e)}else if("object"==typeof e)try{r=c.default.apply(e,t)}catch(e){r=null,console.warn(`An error occured within custom function for ${s}`,e)}else e&&console.warn(`Unknown function type for ${s}`);return r}function k(e,t){let n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function x(e,t,n,i,r){if(t.when){const e=E(t.when,i,n),r=String(t.eq),o=String(t.show);return l.default.isObject(e)&&l.default.has(e,t.eq)?String(e[t.eq])===o:Array.isArray(e)&&e.map(String).includes(r)?"true"===o:String(e)===r==("true"===o)}{const{conditions:o=[],conjunction:s="all",show:a=!0}=t;if(!o.length)return!0;const u=l.default.map(o,(t=>{const{value:o,operator:s,component:a}=t;if(!a)return!0;const l=E(a,i,n),u=y.default[s];return!u||(new u).getResult({value:l,comparedValue:o,instance:r,component:e,conditionComponentPath:a})}));let c=!1;return c="any"===s?l.default.some(u,(e=>!!e)):l.default.every(u,(e=>!!e)),a?c:!c}}function E(e,t,n){let i=null;return n&&(i=(0,g.getValue)({data:n},e)),t&&l.default.isNil(i)&&(i=(0,g.getValue)({data:t},e)),(l.default.isNil(i)||l.default.isObject(i)&&l.default.isEmpty(i))&&(i=""),i}function C(e,t,n,i,r,o,s,a){"string"==typeof t&&(t=`var ${o} = true; ${t}; return ${o};`);const l=a&&a.evaluate?a.evaluate(t,{row:n,data:i,form:r}):w(t,{row:n,data:i,form:r});return null===l?s:l}function O(e,t,n,i,r,o){try{return c.default.apply(t,{data:i,row:n,form:r,_:l.default})}catch(t){return console.warn(`An error occurred in jsonLogic advanced condition for ${e.key}`,t),o}}function S(e,t,n,i){var r;const o=i||e.conditional;n||function(e){e.path=U(e);const t=B(e);t&&"object"==typeof t&&(t.path=U(t))}(n=l.default.cloneDeep(e));const s=B(n),a=s?U(s):null,u=o.when||!o.conditions?null===(r=o.when)||void 0===r?void 0:r.startsWith(a):l.default.some(o.conditions,(e=>e.component.startsWith(a)));if(s&&u){const e={};l.default.set(e,a,t),t=e}return t}function P(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function A(){return d.default.currentTimezone||(d.default.currentTimezone=h.default.determine().name()),d.default.currentTimezone}function M(e,t){if("UTC"===t)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};const n=(0,d.default)(e).tz(t);return{date:new Date(e.getTime()+6e4*(n.utcOffset()+e.getTimezoneOffset())),abbr:n.format("z")}}function T(e){return e!==A()&&"UTC"!==e}function R(e,t){return t&&!T(t)?new f.default(l.default.noop):d.default.zonesPromise?d.default.zonesPromise:d.default.zonesPromise=_(e).then((e=>e.json().then((e=>{if(d.default.tz.load(e),d.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var t=document.createEvent("Event");t.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(t)}}))))}function D(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function j(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,(function(e){return Number(e)+1})):`${e}1`}function I(e){return"function"==typeof e?e():e}o(n(30214),t),p.lodashOperators.forEach((e=>c.default.add_operation(`_${e}`,l.default[e]))),c.default.add_operation("getDate",(e=>(0,d.default)(e).toISOString())),c.default.add_operation("relativeMinDate",(e=>(0,d.default)().subtract(e,"days").toISOString())),c.default.add_operation("relativeMaxDate",(e=>(0,d.default)().add(e,"days").toISOString())),t.moment=s(n(56639)),t.evaluate=w,t.getRandomComponentId=function(){return`e${Math.random().toString(36).substring(7)}`},t.getPropertyValue=k,t.getElementRect=function(e){const t=window.getComputedStyle(e,null);return{x:k(t,"left"),y:k(t,"top"),width:k(t,"width"),height:k(t,"height")}},t.boolValue=function(e){return l.default.isBoolean(e)?e:l.default.isString(e)?"true"===e.toLowerCase():!!e},t.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},t.checkCalculated=function(e,t,n){e.calculateValue&&l.default.set(n,e.key,w(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkSimpleConditional=x,t.getComponentActualValue=E,t.checkCustomConditional=C,t.checkJsonConditional=O,t.checkCondition=function(e,t,n,i,r){const{customConditional:o,conditional:s}=e;return o?C(0,o,t,n,i,"show",!0,r):s&&(s.when||l.default.some(s.conditions||[],(e=>e.component&&e.operator)))?x(e,s,t=S(e,t,r),n,r):!s||!s.json||O(e,s.json,t,n,i,!0)},t.checkTrigger=function(e,t,n,i,r,o){if(!t[t.type])return!1;switch(t.type){case"simple":return n=S(e,n,o,t.simple),x(e,t.simple,n,i,o);case"javascript":return C(0,t.javascript,n,i,r,"result",!1,o);case"json":return O(e,t.json,n,i,r,!1)}return!1},t.setActionProperty=function(e,t,n,i,r,o){const s=t.property.value;switch(t.property.type){case"boolean":{const n=l.default.get(e,s,!1).toString(),i=t.state.toString();n!==i&&l.default.set(e,s,"true"===i);break}case"string":{const a={data:r,row:i,component:e,result:n},u=t.property.component?t[t.property.component]:t.text,c=l.default.get(e,s,""),d=o&&o.interpolate?o.interpolate(u,a):v.default.interpolate(u,a);d!==c&&l.default.set(e,s,d);break}}return e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const i=e.split(".");let r=i.slice(0,i.length-1).join(".");const o=i.length>1?`.${l.default.last(i)}`:"";return r=r.substr(0,100),n=Object.assign(n||{},{fileName:r,guid:P()}),`${v.default.interpolate(t,n)}${o}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.guid=P,t.getDateSetting=function(e){if(l.default.isNil(e)||l.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;let t="string"!=typeof e||-1===e.indexOf("moment(")?(0,d.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=v.default.evaluator(`return ${e};`,"moment")(d.default);"string"==typeof n?t=(0,d.default)(n):"function"==typeof n.toDate?t=(0,d.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,d.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.isValidDate=function(e){return l.default.isDate(e)&&!l.default.isNaN(e.getDate())},t.currentTimezone=A,t.offsetDate=M,t.zonesLoaded=function(){return d.default.zonesLoaded},t.shouldLoadZones=T,t.loadZones=R,t.momentDate=function(e,t,n){const i=(0,d.default)(e);return n?("UTC"===n&&(n="Etc/UTC"),(n!==A()||t&&t.match(/\s(z$|z\s)/))&&d.default.zonesLoaded?i.tz(n):i):i},t.formatDate=function(e,t,n,i,r){const o=(0,d.default)(t,r||void 0);if(i===A())return n.match(/\s(z$|z\s)/)?(R(e),d.default.zonesLoaded?o.tz(i).format(D(n)):o.format(D(n.replace(/\s(z$|z\s)/,"")))):o.format(D(n));if("UTC"===i){const e=M(o.toDate(),"UTC");return`${(0,d.default)(e.date).format(D(n))} UTC`}return R(e),d.default.zonesLoaded&&i?o.tz(i).format(`${D(n)} z`):o.format(D(n))},t.formatOffset=function(e,t,n,i,r){if(r===A())return t(n,i);if("UTC"===r)return`${t(M(n,"UTC").date,i)} UTC`;if(R(e),d.default.zonesLoaded){const e=M(n,r);return`${t(e.date,i)} ${e.abbr}`}return t(n,i)},t.getLocaleDateFormatInfo=function(e){const t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t},t.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},t.convertFormatToMoment=D,t.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let i=0;it.length)return e;let i=e.split("");for(let n=0;nt.length)return!1;for(let n=0;n1?t[1]:",",decimalSeparator:t.length>2?t[2]:"."}:{delimiter:",",decimalSeparator:"."}},t.getNumberDecimalLimit=function(e,t){if(l.default.has(e,"decimalLimit"))return l.default.get(e,"decimalLimit");let n=t||20;const i=l.default.get(e,"validate.step","any");if("any"!==i){const e=i.toString().split(".");e.length>1&&(n=e[1].length)}return n},t.getCurrencyAffixes=function({currency:e="USD",decimalLimit:t,decimalSeparator:n,lang:i}){let r=`(.*)?${100..toLocaleString(i)}`;t&&(r+=`${"."===n?"\\.":n}${(0).toLocaleString(i)}{${t}}`),r+="(.*)?";const o=100..toLocaleString(i,{style:"currency",currency:e,useGrouping:!0,maximumFractionDigits:t||0,minimumFractionDigits:t||0}).replace(".",n).match(new RegExp(r));return{prefix:(null==o?void 0:o[1])||"",suffix:(null==o?void 0:o[2])||""}},t.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;if(t.key.includes(".")){let n=e;const i=t.key.split(".");let r="";for(let e=0;e!l.default.isUndefined(e)))]),t.withSwitch=function(e,t){let n=e,i=t;return[function(){return n},function(){const e=n;n=i,i=e}]},t.observeOverload=function(e,t={}){const{limit:n=50,delay:i=500}=t;let r=0,o=0;const s=()=>r=0;return()=>{if(0!==o&&(clearTimeout(o),o=0),o=setTimeout(s,i),r+=1,r>=n)return clearTimeout(o),s(),e()}},t.getContextComponents=function(e,t,n=[]){const i=[];return e.utils.eachComponent(e.instance.options.editForm.components,((r,o)=>{const s=!t||!r.tree;r.key!==e.data.key&&s&&!l.default.includes(n,r.type)&&i.push({label:`${r.label||r.key} (${o})`,value:o})})),i},t.getContextButtons=function(e){const t=[];return e.utils.eachComponent(e.instance.options.editForm.components,(e=>{"button"===e.type&&t.push({label:`${e.key} (${e.label})`,value:e.key})})),t};const L=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function N(e,t){if(!e.innerText)return e.innerHTML;const n=e.innerText.replace(v.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),i=t(n);if(n!==i){const r=e.innerHTML.match(/]*>(.*?)<\/a>/g);return r&&r.length?1===r.length&&r[0].length===e.innerHTML.length?e.innerHTML.replace(n,i):`${i} (${r.map((e=>{const n=document.createElement("a");return n.innerHTML=e,N(n,t)})).join(", ")})`:e.innerText.replace(n,i)}return e.innerHTML}function V(e,t){const n=e.children.length&&[...e.children],i=n&&n.every((e=>0===e.children.length&&L.some((t=>e.nodeName===t))));!n||i?e.innerHTML=N(e,t):n.forEach((e=>V(e,t)))}function F(){const e={};if("undefined"==typeof window)return e;const t=window.navigator.userAgent.toLowerCase(),n=/(edge|edg)\/([\w.]+)/.exec(t)||/(opr)[/]([\w.]+)/.exec(t)||/(yabrowser)[ /]([\w.]+)/.exec(t)||/(chrome)[ /]([\w.]+)/.exec(t)||/(iemobile)[/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i={browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0"};return i.browser&&(e[i.browser]=!0,e.version=parseInt(i.version,10)),(e.chrome||e.opr||e.safari||e.edg||e.yabrowser)&&(e.isWebkit=!0),(e.rv||e.iemobile)&&(e.ie=!0),e.edg&&(e.edge=!0),e.opr&&(e.opera=!0),e}function U(e,t=""){var n;return e&&e.key&&"wizard"!==(null===(n=null==e?void 0:e._form)||void 0===n?void 0:n.display)?(t=e.isInputComponent||!0===e.input?`${e.key}${t?".":""}${t}`:t,U(e.parent,t)):t}function B(e){if(!e)return;const{parent:t}=e;return t&&(t.isInputComponent||t.input)?t:B(t)}t.translateHTMLTemplate=function(e,t){if(!/<[^>]*>/.test(e))return t(e);const n=document.createElement("div");return n.innerHTML=e,n.innerText&&n.children.length?(V(n,t),n.innerHTML):e},t.sanitize=function(e,t){if("function"!=typeof m.default.sanitize)return e;const n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((e=>{n.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(n.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(n.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(n.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(n.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(n.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),m.default.sanitize(e,n)},t.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},t.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},t.getArrayFromComponentPath=function(e){return e&&l.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map((e=>l.default.defaultTo(l.default.toNumber(e),e))):l.default.isArray(e)?e:[e]},t.hasInvalidComponent=function e(t){return t.getComponents().some((t=>l.default.isArray(t.components)?e(t):t.error))},t.getStringFromComponentPath=function(e){if(!l.default.isArray(e))return e;let t="";return e.forEach(((e,n)=>{l.default.isNumber(e)?t+=`[${e}]`:t+=0===n?e:`.${e}`})),t},t.round=function(e,t){return l.default.isNumber(e)?e.toFixed(t):e},t.getIEBrowserVersion=function(){const{ie:e,version:t}=F();return e?t:null},t.getBrowserInfo=F,t.getComponentPathWithoutIndicies=function(e=""){return e.replace(/\[\d+\]/,"")},t.getComponentPath=U,t.getDataParentComponent=B,t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isInsideScopingComponent=function e(t,n=!0){if(!n&&(null==t?void 0:t.hasScopedChildren))return!0;const i=B(t);return!!(null==i?void 0:i.hasScopedChildren)||!!(null==i?void 0:i.parent)&&e(i.parent,!1)},t.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]")}},64237:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(92758));class o{static addRule(e,t){o.rules[e]=t}static addRules(e){o.rules=Object.assign(Object.assign({},o.rules),e)}static getRule(e){return o.rules[e]}static getRules(){return o.rules}}o.rules=r.default,t.default=o},78820:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationChecker=t.default=void 0;const r=i(n(2543)),o=n(34600),s=i(n(95093)),a=i(n(53632)),l=i(n(42681)),{fetch:u,Headers:c,Request:d}=(0,l.default)({Promise:a.default}),h=n(84854),p=i(n(64237));class f{constructor(e={}){this.config=r.default.defaults(e,f.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:e=>e.t(e.errorMessage("required"),{field:e.errorLabel,data:e.data}),check(e,t,n){if(!(0,o.boolValue)(t)||e.isValueHidden())return!0;const i=e.validators.some((e=>"calendar"===e));return!n&&i&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,t,n):!e.isEmpty(n)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:e=>e.t(e.errorMessage("valueIsNotAvailable"),{field:e.errorLabel,data:e.data}),check:(e,t)=>!(0,o.boolValue)(t)},unique:{key:"validate.unique",hasLabel:!0,message:e=>e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data}),check(e,t,n){return!(0,o.boolValue)(t)||!!(!n||r.default.isObjectLike(n)&&r.default.isEmpty(n))||!this.config.db||new a.default((t=>{const i=this.config.form,s=this.config.submission,a=`data.${e.path}`,l=(e,t,n)=>{const i=n.split(/\[\d+\]?./);let o=n;if(i.length>1){o=i.shift();const n={};r.default.reduce(i,((t,o,s)=>{const a=s===i.length-1,l=r.default.get(n,t,n),u=`$elemMatch['${o}']`;return r.default.set(l,u,a?e:{}),t?`${t}.${u}`:u}),""),t[o]=n}else t[o]=e},u={form:i._id};r.default.isString(n)?e.component.dbIndex?l(n,u,a):l({$regex:new RegExp(`^${(0,o.escapeRegExCharacters)(n)}$`),$options:"i"},u,a):r.default.isPlainObject(n)&&n.address&&n.address.address_components&&n.address.place_id?l({$regex:new RegExp(`^${(0,o.escapeRegExCharacters)(n.address.place_id)}$`),$options:"i"},u,`${a}.address.place_id`):r.default.isArray(n)?l({$all:n},u,a):(r.default.isObject(n)||r.default.isNumber(n))&&l({$eq:n},u,a),u.deleted={$eq:null},u.state="submitted",this.config.db.findOne(u,((n,i)=>n?t(!1):i?s._id&&i._id.toString()===s._id?void t(!0):(e.conflictId=i._id.toString(),t(!1)):t(!0)))})).catch((()=>!1))}},multiple:{key:"validate.multiple",hasLabel:!0,message(e){const t=(0,o.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),n=e.component.validate.required,i=t?n?"array_nonempty":"array":"nonarray";return e.t(e.errorMessage(i),{field:e.errorLabel,data:e.data})},check(e,t,n){if(!e.validateMultiple())return!0;const i=(0,o.boolValue)(t),s=Array.isArray(e.emptyValue),a=Array.isArray(n),l=e.component.validate.required;return i?a?!l||!!n.length:!!r.default.isNil(n)&&!l:s||!a}},select:{key:"validate.select",hasLabel:!0,message:e=>e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data}),check(e,t,n,i,s,a,l){if(!(0,o.boolValue)(t))return!0;if(!n||r.default.isEmpty(n))return!0;if(!l)return!0;const h=e.component,p={url:t,method:"GET",qs:{},json:!0,headers:{}};if(r.default.isBoolean(p.url)){if(p.url=!!p.url,!p.url||"url"!==h.dataSrc||!h.data.url||!h.searchField)return!0;p.url=h.data.url,p.qs[h.searchField]=n,h.filter&&(p.url+=(p.url.includes("?")?"&":"?")+h.filter),h.selectFields&&(p.qs.select=h.selectFields)}return!p.url||(p.url=(0,o.interpolate)(p.url,{data:e.data}),p.url+=(p.url.includes("?")?"&":"?")+r.default.chain(p.qs).map(((e,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&").value(),h.data&&h.data.headers&&r.default.each(h.data.headers,(e=>{e.key&&(p.headers[e.key]=e.value)})),h.authenticate&&this.config.token&&(p.headers["x-jwt-token"]=this.config.token),u(new d(p.url,{headers:new c(p.headers)})).then((e=>!!e.ok&&e.json())).then((e=>e&&e.length)).catch((()=>!1)))}},min:{key:"validate.min",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t),r=parseFloat(n);return!(!Number.isNaN(i)&&!Number.isNaN(r))||r>=i}},max:{key:"validate.max",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t),r=parseFloat(n);return!(!Number.isNaN(i)&&!Number.isNaN(r))||r<=i}},minSelectedCount:{key:"validate.minSelectedCount",message:(e,t)=>e.component.minSelectedCountMessage?e.component.minSelectedCountMessage:e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t);if(!i)return!0;const r=Object.keys(n).reduce(((e,t)=>(n[t]&&e++,e)),0);return!r||r>=i}},maxSelectedCount:{key:"validate.maxSelectedCount",message:(e,t)=>e.component.maxSelectedCountMessage?e.component.maxSelectedCountMessage:e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(t),data:e.data}),check(e,t,n){const i=parseFloat(t);return!i||Object.keys(n).reduce(((e,t)=>(n[t]&&e++,e)),0)<=i}},minLength:{key:"validate.minLength",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!(n&&i&&"string"==typeof n&&!e.isEmpty(n))||n.length>=i}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!i||"string"!=typeof n||n.length<=i}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!i||"string"!=typeof n||n.trim().split(/\s+/).length<=i}},minWords:{key:"validate.minWords",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:t,data:e.data}),check(e,t,n){const i=parseInt(t,10);return!i||!n||"string"!=typeof n||n.trim().split(/\s+/).length>=i}},email:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data}),check:(e,t,n)=>!n||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},url:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data}),check:(e,t,n)=>!n||/^(?:(?:(?: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-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},date:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data}),check:(e,t,n)=>!n||"Invalid date"!==n&&"Invalid Date"!==n&&("string"==typeof n&&(n=new Date(n)),n instanceof Date==1&&"Invalid Date"!==n.toString())},day:{hasLabel:!0,message:e=>e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data}),check(e,t,n){if(!n)return!0;const[i,r,o]=e.dayFirst?[0,1,2]:[1,0,2],s=n.split("/").map((e=>parseInt(e,10))),a=s[i],l=s[r],u=s[o],c=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(l,u);return!(a<0||a>c||l<0||l>12||u<0||u>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:(e,t)=>e.t(r.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:t,data:e.data}),check:(e,t,n)=>!!e.isEmpty(n)||(!t||new RegExp(`^${t}$`).test(n))},json:{key:"validate.json",check(e,t,n,i,r,o){if(!t)return!0;const s=e.evaluate(t,{data:i,row:o,rowIndex:r,input:n});return null===s||s}},mask:{key:"inputMask",hasLabel:!0,message:e=>e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data}),check(e,t,n){let i;if(e.isMultipleMasksField){const t=n?n.maskName:void 0,r=e.getMaskByName(t);r&&(i=r),n=n?n.value:n}else i=t;return i=i?(0,o.getInputMask)(i):null,!(n&&i&&!e.skipMaskValidation)||(i=i.map((t=>t===e.placeholderChar?" ":t)),(0,o.matchInputMask)(n,i))}},custom:{key:"validate.custom",message:e=>e.t(e.errorMessage("custom"),{field:e.errorLabel,data:e.data}),check(e,t,n,i,r,o){if(!t)return!0;const s=e.evaluate(t,{valid:!0,data:i,rowIndex:r,row:o,input:n},"valid",!0);return null===s||s}},maxDate:{key:"maxDate",hasLabel:!0,message(e,t){const n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,s.default)(n).format(e.format)})},check(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;const i=e.getValidationFormat?(0,s.default)(n,e.getValidationFormat()):(0,s.default)(n),a=(0,o.getDateSetting)(t);return!!r.default.isNull(a)||(a.setHours(0,0,0,0),i.isBefore(a)||i.isSame(a))}},minDate:{key:"minDate",hasLabel:!0,message(e,t){const n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,s.default)(n).format(e.format)})},check(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;const i=e.getValidationFormat?(0,s.default)(n,e.getValidationFormat()):(0,s.default)(n),a=(0,o.getDateSetting)(t);return!!r.default.isNull(a)||(a.setHours(0,0,0,0),i.isAfter(a)||i.isSame(a))}},minYear:{key:"minYear",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:t}),check(e,t,n){const i=t;let r=/\d{4}$/.exec(n);return r=r?r[0]:null,!+i||!+r||+r>=+i}},maxYear:{key:"maxYear",hasLabel:!0,message:(e,t)=>e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:t}),check(e,t,n){const i=t;let r=/\d{4}$/.exec(n);return r=r?r[0]:null,!+i||!+r||+r<=+i}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,s.default)(e.dataValue).format(e.format)})},check(e,t,n,i,r){this.validators.calendar.messageText="";const a=e.getWidget(r);if(!a)return!0;const{settings:l,enteredDate:u}=a,{minDate:c,maxDate:d,format:p}=l,f=[(0,o.convertFormatToMoment)(p)];if(f[0].match(/M{3,}/g)&&f.push(f[0].replace(/M{3,}/g,"MM")),!n&&u){const{message:e,result:t}=(0,h.checkInvalidDate)(u,f,c,d);if(!t)return this.validators.calendar.messageText=e,t}return n&&u?(0,s.default)(n).format()!==(0,s.default)(u,f,!0).format()&&u.match(/_/gi)?(this.validators.calendar.messageText=h.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(a.enteredDate="",!0):void 0}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message(e){return e.t(e.errorMessage(this.validators.time.messageText),{field:e.errorLabel})},check:(e,t,n)=>!!e.isEmpty(n)||(0,s.default)(n,e.component.format).isValid()},availableValueProperty:{key:"validate.availableValueProperty",method:"validateValueProperty",messageText:"Invalid Value Property",hasLabel:!0,message(e){return e.t(e.errorMessage(this.validators.availableValueProperty.messageText),{field:e.errorLabel})},check:(e,t,n)=>"url"!==e.component.dataSrc||!r.default.isUndefined(n)&&!r.default.isObject(n)}}}checkValidator(e,t,n,i,r,o,s,l){let u=null;u=t.method&&"function"==typeof e[t.method]?e[t.method](n,i,r,o,s,l):t.check.call(this,e,n,i,r,o,s,l);const c=i=>"string"==typeof i?i:!i&&t.message?t.message.call(this,e,n,o,s):"";return l?a.default.resolve(u).then(c):c(u)}validate(e,t,n,i,s,l,u,c,d){if(!c)return!1;const h=this.validators[t],p=r.default.get(d||e.component,h.key,null),f=this.checkValidator(e,h,p,n,i,s,l,u),m=i=>{var a;if(i){const l={message:(0,o.unescapeHTML)(r.default.get(i,"message",i)),level:"warning"===r.default.get(i,"level")?"warning":"error",path:(0,o.getArrayFromComponentPath)(e.path||""),context:{validator:t,hasLabel:h.hasLabel,setting:p,key:e.key,label:e.label,value:n,index:s,input:null===(a=e.refs.input)||void 0===a?void 0:a[s]}};return"unique"===t&&e.conflictId&&(l.conflictId=e.conflictId),l}return!1};return u?a.default.resolve(f).then(m):m(f)}checkComponent(e,t,n,i=!1,o=!1){var s;if("undefined"!=typeof process&&"node"===r.default.get(process,"release.name")&&!r.default.defaultTo(e.component.persistent,!0)||!1===e.component.validate)return o?a.default.resolve([]):[];t=t||e.rootValue,n=n||e.data;const l=e.component.multiple&&Array.isArray(e.validationValue)?e.validationValue:[e.validationValue],u=e.conditionallyVisible(),c=[];(null===(s=null==e?void 0:e.addons)||void 0===s?void 0:s.length)&&l.forEach((t=>{e.addons.forEach((e=>{e.checkValidity(t)||c.push(...e.errors||[])}))}));const d=r.default.get(e,"component.validations");let h=[];if(d&&Array.isArray(d)&&d.length){const s=r.default.chain(d).groupBy((e=>e.mode)).value();if(e.calculateCondition){i=!0;const t=r.default.chain(s.ui).filter("active").groupBy((e=>e.group||null)).value(),n=t.null||[];delete t.null,n.forEach((({condition:t,message:n,severity:i})=>{e.calculateCondition(t)||h.push({level:i||"error",message:e.t(n),componentInstance:e})})),r.default.forEach(t,(t=>{r.default.forEach(t,(({condition:t,message:n,severity:i})=>{if(!e.calculateCondition(t))return h.push({level:i||"error",message:e.t(n),componentInstance:e}),!1}))}))}else h=this.checkValidations(e,d,t,n,l,o);e.validators.includes("custom")&&s.js&&r.default.each(s.js,(i=>{h.push(r.default.map(l,((r,s)=>this.validate(e,"custom",r,t,s,n,o,u,i))))})),e.validators.includes("json")&&s.json&&r.default.each(s.json,(i=>{h.push(r.default.map(l,((r,s)=>this.validate(e,"json",r,t,s,n,o,u,i))))}))}const p=r.default.get(e,"component.validate.custom"),f=r.default.get(e,"component.validate.customMessage"),m=(0,r.default)(e.validators).chain().map((i=>this.validators.hasOwnProperty(i)?"required"!==i||l.length?r.default.map(l,((r,s)=>this.validate(e,i,r,t,s,n,o,u))):[this.validate(e,i,null,t,0,n,o,u)]:{message:`Validator for "${i}" is not defined`,level:"warning",context:{validator:i,key:e.key,label:e.label}})).flatten().value();e.component.validate=e.component.validate||{},e.component.validate.unique=e.component.unique,m.push(this.validate(e,"unique",e.validationValue,t,0,t,o,u)),e.component.validate.multiple=e.component.multiple,m.push(this.validate(e,"multiple",e.validationValue,t,0,t,o,u)),m.push(...c),m.push(...h);const g=o=>(o=(0,r.default)(o).chain().flatten().compact().value(),(f||p)&&r.default.each(o,(i=>{i.message=e.t(f||i.message,{field:e.errorLabel,data:t,row:n,error:i}),i.context.hasLabel=!1})),i?o:r.default.reject(o,(e=>"warning"===e.level)));return o?a.default.all(m).then(g):g(m)}checkValidations(e,t,n,i,r,o){const s=t.map((t=>this.checkRule(e,t,n,i,r,o))).reduce(((e,t)=>t?[...e,...t]:e),[]).filter((e=>e)).reduce(((e,t)=>(e[t.context.validator]=t,e)),{});return Object.values(s)}checkRule(e,t,n,i,r,o){const s=p.default.getRule(t.rule),a=[];if(s){const l=new s(e,t.settings,this.config);r.map(((r,s)=>{const u=l.check(r,n,i,o);!0!==u&&a.push({level:t.level||"error",message:e.t(t.message||l.defaultMessage,{settings:t.settings,field:e.errorLabel,data:n,row:i,error:u}),context:{key:e.key,index:s,label:e.label,validator:t.rule}})}))}return 0!==a.length&&a}get check(){return this.checkComponent}get(){r.default.get.call(this,arguments)}each(){r.default.each.call(this,arguments)}has(){r.default.has.call(this,arguments)}}t.ValidationChecker=f,f.config={db:null,token:null,form:null,submission:null};const m=new f;t.default=m},65370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addConjunction(e,t){n.conjunctions[e]=t}static addConjunctions(e){n.conjunctions=Object.assign(Object.assign({},n.conjunctions),e)}static getConjunction(e){return n.conjunctions[e]}static getConjunctions(){return n.conjunctions}}n.conjunctions={},t.default=n},55728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addOperator(e,t){n.operators[e]=t}static addOperators(e){n.operators=Object.assign(Object.assign({},n.operators),e)}static getOperator(e){return n.operators[e]}static getOperators(){return n.operators}}n.operators={},t.default=n},36961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addQuickRule(e,t){n.quickRules[e]=t}static addQuickRules(e){n.quickRules=Object.assign(Object.assign({},n.quickRules),e)}static getQuickRule(e){return n.quickRules[e]}static getQuickRules(){return n.quickRules}}n.quickRules={},t.default=n},93539:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{error}}"}check(e,t,n,i){const r=this.settings.custom;if(!r)return!0;const o=this.component.evaluate(r,{valid:!0,data:t,row:n,rowIndex:i,input:e},"valid",!0);return null===o||o}}t.default=o},45016:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} is not a valid date."}check(e){return!e||"Invalid date"!==e&&"Invalid Date"!==e&&("string"==typeof e&&(e=new Date(e)),e instanceof Date==1&&"Invalid Date"!==e.toString())}}t.default=o},23408:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} is not a valid day."}check(e){if(!e)return!0;if("string"!=typeof e)return!1;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/").map((e=>parseInt(e,10))),o=r[t],s=r[n],a=r[i],l=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(s,a);return!(isNaN(o)||o<0||o>l||isNaN(s)||s<0||s>12||isNaN(a)||a<0||a>9999)}}t.default=o},18846:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must be a valid email."}check(e){return!e||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}t.default=o},47742:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{error}}"}check(e,t,n,i){const{json:r}=this.settings;if(!r)return!0;const o=this.component.evaluate(r,{data:t,row:n,rowIndex:i,input:e});return null===o||o}}t.default=o},47768:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(34600),o=i(n(18162));class s extends o.default{constructor(){super(...arguments),this.defaultMessage="{{field}} does not match the mask."}check(e){let t;if(this.component.isMultipleMasksField){const n=e?e.maskName:void 0,i=this.component.getMaskByName(n);i&&(t=(0,r.getInputMask)(i)),e=e?e.value:e}else t=(0,r.getInputMask)(this.settings.mask);return!e||!t||(0,r.matchInputMask)(e,t)}}t.default=s},46452:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} cannot be greater than {{settings.limit}}."}check(e){const t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}}t.default=o},79536:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(34600),o=i(n(95093)),s=i(n(2543)),a=i(n(18162));class l extends a.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain date after {{settings.dateLimit}}"}check(e){if(!e)return!0;if(e===this.settings.dateLimit)return!0;const t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!s.default.isNull(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}}t.default=l},50748:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have no more than {{- settings.length}} characters."}check(e){const t=parseInt(this.settings.length,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}}t.default=o},8679:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have no more than {{- settings.length}} words."}check(e){const t=parseInt(this.settings.length,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}}t.default=o},8365:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain year greater than {{maxYear}}"}check(e){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n<=+t}}t.default=o},29722:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} cannot be less than {{settings.limit}}."}check(e){const t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n>=t}}t.default=o},70886:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(34600),o=i(n(95093)),s=i(n(2543)),a=i(n(18162));class l extends a.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain date before {{settings.dateLimit}}"}check(e){if(!e)return!0;const t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!s.default.isNull(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}}t.default=l},17082:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have no more than {{- settings.length}} characters."}check(e){const t=parseInt(this.settings.length,10);return!(t&&e&&e.hasOwnProperty("length")&&!this.component.isEmpty(e))||e.length>=t}}t.default=o},13409:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must have at least {{- settings.length}} words."}check(e){const t=parseInt(this.settings.length,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}}t.default=o},74119:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} should not contain year less than {{minYear}}"}check(e){const t=this.settings;let n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n>=+t}}t.default=o},85412:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} does not match the pattern {{settings.pattern}}"}check(e){const{pattern:t}=this.settings;return!t||new RegExp(`^${t}$`).test(e)}}t.default=o},75293:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} is required"}check(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}t.default=o},18162:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e,t,n){this.component=e,this.settings=t,this.config=n}check(){}}},97724:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(34600),o=i(n(53632)),s=i(n(42681)),{fetch:a,Headers:l,Request:u}=(0,s.default)({Promise:o.default}),c=i(n(2543)),d=i(n(18162));class h extends d.default{constructor(){super(...arguments),this.defaultMessage="{{field}} contains an invalid selection"}check(e,t,n,i){if(!e||c.default.isEmpty(e))return!0;if(!i)return!0;const o=this.component.component,s={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(c.default.isBoolean(s.url)){if(s.url=!!s.url,!s.url||"url"!==o.dataSrc||!o.data.url||!o.searchField)return!0;s.url=o.data.url,s.qs[o.searchField]=e,o.filter&&(s.url+=(s.url.includes("?")?"&":"?")+o.filter),o.selectFields&&(s.qs.select=o.selectFields)}return!s.url||(s.url=(0,r.interpolate)(s.url,{data:this.component.data}),s.url+=(s.url.includes("?")?"&":"?")+c.default.chain(s.qs).map(((e,t)=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&").value(),o.data&&o.data.headers&&c.default.each(o.data.headers,(e=>{e.key&&(s.headers[e.key]=e.value)})),o.authenticate&&this.config.token&&(s.headers["x-jwt-token"]=this.config.token),a(new u(s.url,{headers:new l(s.headers)})).then((e=>!!e.ok&&e.json())).then((e=>e&&e.length)).catch((()=>!1)))}}t.default=h},28289:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162)),o=i(n(95093));class s extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must contain valid time"}check(e){return!!this.component.isEmpty(e)||(0,o.default)(e,this.component.component.format).isValid()}}t.default=s},6547:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(34600),o=i(n(2543)),s=i(n(53632)),a=i(n(18162));class l extends a.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must be unique"}check(e){return!!(!e||o.default.isObjectLike(e)&&o.default.isEmpty(e))||!this.config.db||new s.default((t=>{const n=this.config.form,i=this.config.submission,s=`data.${this.component.path}`,a={form:n._id};o.default.isString(e)?a[s]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e)}$`),$options:"i"}:o.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?a[`${s}.address.place_id`]={$regex:new RegExp(`^${(0,r.escapeRegExCharacters)(e.address.place_id)}$`),$options:"i"}:o.default.isArray(e)?a[s]={$all:e}:(o.default.isObject(e)||o.default.isNumber(e))&&(a[s]={$eq:e}),a.deleted={$eq:null},this.config.db.findOne(a,((e,n)=>t(!e&&(!n||i._id&&n._id.toString()===i._id))))})).catch((()=>!1))}}t.default=l},5599:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(18162));class o extends r.default{constructor(){super(...arguments),this.defaultMessage="{{field}} must be a valid url."}check(e){return!e||/^(?:(?:(?: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-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}t.default=o},92758:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(93539)),o=i(n(45016)),s=i(n(23408)),a=i(n(18846)),l=i(n(47742)),u=i(n(47768)),c=i(n(46452)),d=i(n(79536)),h=i(n(50748)),p=i(n(8679)),f=i(n(29722)),m=i(n(70886)),g=i(n(17082)),v=i(n(13409)),y=i(n(85412)),b=i(n(75293)),_=i(n(97724)),w=i(n(6547)),k=i(n(5599)),x=i(n(74119)),E=i(n(8365)),C=i(n(28289));t.default={custom:r.default,date:o.default,day:s.default,email:a.default,json:l.default,mask:u.default,max:c.default,maxDate:d.default,maxLength:h.default,maxWords:p.default,min:f.default,minDate:m.default,minLength:g.default,minWords:v.default,pattern:y.default,required:b.default,select:_.default,unique:w.default,url:k.default,minYear:x.default,maxYear:E.default,time:C.default}},66307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addTransformer(e,t){n.transformers[e]=t}static addTransformers(e){n.transformers=Object.assign(Object.assign({},n.transformers),e)}static getTransformer(e){return n.transformers[e]}static getTransformers(){return n.transformers}}n.transformers={},t.default=n},20902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{static addValueSource(e,t){n.valueSources[e]=t}static addValueSources(e){n.valueSources=Object.assign(Object.assign({},n.valueSources),e)}static getValueSource(e){return n.valueSources[e]}static getValueSources(){return n.valueSources}}n.valueSources={},t.default=n},75779:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),o=i(n(74425)),s=n(34600),a=i(n(95093)),l=i(n(2543)),u="yyyy-MM-dd hh:mm a",c="yyyy-MM-ddTHH:mm:ssZ",d=(0,s.getBrowserInfo)().ie;class h extends o.default{static get defaultSettings(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:u,dateFormat:c,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}constructor(e,t,n,i){super(e,t,n,i),this.settings.noCalendar&&(this.settings.format=this.settings.format.replace(/yyyy-MM-dd /g,"")),this.settings.enableTime?this.settings.time_24hr&&(this.settings.format=this.settings.format.replace(/hh:mm a$/g,"HH:mm")):this.settings.format=this.settings.format.replace(/ hh:mm a$/g,""),this.zoneLoading=!1,this.timezonesUrl=`${r.Formio.cdn["moment-timezone"]}/data/packed/latest.json`}loadZones(){const e=this.timezone;return!!this.zoneLoading||!((0,s.zonesLoaded)()||!(0,s.shouldLoadZones)(e))&&(this.zoneLoading=!0,(0,s.loadZones)(this.timezonesUrl,e).then((()=>{this.zoneLoading=!1,this.emit("redraw")})),!0)}attach(e){var t;const n=super.attach(e),i=(0,s.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:i.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?c:this.settings.dateFormat||c,this.valueMomentFormat=(0,s.convertFormatToMoment)(this.valueFormat);const o=this.settings.readOnly;return this.settings.minDate=o?null:(0,s.getDateSetting)(this.settings.minDate),this.settings.maxDate=o?null:(0,s.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,s.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,s.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=()=>{this.settings.allowInput&&(this.settings.isManuallyOverriddenValue&&this.settings.enableTime?this.calendar._input.value=this.settings.manualInputValue:this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1),this.emit("update")},this.settings.onOpen=()=>this.hook("onCalendarOpen"),this.settings.onClose=()=>{this.hook("onCalendarClose"),this.closedOn=Date.now(),this.settings.allowInput&&this.settings.enableTime&&(this.calendar._input.value=this.settings.manualInputValue||this.calendar._input.value,this.settings.isManuallyOverriddenValue=!1,this.emit("update")),this.settings.wasDefaultValueChanged&&(this.calendar._input.value=this.settings.defaultValue,this.settings.wasDefaultValueChanged=!1),this.calendar&&this.emit("blur")},r.Formio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:`${r.Formio.cdn["flatpickr-formio"]}/flatpickr.min.css`}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter((e=>e.label&&e.onClick))),(null===(t=this.component.shortcutButtons)||void 0===t?void 0:t.length)&&r.Formio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:`${r.Formio.cdn["shortcut-buttons-flatpickr"]}/themes/light.min.css`}],!0),n.then((()=>{var e;if(null===(e=this.component.shortcutButtons)||void 0===e?void 0:e.length)return r.Formio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin",`${r.Formio.cdn["shortcut-buttons-flatpickr"]}/shortcut-buttons-flatpickr.min.js`,!0)})).then((e=>r.Formio.requireLibrary("flatpickr","flatpickr",`${r.Formio.cdn["flatpickr-formio"]}/flatpickr.min.js`,!0).then((t=>{var n;if((null===(n=this.component.shortcutButtons)||void 0===n?void 0:n.length)&&e&&this.initShortcutButtonsPlugin(e),this.settings.formatDate=this.getFlatpickrFormatDate(t),this._input){const{locale:e}=this.settings;if(e&&e.length>=2&&"en"!==e)return r.Formio.requireLibrary(`flatpickr-${e}`,`flatpickr-${e}`,`${r.Formio.cdn["flatpickr-formio"]}/l10n/flatpickr-${e}.js`,!0).then((()=>this.initFlatpickr(t)));this.initFlatpickr(t)}})))).catch((e=>{console.warn(e)}))}get disableWeekends(){return function(e){return 0===e.getDay()||6===e.getDay()}}get disableWeekdays(){return e=>!this.disableWeekends(e)}get disableFunction(){return e=>this.evaluate(`return ${this.settings.disableFunction}`,{date:e})}get timezone(){return this.componentInstance.getTimezone(this.settings)}get defaultSettings(){return h.defaultSettings}addSuffix(e){return this.addEventListener(e,"click",(()=>{setTimeout((()=>{this.calendar&&(!this.calendar.isOpen&&Date.now()-this.closedOn>200?this.calendar.open():this.calendar.isOpen&&this.calendar.close())}),0)})),e}set disabled(e){super.disabled=e,this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}get input(){return this.calendar?this.calendar.altInput:null}get disabledDates(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map((e=>{const t=/\d{4}-\d{2}-\d{2}/g,n=e.match(t);if(n&&n.length)return 1===n.length?e.match(t)[0]:{from:e.match(t)[0],to:e.match(t)[1]}})):[]}get localeFormat(){let e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}get dateTimeFormat(){return this.settings.useLocaleSettings?this.localeFormat:(0,s.convertFormatToFlatpickr)(this.dateFormat)}get dateFormat(){return l.default.get(this.settings,"format",u)}getDateValue(e,t,n){return n?(0,s.momentDate)(e,this.valueFormat,this.timezone).format((0,s.convertFormatToMoment)(t)):(0,a.default)(e).format((0,s.convertFormatToMoment)(t))}getValue(){if(!this.calendar)return super.getValue();const e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":super.getValue()}isValueISO8601(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}setValue(e){const t="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,s.formatDate)(this.timezonesUrl,e,(0,s.convertFormatToMoment)(this.settings.format),this.timezone,(0,s.convertFormatToMoment)(this.valueMomentFormat)):e,super.setValue(e);const n=this.loadZones();e?t||!this.settings.readOnly||n?this.isValueISO8601(e)?this.calendar.setDate(e,!1):this.calendar.setDate((0,a.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,s.momentDate)(e,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}getValueAsString(e,t){const n=t||this.dateFormat,i=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,a.default)(e,(0,s.convertFormatToMoment)(i)).format((0,s.convertFormatToMoment)(i)):(0,s.formatDate)(this.timezonesUrl,e,n,this.timezone,(0,s.convertFormatToMoment)(i))}setErrorClasses(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}validationValue(e){return"string"==typeof e?new Date(e):e.map((e=>new Date(e)))}isCalendarElement(e){var t,n,i,r,o;return!e||!!(null===(i=null===(n=null===(t=this.calendar)||void 0===t?void 0:t.config)||void 0===n?void 0:n.appendTo)||void 0===i?void 0:i.contains(e))||(null===(o=null===(r=this.calendar)||void 0===r?void 0:r.calendarContainer)||void 0===o?void 0:o.contains(e))}initFlatpickr(e){if(this.calendar=new e(this._input,Object.assign(Object.assign({},this.settings),{disableMobile:!0})),this.calendar.altInput.addEventListener("input",(e=>{this.settings.allowInput&&this.settings.currentValue!==e.target.value&&(this.settings.manualInputValue=e.target.value,this.settings.isManuallyOverriddenValue=!0,this.settings.currentValue=e.target.value),""===e.target.value&&this.calendar.selectedDates.length>0?(this.settings.wasDefaultValueChanged=!0,this.settings.defaultValue=e.target.value,this.calendar.clear()):this.settings.wasDefaultValueChanged=!1})),this.settings.readOnly||l.default.some(["MMMM"],(e=>l.default.includes(this.settings.format,e)))||this.setInputMask(this.calendar._input,(0,s.convertFormatToMask)(this.settings.format)),d){const e=this.calendar._handlers.find((({event:e,element:t})=>"blur"===e&&t===this.calendar._input));this.calendar._input.removeEventListener("blur",e.handler),this.addEventListener(this.calendar._input,"blur",(e=>{const t=this.settings.shadowRoot?this.settings.shadowRoot.activeElement:document.activeElement,n=e.relatedTarget?e.relatedTarget:t;e.target===this.calendar._input&&!this.isCalendarElement(n)&&this.calendar.setDate(this.calendar._input.value,!0,e.target===this.calendar.altInput?this.calendar.config.altFormat:this.calendar.config.dateFormat)}))}this.addEventListener(this.calendar._input,"blur",(e=>{var t,n,i,r;const o=this.settings.shadowRoot?this.settings.shadowRoot.activeElement:document.activeElement,l=e.relatedTarget?e.relatedTarget:o;if(d&&!l||this.isCalendarElement(l)){if(!this.calendar.input.value&&this.calendar.config.noCalendar){const e=(0,a.default)({hour:null===(n=null===(t=this.calendar)||void 0===t?void 0:t.config)||void 0===n?void 0:n.defaultHour,minute:null===(r=null===(i=this.calendar)||void 0===i?void 0:i.config)||void 0===r?void 0:r.defaultMinute}).toDate();this.calendar.setDate(e,!0,this.settings.format)}}else{const e=this.calendar.input.value,t=e?(0,a.default)(this.calendar.input.value,(0,s.convertFormatToMoment)(this.valueFormat)).toDate():e;this.calendar.setDate(t,!0,this.settings.altFormat)}})),this.addEventListener(this.calendar.altInput,"keydown",(e=>{13===e.keyCode&&this.calendar.isOpen&&(this.calendar.close(),e.stopPropagation())})),this.setValue(this.componentValue)}initShortcutButtonsPlugin(e){this.settings.plugins=[e({button:this.component.shortcutButtons.map((e=>({label:e.label,attributes:e.attribute}))),onClick:e=>{const t=this.component.shortcutButtons[e].onClick,n=this.evaluate(t,{date:new Date},"date");this.calendar.setDate(n,!0)}})]}get componentValue(){let e=this.componentInstance.dataValue;return Array.isArray(e)&&(e=e[this.valueIndex]),e}getFlatpickrFormatDate(e){return(t,n)=>this.settings.readOnly&&n===this.settings.altFormat?this.loadZones()?e.formatDate(t,n):new Date(this.getValue()).toString()===t.toString()?(0,s.formatOffset)(this.timezonesUrl,e.formatDate.bind(e),new Date(this.componentValue),n,this.timezone):(0,s.formatOffset)(this.timezonesUrl,e.formatDate.bind(e),t,n,this.timezone):e.formatDate(t,n)}destroy(e=!1){this.calendar&&this.calendar.destroy(),super.destroy(e)}}t.default=h},74425:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),o=i(n(31959)),s=i(n(53632));class a extends o.default{static get defaultSettings(){return{type:"input"}}constructor(e,t,n,i){super(e),this.valueIndex=i||0,this.componentInstance=n,this.namespace="formio.widget",this.component=t||{},this.settings=r.default.merge({},this.defaultSettings,e||{})}attach(e){return this._input=e,s.default.resolve()}get defaultSettings(){return{}}set disabled(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}get input(){return this._input}getValue(){return this._input.value}getValueAsString(e){return e}validationValue(e){return e}addPrefix(){return null}addSuffix(){return null}setValue(e){this._input.value=e}evalContext(e){return super.evalContext(Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},e))}}t.default=a},95357:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(74425)),o=i(n(75779));t.default={input:r.default,calendar:o.default}},54715:(e,t,n)=>{"use strict";var i=n(40470);e.exports=i},7517:(e,t,n)=>{"use strict";n(23792),n(53921);var i=n(19167);e.exports=i.Object.fromEntries},96522:(e,t,n)=>{"use strict";e.exports=n(83244)},83244:(e,t,n)=>{"use strict";var i=n(54715);e.exports=i},79306:(e,t,n)=>{"use strict";var i=n(94901),r=n(16823),o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not a function")}},73506:(e,t,n)=>{"use strict";var i=n(13925),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw new o("Can't set "+r(e)+" as a prototype")}},6469:(e,t,n)=>{"use strict";var i=n(78227),r=n(2360),o=n(24913).f,s=i("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},28551:(e,t,n)=>{"use strict";var i=n(20034),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw new o(r(e)+" is not an object")}},19617:(e,t,n)=>{"use strict";var i=n(25397),r=n(35610),o=n(26198),s=function(e){return function(t,n,s){var a=i(t),l=o(a);if(0===l)return!e&&-1;var u,c=r(s,l);if(e&&n!=n){for(;l>c;)if((u=a[c++])!=u)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},44576:(e,t,n)=>{"use strict";var i=n(79504),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},36955:(e,t,n)=>{"use strict";var i=n(92140),r=n(94901),o=n(44576),s=n(78227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:l?o(t):"Object"===(i=o(t))&&r(t.callee)?"Arguments":i}},77740:(e,t,n)=>{"use strict";var i=n(39297),r=n(35031),o=n(77347),s=n(24913);e.exports=function(e,t,n){for(var a=r(t),l=s.f,u=o.f,c=0;c{"use strict";var i=n(79039);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699:(e,t,n)=>{"use strict";var i=n(43724),r=n(24913),o=n(6980);e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040:(e,t,n)=>{"use strict";var i=n(43724),r=n(24913),o=n(6980);e.exports=function(e,t,n){i?r.f(e,t,o(0,n)):e[t]=n}},36840:(e,t,n)=>{"use strict";var i=n(94901),r=n(24913),o=n(50283),s=n(39433);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(i(n)&&o(n,u,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},39433:(e,t,n)=>{"use strict";var i=n(24475),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},43724:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(e,t,n)=>{"use strict";var i=n(24475),r=n(20034),o=i.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},67400:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:(e,t,n)=>{"use strict";var i=n(4055)("span").classList,r=i&&i.constructor&&i.constructor.prototype;e.exports=r===Object.prototype?void 0:r},79392:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},77388:(e,t,n)=>{"use strict";var i,r,o=n(24475),s=n(79392),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(r=(i=c.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},46518:(e,t,n)=>{"use strict";var i=n(24475),r=n(77347).f,o=n(66699),s=n(36840),a=n(39433),l=n(77740),u=n(92796);e.exports=function(e,t){var n,c,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[f]||a(f,{}):i[f]&&i[f].prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(p=r(n,c))&&p.value:n[c],!u(m?c:f+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),s(n,c,h,e)}}},79039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},76080:(e,t,n)=>{"use strict";var i=n(27476),r=n(79306),o=n(40616),s=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},40616:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},69565:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},10350:(e,t,n)=>{"use strict";var i=n(43724),r=n(39297),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,u=a&&(!i||i&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},46706:(e,t,n)=>{"use strict";var i=n(79504),r=n(79306);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},27476:(e,t,n)=>{"use strict";var i=n(44576),r=n(79504);e.exports=function(e){if("Function"===i(e))return r(e)}},79504:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);e.exports=i?s:function(e){return function(){return o.apply(e,arguments)}}},97751:(e,t,n)=>{"use strict";var i=n(24475),r=n(94901);e.exports=function(e,t){return arguments.length<2?(n=i[e],r(n)?n:void 0):i[e]&&i[e][t];var n}},50851:(e,t,n)=>{"use strict";var i=n(36955),r=n(55966),o=n(64117),s=n(26269),a=n(78227)("iterator");e.exports=function(e){if(!o(e))return r(e,a)||r(e,"@@iterator")||s[i(e)]}},70081:(e,t,n)=>{"use strict";var i=n(69565),r=n(79306),o=n(28551),s=n(16823),a=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(r(n))return o(i(n,e));throw new l(s(e)+" is not iterable")}},55966:(e,t,n)=>{"use strict";var i=n(79306),r=n(64117);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},24475:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(e,t,n)=>{"use strict";var i=n(79504),r=n(48981),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},30421:e=>{"use strict";e.exports={}},20397:(e,t,n)=>{"use strict";var i=n(97751);e.exports=i("document","documentElement")},35917:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039),o=n(4055);e.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},47055:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(44576),s=Object,a=i("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):s(e)}:s},33706:(e,t,n)=>{"use strict";var i=n(79504),r=n(94901),o=n(77629),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},91181:(e,t,n)=>{"use strict";var i,r,o,s=n(58622),a=n(24475),l=n(20034),u=n(66699),c=n(39297),d=n(77629),h=n(66119),p=n(30421),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(s||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw new m(f);return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=h("state");p[y]=!0,i=function(e,t){if(c(e,y))throw new m(f);return t.facade=e,u(e,y,t),t},r=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},44209:(e,t,n)=>{"use strict";var i=n(78227),r=n(26269),o=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[o]===e)}},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},92796:(e,t,n)=>{"use strict";var i=n(79039),r=n(94901),o=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===c||n!==u&&(r(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},64117:e=>{"use strict";e.exports=function(e){return null==e}},20034:(e,t,n)=>{"use strict";var i=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},13925:(e,t,n)=>{"use strict";var i=n(20034);e.exports=function(e){return i(e)||null===e}},96395:e=>{"use strict";e.exports=!1},10757:(e,t,n)=>{"use strict";var i=n(97751),r=n(94901),o=n(1625),s=n(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,a(e))}},72652:(e,t,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(28551),s=n(16823),a=n(44209),l=n(26198),u=n(1625),c=n(70081),d=n(50851),h=n(9539),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,n){var g,v,y,b,_,w,k,x=n&&n.that,E=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),P=i(t,x),A=function(e){return g&&h(g,"normal",e),new f(!0,e)},M=function(e){return E?(o(e),S?P(e[0],e[1],A):P(e[0],e[1])):S?P(e,A):P(e)};if(C)g=e.iterator;else if(O)g=e;else{if(!(v=d(e)))throw new p(s(e)+" is not iterable");if(a(v)){for(y=0,b=l(e);b>y;y++)if((_=M(e[y]))&&u(m,_))return _;return new f(!1)}g=c(e,v)}for(w=C?e.next:g.next;!(k=r(w,g)).done;){try{_=M(k.value)}catch(e){h(g,"throw",e)}if("object"==typeof _&&_&&u(m,_))return _}return new f(!1)}},9539:(e,t,n)=>{"use strict";var i=n(69565),r=n(28551),o=n(55966);e.exports=function(e,t,n){var s,a;r(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw n;return n}s=i(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return r(s),n}},33994:(e,t,n)=>{"use strict";var i=n(57657).IteratorPrototype,r=n(2360),o=n(6980),s=n(10687),a=n(26269),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=r(i,{next:o(+!u,n)}),s(e,c,!1,!0),a[c]=l,e}},51088:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(96395),s=n(10350),a=n(94901),l=n(33994),u=n(42787),c=n(52967),d=n(10687),h=n(66699),p=n(36840),f=n(78227),m=n(26269),g=n(57657),v=s.PROPER,y=s.CONFIGURABLE,b=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=f("iterator"),k="keys",x="values",E="entries",C=function(){return this};e.exports=function(e,t,n,s,f,g,O){l(n,t,s);var S,P,A,M=function(e){if(e===f&&I)return I;if(!_&&e&&e in D)return D[e];switch(e){case k:case x:case E:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",R=!1,D=e.prototype,j=D[w]||D["@@iterator"]||f&&D[f],I=!_&&j||M(f),L="Array"===t&&D.entries||j;if(L&&(S=u(L.call(new e)))!==Object.prototype&&S.next&&(o||u(S)===b||(c?c(S,b):a(S[w])||p(S,w,C)),d(S,T,!0,!0),o&&(m[T]=C)),v&&f===x&&j&&j.name!==x&&(!o&&y?h(D,"name",x):(R=!0,I=function(){return r(j,this)})),f)if(P={values:M(x),keys:g?I:M(k),entries:M(E)},O)for(A in P)(_||R||!(A in D))&&p(D,A,P[A]);else i({target:t,proto:!0,forced:_||R},P);return o&&!O||D[w]===I||p(D,w,I,{name:f}),m[t]=I,P}},57657:(e,t,n)=>{"use strict";var i,r,o,s=n(79039),a=n(94901),l=n(20034),u=n(2360),c=n(42787),d=n(36840),h=n(78227),p=n(96395),f=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(r=c(c(o)))!==Object.prototype&&(i=r):m=!0),!l(i)||s((function(){var e={};return i[f].call(e)!==e}))?i={}:p&&(i=u(i)),a(i[f])||d(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},26269:e=>{"use strict";e.exports={}},26198:(e,t,n)=>{"use strict";var i=n(18014);e.exports=function(e){return i(e.length)}},50283:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(94901),s=n(39297),a=n(43724),l=n(10350).CONFIGURABLE,u=n(33706),c=n(91181),d=c.enforce,h=c.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),y=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=d(e);return s(i,"source")||(i.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&h(this).source||u(this)}),"toString")},80741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},2360:(e,t,n)=>{"use strict";var i,r=n(28551),o=n(96801),s=n(88727),a=n(30421),l=n(20397),u=n(4055),c=n(66119),d="prototype",h="script",p=c("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&i?g(i):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(i);for(var r=s.length;r--;)delete v[d][s[r]];return v()};a[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=r(e),n=new f,f[d]=null,n[p]=e):n=v(),void 0===t?n:o.f(n,t)}},96801:(e,t,n)=>{"use strict";var i=n(43724),r=n(48686),o=n(24913),s=n(28551),a=n(25397),l=n(71072);t.f=i&&!r?Object.defineProperties:function(e,t){s(e);for(var n,i=a(t),r=l(t),u=r.length,c=0;u>c;)o.f(e,n=r[c++],i[n]);return e}},24913:(e,t,n)=>{"use strict";var i=n(43724),r=n(35917),o=n(48686),s=n(28551),a=n(56969),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=i?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=c(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347:(e,t,n)=>{"use strict";var i=n(43724),r=n(69565),o=n(48773),s=n(6980),a=n(25397),l=n(56969),u=n(39297),c=n(35917),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=a(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return s(!r(o.f,e,t),e[t])}},38480:(e,t,n)=>{"use strict";var i=n(61828),r=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},33717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},42787:(e,t,n)=>{"use strict";var i=n(39297),r=n(94901),o=n(48981),s=n(66119),a=n(12211),l=s("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},1625:(e,t,n)=>{"use strict";var i=n(79504);e.exports=i({}.isPrototypeOf)},61828:(e,t,n)=>{"use strict";var i=n(79504),r=n(39297),o=n(25397),s=n(19617).indexOf,a=n(30421),l=i([].push);e.exports=function(e,t){var n,i=o(e),u=0,c=[];for(n in i)!r(a,n)&&r(i,n)&&l(c,n);for(;t.length>u;)r(i,n=t[u++])&&(~s(c,n)||l(c,n));return c}},71072:(e,t,n)=>{"use strict";var i=n(61828),r=n(88727);e.exports=Object.keys||function(e){return i(e,r)}},48773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},52967:(e,t,n)=>{"use strict";var i=n(46706),r=n(20034),o=n(67750),s=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return o(n),s(i),r(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},84270:(e,t,n)=>{"use strict";var i=n(69565),r=n(94901),o=n(20034),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&r(n=e.toString)&&!o(a=i(n,e)))return a;if(r(n=e.valueOf)&&!o(a=i(n,e)))return a;if("string"!==t&&r(n=e.toString)&&!o(a=i(n,e)))return a;throw new s("Can't convert object to primitive value")}},35031:(e,t,n)=>{"use strict";var i=n(97751),r=n(79504),o=n(38480),s=n(33717),a=n(28551),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?l(t,n(e)):t}},19167:(e,t,n)=>{"use strict";var i=n(24475);e.exports=i},67750:(e,t,n)=>{"use strict";var i=n(64117),r=TypeError;e.exports=function(e){if(i(e))throw new r("Can't call method on "+e);return e}},10687:(e,t,n)=>{"use strict";var i=n(24913).f,r=n(39297),o=n(78227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,o)&&i(e,o,{configurable:!0,value:t})}},66119:(e,t,n)=>{"use strict";var i=n(25745),r=n(33392),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},77629:(e,t,n)=>{"use strict";var i=n(96395),r=n(24475),o=n(39433),s="__core-js_shared__",a=e.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:(e,t,n)=>{"use strict";var i=n(77629);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},4495:(e,t,n)=>{"use strict";var i=n(77388),r=n(79039),o=n(24475).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},35610:(e,t,n)=>{"use strict";var i=n(91291),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},25397:(e,t,n)=>{"use strict";var i=n(47055),r=n(67750);e.exports=function(e){return i(r(e))}},91291:(e,t,n)=>{"use strict";var i=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},18014:(e,t,n)=>{"use strict";var i=n(91291),r=Math.min;e.exports=function(e){var t=i(e);return t>0?r(t,9007199254740991):0}},48981:(e,t,n)=>{"use strict";var i=n(67750),r=Object;e.exports=function(e){return r(i(e))}},72777:(e,t,n)=>{"use strict";var i=n(69565),r=n(20034),o=n(10757),s=n(55966),a=n(84270),l=n(78227),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=s(e,c);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},56969:(e,t,n)=>{"use strict";var i=n(72777),r=n(10757);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},92140:(e,t,n)=>{"use strict";var i={};i[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(i)},16823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},33392:(e,t,n)=>{"use strict";var i=n(79504),r=0,o=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+o,36)}},7040:(e,t,n)=>{"use strict";var i=n(4495);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039);e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},58622:(e,t,n)=>{"use strict";var i=n(24475),r=n(94901),o=i.WeakMap;e.exports=r(o)&&/native code/.test(String(o))},78227:(e,t,n)=>{"use strict";var i=n(24475),r=n(25745),o=n(39297),s=n(33392),a=n(4495),l=n(7040),u=i.Symbol,c=r("wks"),d=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},23792:(e,t,n)=>{"use strict";var i=n(25397),r=n(6469),o=n(26269),s=n(91181),a=n(24913).f,l=n(51088),u=n(62529),c=n(96395),d=n(43724),h="Array Iterator",p=s.set,f=s.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!c&&d&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},53921:(e,t,n)=>{"use strict";var i=n(46518),r=n(72652),o=n(97040);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},62953:(e,t,n)=>{"use strict";var i=n(24475),r=n(67400),o=n(79296),s=n(23792),a=n(66699),l=n(10687),u=n(78227)("iterator"),c=s.values,d=function(e,t){if(e){if(e[u]!==c)try{a(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),r[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var h in r)d(i[h]&&i[h].prototype,h);d(o,"DOMTokenList")},40470:(e,t,n)=>{"use strict";var i=n(7517);n(62953),e.exports=i},54949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonPatchError:()=>g,_areEquals:()=>S,applyOperation:()=>k,applyPatch:()=>x,applyReducer:()=>E,compare:()=>I,deepClone:()=>c,default:()=>L,escapePathComponent:()=>h,generate:()=>D,getValueByPointer:()=>w,observe:()=>R,unescapePathComponent:()=>p,unobserve:()=>T,validate:()=>O,validator:()=>C});var i={};n.r(i),n.d(i,{JsonPatchError:()=>v,_areEquals:()=>S,applyOperation:()=>k,applyPatch:()=>x,applyReducer:()=>E,deepClone:()=>y,getValueByPointer:()=>w,validate:()=>O,validator:()=>C});var r={};n.r(r),n.d(r,{compare:()=>I,generate:()=>D,observe:()=>R,unobserve:()=>T});var o,s=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=Object.prototype.hasOwnProperty;function l(e,t){return a.call(e,t)}function u(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&t<=57))return!1;n++}return!0}function h(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function f(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t0&&"constructor"==a[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===f&&(void 0===l[m]?f=a.slice(0,u).join("/"):u==h-1&&(f=t.path),void 0!==f&&g(t,0,e,f)),u++,Array.isArray(l)){if("-"===m)m=l.length;else{if(n&&!d(m))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);d(m)&&(m=~~m)}if(u>=h){if(n&&"add"===t.op&&m>l.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);if(!1===(s=_[t.op].call(t,l,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}}else if(u>=h){if(!1===(s=b[t.op].call(t,l,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}if(l=l[m],n&&u0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&f(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var r=e.path.split("/").length,o=i.split("/").length;if(r!==o+1&&r!==o)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==i)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var s=O([{op:"_get",path:e.from,value:void 0}],n);if(s&&"OPERATION_PATH_UNRESOLVABLE"===s.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function O(e,t,n){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)x(c(t),c(e),n||!0);else{n=n||C;for(var i=0;i0&&(e.patches=[],e.callback&&e.callback(i)),i}function j(e,t,n,i,r){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=u(t),s=u(e),a=!1,d=s.length-1;d>=0;d--){var p=e[m=s[d]];if(!l(t,m)||void 0===t[m]&&void 0!==p&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(r&&n.push({op:"test",path:i+"/"+h(m),value:c(p)}),n.push({op:"remove",path:i+"/"+h(m)}),a=!0):(r&&n.push({op:"test",path:i,value:e}),n.push({op:"replace",path:i,value:t}));else{var f=t[m];"object"==typeof p&&null!=p&&"object"==typeof f&&null!=f&&Array.isArray(p)===Array.isArray(f)?j(p,f,n,i+"/"+h(m),r):p!==f&&(r&&n.push({op:"test",path:i+"/"+h(m),value:c(p)}),n.push({op:"replace",path:i+"/"+h(m),value:c(f)}))}}if(a||o.length!=s.length)for(d=0;d{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(8509);return __webpack_exports__})())); \ No newline at end of file diff --git a/dist/protected-eval.js.LICENSE.txt b/dist/protected-eval.js.LICENSE.txt index b1121f5..e63a25b 100644 --- a/dist/protected-eval.js.LICENSE.txt +++ b/dist/protected-eval.js.LICENSE.txt @@ -1,3 +1,29 @@ +/*! + * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad + * (c) 2024 Szymon Nowak | Released under the MIT license + */ + +/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2021 Joachim Wester + * MIT license + */ + +/*! + * https://github.com/Starcounter-Jack/JSON-Patch + * (c) 2017-2022 Joachim Wester + * MIT licensed + */ + +/*! @formio/choices.js v10.2.1 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ + +/*! @license DOMPurify 3.1.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.1.5/LICENSE */ + +/*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org +*/ + /** * @license * Lodash @@ -6,3 +32,15 @@ * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ + +//! Copyright (c) JS Foundation and other contributors + +//! github.com/moment/moment-timezone + +//! license : MIT + +//! moment-timezone.js + +//! moment.js + +//! version : 0.5.45 diff --git a/lib/FormioUtils.d.ts b/lib/FormioUtils.d.ts index 8229d26..003525d 100644 --- a/lib/FormioUtils.d.ts +++ b/lib/FormioUtils.d.ts @@ -1,2 +1,2 @@ -import { Utils as FormioUtils } from 'formiojs'; +import { Utils as FormioUtils } from '@formio/js'; export default FormioUtils; diff --git a/lib/FormioUtils.js b/lib/FormioUtils.js index 17ecb27..a230b4d 100644 --- a/lib/FormioUtils.js +++ b/lib/FormioUtils.js @@ -20,15 +20,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { return to.concat(ar || Array.prototype.slice.call(from)); }; Object.defineProperty(exports, "__esModule", { value: true }); -var formiojs_1 = require("formiojs"); +var js_1 = require("@formio/js"); var lodash_1 = require("./utils/lodash"); -var baseEvaluate = formiojs_1.Utils.evaluate; -formiojs_1.Utils.evaluate = function evaluate(func, args, ret, tokenize) { +var baseEvaluate = js_1.Utils.evaluate; +js_1.Utils.evaluate = function evaluate(func, args, ret, tokenize) { var rest = []; for (var _i = 4; _i < arguments.length; _i++) { rest[_i - 4] = arguments[_i]; } - if (!formiojs_1.Utils.Evaluator.protectedEval || typeof func !== 'string') { + if (!js_1.Utils.Evaluator.protectedEval || typeof func !== 'string') { return baseEvaluate.apply(void 0, __spreadArray([func, args, ret, tokenize], rest, false)); } var returnVal = null; @@ -53,7 +53,7 @@ formiojs_1.Utils.evaluate = function evaluate(func, args, ret, tokenize) { }); } try { - returnVal = formiojs_1.Utils.Evaluator.evaluate(func, __assign(__assign({}, args), { _: lodash_1.lodash })); + returnVal = js_1.Utils.Evaluator.evaluate(func, __assign(__assign({}, args), { _: lodash_1.lodash })); } catch (err) { console.warn("An error occured within the custom function for ".concat(componentKey), err); @@ -62,4 +62,4 @@ formiojs_1.Utils.evaluate = function evaluate(func, args, ret, tokenize) { } return returnVal; }; -exports.default = formiojs_1.Utils; +exports.default = js_1.Utils; diff --git a/lib/ProtectedEvaluator.js b/lib/ProtectedEvaluator.js index 61b1eec..41c58d9 100644 --- a/lib/ProtectedEvaluator.js +++ b/lib/ProtectedEvaluator.js @@ -12,10 +12,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -var formiojs_1 = require("formiojs"); +var js_1 = require("@formio/js"); var js_interpreter_1 = __importDefault(require("js-interpreter")); -var baseEvaluator = formiojs_1.Utils.Evaluator.evaluator; -var baseEvaluate = formiojs_1.Utils.Evaluator.evaluate; +var baseEvaluator = js_1.Utils.Evaluator.evaluator; +var baseEvaluate = js_1.Utils.Evaluator.evaluate; var excludedVariables = ['instance', 'self', 'options']; var Evaluator = { noeval: true, diff --git a/lib/utils/lodash.js b/lib/utils/lodash.js index 6bbddd7..ecda656 100644 --- a/lib/utils/lodash.js +++ b/lib/utils/lodash.js @@ -5,5 +5,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.lodash = void 0; var lodash_1 = __importDefault(require("lodash")); -var operators_1 = require("formiojs/utils/jsonlogic/operators"); -exports.lodash = operators_1.lodashOperators.reduce(function (obj, operator) { return lodash_1.default.set(obj, operator, lodash_1.default[operator]); }, {}); +var lodash_2 = require("lodash"); +var lodashOperators = [ + lodash_2.chunk, lodash_2.compact, lodash_2.concat, lodash_2.difference, lodash_2.differenceBy, lodash_2.differenceWith, + lodash_2.drop, lodash_2.dropRight, lodash_2.dropRightWhile, lodash_2.dropWhile, lodash_2.findIndex, lodash_2.findLastIndex, + lodash_2.first, lodash_2.flatten, lodash_2.flattenDeep, lodash_2.flattenDepth, lodash_2.fromPairs, lodash_2.head, lodash_2.indexOf, + lodash_2.initial, lodash_2.intersection, lodash_2.intersectionBy, lodash_2.intersectionWith, lodash_2.join, lodash_2.last, + lodash_2.lastIndexOf, lodash_2.nth, lodash_2.pull, lodash_2.pullAll, lodash_2.pullAllBy, lodash_2.pullAllWith, lodash_2.pullAt, lodash_2.remove, + lodash_2.reverse, lodash_2.slice, lodash_2.sortedIndex, lodash_2.sortedIndexBy, lodash_2.sortedIndexOf, lodash_2.sortedLastIndex, + lodash_2.sortedLastIndexBy, lodash_2.sortedLastIndexOf, lodash_2.sortedUniq, lodash_2.sortedUniqBy, lodash_2.tail, + lodash_2.take, lodash_2.takeRight, lodash_2.takeRightWhile, lodash_2.takeWhile, lodash_2.union, lodash_2.unionBy, lodash_2.unionWith, + lodash_2.uniq, lodash_2.uniqBy, lodash_2.uniqWith, lodash_2.unzip, lodash_2.unzipWith, lodash_2.without, lodash_2.xor, lodash_2.xorBy, lodash_2.xorWith, + lodash_2.zip, lodash_2.zipObject, lodash_2.zipObjectDeep, lodash_2.zipWith +]; +exports.lodash = lodashOperators.reduce(function (obj, operator) { return lodash_1.default.set(obj, operator.name, operator); }, {}); diff --git a/package.json b/package.json index dd61422..cb2757e 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "author": "", "license": "ISC", "devDependencies": { - "@formio/js": "^5.0.0-rc.54", + "@formio/js": "5.0.0-rc.19", "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", "eslint": "^9.3.0", @@ -33,7 +33,7 @@ "webpack-cli": "^5.1.4" }, "peerDependencies": { - "@formio/js": "^5.0.0-rc.54" + "@formio/js": "5.0.0-rc.19" }, "dependencies": { "js-interpreter": "https://github.com/formio/JS-Interpreter#v1.1.0-formio.3", diff --git a/src/FormioUtils.ts b/src/FormioUtils.ts index aae8dd2..e61a50d 100644 --- a/src/FormioUtils.ts +++ b/src/FormioUtils.ts @@ -1,4 +1,4 @@ -import {Utils as FormioUtils} from 'formiojs'; +import {Utils as FormioUtils} from '@formio/js'; import {lodash as _} from './utils/lodash'; diff --git a/src/ProtectedEvaluator.ts b/src/ProtectedEvaluator.ts index d69a76f..16404ee 100644 --- a/src/ProtectedEvaluator.ts +++ b/src/ProtectedEvaluator.ts @@ -1,4 +1,4 @@ -import {Utils as FormioUtils} from 'formiojs'; +import {Utils as FormioUtils} from '@formio/js'; import Interpreter from 'js-interpreter'; const baseEvaluator = FormioUtils.Evaluator.evaluator; diff --git a/src/utils/lodash.ts b/src/utils/lodash.ts index da139f9..5964a11 100644 --- a/src/utils/lodash.ts +++ b/src/utils/lodash.ts @@ -1,5 +1,30 @@ import _ from 'lodash'; +import { + chunk, compact, concat, difference, differenceBy, differenceWith, + drop, dropRight, dropRightWhile, dropWhile, findIndex, findLastIndex, + first, flatten, flattenDeep, flattenDepth, fromPairs, head, indexOf, + initial, intersection, intersectionBy, intersectionWith, join, last, + lastIndexOf, nth, pull, pullAll, pullAllBy, pullAllWith, pullAt, remove, + reverse, slice, sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, + sortedLastIndexBy, sortedLastIndexOf, sortedUniq, sortedUniqBy, tail, + take, takeRight, takeRightWhile, takeWhile, union, unionBy, unionWith, + uniq, uniqBy, uniqWith, unzip, unzipWith, without, xor, xorBy, xorWith, + zip, zipObject, zipObjectDeep, zipWith +} from 'lodash'; + +const lodashOperators = [ + chunk, compact, concat, difference, differenceBy, differenceWith, + drop, dropRight, dropRightWhile, dropWhile, findIndex, findLastIndex, + first, flatten, flattenDeep, flattenDepth, fromPairs, head, indexOf, + initial, intersection, intersectionBy, intersectionWith, join, last, + lastIndexOf, nth, pull, pullAll, pullAllBy, pullAllWith, pullAt, remove, + reverse, slice, sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, + sortedLastIndexBy, sortedLastIndexOf, sortedUniq, sortedUniqBy, tail, + take, takeRight, takeRightWhile, takeWhile, union, unionBy, unionWith, + uniq, uniqBy, uniqWith, unzip, unzipWith, without, xor, xorBy, xorWith, + zip, zipObject, zipObjectDeep, zipWith +]; + +export const lodash = lodashOperators.reduce((obj, operator) => _.set(obj, operator.name, operator), {}); -import {lodashOperators} from 'formiojs/utils/jsonlogic/operators'; -export const lodash = lodashOperators.reduce((obj, operator) => _.set(obj, operator, _[operator]), {}); diff --git a/yarn.lock b/yarn.lock index 9ceed70..c1d9e6d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,13 @@ # yarn lockfile v1 +"@babel/runtime@^7.22.5": + version "7.24.7" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz#f4f0d5530e8dbdf59b3451b9b3e594b6ba082e12" + integrity sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/runtime@^7.9.2": version "7.24.6" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.6.tgz#5b76eb89ad45e2e4a0a8db54c456251469a3358e" @@ -46,12 +53,14 @@ resolved "https://registry.npmjs.org/@eslint/js/-/js-9.3.0.tgz#2e8f65c9c55227abc4845b1513c69c32c679d8fe" integrity sha512-niBqk8iwv96+yuTwjM6bWg8ovzAPF9qkICsGtcoa5/dmqcEMfdwNAX7+/OHcJHc7wj7XqPxH98oAHytFYlw6Sw== -"@formio/bootstrap@^3.0.0-rc.24": - version "3.0.0-rc.21-dev.90.e1f0b93" - resolved "https://registry.npmjs.org/@formio/bootstrap/-/bootstrap-3.0.0-rc.21-dev.90.e1f0b93.tgz#fd669cecbf4ab2f58ad91d1a67e55dfbcad1d2b7" - integrity sha512-hNw2XvCU1hzdke42Gos2MnvWbUQjjhLPLPoRAqxEwxzg0lMeR5Xc9wlw1jRhHEwbpvF8c5bBVnnxfX/ilfah4A== +"@formio/bootstrap@^3.0.0-rc.6": + version "3.0.0-rc.6" + resolved "https://registry.npmjs.org/@formio/bootstrap/-/bootstrap-3.0.0-rc.6.tgz#c71099f7df1189489eaf977dde37afa409d3c17f" + integrity sha512-L45AIMyC9otF+ywuwGWD917s+ekldiFyhxDucoMOCfh5MQIZHr/f4q9j72mFHx82uBFxlycrKGLicebxtKEjLg== + dependencies: + resize-observer-polyfill "^1.5.1" -"@formio/choices.js@^10.2.1": +"@formio/choices.js@^10.2.0": version "10.2.1" resolved "https://registry.npmjs.org/@formio/choices.js/-/choices.js-10.2.1.tgz#d0f5c032d94f33152b6036f6a5bb42fcc4684e31" integrity sha512-NCE5u7jG3XGokJP16MyAbVSUptKu/mpJYAxd4PPIoLiO/l9Do5uoOQ0MgNb9qG9qABJiOX+qNRE8q8RybY/SwQ== @@ -60,65 +69,68 @@ fuse.js "^6.6.2" redux "^4.2.0" -"@formio/core@^2.1.0-dev.tt.8": - version "2.1.0-rc.2" - resolved "https://registry.npmjs.org/@formio/core/-/core-2.1.0-rc.2.tgz#885e379aeb3103a1ca190f58226e1509f5d668df" - integrity sha512-+ZdeXW9koQuZb31FTXMOFnUlrP4niYusa3kBCbtSSoCJrbTyZbWu5Iu2akThQle3fqYwYJELT7xjhVmHfjfKyQ== +"@formio/core@1.3.0-rc.15": + version "1.3.0-rc.15" + resolved "https://registry.npmjs.org/@formio/core/-/core-1.3.0-rc.15.tgz#5ab89d6e5d0ba6f1ddf2bbc83ecfc05fc463bcab" + integrity sha512-bCJ1jjHvtrEwgzse4rkx1VUPR59yzD414igpHBjQ86rO9RtUxSEhugJP4Nfw6fpTb/QSygaLMR/P1fA28FZitQ== dependencies: - "@types/json-logic-js" "^2.0.5" + "@formio/lodash" "0.1.0" + "@types/json-logic-js" "^2.0.1" browser-cookies "^1.2.0" - core-js "^3.33.2" - dayjs "^1.11.10" - dompurify "^3.0.6" + core-js "^3.21.1" + dayjs "^1.10.8" + dompurify "^3.0.1" eventemitter3 "^5.0.0" - fast-json-patch "^3.1.1" fetch-ponyfill "^7.1.0" - inputmask "^5.0.9-beta.45" json-logic-js "^2.0.2" - lodash "^4.17.21" - moment "^2.29.4" -"@formio/js@^5.0.0-rc.54": - version "5.0.0-rc.54" - resolved "https://registry.npmjs.org/@formio/js/-/js-5.0.0-rc.54.tgz#2cfd7ea236208a48d7f62a17508109798e43b7e1" - integrity sha512-QJkDC2Fm6uCmqUJD6hZSXWeJGDatWKllHjiXQde4X6kgtSwlzlWKg/4jJauU9aN/CWLmZfpihQHvyMjtntz9Fw== +"@formio/js@5.0.0-rc.19": + version "5.0.0-rc.19" + resolved "https://registry.npmjs.org/@formio/js/-/js-5.0.0-rc.19.tgz#385262880011dfa7d64e2b929c278ab9386c5630" + integrity sha512-sk65jyT/IaXy3wXONFAunAPE52xDlppupVzfVtDlRM4gbfkhc6NSZkKLyLlsemdqXtIPIjbm5Mu0TE/XOfA9Cw== dependencies: - "@formio/bootstrap" "^3.0.0-rc.24" - "@formio/choices.js" "^10.2.1" - "@formio/core" "^2.1.0-dev.tt.8" + "@formio/bootstrap" "^3.0.0-rc.6" + "@formio/choices.js" "^10.2.0" + "@formio/core" "1.3.0-rc.15" "@formio/text-mask-addons" "^3.8.0-formio.2" "@formio/vanilla-text-mask" "^5.1.1-formio.1" - abortcontroller-polyfill "^1.7.5" autocompleter "^8.0.4" - bootstrap "^5.3.3" + bootstrap "^5.3.0" browser-cookies "^1.2.0" browser-md5-file "^1.1.1" compare-versions "^6.0.0-rc.2" - core-js "^3.37.1" + core-js "^3.31.0" dialog-polyfill "^0.5.6" dom-autoscroller "^2.3.4" - dompurify "^3.1.3" + dompurify "^3.0.3" downloadjs "^1.4.7" dragula "^3.7.3" eventemitter3 "^5.0.1" fast-deep-equal "^3.1.3" fast-json-patch "^3.1.1" fetch-ponyfill "^7.1.0" + i18next "23.2.3" idb "^7.1.1" - inputmask "^5.0.8" ismobilejs "^1.1.1" json-logic-js "^2.0.2" jstimezonedetect "^1.0.7" jwt-decode "^3.1.2" lodash "^4.17.21" moment "^2.29.4" - moment-timezone "^0.5.44" - quill "^2.0.2" - signature_pad "^4.2.0" + moment-timezone "^0.5.43" + native-promise-only "^0.8.1" + quill "^2.0.0-dev.3" + resize-observer-polyfill "^1.5.1" + signature_pad "^4.1.4" string-hash "^1.1.3" tippy.js "^6.3.7" uuid "^9.0.0" - vanilla-picker "^2.12.3" + vanilla-picker "^2.12.1" + +"@formio/lodash@0.1.0": + version "0.1.0" + resolved "https://registry.npmjs.org/@formio/lodash/-/lodash-0.1.0.tgz#6f837423d33e45a022211eb98bfc683dd8bee9a8" + integrity sha512-xwDR6UyoOVZaYHNRmSAQXzx57I6svqi7wY2n8PAbGCWFnSvIKIWjlZ8Jktb63VJY1b5lfNF8xyq2ZFcsAMjYVg== "@formio/text-mask-addons@^3.8.0-formio.2": version "3.8.0-formio.2" @@ -246,7 +258,7 @@ resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== -"@types/json-logic-js@^2.0.5": +"@types/json-logic-js@^2.0.1": version "2.0.7" resolved "https://registry.npmjs.org/@types/json-logic-js/-/json-logic-js-2.0.7.tgz#09a70a932d0be937618a9fc791291b069e637fb0" integrity sha512-fucvZmbjqa1+gpw/nIwcP+ZIYHTvmwxuQQFKw/yU7+ZSD63z/xgY5pWN7sYUDRzg2Wf9STapL+7c66FNzhU6+Q== @@ -490,11 +502,6 @@ resolved "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -abortcontroller-polyfill@^1.7.5: - version "1.7.5" - resolved "https://registry.npmjs.org/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" - integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== - acorn-import-assertions@^1.9.0: version "1.9.0" resolved "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" @@ -572,7 +579,7 @@ balanced-match@^1.0.0: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -bootstrap@^5.3.3: +bootstrap@^5.3.0: version "5.3.3" resolved "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz#de35e1a765c897ac940021900fcbb831602bac38" integrity sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg== @@ -703,7 +710,7 @@ contra@1.9.4: atoa "1.0.0" ticky "1.0.1" -core-js@^3.33.2, core-js@^3.37.1: +core-js@^3.21.1, core-js@^3.31.0: version "3.37.1" resolved "https://registry.npmjs.org/core-js/-/core-js-3.37.1.tgz#d21751ddb756518ac5a00e4d66499df981a62db9" integrity sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw== @@ -736,7 +743,7 @@ custom-event@^1.0.0: resolved "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz#5d02a46850adf1b4a317946a3928fccb5bfd0425" integrity sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg== -dayjs@^1.11.10: +dayjs@^1.10.8: version "1.11.11" resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz#dfe0e9d54c5f8b68ccf8ca5f72ac603e7e5ed59e" integrity sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg== @@ -803,10 +810,10 @@ dom-set@^1.0.1: is-array "^1.0.1" iselement "^1.1.4" -dompurify@^3.0.6, dompurify@^3.1.3: - version "3.1.4" - resolved "https://registry.npmjs.org/dompurify/-/dompurify-3.1.4.tgz#42121304b2b3a6bae22f80131ff8a8f3f3c56be2" - integrity sha512-2gnshi6OshmuKil8rMZuQCGiUF3cUxHY3NGDzUAdUx/NPEe5DVnO8BDoAQouvgwnx0R/+a6jUn36Z0FSdq8vww== +dompurify@^3.0.1, dompurify@^3.0.3: + version "3.1.5" + resolved "https://registry.npmjs.org/dompurify/-/dompurify-3.1.5.tgz#2c6a113fc728682a0f55684b1388c58ddb79dc38" + integrity sha512-lwG+n5h8QNpxtyrJW/gJWckL+1/DQiYMX8f7t8Z2AZTPw1esVrqjI63i7Zc2Gz0aKzLVMYC1V1PL/ky+aY/NgA== downloadjs@^1.4.7: version "1.4.7" @@ -1139,6 +1146,13 @@ hasown@^2.0.0: dependencies: function-bind "^1.1.2" +i18next@23.2.3: + version "23.2.3" + resolved "https://registry.npmjs.org/i18next/-/i18next-23.2.3.tgz#d89930f0ce343fad2bee0d3c2188f42171a91cdd" + integrity sha512-5spO7L0rNmW0jFuNhz+gfirlFt1anle4mTy4+gFkgsH0+T3R5++4oncBrzeKa7v8pweRyGBoGmOpboqlxovg6A== + dependencies: + "@babel/runtime" "^7.22.5" + idb@^7.1.1: version "7.1.1" resolved "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz#d910ded866d32c7ced9befc5bfdf36f572ced72b" @@ -1170,16 +1184,6 @@ imurmurhash@^0.1.4: resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== -inputmask@^5.0.8: - version "5.0.8" - resolved "https://registry.npmjs.org/inputmask/-/inputmask-5.0.8.tgz#cd0f70b058c3291a0d4f27de25dbfc179c998bb4" - integrity sha512-1WcbyudPTXP1B28ozWWyFa6QRIUG4KiLoyR6LFHlpT4OfTzRqFfWgHFadNvRuMN1S9XNVz9CdNvCGjJi+uAMqQ== - -inputmask@^5.0.9-beta.45: - version "5.0.9-beta.70" - resolved "https://registry.npmjs.org/inputmask/-/inputmask-5.0.9-beta.70.tgz#86630eb60d0800a47a2b6cabee720d3ba41b654a" - integrity sha512-+8aqRwBxDNDi4zqKPo6te3zH+KWRSO3KA6EpANN5N8tDF3zd44AnbbOUI/g3RslavAaDuqwDMsPZwsxn3zWNMA== - interpret@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4" @@ -1411,7 +1415,7 @@ minimatch@^9.0.4: dependencies: brace-expansion "^2.0.1" -moment-timezone@^0.5.44: +moment-timezone@^0.5.43: version "0.5.45" resolved "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.45.tgz#cb685acd56bac10e69d93c536366eb65aa6bcf5c" integrity sha512-HIWmqA86KcmCAhnMAN0wuDOARV/525R2+lOLotuGFzn4HO+FH+/645z2wx0Dt3iDv6/p61SIvKnDstISainhLQ== @@ -1428,6 +1432,11 @@ ms@2.1.2: resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +native-promise-only@^0.8.1: + version "0.8.1" + resolved "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz#20a318c30cb45f71fe7adfbf7b21c99c1472ef11" + integrity sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -1568,7 +1577,7 @@ quill-delta@^5.1.0: lodash.clonedeep "^4.5.0" lodash.isequal "^4.5.0" -quill@^2.0.2: +quill@^2.0.0-dev.3: version "2.0.2" resolved "https://registry.npmjs.org/quill/-/quill-2.0.2.tgz#5b26bc10a74e9f7fdcfdb5156b3133a3ebf0a814" integrity sha512-QfazNrhMakEdRG57IoYFwffUIr04LWJxbS/ZkidRFXYCQt63c1gK6Z7IHUXMx/Vh25WgPBU42oBaNzQ0K1R/xw== @@ -1604,6 +1613,11 @@ regenerator-runtime@^0.14.0: resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== +resize-observer-polyfill@^1.5.1: + version "1.5.1" + resolved "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" + integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== + resolve-cwd@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" @@ -1687,7 +1701,7 @@ shebang-regex@^3.0.0: resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -signature_pad@^4.2.0: +signature_pad@^4.1.4: version "4.2.0" resolved "https://registry.npmjs.org/signature_pad/-/signature_pad-4.2.0.tgz#7513cee8cb8afd6594d871c61cf4d61420601422" integrity sha512-YLWysmaUBaC5wosAKkgbX7XI+LBv2w5L0QUcI6Jc4moHYzv9BUBJtAyNLpWzHjtjKTeWOH6bfP4a4pzf0UinfQ== @@ -1853,7 +1867,7 @@ uuid@^9.0.0: resolved "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30" integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA== -vanilla-picker@^2.12.3: +vanilla-picker@^2.12.1: version "2.12.3" resolved "https://registry.npmjs.org/vanilla-picker/-/vanilla-picker-2.12.3.tgz#1cc47b641a2b9c9afc5ac3a9a02febace0f1b17a" integrity sha512-qVkT1E7yMbUsB2mmJNFmaXMWE2hF8ffqzMMwe9zdAikd8u2VfnsVY2HQcOUi2F38bgbxzlJBEdS1UUhOXdF9GQ==