@formio/js 5.0.0-rc.95 → 5.0.0-rc.96
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +8 -8
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +8 -8
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +2 -2
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Wizard.js +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.js +3 -0
- package/lib/cjs/components/form/Form.js +1 -1
- package/lib/cjs/components/select/Select.js +1 -1
- package/lib/mjs/Wizard.js +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.js +3 -0
- package/lib/mjs/components/form/Form.js +1 -1
- package/lib/mjs/components/select/Select.js +1 -1
- package/package.json +2 -2
package/dist/formio.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! For license information please see formio.min.js.LICENSE.txt */
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={79092:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONLogicModule=t.interpolate=t.evaluate=t.JSONLogicEvaluator=void 0;const i=n(84679),a=n(28936);class s extends i.BaseEvaluator{static evaluate(e,t={},n="",r=!1,o={},s={}){let u=null;if("object"==typeof e)try{u=a.jsonLogic.apply(e,t)}catch(e){u=null,console.warn("An error occured within JSON Logic",e)}else u=i.BaseEvaluator.evaluate(e,t,n,r,o,s);return u}}t.JSONLogicEvaluator=s,t.evaluate=function(e,t,n="result",r,o={}){const{evalContext:i,instance:a}=e,u=i?i(e):e;return r&&r(u),a&&a.evaluate?a.evaluate(t,u,n,!1,o):s.evaluate(t,u,n,!1,e,o)},t.interpolate=function(e,t,n){const{evalContext:r,instance:o}=e,i=r?r(e):e;return n&&n(i),o&&o.evaluate?o.interpolate(t,i,{noeval:!0}):s.interpolate(t,i,{noeval:!0})},o(n(28936),t),t.JSONLogicModule={evaluator:s}},28936:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.jsonLogic=void 0;const o=r(n(18678));t.jsonLogic=o.default;const i=n(49599),a=n(19313);for(const e in a._)o.default.add_operation(`_${e}`,a._[e]);o.default.add_operation("getDate",(e=>(0,i.dayjs)(e).toISOString())),o.default.add_operation("relativeMinDate",(e=>(0,i.dayjs)().subtract(e,"days").toISOString())),o.default.add_operation("relativeMaxDate",(e=>(0,i.dayjs)().add(e,"days").toISOString()))},19313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=void 0;const r=n(2543);t._={chunk:r.chunk,compact:r.compact,concat:r.concat,difference:r.difference,drop:r.drop,dropRight:r.dropRight,findIndex:r.findIndex,findLastIndex:r.findLastIndex,first:r.first,flatten:r.flatten,flattenDeep:r.flattenDeep,flattenDepth:r.flattenDepth,fromPairs:r.fromPairs,head:r.head,indexOf:r.indexOf,initial:r.initial,intersection:r.intersection,intersectionBy:r.intersectionBy,intersectionWith:r.intersectionWith,join:r.join,last:r.last,lastIndexOf:r.lastIndexOf,nth:r.nth,slice:r.slice,sortedIndex:r.sortedIndex,sortedIndexBy:r.sortedIndexBy,sortedIndexOf:r.sortedIndexOf,sortedLastIndex:r.sortedLastIndex,sortedLastIndexBy:r.sortedLastIndexBy,sortedLastIndexOf:r.sortedLastIndexOf,sortedUniq:r.sortedUniq,sortedUniqBy:r.sortedUniqBy,tail:r.tail,take:r.take,takeRight:r.takeRight,takeRightWhile:r.takeRightWhile,takeWhile:r.takeWhile,union:r.union,unionBy:r.unionBy,unionWith:r.unionWith,uniq:r.uniq,uniqBy:r.uniqBy,uniqWith:r.uniqWith,unzip:r.unzip,unzipWith:r.unzipWith,without:r.without,xor:r.xor,xorBy:r.xorBy,xorWith:r.xorWith,zip:r.zip,zipObject:r.zipObject,zipObjectDeep:r.zipObjectDeep,zipWith:r.zipWith,countBy:r.countBy,every:r.every,filter:r.filter,find:r.find,findLast:r.findLast,flatMap:r.flatMap,flatMapDeep:r.flatMapDeep,flatMapDepth:r.flatMapDepth,groupBy:r.groupBy,includes:r.includes,invokeMap:r.invokeMap,keyBy:r.keyBy,map:r.map,orderBy:r.orderBy,partition:r.partition,reduce:r.reduce,reduceRight:r.reduceRight,reject:r.reject,sample:r.sample,sampleSize:r.sampleSize,shuffle:r.shuffle,size:r.size,some:r.some,sortBy:r.sortBy,now:r.now,flip:r.flip,negate:r.negate,overArgs:r.overArgs,partial:r.partial,partialRight:r.partialRight,rearg:r.rearg,rest:r.rest,spread:r.spread,castArray:r.castArray,clone:r.clone,cloneDeepWith:r.cloneDeepWith,cloneDeep:r.cloneDeep,conformsTo:r.conformsTo,eq:r.eq,gt:r.gt,gte:r.gte,isArguments:r.isArguments,isArray:r.isArray,isArrayBuffer:r.isArrayBuffer,isArrayLike:r.isArrayLike,isArrayLikeObject:r.isArrayLikeObject,isBoolean:r.isBoolean,isBuffer:r.isBuffer,isDate:r.isDate,isElement:r.isElement,isEmpty:r.isEmpty,isEqual:r.isEqual,isEqualWith:r.isEqualWith,isError:r.isError,isFinite:r.isFinite,isFunction:r.isFunction,isInteger:r.isInteger,isLength:r.isLength,isMap:r.isMap,isMatch:r.isMatch,isMatchWith:r.isMatchWith,isNaN:r.isNaN,isNative:r.isNative,isNil:r.isNil,isNull:r.isNull,isNumber:r.isNumber,isObject:r.isObject,isObjectLike:r.isObjectLike,isPlainObject:r.isPlainObject,isRegExp:r.isRegExp,isSafeInteger:r.isSafeInteger,isSet:r.isSet,isString:r.isString,isSymbol:r.isSymbol,isTypedArray:r.isTypedArray,isUndefined:r.isUndefined,isWeakMap:r.isWeakMap,isWeakSet:r.isWeakSet,lt:r.lt,lte:r.lte,toArray:r.toArray,toFinite:r.toFinite,toInteger:r.toInteger,toLength:r.toLength,toNumber:r.toNumber,toPlainObject:r.toPlainObject,toSafeInteger:r.toSafeInteger,toString:r.toString,add:r.add,ceil:r.ceil,divide:r.divide,floor:r.floor,max:r.max,maxBy:r.maxBy,mean:r.mean,meanBy:r.meanBy,min:r.min,minBy:r.minBy,multiply:r.multiply,round:r.round,subtract:r.subtract,sum:r.sum,sumBy:r.sumBy,clamp:r.clamp,inRange:r.inRange,random:r.random,at:r.at,entries:r.entries,entriesIn:r.entriesIn,findKey:r.findKey,findLastKey:r.findLastKey,functions:r.functions,functionsIn:r.functionsIn,get:r.get,has:r.has,hasIn:r.hasIn,invert:r.invert,invertBy:r.invertBy,invoke:r.invoke,keys:r.keys,keysIn:r.keysIn,mapKeys:r.mapKeys,mapValues:r.mapValues,omit:r.omit,omitBy:r.omitBy,pick:r.pick,pickBy:r.pickBy,result:r.result,toPairs:r.toPairs,toPairsIn:r.toPairsIn,transform:r.transform,values:r.values,valuesIn:r.valuesIn,camelCase:r.camelCase,capitalize:r.capitalize,deburr:r.deburr,endsWith:r.endsWith,escape:r.escape,escapeRegExp:r.escapeRegExp,kebabCase:r.kebabCase,lowerCase:r.lowerCase,lowerFirst:r.lowerFirst,pad:r.pad,padEnd:r.padEnd,padStart:r.padStart,parseInt:r.parseInt,repeat:r.repeat,replace:r.replace,snakeCase:r.snakeCase,split:r.split,startCase:r.startCase,startsWith:r.startsWith,toLower:r.toLower,toUpper:r.toUpper,trim:r.trim,trimEnd:r.trimEnd,trimStart:r.trimStart,truncate:r.truncate,unescape:r.unescape,upperCase:r.upperCase,upperFirst:r.upperFirst,words:r.words,cond:r.cond,conforms:r.conforms,constant:r.constant,defaultTo:r.defaultTo,flow:r.flow,flowRight:r.flowRight,identity:r.identity,iteratee:r.iteratee,matches:r.matches,matchesProperty:r.matchesProperty,method:r.method,methodOf:r.methodOf,nthArg:r.nthArg,over:r.over,overEvery:r.overEvery,overSome:r.overSome,property:r.property,propertyOf:r.propertyOf,range:r.range,rangeRight:r.rangeRight,stubArray:r.stubArray,stubFalse:r.stubFalse,stubObject:r.stubObject,stubString:r.stubString,stubTrue:r.stubTrue,times:r.times,toPath:r.toPath,uniqueId:r.uniqueId}},23370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2543);class o{static identity(e){return e}static deregisterPlugin(e){const t=o.plugins.length;return o.plugins=o.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||r.noop).call(e,o.Formio),!1))),t!==o.plugins.length}static registerPlugin(e,t){o.plugins.push(e),o.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||r.noop).call(e,o.Formio)}static getPlugin(e){for(const t of o.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(o.plugins.map((n=>(n[e]||r.noop).call(n,...t))))}static pluginGet(e,...t){const n=i=>{const a=o.plugins[i];return a?Promise.resolve((a[e]||r.noop).call(a,...t)).then((e=>(0,r.isNil)(e)?n(i+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return o.plugins.reduce(((t,r)=>(r[e]||o.identity)(t,...n)),t)}}o.plugins=[],t.default=o},94394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var r=n(15993);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}})},13778:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Database=void 0,t.Database=class{}},70678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const r=n(2543);class o{static evaluator(e,...t){return i.noeval?(console.warn("No evaluations allowed for this renderer."),r.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,r.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,o,a)=>{if(-1===a.indexOf("(")||i.noeval||n.noeval){let e=a;-1!==a.indexOf("?")&&(e=a.replace(/\?\./g,"."));const o=e.split("||").map((e=>e.trim()));let i="",s="";for(let e=0;e<o.length&&(s=o[e],i=(0,r.get)(t,s),!i);e++);return n.data&&(0,r.set)(n.data,s,i),i}return a.replace(/([^(]+)\(([^)]+)\s*\);?/,((e,o,a)=>{o=(0,r.trim)(o);const s=(0,r.get)(t,o);return s?(a&&(a=a.split(",").map((e=>0===(e=(0,r.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,r.get)(t,e)))),i.evaluate(s,a,"",!1,t,n)):""}))})):""}static interpolate(e,t,n={}){if("function"==typeof e&&!i.noeval&&!n.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return i.interpolateString(String(e),t,n)}static evaluate(e,t={},n="",a=!1,s={},u={}){let c=null;u=(0,r.isObject)(u)?u:{noeval:u};const l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,r.get)(t.instance,"root._form",{}));const f=l.key;if("string"==typeof e){n&&(e=`var ${n};${e};return ${n}`),a&&(e=o.interpolate(e,t,u));try{e=i.noeval||u.noeval?r.noop:i.evaluator(e,t,s),t=(0,r.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${f}`,t),c=null,e=!1}}if("function"==typeof e)try{c=i.execute(e,t,s,u)}catch(e){c=null,console.warn(`An error occured within custom function for ${f}`,e)}else e&&console.warn(`Unknown function type for ${f}`);return c}static execute(e,t,n={},o={}){if(o=(0,r.isObject)(o)?o:{noeval:o},!i.noeval&&!o.noeval)return Array.isArray(t)?e.apply(n,t):e.call(n,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=o,o.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},o.noeval=!1;class i extends o{static registerEvaluator(e){Object.keys(e).forEach((t=>{i[t]=e[t]}))}}t.Evaluator=i},49599:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dayjs=t.isPartialDay=t.getDateValidationFormat=t.getDateSetting=t.formatDate=t.momentDate=t.convertFormatToMoment=t.currentTimezone=void 0;const o=r(n(74353));t.dayjs=o.default;const i=r(n(88569)),a=r(n(83826)),s=r(n(90445)),u=n(2543),c=n(70678);function l(){return o.default.tz.guess()}function f(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}o.default.extend(a.default),o.default.extend(i.default),o.default.extend(s.default),t.currentTimezone=l,t.convertFormatToMoment=f,t.momentDate=function(e,t,n){const r=(0,o.default)(e);return"UTC"===n?o.default.utc():n!==l()||t&&t.match(/\s(z$|z\s)/)?r.tz(n):r},t.formatDate=function(e,t,n){const r=(0,o.default)(e);return"UTC"===n?`${o.default.utc().format(f(t))} UTC`:n?r.tz(n).format(`${f(t)} z`):r.format(f(t))},t.getDateSetting=function(e){if((0,u.isNil)(e)||(0,u.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,o.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=c.Evaluator.evaluator(`return ${e};`,"moment")(o.default);"string"==typeof n?t=(0,o.default)(n):"function"==typeof n.toDate?t=(0,o.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,o.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.getDateValidationFormat=e=>e.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY",t.isPartialDay=(e,t)=>{if(!t)return!0;const[n,r,o]=e.dayFirst?[0,1,2]:[1,0,2],i=t.split("/");return"00"===i[n]||"00"===i[r]||"0000"===i[o]}},55223:function(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)}},60554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},5426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponent=void 0;const r=n(96690);t.eachComponent=function e(t,n,o,i="",a){t&&t.forEach((s=>{if(!s)return;const u=(0,r.componentInfo)(s);let c=!1;a&&(Object.defineProperty(s,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(s.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(s.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows),Object.defineProperty(s,"path",{enumerable:!1,writable:!0,value:(0,r.componentPath)(s,i)}),(o||s.tree||!u.layout)&&(c=!!n(s,s.path,t,a)),c||(u.hasColumns?s.columns.forEach((t=>e(t.components,n,o,i,a?s:null))):u.hasRows?s.rows.forEach((t=>{Array.isArray(t)&&t.forEach((t=>e(t.components,n,o,i,a?s:null)))})):u.hasComps&&e(s.components,n,o,(0,r.componentFormPath)(s,i,s.path),a?s:null))}))}},83736:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentAsync=void 0;const o=n(96690);t.eachComponentAsync=function e(t,n){return r(this,arguments,void 0,(function*(t,n,r=!1,i="",a){var s,u;if(t)for(let c=0;c<t.length;c++){if(!t[c])continue;const l=t[c],f=(0,o.componentInfo)(l);if(a&&(Object.defineProperty(l,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(l.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(l.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete l.parent.components,delete l.parent.componentMap,delete l.parent.columns,delete l.parent.rows),Object.defineProperty(l,"path",{enumerable:!1,writable:!0,value:(0,o.componentPath)(l,i)}),!r&&!l.tree&&f.layout||!(yield n(l,l.path,t,a)))if(f.hasColumns)for(let t=0;t<l.columns.length;t++)yield e(null===(s=l.columns[t])||void 0===s?void 0:s.components,n,r,i,a?l:null);else if(f.hasRows)for(let t=0;t<l.rows.length;t++){const o=l.rows[t];if(Array.isArray(o))for(let t=0;t<o.length;t++)yield e(null===(u=o[t])||void 0===u?void 0:u.components,n,r,i,a?l:null)}else f.hasComps&&(yield e(l.components,n,r,(0,o.componentFormPath)(l,i,l.path),a?l:null))}}))}},57330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentData=void 0;const r=n(2543),o=n(96690),i=n(5426);t.eachComponentData=(e,n,a,s="",u,c,l=!1)=>{if(e&&n)return(0,i.eachComponent)(e,((e,i,c,f)=>{const p=(0,o.getContextualRowData)(e,i,n);if(!0===a(e,n,p,i,c,u,f))return!0;if((0,o.isComponentNestedDataType)(e)){const c=(0,r.get)(n,i,n);if(Array.isArray(c)){for(let r=0;r<c.length;r++){const s="nestedDataArray"===(0,o.getModelType)(e)?`${i}[${r}].data`:`${i}[${r}]`;(0,t.eachComponentData)(e.components,n,a,s,r,e,l)}return!0}if((0,r.isEmpty)(p)&&!l)return!0;if("dataObject"===(0,o.getModelType)(e)){const c=(0,r.get)(n,e.path),f=(null==c?void 0:c._id)&&(0,r.isEmpty)(c.data)&&!(0,r.has)(c,"form");if((null==c?void 0:c._id)?!f:(0,r.has)(n,e.path)){const c=(0,o.componentDataPath)(e,s,i),f=(0,r.get)(n,c,{});(0,t.eachComponentData)(e.components,f,a,"",u,e,l),(0,r.set)(n,c,f)}}else(0,t.eachComponentData)(e.components,n,a,(0,o.componentDataPath)(e,s,i),u,e,l);return!0}if("none"===(0,o.getModelType)(e)){const r=(0,o.componentInfo)(e);if(r.hasColumns){const r=e;r.columns.forEach((i=>(0,t.eachComponentData)(i.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)))}else if(r.hasRows){const r=e;r.rows.forEach((i=>{Array.isArray(i)&&i.forEach((i=>(0,t.eachComponentData)(i.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)))}))}else if(r.hasComps){const r=e;(0,t.eachComponentData)(r.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)}return!0}return!1}),!0,s,c)}},42264:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=void 0;const o=n(2543),i=n(96690),a=n(83736);t.eachComponentDataAsync=(e,n,s,...u)=>r(void 0,[e,n,s,...u],void 0,(function*(e,n,s,u="",c,l,f=!1){if(e&&n)return yield(0,a.eachComponentAsync)(e,((e,a,l,p)=>r(void 0,void 0,void 0,(function*(){const r=(0,i.getContextualRowData)(e,a,n);if(!0===(yield s(e,n,r,a,l,c,p)))return!0;if((0,i.isComponentNestedDataType)(e)){const l=(0,o.get)(n,a,n);if(Array.isArray(l)){for(let r=0;r<l.length;r++){const o="nestedDataArray"===(0,i.getModelType)(e)?`${a}[${r}].data`:`${a}[${r}]`;yield(0,t.eachComponentDataAsync)(e.components,n,s,o,r,e,f)}return!0}if((0,o.isEmpty)(r)&&!f)return!0;if("dataObject"===(0,i.getModelType)(e)){const r=(0,o.get)(n,e.path),l=(null==r?void 0:r._id)&&(0,o.isEmpty)(r.data)&&!(0,o.has)(r,"form");if((null==r?void 0:r._id)?!l:(0,o.has)(n,e.path)){const r=(0,i.componentDataPath)(e,u,a),l=(0,o.get)(n,r,null);yield(0,t.eachComponentDataAsync)(e.components,l,s,"",c,e,f),(0,o.set)(n,r,l)}}else yield(0,t.eachComponentDataAsync)(e.components,n,s,(0,i.componentDataPath)(e,u,a),c,e,f);return!0}if("none"===(0,i.getModelType)(e)){const r=(0,i.componentInfo)(e);if(r.hasColumns){const r=e;for(const o of r.columns)yield(0,t.eachComponentDataAsync)(o.components,n,s,u,c,e)}else if(r.hasRows){const r=e;for(const o of r.rows)if(Array.isArray(o))for(const r of o)yield(0,t.eachComponentDataAsync)(r.components,n,s,u,c,e)}else if(r.hasComps){const r=e;yield(0,t.eachComponentDataAsync)(r.components,n,s,(0,i.componentFormPath)(r,u,r.path),c,e)}return!0}return!1}))),!0,u,l)}))},96690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=t.eachComponentAsync=t.eachComponentData=t.eachComponent=t.compareSelectResourceWithObjectTypeValues=t.isSelectResourceWithObjectValue=t.getItemTemplateKeys=t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.componentFormPath=t.componentDataPath=t.componentPath=t.isComponentNestedDataType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES_OF_KNOWN_COMPONENTS=t.uniqueName=t.guid=t.flattenComponents=void 0;const r=n(2543),o=n(54949),i=n(70678),a=n(5426);Object.defineProperty(t,"eachComponent",{enumerable:!0,get:function(){return a.eachComponent}});const s=n(57330);Object.defineProperty(t,"eachComponentData",{enumerable:!0,get:function(){return s.eachComponentData}});const u=n(83736);Object.defineProperty(t,"eachComponentAsync",{enumerable:!0,get:function(){return u.eachComponentAsync}});const c=n(42264);function l(){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 f(e){if(e.modelType)return e.modelType;for(const n of Object.keys(t.MODEL_TYPES_OF_KNOWN_COMPONENTS))if(t.MODEL_TYPES_OF_KNOWN_COMPONENTS[n].includes(e.type))return n;return!1===e.input?"none":"any"}function p(e){return e.tree||"nestedArray"===f(e)||"nestedDataArray"===f(e)||"dataObject"===f(e)||"object"===f(e)||"map"===f(e)}function d(e,t){t=e.parentPath||t;const n=h(e);return n?t?`${t}.${n}`:n:t||""}function h(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function m(e,t){return t.replace(new RegExp(`.?${h(e)}$`),"")}function y(e,t){if((0,r.isString)(t))return e.key===t||e.path===t;{let n=!1;return(0,r.forOwn)(t,((t,o)=>{if(n=(0,r.get)(e,o)===t,!n)return!1})),n}}function g(e,t){const n=[];return(0,a.eachComponent)(e,(e=>{y(e,t)&&n.push(e)}),!0),n}function v(e,t){const n=t.pop();0!==t.length&&(e=(0,r.get)(e,t)),e.splice(n,1)}function b(e){return parseFloat((0,r.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function _(e,t,n,r){if(e){if(n=n||[],!t)return r(e);e.forEach((function(o,i){const a=n.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,n){const o=a.slice();o.push(n),o.push("components"),_(e.components,t,o,r)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,n){const o=a.slice();o.push(n),e.forEach((function(e,n){const i=o.slice();i.push(n),i.push("components"),_(e.components,t,i,r)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),_(o.components,t,a,r)),o.key===t&&r(o,a,e))}))}}function w(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}Object.defineProperty(t,"eachComponentDataAsync",{enumerable:!0,get:function(){return c.eachComponentDataAsync}}),t.flattenComponents=function(e,t=!1){const n={};return(0,a.eachComponent)(e,((e,t)=>{n[t]=e}),t),n},t.guid=l,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 s=o.length>1?`.${(0,r.last)(o)}`:"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:l()}),`${i.Evaluator.interpolate(t,n)}${s}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES_OF_KNOWN_COMPONENTS={nestedArray:["datagrid","editgrid","datatable","dynamicWizard"],nestedDataArray:["tagpad"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],string:["textfield","password","email","url","phoneNumber","day","datetime","time","signature"],number:["number","currency"],boolean:["checkbox","radio"],none:["table","well","columns","fieldset","panel","tabs"],any:["survey","captcha","textarea","selectboxes","tags","select","hidden","button","datasource","sketchpad","reviewpage","file"]},t.getModelType=f,t.getComponentAbsolutePath=function(e){const t=[e.path];for(;e.parent;)"dataObject"===f(e=e.parent)&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const n=h(e);return n?t?t.match(new RegExp(`${n}$`))?t:"none"===f(e)?`${t}.${n}`:t:n:t},t.isComponentNestedDataType=p,t.componentPath=d,t.componentDataPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),e.components&&Array.isArray(e.components)?"dataObject"===f(e)?`${n}.data`:"nestedArray"===f(e)?`${n}[0]`:"nestedDataArray"===f(e)?`${n}[0].data`:p(e)?n:t:n),t.componentFormPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),"dataObject"===f(e)?`${n}.data`:p(e)?n:t),t.getComponentKey=h,t.getContextualRowPath=m,t.getContextualRowData=function(e,t,n){const o=m(e,t);return o?(0,r.get)(n,o,null):n},t.componentInfo=function(e){const t=e.columns&&Array.isArray(e.columns),n=e.rows&&Array.isArray(e.rows),r=e.components&&Array.isArray(e.components),o="content"===f(e),i="none"===f(e),a=!e.hasOwnProperty("input")||!!e.input;return{hasColumns:t,hasRows:n,hasComps:r,layout:t||n||r&&!a||i||o,iterable:t||n||r||o}},t.getComponentData=function(e,t,n){const r={component:null,data:null};return(0,s.eachComponentData)(e,t,((e,t,o,i)=>{if(i===n)return r.component=e,r.data=o,!0})),r},t.getComponentActualValue=function(e,t,n,o){var i;let a=null,s=e,u="";for(;(null===(i=null==s?void 0:s.parent)||void 0===i?void 0:i.path)&&!a;)s=s.parent,s.input&&(a=s);if(a){const e=a.path.replace(/\[[0-9]+\]/g,"");u=t.replace(e,""),u=(0,r.trim)(u,". ")}let c=null;return n&&(c=(0,r.get)(n,t)),u&&o&&(0,r.isNil)(c)&&(c=(0,r.get)(o,u)),((0,r.isNil)(c)||(0,r.isObject)(c)&&(0,r.isEmpty)(c))&&(c=""),c},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.matchComponent=y,t.getComponent=function(e,t,n=!1){let r;return(0,a.eachComponent)(e,((e,n)=>{if(n===t||e.path===t||e.input&&e.key===t)return r=e,!0}),n),r},t.searchComponents=g,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),g(e,t)},t.removeComponent=v,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction&&(0,r.isBoolean)(e.conditional.show)&&!(0,r.isEmpty)(e.conditional.conditions)))},t.parseFloatExt=b,t.formatAsCurrency=function(e){const t=b(e);if(isNaN(t))return"";const n=(0,r.round)(t,2).toString().split(".");return n[0]=(0,r.chunk)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,r.pad)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,r.isPlainObject)(e)){if((0,r.has)(e,t))return(0,r.get)(e,t);let o=null;return(0,r.forOwn)(e,(e=>{const t=n(e);if(!(0,r.isNil)(t))return o=t,!1})),o}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(0,a.eachComponent)(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,r)=>{n.push({key:e.key,property:`value[${r}].label`,string:e.values[r].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},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,o.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){let i=!1;switch(t.op){case"add":{let n=t.component;_(e.components,t.container,null,(function(o){t.container||(o=e),_(e.components,t.key,null,(function(t,r){n=t,v(e.components,r)})),i=!0,(0,r.get)(o,t.path).splice(t.index,0,n)}));break}case"remove":_(e.components,t.key,null,(function(t,n){i=!0,(0,r.get)(e.components,n).key!==t.key&&n.pop(),v(e.components,n)}));break;case"edit":_(e.components,t.key,null,(function(a,s){i=!0;try{const n=(0,r.get)(e.components,s),i=(0,o.applyPatch)(a,t.patches).newDocument;n.key!==i.key&&s.pop(),(0,r.set)(e.components,s,i)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.findComponent=_,t.getEmptyValue=w;const O=e=>{const t="<p> </p>",n="<p><br></p>",r="<p><br> </p>",o=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${r}|${r}$`,"g");return"string"==typeof e?e.replace(o,"").trim():e};function A(e,t){const n=!(!(0,r.isArray)(t)||1!==t.length)&&(0,r.isEqual)(t[0],w(e));return null==t||""===t||(0,r.isArray)(t)&&0===t.length||n}function j(e){const t=[];if(!e)return t;const n=e.match(/({{\s*(.*?)\s*}})/g);return n&&n.forEach((e=>{const n=e.match(/{{\s*item\.(.*?)\s*}}/);n&&n.length>1&&t.push(n[1])})),t}t.isComponentDataEmpty=function e(t,n,o,i){var a;const u=(0,r.isNil)(i)?(0,r.get)(n,o):i;if((e=>"checkbox"===(null==e?void 0:e.type))(t))return A(t,u)||!1===u;if((e=>"address"===(null==e?void 0:e.type))(t))return 0===Object.keys(u).length||!Object.values((0,r.omit)(u,["mode","address"])).some(Boolean);if((e=>"datagrid"===(null==e?void 0:e.type))(t)||(e=>"editgrid"===(null==e?void 0:e.type))(t)||(e=>"datatable"===(null==e?void 0:e.type))(t)||(e=>null!=(null==e?void 0:e.components))(t)){if(null===(a=t.components)||void 0===a?void 0:a.length){let r=!0;return(0,s.eachComponentData)([t],n,((n,o,i,a)=>{t.key!==n.key&&(e(n,o,a)||(r=!1))})),A(t,u)||r}return A(t,u)}if((e=>"datetime"===(null==e?void 0:e.type))(t))return A(t,u)||"Invalid date"===u.toString();if((e=>"selectboxes"===(null==e?void 0:e.type))(t)){let e=!0;for(const t in u)if(u[t]){e=!1;break}return A(t,u)||e}if((e=>"textarea"===(null==e?void 0:e.type))(t)){const e=!t.wysiwyg&&!t.editor;return A(t,e?"string"==typeof u?u.trim():u:function(e){return e?e=Array.isArray(e)?e.map((e=>O(e))):O(e):e}(u))}return(e=>"textfield"===(null==e?void 0:e.type))(t)?t.allowMultipleMasks&&t.inputMasks&&t.inputMasks.length?A(t,u)||(t.multiple?0===u.length:!u.maskName||!u.value):A(t,null==u?void 0:u.toString().trim()):A(t,u)},t.getItemTemplateKeys=j,t.isSelectResourceWithObjectValue=function(e={}){const{reference:t,dataSrc:n,valueProperty:r}=e;return t||"resource"===n&&(!r||"data"===r)},t.compareSelectResourceWithObjectTypeValues=function(e,t,n){if(!e||!(0,r.isPlainObject)(e))return!1;const{template:o,valueProperty:i}=n;return"data"===i&&(e={data:e},t={data:t}),(0,r.every)(j(o)||[],(n=>(0,r.isEqual)((0,r.get)(e,n),(0,r.get)(t,n))))}},84679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.dom=t.Utils=t.unwind=t.override=t.sanitize=t.JSONLogicEvaluator=t.BaseEvaluator=t.Evaluator=void 0;var s=n(70678);Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return s.Evaluator}}),Object.defineProperty(t,"BaseEvaluator",{enumerable:!0,get:function(){return s.BaseEvaluator}});var u=n(79092);Object.defineProperty(t,"JSONLogicEvaluator",{enumerable:!0,get:function(){return u.JSONLogicEvaluator}});var c=n(29688);Object.defineProperty(t,"sanitize",{enumerable:!0,get:function(){return c.sanitize}});var l=n(62243);Object.defineProperty(t,"override",{enumerable:!0,get:function(){return l.override}});var f=n(17690);Object.defineProperty(t,"unwind",{enumerable:!0,get:function(){return f.unwind}}),t.Utils=i(n(96690)),t.dom=i(n(55223)),a(n(10002),t),a(n(49599),t),a(n(715),t),a(n(60554),t),a(n(13778),t)},17112:function(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,r=e.split(".")[n];if("string"!=typeof r)throw new Error("Invalid token specified: missing part #"+(n+1));let o;try{o=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)}}(r)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(o)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},715:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchInputMask=t.getInputMask=void 0;const r=n(2543);t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let r=0;r<e.length;r++)switch(e[r]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[r])}return n},t.matchInputMask=function(e,t){if(!t)return!0;if(e.length>t.length)return!1;for(let n=0;n<t.length;n++){const o=e[n],i=t[n];if(!((0,r.isRegExp)(i)&&i.test(o)||i===o))return!1}return!0}},62243:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.override=void 0,t.override=function(e,t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];if("function"==typeof r)e.prototype[n]=r;else{const t=Object.getOwnPropertyDescriptor(e.prototype,n);for(const e in r)r.hasOwnProperty(e)&&(t[e]=r[e](t[e]));Object.defineProperty(e.prototype,n,t)}}}},29688:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=void 0;const o=r(n(42838));let i=null;t.sanitize=function(e,t){const n=i||(window?(i=(0,o.default)(window),i):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),e;const r={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=>{r.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),n.sanitize(e,r)}},17690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwind=t.rewind=t.mergeArray=t.mergeObject=void 0;const r=n(2543),o=n(60554),i=n(96690);function a(e,t){(0,r.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){const n={};(0,r.each)(e,(function(e,t){Array.isArray(e)||(n[t]=e)}));const o=(0,r.find)(t,n);o?a(e,o):t.push(e)}))}t.mergeObject=a,t.mergeArray=s,t.rewind=function(e){const t={data:{}};return e&&e.length&&e.forEach((e=>a(e.data,t.data))),t},t.unwind=function(e,t){const n={},a={},s=[(0,o.fastCloneDeep)(t)],u=function(e,t,n,i,l){for(i=i||0,l=l||0;(0,r.has)(a,"["+l+"]."+n);)l+1>=s.length&&s.push((0,o.fastCloneDeep)(s[l])),l++;const f=n.replace(/\.[^\.]+$/,"");!(0,r.has)(s[l].data,f)&&s[l-1]&&(0,r.has)(s[l-1].data,f)&&(0,r.set)(s[l].data,f,(0,o.fastCloneDeep)((0,r.get)(s[l-1].data,f)));const p=[];(0,r.set)(s[l].data,n,p),(0,r.set)(a,"["+l+"]."+n,!0);for(let r=i;r<t.length;r++){if(!(r-i<=e.max)){u(e,t,n,r,l);break}p.push(t[r]),e.paths&&Object.keys(e.paths).length&&c(e.paths,t[r],n+"["+(r-i)+"]",l)}},c=function(e,t,n,r){for(const o in e){const i=e[o];t[o]&&Array.isArray(t[o])&&u(i,t[o],n?n+"."+o:o,0,r)}},l=function(e,t,n,r){const o=t[n=n||0].match(/([^\[]+)\[?([0-9]+)?\]?/);if(o&&3===o.length){const i=o[1],a=parseInt(o[2],10)||0;e[i]?a>e[i].max&&(e[i].max=a):e[i]={max:a,param:i,parent:r||null,paths:{}},n+1<t.length&&l(e[i].paths,t,n+1,e[i])}};return(0,i.eachComponent)(e.components,(function(e,t){var o;if("form"===e.type&&(null===(o=e.components)||void 0===o?void 0:o.length)&&(0,i.eachComponent)(e.components,(e=>{e.isInsideNestedForm=!0})),!e.overlay||!e.overlay.width&&!e.overlay.height)return;const a=e.properties&&e.properties.dataPath;let s=e.key;a&&(t=e.properties.dataPath,s=e.properties.dataPath);const u=(0,r.filter)(t.replace(new RegExp(".?"+e.key+"$"),"").split("."));a||!u.length||e.isInsideNestedForm||(s=u.join(".")+"."+e.key),e.multiple&&u.push(e.key),e.key=s,u&&u.length&&l(n,u)}),!0),c(n,t.data),s}},10002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetEphermalState=t.attachResourceToDom=t.registerEphermalState=t.unescapeHTML=t.boolValue=t.escapeRegExCharacters=void 0;const r=n(2543);t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.boolValue=function(e){return(0,r.isBoolean)(e)?e:(0,r.isString)(e)?"true"===e.toLowerCase():!!e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.registerEphermalState=function(e,t,n){e.ephermalState||Object.defineProperty(e,"ephermalState",{enumerable:!1,configurable:!0,writable:!0,value:{}}),Object.defineProperty(e.ephermalState,t,{enumerable:!1,writable:!1,configurable:!0,value:n})},t.attachResourceToDom=function(e){const{name:t,formio:n,onload:r,rootElement:o}=e;let{src:i}=e;i=Array.isArray(i)?i:[i],i.forEach((e=>{let i={},a="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":a="script",i={src:e.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":a="link",i={href:e.src,rel:"stylesheet"}}const s=document.createElement(a);if(s.setAttribute)for(const e in i)s.setAttribute(e,i[e]);if(r&&s.addEventListener("load",(()=>{n.libraries[t].loaded=!0,r(n.libraries[t].ready)})),o)return void o.insertAdjacentElement("afterend",s);const{head:u}=document;u&&u.appendChild(s)}))},t.resetEphermalState=function(e){e.ephermalState&&delete e.ephermalState}},24715:function(e,t,n){var r,o;r=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,n)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},u.apply(this,arguments)}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),l=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var n=s(l);function l(){var t;return e(this,l),(t=n.call(this)).listeners||c.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(a(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return r(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(c),f=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var n=e;if(void 0===n)if("undefined"==typeof document)(n=new Error("This operation was aborted")).name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(e){(n=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(f.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,o=void 0===r?n.Request:r,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!p({fetch:n,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||s)&&((u=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new o(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=o.prototype);var c=n;return{fetch:function(e,t){var n=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(e){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var o=new Promise((function(e,t){n.addEventListener("abort",(function(){return t(r)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:u}}(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:f}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n.g)},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},81018:function(e,t){t.defaults={},t.set=function(e,n,r){var o=r||{},i=t.defaults,a=o.expires||i.expires,s=o.domain||i.domain,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(s?";domain="+s:"")+(u?";path="+u:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+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(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},74353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var _="$isDayjsObject",w=function(e){return e instanceof E||!(!e||!e[_])},O=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(v=o),o||!r&&v},A=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},j=g;j.l=O,j.i=w,j.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(j.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},y.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()},y.$utils=function(){return j},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=A(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return A(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<A(e)},y.$g=function(e,t,n){return j.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!j.u(t)||t,p=j.p(e),d=function(e,t){var r=j.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return j.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case l:return c?d(1,0):d(31,11);case u:return c?d(1,y):d(0,y+1);case s:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return d(c?g-_:g+(6-_),y);case a:case f:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var s,c=j.p(e),p="set"+(this.$u?"UTC":""),d=(s={},s[a]=p+"Date",s[f]=p+"Date",s[u]=p+"Month",s[l]=p+"FullYear",s[i]=p+"Hours",s[o]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var m=this.clone().set(f,1);m.$d[d](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[j.p(e)]()},y.add=function(n,c){var f,p=this;n=Number(n);var d=j.p(c),h=function(e){var t=A(p);return j.w(t.date(t.date()+Math.round(e*n)),p)};if(d===u)return this.set(u,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return h(1);if(d===s)return h(7);var m=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[d]||1,y=this.$d.getTime()+n*m;return j.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=j.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return j.s(i%12||12,e,"0")},m=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return j.s(t.$y,4,"0");case"M":return s+1;case"MM":return j.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return j.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return j.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return j.s(a,2,"0");case"s":return String(t.$s);case"ss":return j.s(t.$s,2,"0");case"SSS":return j.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,p){var d,h=this,m=j.p(f),y=A(n),g=(y.utcOffset()-this.utcOffset())*e,v=this-y,b=function(){return j.m(h,y)};switch(m){case l:d=b()/12;break;case u:d=b();break;case c:d=b()/3;break;case s:d=(v-g)/6048e5;break;case a:d=(v-g)/864e5;break;case i:d=v/t;break;case o:d=v/e;break;case r:d=v/1e3;break;default:d=v}return p?d:j.a(d)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return j.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),P=E.prototype;return A.prototype=P,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,E,A),e.$i=!0),A},A.locale=O,A.isDayjs=w,A.unix=function(e){return A(1e3*e)},A.en=b[v],A.Ls=b,A.p={},A}()},90445:function(e){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},u=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=f(e,!1)}],a:[i,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[r,u("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,u("week")],ww:[r,u("week")],M:[o,u("month")],MM:[r,u("month")],MMM:[i,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function d(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,u=0;u<s;u+=1){var c=i[u],l=p[c],f=l&&l[0],d=l&&l[1];i[u]=d?{regex:f,parser:d}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,u=o.parser,c=e.slice(r),l=a.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var u=!0===i[2],c=!0===i[3],l=u||c,f=i[2];c&&(f=i[2]),a=this.$locale(),!u&&f&&(a=n.Ls[f]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=d(t)(e),i=o.year,a=o.month,s=o.day,u=o.hours,c=o.minutes,l=o.seconds,f=o.milliseconds,p=o.zone,h=o.week,m=new Date,y=s||(i||a?1:m.getDate()),g=i||m.getFullYear(),v=0;i&&!a||(v=a>0?a-1:m.getMonth());var b,_=u||0,w=c||0,O=l||0,A=f||0;return p?new Date(Date.UTC(g,v,y,_,w,O,A+60*p.offset*1e3)):n?new Date(Date.UTC(g,v,y,_,w,O,A)):(b=new Date(g,v,y,_,w,O,A),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){i[1]=s[h-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},88569:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,o){var i,a=function(e,n,r){void 0===r&&(r={});var o=new Date(e),i=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=e+"|"+r,i=t[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[o]=i),i}(n,r);return i.formatToParts(o)},s=function(t,n){for(var r=a(t,n),i=[],s=0;s<r.length;s+=1){var u=r[s],c=u.type,l=u.value,f=e[c];f>=0&&(i[f]=parseInt(l,10))}var p=i[3],d=24===p?0:p,h=i[0]+"-"+i[1]+"-"+i[2]+" "+d+":"+i[4]+":"+i[5]+":000",m=+t;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},u=r.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n,r=this.utcOffset(),a=this.toDate(),s=a.toLocaleString("en-US",{timeZone:e}),u=Math.round((a-new Date(s))/1e3/60),c=15*-Math.round(a.getTimezoneOffset()/15)-u;if(Number(c)){if(n=o(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var l=n.utcOffset();n=n.add(r-l,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),u,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}}}()},83826:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.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 u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),o=i(e).local();return p.call(r,o,t,n)}}}()},42838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const l=A(Array.prototype.forEach),f=A(Array.prototype.pop),p=A(Array.prototype.push),d=A(String.prototype.toLowerCase),h=A(String.prototype.toString),m=A(String.prototype.match),y=A(String.prototype.replace),g=A(String.prototype.indexOf),v=A(String.prototype.trim),b=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),w=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(O,t)});var O;function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function j(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function P(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=P(o):n[r]=o);return n}function T(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=r(e)}return function(){return null}}const x=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),I=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),M=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=a(/<%[\w\W]*|[\w\W]*%>/gm),z=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),q=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:F,TMPLIT_EXPR:z,DATA_ATTR:B,ARIA_ATTR:q,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:Y,DOCTYPE_NAME:G,CUSTOM_ELEMENT:V});const Z=1,K=3,X=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 r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:o}=n;const a=o,u=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:O,Node:A,Element:E,NodeFilter:L,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:z,DOMParser:B,trustedTypes:q}=n,H=E.prototype,Y=T(H,"cloneNode"),V=T(H,"remove"),ne=T(H,"nextSibling"),re=T(H,"childNodes"),oe=T(H,"parentNode");if("function"==typeof O){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:se,createNodeIterator:ue,createDocumentFragment:ce,getElementsByTagName:le}=o,{importNode:fe}=a;let pe={};r.isSupported="function"==typeof e&&"function"==typeof oe&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:he,TMPLIT_EXPR:me,DATA_ATTR:ye,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:_e}=J;let{IS_ALLOWED_URI:we}=J,Oe=null;const Ae=j({},[...x,...S,...k,...R,...U]);let je=null;const Ee=j({},[...I,...M,...$,...N]);let Pe=Object.seal(s(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}})),Te=null,xe=null,Se=!0,ke=!0,Ce=!1,Re=!0,De=!1,Ue=!0,Ie=!1,Me=!1,$e=!1,Ne=!1,Le=!1,Fe=!1,ze=!0,Be=!1,qe=!0,We=!1,He={},Ye=null;const Ge=j({},["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 Ve=null;const Je=j({},["audio","video","img","source","image","track"]);let Ze=null;const Ke=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const ot=j({},[Xe,Qe,et],h);let it=null;const at=["application/xhtml+xml","text/html"];let st=null,ut=null;const ct=o.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ut||ut!==e){if(e&&"object"==typeof e||(e={}),e=P(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?h:d,Oe=b(e,"ALLOWED_TAGS")?j({},e.ALLOWED_TAGS,st):Ae,je=b(e,"ALLOWED_ATTR")?j({},e.ALLOWED_ATTR,st):Ee,rt=b(e,"ALLOWED_NAMESPACES")?j({},e.ALLOWED_NAMESPACES,h):ot,Ze=b(e,"ADD_URI_SAFE_ATTR")?j(P(Ke),e.ADD_URI_SAFE_ATTR,st):Ke,Ve=b(e,"ADD_DATA_URI_TAGS")?j(P(Je),e.ADD_DATA_URI_TAGS,st):Je,Ye=b(e,"FORBID_CONTENTS")?j({},e.FORBID_CONTENTS,st):Ge,Te=b(e,"FORBID_TAGS")?j({},e.FORBID_TAGS,st):{},xe=b(e,"FORBID_ATTR")?j({},e.FORBID_ATTR,st):{},He=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,$e=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||W,tt=e.NAMESPACE||et,Pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(ke=!1),Le&&(Ne=!0),He&&(Oe=j({},U),je=[],!0===He.html&&(j(Oe,x),j(je,I)),!0===He.svg&&(j(Oe,S),j(je,M),j(je,N)),!0===He.svgFilters&&(j(Oe,k),j(je,M),j(je,N)),!0===He.mathMl&&(j(Oe,R),j(je,$),j(je,N))),e.ADD_TAGS&&(Oe===Ae&&(Oe=P(Oe)),j(Oe,e.ADD_TAGS,st)),e.ADD_ATTR&&(je===Ee&&(je=P(je)),j(je,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&j(Ze,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ye===Ge&&(Ye=P(Ye)),j(Ye,e.FORBID_CONTENTS,st)),qe&&(Oe["#text"]=!0),Ie&&j(Oe,["html","head","body"]),Oe.table&&(j(Oe,["tbody"]),delete Te.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.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(q,u)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),ut=e}},pt=j({},["mi","mo","mn","ms","mtext"]),dt=j({},["foreignobject","annotation-xml"]),ht=j({},["title","style","font","a","script"]),mt=j({},[...S,...k,...C]),yt=j({},[...R,...D]),gt=function(e){p(r.removed,{element:e});try{oe(e).removeChild(e)}catch(t){V(e)}},vt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Ne||Le)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if($e)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new B).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},_t=function(e){return ue.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(e){return"function"==typeof A&&e instanceof A},At=function(e,t,n){pe[e]&&l(pe[e],(e=>{e.call(r,t,n,ut)}))},jt=function(e){let t=null;if(At("beforeSanitizeElements",e,null),wt(e))return gt(e),!0;const n=st(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:Oe}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return gt(e),!0;if(e.nodeType===X)return gt(e),!0;if(Ue&&e.nodeType===Q&&_(/<[/\w]/g,e.data))return gt(e),!0;if(!Oe[n]||Te[n]){if(!Te[n]&&Pt(n)){if(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,n))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))return!1}if(qe&&!Ye[n]){const t=oe(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=Y(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return gt(e),!0}return e instanceof E&&!function(e){let t=oe(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=d(e.tagName),r=d(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(mt[n]):e.namespaceURI===Xe?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&dt[r]:Boolean(yt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!dt[r])&&!(t.namespaceURI===Xe&&!pt[r])&&!yt[n]&&(ht[n]||!mt[n]):!("application/xhtml+xml"!==it||!rt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===K&&(t=e.textContent,l([de,he,me],(e=>{t=y(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(gt(e),!0)},Et=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(ke&&!xe[t]&&_(ye,t));else if(Se&&_(ge,t));else if(!je[t]||xe[t]){if(!(Pt(e)&&(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&_(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||"is"===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,n)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))))return!1}else if(Ze[t]);else if(_(we,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!Ve[e])if(Ce&&!_(ve,y(n,be,"")));else if(n)return!1;return!0},Pt=function(e){return"annotation-xml"!==e&&m(e,_e)},Tt=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:u}=i,c=st(a);let p="value"===a?u:v(u);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),p=n.attrValue,Ue&&_(/((--!?|])>)|<\/(style|title)/i,p)){vt(a,e);continue}if(n.forceKeepAttr)continue;if(vt(a,e),!n.keepAttr)continue;if(!Re&&_(/\/>/i,p)){vt(a,e);continue}De&&l([de,he,me],(e=>{p=y(p,e," ")}));const d=st(e.nodeName);if(Et(d,c,p)){if(!Be||"id"!==c&&"name"!==c||(vt(a,e),p="user-content-"+p),ie&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(s);else switch(q.getAttributeType(d,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),wt(e)?gt(e):f(r.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},xt=function e(t){let n=null;const r=_t(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),jt(n)||(n.content instanceof c&&e(n.content),Tt(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(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(!r.isSupported)return e;if(Me||ft(t),r.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=st(e.nodeName);if(!Oe[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=bt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Z&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ne&&!De&&!Ie&&-1===e.indexOf("<"))return ie&&Fe?ie.createHTML(e):e;if(n=bt(e),!n)return Ne?null:Fe?ae:""}n&&$e&>(n.firstChild);const u=_t(We?e:n);for(;i=u.nextNode();)jt(i)||(i.content instanceof c&&xt(i.content),Tt(i));if(We)return e;if(Ne){if(Le)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(je.shadowroot||je.shadowrootmode)&&(s=fe.call(a,s,!0)),s}let f=Ie?n.outerHTML:n.innerHTML;return Ie&&Oe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(G,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),De&&l([de,he,me],(e=>{f=y(f,e," ")})),ie&&Fe?ie.createHTML(f):f},r.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},r.clearConfig=function(){ut=null,Me=!1},r.isValidAttribute=function(e,t,n){ut||ft({});const r=st(e),o=st(t);return Et(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return f(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},42681:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function p(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 d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(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 y(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=g(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:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=y(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?y(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(v)}),this.text=function(){var e,t,r,o=y(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[p(e)]},m.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},m.prototype.set=function(e,t){this.map[p(e)]=d(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function j(e,t){if(!(this instanceof j))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)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},j.error=function(){var e=new j(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];j.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new j(null,{status:t,headers:{location:e}})},t.DOMException=o.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 P(e,i){return new n((function(n,a){var u=new O(e,i);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.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(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new j(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":c&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof m?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}P.polyfill=!0,o.fetch||(o.fetch=P,o.Headers=m,o.Request=O,o.Response=j),t.Headers=m,t.Request=O,t.Response=j,t.fetch=P,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},18678:function(e,t,n){var r,o;r=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:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};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,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,s,u,c=e.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o<l.length-1;o+=2)if(e.truthy(e.apply(l[o],r)))return e.apply(l[o+1],r);return l.length===o+1?e.apply(l[o],r):null}if("and"===c){for(o=0;o<l.length;o+=1)if(i=e.apply(l[o],r),!e.truthy(i))return i;return i}if("or"===c){for(o=0;o<l.length;o+=1)if(i=e.apply(l[o],r),e.truthy(i))return i;return i}if("filter"===c)return s=e.apply(l[0],r),a=l[1],Array.isArray(s)?s.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===c)return s=e.apply(l[0],r),a=l[1],Array.isArray(s)?s.map((function(t){return e.apply(a,t)})):[];if("reduce"===c)return s=e.apply(l[0],r),a=l[1],u=void 0!==l[2]?e.apply(l[2],r):null,Array.isArray(s)?s.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),u):u;if("all"===c){if(s=e.apply(l[0],r),a=l[1],!Array.isArray(s)||!s.length)return!1;for(o=0;o<s.length;o+=1)if(!e.truthy(e.apply(a,s[o])))return!1;return!0}if("none"===c){if(s=e.apply(l[0],r),a=l[1],!Array.isArray(s)||!s.length)return!0;for(o=0;o<s.length;o+=1)if(e.truthy(e.apply(a,s[o])))return!1;return!0}if("some"===c){if(s=e.apply(l[0],r),a=l[1],!Array.isArray(s)||!s.length)return!1;for(o=0;o<s.length;o+=1)if(e.truthy(e.apply(a,s[o])))return!0;return!1}if(l=l.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(r,l);if(c.indexOf(".")>0){var f=String(c).split("."),p=t;for(o=0;o<f.length;o++){if(!p.hasOwnProperty(f[o]))throw new Error("Unrecognized operation "+c+" (failed at "+f.slice(0,o+1).join(".")+")");p=p[f[o]]}return p.apply(r,l)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},51873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},34932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},61074:function(e){e.exports=function(e){return e.split("")}},2523:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},72552:function(e,t,n){var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},96131:function(e,t,n){var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},85463:function(e){e.exports=function(e){return e!=e}},25160:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},77556:function(e,t,n){var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:function(e,t,n){var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},28754:function(e,t,n){var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},23875:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},28380:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},34840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659:function(e,t,n){var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},49698:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,n){var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76959:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},63912:function(e,t,n){var r=n(61074),o=n(49698),i=n(42054);e.exports=function(e){return o(e)?i(e):r(e)}},31800:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},42054:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");e.exports=function(e){return e.match(p)||[]}},56449:function(e){var t=Array.isArray;e.exports=t},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",v="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",O="[object Map]",A="[object Number]",j="[object Object]",E="[object Promise]",P="[object RegExp]",T="[object Set]",x="[object String]",S="[object Symbol]",k="[object WeakMap]",C="[object ArrayBuffer]",R="[object DataView]",D="[object Float32Array]",U="[object Float64Array]",I="[object Int8Array]",M="[object Int16Array]",$="[object Int32Array]",N="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",z="[object Uint32Array]",B=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(H.source),V=RegExp(Y.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Te="\\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",xe="["+we+"]",Se="["+Te+"]",ke="["+Oe+"]",Ce="\\d+",Re="["+Ae+"]",De="["+je+"]",Ue="[^"+we+Te+Ce+Ae+je+Ee+"]",Ie="\\ud83c[\\udffb-\\udfff]",Me="[^"+we+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ee+"]",Fe="\\u200d",ze="(?:"+De+"|"+Ue+")",Be="(?:"+Le+"|"+Ue+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+ke+"|"+Ie+")?",Ye="["+Pe+"]?",Ge=Ye+He+"(?:"+Fe+"(?:"+[Me,$e,Ne].join("|")+")"+Ye+He+")*",Ve="(?:"+[Re,$e,Ne].join("|")+")"+Ge,Je="(?:"+[Me+ke+"?",ke,$e,Ne,xe].join("|")+")",Ze=RegExp("['’]","g"),Ke=RegExp(ke,"g"),Xe=RegExp(Ie+"(?="+Ie+")|"+Je+Ge,"g"),Qe=RegExp([Le+"?"+De+"+"+qe+"(?="+[Se,Le,"$"].join("|")+")",Be+"+"+We+"(?="+[Se,Le+ze,"$"].join("|")+")",Le+"?"+ze+"+"+qe,Le+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Ve].join("|"),"g"),et=RegExp("["+Fe+we+Oe+Pe+"]"),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"],rt=-1,ot={};ot[D]=ot[U]=ot[I]=ot[M]=ot[$]=ot[N]=ot[L]=ot[F]=ot[z]=!0,ot[m]=ot[y]=ot[C]=ot[g]=ot[R]=ot[v]=ot[b]=ot[_]=ot[O]=ot[A]=ot[j]=ot[P]=ot[T]=ot[x]=ot[k]=!1;var it={};it[m]=it[y]=it[C]=it[R]=it[g]=it[v]=it[D]=it[U]=it[I]=it[M]=it[$]=it[O]=it[A]=it[j]=it[P]=it[T]=it[x]=it[S]=it[N]=it[L]=it[F]=it[z]=!0,it[b]=it[_]=it[k]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&&ct.process,yt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,bt=yt&&yt.isMap,_t=yt&&yt.isRegExp,wt=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function At(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 jt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function St(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function kt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Dt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ut(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Mt=qt("length");function $t(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,zt,n)}function Ft(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zt(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function qt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Jt(e){return function(t){return e(t)}}function Zt(e,t){return Ct(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=Wt({À:"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=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function ln(e){return rn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):Mt(e)}function fn(e){return rn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,we=t.Error,Oe=t.Function,Ae=t.Math,je=t.Object,Ee=t.RegExp,Pe=t.String,Te=t.TypeError,xe=r.prototype,Se=Oe.prototype,ke=je.prototype,Ce=t["__core-js_shared__"],Re=Se.toString,De=ke.hasOwnProperty,Ue=0,Ie=(n=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=ke.toString,$e=Re.call(je),Ne=ft._,Le=Ee("^"+Re.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=ht?t.Buffer:o,ze=t.Symbol,Be=t.Uint8Array,qe=Fe?Fe.allocUnsafe:o,We=an(je.getPrototypeOf,je),He=je.create,Ye=ke.propertyIsEnumerable,Ge=xe.splice,Ve=ze?ze.isConcatSpreadable:o,Je=ze?ze.iterator:o,Xe=ze?ze.toStringTag:o,et=function(){try{var e=ci(je,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Ae.ceil,dt=Ae.floor,mt=je.getOwnPropertySymbols,yt=Fe?Fe.isBuffer:o,Mt=t.isFinite,Wt=xe.join,mn=an(je.keys,je),yn=Ae.max,gn=Ae.min,vn=oe.now,bn=t.parseInt,_n=Ae.random,wn=xe.reverse,On=ci(t,"DataView"),An=ci(t,"Map"),jn=ci(t,"Promise"),En=ci(t,"Set"),Pn=ci(t,"WeakMap"),Tn=ci(je,"create"),xn=Pn&&new Pn,Sn={},kn=$i(On),Cn=$i(An),Rn=$i(jn),Dn=$i(En),Un=$i(Pn),In=ze?ze.prototype:o,Mn=In?In.valueOf:o,$n=In?In.toString:o;function Nn(e){if(es(e)&&!qa(e)&&!(e instanceof Bn)){if(e instanceof zn)return e;if(De.call(e,"__wrapped__"))return Ni(e)}return new zn(e)}var Ln=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Fn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Vn(e,t){var n=qa(e),r=!n&&Ba(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Gt(e.length,Pe):[],u=s.length;for(var c in e)!t&&!De.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,u))||s.push(c);return s}function Jn(e){var t=e.length;return t?e[Hr(0,t-1)]:o}function Zn(e,t){return Ri(To(e),ir(t,0,e.length))}function Kn(e){return Ri(To(e))}function Xn(e,t,n){(n!==o&&!La(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];De.call(e,t)&&La(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(La(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&xo(t,ks(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Es(e,t[n]);return a}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Qa(e))return e;var f=qa(e);if(f){if(s=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),!u)return To(e,s)}else{var p=pi(e),d=p==_||p==w;if(Ga(e))return wo(e,u);if(p==j||p==m||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return xo(e,fi(e),t)}(e,function(e,t){return e&&xo(t,Cs(t),e)}(s,e)):function(e,t){return xo(e,li(e),t)}(e,nr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case C:return Oo(e);case g:case v:return new o(+e);case R:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case U:case I:case M:case $:case N:case L:case F:case z:return Ao(e,n);case O:return new o;case A:case x:return new o(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new o;case S:return r=e,Mn?je(Mn.call(r)):{}}}(e,p,u)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),is(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,o){s.set(o,ar(r,t,n,o,e,a))}));var y=f?o:(l?c?ni:ti:c?Cs:ks)(e);return Et(y||e,(function(r,o){y&&(r=e[o=r]),Qn(s,o,ar(r,t,n,o,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=je(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Te(i);return xi((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=St,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Ct(t,Jt(n))),r?(i=kt,a=!1):t.length>=200&&(i=Kt,a=!1,t=new Yn(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Nn.templateSettings={escape:J,evaluate:Z,interpolate:K,variable:"",imports:{_:Nn}},Nn.prototype=Fn.prototype,Nn.prototype.constructor=Nn,zn.prototype=Ln(Fn.prototype),zn.prototype.constructor=zn,Bn.prototype=Ln(Fn.prototype),Bn.prototype.constructor=Bn,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return De.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:De.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(An||Wn),string:new qn}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!An||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var lr=Co(vr),fr=Co(br,!0);function pr(e,t){var n=!0;return lr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var yr=Ro(),gr=Ro(!0);function vr(e,t){return e&&yr(e,t,ks)}function br(e,t){return e&&gr(e,t,ks)}function _r(e,t){return xt(t,(function(t){return Za(e[t])}))}function wr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Mi(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return qa(e)?r:Rt(r,n(e))}function Ar(e){return null==e?e===o?"[object Undefined]":"[object Null]":Xe&&Xe in je(e)?function(e){var t=De.call(e,Xe),n=e[Xe];try{e[Xe]=o;var r=!0}catch(e){}var i=Me.call(e);return r&&(t?e[Xe]=n:delete e[Xe]),i}(e):function(e){return Me.call(e)}(e)}function jr(e,t){return e>t}function Er(e,t){return null!=e&&De.call(e,t)}function Pr(e,t){return null!=e&&t in je(e)}function Tr(e,t,n){for(var i=n?kt:St,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ct(p,Jt(t))),l=gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Yn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var m=p[d],y=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,y):i(f,y,n))){for(u=s;--u;){var g=c[u];if(!(g?Kt(g,y):i(e[u],y,n)))continue e}h&&h.push(y),f.push(m)}}return f}function xr(e,t,n){var r=null==(e=Ei(e,t=go(t,e)))?e:e[Mi(Ji(t))];return null==r?o:At(r,e,n)}function Sr(e){return es(e)&&Ar(e)==m}function kr(e,t,n,r,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=qa(e),u=qa(t),c=s?y:pi(e),l=u?y:pi(t),f=(c=c==m?j:c)==j,p=(l=l==m?j:l)==j,d=c==l;if(d&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Gn),s||us(e)?Qo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case g:case v:case A:return La(+e,+t);case b:return e.name==t.name&&e.message==t.message;case P:case x:return e==t+"";case O:var s=on;case T:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Qo(s(e),s(t),r,o,i,a);return a.delete(e),l;case S:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=f&&De.call(e,"__wrapped__"),_=p&&De.call(t,"__wrapped__");if(h||_){var w=h?e.value():e,E=_?t.value():t;return a||(a=new Gn),i(w,E,n,r,a)}}return!!d&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,u=ti(e),c=u.length;if(c!=ti(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:De.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var y=e[f=u[l]],g=t[f];if(r)var v=s?r(g,y,f,t,e,a):r(y,g,f,e,t,a);if(!(v===o?y===g||i(y,g,n,r,a):v)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,kr,i))}function Cr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=je(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Gn;if(r)var d=r(l,f,c,e,t,p);if(!(d===o?kr(f,l,3,r,p):d))return!1}}return!0}function Rr(e){return!(!Qa(e)||(t=e,Ie&&Ie in t))&&(Za(e)?Le:me).test($i(e));var t}function Dr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?qa(e)?Nr(e[0],e[1]):$r(e):fu(e)}function Ur(e){if(!wi(e))return mn(e);var t=[];for(var n in je(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ir(e,t){return e<t}function Mr(e,t){var n=-1,o=Ha(e)?r(e.length):[];return lr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function $r(e){var t=ui(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Nr(e,t){return vi(e)&&Oi(t)?Ai(Mi(e),t):function(n){var r=Es(n,e);return r===o&&r===t?Ps(n,e):kr(t,r,3)}}function Lr(e,t,n,r,i){e!==t&&yr(t,(function(a,s){if(i||(i=new Gn),Qa(a))!function(e,t,n,r,i,a,s){var u=Pi(e,n),c=Pi(t,n),l=s.get(c);if(l)Xn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):o,p=f===o;if(p){var d=qa(c),h=!d&&Ga(c),m=!d&&!h&&us(c);f=c,d||h||m?qa(u)?f=u:Ya(u)?f=To(u):h?(p=!1,f=wo(c,!0)):m?(p=!1,f=Ao(c,!0)):f=[]:rs(c)||Ba(c)?(f=u,Ba(u)?f=ys(u):Qa(u)&&!Za(u)||(f=hi(c))):p=!1}p&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),Xn(e,n,f)}}(e,t,s,n,Lr,r,i);else{var u=r?r(Pi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Xn(e,s,u)}}),Cs)}function Fr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:o}function zr(e,t,n){t=t.length?Ct(t,(function(e){return qa(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=Ct(t,Jt(ai()));var o=Mr(e,(function(e,n,o){var i=Ct(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=jo(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Zr(i,go(a,e),s)}return i}function qr(e,t,n,r){var o=r?Ft:Lt,i=-1,a=t.length,s=e;for(e===t&&(t=To(t)),n&&(s=Ct(e,Jt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hr(e,t){return e+dt(_n()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Si(ji(e,t,nu),e+"")}function Vr(e){return Jn(Ls(e))}function Jr(e,t){var n=Ls(e);return Ri(n,ir(t,0,n.length))}function Zr(e,t,n,r){if(!Qa(e))return e;for(var i=-1,a=(t=go(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Mi(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Qa(f)?f:yi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Kr=xn?function(e,t){return xn.set(e,t),e}:nu,Xr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:nu;function Qr(e){return Ri(Ls(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var n;return lr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===o;i<a;){var f=dt((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,y=ss(p);if(s)var g=r||m;else g=l?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);g?i=f+1:a=f}return gn(a,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!La(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:ss(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(qa(e))return Ct(e,ao)+"";if(ss(e))return $n?$n.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=St,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=kt;else if(i>=200){var c=t?null:Go(e);if(c)return un(c);a=!1,o=Kt,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function uo(e,t){return null==(e=Ei(e,t=go(t,e)))||delete e[Mi(Ji(t))]}function co(e,t,n,r){return Zr(e,t,n(wr(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||s,e[u],t,n));return so(mr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Ya(e)?e:[]}function yo(e){return"function"==typeof e?e:nu}function go(e,t){return qa(e)?e:vi(e,t)?[e]:Ii(gs(e))}var vo=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var _o=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function Ao(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ss(e),s=t!==o,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Eo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=yn(a-s,0),f=r(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function Po(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=yn(a-u,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||i<a)&&(p[h+n[s]]=e[i++]);return p}function To(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function xo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?rr(n,u,c):Qn(n,u,c)}return n}function So(e,t){return function(n,r){var o=qa(n)?jt:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function ko(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&gi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=je(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Co(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=je(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=je(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Do(e){return function(t){var n=rn(t=gs(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Uo(e){return function(t){return Dt(Zs(Bs(t).replace(Ze,"")),e,"")}}function Io(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ln(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Mo(e){return function(t,n,r){var i=je(t);if(!Ha(t)){var a=ai(n,3);t=ks(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function $o(e){return ei((function(t){var n=t.length,r=n,a=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(i);if(a&&!u&&"wrapper"==oi(s))var u=new zn([],!0)}for(r=u?r:n;++r<n;){var c=oi(s=t[r]),l="wrapper"==c?ri(s):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==s.length&&bi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function No(e,t,n,i,a,s,u,l,f,p){var d=t&c,h=1&t,m=2&t,y=24&t,g=512&t,v=m?o:Io(e);return function c(){for(var b=arguments.length,_=r(b),w=b;w--;)_[w]=arguments[w];if(y)var O=ii(c),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,O);if(i&&(_=Eo(_,i,a,y)),s&&(_=Po(_,s,u,y)),b-=A,y&&b<p){var j=sn(_,O);return Ho(e,t,No,c.placeholder,n,_,j,l,f,p-b)}var E=h?n:this,P=m?E[e]:e;return b=_.length,l?_=function(e,t){for(var n=e.length,r=gn(t.length,n),i=To(e);r--;){var a=t[r];e[r]=yi(a,n)?i[a]:o}return e}(_,l):g&&b>1&&_.reverse(),d&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(P=v||Io(P)),P.apply(E,_)}}function Lo(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Fo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function zo(e){return ei((function(t){return t=Ct(t,Jt(ai())),Gr((function(n){var r=this;return e(t,(function(e){return At(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,pt(e/ln(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&gi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=yn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Ho(e,t,n,r,i,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],h=n.apply(o,d);return bi(e)&&Ti(h,d),h.placeholder=r,ki(h,e,t)}function Yo(e){var t=Ae[e];return function(e,n){if(e=ms(e),(n=null==n?0:gn(ds(n),292))&&Mt(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=En&&1/un(new En([,-0]))[1]==l?function(e){return new En(e)}:su;function Vo(e){return function(t){var n=pi(t);return n==O?on(t):n==T?cn(t):function(e,t){return Ct(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Te(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:yn(ds(p),0),d=d===o?d:ds(d),m-=l?l.length:0,64&t){var y=a,g=l;a=l=o}var v=h?o:ri(e),b=[e,t,n,a,l,y,g,f,p,d];if(v&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Eo(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Po(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,v),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:yn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var i=Io(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ii(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=f.length)<n?Ho(e,t,No,a.placeholder,o,u,f,o,o,n-s):At(this&&this!==ft&&this instanceof a?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?No.apply(o,b):function(e,t,n,o){var i=1&t,a=Io(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++s];return At(p,i?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Io(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ki((v?Kr:Ti)(_,b),e,t)}function Zo(e,t,n,r){return e===o||La(e,ke[n])&&!De.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Lr(e,t,o,Ko,a),a.delete(t)),e}function Xo(e){return rs(e)?o:e}function Qo(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<u;){var m=e[p],y=t[p];if(r)var g=s?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(g!==o){if(g)continue;d=!1;break}if(h){if(!It(t,(function(e,t){if(!Kt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!i(m,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Si(ji(e,o,Wi),e+"")}function ti(e){return Or(e,ks,li)}function ni(e){return Or(e,Cs,fi)}var ri=xn?function(e){return xn.get(e)}:su;function oi(e){for(var t=e.name+"",n=Sn[t],r=De.call(Sn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(De.call(Nn,"placeholder")?Nn:e).placeholder}function ai(){var e=Nn.iteratee||ru;return e=e===ru?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var li=mt?function(e){return null==e?[]:(e=je(e),xt(mt(e),(function(t){return Ye.call(e,t)})))}:hu,fi=mt?function(e){for(var t=[];e;)Rt(t,li(e)),e=We(e);return t}:hu,pi=Ar;function di(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Mi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&yi(a,o)&&(qa(e)||Ba(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Ln(We(e))}function mi(e){return qa(e)||Ba(e)||!!(Ve&&e&&e[Ve])}function yi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&yi(t,n.length):"string"==r&&t in n)&&La(n[t],e)}function vi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||Q.test(e)||!X.test(e)||null!=t&&e in je(t)}function bi(e){var t=oi(e),n=Nn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(On&&pi(new On(new ArrayBuffer(1)))!=R||An&&pi(new An)!=O||jn&&pi(jn.resolve())!=E||En&&pi(new En)!=T||Pn&&pi(new Pn)!=k)&&(pi=function(e){var t=Ar(e),n=t==j?e.constructor:o,r=n?$i(n):"";if(r)switch(r){case kn:return R;case Cn:return O;case Rn:return E;case Dn:return T;case Un:return k}return t});var _i=Ce?Za:mu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function Oi(e){return e==e&&!Qa(e)}function Ai(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in je(n))}}function ji(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),At(e,this,u)}}function Ei(e,t){return t.length<2?e:wr(e,eo(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=Ci(Kr),xi=lt||function(e,t){return ft.setTimeout(e,t)},Si=Ci(Xr);function ki(e,t,n){var r=t+"";return Si(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ci(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Hr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Di,Ui,Ii=(Di=Da((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Ui.size&&Ui.clear(),e})),Ui=Di.cache,Di);function Mi(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $i(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Li=Gr((function(e,t){return Ya(e)?cr(e,mr(t,1,Ya,!0)):[]})),Fi=Gr((function(e,t){var n=Ji(t);return Ya(n)&&(n=o),Ya(e)?cr(e,mr(t,1,Ya,!0),ai(n,2)):[]})),zi=Gr((function(e,t){var n=Ji(t);return Ya(n)&&(n=o),Ya(e)?cr(e,mr(t,1,Ya,!0),o,n):[]}));function Bi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=yn(r+o,0)),Nt(e,ai(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ds(n),i=n<0?yn(r+i,0):gn(i,r-1)),Nt(e,ai(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Yi=Gr((function(e){var t=Ct(e,mo);return t.length&&t[0]===e[0]?Tr(t):[]})),Gi=Gr((function(e){var t=Ji(e),n=Ct(e,mo);return t===Ji(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,ai(t,2)):[]})),Vi=Gr((function(e){var t=Ji(e),n=Ct(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Gr(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Xi=ei((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,Ct(t,(function(e){return yi(e,n)?+e:e})).sort(jo)),r}));function Qi(e){return null==e?e:wn.call(e)}var ea=Gr((function(e){return so(mr(e,1,Ya,!0))})),ta=Gr((function(e){var t=Ji(e);return Ya(t)&&(t=o),so(mr(e,1,Ya,!0),ai(t,2))})),na=Gr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,so(mr(e,1,Ya,!0),o,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Ya(e))return t=yn(e.length,t),!0})),Gt(t,(function(t){return Ct(e,qt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Ct(n,(function(e){return At(t,o,e)}))}var ia=Gr((function(e,t){return Ya(e)?cr(e,t):[]})),aa=Gr((function(e){return po(xt(e,Ya))})),sa=Gr((function(e){var t=Ji(e);return Ya(t)&&(t=o),po(xt(e,Ya),ai(t,2))})),ua=Gr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,po(xt(e,Ya),o,t)})),ca=Gr(ra),la=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oa(e,n)}));function fa(e){var t=Nn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ha=So((function(e,t,n){De.call(e,n)?++e[n]:rr(e,n,1)})),ma=Mo(Bi),ya=Mo(qi);function ga(e,t){return(qa(e)?Et:lr)(e,ai(t,3))}function va(e,t){return(qa(e)?Pt:fr)(e,ai(t,3))}var ba=So((function(e,t,n){De.call(e,n)?e[n].push(t):rr(e,n,[t])})),_a=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return lr(e,(function(e){a[++o]=i?At(t,e,n):xr(e,t,n)})),a})),wa=So((function(e,t,n){rr(e,n,t)}));function Oa(e,t){return(qa(e)?Ct:Mr)(e,ai(t,3))}var Aa=So((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ja=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,mr(t,1),[])})),Ea=ct||function(){return ft.Date.now()};function Pa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,c,o,o,o,o,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var xa=Gr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(xa));r|=u}return Jo(e,r,t,n,o)})),Sa=Gr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ii(Sa));r|=u}return Jo(t,r,e,n,o)}));function ka(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Te(i);function m(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function y(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=s}function g(){var e=Ea();if(y(e))return v(e);c=xi(g,function(e){var n=t-(e-l);return d?gn(n,s-(e-f)):n}(e))}function v(e){return c=o,h&&r?m(e):(r=a=o,u)}function b(){var e=Ea(),n=y(e);if(r=arguments,a=this,l=e,n){if(c===o)return function(e){return f=e,c=xi(g,t),p?m(e):u}(l);if(d)return _o(c),c=xi(g,t),m(l)}return c===o&&(c=xi(g,t)),u}return t=ms(t)||0,Qa(n)&&(p=!!n.leading,s=(d="maxWait"in n)?yn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&_o(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:v(Ea())},b}var Ca=Gr((function(e,t){return ur(e,1,t)})),Ra=Gr((function(e,t,n){return ur(e,ms(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Hn),n}function Ua(e){if("function"!=typeof e)throw new Te(i);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)}}Da.Cache=Hn;var Ia=vo((function(e,t){var n=(t=1==t.length&&qa(t[0])?Ct(t[0],Jt(ai())):Ct(mr(t,1),Jt(ai()))).length;return Gr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return At(e,this,r)}))})),Ma=Gr((function(e,t){var n=sn(t,ii(Ma));return Jo(e,u,o,t,n)})),$a=Gr((function(e,t){var n=sn(t,ii($a));return Jo(e,64,o,t,n)})),Na=ei((function(e,t){return Jo(e,256,o,o,o,t)}));function La(e,t){return e===t||e!=e&&t!=t}var Fa=Wo(jr),za=Wo((function(e,t){return e>=t})),Ba=Sr(function(){return arguments}())?Sr:function(e){return es(e)&&De.call(e,"callee")&&!Ye.call(e,"callee")},qa=r.isArray,Wa=gt?Jt(gt):function(e){return es(e)&&Ar(e)==C};function Ha(e){return null!=e&&Xa(e.length)&&!Za(e)}function Ya(e){return es(e)&&Ha(e)}var Ga=yt||mu,Va=vt?Jt(vt):function(e){return es(e)&&Ar(e)==v};function Ja(e){if(!es(e))return!1;var t=Ar(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Za(e){if(!Qa(e))return!1;var t=Ar(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Jt(bt):function(e){return es(e)&&pi(e)==O};function ns(e){return"number"==typeof e||es(e)&&Ar(e)==A}function rs(e){if(!es(e)||Ar(e)!=j)return!1;var t=We(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==$e}var os=_t?Jt(_t):function(e){return es(e)&&Ar(e)==P},is=wt?Jt(wt):function(e){return es(e)&&pi(e)==T};function as(e){return"string"==typeof e||!qa(e)&&es(e)&&Ar(e)==x}function ss(e){return"symbol"==typeof e||es(e)&&Ar(e)==S}var us=Ot?Jt(Ot):function(e){return es(e)&&Xa(e.length)&&!!ot[Ar(e)]},cs=Wo(Ir),ls=Wo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ha(e))return as(e)?fn(e):To(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=pi(e);return(t==O?on:t==T?un:Ls)(e)}function ps(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function ys(e){return xo(e,Cs(e))}function gs(e){return null==e?"":ao(e)}var vs=ko((function(e,t){if(wi(t)||Ha(t))xo(t,ks(t),e);else for(var n in t)De.call(t,n)&&Qn(e,n,t[n])})),bs=ko((function(e,t){xo(t,Cs(t),e)})),_s=ko((function(e,t,n,r){xo(t,Cs(t),e,r)})),ws=ko((function(e,t,n,r){xo(t,ks(t),e,r)})),Os=ei(or),As=Gr((function(e,t){e=je(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Cs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||La(f,ke[l])&&!De.call(e,l))&&(e[l]=a[l])}return e})),js=Gr((function(e){return e.push(o,Ko),At(Ds,o,e)}));function Es(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Ps(e,t){return null!=e&&di(e,t,Pr)}var Ts=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Qs(nu)),xs=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),ai),Ss=Gr(xr);function ks(e){return Ha(e)?Vn(e):Ur(e)}function Cs(e){return Ha(e)?Vn(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in je(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}(e)}var Rs=ko((function(e,t,n){Lr(e,t,n)})),Ds=ko((function(e,t,n,r){Lr(e,t,n,r)})),Us=ei((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ct(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),xo(e,ni(e),n),r&&(n=ar(n,7,Xo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Is=ei((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return Ps(e,n)}))}(e,t)}));function Ms(e,t){if(null==e)return{};var n=Ct(ni(e),(function(e){return[e]}));return t=ai(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var $s=Vo(ks),Ns=Vo(Cs);function Ls(e){return null==e?[]:Zt(e,ks(e))}var Fs=Uo((function(e,t,n){return t=t.toLowerCase(),e+(n?zs(t):t)}));function zs(e){return Js(gs(e).toLowerCase())}function Bs(e){return(e=gs(e))&&e.replace(ve,en).replace(Ke,"")}var qs=Uo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Uo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Do("toLowerCase"),Ys=Uo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Uo((function(e,t,n){return e+(n?" ":"")+Js(t)})),Vs=Uo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Do("toUpperCase");function Zs(e,t,n){return e=gs(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ks=Gr((function(e,t){try{return At(e,o,t)}catch(e){return Ja(e)?e:new we(e)}})),Xs=ei((function(e,t){return Et(t,(function(t){t=Mi(t),rr(e,t,xa(e[t],e))})),e}));function Qs(e){return function(){return e}}var eu=$o(),tu=$o(!0);function nu(e){return e}function ru(e){return Dr("function"==typeof e?e:ar(e,1))}var ou=Gr((function(e,t){return function(n){return xr(n,e,t)}})),iu=Gr((function(e,t){return function(n){return xr(e,n,t)}}));function au(e,t,n){var r=ks(t),o=_r(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,ks(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return Et(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function su(){}var uu=zo(Ct),cu=zo(Tt),lu=zo(It);function fu(e){return vi(e)?qt(Mi(e)):function(e){return function(t){return wr(t,e)}}(e)}var pu=qo(),du=qo(!0);function hu(){return[]}function mu(){return!1}var yu,gu=Fo((function(e,t){return e+t}),0),vu=Yo("ceil"),bu=Fo((function(e,t){return e/t}),1),_u=Yo("floor"),wu=Fo((function(e,t){return e*t}),1),Ou=Yo("round"),Au=Fo((function(e,t){return e-t}),0);return Nn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Nn.ary=Pa,Nn.assign=vs,Nn.assignIn=bs,Nn.assignInWith=_s,Nn.assignWith=ws,Nn.at=Os,Nn.before=Ta,Nn.bind=xa,Nn.bindAll=Xs,Nn.bindKey=Sa,Nn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Nn.chain=fa,Nn.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:yn(ds(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(pt(i/t));a<i;)u[s++]=eo(e,a,a+=t);return u},Nn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Nn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(qa(n)?To(n):[n],mr(t,1))},Nn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(At(o[0],this,n))return At(o[1],this,n)}}))},Nn.conforms=function(e){return function(e){var t=ks(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Nn.constant=Qs,Nn.countBy=ha,Nn.create=function(e,t){var n=Ln(e);return null==t?n:nr(n,t)},Nn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.curryRight=function e(t,n,r){var i=Jo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.debounce=ka,Nn.defaults=As,Nn.defaultsDeep=js,Nn.defer=Ca,Nn.delay=Ra,Nn.difference=Li,Nn.differenceBy=Fi,Nn.differenceWith=zi,Nn.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:ds(t))<0?0:t,r):[]},Nn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:ds(t)))<0?0:t):[]},Nn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Nn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Nn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Nn.filter=function(e,t){return(qa(e)?xt:hr)(e,ai(t,3))},Nn.flatMap=function(e,t){return mr(Oa(e,t),1)},Nn.flatMapDeep=function(e,t){return mr(Oa(e,t),l)},Nn.flatMapDepth=function(e,t,n){return n=n===o?1:ds(n),mr(Oa(e,t),n)},Nn.flatten=Wi,Nn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Nn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:ds(t)):[]},Nn.flip=function(e){return Jo(e,512)},Nn.flow=eu,Nn.flowRight=tu,Nn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Nn.functions=function(e){return null==e?[]:_r(e,ks(e))},Nn.functionsIn=function(e){return null==e?[]:_r(e,Cs(e))},Nn.groupBy=ba,Nn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Nn.intersection=Yi,Nn.intersectionBy=Gi,Nn.intersectionWith=Vi,Nn.invert=Ts,Nn.invertBy=xs,Nn.invokeMap=_a,Nn.iteratee=ru,Nn.keyBy=wa,Nn.keys=ks,Nn.keysIn=Cs,Nn.map=Oa,Nn.mapKeys=function(e,t){var n={};return t=ai(t,3),vr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Nn.mapValues=function(e,t){var n={};return t=ai(t,3),vr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Nn.matches=function(e){return $r(ar(e,1))},Nn.matchesProperty=function(e,t){return Nr(e,ar(t,1))},Nn.memoize=Da,Nn.merge=Rs,Nn.mergeWith=Ds,Nn.method=ou,Nn.methodOf=iu,Nn.mixin=au,Nn.negate=Ua,Nn.nthArg=function(e){return e=ds(e),Gr((function(t){return Fr(t,e)}))},Nn.omit=Us,Nn.omitBy=function(e,t){return Ms(e,Ua(ai(t)))},Nn.once=function(e){return Ta(2,e)},Nn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),zr(e,t,n))},Nn.over=uu,Nn.overArgs=Ia,Nn.overEvery=cu,Nn.overSome=lu,Nn.partial=Ma,Nn.partialRight=$a,Nn.partition=Aa,Nn.pick=Is,Nn.pickBy=Ms,Nn.property=fu,Nn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Nn.pull=Zi,Nn.pullAll=Ki,Nn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ai(n,2)):e},Nn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Nn.pullAt=Xi,Nn.range=pu,Nn.rangeRight=du,Nn.rearg=Na,Nn.reject=function(e,t){return(qa(e)?xt:hr)(e,Ua(ai(t,3)))},Nn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Nn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Gr(e,t=t===o?t:ds(t))},Nn.reverse=Qi,Nn.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ds(t),(qa(e)?Zn:Jr)(e,t)},Nn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Nn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Nn.shuffle=function(e){return(qa(e)?Kn:Qr)(e)},Nn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===o?r:ds(n)),eo(e,t,n)):[]},Nn.sortBy=ja,Nn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Nn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Nn.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=gs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Nn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:yn(ds(t),0),Gr((function(n){var r=n[t],o=bo(n,0,t);return r&&Rt(o,r),At(e,this,o)}))},Nn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Nn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:ds(t))<0?0:t):[]},Nn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:ds(t)))<0?0:t,r):[]},Nn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Nn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Nn.tap=function(e,t){return t(e),e},Nn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ka(e,t,{leading:r,maxWait:t,trailing:o})},Nn.thru=pa,Nn.toArray=fs,Nn.toPairs=$s,Nn.toPairsIn=Ns,Nn.toPath=function(e){return qa(e)?Ct(e,Mi):ss(e)?[e]:To(Ii(gs(e)))},Nn.toPlainObject=ys,Nn.transform=function(e,t,n){var r=qa(e),o=r||Ga(e)||us(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qa(e)&&Za(i)?Ln(We(e)):{}}return(o?Et:vr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Nn.unary=function(e){return Pa(e,1)},Nn.union=ea,Nn.unionBy=ta,Nn.unionWith=na,Nn.uniq=function(e){return e&&e.length?so(e):[]},Nn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Nn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Nn.unset=function(e,t){return null==e||uo(e,t)},Nn.unzip=ra,Nn.unzipWith=oa,Nn.update=function(e,t,n){return null==e?e:co(e,t,yo(n))},Nn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,yo(n),r)},Nn.values=Ls,Nn.valuesIn=function(e){return null==e?[]:Zt(e,Cs(e))},Nn.without=ia,Nn.words=Zs,Nn.wrap=function(e,t){return Ma(yo(t),e)},Nn.xor=aa,Nn.xorBy=sa,Nn.xorWith=ua,Nn.zip=ca,Nn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Nn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},Nn.zipWith=la,Nn.entries=$s,Nn.entriesIn=Ns,Nn.extend=bs,Nn.extendWith=_s,au(Nn,Nn),Nn.add=gu,Nn.attempt=Ks,Nn.camelCase=Fs,Nn.capitalize=zs,Nn.ceil=vu,Nn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ms(n))==n?n:0),t!==o&&(t=(t=ms(t))==t?t:0),ir(ms(e),t,n)},Nn.clone=function(e){return ar(e,4)},Nn.cloneDeep=function(e){return ar(e,5)},Nn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Nn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Nn.conformsTo=function(e,t){return null==t||sr(e,t,ks(t))},Nn.deburr=Bs,Nn.defaultTo=function(e,t){return null==e||e!=e?t:e},Nn.divide=bu,Nn.endsWith=function(e,t,n){e=gs(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Nn.eq=La,Nn.escape=function(e){return(e=gs(e))&&V.test(e)?e.replace(Y,tn):e},Nn.escapeRegExp=function(e){return(e=gs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Nn.every=function(e,t,n){var r=qa(e)?Tt:pr;return n&&gi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.find=ma,Nn.findIndex=Bi,Nn.findKey=function(e,t){return $t(e,ai(t,3),vr)},Nn.findLast=ya,Nn.findLastIndex=qi,Nn.findLastKey=function(e,t){return $t(e,ai(t,3),br)},Nn.floor=_u,Nn.forEach=ga,Nn.forEachRight=va,Nn.forIn=function(e,t){return null==e?e:yr(e,ai(t,3),Cs)},Nn.forInRight=function(e,t){return null==e?e:gr(e,ai(t,3),Cs)},Nn.forOwn=function(e,t){return e&&vr(e,ai(t,3))},Nn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},Nn.get=Es,Nn.gt=Fa,Nn.gte=za,Nn.has=function(e,t){return null!=e&&di(e,t,Er)},Nn.hasIn=Ps,Nn.head=Hi,Nn.identity=nu,Nn.includes=function(e,t,n,r){e=Ha(e)?e:Ls(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),as(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Lt(e,t,n)>-1},Nn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=yn(r+o,0)),Lt(e,t,o)},Nn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=gn(t,n)&&e<yn(t,n)}(e=ms(e),t,n)},Nn.invoke=Ss,Nn.isArguments=Ba,Nn.isArray=qa,Nn.isArrayBuffer=Wa,Nn.isArrayLike=Ha,Nn.isArrayLikeObject=Ya,Nn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Ar(e)==g},Nn.isBuffer=Ga,Nn.isDate=Va,Nn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Nn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Ba(e)))return!e.length;var t=pi(e);if(t==O||t==T)return!e.size;if(wi(e))return!Ur(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Nn.isEqual=function(e,t){return kr(e,t)},Nn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?kr(e,t,o,n):!!r},Nn.isError=Ja,Nn.isFinite=function(e){return"number"==typeof e&&Mt(e)},Nn.isFunction=Za,Nn.isInteger=Ka,Nn.isLength=Xa,Nn.isMap=ts,Nn.isMatch=function(e,t){return e===t||Cr(e,t,ui(t))},Nn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Cr(e,t,ui(t),n)},Nn.isNaN=function(e){return ns(e)&&e!=+e},Nn.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Nn.isNil=function(e){return null==e},Nn.isNull=function(e){return null===e},Nn.isNumber=ns,Nn.isObject=Qa,Nn.isObjectLike=es,Nn.isPlainObject=rs,Nn.isRegExp=os,Nn.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=f},Nn.isSet=is,Nn.isString=as,Nn.isSymbol=ss,Nn.isTypedArray=us,Nn.isUndefined=function(e){return e===o},Nn.isWeakMap=function(e){return es(e)&&pi(e)==k},Nn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Ar(e)},Nn.join=function(e,t){return null==e?"":Wt.call(e,t)},Nn.kebabCase=qs,Nn.last=Ji,Nn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ds(n))<0?yn(r+i,0):gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Nt(e,zt,i,!0)},Nn.lowerCase=Ws,Nn.lowerFirst=Hs,Nn.lt=cs,Nn.lte=ls,Nn.max=function(e){return e&&e.length?dr(e,nu,jr):o},Nn.maxBy=function(e,t){return e&&e.length?dr(e,ai(t,2),jr):o},Nn.mean=function(e){return Bt(e,nu)},Nn.meanBy=function(e,t){return Bt(e,ai(t,2))},Nn.min=function(e){return e&&e.length?dr(e,nu,Ir):o},Nn.minBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Ir):o},Nn.stubArray=hu,Nn.stubFalse=mu,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=wu,Nn.nth=function(e,t){return e&&e.length?Fr(e,ds(t)):o},Nn.noConflict=function(){return ft._===this&&(ft._=Ne),this},Nn.noop=su,Nn.now=Ea,Nn.pad=function(e,t,n){e=gs(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(dt(o),n)+e+Bo(pt(o),n)},Nn.padEnd=function(e,t,n){e=gs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Bo(t-r,n):e},Nn.padStart=function(e,t,n){e=gs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?Bo(t-r,n)+e:e},Nn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(gs(e).replace(re,""),t||0)},Nn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return gn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hr(e,t)},Nn.reduce=function(e,t,n){var r=qa(e)?Dt:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Nn.reduceRight=function(e,t,n){var r=qa(e)?Ut:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Nn.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ds(t),Yr(gs(e),t)},Nn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nn.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Mi(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Nn.round=Ou,Nn.runInContext=e,Nn.sample=function(e){return(qa(e)?Jn:Vr)(e)},Nn.size=function(e){if(null==e)return 0;if(Ha(e))return as(e)?ln(e):e.length;var t=pi(e);return t==O||t==T?e.size:Ur(e).length},Nn.snakeCase=Ys,Nn.some=function(e,t,n){var r=qa(e)?It:to;return n&&gi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.sortedIndex=function(e,t){return no(e,t)},Nn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Nn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&La(e[r],t))return r}return-1},Nn.sortedLastIndex=function(e,t){return no(e,t,!0)},Nn.sortedLastIndexBy=function(e,t,n){return ro(e,t,ai(n,2),!0)},Nn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(La(e[n],t))return n}return-1},Nn.startCase=Gs,Nn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ir(ds(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Nn.subtract=Au,Nn.sum=function(e){return e&&e.length?Yt(e,nu):0},Nn.sumBy=function(e,t){return e&&e.length?Yt(e,ai(t,2)):0},Nn.template=function(e,t,n){var r=Nn.templateSettings;n&&gi(e,t,n)&&(t=o),e=gs(e),t=_s({},t,r,Zo);var i,a,s=_s({},t.imports,r.imports,Zo),u=ks(s),c=Zt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Ee((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(l,u).replace(_e,nn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(q,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ks((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(y.source=p,Ja(y))throw y;return y},Nn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ai(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Nn.toFinite=ps,Nn.toInteger=ds,Nn.toLength=hs,Nn.toLower=function(e){return gs(e).toLowerCase()},Nn.toNumber=ms,Nn.toSafeInteger=function(e){return e?ir(ds(e),-9007199254740991,f):0===e?e:0},Nn.toString=gs,Nn.toUpper=function(e){return gs(e).toUpperCase()},Nn.trim=function(e,t,n){if((e=gs(e))&&(n||t===o))return Vt(e);if(!e||!(t=ao(t)))return e;var r=fn(e),i=fn(t);return bo(r,Xt(r,i),Qt(r,i)+1).join("")},Nn.trimEnd=function(e,t,n){if((e=gs(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,0,Qt(r,fn(t))+1).join("")},Nn.trimStart=function(e,t,n){if((e=gs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,Xt(r,fn(t))).join("")},Nn.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(t.length):n,r="omission"in t?ao(t.omission):r}var a=(e=gs(e)).length;if(rn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),os(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Ee(i.source,gs(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ao(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Nn.unescape=function(e){return(e=gs(e))&&G.test(e)?e.replace(H,dn):e},Nn.uniqueId=function(e){var t=++Ue;return gs(e)+t},Nn.upperCase=Vs,Nn.upperFirst=Js,Nn.each=ga,Nn.eachRight=va,Nn.first=Hi,au(Nn,(yu={},vr(Nn,(function(e,t){De.call(Nn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Nn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Nn[e].placeholder=Nn})),Et(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:yn(ds(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(nu)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return xr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ua(ai(e)))},Bn.prototype.slice=function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},vr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Nn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Nn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Bn,c=s[0],l=u||qa(t),f=function(e){var t=i.apply(Nn,Rt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=u&&!d;if(!a&&l){t=m?t:new Bn(this);var y=e.apply(t,s);return y.__actions__.push({func:pa,args:[f],thisArg:o}),new zn(y,p)}return h&&m?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Nn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),vr(Bn.prototype,(function(e,t){var n=Nn[t];if(n){var r=n.name+"";De.call(Sn,r)||(Sn[r]=[]),Sn[r].push({name:t,func:n})}})),Sn[No(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var m=-1,y=e[c+=t];++m<f;){var g=l[m],v=g.iteratee,b=g.type,_=v(y);if(2==b)y=_;else if(!_){if(1==b)continue e;break e}}h[p++]=y}return h},Nn.prototype.at=da,Nn.prototype.chain=function(){return fa(this)},Nn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Nn.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Nn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:o}),new zn(t,this.__chain__)}return this.thru(Qi)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Je&&(Nn.prototype[Je]=function(){return this}),Nn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},13222:function(e,t,n){var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},44826:function(e,t,n){var r=n(77556),o=n(54128),i=n(28754),a=n(23875),s=n(28380),u=n(63912),c=n(13222);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var l=u(e),f=u(t),p=s(l,f),d=a(l,f)+1;return i(l,p,d).join("")}},15993:function(e,t,n){"use strict";var r=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 o=r(n(42681)),i=n(60554),a=n(2543),s=n(96690),u=n(17112),c=r(n(30228)),l=r(n(81018)),{fetch:f,Headers:p}=(0,o.default)(),d=r(n(23370)),h=n(84679);var m;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(m||(t.FormioPathType=m={}));class y{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 y))return new y(e);if(t.useSessionToken&&y.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(y.baseUrl)this.base=y.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=y.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||y.projectUrl,r=/(^|\/)(project)($|\/[^/]+)/,o=-1!==e.search(r);n&&this.base===n&&!o&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const i=this.getUrlParts(e);let a="",s=[];if(i){a=i[1]+i[2];const t=(e=i.length>3?i[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const u=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const r=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(r)&&(s=e.match(r),this[`${t}Url`]=s?n+s[0]:"",this[`${t}Id`]=s.length>1?s[1]:"",n+=s[0]),n},c=(e,t,n)=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];if(Array.isArray(o))c(o,t,!0);else{const e=u(o,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||o||"Subdirectories"!==y.pathType)this.projectUrl=a;else{const e=`^${a.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:a}let l=!1;if(y.pathType&&(l="Subdomains"!==y.pathType),!this.noProject){if(o)c(["project"],a),e=e.replace(r,"");else if(a===this.base){if(i&&i.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=a;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${a}/${this.projectId}`)}}}else i&&i.length>2&&(i[2].split(".").length>2||a.includes("localhost"))&&!l&&(this.projectUrl=a,this.projectId=i[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(c(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))c(["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 r=["submission","action","v"];for(const t in r)if(r.hasOwnProperty(t)){const o=r[t];this[`${o}sUrl`]=`${this.projectUrl+e}/${o}`,this.pathType===o&&n&&n.length>2&&n[2]&&(this[`${o}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${o}Url`]=this.projectUrl+e+n[0])}}y.projectUrlSet||(y.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(y.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const r=`${e}Url`;return(t=t||"")&&(0,a.isObject)(t)&&(t=`?${y.serialize(t.params)}`),this.makeRequest(e,this[r]+t,"get",null,n)}save(e,t,n){const r=`${e}Id`,o=`${e}Url`,i=this[r]||t._id?"put":"post";let a=this[r]?this[o]:this[`${e}sUrl`];return this[r]||!t._id||"put"!==i||a.includes(t._id)||(a+=`/${t._id}`),y.cache={},this.makeRequest(e,a+this.query,i,t,n)}load(e,t,n){const r=`${e}Id`,o=`${e}Url`;if(t&&(0,a.isObject)(t)&&(t=y.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[r])return Promise.reject(`Missing ${r}`);let i=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||(i+=-1===i.indexOf("?")?"?":"&",i+=`formRevision=${this.vId}`),this.makeRequest(e,i,"get",null,n)}makeRequest(e,t,n,r,o){return y.makeRequest(this,e,t,n,r,o)}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,a.isObject)(e)&&(e=`?${y.serialize(e.params)}`),y.makeStaticRequest(`${y.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,a.isObject)(e)&&(e=y.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 y.currentUser(this,e)}accessInfo(){return y.accessInfo(this)}oauthLogoutURI(e,t){return y.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return y.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return y.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!y.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const r=y.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${r}/token`,"GET",null,{ignoreCache:!0,header:new p({"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 r=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{r+=`?token=${t.key}`,e(r)}),(()=>{e(r)})).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:[]},r=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},u={user:n,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(const e in o.roles)if(o.roles.hasOwnProperty(e)){const t=o.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return u.create=!0,u.read=!0,u.delete=!0,u.edit=!0,u}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const o=t.submissionAccess[e],[s,c]=o.type.split("_");["create","read","update","delete"].includes(s)&&(0,a.intersection)(o.roles,n.roles).length&&(u[i[s]]="all"===c||!r||n._id===r.owner)}return r&&(0,s.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const o=(0,a.get)(r.data,t);(Array.isArray(o)?o:[o]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(u[i.read]=!0),"create"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0),"write"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0),"admin"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0,u[i.delete]=!0))}))}})),u}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&y.getUser()?this.userPermissions(null).then((e=>!!e.create&&(y.setUser(null),!0))):e.create))}getUrlParts(e){return y.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:y.baseUrl;let r="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?r+=`(${n.replace(/^http[s]?:\/\//,"")})`:r+="([^/]+)",r+="($|\\/.*)",e.match(new RegExp(r))}static serialize(e,t){const n=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.push(`${encodeURIComponent(o)}=${encodeURIComponent((r=e[o],t?t(r):r))}`);var r;return n.join("&")}static getRequestArgs(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&(0,a.isObject)(i)||(i={});const s={url:n,method:r,data:o||null,opts:i};return t&&(s.type=t),e&&(s.formio=e),s}static makeStaticRequest(e,t,n,r){const o=y.getRequestArgs(null,"",e,t,n,r),i=d.default.pluginWait("preRequest",o).then((()=>d.default.pluginGet("staticRequest",o).then((e=>(0,a.isNil)(e)?y.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return d.default.pluginAlter("wrapStaticRequestPromise",i,o)}static makeRequest(e,t,n,r,o,i){if(!e)return y.makeStaticRequest(n,r,o,i);const s=y.getRequestArgs(e,t,n,r,o,i);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,a.defaults)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});const u=d.default.pluginWait("preRequest",s).then((()=>d.default.pluginGet("request",s).then((e=>(0,a.isNil)(e)?y.request(s.url,s.method,s.data,s.opts.header,s.opts):e))));return d.default.pluginAlter("wrapRequestPromise",u,s)}static request(e,t,n,r,o){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,a.isBoolean)(o)&&(o={ignoreCache:o}),o&&(0,a.isObject)(o)||(o={});const i=btoa(encodeURI(e));if(!o.ignoreCache&&"GET"===t&&y.cache.hasOwnProperty(i))return Promise.resolve(y.cloneResponse(y.cache[i]));"/"===e[0]&&(e=y.baseUrl+e);const s=r||new p(o.headers||{Accept:"application/json","Content-type":"application/json"}),u=y.getToken(o);u&&!o.noToken&&s.set("x-jwt-token",u);const c={};s.forEach((function(e,t){c[t]=e}));let l={method:t,headers:c,mode:"cors"};n&&(l.body=JSON.stringify(n)),l=d.default.pluginAlter("requestOptions",l,e),(l.namespace||y.namespace)&&(o.namespace=l.namespace||y.namespace);const f=l.headers["x-jwt-token"],h=d.default.pluginAlter("wrapFetchRequestPromise",y.fetch(e,l),{url:e,method:t,data:n,opts:o}).then((r=>{if(!(r=d.default.pluginAlter("requestResponse",r,y,n)).ok){if(440===r.status)y.setToken(null,o),y.events.emit("formio.sessionExpired",r.body||r);else if(401===r.status)y.events.emit("formio.unauthorized",r.body||r);else if(416===r.status)y.events.emit("formio.rangeIsNotSatisfiable",r.body||r);else if(504===r.status)return Promise.reject(new Error("Network request failed"));return(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>Promise.reject(e)))}const i=r.headers.get("x-jwt-token");let s=!1;return"GET"!==t||f||!i||o.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),r.status>=200&&r.status<300&&i&&""!==i&&!s&&y.setToken(i,Object.assign(Object.assign({},o),{fromCurrent:o.fromCurrent||!!f})),204===r.status?{}:(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>{let t=r.headers.get("content-range");if(t&&(0,a.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(!o.getHeaders)return e;const n={};return r.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>o.getHeaders?e:("GET"===t&&(y.cache[i]=e),y.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==o.noToken&&(y.setToken(null,o),y.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete y.cache[i],Promise.reject(n))));return h}static get token(){return y.tokens.formioToken||""}static set token(e){y.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;const t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||y.namespace||"formio"}Token`,r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));const o=`${t||y.namespace||"formio"}User`,i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||y.namespace||"formio"}Token`;y.tokens||(y.tokens={});const r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,y.setUser(null,t));try{r.removeItem(n)}catch(e){l.default.erase(n,{path:"/"})}return y.tokens[n]=e,Promise.resolve(null)}if(y.tokens[n]!==e){y.tokens[n]=e;try{r.setItem(n,e)}catch(t){l.default.set(n,e,{path:"/"})}}return y.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||y.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(y.tokens||(y.tokens={}),y.tokens[n])return y.tokens[n];try{const r=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return y.tokens[t]=r||"",e.decode?(y.tokens[n]=y.tokens[t]?(0,u.jwtDecode)(y.tokens[t]):{},y.tokens[n]):y.tokens[t]}catch(e){return y.tokens[t]=l.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||y.namespace||"formio"}User`,r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,y.setToken(null,t)),y.events.emit("formio.user",null);try{return r.removeItem(n)}catch(e){return l.default.erase(n,{path:"/"})}}try{r.setItem(n,JSON.stringify(e))}catch(t){l.default.set(n,JSON.stringify(e),{path:"/"})}y.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||y.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(l.default.get(t))}}static setBaseUrl(e){y.baseUrl=e,y.projectUrlSet||(y.projectUrl=e)}static getBaseUrl(){return y.baseUrl}static setApiUrl(e){return y.setBaseUrl(e)}static getApiUrl(){return y.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),y.projectUrl=e,y.projectUrlSet=!0}static setProjectUrl(e){y.projectUrl=e,y.projectUrlSet=!0}static setAuthUrl(e){y.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),y.projectUrl}static getProjectUrl(){return y.projectUrl}static clearCache(){y.cache={}}static accessInfo(e){const t=e?e.projectUrl:y.projectUrl;return y.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:y.projectUrl;return y.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=y.authUrl;if(n||(n=e?e.projectUrl:y.projectUrl||y.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=y.getUser(t);if(e)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const r=y.getToken(t);return t&&t.external||r?(t.fromCurrent=!0,y.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(y.setUser(e,t),e)))):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=y.authUrl?y.authUrl:e?e.projectUrl:y.baseUrl,r=()=>{y.setToken(null,t),y.setUser(null,t),y.clearCache(),localStorage.removeItem("useSessionToken")};return y.makeRequest(e,"logout",`${n}/logout`).then((function(e){return r(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw r(),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 y.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||y.namespace||"formio"}LogoutAuthUrl`;return localStorage.setItem(n,e),y.tokens[n]}static samlInit(e={}){const t=y.pageQuery();if(t.saml){y.setUser(null);const e=y.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=y.authUrl||y.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if("undefined"!=typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===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 r=e.OktaAuth;delete e.OktaAuth;const o=new r(e);o.tokenManager.get("accessToken").then((r=>{r?t(y.oAuthCurrentUser(e.formio,r.accessToken)):location.hash?o.token.parseFromUrl().then((n=>{o.tokenManager.add("accessToken",n),t(y.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(o.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return y.samlInit(t);case"okta":return y.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,r=!1,o,i){const s={name:e,src:n,formio:y,onload:o,rootElement:i};let u=!1;if(!y.libraries.hasOwnProperty(e)){y.libraries[e]={},y.libraries[e].ready=new Promise(((t,n)=>{y.libraries[e].resolve=t,y.libraries[e].reject=n}));const n=`${e}Callback`;r||window[n]||(window[n]=()=>y.libraries[e].resolve());const o=(0,a.get)(window,t);if(o)y.libraries[e].resolve(o);else if((0,h.attachResourceToDom)(s),u=!0,r){const n=setInterval((()=>{const r=(0,a.get)(window,t);r&&(clearInterval(n),y.libraries[e].resolve(r))}),200)}}const c=y.libraries[e];return i&&!u&&(0,h.attachResourceToDom)(s),o&&c.loaded?o(c.ready):c.ready}static libraryReady(e){return y.libraries.hasOwnProperty(e)&&y.libraries[e].ready?y.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,i.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&&(y.pathType=e)}static getPathType(){return y.pathType}}t.Formio=y,y.baseUrl="https://api.form.io",y.projectUrl="",y.authUrl="",y.projectUrlSet=!1,y.cache={},y.namespace="",y.events=new c.default,y.libraries={},y.fetch=f,y.Headers=p,y.tokens={},y.version="---VERSION---",y.options={},y.plugins=d.default.plugins,y.deregisterPlugin=d.default.deregisterPlugin,y.registerPlugin=d.default.registerPlugin,y.getPlugin=d.default.getPlugin,y.pluginWait=d.default.pluginWait,y.pluginGet=d.default.pluginGet,y.pluginAlter=d.default.pluginAlter,d.default.Formio=y},22831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=p(n(13518)),o=p(n(14948)),i=p(n(45073)),a=p(n(77186)),s=p(n(14808)),u=p(n(7775)),c=p(n(37037)),l=p(n(49910)),f=p(n(96792));function p(e){return e&&e.__esModule?e:{default:e}}},22311:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(u=i)|s>>>32-u,n);var s,u}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}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<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=o,p=c,d=l,h=f;o=i(o,c,l,f,e[t],7,-680876936),f=i(f,o,c,l,e[t+1],12,-389564586),l=i(l,f,o,c,e[t+2],17,606105819),c=i(c,l,f,o,e[t+3],22,-1044525330),o=i(o,c,l,f,e[t+4],7,-176418897),f=i(f,o,c,l,e[t+5],12,1200080426),l=i(l,f,o,c,e[t+6],17,-1473231341),c=i(c,l,f,o,e[t+7],22,-45705983),o=i(o,c,l,f,e[t+8],7,1770035416),f=i(f,o,c,l,e[t+9],12,-1958414417),l=i(l,f,o,c,e[t+10],17,-42063),c=i(c,l,f,o,e[t+11],22,-1990404162),o=i(o,c,l,f,e[t+12],7,1804603682),f=i(f,o,c,l,e[t+13],12,-40341101),l=i(l,f,o,c,e[t+14],17,-1502002290),c=i(c,l,f,o,e[t+15],22,1236535329),o=a(o,c,l,f,e[t+1],5,-165796510),f=a(f,o,c,l,e[t+6],9,-1069501632),l=a(l,f,o,c,e[t+11],14,643717713),c=a(c,l,f,o,e[t],20,-373897302),o=a(o,c,l,f,e[t+5],5,-701558691),f=a(f,o,c,l,e[t+10],9,38016083),l=a(l,f,o,c,e[t+15],14,-660478335),c=a(c,l,f,o,e[t+4],20,-405537848),o=a(o,c,l,f,e[t+9],5,568446438),f=a(f,o,c,l,e[t+14],9,-1019803690),l=a(l,f,o,c,e[t+3],14,-187363961),c=a(c,l,f,o,e[t+8],20,1163531501),o=a(o,c,l,f,e[t+13],5,-1444681467),f=a(f,o,c,l,e[t+2],9,-51403784),l=a(l,f,o,c,e[t+7],14,1735328473),c=a(c,l,f,o,e[t+12],20,-1926607734),o=s(o,c,l,f,e[t+5],4,-378558),f=s(f,o,c,l,e[t+8],11,-2022574463),l=s(l,f,o,c,e[t+11],16,1839030562),c=s(c,l,f,o,e[t+14],23,-35309556),o=s(o,c,l,f,e[t+1],4,-1530992060),f=s(f,o,c,l,e[t+4],11,1272893353),l=s(l,f,o,c,e[t+7],16,-155497632),c=s(c,l,f,o,e[t+10],23,-1094730640),o=s(o,c,l,f,e[t+13],4,681279174),f=s(f,o,c,l,e[t],11,-358537222),l=s(l,f,o,c,e[t+3],16,-722521979),c=s(c,l,f,o,e[t+6],23,76029189),o=s(o,c,l,f,e[t+9],4,-640364487),f=s(f,o,c,l,e[t+12],11,-421815835),l=s(l,f,o,c,e[t+15],16,530742520),c=s(c,l,f,o,e[t+2],23,-995338651),o=u(o,c,l,f,e[t],6,-198630844),f=u(f,o,c,l,e[t+7],10,1126891415),l=u(l,f,o,c,e[t+14],15,-1416354905),c=u(c,l,f,o,e[t+5],21,-57434055),o=u(o,c,l,f,e[t+12],6,1700485571),f=u(f,o,c,l,e[t+3],10,-1894986606),l=u(l,f,o,c,e[t+10],15,-1051523),c=u(c,l,f,o,e[t+1],21,-2054922799),o=u(o,c,l,f,e[t+8],6,1873313359),f=u(f,o,c,l,e[t+15],10,-30611744),l=u(l,f,o,c,e[t+6],15,-1560198380),c=u(c,l,f,o,e[t+13],21,1309151649),o=u(o,c,l,f,e[t+4],6,-145523070),f=u(f,o,c,l,e[t+11],10,-1120210379),l=u(l,f,o,c,e[t+2],15,718787259),c=u(c,l,f,o,e[t+9],21,-343485551),o=r(o,n),c=r(c,p),l=r(l,d),f=r(f,h)}return[o,c,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},46140:function(e,t){"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:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.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:function(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:function(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(r)};const r=new Uint8Array(16)},9042:function(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],u=o[1],c=o[2],l=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=r(a,5)+n(o,u,c,l)+f+t[o]+i[e]>>>0;f=l,l=c,c=r(u,30)>>>0,u=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},49910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},13518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2858))&&r.__esModule?r:{default:r},i=n(49910);let a,s,u=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const l=t||new Array(16);let f=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==f||null==p){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const m=d-u+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,s=p,d+=122192928e5;const y=(1e4*(268435455&d)+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;const g=d/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=p>>>8|128,l[r++]=255&p;for(let e=0;e<6;++e)l[r+e]=f[e];return t||(0,i.unsafeStringify)(l)}},14948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(22311));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},59025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(u=r)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=c[e];return a}return(0,o.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=s,r};var r,o=n(49910),i=(r=n(96792))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},45073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(46140)),o=a(n(2858)),i=n(49910);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},77186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(9042));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);t.default=a},37037:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(27656))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},7775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},56036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t={}){this.baseUrl=e||n.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.3",bootstrap4:"4.6.2",bootstrap5:"5.3.3",bootswatch:"5.3.3","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","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 r=e;return t&&(r+=`/${t}`),e.match(/cdn\.(test-)?form.io/)&&n&&"latest"!==n&&(r+=`/${n}`),r}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}n.defaultCDN="https://cdn.form.io",t.default=n},27368:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(2543)),i=r(n(53825)),a=r(n(19045)),s=r(n(5896));class u{static addProvider(e,t,n){u.providers[e]=u.providers[e]||{},u.providers[e][t]=n}static addProviders(e,t){u.providers[e]=o.default.merge(u.providers[e],t)}static getProvider(e,t){if(u.providers[e]&&u.providers[e][t])return u.providers[e][t]}static getProviders(e){if(u.providers[e])return u.providers[e]}}u.providers={address:i.default,auth:a.default,storage:s.default},t.default=u},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const o=r(n(2543)),i=n(34040);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return o.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return o.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return i.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?o.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}},90637:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const r=n(10308);class o extends r.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=o},84689:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const r=n(10308);class o extends r.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=o},25873:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const o=n(34040),i=r(n(2543)),a=n(10308);class s extends a.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&loading=async&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(n+=`&key=${e.params.key}`),o.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=i.default.get(this.options,"params.autocompleteOptions",{});i.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=i.default.get(t,"params.region","");if(n&&!i.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();const e={UK:"GB"};e[n]&&(n=e[n]),i.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();i.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){o.Formio.libraryReady(this.getLibraryName()).then((()=>{const r=new google.maps.places.Autocomplete(e,this.autocompleteOptions);r.addListener("place_changed",(()=>{const o=this.filterPlace(r.getPlace());o.formattedPlace=i.default.get(r,"gm_accessors_.place.se.formattedPrediction",o[this.alternativeDisplayValueProperty]),n(o,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}t.GoogleAddressProvider=s},90094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const r=n(10308);class o extends r.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=o},53825:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90637),o=n(84689),i=n(25873),a=n(90094);t.default={[r.AzureAddressProvider.name]:r.AzureAddressProvider,[o.CustomAddressProvider.name]:o.CustomAddressProvider,[i.GoogleAddressProvider.name]:i.GoogleAddressProvider,[a.NominatimAddressProvider.name]:a.NominatimAddressProvider}},19045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},59962:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(27368));t.default=o.default},52223:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(30430));function i(e){return{uploadFile:(t,n,r,i,a,s,u,c,l,f)=>o.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,r,i,c,l,f).then((e=>({storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:c,groupId:l,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}`,"GET"),deleteFile:function(t){var n=`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}&key=${o.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}i.title="Azure File Services",t.default=i},95789:function(e,t){"use strict";function n(){return{title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new Promise(((r,o)=>{n.onload=n=>{const o=n.target.result;r({storage:"base64",name:t,url:o,size:e.size,type:e.type})},n.onerror=()=>o(this),n.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Base64",t.default=n},68405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30430);function o(e){return{uploadFile:(t,n,o,i,a,s,u,c,l,f)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;"function"==typeof i&&(u.upload.onprogress=i),"function"==typeof f&&f((()=>u.abort()));const p=new FormData;p.append("name",n),p.append("dir",o),p.append("file",t),u.onerror=e=>{e.networkError=!0,s(e)},u.onload=()=>{if(u.status>=200&&u.status<300){const e=JSON.parse(u.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=l,e.groupPermissions=c,a(e)}else s(u.response||"Unable to upload file")},u.onabort=s,u.open("POST",`${e.formUrl}/storage/gdrive`),(0,r.setXhrHeaders)(e,u);const d=e.getToken();d&&u.setRequestHeader("x-jwt-token",d),u.send(p)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,Promise.resolve(t)},deleteFile:function(t){var n="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",n,"delete")}}}o.title="Google Drive",t.default=o},5896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(95789)),i=r(n(7152)),a=r(n(52223)),s=r(n(13225)),u=r(n(46775)),c=r(n(68405));t.default={base64:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:u.default,googledrive:c.default}},46775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22831);function o(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,o,i,a){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(a.indexeddb);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 Promise(((o,s)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),s=(0,r.v4)(n),u={id:s,data:n,name:e.name,size:e.size,type:e.type,url:i},c=t.transaction([a.indexeddbTable],"readwrite");c.objectStore(a.indexeddbTable).put(u,s).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:i,id:s})}},n.onerror=()=>s(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readonly"),a=i.objectStore(t.indexeddbTable).get(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const t=a.result,n=new File([a.result.data],e.name,{type:a.result.type}),i=new FileReader;i.onload=n=>{t.url=n.target.result,t.storage=e.storage,r(t)},i.onerror=()=>o(this),i.readAsDataURL(n)}},a.onerror=()=>o(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readwrite"),a=i.objectStore(t.indexeddbTable).delete(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const e=a.result;r(e)}},a.onerror=()=>o(this)}))))}}}o.title="IndexedDB",t.default=o},7152:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&r(t,e,n);return o(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=s(n(30430)),c=n(55474);function l(e){return{uploadFile(t,r,o,s,l,f,p,d,h,m,y){return a(this,void 0,void 0,(function*(){const l=yield u.default.upload(e,"s3",((e,s,l)=>a(this,void 0,void 0,(function*(){if(s.data.fileName=r,s.data.key=u.default.path([s.data.key,o,r]),!s.signed){const n=new FormData;for(const e in s.data)n.append(e,s.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",s.url),n}if(!y||!Array.isArray(s.signed))return e.openAndSetHeaders("PUT",s.signed),e.setRequestHeader("Content-Type",t.type),s.data.headers&&Object.keys(s.data.headers).forEach((t=>{e.setRequestHeader(t,s.data.headers[t])})),t;{yield a(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>i(n(24715)))))}));const e=new AbortController,r=e.signal;"function"==typeof l&&l((()=>e.abort()));try{const e=yield this.uploadParts(t,s.signed,s.data.headers,s.partSizeActual,y,r);return void(yield(0,c.withRetries)(this.completeMultipartUpload,[s,e,y],3))}catch(t){throw e.abort(),this.abortMultipartUpload(s),t}}}))),t,r,o,s,d,h,m,y);return{storage:"s3",name:r,bucket:l.bucket,key:l.data.key,url:u.default.path([l.url,l.data.key]),acl:l.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,n,r){return a(this,void 0,void 0,(function*(){const{changeMessage:o}=r;o("Completing AWS S3 multipart upload...");const i=e.getToken(),a=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({parts:n,uploadId:t.uploadId,key:t.key})}),s=yield a.text();if(!a.ok)throw new Error(s);if(s.match(/Error/))throw new Error(s)}))},abortMultipartUpload(t){const{uploadId:n,key:r}=t,o=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:n,key:r})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,n,r,o,i){const{changeMessage:a,progressCallback:s}=o;a("Chunking and uploading parts to AWS S3...");const u=[];for(let o=0;o<t.length;o++){const a=o*r,c=(o+1)*r,l=o<t.length?e.slice(a,c):e.slice(a),f=fetch(t[o],{method:"PUT",headers:n,body:l,signal:i}).then((e=>{if(e.ok){s(t.length);const n=e.headers.get("etag");if(!n)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:n,PartNumber:o+1}}throw new Error(`Part no ${o} failed with status ${e.status}`)}));u.push(f)}return Promise.all(u)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const n=`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}l.title="S3",t.default=l},13225:function(e,t){"use strict";function n(e){function t(e,t){const n="string"==typeof e?JSON.parse(e):e;for(const e in n)if("headers"===e){const e=n.headers;for(const n in e)t.setRequestHeader(n,e[n])}else t[e]=n[e]}const n=(n,r,o,i,a,s,u)=>new Promise(((c,l)=>{const f=new XMLHttpRequest,p="string"==typeof i,d=new FormData;if("function"==typeof s&&(f.upload.onprogress=s),"function"==typeof u&&u((()=>f.abort())),!p)for(const e in i)d.append(e,i[e]);f.onload=()=>{if(f.status>=200&&f.status<300){let e={};try{e="string"==typeof f.response?JSON.parse(f.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${f.responseURL}/${r}`;t&&"/"===t[0]&&(t=`${n}${t}`),c({url:t,data:e})}else l(f.response||"Unable to upload file")},f.onerror=()=>l(f),f.onabort=()=>l(f);let h=n+(n.indexOf("?")>-1?"&":"?");for(const e in o)h+=`${e}=${o[e]}&`;"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),f.open("POST",h),p&&f.setRequestHeader("Content-Type","application/json");const m=e.getToken();m&&f.setRequestHeader("x-jwt-token",m),a&&t(a,f),f.send(p?i:d)}));return{title:"Url",name:"url",uploadFile(t,r,o,i,a,s,u,c,l,f){const p=function(c){return n(a,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},{[u]:t,name:r,dir:o},s,i,f).then((n=>(n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=c?c.project:"",n.data.form=c?c._id:"",{storage:"url",name:r,url:n.url,size:t.size,type:t.type,data:n.data})))};return t.private&&e.formId?e.loadForm().then((e=>p(e))):p()},deleteFile:(e,n)=>new Promise(((r,o)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?r("File deleted"):o(i.response||"Unable to delete file")},n&&t(n,i),i.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),n(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Url",t.default=n},55474:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,r,o=3,i=null){return n(this,void 0,void 0,(function*(){if(!o)throw new Error(i);return t(...r).catch((()=>e(t,r,o-1,i)))}))}},30430:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const i=o(n(44826));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const r in n)e[r]&&t.setRequestHeader(r,n[r])}};const a={trim:e=>(0,i.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(a.trim).join("/"),upload(e,t,n,o,i,s,u,c,l,f,p){return r(this,void 0,void 0,(function*(){const r=e.getToken();let d;try{d=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},r?{"x-jwt-token":r}:{}),body:JSON.stringify({name:a.path([s,i]),size:o.size,type:o.type,groupPermissions:c,groupId:l,multipart:p})})}catch(e){throw e.networkError=!0,e}if(!d.ok){if(504===d.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield d.text();throw new Error(e||"Unable to sign file.")}const h=yield d.json();return yield a.makeXhrRequest(e,n,h,u,f)}))},makeXhrRequest:(e,n,r,o,i)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;u.openAndSetHeaders=(...n)=>{u.open(...n),(0,t.setXhrHeaders)(e,u)},Promise.resolve(n(u,r,i)).then((e=>{if(!e)return a(r);u.onerror=e=>{e.networkError=!0,s(e)},u.onabort=e=>{e.networkError=!0,s(e)},u.onabort=s,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof i&&i((()=>u.abort())),u.onload=()=>{if(u.status>=200&&u.status<300)a(r);else if(504===u.status){const e=new Error("Network request failed");e.networkError=!0,s(e)}else s(u.response||"Unable to upload file")},u.send(e)})).catch(s)}))};t.default=a},95413:function(e,t,n){"use strict";var r,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const a=i(n(56036));class s{static setLicense(e,t=!1){r.license=e,!t&&r.FormioClass&&r.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){r.pathType=e,!t&&r.FormioClass&&r.FormioClass.setPathType(e)}static debug(...e){r.config.debug&&console.log(...e)}static clearCache(){r.FormioClass&&r.FormioClass.clearCache()}static global(e,t=""){const n=window[e];return t&&n&&!n[t]?null:(r.debug(`Getting global ${e}`,n),n)}static use(e){r.FormioClass&&r.FormioClass.isRenderer?r.FormioClass.use(e):r.modules.push(e)}static createElement(e,t,n){const o=document.createElement(e);return t?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),(n||[]).forEach((e=>{o.appendChild(r.createElement(e.tag,e.attrs,e.children))})),o):o}static addScript(e,t,n,i=""){return o(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>r.addScript(e,t))));if(n&&r.global(n,i))return r.debug(`${n} already loaded.`),Promise.resolve(r.global(n));r.debug("Adding Script",t);try{e.appendChild(r.createElement("script",{src:t}))}catch(e){return r.debug(e),Promise.resolve()}return n?new Promise((e=>{r.debug(`Waiting to load ${n}`);const t=setInterval((()=>{r.global(n,i)&&(clearInterval(t),r.debug(`${n} loaded.`),e(r.global(n)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return o(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>r.addStyles(e,t))):(r.debug("Adding Styles",t),e.appendChild(r.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return o(this,void 0,void 0,(function*(){r.debug("Submision Complete",t),r.config.submitDone&&r.config.submitDone(t,e);const n=(r.config.success||"").toString();n&&"false"!==n.toLowerCase()&&e.element&&(e.element.innerHTML=`<div class="alert-success" role="alert">${n}</div>`);let o=r.config.redirect;if(!o&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(r.debug("Return url found in form configuration"),o=e._form.settings.returnUrl||e._form.settings.redirect),o){const n=e.formio?e.formio.formUrl:"",i=!!o.match(/\?/),a=0===o.indexOf(location.origin);o+=i?"&":"?",o+=`sub=${t._id}`,!a&&n&&(o+=`&form=${encodeURIComponent(n)}`),r.debug("Return URL",o),window.location.href=o,a&&window.location.reload()}}))}static formioScript(e,t){return t=t||r.config.includeBuilder,r.fullAdded||t?(r.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,n){return o(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let n=0;n<t.dependencies.length;n++){const o=t.dependencies[n];yield r.addLibrary(e,r.config.libs[o],o)}if(t.css&&(yield r.addStyles(t.global?document.body:e,t.css)),t.js){const o=yield r.addScript(t.global?document.body:e,t.js,!!t.use&&n);if(t.use){r.debug(`Using ${n}`);const e=t.options||{};!e.license&&r.license&&(e.license=r.license),r.use("function"==typeof t.use?t.use(o):o,e)}}if(t.globalStyle){const e=r.createElement("style");e.type="text/css",e.innerHTML=t.globalStyle,document.body.appendChild(e)}}}))}static addLoader(e){return o(this,void 0,void 0,(function*(){e.appendChild(r.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]))}))}static init(e,t={},n=!1){return o(this,void 0,void 0,(function*(){r.cdn=new a.default(r.config.cdn,r.config.cdnUrls||{}),r.config.libs=r.config.libs||{uswds:{dependencies:["fontawesome"],js:`${r.cdn.uswds}/uswds.min.js`,css:`${r.cdn.uswds}/uswds.min.css`,use:!0},fontawesome:{css:"https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css",globalStyle:"@font-face {\n font-family: 'FontAwesome';\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0');\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');\n font-weight: normal;\n font-style: normal;\n }"},bootstrap4:{dependencies:["fontawesome"],css:`${r.cdn.bootstrap4}/css/bootstrap.min.css`},bootstrap:{dependencies:["bootstrap-icons"],css:`${r.cdn.bootstrap}/css/bootstrap.min.css`},"bootstrap-icons":{css:"https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.min.css",globalStyle:'@font-face {\n font-display: block;\n font-family: "bootstrap-icons";\n src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),\n url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff");\n }'}},["cerulean","cosmo","cyborg","darkly","flatly","journal","litera","lumen","lux","materia","minty","pulse","sandstone","simplex","sketchy","slate","solar","spacelab","superhero","united","yeti"].forEach((e=>{r.config.libs[e]={dependencies:["bootstrap-icons"],css:`${r.cdn.bootswatch}/dist/${e}/bootstrap.min.css`}}));const o=r.config.id||`formio-${Math.random().toString(36).substring(7)}`;let i=r.createElement("div",{id:`${o}-wrapper`});e.parentNode.insertBefore(i,e);const s=r.config.includeLibs&&!r.config.noshadow&&"function"==typeof i.attachShadow;s&&(i=i.attachShadow({mode:"open"}),t.shadowRoot=i),e.parentNode.removeChild(e),i.appendChild(e);const u=s?i:document.body;yield r.addStyles(u,r.config.embedCSS||`${r.cdn.js}/formio.embed.css`),r.addLoader(i);const c=r.config.full?"formio.full":"formio.form",l=r.config.debug?c:`${c}.min`;if(r.FormioClass=yield r.addScript(u,r.formioScript(r.config.script||`${r.cdn.js}/${l}.js`,n),"Formio",n?"isBuilder":"isRenderer"),r.FormioClass.cdn=r.cdn,r.FormioClass.setBaseUrl(t.baseUrl||r.baseUrl||r.config.base),r.FormioClass.setProjectUrl(t.projectUrl||r.projectUrl||r.config.project),r.FormioClass.language=r.language,r.setLicense(r.license||r.config.license||!1),r.modules.forEach((e=>{r.FormioClass.use(e)})),r.icons&&(r.FormioClass.icons=r.icons),r.pathType&&r.FormioClass.setPathType(r.pathType),r.config.template&&r.config.includeLibs&&(yield r.addLibrary(u,r.config.libs[r.config.template],r.config.template)),r.config.libraries||(r.config.libraries=r.config.modules||{}),r.config.premium&&(r.config.libraries.premium=r.config.premium),r.config.libraries)for(const e in r.config.libraries){const t=r.config.libraries[e];t.use=t.use||!0,yield r.addLibrary(u,t,e)}return yield r.addStyles(u,r.formioScript(r.config.style||`${r.cdn.js}/${l}.css`,n)),r.config.before&&(yield r.config.before(r.FormioClass,e,r.config)),r.FormioClass.license=!0,r._formioReady(r.FormioClass),i}))}static afterCreate(e,t,n){return o(this,void 0,void 0,(function*(){const o=t.querySelector(".formio-loader");return o&&t.removeChild(o),r.FormioClass.events.emit(n,e),r.config.after&&(r.debug("Calling ready callback"),r.config.after(e,r.config)),e}))}static createForm(e,t,n={}){return o(this,void 0,void 0,(function*(){if(r.FormioClass)return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0}));const o=yield r.init(e,n);return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0})).then((e=>(r.config.submission&&(r.debug("Setting submission",r.config.submission),e.submission=r.config.submission),r.afterCreate(e,o,"formEmbedded"),e)))}))}static builder(e,t,n={}){var i;return o(this,void 0,void 0,(function*(){if(null===(i=r.FormioClass)||void 0===i?void 0:i.builder)return r.FormioClass.builder(e,t,n);const o=yield r.init(e,n,!0);return r.FormioClass.builder(e,t,n).then((e=>(r.afterCreate(e,o,"builderEmbedded"),e)))}))}}t.Formio=s,r=s,s.FormioClass=null,s.config={},s.modules=[],s.icons="",s.license="",s.formioReady=new Promise(((e,t)=>{r._formioReady=e,r._formioReadyReject=t})),s.version="5.0.0-rc.95",s.Report={create:(e,t,n={})=>o(void 0,void 0,void 0,(function*(){var o;if(null===(o=r.FormioClass)||void 0===o?void 0:o.Report)return r.FormioClass.Report.create(e,t,n);const i=yield r.init(e,n,!0);return r.FormioClass.Report.create(e,t,n).then((e=>(r.afterCreate(e,i,"reportEmbedded"),e)))}))},a.default.defaultCDN=s.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class u{constructor(e,t,n){this.form=t,this.element=e,this.options=n||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return s.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=u;class c extends u{create(){return s.builder(this.element,this.form,this.options)}}t.FormBuilder=c,s.Form=u,s.FormBuilder=c},34040:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const o=n(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const i=n(95413),a=r(n(56036)),s=r(n(59962));o.Formio.cdn=new a.default,o.Formio.Providers=s.default,o.Formio.version="5.0.0-rc.95",a.default.defaultCDN=o.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const u=e=>null==e;o.Formio.prototype.uploadFile=function(e,t,n,r,i,a,c,l,f,p,d,h,m){const y={provider:e,method:"upload",file:t,fileName:n,dir:r};l=l||"file";const g=o.Formio.pluginWait("preRequest",y).then((()=>o.Formio.pluginGet("fileRequest",y).then((o=>{if(e&&u(o)){const o=s.default.getProvider("storage",e);if(o){const e=new o(this);return d&&d(),e.uploadFile(t,n,r,i,a,c,l,f,p,h,m)}throw"Storage provider not found"}return o||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",g,y)},o.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(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 o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},o.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(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 o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=o.Formio[e];o.Formio[e]=function(n){const r=i.Formio[e](n,!0);return t?t.call(this,n):r}})),o.Formio.Promise=Promise,o.Formio.formioReady=i.Formio.formioReady,o.Formio.config=i.Formio.config,o.Formio.builder=i.Formio.builder,o.Formio.Report=i.Formio.Report,o.Formio.Form=i.Formio.Form,o.Formio.FormBuilder=i.Formio.FormBuilder,o.Formio.use=i.Formio.use,o.Formio.createForm=i.Formio.createForm,o.Formio.submitDone=i.Formio.submitDone,o.Formio.addLibrary=i.Formio.addLibrary,o.Formio.addLoader=i.Formio.addLoader,o.Formio.addToGlobal=e=>{"object"!=typeof e||e.Formio||(e.Formio=o.Formio)},void 0!==n.g&&o.Formio.addToGlobal(n.g),"undefined"!=typeof window&&o.Formio.addToGlobal(window),i.Formio._formioReady(o.Formio)},54949:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return y},_areEquals:function(){return T},applyOperation:function(){return O},applyPatch:function(){return A},applyReducer:function(){return j},compare:function(){return I},deepClone:function(){return l},default:function(){return M},escapePathComponent:function(){return p},generate:function(){return D},getValueByPointer:function(){return w},observe:function(){return R},unescapePathComponent:function(){return d},unobserve:function(){return C},validate:function(){return P},validator:function(){return E}});var r={};n.r(r),n.d(r,{JsonPatchError:function(){return g},_areEquals:function(){return T},applyOperation:function(){return O},applyPatch:function(){return A},applyReducer:function(){return j},deepClone:function(){return v},getValueByPointer:function(){return w},validate:function(){return P},validator:function(){return E}});var o={};n.r(o),n.d(o,{compare:function(){return I},generate:function(){return D},observe:function(){return R},unobserve:function(){return C}});var i,a=(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)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function u(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)u(e,o)&&r.push(o);return r}function l(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function p(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var r=c(e),o=r.length,i=0;i<o;i++)if(h(e[r[i]]))return!0;return!1}function m(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var y=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,m(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=m(t,{name:n,index:r,operation:o,tree:i}),s}return a(t,e),t}(Error),g=y,v=l,b={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=w(n,this.path);r&&(r=l(r));var o=O(n,{op:"remove",path:this.from}).removed;return O(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=w(n,this.from);return O(n,{op:"add",path:this.path,value:l(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:T(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},_={add:function(e,t,n){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function w(e,t){if(""==t)return e;var n={op:"_get",path:t};return O(e,n),n.value}function O(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):E(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=w(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=T(e,t.value),!1===a.test)throw new g("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new g("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=l(e));var s=(t.path||"").split("/"),u=e,c=1,p=s.length,h=void 0,m=void 0,y=void 0;for(y="function"==typeof n?n:E;;){if((m=s[c])&&-1!=m.indexOf("~")&&(m=d(m)),o&&("__proto__"==m||"prototype"==m&&c>0&&"constructor"==s[c-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===h&&(void 0===u[m]?h=s.slice(0,c).join("/"):c==p-1&&(h=t.path),void 0!==h&&y(t,0,e,h)),c++,Array.isArray(u)){if("-"===m)m=u.length;else{if(n&&!f(m))throw new g("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",i,t,e);f(m)&&(m=~~m)}if(c>=p){if(n&&"add"===t.op&&m>u.length)throw new g("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=_[t.op].call(t,u,m,e)).test)throw new g("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(c>=p){if(!1===(a=b[t.op].call(t,u,m,e)).test)throw new g("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[m],n&&c<p&&(!u||"object"!=typeof u))throw new g("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function A(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new g("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=l(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=O(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function j(e,t,n){var r=O(e,t);if(!1===r.test)throw new g("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function E(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new g("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!b[e.op])throw new g("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new g("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new g('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 g("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 g("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)&&h(e.value))throw new g("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 o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new g("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!==r)throw new g("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 a=P([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new g("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function P(e,t,n){try{if(!Array.isArray(e))throw new g("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)A(l(t),l(e),n||!0);else{n=n||E;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof g)return e;throw e}}function T(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!T(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!T(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var x=new WeakMap,S=function(e){this.observers=new Map,this.obj=e},k=function(e,t){this.callback=e,this.observer=t};function C(e,t){t.unobserve()}function R(e,t){var n,r=function(e){return x.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new S(e),x.set(e,r);if(n)return n;if(n={},r.value=l(e),t){n.callback=t,n.next=null;var i=function(){D(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){D(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new k(t,n)),n}function D(e,t){void 0===t&&(t=!1);var n=x.get(e.object);U(n.value,e.object,e.patches,"",t),e.patches.length&&A(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function U(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=c(t),a=c(e),s=!1,f=a.length-1;f>=0;f--){var d=e[m=a[f]];if(!u(t,m)||void 0===t[m]&&void 0!==d&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"remove",path:r+"/"+p(m)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[m];"object"==typeof d&&null!=d&&"object"==typeof h&&null!=h&&Array.isArray(d)===Array.isArray(h)?U(d,h,n,r+"/"+p(m),o):d!==h&&(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"replace",path:r+"/"+p(m),value:l(h)}))}}if(s||i.length!=a.length)for(f=0;f<i.length;f++){var m;u(e,m=i[f])||void 0===t[m]||n.push({op:"add",path:r+"/"+p(m),value:l(t[m])})}}}function I(e,t,n){void 0===n&&(n=!1);var r=[];return U(e,t,r,"",n),r}const M=Object.assign({},r,o,{JsonPatchError:y,deepClone:l,escapePathComponent:p,unescapePathComponent:d})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r=n(34040);return r.Formio}()}));
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={79092:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONLogicModule=t.interpolate=t.evaluate=t.JSONLogicEvaluator=void 0;const i=n(84679),a=n(28936);class s extends i.BaseEvaluator{static evaluate(e,t={},n="",r=!1,o={},s={}){let u=null;if("object"==typeof e)try{u=a.jsonLogic.apply(e,t)}catch(e){u=null,console.warn("An error occured within JSON Logic",e)}else u=i.BaseEvaluator.evaluate(e,t,n,r,o,s);return u}}t.JSONLogicEvaluator=s,t.evaluate=function(e,t,n="result",r,o={}){const{evalContext:i,instance:a}=e,u=i?i(e):e;return r&&r(u),a&&a.evaluate?a.evaluate(t,u,n,!1,o):s.evaluate(t,u,n,!1,e,o)},t.interpolate=function(e,t,n){const{evalContext:r,instance:o}=e,i=r?r(e):e;return n&&n(i),o&&o.evaluate?o.interpolate(t,i,{noeval:!0}):s.interpolate(t,i,{noeval:!0})},o(n(28936),t),t.JSONLogicModule={evaluator:s}},28936:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.jsonLogic=void 0;const o=r(n(18678));t.jsonLogic=o.default;const i=n(49599),a=n(19313);for(const e in a._)o.default.add_operation(`_${e}`,a._[e]);o.default.add_operation("getDate",(e=>(0,i.dayjs)(e).toISOString())),o.default.add_operation("relativeMinDate",(e=>(0,i.dayjs)().subtract(e,"days").toISOString())),o.default.add_operation("relativeMaxDate",(e=>(0,i.dayjs)().add(e,"days").toISOString()))},19313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=void 0;const r=n(2543);t._={chunk:r.chunk,compact:r.compact,concat:r.concat,difference:r.difference,drop:r.drop,dropRight:r.dropRight,findIndex:r.findIndex,findLastIndex:r.findLastIndex,first:r.first,flatten:r.flatten,flattenDeep:r.flattenDeep,flattenDepth:r.flattenDepth,fromPairs:r.fromPairs,head:r.head,indexOf:r.indexOf,initial:r.initial,intersection:r.intersection,intersectionBy:r.intersectionBy,intersectionWith:r.intersectionWith,join:r.join,last:r.last,lastIndexOf:r.lastIndexOf,nth:r.nth,slice:r.slice,sortedIndex:r.sortedIndex,sortedIndexBy:r.sortedIndexBy,sortedIndexOf:r.sortedIndexOf,sortedLastIndex:r.sortedLastIndex,sortedLastIndexBy:r.sortedLastIndexBy,sortedLastIndexOf:r.sortedLastIndexOf,sortedUniq:r.sortedUniq,sortedUniqBy:r.sortedUniqBy,tail:r.tail,take:r.take,takeRight:r.takeRight,takeRightWhile:r.takeRightWhile,takeWhile:r.takeWhile,union:r.union,unionBy:r.unionBy,unionWith:r.unionWith,uniq:r.uniq,uniqBy:r.uniqBy,uniqWith:r.uniqWith,unzip:r.unzip,unzipWith:r.unzipWith,without:r.without,xor:r.xor,xorBy:r.xorBy,xorWith:r.xorWith,zip:r.zip,zipObject:r.zipObject,zipObjectDeep:r.zipObjectDeep,zipWith:r.zipWith,countBy:r.countBy,every:r.every,filter:r.filter,find:r.find,findLast:r.findLast,flatMap:r.flatMap,flatMapDeep:r.flatMapDeep,flatMapDepth:r.flatMapDepth,groupBy:r.groupBy,includes:r.includes,invokeMap:r.invokeMap,keyBy:r.keyBy,map:r.map,orderBy:r.orderBy,partition:r.partition,reduce:r.reduce,reduceRight:r.reduceRight,reject:r.reject,sample:r.sample,sampleSize:r.sampleSize,shuffle:r.shuffle,size:r.size,some:r.some,sortBy:r.sortBy,now:r.now,flip:r.flip,negate:r.negate,overArgs:r.overArgs,partial:r.partial,partialRight:r.partialRight,rearg:r.rearg,rest:r.rest,spread:r.spread,castArray:r.castArray,clone:r.clone,cloneDeepWith:r.cloneDeepWith,cloneDeep:r.cloneDeep,conformsTo:r.conformsTo,eq:r.eq,gt:r.gt,gte:r.gte,isArguments:r.isArguments,isArray:r.isArray,isArrayBuffer:r.isArrayBuffer,isArrayLike:r.isArrayLike,isArrayLikeObject:r.isArrayLikeObject,isBoolean:r.isBoolean,isBuffer:r.isBuffer,isDate:r.isDate,isElement:r.isElement,isEmpty:r.isEmpty,isEqual:r.isEqual,isEqualWith:r.isEqualWith,isError:r.isError,isFinite:r.isFinite,isFunction:r.isFunction,isInteger:r.isInteger,isLength:r.isLength,isMap:r.isMap,isMatch:r.isMatch,isMatchWith:r.isMatchWith,isNaN:r.isNaN,isNative:r.isNative,isNil:r.isNil,isNull:r.isNull,isNumber:r.isNumber,isObject:r.isObject,isObjectLike:r.isObjectLike,isPlainObject:r.isPlainObject,isRegExp:r.isRegExp,isSafeInteger:r.isSafeInteger,isSet:r.isSet,isString:r.isString,isSymbol:r.isSymbol,isTypedArray:r.isTypedArray,isUndefined:r.isUndefined,isWeakMap:r.isWeakMap,isWeakSet:r.isWeakSet,lt:r.lt,lte:r.lte,toArray:r.toArray,toFinite:r.toFinite,toInteger:r.toInteger,toLength:r.toLength,toNumber:r.toNumber,toPlainObject:r.toPlainObject,toSafeInteger:r.toSafeInteger,toString:r.toString,add:r.add,ceil:r.ceil,divide:r.divide,floor:r.floor,max:r.max,maxBy:r.maxBy,mean:r.mean,meanBy:r.meanBy,min:r.min,minBy:r.minBy,multiply:r.multiply,round:r.round,subtract:r.subtract,sum:r.sum,sumBy:r.sumBy,clamp:r.clamp,inRange:r.inRange,random:r.random,at:r.at,entries:r.entries,entriesIn:r.entriesIn,findKey:r.findKey,findLastKey:r.findLastKey,functions:r.functions,functionsIn:r.functionsIn,get:r.get,has:r.has,hasIn:r.hasIn,invert:r.invert,invertBy:r.invertBy,invoke:r.invoke,keys:r.keys,keysIn:r.keysIn,mapKeys:r.mapKeys,mapValues:r.mapValues,omit:r.omit,omitBy:r.omitBy,pick:r.pick,pickBy:r.pickBy,result:r.result,toPairs:r.toPairs,toPairsIn:r.toPairsIn,transform:r.transform,values:r.values,valuesIn:r.valuesIn,camelCase:r.camelCase,capitalize:r.capitalize,deburr:r.deburr,endsWith:r.endsWith,escape:r.escape,escapeRegExp:r.escapeRegExp,kebabCase:r.kebabCase,lowerCase:r.lowerCase,lowerFirst:r.lowerFirst,pad:r.pad,padEnd:r.padEnd,padStart:r.padStart,parseInt:r.parseInt,repeat:r.repeat,replace:r.replace,snakeCase:r.snakeCase,split:r.split,startCase:r.startCase,startsWith:r.startsWith,toLower:r.toLower,toUpper:r.toUpper,trim:r.trim,trimEnd:r.trimEnd,trimStart:r.trimStart,truncate:r.truncate,unescape:r.unescape,upperCase:r.upperCase,upperFirst:r.upperFirst,words:r.words,cond:r.cond,conforms:r.conforms,constant:r.constant,defaultTo:r.defaultTo,flow:r.flow,flowRight:r.flowRight,identity:r.identity,iteratee:r.iteratee,matches:r.matches,matchesProperty:r.matchesProperty,method:r.method,methodOf:r.methodOf,nthArg:r.nthArg,over:r.over,overEvery:r.overEvery,overSome:r.overSome,property:r.property,propertyOf:r.propertyOf,range:r.range,rangeRight:r.rangeRight,stubArray:r.stubArray,stubFalse:r.stubFalse,stubObject:r.stubObject,stubString:r.stubString,stubTrue:r.stubTrue,times:r.times,toPath:r.toPath,uniqueId:r.uniqueId}},23370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2543);class o{static identity(e){return e}static deregisterPlugin(e){const t=o.plugins.length;return o.plugins=o.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||r.noop).call(e,o.Formio),!1))),t!==o.plugins.length}static registerPlugin(e,t){o.plugins.push(e),o.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||r.noop).call(e,o.Formio)}static getPlugin(e){for(const t of o.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(o.plugins.map((n=>(n[e]||r.noop).call(n,...t))))}static pluginGet(e,...t){const n=i=>{const a=o.plugins[i];return a?Promise.resolve((a[e]||r.noop).call(a,...t)).then((e=>(0,r.isNil)(e)?n(i+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return o.plugins.reduce(((t,r)=>(r[e]||o.identity)(t,...n)),t)}}o.plugins=[],t.default=o},94394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var r=n(15993);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}})},13778:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Database=void 0,t.Database=class{}},70678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const r=n(2543);class o{static evaluator(e,...t){return i.noeval?(console.warn("No evaluations allowed for this renderer."),r.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,r.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,o,a)=>{if(-1===a.indexOf("(")||i.noeval||n.noeval){let e=a;-1!==a.indexOf("?")&&(e=a.replace(/\?\./g,"."));const o=e.split("||").map((e=>e.trim()));let i="",s="";for(let e=0;e<o.length&&(s=o[e],i=(0,r.get)(t,s),!i);e++);return n.data&&(0,r.set)(n.data,s,i),i}return a.replace(/([^(]+)\(([^)]+)\s*\);?/,((e,o,a)=>{o=(0,r.trim)(o);const s=(0,r.get)(t,o);return s?(a&&(a=a.split(",").map((e=>0===(e=(0,r.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,r.get)(t,e)))),i.evaluate(s,a,"",!1,t,n)):""}))})):""}static interpolate(e,t,n={}){if("function"==typeof e&&!i.noeval&&!n.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return i.interpolateString(String(e),t,n)}static evaluate(e,t={},n="",a=!1,s={},u={}){let c=null;u=(0,r.isObject)(u)?u:{noeval:u};const l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,r.get)(t.instance,"root._form",{}));const f=l.key;if("string"==typeof e){n&&(e=`var ${n};${e};return ${n}`),a&&(e=o.interpolate(e,t,u));try{e=i.noeval||u.noeval?r.noop:i.evaluator(e,t,s),t=(0,r.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${f}`,t),c=null,e=!1}}if("function"==typeof e)try{c=i.execute(e,t,s,u)}catch(e){c=null,console.warn(`An error occured within custom function for ${f}`,e)}else e&&console.warn(`Unknown function type for ${f}`);return c}static execute(e,t,n={},o={}){if(o=(0,r.isObject)(o)?o:{noeval:o},!i.noeval&&!o.noeval)return Array.isArray(t)?e.apply(n,t):e.call(n,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=o,o.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},o.noeval=!1;class i extends o{static registerEvaluator(e){Object.keys(e).forEach((t=>{i[t]=e[t]}))}}t.Evaluator=i},49599:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dayjs=t.isPartialDay=t.getDateValidationFormat=t.getDateSetting=t.formatDate=t.momentDate=t.convertFormatToMoment=t.currentTimezone=void 0;const o=r(n(74353));t.dayjs=o.default;const i=r(n(88569)),a=r(n(83826)),s=r(n(90445)),u=n(2543),c=n(70678);function l(){return o.default.tz.guess()}function f(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}o.default.extend(a.default),o.default.extend(i.default),o.default.extend(s.default),t.currentTimezone=l,t.convertFormatToMoment=f,t.momentDate=function(e,t,n){const r=(0,o.default)(e);return"UTC"===n?o.default.utc():n!==l()||t&&t.match(/\s(z$|z\s)/)?r.tz(n):r},t.formatDate=function(e,t,n){const r=(0,o.default)(e);return"UTC"===n?`${o.default.utc().format(f(t))} UTC`:n?r.tz(n).format(`${f(t)} z`):r.format(f(t))},t.getDateSetting=function(e){if((0,u.isNil)(e)||(0,u.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,o.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=c.Evaluator.evaluator(`return ${e};`,"moment")(o.default);"string"==typeof n?t=(0,o.default)(n):"function"==typeof n.toDate?t=(0,o.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,o.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.getDateValidationFormat=e=>e.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY",t.isPartialDay=(e,t)=>{if(!t)return!0;const[n,r,o]=e.dayFirst?[0,1,2]:[1,0,2],i=t.split("/");return"00"===i[n]||"00"===i[r]||"0000"===i[o]}},55223:function(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)}},60554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},5426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponent=void 0;const r=n(96690);t.eachComponent=function e(t,n,o,i="",a){t&&t.forEach((s=>{if(!s)return;const u=(0,r.componentInfo)(s);let c=!1;a&&(Object.defineProperty(s,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(s.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(s.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows),Object.defineProperty(s,"path",{enumerable:!1,writable:!0,value:(0,r.componentPath)(s,i)}),(o||s.tree||!u.layout)&&(c=!!n(s,s.path,t,a)),c||(u.hasColumns?s.columns.forEach((t=>e(t.components,n,o,i,a?s:null))):u.hasRows?s.rows.forEach((t=>{Array.isArray(t)&&t.forEach((t=>e(t.components,n,o,i,a?s:null)))})):u.hasComps&&e(s.components,n,o,(0,r.componentFormPath)(s,i,s.path),a?s:null))}))}},83736:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentAsync=void 0;const o=n(96690);t.eachComponentAsync=function e(t,n){return r(this,arguments,void 0,(function*(t,n,r=!1,i="",a){var s,u;if(t)for(let c=0;c<t.length;c++){if(!t[c])continue;const l=t[c],f=(0,o.componentInfo)(l);if(a&&(Object.defineProperty(l,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(l.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(l.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete l.parent.components,delete l.parent.componentMap,delete l.parent.columns,delete l.parent.rows),Object.defineProperty(l,"path",{enumerable:!1,writable:!0,value:(0,o.componentPath)(l,i)}),!r&&!l.tree&&f.layout||!(yield n(l,l.path,t,a)))if(f.hasColumns)for(let t=0;t<l.columns.length;t++)yield e(null===(s=l.columns[t])||void 0===s?void 0:s.components,n,r,i,a?l:null);else if(f.hasRows)for(let t=0;t<l.rows.length;t++){const o=l.rows[t];if(Array.isArray(o))for(let t=0;t<o.length;t++)yield e(null===(u=o[t])||void 0===u?void 0:u.components,n,r,i,a?l:null)}else f.hasComps&&(yield e(l.components,n,r,(0,o.componentFormPath)(l,i,l.path),a?l:null))}}))}},57330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentData=void 0;const r=n(2543),o=n(96690),i=n(5426);t.eachComponentData=(e,n,a,s="",u,c,l=!1)=>{if(e&&n)return(0,i.eachComponent)(e,((e,i,c,f)=>{const p=(0,o.getContextualRowData)(e,i,n);if(!0===a(e,n,p,i,c,u,f))return!0;if((0,o.isComponentNestedDataType)(e)){const c=(0,r.get)(n,i,n);if(Array.isArray(c)){for(let r=0;r<c.length;r++){const s="nestedDataArray"===(0,o.getModelType)(e)?`${i}[${r}].data`:`${i}[${r}]`;(0,t.eachComponentData)(e.components,n,a,s,r,e,l)}return!0}if((0,r.isEmpty)(p)&&!l)return!0;if("dataObject"===(0,o.getModelType)(e)){const c=(0,r.get)(n,e.path),f=(null==c?void 0:c._id)&&(0,r.isEmpty)(c.data)&&!(0,r.has)(c,"form");if((null==c?void 0:c._id)?!f:(0,r.has)(n,e.path)){const c=(0,o.componentDataPath)(e,s,i),f=(0,r.get)(n,c,{});(0,t.eachComponentData)(e.components,f,a,"",u,e,l),(0,r.set)(n,c,f)}}else(0,t.eachComponentData)(e.components,n,a,(0,o.componentDataPath)(e,s,i),u,e,l);return!0}if("none"===(0,o.getModelType)(e)){const r=(0,o.componentInfo)(e);if(r.hasColumns){const r=e;r.columns.forEach((i=>(0,t.eachComponentData)(i.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)))}else if(r.hasRows){const r=e;r.rows.forEach((i=>{Array.isArray(i)&&i.forEach((i=>(0,t.eachComponentData)(i.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)))}))}else if(r.hasComps){const r=e;(0,t.eachComponentData)(r.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)}return!0}return!1}),!0,s,c)}},42264:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=void 0;const o=n(2543),i=n(96690),a=n(83736);t.eachComponentDataAsync=(e,n,s,...u)=>r(void 0,[e,n,s,...u],void 0,(function*(e,n,s,u="",c,l,f=!1){if(e&&n)return yield(0,a.eachComponentAsync)(e,((e,a,l,p)=>r(void 0,void 0,void 0,(function*(){const r=(0,i.getContextualRowData)(e,a,n);if(!0===(yield s(e,n,r,a,l,c,p)))return!0;if((0,i.isComponentNestedDataType)(e)){const l=(0,o.get)(n,a,n);if(Array.isArray(l)){for(let r=0;r<l.length;r++){const o="nestedDataArray"===(0,i.getModelType)(e)?`${a}[${r}].data`:`${a}[${r}]`;yield(0,t.eachComponentDataAsync)(e.components,n,s,o,r,e,f)}return!0}if((0,o.isEmpty)(r)&&!f)return!0;if("dataObject"===(0,i.getModelType)(e)){const r=(0,o.get)(n,e.path),l=(null==r?void 0:r._id)&&(0,o.isEmpty)(r.data)&&!(0,o.has)(r,"form");if((null==r?void 0:r._id)?!l:(0,o.has)(n,e.path)){const r=(0,i.componentDataPath)(e,u,a),l=(0,o.get)(n,r,null);yield(0,t.eachComponentDataAsync)(e.components,l,s,"",c,e,f),(0,o.set)(n,r,l)}}else yield(0,t.eachComponentDataAsync)(e.components,n,s,(0,i.componentDataPath)(e,u,a),c,e,f);return!0}if("none"===(0,i.getModelType)(e)){const r=(0,i.componentInfo)(e);if(r.hasColumns){const r=e;for(const o of r.columns)yield(0,t.eachComponentDataAsync)(o.components,n,s,u,c,e)}else if(r.hasRows){const r=e;for(const o of r.rows)if(Array.isArray(o))for(const r of o)yield(0,t.eachComponentDataAsync)(r.components,n,s,u,c,e)}else if(r.hasComps){const r=e;yield(0,t.eachComponentDataAsync)(r.components,n,s,(0,i.componentFormPath)(r,u,r.path),c,e)}return!0}return!1}))),!0,u,l)}))},96690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=t.eachComponentAsync=t.eachComponentData=t.eachComponent=t.compareSelectResourceWithObjectTypeValues=t.isSelectResourceWithObjectValue=t.getItemTemplateKeys=t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.componentFormPath=t.componentDataPath=t.componentPath=t.isComponentNestedDataType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES_OF_KNOWN_COMPONENTS=t.uniqueName=t.guid=t.flattenComponents=void 0;const r=n(2543),o=n(54949),i=n(70678),a=n(5426);Object.defineProperty(t,"eachComponent",{enumerable:!0,get:function(){return a.eachComponent}});const s=n(57330);Object.defineProperty(t,"eachComponentData",{enumerable:!0,get:function(){return s.eachComponentData}});const u=n(83736);Object.defineProperty(t,"eachComponentAsync",{enumerable:!0,get:function(){return u.eachComponentAsync}});const c=n(42264);function l(){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 f(e){if(e.modelType)return e.modelType;for(const n of Object.keys(t.MODEL_TYPES_OF_KNOWN_COMPONENTS))if(t.MODEL_TYPES_OF_KNOWN_COMPONENTS[n].includes(e.type))return n;return!1===e.input?"none":"any"}function p(e){return e.tree||"nestedArray"===f(e)||"nestedDataArray"===f(e)||"dataObject"===f(e)||"object"===f(e)||"map"===f(e)}function d(e,t){t=e.parentPath||t;const n=h(e);return n?t?`${t}.${n}`:n:t||""}function h(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function m(e,t){return t.replace(new RegExp(`.?${h(e)}$`),"")}function y(e,t){if((0,r.isString)(t))return e.key===t||e.path===t;{let n=!1;return(0,r.forOwn)(t,((t,o)=>{if(n=(0,r.get)(e,o)===t,!n)return!1})),n}}function g(e,t){const n=[];return(0,a.eachComponent)(e,(e=>{y(e,t)&&n.push(e)}),!0),n}function v(e,t){const n=t.pop();0!==t.length&&(e=(0,r.get)(e,t)),e.splice(n,1)}function b(e){return parseFloat((0,r.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function _(e,t,n,r){if(e){if(n=n||[],!t)return r(e);e.forEach((function(o,i){const a=n.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,n){const o=a.slice();o.push(n),o.push("components"),_(e.components,t,o,r)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,n){const o=a.slice();o.push(n),e.forEach((function(e,n){const i=o.slice();i.push(n),i.push("components"),_(e.components,t,i,r)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),_(o.components,t,a,r)),o.key===t&&r(o,a,e))}))}}function w(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}Object.defineProperty(t,"eachComponentDataAsync",{enumerable:!0,get:function(){return c.eachComponentDataAsync}}),t.flattenComponents=function(e,t=!1){const n={};return(0,a.eachComponent)(e,((e,t)=>{n[t]=e}),t),n},t.guid=l,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 s=o.length>1?`.${(0,r.last)(o)}`:"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:l()}),`${i.Evaluator.interpolate(t,n)}${s}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES_OF_KNOWN_COMPONENTS={nestedArray:["datagrid","editgrid","datatable","dynamicWizard"],nestedDataArray:["tagpad"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],string:["textfield","password","email","url","phoneNumber","day","datetime","time","signature"],number:["number","currency"],boolean:["checkbox","radio"],none:["table","well","columns","fieldset","panel","tabs"],any:["survey","captcha","textarea","selectboxes","tags","select","hidden","button","datasource","sketchpad","reviewpage","file"]},t.getModelType=f,t.getComponentAbsolutePath=function(e){const t=[e.path];for(;e.parent;)"dataObject"===f(e=e.parent)&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const n=h(e);return n?t?t.match(new RegExp(`${n}$`))?t:"none"===f(e)?`${t}.${n}`:t:n:t},t.isComponentNestedDataType=p,t.componentPath=d,t.componentDataPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),e.components&&Array.isArray(e.components)?"dataObject"===f(e)?`${n}.data`:"nestedArray"===f(e)?`${n}[0]`:"nestedDataArray"===f(e)?`${n}[0].data`:p(e)?n:t:n),t.componentFormPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),"dataObject"===f(e)?`${n}.data`:p(e)?n:t),t.getComponentKey=h,t.getContextualRowPath=m,t.getContextualRowData=function(e,t,n){const o=m(e,t);return o?(0,r.get)(n,o,null):n},t.componentInfo=function(e){const t=e.columns&&Array.isArray(e.columns),n=e.rows&&Array.isArray(e.rows),r=e.components&&Array.isArray(e.components),o="content"===f(e),i="none"===f(e),a=!e.hasOwnProperty("input")||!!e.input;return{hasColumns:t,hasRows:n,hasComps:r,layout:t||n||r&&!a||i||o,iterable:t||n||r||o}},t.getComponentData=function(e,t,n){const r={component:null,data:null};return(0,s.eachComponentData)(e,t,((e,t,o,i)=>{if(i===n)return r.component=e,r.data=o,!0})),r},t.getComponentActualValue=function(e,t,n,o){var i;let a=null,s=e,u="";for(;(null===(i=null==s?void 0:s.parent)||void 0===i?void 0:i.path)&&!a;)s=s.parent,s.input&&(a=s);if(a){const e=a.path.replace(/\[[0-9]+\]/g,"");u=t.replace(e,""),u=(0,r.trim)(u,". ")}let c=null;return n&&(c=(0,r.get)(n,t)),u&&o&&(0,r.isNil)(c)&&(c=(0,r.get)(o,u)),((0,r.isNil)(c)||(0,r.isObject)(c)&&(0,r.isEmpty)(c))&&(c=""),c},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.matchComponent=y,t.getComponent=function(e,t,n=!1){let r;return(0,a.eachComponent)(e,((e,n)=>{if(n===t||e.path===t||e.input&&e.key===t)return r=e,!0}),n),r},t.searchComponents=g,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),g(e,t)},t.removeComponent=v,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction&&(0,r.isBoolean)(e.conditional.show)&&!(0,r.isEmpty)(e.conditional.conditions)))},t.parseFloatExt=b,t.formatAsCurrency=function(e){const t=b(e);if(isNaN(t))return"";const n=(0,r.round)(t,2).toString().split(".");return n[0]=(0,r.chunk)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,r.pad)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,r.isPlainObject)(e)){if((0,r.has)(e,t))return(0,r.get)(e,t);let o=null;return(0,r.forOwn)(e,(e=>{const t=n(e);if(!(0,r.isNil)(t))return o=t,!1})),o}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(0,a.eachComponent)(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,r)=>{n.push({key:e.key,property:`value[${r}].label`,string:e.values[r].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},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,o.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){let i=!1;switch(t.op){case"add":{let n=t.component;_(e.components,t.container,null,(function(o){t.container||(o=e),_(e.components,t.key,null,(function(t,r){n=t,v(e.components,r)})),i=!0,(0,r.get)(o,t.path).splice(t.index,0,n)}));break}case"remove":_(e.components,t.key,null,(function(t,n){i=!0,(0,r.get)(e.components,n).key!==t.key&&n.pop(),v(e.components,n)}));break;case"edit":_(e.components,t.key,null,(function(a,s){i=!0;try{const n=(0,r.get)(e.components,s),i=(0,o.applyPatch)(a,t.patches).newDocument;n.key!==i.key&&s.pop(),(0,r.set)(e.components,s,i)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.findComponent=_,t.getEmptyValue=w;const O=e=>{const t="<p> </p>",n="<p><br></p>",r="<p><br> </p>",o=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${r}|${r}$`,"g");return"string"==typeof e?e.replace(o,"").trim():e};function A(e,t){const n=!(!(0,r.isArray)(t)||1!==t.length)&&(0,r.isEqual)(t[0],w(e));return null==t||""===t||(0,r.isArray)(t)&&0===t.length||n}function j(e){const t=[];if(!e)return t;const n=e.match(/({{\s*(.*?)\s*}})/g);return n&&n.forEach((e=>{const n=e.match(/{{\s*item\.(.*?)\s*}}/);n&&n.length>1&&t.push(n[1])})),t}t.isComponentDataEmpty=function e(t,n,o,i){var a;const u=(0,r.isNil)(i)?(0,r.get)(n,o):i;if((e=>"checkbox"===(null==e?void 0:e.type))(t))return A(t,u)||!1===u;if((e=>"address"===(null==e?void 0:e.type))(t))return 0===Object.keys(u).length||!Object.values((0,r.omit)(u,["mode","address"])).some(Boolean);if((e=>"datagrid"===(null==e?void 0:e.type))(t)||(e=>"editgrid"===(null==e?void 0:e.type))(t)||(e=>"datatable"===(null==e?void 0:e.type))(t)||(e=>null!=(null==e?void 0:e.components))(t)){if(null===(a=t.components)||void 0===a?void 0:a.length){let r=!0;return(0,s.eachComponentData)([t],n,((n,o,i,a)=>{t.key!==n.key&&(e(n,o,a)||(r=!1))})),A(t,u)||r}return A(t,u)}if((e=>"datetime"===(null==e?void 0:e.type))(t))return A(t,u)||"Invalid date"===u.toString();if((e=>"selectboxes"===(null==e?void 0:e.type))(t)){let e=!0;for(const t in u)if(u[t]){e=!1;break}return A(t,u)||e}if((e=>"textarea"===(null==e?void 0:e.type))(t)){const e=!t.wysiwyg&&!t.editor;return A(t,e?"string"==typeof u?u.trim():u:function(e){return e?e=Array.isArray(e)?e.map((e=>O(e))):O(e):e}(u))}return(e=>"textfield"===(null==e?void 0:e.type))(t)?t.allowMultipleMasks&&t.inputMasks&&t.inputMasks.length?A(t,u)||(t.multiple?0===u.length:!u.maskName||!u.value):A(t,null==u?void 0:u.toString().trim()):A(t,u)},t.getItemTemplateKeys=j,t.isSelectResourceWithObjectValue=function(e={}){const{reference:t,dataSrc:n,valueProperty:r}=e;return t||"resource"===n&&(!r||"data"===r)},t.compareSelectResourceWithObjectTypeValues=function(e,t,n){if(!e||!(0,r.isPlainObject)(e))return!1;const{template:o,valueProperty:i}=n;return"data"===i&&(e={data:e},t={data:t}),(0,r.every)(j(o)||[],(n=>(0,r.isEqual)((0,r.get)(e,n),(0,r.get)(t,n))))}},84679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.dom=t.Utils=t.unwind=t.override=t.sanitize=t.JSONLogicEvaluator=t.BaseEvaluator=t.Evaluator=void 0;var s=n(70678);Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return s.Evaluator}}),Object.defineProperty(t,"BaseEvaluator",{enumerable:!0,get:function(){return s.BaseEvaluator}});var u=n(79092);Object.defineProperty(t,"JSONLogicEvaluator",{enumerable:!0,get:function(){return u.JSONLogicEvaluator}});var c=n(29688);Object.defineProperty(t,"sanitize",{enumerable:!0,get:function(){return c.sanitize}});var l=n(62243);Object.defineProperty(t,"override",{enumerable:!0,get:function(){return l.override}});var f=n(17690);Object.defineProperty(t,"unwind",{enumerable:!0,get:function(){return f.unwind}}),t.Utils=i(n(96690)),t.dom=i(n(55223)),a(n(10002),t),a(n(49599),t),a(n(715),t),a(n(60554),t),a(n(13778),t)},17112:function(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,r=e.split(".")[n];if("string"!=typeof r)throw new Error("Invalid token specified: missing part #"+(n+1));let o;try{o=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)}}(r)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(o)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},715:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchInputMask=t.getInputMask=void 0;const r=n(2543);t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let r=0;r<e.length;r++)switch(e[r]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[r])}return n},t.matchInputMask=function(e,t){if(!t)return!0;if(e.length>t.length)return!1;for(let n=0;n<t.length;n++){const o=e[n],i=t[n];if(!((0,r.isRegExp)(i)&&i.test(o)||i===o))return!1}return!0}},62243:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.override=void 0,t.override=function(e,t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];if("function"==typeof r)e.prototype[n]=r;else{const t=Object.getOwnPropertyDescriptor(e.prototype,n);for(const e in r)r.hasOwnProperty(e)&&(t[e]=r[e](t[e]));Object.defineProperty(e.prototype,n,t)}}}},29688:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=void 0;const o=r(n(42838));let i=null;t.sanitize=function(e,t){const n=i||(window?(i=(0,o.default)(window),i):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),e;const r={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=>{r.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(r.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(r.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(r.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(r.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(r.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),n.sanitize(e,r)}},17690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwind=t.rewind=t.mergeArray=t.mergeObject=void 0;const r=n(2543),o=n(60554),i=n(96690);function a(e,t){(0,r.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){const n={};(0,r.each)(e,(function(e,t){Array.isArray(e)||(n[t]=e)}));const o=(0,r.find)(t,n);o?a(e,o):t.push(e)}))}t.mergeObject=a,t.mergeArray=s,t.rewind=function(e){const t={data:{}};return e&&e.length&&e.forEach((e=>a(e.data,t.data))),t},t.unwind=function(e,t){const n={},a={},s=[(0,o.fastCloneDeep)(t)],u=function(e,t,n,i,l){for(i=i||0,l=l||0;(0,r.has)(a,"["+l+"]."+n);)l+1>=s.length&&s.push((0,o.fastCloneDeep)(s[l])),l++;const f=n.replace(/\.[^\.]+$/,"");!(0,r.has)(s[l].data,f)&&s[l-1]&&(0,r.has)(s[l-1].data,f)&&(0,r.set)(s[l].data,f,(0,o.fastCloneDeep)((0,r.get)(s[l-1].data,f)));const p=[];(0,r.set)(s[l].data,n,p),(0,r.set)(a,"["+l+"]."+n,!0);for(let r=i;r<t.length;r++){if(!(r-i<=e.max)){u(e,t,n,r,l);break}p.push(t[r]),e.paths&&Object.keys(e.paths).length&&c(e.paths,t[r],n+"["+(r-i)+"]",l)}},c=function(e,t,n,r){for(const o in e){const i=e[o];t[o]&&Array.isArray(t[o])&&u(i,t[o],n?n+"."+o:o,0,r)}},l=function(e,t,n,r){const o=t[n=n||0].match(/([^\[]+)\[?([0-9]+)?\]?/);if(o&&3===o.length){const i=o[1],a=parseInt(o[2],10)||0;e[i]?a>e[i].max&&(e[i].max=a):e[i]={max:a,param:i,parent:r||null,paths:{}},n+1<t.length&&l(e[i].paths,t,n+1,e[i])}};return(0,i.eachComponent)(e.components,(function(e,t){var o;if("form"===e.type&&(null===(o=e.components)||void 0===o?void 0:o.length)&&(0,i.eachComponent)(e.components,(e=>{e.isInsideNestedForm=!0})),!e.overlay||!e.overlay.width&&!e.overlay.height)return;const a=e.properties&&e.properties.dataPath;let s=e.key;a&&(t=e.properties.dataPath,s=e.properties.dataPath);const u=(0,r.filter)(t.replace(new RegExp(".?"+e.key+"$"),"").split("."));a||!u.length||e.isInsideNestedForm||(s=u.join(".")+"."+e.key),e.multiple&&u.push(e.key),e.key=s,u&&u.length&&l(n,u)}),!0),c(n,t.data),s}},10002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetEphermalState=t.attachResourceToDom=t.registerEphermalState=t.unescapeHTML=t.boolValue=t.escapeRegExCharacters=void 0;const r=n(2543);t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.boolValue=function(e){return(0,r.isBoolean)(e)?e:(0,r.isString)(e)?"true"===e.toLowerCase():!!e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.registerEphermalState=function(e,t,n){e.ephermalState||Object.defineProperty(e,"ephermalState",{enumerable:!1,configurable:!0,writable:!0,value:{}}),Object.defineProperty(e.ephermalState,t,{enumerable:!1,writable:!1,configurable:!0,value:n})},t.attachResourceToDom=function(e){const{name:t,formio:n,onload:r,rootElement:o}=e;let{src:i}=e;i=Array.isArray(i)?i:[i],i.forEach((e=>{let i={},a="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":a="script",i={src:e.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":a="link",i={href:e.src,rel:"stylesheet"}}const s=document.createElement(a);if(s.setAttribute)for(const e in i)s.setAttribute(e,i[e]);if(r&&s.addEventListener("load",(()=>{n.libraries[t].loaded=!0,r(n.libraries[t].ready)})),o)return void o.insertAdjacentElement("afterend",s);const{head:u}=document;u&&u.appendChild(s)}))},t.resetEphermalState=function(e){e.ephermalState&&delete e.ephermalState}},24715:function(e,t,n){var r,o;r=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,n)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},u.apply(this,arguments)}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),l=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var n=s(l);function l(){var t;return e(this,l),(t=n.call(this)).listeners||c.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(a(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return r(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(c),f=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var n=e;if(void 0===n)if("undefined"==typeof document)(n=new Error("This operation was aborted")).name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(e){(n=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(f.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,o=void 0===r?n.Request:r,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!p({fetch:n,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||s)&&((u=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new o(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=o.prototype);var c=n;return{fetch:function(e,t){var n=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(e){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var o=new Promise((function(e,t){n.addEventListener("abort",(function(){return t(r)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:u}}(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:f}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n.g)},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},81018:function(e,t){t.defaults={},t.set=function(e,n,r){var o=r||{},i=t.defaults,a=o.expires||i.expires,s=o.domain||i.domain,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(s?";domain="+s:"")+(u?";path="+u:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+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(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},74353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var _="$isDayjsObject",w=function(e){return e instanceof E||!(!e||!e[_])},O=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(v=o),o||!r&&v},A=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},j=g;j.l=O,j.i=w,j.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=O(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(j.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},y.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()},y.$utils=function(){return j},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=A(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return A(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<A(e)},y.$g=function(e,t,n){return j.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!j.u(t)||t,p=j.p(e),d=function(e,t){var r=j.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return j.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case l:return c?d(1,0):d(31,11);case u:return c?d(1,y):d(0,y+1);case s:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return d(c?g-_:g+(6-_),y);case a:case f:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var s,c=j.p(e),p="set"+(this.$u?"UTC":""),d=(s={},s[a]=p+"Date",s[f]=p+"Date",s[u]=p+"Month",s[l]=p+"FullYear",s[i]=p+"Hours",s[o]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var m=this.clone().set(f,1);m.$d[d](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[j.p(e)]()},y.add=function(n,c){var f,p=this;n=Number(n);var d=j.p(c),h=function(e){var t=A(p);return j.w(t.date(t.date()+Math.round(e*n)),p)};if(d===u)return this.set(u,this.$M+n);if(d===l)return this.set(l,this.$y+n);if(d===a)return h(1);if(d===s)return h(7);var m=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[d]||1,y=this.$d.getTime()+n*m;return j.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=j.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return j.s(i%12||12,e,"0")},m=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return j.s(t.$y,4,"0");case"M":return s+1;case"MM":return j.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return t.$D;case"DD":return j.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,u,2);case"ddd":return f(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(i);case"HH":return j.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return j.s(a,2,"0");case"s":return String(t.$s);case"ss":return j.s(t.$s,2,"0");case"SSS":return j.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,p){var d,h=this,m=j.p(f),y=A(n),g=(y.utcOffset()-this.utcOffset())*e,v=this-y,b=function(){return j.m(h,y)};switch(m){case l:d=b()/12;break;case u:d=b();break;case c:d=b()/3;break;case s:d=(v-g)/6048e5;break;case a:d=(v-g)/864e5;break;case i:d=v/t;break;case o:d=v/e;break;case r:d=v/1e3;break;default:d=v}return p?d:j.a(d)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return j.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),P=E.prototype;return A.prototype=P,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,E,A),e.$i=!0),A},A.locale=O,A.isDayjs=w,A.unix=function(e){return A(1e3*e)},A.en=b[v],A.Ls=b,A.p={},A}()},90445:function(e){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},u=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=f(e,!1)}],a:[i,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[r,u("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,u("week")],ww:[r,u("week")],M:[o,u("month")],MM:[r,u("month")],MMM:[i,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function d(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,u=0;u<s;u+=1){var c=i[u],l=p[c],f=l&&l[0],d=l&&l[1];i[u]=d?{regex:f,parser:d}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,u=o.parser,c=e.slice(r),l=a.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var u=!0===i[2],c=!0===i[3],l=u||c,f=i[2];c&&(f=i[2]),a=this.$locale(),!u&&f&&(a=n.Ls[f]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=d(t)(e),i=o.year,a=o.month,s=o.day,u=o.hours,c=o.minutes,l=o.seconds,f=o.milliseconds,p=o.zone,h=o.week,m=new Date,y=s||(i||a?1:m.getDate()),g=i||m.getFullYear(),v=0;i&&!a||(v=a>0?a-1:m.getMonth());var b,_=u||0,w=c||0,O=l||0,A=f||0;return p?new Date(Date.UTC(g,v,y,_,w,O,A+60*p.offset*1e3)):n?new Date(Date.UTC(g,v,y,_,w,O,A)):(b=new Date(g,v,y,_,w,O,A),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){i[1]=s[h-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},88569:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,o){var i,a=function(e,n,r){void 0===r&&(r={});var o=new Date(e),i=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=e+"|"+r,i=t[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[o]=i),i}(n,r);return i.formatToParts(o)},s=function(t,n){for(var r=a(t,n),i=[],s=0;s<r.length;s+=1){var u=r[s],c=u.type,l=u.value,f=e[c];f>=0&&(i[f]=parseInt(l,10))}var p=i[3],d=24===p?0:p,h=i[0]+"-"+i[1]+"-"+i[2]+" "+d+":"+i[4]+":"+i[5]+":000",m=+t;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},u=r.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n,r=this.utcOffset(),a=this.toDate(),s=a.toLocaleString("en-US",{timeZone:e}),u=Math.round((a-new Date(s))/1e3/60),c=15*-Math.round(a.getTimezoneOffset()/15)-u;if(Number(c)){if(n=o(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var l=n.utcOffset();n=n.add(r-l,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},u.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),u,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}}}()},83826:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var u=a.init;a.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 u.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,e)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),o=i(e).local();return p.call(r,o,t,n)}}}()},42838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const l=A(Array.prototype.forEach),f=A(Array.prototype.pop),p=A(Array.prototype.push),d=A(String.prototype.toLowerCase),h=A(String.prototype.toString),m=A(String.prototype.match),y=A(String.prototype.replace),g=A(String.prototype.indexOf),v=A(String.prototype.trim),b=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),w=(O=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(O,t)});var O;function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function j(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function E(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function P(t){const n=s(null);for(const[r,o]of e(t))b(t,r)&&(Array.isArray(o)?n[r]=E(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=P(o):n[r]=o);return n}function T(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=r(e)}return function(){return null}}const x=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),D=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=i(["#text"]),I=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),M=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F=a(/<%[\w\W]*|[\w\W]*%>/gm),z=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),q=a(/^aria-[\-\w]+$/),W=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:F,TMPLIT_EXPR:z,DATA_ATTR:B,ARIA_ATTR:q,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:Y,DOCTYPE_NAME:G,CUSTOM_ELEMENT:V});const Z=1,K=3,X=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 r=e=>t(e);if(r.version="3.1.6",r.removed=[],!n||!n.document||n.document.nodeType!==ee)return r.isSupported=!1,r;let{document:o}=n;const a=o,u=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:O,Node:A,Element:E,NodeFilter:L,NamedNodeMap:F=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:z,DOMParser:B,trustedTypes:q}=n,H=E.prototype,Y=T(H,"cloneNode"),V=T(H,"remove"),ne=T(H,"nextSibling"),re=T(H,"childNodes"),oe=T(H,"parentNode");if("function"==typeof O){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ie,ae="";const{implementation:se,createNodeIterator:ue,createDocumentFragment:ce,getElementsByTagName:le}=o,{importNode:fe}=a;let pe={};r.isSupported="function"==typeof e&&"function"==typeof oe&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:he,TMPLIT_EXPR:me,DATA_ATTR:ye,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:ve,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:_e}=J;let{IS_ALLOWED_URI:we}=J,Oe=null;const Ae=j({},[...x,...S,...k,...R,...U]);let je=null;const Ee=j({},[...I,...M,...$,...N]);let Pe=Object.seal(s(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}})),Te=null,xe=null,Se=!0,ke=!0,Ce=!1,Re=!0,De=!1,Ue=!0,Ie=!1,Me=!1,$e=!1,Ne=!1,Le=!1,Fe=!1,ze=!0,Be=!1,qe=!0,We=!1,He={},Ye=null;const Ge=j({},["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 Ve=null;const Je=j({},["audio","video","img","source","image","track"]);let Ze=null;const Ke=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,nt=!1,rt=null;const ot=j({},[Xe,Qe,et],h);let it=null;const at=["application/xhtml+xml","text/html"];let st=null,ut=null;const ct=o.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ut||ut!==e){if(e&&"object"==typeof e||(e={}),e=P(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===it?h:d,Oe=b(e,"ALLOWED_TAGS")?j({},e.ALLOWED_TAGS,st):Ae,je=b(e,"ALLOWED_ATTR")?j({},e.ALLOWED_ATTR,st):Ee,rt=b(e,"ALLOWED_NAMESPACES")?j({},e.ALLOWED_NAMESPACES,h):ot,Ze=b(e,"ADD_URI_SAFE_ATTR")?j(P(Ke),e.ADD_URI_SAFE_ATTR,st):Ke,Ve=b(e,"ADD_DATA_URI_TAGS")?j(P(Je),e.ADD_DATA_URI_TAGS,st):Je,Ye=b(e,"FORBID_CONTENTS")?j({},e.FORBID_CONTENTS,st):Ge,Te=b(e,"FORBID_TAGS")?j({},e.FORBID_TAGS,st):{},xe=b(e,"FORBID_ATTR")?j({},e.FORBID_ATTR,st):{},He=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Ne=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,$e=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||W,tt=e.NAMESPACE||et,Pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(ke=!1),Le&&(Ne=!0),He&&(Oe=j({},U),je=[],!0===He.html&&(j(Oe,x),j(je,I)),!0===He.svg&&(j(Oe,S),j(je,M),j(je,N)),!0===He.svgFilters&&(j(Oe,k),j(je,M),j(je,N)),!0===He.mathMl&&(j(Oe,R),j(je,$),j(je,N))),e.ADD_TAGS&&(Oe===Ae&&(Oe=P(Oe)),j(Oe,e.ADD_TAGS,st)),e.ADD_ATTR&&(je===Ee&&(je=P(je)),j(je,e.ADD_ATTR,st)),e.ADD_URI_SAFE_ATTR&&j(Ze,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(Ye===Ge&&(Ye=P(Ye)),j(Ye,e.FORBID_CONTENTS,st)),qe&&(Oe["#text"]=!0),Ie&&j(Oe,["html","head","body"]),Oe.table&&(j(Oe,["tbody"]),delete Te.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.');ie=e.TRUSTED_TYPES_POLICY,ae=ie.createHTML("")}else void 0===ie&&(ie=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(q,u)),null!==ie&&"string"==typeof ae&&(ae=ie.createHTML(""));i&&i(e),ut=e}},pt=j({},["mi","mo","mn","ms","mtext"]),dt=j({},["foreignobject","annotation-xml"]),ht=j({},["title","style","font","a","script"]),mt=j({},[...S,...k,...C]),yt=j({},[...R,...D]),gt=function(e){p(r.removed,{element:e});try{oe(e).removeChild(e)}catch(t){V(e)}},vt=function(e,t){try{p(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Ne||Le)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if($e)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&tt===et&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ie?ie.createHTML(e):e;if(tt===et)try{t=(new B).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?ae:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),tt===et?le.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},_t=function(e){return ue.call(e.ownerDocument||e,e,L.SHOW_ELEMENT|L.SHOW_COMMENT|L.SHOW_TEXT|L.SHOW_PROCESSING_INSTRUCTION|L.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof F)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(e){return"function"==typeof A&&e instanceof A},At=function(e,t,n){pe[e]&&l(pe[e],(e=>{e.call(r,t,n,ut)}))},jt=function(e){let t=null;if(At("beforeSanitizeElements",e,null),wt(e))return gt(e),!0;const n=st(e.nodeName);if(At("uponSanitizeElement",e,{tagName:n,allowedTags:Oe}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return gt(e),!0;if(e.nodeType===X)return gt(e),!0;if(Ue&&e.nodeType===Q&&_(/<[/\w]/g,e.data))return gt(e),!0;if(!Oe[n]||Te[n]){if(!Te[n]&&Pt(n)){if(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,n))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))return!1}if(qe&&!Ye[n]){const t=oe(e)||e.parentNode,n=re(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=Y(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ne(e))}}return gt(e),!0}return e instanceof E&&!function(e){let t=oe(e);t&&t.tagName||(t={namespaceURI:tt,tagName:"template"});const n=d(e.tagName),r=d(t.tagName);return!!rt[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===et?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(mt[n]):e.namespaceURI===Xe?t.namespaceURI===et?"math"===n:t.namespaceURI===Qe?"math"===n&&dt[r]:Boolean(yt[n]):e.namespaceURI===et?!(t.namespaceURI===Qe&&!dt[r])&&!(t.namespaceURI===Xe&&!pt[r])&&!yt[n]&&(ht[n]||!mt[n]):!("application/xhtml+xml"!==it||!rt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===K&&(t=e.textContent,l([de,he,me],(e=>{t=y(t,e," ")})),e.textContent!==t&&(p(r.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(gt(e),!0)},Et=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(ke&&!xe[t]&&_(ye,t));else if(Se&&_(ge,t));else if(!je[t]||xe[t]){if(!(Pt(e)&&(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&_(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||"is"===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&_(Pe.tagNameCheck,n)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))))return!1}else if(Ze[t]);else if(_(we,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==g(n,"data:")||!Ve[e])if(Ce&&!_(ve,y(n,be,"")));else if(n)return!1;return!0},Pt=function(e){return"annotation-xml"!==e&&m(e,_e)},Tt=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:u}=i,c=st(a);let p="value"===a?u:v(u);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,n),p=n.attrValue,Ue&&_(/((--!?|])>)|<\/(style|title)/i,p)){vt(a,e);continue}if(n.forceKeepAttr)continue;if(vt(a,e),!n.keepAttr)continue;if(!Re&&_(/\/>/i,p)){vt(a,e);continue}De&&l([de,he,me],(e=>{p=y(p,e," ")}));const d=st(e.nodeName);if(Et(d,c,p)){if(!Be||"id"!==c&&"name"!==c||(vt(a,e),p="user-content-"+p),ie&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(s);else switch(q.getAttributeType(d,c)){case"TrustedHTML":p=ie.createHTML(p);break;case"TrustedScriptURL":p=ie.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),wt(e)?gt(e):f(r.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},xt=function e(t){let n=null;const r=_t(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),jt(n)||(n.content instanceof c&&e(n.content),Tt(n));At("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,s=null;if(nt=!e,nt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(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(!r.isSupported)return e;if(Me||ft(t),r.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=st(e.nodeName);if(!Oe[t]||Te[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof A)n=bt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Z&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!Ne&&!De&&!Ie&&-1===e.indexOf("<"))return ie&&Fe?ie.createHTML(e):e;if(n=bt(e),!n)return Ne?null:Fe?ae:""}n&&$e&>(n.firstChild);const u=_t(We?e:n);for(;i=u.nextNode();)jt(i)||(i.content instanceof c&&xt(i.content),Tt(i));if(We)return e;if(Ne){if(Le)for(s=ce.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(je.shadowroot||je.shadowrootmode)&&(s=fe.call(a,s,!0)),s}let f=Ie?n.outerHTML:n.innerHTML;return Ie&&Oe["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(G,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),De&&l([de,he,me],(e=>{f=y(f,e," ")})),ie&&Fe?ie.createHTML(f):f},r.setConfig=function(){ft(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},r.clearConfig=function(){ut=null,Me=!1},r.isValidAttribute=function(e,t,n){ut||ft({});const r=st(e),o=st(t);return Et(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],p(pe[e],t))},r.removeHook=function(e){if(pe[e])return f(pe[e])},r.removeHooks=function(e){pe[e]&&(pe[e]=[])},r.removeAllHooks=function(){pe={}},r}()}()},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},42681:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function p(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 d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(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 y(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=g(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:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(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):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=y(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?y(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(v)}),this.text=function(){var e,t,r,o=y(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[p(e)]},m.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},m.prototype.set=function(e,t){this.map[p(e)]=d(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function j(e,t){if(!(this instanceof j))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)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},j.error=function(){var e=new j(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];j.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new j(null,{status:t,headers:{location:e}})},t.DOMException=o.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 P(e,i){return new n((function(n,a){var u=new O(e,i);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.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(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new j(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":c&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof m?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}P.polyfill=!0,o.fetch||(o.fetch=P,o.Headers=m,o.Request=O,o.Response=j),t.Headers=m,t.Request=O,t.Response=j,t.fetch=P,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},18678:function(e,t,n){var r,o;r=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:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};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,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,s,u,c=e.get_operator(n),l=n[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(o=0;o<l.length-1;o+=2)if(e.truthy(e.apply(l[o],r)))return e.apply(l[o+1],r);return l.length===o+1?e.apply(l[o],r):null}if("and"===c){for(o=0;o<l.length;o+=1)if(i=e.apply(l[o],r),!e.truthy(i))return i;return i}if("or"===c){for(o=0;o<l.length;o+=1)if(i=e.apply(l[o],r),e.truthy(i))return i;return i}if("filter"===c)return s=e.apply(l[0],r),a=l[1],Array.isArray(s)?s.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===c)return s=e.apply(l[0],r),a=l[1],Array.isArray(s)?s.map((function(t){return e.apply(a,t)})):[];if("reduce"===c)return s=e.apply(l[0],r),a=l[1],u=void 0!==l[2]?e.apply(l[2],r):null,Array.isArray(s)?s.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),u):u;if("all"===c){if(s=e.apply(l[0],r),a=l[1],!Array.isArray(s)||!s.length)return!1;for(o=0;o<s.length;o+=1)if(!e.truthy(e.apply(a,s[o])))return!1;return!0}if("none"===c){if(s=e.apply(l[0],r),a=l[1],!Array.isArray(s)||!s.length)return!0;for(o=0;o<s.length;o+=1)if(e.truthy(e.apply(a,s[o])))return!1;return!0}if("some"===c){if(s=e.apply(l[0],r),a=l[1],!Array.isArray(s)||!s.length)return!1;for(o=0;o<s.length;o+=1)if(e.truthy(e.apply(a,s[o])))return!0;return!1}if(l=l.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(r,l);if(c.indexOf(".")>0){var f=String(c).split("."),p=t;for(o=0;o<f.length;o++){if(!p.hasOwnProperty(f[o]))throw new Error("Unrecognized operation "+c+" (failed at "+f.slice(0,o+1).join(".")+")");p=p[f[o]]}return p.apply(r,l)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},51873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},34932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},61074:function(e){e.exports=function(e){return e.split("")}},2523:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},72552:function(e,t,n){var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},96131:function(e,t,n){var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},85463:function(e){e.exports=function(e){return e!=e}},25160:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},77556:function(e,t,n){var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:function(e,t,n){var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},28754:function(e,t,n){var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},23875:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},28380:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},34840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659:function(e,t,n){var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},49698:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,n){var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76959:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},63912:function(e,t,n){var r=n(61074),o=n(49698),i=n(42054);e.exports=function(e){return o(e)?i(e):r(e)}},31800:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},42054:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");e.exports=function(e){return e.match(p)||[]}},56449:function(e){var t=Array.isArray;e.exports=t},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",v="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",O="[object Map]",A="[object Number]",j="[object Object]",E="[object Promise]",P="[object RegExp]",T="[object Set]",x="[object String]",S="[object Symbol]",k="[object WeakMap]",C="[object ArrayBuffer]",R="[object DataView]",D="[object Float32Array]",U="[object Float64Array]",I="[object Int8Array]",M="[object Int16Array]",$="[object Int32Array]",N="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",z="[object Uint32Array]",B=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(H.source),V=RegExp(Y.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Te="\\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",xe="["+we+"]",Se="["+Te+"]",ke="["+Oe+"]",Ce="\\d+",Re="["+Ae+"]",De="["+je+"]",Ue="[^"+we+Te+Ce+Ae+je+Ee+"]",Ie="\\ud83c[\\udffb-\\udfff]",Me="[^"+we+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ee+"]",Fe="\\u200d",ze="(?:"+De+"|"+Ue+")",Be="(?:"+Le+"|"+Ue+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+ke+"|"+Ie+")?",Ye="["+Pe+"]?",Ge=Ye+He+"(?:"+Fe+"(?:"+[Me,$e,Ne].join("|")+")"+Ye+He+")*",Ve="(?:"+[Re,$e,Ne].join("|")+")"+Ge,Je="(?:"+[Me+ke+"?",ke,$e,Ne,xe].join("|")+")",Ze=RegExp("['’]","g"),Ke=RegExp(ke,"g"),Xe=RegExp(Ie+"(?="+Ie+")|"+Je+Ge,"g"),Qe=RegExp([Le+"?"+De+"+"+qe+"(?="+[Se,Le,"$"].join("|")+")",Be+"+"+We+"(?="+[Se,Le+ze,"$"].join("|")+")",Le+"?"+ze+"+"+qe,Le+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Ve].join("|"),"g"),et=RegExp("["+Fe+we+Oe+Pe+"]"),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"],rt=-1,ot={};ot[D]=ot[U]=ot[I]=ot[M]=ot[$]=ot[N]=ot[L]=ot[F]=ot[z]=!0,ot[m]=ot[y]=ot[C]=ot[g]=ot[R]=ot[v]=ot[b]=ot[_]=ot[O]=ot[A]=ot[j]=ot[P]=ot[T]=ot[x]=ot[k]=!1;var it={};it[m]=it[y]=it[C]=it[R]=it[g]=it[v]=it[D]=it[U]=it[I]=it[M]=it[$]=it[O]=it[A]=it[j]=it[P]=it[T]=it[x]=it[S]=it[N]=it[L]=it[F]=it[z]=!0,it[b]=it[_]=it[k]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&&ct.process,yt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,bt=yt&&yt.isMap,_t=yt&&yt.isRegExp,wt=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function At(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 jt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function St(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function kt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Dt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ut(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Mt=qt("length");function $t(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,zt,n)}function Ft(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zt(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function qt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Vt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Jt(e){return function(t){return e(t)}}function Zt(e,t){return Ct(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=Wt({À:"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=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function ln(e){return rn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):Mt(e)}function fn(e){return rn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,we=t.Error,Oe=t.Function,Ae=t.Math,je=t.Object,Ee=t.RegExp,Pe=t.String,Te=t.TypeError,xe=r.prototype,Se=Oe.prototype,ke=je.prototype,Ce=t["__core-js_shared__"],Re=Se.toString,De=ke.hasOwnProperty,Ue=0,Ie=(n=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=ke.toString,$e=Re.call(je),Ne=ft._,Le=Ee("^"+Re.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=ht?t.Buffer:o,ze=t.Symbol,Be=t.Uint8Array,qe=Fe?Fe.allocUnsafe:o,We=an(je.getPrototypeOf,je),He=je.create,Ye=ke.propertyIsEnumerable,Ge=xe.splice,Ve=ze?ze.isConcatSpreadable:o,Je=ze?ze.iterator:o,Xe=ze?ze.toStringTag:o,et=function(){try{var e=ci(je,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Ae.ceil,dt=Ae.floor,mt=je.getOwnPropertySymbols,yt=Fe?Fe.isBuffer:o,Mt=t.isFinite,Wt=xe.join,mn=an(je.keys,je),yn=Ae.max,gn=Ae.min,vn=oe.now,bn=t.parseInt,_n=Ae.random,wn=xe.reverse,On=ci(t,"DataView"),An=ci(t,"Map"),jn=ci(t,"Promise"),En=ci(t,"Set"),Pn=ci(t,"WeakMap"),Tn=ci(je,"create"),xn=Pn&&new Pn,Sn={},kn=$i(On),Cn=$i(An),Rn=$i(jn),Dn=$i(En),Un=$i(Pn),In=ze?ze.prototype:o,Mn=In?In.valueOf:o,$n=In?In.toString:o;function Nn(e){if(es(e)&&!qa(e)&&!(e instanceof Bn)){if(e instanceof zn)return e;if(De.call(e,"__wrapped__"))return Ni(e)}return new zn(e)}var Ln=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Fn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Vn(e,t){var n=qa(e),r=!n&&Ba(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Gt(e.length,Pe):[],u=s.length;for(var c in e)!t&&!De.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,u))||s.push(c);return s}function Jn(e){var t=e.length;return t?e[Hr(0,t-1)]:o}function Zn(e,t){return Ri(To(e),ir(t,0,e.length))}function Kn(e){return Ri(To(e))}function Xn(e,t,n){(n!==o&&!La(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];De.call(e,t)&&La(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(La(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&xo(t,ks(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Es(e,t[n]);return a}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Qa(e))return e;var f=qa(e);if(f){if(s=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),!u)return To(e,s)}else{var p=pi(e),d=p==_||p==w;if(Ga(e))return wo(e,u);if(p==j||p==m||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return xo(e,fi(e),t)}(e,function(e,t){return e&&xo(t,Cs(t),e)}(s,e)):function(e,t){return xo(e,li(e),t)}(e,nr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case C:return Oo(e);case g:case v:return new o(+e);case R:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case U:case I:case M:case $:case N:case L:case F:case z:return Ao(e,n);case O:return new o;case A:case x:return new o(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new o;case S:return r=e,Mn?je(Mn.call(r)):{}}}(e,p,u)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),is(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,o){s.set(o,ar(r,t,n,o,e,a))}));var y=f?o:(l?c?ni:ti:c?Cs:ks)(e);return Et(y||e,(function(r,o){y&&(r=e[o=r]),Qn(s,o,ar(r,t,n,o,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=je(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Te(i);return xi((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=St,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Ct(t,Jt(n))),r?(i=kt,a=!1):t.length>=200&&(i=Kt,a=!1,t=new Yn(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Nn.templateSettings={escape:J,evaluate:Z,interpolate:K,variable:"",imports:{_:Nn}},Nn.prototype=Fn.prototype,Nn.prototype.constructor=Nn,zn.prototype=Ln(Fn.prototype),zn.prototype.constructor=zn,Bn.prototype=Ln(Fn.prototype),Bn.prototype.constructor=Bn,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return De.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:De.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(An||Wn),string:new qn}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!An||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var lr=Co(vr),fr=Co(br,!0);function pr(e,t){var n=!0;return lr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var yr=Ro(),gr=Ro(!0);function vr(e,t){return e&&yr(e,t,ks)}function br(e,t){return e&&gr(e,t,ks)}function _r(e,t){return xt(t,(function(t){return Za(e[t])}))}function wr(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Mi(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return qa(e)?r:Rt(r,n(e))}function Ar(e){return null==e?e===o?"[object Undefined]":"[object Null]":Xe&&Xe in je(e)?function(e){var t=De.call(e,Xe),n=e[Xe];try{e[Xe]=o;var r=!0}catch(e){}var i=Me.call(e);return r&&(t?e[Xe]=n:delete e[Xe]),i}(e):function(e){return Me.call(e)}(e)}function jr(e,t){return e>t}function Er(e,t){return null!=e&&De.call(e,t)}function Pr(e,t){return null!=e&&t in je(e)}function Tr(e,t,n){for(var i=n?kt:St,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Ct(p,Jt(t))),l=gn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Yn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var m=p[d],y=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,y):i(f,y,n))){for(u=s;--u;){var g=c[u];if(!(g?Kt(g,y):i(e[u],y,n)))continue e}h&&h.push(y),f.push(m)}}return f}function xr(e,t,n){var r=null==(e=Ei(e,t=go(t,e)))?e:e[Mi(Ji(t))];return null==r?o:At(r,e,n)}function Sr(e){return es(e)&&Ar(e)==m}function kr(e,t,n,r,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=qa(e),u=qa(t),c=s?y:pi(e),l=u?y:pi(t),f=(c=c==m?j:c)==j,p=(l=l==m?j:l)==j,d=c==l;if(d&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Gn),s||us(e)?Qo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case g:case v:case A:return La(+e,+t);case b:return e.name==t.name&&e.message==t.message;case P:case x:return e==t+"";case O:var s=on;case T:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Qo(s(e),s(t),r,o,i,a);return a.delete(e),l;case S:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=f&&De.call(e,"__wrapped__"),_=p&&De.call(t,"__wrapped__");if(h||_){var w=h?e.value():e,E=_?t.value():t;return a||(a=new Gn),i(w,E,n,r,a)}}return!!d&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,u=ti(e),c=u.length;if(c!=ti(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:De.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var y=e[f=u[l]],g=t[f];if(r)var v=s?r(g,y,f,t,e,a):r(y,g,f,e,t,a);if(!(v===o?y===g||i(y,g,n,r,a):v)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,kr,i))}function Cr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=je(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Gn;if(r)var d=r(l,f,c,e,t,p);if(!(d===o?kr(f,l,3,r,p):d))return!1}}return!0}function Rr(e){return!(!Qa(e)||(t=e,Ie&&Ie in t))&&(Za(e)?Le:me).test($i(e));var t}function Dr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?qa(e)?Nr(e[0],e[1]):$r(e):fu(e)}function Ur(e){if(!wi(e))return mn(e);var t=[];for(var n in je(e))De.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ir(e,t){return e<t}function Mr(e,t){var n=-1,o=Ha(e)?r(e.length):[];return lr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function $r(e){var t=ui(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(n){return n===e||Cr(n,e,t)}}function Nr(e,t){return vi(e)&&Oi(t)?Ai(Mi(e),t):function(n){var r=Es(n,e);return r===o&&r===t?Ps(n,e):kr(t,r,3)}}function Lr(e,t,n,r,i){e!==t&&yr(t,(function(a,s){if(i||(i=new Gn),Qa(a))!function(e,t,n,r,i,a,s){var u=Pi(e,n),c=Pi(t,n),l=s.get(c);if(l)Xn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):o,p=f===o;if(p){var d=qa(c),h=!d&&Ga(c),m=!d&&!h&&us(c);f=c,d||h||m?qa(u)?f=u:Ya(u)?f=To(u):h?(p=!1,f=wo(c,!0)):m?(p=!1,f=Ao(c,!0)):f=[]:rs(c)||Ba(c)?(f=u,Ba(u)?f=ys(u):Qa(u)&&!Za(u)||(f=hi(c))):p=!1}p&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),Xn(e,n,f)}}(e,t,s,n,Lr,r,i);else{var u=r?r(Pi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Xn(e,s,u)}}),Cs)}function Fr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:o}function zr(e,t,n){t=t.length?Ct(t,(function(e){return qa(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=Ct(t,Jt(ai()));var o=Mr(e,(function(e,n,o){var i=Ct(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=jo(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Zr(i,go(a,e),s)}return i}function qr(e,t,n,r){var o=r?Ft:Lt,i=-1,a=t.length,s=e;for(e===t&&(t=To(t)),n&&(s=Ct(e,Jt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hr(e,t){return e+dt(_n()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Si(ji(e,t,nu),e+"")}function Vr(e){return Jn(Ls(e))}function Jr(e,t){var n=Ls(e);return Ri(n,ir(t,0,n.length))}function Zr(e,t,n,r){if(!Qa(e))return e;for(var i=-1,a=(t=go(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Mi(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Qa(f)?f:yi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Kr=xn?function(e,t){return xn.set(e,t),e}:nu,Xr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:nu;function Qr(e){return Ri(Ls(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var n;return lr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===o;i<a;){var f=dt((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,y=ss(p);if(s)var g=r||m;else g=l?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);g?i=f+1:a=f}return gn(a,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!La(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:ss(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(qa(e))return Ct(e,ao)+"";if(ss(e))return $n?$n.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=St,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=kt;else if(i>=200){var c=t?null:Go(e);if(c)return un(c);a=!1,o=Kt,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function uo(e,t){return null==(e=Ei(e,t=go(t,e)))||delete e[Mi(Ji(t))]}function co(e,t,n,r){return Zr(e,t,n(wr(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Dt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||s,e[u],t,n));return so(mr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Ya(e)?e:[]}function yo(e){return"function"==typeof e?e:nu}function go(e,t){return qa(e)?e:vi(e,t)?[e]:Ii(gs(e))}var vo=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var _o=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function Ao(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ss(e),s=t!==o,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Eo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=yn(a-s,0),f=r(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function Po(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=yn(a-u,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||i<a)&&(p[h+n[s]]=e[i++]);return p}function To(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function xo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?rr(n,u,c):Qn(n,u,c)}return n}function So(e,t){return function(n,r){var o=qa(n)?jt:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function ko(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&gi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=je(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Co(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=je(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=je(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Do(e){return function(t){var n=rn(t=gs(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Uo(e){return function(t){return Dt(Zs(Bs(t).replace(Ze,"")),e,"")}}function Io(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ln(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Mo(e){return function(t,n,r){var i=je(t);if(!Ha(t)){var a=ai(n,3);t=ks(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function $o(e){return ei((function(t){var n=t.length,r=n,a=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(i);if(a&&!u&&"wrapper"==oi(s))var u=new zn([],!0)}for(r=u?r:n;++r<n;){var c=oi(s=t[r]),l="wrapper"==c?ri(s):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==s.length&&bi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function No(e,t,n,i,a,s,u,l,f,p){var d=t&c,h=1&t,m=2&t,y=24&t,g=512&t,v=m?o:Io(e);return function c(){for(var b=arguments.length,_=r(b),w=b;w--;)_[w]=arguments[w];if(y)var O=ii(c),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,O);if(i&&(_=Eo(_,i,a,y)),s&&(_=Po(_,s,u,y)),b-=A,y&&b<p){var j=sn(_,O);return Ho(e,t,No,c.placeholder,n,_,j,l,f,p-b)}var E=h?n:this,P=m?E[e]:e;return b=_.length,l?_=function(e,t){for(var n=e.length,r=gn(t.length,n),i=To(e);r--;){var a=t[r];e[r]=yi(a,n)?i[a]:o}return e}(_,l):g&&b>1&&_.reverse(),d&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(P=v||Io(P)),P.apply(E,_)}}function Lo(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Fo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function zo(e){return ei((function(t){return t=Ct(t,Jt(ai())),Gr((function(n){var r=this;return e(t,(function(e){return At(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,pt(e/ln(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&gi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=yn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Ho(e,t,n,r,i,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],h=n.apply(o,d);return bi(e)&&Ti(h,d),h.placeholder=r,ki(h,e,t)}function Yo(e){var t=Ae[e];return function(e,n){if(e=ms(e),(n=null==n?0:gn(ds(n),292))&&Mt(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=En&&1/un(new En([,-0]))[1]==l?function(e){return new En(e)}:su;function Vo(e){return function(t){var n=pi(t);return n==O?on(t):n==T?cn(t):function(e,t){return Ct(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Te(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:yn(ds(p),0),d=d===o?d:ds(d),m-=l?l.length:0,64&t){var y=a,g=l;a=l=o}var v=h?o:ri(e),b=[e,t,n,a,l,y,g,f,p,d];if(v&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Eo(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Po(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,v),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:yn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var i=Io(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ii(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=f.length)<n?Ho(e,t,No,a.placeholder,o,u,f,o,o,n-s):At(this&&this!==ft&&this instanceof a?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?No.apply(o,b):function(e,t,n,o){var i=1&t,a=Io(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++s];return At(p,i?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Io(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ki((v?Kr:Ti)(_,b),e,t)}function Zo(e,t,n,r){return e===o||La(e,ke[n])&&!De.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Lr(e,t,o,Ko,a),a.delete(t)),e}function Xo(e){return rs(e)?o:e}function Qo(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<u;){var m=e[p],y=t[p];if(r)var g=s?r(y,m,p,t,e,a):r(m,y,p,e,t,a);if(g!==o){if(g)continue;d=!1;break}if(h){if(!It(t,(function(e,t){if(!Kt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!i(m,y,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Si(ji(e,o,Wi),e+"")}function ti(e){return Or(e,ks,li)}function ni(e){return Or(e,Cs,fi)}var ri=xn?function(e){return xn.get(e)}:su;function oi(e){for(var t=e.name+"",n=Sn[t],r=De.call(Sn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(De.call(Nn,"placeholder")?Nn:e).placeholder}function ai(){var e=Nn.iteratee||ru;return e=e===ru?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var li=mt?function(e){return null==e?[]:(e=je(e),xt(mt(e),(function(t){return Ye.call(e,t)})))}:hu,fi=mt?function(e){for(var t=[];e;)Rt(t,li(e)),e=We(e);return t}:hu,pi=Ar;function di(e,t,n){for(var r=-1,o=(t=go(t,e)).length,i=!1;++r<o;){var a=Mi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&yi(a,o)&&(qa(e)||Ba(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Ln(We(e))}function mi(e){return qa(e)||Ba(e)||!!(Ve&&e&&e[Ve])}function yi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function gi(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&yi(t,n.length):"string"==r&&t in n)&&La(n[t],e)}function vi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||Q.test(e)||!X.test(e)||null!=t&&e in je(t)}function bi(e){var t=oi(e),n=Nn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(On&&pi(new On(new ArrayBuffer(1)))!=R||An&&pi(new An)!=O||jn&&pi(jn.resolve())!=E||En&&pi(new En)!=T||Pn&&pi(new Pn)!=k)&&(pi=function(e){var t=Ar(e),n=t==j?e.constructor:o,r=n?$i(n):"";if(r)switch(r){case kn:return R;case Cn:return O;case Rn:return E;case Dn:return T;case Un:return k}return t});var _i=Ce?Za:mu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function Oi(e){return e==e&&!Qa(e)}function Ai(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in je(n))}}function ji(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),At(e,this,u)}}function Ei(e,t){return t.length<2?e:wr(e,eo(t,0,-1))}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=Ci(Kr),xi=lt||function(e,t){return ft.setTimeout(e,t)},Si=Ci(Xr);function ki(e,t,n){var r=t+"";return Si(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ci(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Hr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Di,Ui,Ii=(Di=Da((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Ui.size&&Ui.clear(),e})),Ui=Di.cache,Di);function Mi(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $i(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Li=Gr((function(e,t){return Ya(e)?cr(e,mr(t,1,Ya,!0)):[]})),Fi=Gr((function(e,t){var n=Ji(t);return Ya(n)&&(n=o),Ya(e)?cr(e,mr(t,1,Ya,!0),ai(n,2)):[]})),zi=Gr((function(e,t){var n=Ji(t);return Ya(n)&&(n=o),Ya(e)?cr(e,mr(t,1,Ya,!0),o,n):[]}));function Bi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=yn(r+o,0)),Nt(e,ai(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ds(n),i=n<0?yn(r+i,0):gn(i,r-1)),Nt(e,ai(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Yi=Gr((function(e){var t=Ct(e,mo);return t.length&&t[0]===e[0]?Tr(t):[]})),Gi=Gr((function(e){var t=Ji(e),n=Ct(e,mo);return t===Ji(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,ai(t,2)):[]})),Vi=Gr((function(e){var t=Ji(e),n=Ct(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Gr(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var Xi=ei((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,Ct(t,(function(e){return yi(e,n)?+e:e})).sort(jo)),r}));function Qi(e){return null==e?e:wn.call(e)}var ea=Gr((function(e){return so(mr(e,1,Ya,!0))})),ta=Gr((function(e){var t=Ji(e);return Ya(t)&&(t=o),so(mr(e,1,Ya,!0),ai(t,2))})),na=Gr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,so(mr(e,1,Ya,!0),o,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Ya(e))return t=yn(e.length,t),!0})),Gt(t,(function(t){return Ct(e,qt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Ct(n,(function(e){return At(t,o,e)}))}var ia=Gr((function(e,t){return Ya(e)?cr(e,t):[]})),aa=Gr((function(e){return po(xt(e,Ya))})),sa=Gr((function(e){var t=Ji(e);return Ya(t)&&(t=o),po(xt(e,Ya),ai(t,2))})),ua=Gr((function(e){var t=Ji(e);return t="function"==typeof t?t:o,po(xt(e,Ya),o,t)})),ca=Gr(ra),la=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oa(e,n)}));function fa(e){var t=Nn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ha=So((function(e,t,n){De.call(e,n)?++e[n]:rr(e,n,1)})),ma=Mo(Bi),ya=Mo(qi);function ga(e,t){return(qa(e)?Et:lr)(e,ai(t,3))}function va(e,t){return(qa(e)?Pt:fr)(e,ai(t,3))}var ba=So((function(e,t,n){De.call(e,n)?e[n].push(t):rr(e,n,[t])})),_a=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return lr(e,(function(e){a[++o]=i?At(t,e,n):xr(e,t,n)})),a})),wa=So((function(e,t,n){rr(e,n,t)}));function Oa(e,t){return(qa(e)?Ct:Mr)(e,ai(t,3))}var Aa=So((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ja=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&gi(e,t[0],t[1])?t=[]:n>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,mr(t,1),[])})),Ea=ct||function(){return ft.Date.now()};function Pa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,c,o,o,o,o,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var xa=Gr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(xa));r|=u}return Jo(e,r,t,n,o)})),Sa=Gr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ii(Sa));r|=u}return Jo(t,r,e,n,o)}));function ka(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Te(i);function m(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function y(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=s}function g(){var e=Ea();if(y(e))return v(e);c=xi(g,function(e){var n=t-(e-l);return d?gn(n,s-(e-f)):n}(e))}function v(e){return c=o,h&&r?m(e):(r=a=o,u)}function b(){var e=Ea(),n=y(e);if(r=arguments,a=this,l=e,n){if(c===o)return function(e){return f=e,c=xi(g,t),p?m(e):u}(l);if(d)return _o(c),c=xi(g,t),m(l)}return c===o&&(c=xi(g,t)),u}return t=ms(t)||0,Qa(n)&&(p=!!n.leading,s=(d="maxWait"in n)?yn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&_o(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:v(Ea())},b}var Ca=Gr((function(e,t){return ur(e,1,t)})),Ra=Gr((function(e,t,n){return ur(e,ms(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Hn),n}function Ua(e){if("function"!=typeof e)throw new Te(i);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)}}Da.Cache=Hn;var Ia=vo((function(e,t){var n=(t=1==t.length&&qa(t[0])?Ct(t[0],Jt(ai())):Ct(mr(t,1),Jt(ai()))).length;return Gr((function(r){for(var o=-1,i=gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return At(e,this,r)}))})),Ma=Gr((function(e,t){var n=sn(t,ii(Ma));return Jo(e,u,o,t,n)})),$a=Gr((function(e,t){var n=sn(t,ii($a));return Jo(e,64,o,t,n)})),Na=ei((function(e,t){return Jo(e,256,o,o,o,t)}));function La(e,t){return e===t||e!=e&&t!=t}var Fa=Wo(jr),za=Wo((function(e,t){return e>=t})),Ba=Sr(function(){return arguments}())?Sr:function(e){return es(e)&&De.call(e,"callee")&&!Ye.call(e,"callee")},qa=r.isArray,Wa=gt?Jt(gt):function(e){return es(e)&&Ar(e)==C};function Ha(e){return null!=e&&Xa(e.length)&&!Za(e)}function Ya(e){return es(e)&&Ha(e)}var Ga=yt||mu,Va=vt?Jt(vt):function(e){return es(e)&&Ar(e)==v};function Ja(e){if(!es(e))return!1;var t=Ar(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Za(e){if(!Qa(e))return!1;var t=Ar(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Jt(bt):function(e){return es(e)&&pi(e)==O};function ns(e){return"number"==typeof e||es(e)&&Ar(e)==A}function rs(e){if(!es(e)||Ar(e)!=j)return!1;var t=We(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==$e}var os=_t?Jt(_t):function(e){return es(e)&&Ar(e)==P},is=wt?Jt(wt):function(e){return es(e)&&pi(e)==T};function as(e){return"string"==typeof e||!qa(e)&&es(e)&&Ar(e)==x}function ss(e){return"symbol"==typeof e||es(e)&&Ar(e)==S}var us=Ot?Jt(Ot):function(e){return es(e)&&Xa(e.length)&&!!ot[Ar(e)]},cs=Wo(Ir),ls=Wo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ha(e))return as(e)?fn(e):To(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=pi(e);return(t==O?on:t==T?un:Ls)(e)}function ps(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Vt(e);var n=he.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function ys(e){return xo(e,Cs(e))}function gs(e){return null==e?"":ao(e)}var vs=ko((function(e,t){if(wi(t)||Ha(t))xo(t,ks(t),e);else for(var n in t)De.call(t,n)&&Qn(e,n,t[n])})),bs=ko((function(e,t){xo(t,Cs(t),e)})),_s=ko((function(e,t,n,r){xo(t,Cs(t),e,r)})),ws=ko((function(e,t,n,r){xo(t,ks(t),e,r)})),Os=ei(or),As=Gr((function(e,t){e=je(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&gi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Cs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||La(f,ke[l])&&!De.call(e,l))&&(e[l]=a[l])}return e})),js=Gr((function(e){return e.push(o,Ko),At(Ds,o,e)}));function Es(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Ps(e,t){return null!=e&&di(e,t,Pr)}var Ts=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Qs(nu)),xs=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),De.call(e,t)?e[t].push(n):e[t]=[n]}),ai),Ss=Gr(xr);function ks(e){return Ha(e)?Vn(e):Ur(e)}function Cs(e){return Ha(e)?Vn(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in je(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&De.call(e,r))&&n.push(r);return n}(e)}var Rs=ko((function(e,t,n){Lr(e,t,n)})),Ds=ko((function(e,t,n,r){Lr(e,t,n,r)})),Us=ei((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ct(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),xo(e,ni(e),n),r&&(n=ar(n,7,Xo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Is=ei((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return Ps(e,n)}))}(e,t)}));function Ms(e,t){if(null==e)return{};var n=Ct(ni(e),(function(e){return[e]}));return t=ai(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var $s=Vo(ks),Ns=Vo(Cs);function Ls(e){return null==e?[]:Zt(e,ks(e))}var Fs=Uo((function(e,t,n){return t=t.toLowerCase(),e+(n?zs(t):t)}));function zs(e){return Js(gs(e).toLowerCase())}function Bs(e){return(e=gs(e))&&e.replace(ve,en).replace(Ke,"")}var qs=Uo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Uo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Do("toLowerCase"),Ys=Uo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Uo((function(e,t,n){return e+(n?" ":"")+Js(t)})),Vs=Uo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Do("toUpperCase");function Zs(e,t,n){return e=gs(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ks=Gr((function(e,t){try{return At(e,o,t)}catch(e){return Ja(e)?e:new we(e)}})),Xs=ei((function(e,t){return Et(t,(function(t){t=Mi(t),rr(e,t,xa(e[t],e))})),e}));function Qs(e){return function(){return e}}var eu=$o(),tu=$o(!0);function nu(e){return e}function ru(e){return Dr("function"==typeof e?e:ar(e,1))}var ou=Gr((function(e,t){return function(n){return xr(n,e,t)}})),iu=Gr((function(e,t){return function(n){return xr(e,n,t)}}));function au(e,t,n){var r=ks(t),o=_r(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,ks(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return Et(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function su(){}var uu=zo(Ct),cu=zo(Tt),lu=zo(It);function fu(e){return vi(e)?qt(Mi(e)):function(e){return function(t){return wr(t,e)}}(e)}var pu=qo(),du=qo(!0);function hu(){return[]}function mu(){return!1}var yu,gu=Fo((function(e,t){return e+t}),0),vu=Yo("ceil"),bu=Fo((function(e,t){return e/t}),1),_u=Yo("floor"),wu=Fo((function(e,t){return e*t}),1),Ou=Yo("round"),Au=Fo((function(e,t){return e-t}),0);return Nn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Nn.ary=Pa,Nn.assign=vs,Nn.assignIn=bs,Nn.assignInWith=_s,Nn.assignWith=ws,Nn.at=Os,Nn.before=Ta,Nn.bind=xa,Nn.bindAll=Xs,Nn.bindKey=Sa,Nn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Nn.chain=fa,Nn.chunk=function(e,t,n){t=(n?gi(e,t,n):t===o)?1:yn(ds(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(pt(i/t));a<i;)u[s++]=eo(e,a,a+=t);return u},Nn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Nn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(qa(n)?To(n):[n],mr(t,1))},Nn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(At(o[0],this,n))return At(o[1],this,n)}}))},Nn.conforms=function(e){return function(e){var t=ks(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Nn.constant=Qs,Nn.countBy=ha,Nn.create=function(e,t){var n=Ln(e);return null==t?n:nr(n,t)},Nn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.curryRight=function e(t,n,r){var i=Jo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.debounce=ka,Nn.defaults=As,Nn.defaultsDeep=js,Nn.defer=Ca,Nn.delay=Ra,Nn.difference=Li,Nn.differenceBy=Fi,Nn.differenceWith=zi,Nn.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:ds(t))<0?0:t,r):[]},Nn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:ds(t)))<0?0:t):[]},Nn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Nn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Nn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&gi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Nn.filter=function(e,t){return(qa(e)?xt:hr)(e,ai(t,3))},Nn.flatMap=function(e,t){return mr(Oa(e,t),1)},Nn.flatMapDeep=function(e,t){return mr(Oa(e,t),l)},Nn.flatMapDepth=function(e,t,n){return n=n===o?1:ds(n),mr(Oa(e,t),n)},Nn.flatten=Wi,Nn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Nn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:ds(t)):[]},Nn.flip=function(e){return Jo(e,512)},Nn.flow=eu,Nn.flowRight=tu,Nn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Nn.functions=function(e){return null==e?[]:_r(e,ks(e))},Nn.functionsIn=function(e){return null==e?[]:_r(e,Cs(e))},Nn.groupBy=ba,Nn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Nn.intersection=Yi,Nn.intersectionBy=Gi,Nn.intersectionWith=Vi,Nn.invert=Ts,Nn.invertBy=xs,Nn.invokeMap=_a,Nn.iteratee=ru,Nn.keyBy=wa,Nn.keys=ks,Nn.keysIn=Cs,Nn.map=Oa,Nn.mapKeys=function(e,t){var n={};return t=ai(t,3),vr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Nn.mapValues=function(e,t){var n={};return t=ai(t,3),vr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Nn.matches=function(e){return $r(ar(e,1))},Nn.matchesProperty=function(e,t){return Nr(e,ar(t,1))},Nn.memoize=Da,Nn.merge=Rs,Nn.mergeWith=Ds,Nn.method=ou,Nn.methodOf=iu,Nn.mixin=au,Nn.negate=Ua,Nn.nthArg=function(e){return e=ds(e),Gr((function(t){return Fr(t,e)}))},Nn.omit=Us,Nn.omitBy=function(e,t){return Ms(e,Ua(ai(t)))},Nn.once=function(e){return Ta(2,e)},Nn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),zr(e,t,n))},Nn.over=uu,Nn.overArgs=Ia,Nn.overEvery=cu,Nn.overSome=lu,Nn.partial=Ma,Nn.partialRight=$a,Nn.partition=Aa,Nn.pick=Is,Nn.pickBy=Ms,Nn.property=fu,Nn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Nn.pull=Zi,Nn.pullAll=Ki,Nn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ai(n,2)):e},Nn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Nn.pullAt=Xi,Nn.range=pu,Nn.rangeRight=du,Nn.rearg=Na,Nn.reject=function(e,t){return(qa(e)?xt:hr)(e,Ua(ai(t,3)))},Nn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Nn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Gr(e,t=t===o?t:ds(t))},Nn.reverse=Qi,Nn.sampleSize=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ds(t),(qa(e)?Zn:Jr)(e,t)},Nn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Nn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Nn.shuffle=function(e){return(qa(e)?Kn:Qr)(e)},Nn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&gi(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===o?r:ds(n)),eo(e,t,n)):[]},Nn.sortBy=ja,Nn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Nn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Nn.split=function(e,t,n){return n&&"number"!=typeof n&&gi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=gs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Nn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:yn(ds(t),0),Gr((function(n){var r=n[t],o=bo(n,0,t);return r&&Rt(o,r),At(e,this,o)}))},Nn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Nn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:ds(t))<0?0:t):[]},Nn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:ds(t)))<0?0:t,r):[]},Nn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Nn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Nn.tap=function(e,t){return t(e),e},Nn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ka(e,t,{leading:r,maxWait:t,trailing:o})},Nn.thru=pa,Nn.toArray=fs,Nn.toPairs=$s,Nn.toPairsIn=Ns,Nn.toPath=function(e){return qa(e)?Ct(e,Mi):ss(e)?[e]:To(Ii(gs(e)))},Nn.toPlainObject=ys,Nn.transform=function(e,t,n){var r=qa(e),o=r||Ga(e)||us(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qa(e)&&Za(i)?Ln(We(e)):{}}return(o?Et:vr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Nn.unary=function(e){return Pa(e,1)},Nn.union=ea,Nn.unionBy=ta,Nn.unionWith=na,Nn.uniq=function(e){return e&&e.length?so(e):[]},Nn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Nn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Nn.unset=function(e,t){return null==e||uo(e,t)},Nn.unzip=ra,Nn.unzipWith=oa,Nn.update=function(e,t,n){return null==e?e:co(e,t,yo(n))},Nn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,yo(n),r)},Nn.values=Ls,Nn.valuesIn=function(e){return null==e?[]:Zt(e,Cs(e))},Nn.without=ia,Nn.words=Zs,Nn.wrap=function(e,t){return Ma(yo(t),e)},Nn.xor=aa,Nn.xorBy=sa,Nn.xorWith=ua,Nn.zip=ca,Nn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Nn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},Nn.zipWith=la,Nn.entries=$s,Nn.entriesIn=Ns,Nn.extend=bs,Nn.extendWith=_s,au(Nn,Nn),Nn.add=gu,Nn.attempt=Ks,Nn.camelCase=Fs,Nn.capitalize=zs,Nn.ceil=vu,Nn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ms(n))==n?n:0),t!==o&&(t=(t=ms(t))==t?t:0),ir(ms(e),t,n)},Nn.clone=function(e){return ar(e,4)},Nn.cloneDeep=function(e){return ar(e,5)},Nn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Nn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Nn.conformsTo=function(e,t){return null==t||sr(e,t,ks(t))},Nn.deburr=Bs,Nn.defaultTo=function(e,t){return null==e||e!=e?t:e},Nn.divide=bu,Nn.endsWith=function(e,t,n){e=gs(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Nn.eq=La,Nn.escape=function(e){return(e=gs(e))&&V.test(e)?e.replace(Y,tn):e},Nn.escapeRegExp=function(e){return(e=gs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Nn.every=function(e,t,n){var r=qa(e)?Tt:pr;return n&&gi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.find=ma,Nn.findIndex=Bi,Nn.findKey=function(e,t){return $t(e,ai(t,3),vr)},Nn.findLast=ya,Nn.findLastIndex=qi,Nn.findLastKey=function(e,t){return $t(e,ai(t,3),br)},Nn.floor=_u,Nn.forEach=ga,Nn.forEachRight=va,Nn.forIn=function(e,t){return null==e?e:yr(e,ai(t,3),Cs)},Nn.forInRight=function(e,t){return null==e?e:gr(e,ai(t,3),Cs)},Nn.forOwn=function(e,t){return e&&vr(e,ai(t,3))},Nn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},Nn.get=Es,Nn.gt=Fa,Nn.gte=za,Nn.has=function(e,t){return null!=e&&di(e,t,Er)},Nn.hasIn=Ps,Nn.head=Hi,Nn.identity=nu,Nn.includes=function(e,t,n,r){e=Ha(e)?e:Ls(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),as(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Lt(e,t,n)>-1},Nn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=yn(r+o,0)),Lt(e,t,o)},Nn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=gn(t,n)&&e<yn(t,n)}(e=ms(e),t,n)},Nn.invoke=Ss,Nn.isArguments=Ba,Nn.isArray=qa,Nn.isArrayBuffer=Wa,Nn.isArrayLike=Ha,Nn.isArrayLikeObject=Ya,Nn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Ar(e)==g},Nn.isBuffer=Ga,Nn.isDate=Va,Nn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Nn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Ba(e)))return!e.length;var t=pi(e);if(t==O||t==T)return!e.size;if(wi(e))return!Ur(e).length;for(var n in e)if(De.call(e,n))return!1;return!0},Nn.isEqual=function(e,t){return kr(e,t)},Nn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?kr(e,t,o,n):!!r},Nn.isError=Ja,Nn.isFinite=function(e){return"number"==typeof e&&Mt(e)},Nn.isFunction=Za,Nn.isInteger=Ka,Nn.isLength=Xa,Nn.isMap=ts,Nn.isMatch=function(e,t){return e===t||Cr(e,t,ui(t))},Nn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Cr(e,t,ui(t),n)},Nn.isNaN=function(e){return ns(e)&&e!=+e},Nn.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Nn.isNil=function(e){return null==e},Nn.isNull=function(e){return null===e},Nn.isNumber=ns,Nn.isObject=Qa,Nn.isObjectLike=es,Nn.isPlainObject=rs,Nn.isRegExp=os,Nn.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=f},Nn.isSet=is,Nn.isString=as,Nn.isSymbol=ss,Nn.isTypedArray=us,Nn.isUndefined=function(e){return e===o},Nn.isWeakMap=function(e){return es(e)&&pi(e)==k},Nn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Ar(e)},Nn.join=function(e,t){return null==e?"":Wt.call(e,t)},Nn.kebabCase=qs,Nn.last=Ji,Nn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ds(n))<0?yn(r+i,0):gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Nt(e,zt,i,!0)},Nn.lowerCase=Ws,Nn.lowerFirst=Hs,Nn.lt=cs,Nn.lte=ls,Nn.max=function(e){return e&&e.length?dr(e,nu,jr):o},Nn.maxBy=function(e,t){return e&&e.length?dr(e,ai(t,2),jr):o},Nn.mean=function(e){return Bt(e,nu)},Nn.meanBy=function(e,t){return Bt(e,ai(t,2))},Nn.min=function(e){return e&&e.length?dr(e,nu,Ir):o},Nn.minBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Ir):o},Nn.stubArray=hu,Nn.stubFalse=mu,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=wu,Nn.nth=function(e,t){return e&&e.length?Fr(e,ds(t)):o},Nn.noConflict=function(){return ft._===this&&(ft._=Ne),this},Nn.noop=su,Nn.now=Ea,Nn.pad=function(e,t,n){e=gs(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(dt(o),n)+e+Bo(pt(o),n)},Nn.padEnd=function(e,t,n){e=gs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Bo(t-r,n):e},Nn.padStart=function(e,t,n){e=gs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?Bo(t-r,n)+e:e},Nn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(gs(e).replace(re,""),t||0)},Nn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&gi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return gn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hr(e,t)},Nn.reduce=function(e,t,n){var r=qa(e)?Dt:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Nn.reduceRight=function(e,t,n){var r=qa(e)?Ut:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Nn.repeat=function(e,t,n){return t=(n?gi(e,t,n):t===o)?1:ds(t),Yr(gs(e),t)},Nn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nn.result=function(e,t,n){var r=-1,i=(t=go(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Mi(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Nn.round=Ou,Nn.runInContext=e,Nn.sample=function(e){return(qa(e)?Jn:Vr)(e)},Nn.size=function(e){if(null==e)return 0;if(Ha(e))return as(e)?ln(e):e.length;var t=pi(e);return t==O||t==T?e.size:Ur(e).length},Nn.snakeCase=Ys,Nn.some=function(e,t,n){var r=qa(e)?It:to;return n&&gi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.sortedIndex=function(e,t){return no(e,t)},Nn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Nn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&La(e[r],t))return r}return-1},Nn.sortedLastIndex=function(e,t){return no(e,t,!0)},Nn.sortedLastIndexBy=function(e,t,n){return ro(e,t,ai(n,2),!0)},Nn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(La(e[n],t))return n}return-1},Nn.startCase=Gs,Nn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ir(ds(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Nn.subtract=Au,Nn.sum=function(e){return e&&e.length?Yt(e,nu):0},Nn.sumBy=function(e,t){return e&&e.length?Yt(e,ai(t,2)):0},Nn.template=function(e,t,n){var r=Nn.templateSettings;n&&gi(e,t,n)&&(t=o),e=gs(e),t=_s({},t,r,Zo);var i,a,s=_s({},t.imports,r.imports,Zo),u=ks(s),c=Zt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Ee((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(l,u).replace(_e,nn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var m=De.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(q,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ks((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(y.source=p,Ja(y))throw y;return y},Nn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ai(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Nn.toFinite=ps,Nn.toInteger=ds,Nn.toLength=hs,Nn.toLower=function(e){return gs(e).toLowerCase()},Nn.toNumber=ms,Nn.toSafeInteger=function(e){return e?ir(ds(e),-9007199254740991,f):0===e?e:0},Nn.toString=gs,Nn.toUpper=function(e){return gs(e).toUpperCase()},Nn.trim=function(e,t,n){if((e=gs(e))&&(n||t===o))return Vt(e);if(!e||!(t=ao(t)))return e;var r=fn(e),i=fn(t);return bo(r,Xt(r,i),Qt(r,i)+1).join("")},Nn.trimEnd=function(e,t,n){if((e=gs(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,0,Qt(r,fn(t))+1).join("")},Nn.trimStart=function(e,t,n){if((e=gs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,Xt(r,fn(t))).join("")},Nn.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(t.length):n,r="omission"in t?ao(t.omission):r}var a=(e=gs(e)).length;if(rn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),os(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Ee(i.source,gs(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ao(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Nn.unescape=function(e){return(e=gs(e))&&G.test(e)?e.replace(H,dn):e},Nn.uniqueId=function(e){var t=++Ue;return gs(e)+t},Nn.upperCase=Vs,Nn.upperFirst=Js,Nn.each=ga,Nn.eachRight=va,Nn.first=Hi,au(Nn,(yu={},vr(Nn,(function(e,t){De.call(Nn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Nn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Nn[e].placeholder=Nn})),Et(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:yn(ds(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(nu)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return xr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ua(ai(e)))},Bn.prototype.slice=function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},vr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Nn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Nn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Bn,c=s[0],l=u||qa(t),f=function(e){var t=i.apply(Nn,Rt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=u&&!d;if(!a&&l){t=m?t:new Bn(this);var y=e.apply(t,s);return y.__actions__.push({func:pa,args:[f],thisArg:o}),new zn(y,p)}return h&&m?e.apply(this,s):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=xe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Nn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),vr(Bn.prototype,(function(e,t){var n=Nn[t];if(n){var r=n.name+"";De.call(Sn,r)||(Sn[r]=[]),Sn[r].push({name:t,func:n})}})),Sn[No(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var m=-1,y=e[c+=t];++m<f;){var g=l[m],v=g.iteratee,b=g.type,_=v(y);if(2==b)y=_;else if(!_){if(1==b)continue e;break e}}h[p++]=y}return h},Nn.prototype.at=da,Nn.prototype.chain=function(){return fa(this)},Nn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Nn.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Nn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:o}),new zn(t,this.__chain__)}return this.thru(Qi)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Je&&(Nn.prototype[Je]=function(){return this}),Nn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},13222:function(e,t,n){var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},44826:function(e,t,n){var r=n(77556),o=n(54128),i=n(28754),a=n(23875),s=n(28380),u=n(63912),c=n(13222);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var l=u(e),f=u(t),p=s(l,f),d=a(l,f)+1;return i(l,p,d).join("")}},15993:function(e,t,n){"use strict";var r=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 o=r(n(42681)),i=n(60554),a=n(2543),s=n(96690),u=n(17112),c=r(n(30228)),l=r(n(81018)),{fetch:f,Headers:p}=(0,o.default)(),d=r(n(23370)),h=n(84679);var m;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(m||(t.FormioPathType=m={}));class y{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 y))return new y(e);if(t.useSessionToken&&y.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(y.baseUrl)this.base=y.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=y.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||y.projectUrl,r=/(^|\/)(project)($|\/[^/]+)/,o=-1!==e.search(r);n&&this.base===n&&!o&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const i=this.getUrlParts(e);let a="",s=[];if(i){a=i[1]+i[2];const t=(e=i.length>3?i[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const u=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const r=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(r)&&(s=e.match(r),this[`${t}Url`]=s?n+s[0]:"",this[`${t}Id`]=s.length>1?s[1]:"",n+=s[0]),n},c=(e,t,n)=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];if(Array.isArray(o))c(o,t,!0);else{const e=u(o,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||o||"Subdirectories"!==y.pathType)this.projectUrl=a;else{const e=`^${a.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:a}let l=!1;if(y.pathType&&(l="Subdomains"!==y.pathType),!this.noProject){if(o)c(["project"],a),e=e.replace(r,"");else if(a===this.base){if(i&&i.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=a;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${a}/${this.projectId}`)}}}else i&&i.length>2&&(i[2].split(".").length>2||a.includes("localhost"))&&!l&&(this.projectUrl=a,this.projectId=i[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(c(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))c(["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 r=["submission","action","v"];for(const t in r)if(r.hasOwnProperty(t)){const o=r[t];this[`${o}sUrl`]=`${this.projectUrl+e}/${o}`,this.pathType===o&&n&&n.length>2&&n[2]&&(this[`${o}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${o}Url`]=this.projectUrl+e+n[0])}}y.projectUrlSet||(y.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(y.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const r=`${e}Url`;return(t=t||"")&&(0,a.isObject)(t)&&(t=`?${y.serialize(t.params)}`),this.makeRequest(e,this[r]+t,"get",null,n)}save(e,t,n){const r=`${e}Id`,o=`${e}Url`,i=this[r]||t._id?"put":"post";let a=this[r]?this[o]:this[`${e}sUrl`];return this[r]||!t._id||"put"!==i||a.includes(t._id)||(a+=`/${t._id}`),y.cache={},this.makeRequest(e,a+this.query,i,t,n)}load(e,t,n){const r=`${e}Id`,o=`${e}Url`;if(t&&(0,a.isObject)(t)&&(t=y.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[r])return Promise.reject(`Missing ${r}`);let i=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||(i+=-1===i.indexOf("?")?"?":"&",i+=`formRevision=${this.vId}`),this.makeRequest(e,i,"get",null,n)}makeRequest(e,t,n,r,o){return y.makeRequest(this,e,t,n,r,o)}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,a.isObject)(e)&&(e=`?${y.serialize(e.params)}`),y.makeStaticRequest(`${y.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,a.isObject)(e)&&(e=y.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 y.currentUser(this,e)}accessInfo(){return y.accessInfo(this)}oauthLogoutURI(e,t){return y.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return y.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return y.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!y.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const r=y.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${r}/token`,"GET",null,{ignoreCache:!0,header:new p({"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 r=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{r+=`?token=${t.key}`,e(r)}),(()=>{e(r)})).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:[]},r=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},u={user:n,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(const e in o.roles)if(o.roles.hasOwnProperty(e)){const t=o.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return u.create=!0,u.read=!0,u.delete=!0,u.edit=!0,u}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const o=t.submissionAccess[e],[s,c]=o.type.split("_");["create","read","update","delete"].includes(s)&&(0,a.intersection)(o.roles,n.roles).length&&(u[i[s]]="all"===c||!r||n._id===r.owner)}return r&&(0,s.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const o=(0,a.get)(r.data,t);(Array.isArray(o)?o:[o]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(u[i.read]=!0),"create"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0),"write"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0),"admin"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0,u[i.delete]=!0))}))}})),u}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&y.getUser()?this.userPermissions(null).then((e=>!!e.create&&(y.setUser(null),!0))):e.create))}getUrlParts(e){return y.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:y.baseUrl;let r="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?r+=`(${n.replace(/^http[s]?:\/\//,"")})`:r+="([^/]+)",r+="($|\\/.*)",e.match(new RegExp(r))}static serialize(e,t){const n=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.push(`${encodeURIComponent(o)}=${encodeURIComponent((r=e[o],t?t(r):r))}`);var r;return n.join("&")}static getRequestArgs(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&(0,a.isObject)(i)||(i={});const s={url:n,method:r,data:o||null,opts:i};return t&&(s.type=t),e&&(s.formio=e),s}static makeStaticRequest(e,t,n,r){const o=y.getRequestArgs(null,"",e,t,n,r),i=d.default.pluginWait("preRequest",o).then((()=>d.default.pluginGet("staticRequest",o).then((e=>(0,a.isNil)(e)?y.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return d.default.pluginAlter("wrapStaticRequestPromise",i,o)}static makeRequest(e,t,n,r,o,i){if(!e)return y.makeStaticRequest(n,r,o,i);const s=y.getRequestArgs(e,t,n,r,o,i);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,a.defaults)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});const u=d.default.pluginWait("preRequest",s).then((()=>d.default.pluginGet("request",s).then((e=>(0,a.isNil)(e)?y.request(s.url,s.method,s.data,s.opts.header,s.opts):e))));return d.default.pluginAlter("wrapRequestPromise",u,s)}static request(e,t,n,r,o){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,a.isBoolean)(o)&&(o={ignoreCache:o}),o&&(0,a.isObject)(o)||(o={});const i=btoa(encodeURI(e));if(!o.ignoreCache&&"GET"===t&&y.cache.hasOwnProperty(i))return Promise.resolve(y.cloneResponse(y.cache[i]));"/"===e[0]&&(e=y.baseUrl+e);const s=r||new p(o.headers||{Accept:"application/json","Content-type":"application/json"}),u=y.getToken(o);u&&!o.noToken&&s.set("x-jwt-token",u);const c={};s.forEach((function(e,t){c[t]=e}));let l={method:t,headers:c,mode:"cors"};n&&(l.body=JSON.stringify(n)),l=d.default.pluginAlter("requestOptions",l,e),(l.namespace||y.namespace)&&(o.namespace=l.namespace||y.namespace);const f=l.headers["x-jwt-token"],h=d.default.pluginAlter("wrapFetchRequestPromise",y.fetch(e,l),{url:e,method:t,data:n,opts:o}).then((r=>{if(!(r=d.default.pluginAlter("requestResponse",r,y,n)).ok){if(440===r.status)y.setToken(null,o),y.events.emit("formio.sessionExpired",r.body||r);else if(401===r.status)y.events.emit("formio.unauthorized",r.body||r);else if(416===r.status)y.events.emit("formio.rangeIsNotSatisfiable",r.body||r);else if(504===r.status)return Promise.reject(new Error("Network request failed"));return(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>Promise.reject(e)))}const i=r.headers.get("x-jwt-token");let s=!1;return"GET"!==t||f||!i||o.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),r.status>=200&&r.status<300&&i&&""!==i&&!s&&y.setToken(i,Object.assign(Object.assign({},o),{fromCurrent:o.fromCurrent||!!f})),204===r.status?{}:(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>{let t=r.headers.get("content-range");if(t&&(0,a.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(!o.getHeaders)return e;const n={};return r.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>o.getHeaders?e:("GET"===t&&(y.cache[i]=e),y.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==o.noToken&&(y.setToken(null,o),y.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete y.cache[i],Promise.reject(n))));return h}static get token(){return y.tokens.formioToken||""}static set token(e){y.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;const t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||y.namespace||"formio"}Token`,r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));const o=`${t||y.namespace||"formio"}User`,i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||y.namespace||"formio"}Token`;y.tokens||(y.tokens={});const r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,y.setUser(null,t));try{r.removeItem(n)}catch(e){l.default.erase(n,{path:"/"})}return y.tokens[n]=e,Promise.resolve(null)}if(y.tokens[n]!==e){y.tokens[n]=e;try{r.setItem(n,e)}catch(t){l.default.set(n,e,{path:"/"})}}return y.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||y.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(y.tokens||(y.tokens={}),y.tokens[n])return y.tokens[n];try{const r=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return y.tokens[t]=r||"",e.decode?(y.tokens[n]=y.tokens[t]?(0,u.jwtDecode)(y.tokens[t]):{},y.tokens[n]):y.tokens[t]}catch(e){return y.tokens[t]=l.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||y.namespace||"formio"}User`,r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,y.setToken(null,t)),y.events.emit("formio.user",null);try{return r.removeItem(n)}catch(e){return l.default.erase(n,{path:"/"})}}try{r.setItem(n,JSON.stringify(e))}catch(t){l.default.set(n,JSON.stringify(e),{path:"/"})}y.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||y.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(l.default.get(t))}}static setBaseUrl(e){y.baseUrl=e,y.projectUrlSet||(y.projectUrl=e)}static getBaseUrl(){return y.baseUrl}static setApiUrl(e){return y.setBaseUrl(e)}static getApiUrl(){return y.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),y.projectUrl=e,y.projectUrlSet=!0}static setProjectUrl(e){y.projectUrl=e,y.projectUrlSet=!0}static setAuthUrl(e){y.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),y.projectUrl}static getProjectUrl(){return y.projectUrl}static clearCache(){y.cache={}}static accessInfo(e){const t=e?e.projectUrl:y.projectUrl;return y.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:y.projectUrl;return y.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=y.authUrl;if(n||(n=e?e.projectUrl:y.projectUrl||y.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=y.getUser(t);if(e)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const r=y.getToken(t);return t&&t.external||r?(t.fromCurrent=!0,y.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(y.setUser(e,t),e)))):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=y.authUrl?y.authUrl:e?e.projectUrl:y.baseUrl,r=()=>{y.setToken(null,t),y.setUser(null,t),y.clearCache(),localStorage.removeItem("useSessionToken")};return y.makeRequest(e,"logout",`${n}/logout`).then((function(e){return r(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw r(),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 y.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||y.namespace||"formio"}LogoutAuthUrl`;return localStorage.setItem(n,e),y.tokens[n]}static samlInit(e={}){const t=y.pageQuery();if(t.saml){y.setUser(null);const e=y.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=y.authUrl||y.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if("undefined"!=typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===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 r=e.OktaAuth;delete e.OktaAuth;const o=new r(e);o.tokenManager.get("accessToken").then((r=>{r?t(y.oAuthCurrentUser(e.formio,r.accessToken)):location.hash?o.token.parseFromUrl().then((n=>{o.tokenManager.add("accessToken",n),t(y.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(o.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return y.samlInit(t);case"okta":return y.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,r=!1,o,i){const s={name:e,src:n,formio:y,onload:o,rootElement:i};let u=!1;if(!y.libraries.hasOwnProperty(e)){y.libraries[e]={},y.libraries[e].ready=new Promise(((t,n)=>{y.libraries[e].resolve=t,y.libraries[e].reject=n}));const n=`${e}Callback`;r||window[n]||(window[n]=()=>y.libraries[e].resolve());const o=(0,a.get)(window,t);if(o)y.libraries[e].resolve(o);else if((0,h.attachResourceToDom)(s),u=!0,r){const n=setInterval((()=>{const r=(0,a.get)(window,t);r&&(clearInterval(n),y.libraries[e].resolve(r))}),200)}}const c=y.libraries[e];return i&&!u&&(0,h.attachResourceToDom)(s),o&&c.loaded?o(c.ready):c.ready}static libraryReady(e){return y.libraries.hasOwnProperty(e)&&y.libraries[e].ready?y.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,i.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&&(y.pathType=e)}static getPathType(){return y.pathType}}t.Formio=y,y.baseUrl="https://api.form.io",y.projectUrl="",y.authUrl="",y.projectUrlSet=!1,y.cache={},y.namespace="",y.events=new c.default,y.libraries={},y.fetch=f,y.Headers=p,y.tokens={},y.version="---VERSION---",y.options={},y.plugins=d.default.plugins,y.deregisterPlugin=d.default.deregisterPlugin,y.registerPlugin=d.default.registerPlugin,y.getPlugin=d.default.getPlugin,y.pluginWait=d.default.pluginWait,y.pluginGet=d.default.pluginGet,y.pluginAlter=d.default.pluginAlter,d.default.Formio=y},22831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=p(n(13518)),o=p(n(14948)),i=p(n(45073)),a=p(n(77186)),s=p(n(14808)),u=p(n(7775)),c=p(n(37037)),l=p(n(49910)),f=p(n(96792));function p(e){return e&&e.__esModule?e:{default:e}}},22311:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(u=i)|s>>>32-u,n);var s,u}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}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<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=o,p=c,d=l,h=f;o=i(o,c,l,f,e[t],7,-680876936),f=i(f,o,c,l,e[t+1],12,-389564586),l=i(l,f,o,c,e[t+2],17,606105819),c=i(c,l,f,o,e[t+3],22,-1044525330),o=i(o,c,l,f,e[t+4],7,-176418897),f=i(f,o,c,l,e[t+5],12,1200080426),l=i(l,f,o,c,e[t+6],17,-1473231341),c=i(c,l,f,o,e[t+7],22,-45705983),o=i(o,c,l,f,e[t+8],7,1770035416),f=i(f,o,c,l,e[t+9],12,-1958414417),l=i(l,f,o,c,e[t+10],17,-42063),c=i(c,l,f,o,e[t+11],22,-1990404162),o=i(o,c,l,f,e[t+12],7,1804603682),f=i(f,o,c,l,e[t+13],12,-40341101),l=i(l,f,o,c,e[t+14],17,-1502002290),c=i(c,l,f,o,e[t+15],22,1236535329),o=a(o,c,l,f,e[t+1],5,-165796510),f=a(f,o,c,l,e[t+6],9,-1069501632),l=a(l,f,o,c,e[t+11],14,643717713),c=a(c,l,f,o,e[t],20,-373897302),o=a(o,c,l,f,e[t+5],5,-701558691),f=a(f,o,c,l,e[t+10],9,38016083),l=a(l,f,o,c,e[t+15],14,-660478335),c=a(c,l,f,o,e[t+4],20,-405537848),o=a(o,c,l,f,e[t+9],5,568446438),f=a(f,o,c,l,e[t+14],9,-1019803690),l=a(l,f,o,c,e[t+3],14,-187363961),c=a(c,l,f,o,e[t+8],20,1163531501),o=a(o,c,l,f,e[t+13],5,-1444681467),f=a(f,o,c,l,e[t+2],9,-51403784),l=a(l,f,o,c,e[t+7],14,1735328473),c=a(c,l,f,o,e[t+12],20,-1926607734),o=s(o,c,l,f,e[t+5],4,-378558),f=s(f,o,c,l,e[t+8],11,-2022574463),l=s(l,f,o,c,e[t+11],16,1839030562),c=s(c,l,f,o,e[t+14],23,-35309556),o=s(o,c,l,f,e[t+1],4,-1530992060),f=s(f,o,c,l,e[t+4],11,1272893353),l=s(l,f,o,c,e[t+7],16,-155497632),c=s(c,l,f,o,e[t+10],23,-1094730640),o=s(o,c,l,f,e[t+13],4,681279174),f=s(f,o,c,l,e[t],11,-358537222),l=s(l,f,o,c,e[t+3],16,-722521979),c=s(c,l,f,o,e[t+6],23,76029189),o=s(o,c,l,f,e[t+9],4,-640364487),f=s(f,o,c,l,e[t+12],11,-421815835),l=s(l,f,o,c,e[t+15],16,530742520),c=s(c,l,f,o,e[t+2],23,-995338651),o=u(o,c,l,f,e[t],6,-198630844),f=u(f,o,c,l,e[t+7],10,1126891415),l=u(l,f,o,c,e[t+14],15,-1416354905),c=u(c,l,f,o,e[t+5],21,-57434055),o=u(o,c,l,f,e[t+12],6,1700485571),f=u(f,o,c,l,e[t+3],10,-1894986606),l=u(l,f,o,c,e[t+10],15,-1051523),c=u(c,l,f,o,e[t+1],21,-2054922799),o=u(o,c,l,f,e[t+8],6,1873313359),f=u(f,o,c,l,e[t+15],10,-30611744),l=u(l,f,o,c,e[t+6],15,-1560198380),c=u(c,l,f,o,e[t+13],21,1309151649),o=u(o,c,l,f,e[t+4],6,-145523070),f=u(f,o,c,l,e[t+11],10,-1120210379),l=u(l,f,o,c,e[t+2],15,718787259),c=u(c,l,f,o,e[t+9],21,-343485551),o=r(o,n),c=r(c,p),l=r(l,d),f=r(f,h)}return[o,c,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},46140:function(e,t){"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:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.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:function(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:function(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(r)};const r=new Uint8Array(16)},9042:function(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],u=o[1],c=o[2],l=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=r(a,5)+n(o,u,c,l)+f+t[o]+i[e]>>>0;f=l,l=c,c=r(u,30)>>>0,u=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},49910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},13518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2858))&&r.__esModule?r:{default:r},i=n(49910);let a,s,u=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const l=t||new Array(16);let f=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==f||null==p){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const m=d-u+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,s=p,d+=122192928e5;const y=(1e4*(268435455&d)+h)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;const g=d/4294967296*1e4&268435455;l[r++]=g>>>8&255,l[r++]=255&g,l[r++]=g>>>24&15|16,l[r++]=g>>>16&255,l[r++]=p>>>8|128,l[r++]=255&p;for(let e=0;e<6;++e)l[r+e]=f[e];return t||(0,i.unsafeStringify)(l)}},14948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(22311));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},59025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(u=r)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=c[e];return a}return(0,o.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=s,r};var r,o=n(49910),i=(r=n(96792))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},45073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(46140)),o=a(n(2858)),i=n(49910);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},77186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(9042));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);t.default=a},37037:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(27656))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},7775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},56036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t={}){this.baseUrl=e||n.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.3",bootstrap4:"4.6.2",bootstrap5:"5.3.3",bootswatch:"5.3.3","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","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 r=e;return t&&(r+=`/${t}`),e.match(/cdn\.(test-)?form.io/)&&n&&"latest"!==n&&(r+=`/${n}`),r}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}n.defaultCDN="https://cdn.form.io",t.default=n},27368:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(2543)),i=r(n(53825)),a=r(n(19045)),s=r(n(5896));class u{static addProvider(e,t,n){u.providers[e]=u.providers[e]||{},u.providers[e][t]=n}static addProviders(e,t){u.providers[e]=o.default.merge(u.providers[e],t)}static getProvider(e,t){if(u.providers[e]&&u.providers[e][t])return u.providers[e][t]}static getProviders(e){if(u.providers[e])return u.providers[e]}}u.providers={address:i.default,auth:a.default,storage:s.default},t.default=u},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const o=r(n(2543)),i=n(34040);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return o.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return o.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return i.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?o.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}},90637:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const r=n(10308);class o extends r.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=o},84689:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const r=n(10308);class o extends r.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=o},25873:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const o=n(34040),i=r(n(2543)),a=n(10308);class s extends a.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&loading=async&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(n+=`&key=${e.params.key}`),o.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=i.default.get(this.options,"params.autocompleteOptions",{});i.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=i.default.get(t,"params.region","");if(n&&!i.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();const e={UK:"GB"};e[n]&&(n=e[n]),i.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();i.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){o.Formio.libraryReady(this.getLibraryName()).then((()=>{const r=new google.maps.places.Autocomplete(e,this.autocompleteOptions);r.addListener("place_changed",(()=>{const o=this.filterPlace(r.getPlace());o.formattedPlace=i.default.get(r,"gm_accessors_.place.se.formattedPrediction",o[this.alternativeDisplayValueProperty]),n(o,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}t.GoogleAddressProvider=s},90094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const r=n(10308);class o extends r.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=o},53825:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90637),o=n(84689),i=n(25873),a=n(90094);t.default={[r.AzureAddressProvider.name]:r.AzureAddressProvider,[o.CustomAddressProvider.name]:o.CustomAddressProvider,[i.GoogleAddressProvider.name]:i.GoogleAddressProvider,[a.NominatimAddressProvider.name]:a.NominatimAddressProvider}},19045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},59962:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(27368));t.default=o.default},52223:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(30430));function i(e){return{uploadFile:(t,n,r,i,a,s,u,c,l,f)=>o.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,r,i,c,l,f).then((e=>({storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:c,groupId:l,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}`,"GET"),deleteFile:function(t){var n=`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}&key=${o.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}i.title="Azure File Services",t.default=i},95789:function(e,t){"use strict";function n(){return{title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new Promise(((r,o)=>{n.onload=n=>{const o=n.target.result;r({storage:"base64",name:t,url:o,size:e.size,type:e.type})},n.onerror=()=>o(this),n.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Base64",t.default=n},68405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30430);function o(e){return{uploadFile:(t,n,o,i,a,s,u,c,l,f)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;"function"==typeof i&&(u.upload.onprogress=i),"function"==typeof f&&f((()=>u.abort()));const p=new FormData;p.append("name",n),p.append("dir",o),p.append("file",t),u.onerror=e=>{e.networkError=!0,s(e)},u.onload=()=>{if(u.status>=200&&u.status<300){const e=JSON.parse(u.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=l,e.groupPermissions=c,a(e)}else s(u.response||"Unable to upload file")},u.onabort=s,u.open("POST",`${e.formUrl}/storage/gdrive`),(0,r.setXhrHeaders)(e,u);const d=e.getToken();d&&u.setRequestHeader("x-jwt-token",d),u.send(p)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,Promise.resolve(t)},deleteFile:function(t){var n="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",n,"delete")}}}o.title="Google Drive",t.default=o},5896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(95789)),i=r(n(7152)),a=r(n(52223)),s=r(n(13225)),u=r(n(46775)),c=r(n(68405));t.default={base64:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:u.default,googledrive:c.default}},46775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22831);function o(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,o,i,a){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(a.indexeddb);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 Promise(((o,s)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),s=(0,r.v4)(n),u={id:s,data:n,name:e.name,size:e.size,type:e.type,url:i},c=t.transaction([a.indexeddbTable],"readwrite");c.objectStore(a.indexeddbTable).put(u,s).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:i,id:s})}},n.onerror=()=>s(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readonly"),a=i.objectStore(t.indexeddbTable).get(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const t=a.result,n=new File([a.result.data],e.name,{type:a.result.type}),i=new FileReader;i.onload=n=>{t.url=n.target.result,t.storage=e.storage,r(t)},i.onerror=()=>o(this),i.readAsDataURL(n)}},a.onerror=()=>o(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readwrite"),a=i.objectStore(t.indexeddbTable).delete(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const e=a.result;r(e)}},a.onerror=()=>o(this)}))))}}}o.title="IndexedDB",t.default=o},7152:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&r(t,e,n);return o(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=s(n(30430)),c=n(55474);function l(e){return{uploadFile(t,r,o,s,l,f,p,d,h,m,y){return a(this,void 0,void 0,(function*(){const l=yield u.default.upload(e,"s3",((e,s,l)=>a(this,void 0,void 0,(function*(){if(s.data.fileName=r,s.data.key=u.default.path([s.data.key,o,r]),!s.signed){const n=new FormData;for(const e in s.data)n.append(e,s.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",s.url),n}if(!y||!Array.isArray(s.signed))return e.openAndSetHeaders("PUT",s.signed),e.setRequestHeader("Content-Type",t.type),s.data.headers&&Object.keys(s.data.headers).forEach((t=>{e.setRequestHeader(t,s.data.headers[t])})),t;{yield a(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>i(n(24715)))))}));const e=new AbortController,r=e.signal;"function"==typeof l&&l((()=>e.abort()));try{const e=yield this.uploadParts(t,s.signed,s.data.headers,s.partSizeActual,y,r);return void(yield(0,c.withRetries)(this.completeMultipartUpload,[s,e,y],3))}catch(t){throw e.abort(),this.abortMultipartUpload(s),t}}}))),t,r,o,s,d,h,m,y);return{storage:"s3",name:r,bucket:l.bucket,key:l.data.key,url:u.default.path([l.url,l.data.key]),acl:l.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,n,r){return a(this,void 0,void 0,(function*(){const{changeMessage:o}=r;o("Completing AWS S3 multipart upload...");const i=e.getToken(),a=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({parts:n,uploadId:t.uploadId,key:t.key})}),s=yield a.text();if(!a.ok)throw new Error(s);if(s.match(/Error/))throw new Error(s)}))},abortMultipartUpload(t){const{uploadId:n,key:r}=t,o=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:n,key:r})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,n,r,o,i){const{changeMessage:a,progressCallback:s}=o;a("Chunking and uploading parts to AWS S3...");const u=[];for(let o=0;o<t.length;o++){const a=o*r,c=(o+1)*r,l=o<t.length?e.slice(a,c):e.slice(a),f=fetch(t[o],{method:"PUT",headers:n,body:l,signal:i}).then((e=>{if(e.ok){s(t.length);const n=e.headers.get("etag");if(!n)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:n,PartNumber:o+1}}throw new Error(`Part no ${o} failed with status ${e.status}`)}));u.push(f)}return Promise.all(u)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const n=`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}l.title="S3",t.default=l},13225:function(e,t){"use strict";function n(e){function t(e,t){const n="string"==typeof e?JSON.parse(e):e;for(const e in n)if("headers"===e){const e=n.headers;for(const n in e)t.setRequestHeader(n,e[n])}else t[e]=n[e]}const n=(n,r,o,i,a,s,u)=>new Promise(((c,l)=>{const f=new XMLHttpRequest,p="string"==typeof i,d=new FormData;if("function"==typeof s&&(f.upload.onprogress=s),"function"==typeof u&&u((()=>f.abort())),!p)for(const e in i)d.append(e,i[e]);f.onload=()=>{if(f.status>=200&&f.status<300){let e={};try{e="string"==typeof f.response?JSON.parse(f.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${f.responseURL}/${r}`;t&&"/"===t[0]&&(t=`${n}${t}`),c({url:t,data:e})}else l(f.response||"Unable to upload file")},f.onerror=()=>l(f),f.onabort=()=>l(f);let h=n+(n.indexOf("?")>-1?"&":"?");for(const e in o)h+=`${e}=${o[e]}&`;"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),f.open("POST",h),p&&f.setRequestHeader("Content-Type","application/json");const m=e.getToken();m&&f.setRequestHeader("x-jwt-token",m),a&&t(a,f),f.send(p?i:d)}));return{title:"Url",name:"url",uploadFile(t,r,o,i,a,s,u,c,l,f){const p=function(c){return n(a,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},{[u]:t,name:r,dir:o},s,i,f).then((n=>(n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=c?c.project:"",n.data.form=c?c._id:"",{storage:"url",name:r,url:n.url,size:t.size,type:t.type,data:n.data})))};return t.private&&e.formId?e.loadForm().then((e=>p(e))):p()},deleteFile:(e,n)=>new Promise(((r,o)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?r("File deleted"):o(i.response||"Unable to delete file")},n&&t(n,i),i.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),n(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Url",t.default=n},55474:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,r,o=3,i=null){return n(this,void 0,void 0,(function*(){if(!o)throw new Error(i);return t(...r).catch((()=>e(t,r,o-1,i)))}))}},30430:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const i=o(n(44826));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const r in n)e[r]&&t.setRequestHeader(r,n[r])}};const a={trim:e=>(0,i.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(a.trim).join("/"),upload(e,t,n,o,i,s,u,c,l,f,p){return r(this,void 0,void 0,(function*(){const r=e.getToken();let d;try{d=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},r?{"x-jwt-token":r}:{}),body:JSON.stringify({name:a.path([s,i]),size:o.size,type:o.type,groupPermissions:c,groupId:l,multipart:p})})}catch(e){throw e.networkError=!0,e}if(!d.ok){if(504===d.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield d.text();throw new Error(e||"Unable to sign file.")}const h=yield d.json();return yield a.makeXhrRequest(e,n,h,u,f)}))},makeXhrRequest:(e,n,r,o,i)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;u.openAndSetHeaders=(...n)=>{u.open(...n),(0,t.setXhrHeaders)(e,u)},Promise.resolve(n(u,r,i)).then((e=>{if(!e)return a(r);u.onerror=e=>{e.networkError=!0,s(e)},u.onabort=e=>{e.networkError=!0,s(e)},u.onabort=s,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof i&&i((()=>u.abort())),u.onload=()=>{if(u.status>=200&&u.status<300)a(r);else if(504===u.status){const e=new Error("Network request failed");e.networkError=!0,s(e)}else s(u.response||"Unable to upload file")},u.send(e)})).catch(s)}))};t.default=a},95413:function(e,t,n){"use strict";var r,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const a=i(n(56036));class s{static setLicense(e,t=!1){r.license=e,!t&&r.FormioClass&&r.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){r.pathType=e,!t&&r.FormioClass&&r.FormioClass.setPathType(e)}static debug(...e){r.config.debug&&console.log(...e)}static clearCache(){r.FormioClass&&r.FormioClass.clearCache()}static global(e,t=""){const n=window[e];return t&&n&&!n[t]?null:(r.debug(`Getting global ${e}`,n),n)}static use(e){r.FormioClass&&r.FormioClass.isRenderer?r.FormioClass.use(e):r.modules.push(e)}static createElement(e,t,n){const o=document.createElement(e);return t?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),(n||[]).forEach((e=>{o.appendChild(r.createElement(e.tag,e.attrs,e.children))})),o):o}static addScript(e,t,n,i=""){return o(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>r.addScript(e,t))));if(n&&r.global(n,i))return r.debug(`${n} already loaded.`),Promise.resolve(r.global(n));r.debug("Adding Script",t);try{e.appendChild(r.createElement("script",{src:t}))}catch(e){return r.debug(e),Promise.resolve()}return n?new Promise((e=>{r.debug(`Waiting to load ${n}`);const t=setInterval((()=>{r.global(n,i)&&(clearInterval(t),r.debug(`${n} loaded.`),e(r.global(n)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return o(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>r.addStyles(e,t))):(r.debug("Adding Styles",t),e.appendChild(r.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return o(this,void 0,void 0,(function*(){r.debug("Submision Complete",t),r.config.submitDone&&r.config.submitDone(t,e);const n=(r.config.success||"").toString();n&&"false"!==n.toLowerCase()&&e.element&&(e.element.innerHTML=`<div class="alert-success" role="alert">${n}</div>`);let o=r.config.redirect;if(!o&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(r.debug("Return url found in form configuration"),o=e._form.settings.returnUrl||e._form.settings.redirect),o){const n=e.formio?e.formio.formUrl:"",i=!!o.match(/\?/),a=0===o.indexOf(location.origin);o+=i?"&":"?",o+=`sub=${t._id}`,!a&&n&&(o+=`&form=${encodeURIComponent(n)}`),r.debug("Return URL",o),window.location.href=o,a&&window.location.reload()}}))}static formioScript(e,t){return t=t||r.config.includeBuilder,r.fullAdded||t?(r.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,n){return o(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let n=0;n<t.dependencies.length;n++){const o=t.dependencies[n];yield r.addLibrary(e,r.config.libs[o],o)}if(t.css&&(yield r.addStyles(t.global?document.body:e,t.css)),t.js){const o=yield r.addScript(t.global?document.body:e,t.js,!!t.use&&n);if(t.use){r.debug(`Using ${n}`);const e=t.options||{};!e.license&&r.license&&(e.license=r.license),r.use("function"==typeof t.use?t.use(o):o,e)}}if(t.globalStyle){const e=r.createElement("style");e.type="text/css",e.innerHTML=t.globalStyle,document.body.appendChild(e)}}}))}static addLoader(e){return o(this,void 0,void 0,(function*(){e.appendChild(r.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]))}))}static init(e,t={},n=!1){return o(this,void 0,void 0,(function*(){r.cdn=new a.default(r.config.cdn,r.config.cdnUrls||{}),r.config.libs=r.config.libs||{uswds:{dependencies:["fontawesome"],js:`${r.cdn.uswds}/uswds.min.js`,css:`${r.cdn.uswds}/uswds.min.css`,use:!0},fontawesome:{css:"https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css",globalStyle:"@font-face {\n font-family: 'FontAwesome';\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0');\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');\n font-weight: normal;\n font-style: normal;\n }"},bootstrap4:{dependencies:["fontawesome"],css:`${r.cdn.bootstrap4}/css/bootstrap.min.css`},bootstrap:{dependencies:["bootstrap-icons"],css:`${r.cdn.bootstrap}/css/bootstrap.min.css`},"bootstrap-icons":{css:"https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.min.css",globalStyle:'@font-face {\n font-display: block;\n font-family: "bootstrap-icons";\n src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),\n url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff");\n }'}},["cerulean","cosmo","cyborg","darkly","flatly","journal","litera","lumen","lux","materia","minty","pulse","sandstone","simplex","sketchy","slate","solar","spacelab","superhero","united","yeti"].forEach((e=>{r.config.libs[e]={dependencies:["bootstrap-icons"],css:`${r.cdn.bootswatch}/dist/${e}/bootstrap.min.css`}}));const o=r.config.id||`formio-${Math.random().toString(36).substring(7)}`;let i=r.createElement("div",{id:`${o}-wrapper`});e.parentNode.insertBefore(i,e);const s=r.config.includeLibs&&!r.config.noshadow&&"function"==typeof i.attachShadow;s&&(i=i.attachShadow({mode:"open"}),t.shadowRoot=i),e.parentNode.removeChild(e),i.appendChild(e);const u=s?i:document.body;yield r.addStyles(u,r.config.embedCSS||`${r.cdn.js}/formio.embed.css`),r.addLoader(i);const c=r.config.full?"formio.full":"formio.form",l=r.config.debug?c:`${c}.min`;if(r.FormioClass=yield r.addScript(u,r.formioScript(r.config.script||`${r.cdn.js}/${l}.js`,n),"Formio",n?"isBuilder":"isRenderer"),r.FormioClass.cdn=r.cdn,r.FormioClass.setBaseUrl(t.baseUrl||r.baseUrl||r.config.base),r.FormioClass.setProjectUrl(t.projectUrl||r.projectUrl||r.config.project),r.FormioClass.language=r.language,r.setLicense(r.license||r.config.license||!1),r.modules.forEach((e=>{r.FormioClass.use(e)})),r.icons&&(r.FormioClass.icons=r.icons),r.pathType&&r.FormioClass.setPathType(r.pathType),r.config.template&&r.config.includeLibs&&(yield r.addLibrary(u,r.config.libs[r.config.template],r.config.template)),r.config.libraries||(r.config.libraries=r.config.modules||{}),r.config.premium&&(r.config.libraries.premium=r.config.premium),r.config.libraries)for(const e in r.config.libraries){const t=r.config.libraries[e];t.use=t.use||!0,yield r.addLibrary(u,t,e)}return yield r.addStyles(u,r.formioScript(r.config.style||`${r.cdn.js}/${l}.css`,n)),r.config.before&&(yield r.config.before(r.FormioClass,e,r.config)),r.FormioClass.license=!0,r._formioReady(r.FormioClass),i}))}static afterCreate(e,t,n){return o(this,void 0,void 0,(function*(){const o=t.querySelector(".formio-loader");return o&&t.removeChild(o),r.FormioClass.events.emit(n,e),r.config.after&&(r.debug("Calling ready callback"),r.config.after(e,r.config)),e}))}static createForm(e,t,n={}){return o(this,void 0,void 0,(function*(){if(r.FormioClass)return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0}));const o=yield r.init(e,n);return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0})).then((e=>(r.config.submission&&(r.debug("Setting submission",r.config.submission),e.submission=r.config.submission),r.afterCreate(e,o,"formEmbedded"),e)))}))}static builder(e,t,n={}){var i;return o(this,void 0,void 0,(function*(){if(null===(i=r.FormioClass)||void 0===i?void 0:i.builder)return r.FormioClass.builder(e,t,n);const o=yield r.init(e,n,!0);return r.FormioClass.builder(e,t,n).then((e=>(r.afterCreate(e,o,"builderEmbedded"),e)))}))}}t.Formio=s,r=s,s.FormioClass=null,s.config={},s.modules=[],s.icons="",s.license="",s.formioReady=new Promise(((e,t)=>{r._formioReady=e,r._formioReadyReject=t})),s.version="5.0.0-rc.96",s.Report={create:(e,t,n={})=>o(void 0,void 0,void 0,(function*(){var o;if(null===(o=r.FormioClass)||void 0===o?void 0:o.Report)return r.FormioClass.Report.create(e,t,n);const i=yield r.init(e,n,!0);return r.FormioClass.Report.create(e,t,n).then((e=>(r.afterCreate(e,i,"reportEmbedded"),e)))}))},a.default.defaultCDN=s.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class u{constructor(e,t,n){this.form=t,this.element=e,this.options=n||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return s.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=u;class c extends u{create(){return s.builder(this.element,this.form,this.options)}}t.FormBuilder=c,s.Form=u,s.FormBuilder=c},34040:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const o=n(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const i=n(95413),a=r(n(56036)),s=r(n(59962));o.Formio.cdn=new a.default,o.Formio.Providers=s.default,o.Formio.version="5.0.0-rc.96",a.default.defaultCDN=o.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const u=e=>null==e;o.Formio.prototype.uploadFile=function(e,t,n,r,i,a,c,l,f,p,d,h,m){const y={provider:e,method:"upload",file:t,fileName:n,dir:r};l=l||"file";const g=o.Formio.pluginWait("preRequest",y).then((()=>o.Formio.pluginGet("fileRequest",y).then((o=>{if(e&&u(o)){const o=s.default.getProvider("storage",e);if(o){const e=new o(this);return d&&d(),e.uploadFile(t,n,r,i,a,c,l,f,p,h,m)}throw"Storage provider not found"}return o||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",g,y)},o.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(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 o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},o.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(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 o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=o.Formio[e];o.Formio[e]=function(n){const r=i.Formio[e](n,!0);return t?t.call(this,n):r}})),o.Formio.Promise=Promise,o.Formio.formioReady=i.Formio.formioReady,o.Formio.config=i.Formio.config,o.Formio.builder=i.Formio.builder,o.Formio.Report=i.Formio.Report,o.Formio.Form=i.Formio.Form,o.Formio.FormBuilder=i.Formio.FormBuilder,o.Formio.use=i.Formio.use,o.Formio.createForm=i.Formio.createForm,o.Formio.submitDone=i.Formio.submitDone,o.Formio.addLibrary=i.Formio.addLibrary,o.Formio.addLoader=i.Formio.addLoader,o.Formio.addToGlobal=e=>{"object"!=typeof e||e.Formio||(e.Formio=o.Formio)},void 0!==n.g&&o.Formio.addToGlobal(n.g),"undefined"!=typeof window&&o.Formio.addToGlobal(window),i.Formio._formioReady(o.Formio)},54949:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return y},_areEquals:function(){return T},applyOperation:function(){return O},applyPatch:function(){return A},applyReducer:function(){return j},compare:function(){return I},deepClone:function(){return l},default:function(){return M},escapePathComponent:function(){return p},generate:function(){return D},getValueByPointer:function(){return w},observe:function(){return R},unescapePathComponent:function(){return d},unobserve:function(){return C},validate:function(){return P},validator:function(){return E}});var r={};n.r(r),n.d(r,{JsonPatchError:function(){return g},_areEquals:function(){return T},applyOperation:function(){return O},applyPatch:function(){return A},applyReducer:function(){return j},deepClone:function(){return v},getValueByPointer:function(){return w},validate:function(){return P},validator:function(){return E}});var o={};n.r(o),n.d(o,{compare:function(){return I},generate:function(){return D},observe:function(){return R},unobserve:function(){return C}});var i,a=(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)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function u(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)u(e,o)&&r.push(o);return r}function l(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function p(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var r=c(e),o=r.length,i=0;i<o;i++)if(h(e[r[i]]))return!0;return!1}function m(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var y=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,m(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=m(t,{name:n,index:r,operation:o,tree:i}),s}return a(t,e),t}(Error),g=y,v=l,b={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=w(n,this.path);r&&(r=l(r));var o=O(n,{op:"remove",path:this.from}).removed;return O(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=w(n,this.from);return O(n,{op:"add",path:this.path,value:l(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:T(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},_={add:function(e,t,n){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function w(e,t){if(""==t)return e;var n={op:"_get",path:t};return O(e,n),n.value}function O(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):E(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=w(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=T(e,t.value),!1===a.test)throw new g("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new g("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=l(e));var s=(t.path||"").split("/"),u=e,c=1,p=s.length,h=void 0,m=void 0,y=void 0;for(y="function"==typeof n?n:E;;){if((m=s[c])&&-1!=m.indexOf("~")&&(m=d(m)),o&&("__proto__"==m||"prototype"==m&&c>0&&"constructor"==s[c-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===h&&(void 0===u[m]?h=s.slice(0,c).join("/"):c==p-1&&(h=t.path),void 0!==h&&y(t,0,e,h)),c++,Array.isArray(u)){if("-"===m)m=u.length;else{if(n&&!f(m))throw new g("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",i,t,e);f(m)&&(m=~~m)}if(c>=p){if(n&&"add"===t.op&&m>u.length)throw new g("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=_[t.op].call(t,u,m,e)).test)throw new g("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(c>=p){if(!1===(a=b[t.op].call(t,u,m,e)).test)throw new g("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[m],n&&c<p&&(!u||"object"!=typeof u))throw new g("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function A(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new g("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=l(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=O(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function j(e,t,n){var r=O(e,t);if(!1===r.test)throw new g("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function E(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new g("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!b[e.op])throw new g("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new g("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new g('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 g("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 g("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)&&h(e.value))throw new g("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 o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new g("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!==r)throw new g("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 a=P([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new g("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function P(e,t,n){try{if(!Array.isArray(e))throw new g("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)A(l(t),l(e),n||!0);else{n=n||E;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof g)return e;throw e}}function T(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!T(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!T(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var x=new WeakMap,S=function(e){this.observers=new Map,this.obj=e},k=function(e,t){this.callback=e,this.observer=t};function C(e,t){t.unobserve()}function R(e,t){var n,r=function(e){return x.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new S(e),x.set(e,r);if(n)return n;if(n={},r.value=l(e),t){n.callback=t,n.next=null;var i=function(){D(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){D(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new k(t,n)),n}function D(e,t){void 0===t&&(t=!1);var n=x.get(e.object);U(n.value,e.object,e.patches,"",t),e.patches.length&&A(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function U(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=c(t),a=c(e),s=!1,f=a.length-1;f>=0;f--){var d=e[m=a[f]];if(!u(t,m)||void 0===t[m]&&void 0!==d&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"remove",path:r+"/"+p(m)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[m];"object"==typeof d&&null!=d&&"object"==typeof h&&null!=h&&Array.isArray(d)===Array.isArray(h)?U(d,h,n,r+"/"+p(m),o):d!==h&&(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"replace",path:r+"/"+p(m),value:l(h)}))}}if(s||i.length!=a.length)for(f=0;f<i.length;f++){var m;u(e,m=i[f])||void 0===t[m]||n.push({op:"add",path:r+"/"+p(m),value:l(t[m])})}}}function I(e,t,n){void 0===n&&(n=!1);var r=[];return U(e,t,r,"",n),r}const M=Object.assign({},r,o,{JsonPatchError:y,deepClone:l,escapePathComponent:p,unescapePathComponent:d})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r=n(34040);return r.Formio}()}));
|