@processmaker/screen-builder 2.85.9 → 2.85.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
205
205
  }
206
206
  `],sourceRoot:""}])},function(r,a,i){var n=i(7).each,s={_eventData:null,on:function(o,u){this._eventData||(this._eventData={}),this._eventData[o]||(this._eventData[o]=[]);var l=!1;n(this._eventData[o],function(c){if(c===u)return l=!0,!1}),l||this._eventData[o].push(u)},off:function(o,u){this._eventData||(this._eventData={}),this._eventData[o]&&this._eventData[o].length&&(u?n(this._eventData[o],function(l,c){if(l===u)return this._eventData[o].splice(c,1),!1},this):this._eventData[o]=[])},trigger:function(o){if(this._eventData||(this._eventData={}),!this._eventData[o])return!0;var u=this._eventData[o].slice.call(arguments,1),l=!1;return n(this._eventData[o],function(c){l=c.apply(this,u)===!1||l},this),!l}};r.exports=s},function(r,a,i){function n(l,c,d){o.defineNonEnumerable(this,"uploader",l),this.isRoot=this.isFolder=l===this,o.defineNonEnumerable(this,"parent",d||null),o.defineNonEnumerable(this,"files",[]),o.defineNonEnumerable(this,"fileList",[]),o.defineNonEnumerable(this,"chunks",[]),o.defineNonEnumerable(this,"_errorFiles",[]),o.defineNonEnumerable(this,"file",null),this.id=o.uid(),this.isRoot||!c?this.file=null:o.isString(c)?(this.isFolder=!0,this.file=null,this.path=c,this.parent.path&&(c=c.substr(this.parent.path.length)),this.name=c.charAt(c.length-1)==="/"?c.substr(0,c.length-1):c):(this.file=c,this.fileType=this.file.type,this.name=c.fileName||c.name,this.size=c.size,this.relativePath=c.relativePath||c.webkitRelativePath||this.name,this._parseFile()),this.paused=l.opts.initialPaused,this.error=!1,this.allError=!1,this.aborted=!1,this.completed=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function s(l){var c=[],d=l.split("/"),p=d.length,v=1;if(d.splice(p-1,1),p--,d.length)for(;v<=p;)c.push(d.slice(0,v++).join("/")+"/");return c}var o=i(7),u=i(22);o.extend(n.prototype,{_parseFile:function(){var l=s(this.relativePath);if(l.length){var c=this.uploader.filePaths;o.each(l,function(d,p){var v=c[d];v||(v=new n(this.uploader,d,this.parent),c[d]=v,this._updateParentFileList(v)),this.parent=v,v.files.push(this),l[p+1]||v.fileList.push(this)},this)}else this._updateParentFileList()},_updateParentFileList:function(l){l||(l=this);var c=this.parent;c&&c.fileList.push(l)},_eachAccess:function(l,c){if(this.isFolder)return void o.each(this.files,function(d,p){return l.call(this,d,p)},this);c.call(this,this)},bootstrap:function(){if(!this.isFolder){var l=this.uploader.opts;o.isFunction(l.initFileFn)&&l.initFileFn.call(this,this),this.abort(!0),this._resetError(),this._prevProgress=0;for(var c=l.forceChunkSize?Math.ceil:Math.floor,d=Math.max(c(this.size/l.chunkSize),1),p=0;p<d;p++)this.chunks.push(new u(this.uploader,this,p))}},_measureSpeed:function(){var l=this.uploader.opts.speedSmoothingFactor,c=Date.now()-this._lastProgressCallback;if(c){var d=this.sizeUploaded();this.currentSpeed=Math.max((d-this._prevUploadedSize)/c*1e3,0),this.averageSpeed=l*this.currentSpeed+(1-l)*this.averageSpeed,this._prevUploadedSize=d,this.parent&&this.parent._checkProgress()&&this.parent._measureSpeed()}},_checkProgress:function(l){return Date.now()-this._lastProgressCallback>=this.uploader.opts.progressCallbacksInterval},_chunkEvent:function(l,c,d){var p=this.uploader,v=u.STATUS,_=this,h=this.getRoot(),y=function(){_._measureSpeed(),p._trigger("fileProgress",h,_,l),_._lastProgressCallback=Date.now()};switch(c){case v.PROGRESS:this._checkProgress()&&y();break;case v.ERROR:this._error(),this.abort(!0),p._trigger("fileError",h,this,d,l);break;case v.SUCCESS:if(this._updateUploadedChunks(d,l),this.error)return;clearTimeout(this._progeressId),this._progeressId=0;var x=Date.now()-this._lastProgressCallback;x<p.opts.progressCallbacksInterval&&(this._progeressId=setTimeout(y,p.opts.progressCallbacksInterval-x)),this.isComplete()?(clearTimeout(this._progeressId),y(),this.currentSpeed=0,this.averageSpeed=0,p._trigger("fileSuccess",h,this,d,l),h.isComplete()&&p._trigger("fileComplete",h,this)):this._progeressId||y();break;case v.RETRY:p._trigger("fileRetry",h,this,l)}},_updateUploadedChunks:function(l,c){var d=this.uploader.opts.checkChunkUploadedByResponse;if(d){var p=c.xhr;o.each(this.chunks,function(v){if(!v.tested){var _=d.call(this,v,l);v!==c||_||(v.xhr=null),_&&(v.xhr=p),v.tested=!0}},this),this._firstResponse?this.uploader.uploadNextChunk():(this._firstResponse=!0,this.uploader.upload(!0))}else this.uploader.uploadNextChunk()},_error:function(){this.error=this.allError=!0;for(var l=this.parent;l&&l!==this.uploader;)l._errorFiles.push(this),l.error=!0,l._errorFiles.length===l.files.length&&(l.allError=!0),l=l.parent},_resetError:function(){this.error=this.allError=!1;for(var l=this.parent,c=-1;l&&l!==this.uploader;)c=l._errorFiles.indexOf(this),l._errorFiles.splice(c,1),l.allError=!1,l._errorFiles.length||(l.error=!1),l=l.parent},isComplete:function(){if(!this.completed){var l=!1;this._eachAccess(function(c){if(!c.isComplete())return l=!0,!1},function(){if(this.error)l=!0;else{var c=u.STATUS;o.each(this.chunks,function(d){var p=d.status();if(p===c.ERROR||p===c.PENDING||p===c.UPLOADING||p===c.READING||d.preprocessState===1||d.readState===1)return l=!0,!1})}}),this.completed=!l}return this.completed},isUploading:function(){var l=!1;return this._eachAccess(function(c){if(c.isUploading())return l=!0,!1},function(){var c=u.STATUS.UPLOADING;o.each(this.chunks,function(d){if(d.status()===c)return l=!0,!1})}),l},resume:function(){this._eachAccess(function(l){l.resume()},function(){this.paused=!1,this.aborted=!1,this.uploader.upload()}),this.paused=!1,this.aborted=!1},pause:function(){this._eachAccess(function(l){l.pause()},function(){this.paused=!0,this.abort()}),this.paused=!0},cancel:function(){this.uploader.removeFile(this)},retry:function(l){var c=function(d){d.error&&d.bootstrap()};l?l.bootstrap():this._eachAccess(c,function(){this.bootstrap()}),this.uploader.upload()},abort:function(l){if(!this.aborted){this.currentSpeed=0,this.averageSpeed=0,this.aborted=!l;var c=this.chunks;l&&(this.chunks=[]);var d=u.STATUS.UPLOADING;o.each(c,function(p){p.status()===d&&(p.abort(),this.uploader.uploadNextChunk())},this)}},progress:function(){var l=0,c=0,d=0;return this._eachAccess(function(p,v){l+=p.progress()*p.size,c+=p.size,v===this.files.length-1&&(d=c>0?l/c:this.isComplete()?1:0)},function(){if(this.error)return void(d=1);if(this.chunks.length===1)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),void(d=this._prevProgress);var p=0;o.each(this.chunks,function(_){p+=_.progress()*(_.endByte-_.startByte)});var v=p/this.size;this._prevProgress=Math.max(this._prevProgress,v>.9999?1:v),d=this._prevProgress}),d},getSize:function(){var l=0;return this._eachAccess(function(c){l+=c.size},function(){l+=this.size}),l},getFormatSize:function(){var l=this.getSize();return o.formatSize(l)},getRoot:function(){if(this.isRoot)return this;for(var l=this.parent;l;){if(l.parent===this.uploader)return l;l=l.parent}return this},sizeUploaded:function(){var l=0;return this._eachAccess(function(c){l+=c.sizeUploaded()},function(){o.each(this.chunks,function(c){l+=c.sizeUploaded()})}),l},timeRemaining:function(){function l(v,_){return v&&!_?Number.POSITIVE_INFINITY:v||_?Math.floor(v/_):0}var c=0,d=0,p=0;return this._eachAccess(function(v,_){v.paused||v.error||(d+=v.size-v.sizeUploaded(),p+=v.averageSpeed),_===this.files.length-1&&(c=l(d,p))},function(){if(this.paused||this.error)return void(c=0);var v=this.size-this.sizeUploaded();c=l(v,this.averageSpeed)}),c},removeFile:function(l){if(l.isFolder)for(;l.files.length;){var c=l.files[l.files.length-1];this._removeFile(c)}this._removeFile(l)},_delFilePath:function(l){l.path&&this.filePaths&&delete this.filePaths[l.path],o.each(l.fileList,function(c){this._delFilePath(c)},this)},_removeFile:function(l){if(!l.isFolder){o.each(this.files,function(p,v){if(p===l)return this.files.splice(v,1),!1},this),l.abort();for(var c,d=l.parent;d&&d!==this;)c=d.parent,d._removeFile(l),d=c}l.parent===this&&o.each(this.fileList,function(p,v){if(p===l)return this.fileList.splice(v,1),!1},this),this.isRoot||!this.isFolder||this.files.length||(this.parent._removeFile(this),this.uploader._delFilePath(this)),l.parent=null},getType:function(){return this.isFolder?"folder":this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.isFolder?"":this.name.substr(2+(~-this.name.lastIndexOf(".")>>>0)).toLowerCase()}}),r.exports=n},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement;return(i._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:!i.support,expression:"!support"}],staticClass:"uploader-unsupport"},[i._t("default",[i._m(0)])],2)},staticRenderFns:[function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("p",[i._v(`
207
207
  Your browser, unfortunately, is not supported by Uploader.js. The library requires support for `),s("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[i._v("the HTML5 File API")]),i._v(" along with "),s("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[i._v("file slicing")]),i._v(`.
208
- `)])}]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader-list"},[i._t("default",[s("ul",i._l(i.fileList,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o,list:!0}})],1)}))],{fileList:i.fileList})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader-file",attrs:{status:i.status}},[i._t("default",[s("div",{staticClass:"uploader-file-progress",class:i.progressingClass,style:i.progressStyle}),i._v(" "),s("div",{staticClass:"uploader-file-info"},[s("div",{staticClass:"uploader-file-name"},[s("i",{staticClass:"uploader-file-icon",attrs:{icon:i.fileCategory}}),i._v(i._s(i.file.name))]),i._v(" "),s("div",{staticClass:"uploader-file-size"},[i._v(i._s(i.formatedSize))]),i._v(" "),s("div",{staticClass:"uploader-file-meta"}),i._v(" "),s("div",{staticClass:"uploader-file-status"},[s("span",{directives:[{name:"show",rawName:"v-show",value:i.status!=="uploading",expression:"status !== 'uploading'"}]},[i._v(i._s(i.statusText))]),i._v(" "),s("span",{directives:[{name:"show",rawName:"v-show",value:i.status==="uploading",expression:"status === 'uploading'"}]},[s("span",[i._v(i._s(i.progressStyle.progress))]),i._v(" "),s("em",[i._v(i._s(i.formatedAverageSpeed))]),i._v(" "),s("i",[i._v(i._s(i.formatedTimeRemaining))])])]),i._v(" "),s("div",{staticClass:"uploader-file-actions"},[s("span",{staticClass:"uploader-file-pause",on:{click:i.pause}}),i._v(" "),s("span",{staticClass:"uploader-file-resume",on:{click:i.resume}},[i._v("️")]),i._v(" "),s("span",{staticClass:"uploader-file-retry",on:{click:i.retry}}),i._v(" "),s("span",{staticClass:"uploader-file-remove",on:{click:i.remove}})])])],{file:i.file,list:i.list,status:i.status,paused:i.paused,error:i.error,response:i.response,averageSpeed:i.averageSpeed,formatedAverageSpeed:i.formatedAverageSpeed,currentSpeed:i.currentSpeed,isComplete:i.isComplete,isUploading:i.isUploading,size:i.size,formatedSize:i.formatedSize,uploadedSize:i.uploadedSize,progress:i.progress,progressStyle:i.progressStyle,progressingClass:i.progressingClass,timeRemaining:i.timeRemaining,formatedTimeRemaining:i.formatedTimeRemaining,type:i.type,extension:i.extension,fileCategory:i.fileCategory})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader"},[i._t("default",[s("uploader-unsupport"),i._v(" "),s("uploader-drop",[s("p",[i._v("Drop files here to upload or")]),i._v(" "),s("uploader-btn",[i._v("select files")]),i._v(" "),s("uploader-btn",{attrs:{directory:!0}},[i._v("select folder")])],1),i._v(" "),s("uploader-list")],{files:i.files,fileList:i.fileList,started:i.started})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement;return(i._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:i.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:i.dropClass},[i._t("default")],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader-files"},[i._t("default",[s("ul",i._l(i.files,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o}})],1)}))],{files:i.files})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement;return(i._self._c||n)("label",{directives:[{name:"show",rawName:"v-show",value:i.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[i._t("default")],2)},staticRenderFns:[]}},function(r,a,i){var n=i(63);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("2e4f4074",n,!0,{})},function(r,a,i){var n=i(64);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("30297bf6",n,!0,{})},function(r,a,i){var n=i(65);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("9c4391de",n,!0,{})},function(r,a,i){var n=i(66);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("6f0f0164",n,!0,{})},function(r,a,i){var n=i(67);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("f60d437e",n,!0,{})},function(r,a,i){var n=i(68);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("36e02209",n,!0,{})},function(r,a,i){var n=i(69);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("fb1ffb7e",n,!0,{})},function(r,a){r.exports=function(i,n){for(var s=[],o={},u=0;u<n.length;u++){var l=n[u],c=l[0],d=l[1],p=l[2],v=l[3],_={id:i+":"+u,css:d,media:p,sourceMap:v};o[c]?o[c].parts.push(_):s.push(o[c]={id:c,parts:[_]})}return s}}])})})(Wf);var k_=Wf.exports;const __=ar(k_),bX="",w_=vn(),C_=["Cannot read property 'assignBrowse' of null","Cannot read property 'assignDrop' of null","Cannot read properties of null (reading 'assignBrowse')","Cannot read properties of null (reading 'assignDrop')"],T_={components:{...__,RequiredAsterisk:ee.RequiredAsterisk},mixins:[w_],props:["label","error","helper","name","value","controlClass","endpoint","accept","validation","parent","config","multipleUpload"],updated(){this.removeDefaultClasses()},mounted(){this.$root.$on("set-upload-data-name",(t,e,r)=>this.listenRecordList(t,e,r)),this.$root.$on("removed-record",(t,e)=>this.listenRemovedRecord(t,e)),this.$root.$on("removed-loop",(t,e)=>this.listenRemovedLoop(t,e)),window.ProcessMaker.EventBus.$on("modal-shown",()=>{this.clearFiles()}),this.removeDefaultClasses(),this.setPrefix(),this.$refs.uploader&&(this.$refs.uploader.$forceUpdate(),this.files.length>0&&(this.$refs.uploader.uploader.addFiles(this.files),this.uploading=!1)),this.disabled=H.get(window,"ProcessMaker.isSelfService",!1)},errorCaptured(t){if(C_.includes(t.message))return!1},computed:{filesFromGlobalRequestFiles(){return this.value?H.get(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,[]).filter(t=>this.multipleUpload?this.value.some(e=>e.file===t.id):t.id===this.value):[]},filesFromCollection(){return this.value?this.filesFromCollectionValue(this.value):[]},collection(){const t=document.head.querySelector('meta[name="collection-id"]');return t?t.content:!1},filesData(){return this.collection?this.filesFromCollection:this.filesFromGlobalRequestFiles},fileIds(){return this.files.map(t=>t.id)},nativeButtonAttrs(){const t={"data-cy":"file-upload-button"};return this.disabled&&(t.disabled=!0),t.accept=this.attrs.accept,t},required(){return this.config&&this.config.validation?this.config.validation==="required":!1},inPreviewMode(){return this.mode==="preview"&&!window.exampleScreens||this.mode==="editor"},mode(){return this.$root.$children[0].mode},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},inProgress(){return this.$refs.uploader.fileList.some(t=>t._prevProgress<1)},filesAccept(){if(!this.accept)return null;let t=[];return this.accept.split(",").forEach(e=>{t.push(e.trim())}),t},fileDataName(){return this.prefix+this.name+(this.row_id?"."+this.row_id:"")}},watch:{filesData:{handler(){this.setFiles()},immediate:!0,deep:!0},files:{handler(){this.collection||this.setRequestFiles(),this.$emit("input",this.valueToSend())},deep:!0},name:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},parent:{handler(){this.options.query.parent=this.parent},immediate:!0},prefix:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},row_id:{handler(){this.options.query.row_id=this.row_id,this.options.query.data_name=this.prefix+this.name+(this.row_id?"."+this.row_id:"")},immediate:!0},multipleUpload:{handler(){this.options.query.multiple=this.multipleUpload},immediate:!0}},data(){return{uploaderId:1,content:"",validator:{errorCount:0,errors:[]},prefix:"",row_id:null,options:{target:this.getTargetUrl,simultaneousUploads:1,query:{chunk:!0,data_name:this.name,parent:null,row_id:null},testChunks:!1,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"]},singleFile:!this.multipleUpload},attrs:{accept:this.accept},disabled:!1,files:[],nativeFiles:{},uploading:!1,invalidFile:!1,showComponent:!0}},methods:{clearFiles(){this.showComponent=!1,this.$nextTick(()=>{this.showComponent=!0})},uploaderLoaded(){return this.$refs.uploader},setFiles(){H.isEqual(this.filesData,this.files)||(this.files=this.filesData)},filesFromCollectionValue(t){return t?this.multipleUpload?this.filesFromCollectionMulti(t):this.filesFromCollectionSingle(t):[]},filesFromCollectionSingle(t){return[{id:t.id,file_name:t.name}]},filesFromCollectionMulti(t){return t.map(e=>({id:e.file.id,file_name:e.file.name}))},setRequestFiles(){H.set(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,this.files),this.$emit("input",this.valueToSend())},valueToSend(){return this.multipleUpload?this.valueForMulti():this.valueForSingle()},valueForMulti(){return this.files.map(t=>({file:this.formatForType(t)}))},valueForSingle(){return this.files.length>0?this.formatForType(this.files[0]):null},formatForType(t){return this.collection?{id:t.id,name:t.file_name}:t.id},hasFileId(t){return this.fileIds.includes(t)},listenRemovedLoop(t,e){this.deleteAssociatedFiles(e)},listenRemovedRecord(t,e){this.parentRecordList(this)===t&&this.deleteAssociatedFiles(e)},async deleteAssociatedFiles(t){for(const e in t)if(e===this.name&&t[e]){const r=this.idsFromValue(t[e]);for(const a of r)this.hasFileId(a)&&(await this.$dataProvider.deleteFile(a).catch(i=>{}),this.removeFromFiles(a))}},idsFromValue(t){return this.collection?this.filesFromCollectionValue(t).map(e=>e.id):this.multipleUpload?t.map(e=>e.file):[t]},async removeFile(t){const e=t.id,r=t.token?t.token:null;isNaN(e)||await this.$dataProvider.deleteFile(e,r),this.removeFromFiles(e)},removeFromFiles(t){const e=this.files.findIndex(r=>r.id===t);this.$delete(this.files,e),this.nativeFiles[t]&&(this.$refs.uploader&&this.$refs.uploader.uploader.removeFile(this.nativeFiles[t]),this.$delete(this.nativeFiles,t))},addToFiles(t){this.multipleUpload?this.files.push(t):this.files=[t]},listenRecordList(t,e,r){const a=this.parentRecordList(this);a===t&&(this.row_id=a!==null?r:null)},setPrefix(){let t=this.$parent,e=0;for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e++,e>100)throw"Loop Error"}t&&t.loopContext&&(this.prefix=t.loopContext+".")},addFile(t){if(this.disabled)return t.ignored=!0,!1;if(t.fileType===void 0){const e=this.files.find(r=>{if(r.name===t.name)return r.fileType});t.fileType=e.fileType}return this.filesAccept&&(t.ignored=!0,this.filesAccept.indexOf(t.fileType)!==-1&&(t.ignored=!1),t.ignored)?(this.invalidFile=!0,this.uploading=!1,window.ProcessMaker.alert(this.$t("This file type is not accepted."),"danger"),!1):(t.ignored=!1,this.name||(this.options.query.data_name=t.name),!0)},removeDefaultClasses(){this.$el.querySelectorAll(".uploader-btn, .uploader-drop").forEach(t=>{t.classList.remove("uploader-btn","uploader-drop")})},browse(t){["Enter","Space"].includes(t.code)&&t.target.click()},fileUploaded(t,e,r){this.uploading=!1;let a=e.name;if(r){const i=JSON.parse(r);let n=i.fileUploadId;this.collection&&(n=i.id);const s={id:n,file_name:a,mime_type:t.fileType,name:a,fileType:t.fileType};this.$set(this.nativeFiles,n,t),this.addToFiles(s)}else this.$emit("input",a)},removed(){this.inProgress||this.complete()},complete(){this.validator.errorCount=0,window.onbeforeunload=function(){}},parentRecordList(t){return t.$parent&&t.$parent.$options?t.$parent.$options._componentTag==="form-record-list"?t.$parent:this.parentRecordList(t.$parent):null},start(){this.invalidFile||(this.uploading=!0,this.parentRecordList(this)===null&&(this.row_id=null),this.validator.errorCount=1,window.onbeforeunload=function(){return!0})},getTargetUrl(){if(H.has(window,"PM4ConfigOverrides.postFileEndpoint"))return window.PM4ConfigOverrides.postFileEndpoint;if(this.endpoint)return this.endpoint;if(this.collection)return"/api/1.0/files?model=ProcessMaker\\Plugins\\Collections\\Models\\Collection&model_id="+this.collection+"&collection=collection";{const t=document.head.querySelector('meta[name="request-id"]');return t?`/api/1.0/requests/${t.content}/files`:null}}}};var A_=function(){var e=this,r=e._self._c;return r("div",[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.inPreviewMode?r("b-card",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("File uploads are unavailable in preview mode."))+" ")]):e._e(),!e.inPreviewMode&&e.showComponent?r("uploader",{ref:"uploader",class:{"was-validated":e.required},attrs:{options:e.options,attrs:e.attrs},on:{complete:e.complete,"upload-start":e.start,"file-removed":e.removed,"file-success":e.fileUploaded,"file-added":e.addFile}},[r("uploader-unsupport"),e.uploaderLoaded?r("uploader-drop",{staticClass:"form-control-file"},[r("p",[e._v(e._s(e.$t("Drop a file here to upload or")))]),r("uploader-btn",{staticClass:"btn btn-secondary text-white",class:{disabled:e.disabled},attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(a){return e.browse.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("select file"))+" ")]),e.validation==="required"&&!e.value?r("span",{staticClass:"required"},[e._v(e._s(e.$t("Required")))]):e._e()],1):e._e(),r("uploader-list",{scopedSlots:e._u([{key:"default",fn:function({fileList:a}){return[e.uploading?r("ul",e._l(a,function(i){return r("li",{key:i.id},[r("uploader-file",{attrs:{file:i,list:!0}})],1)}),0):r("ul",e._l(e.files,function(i,n){return r("li",{key:n,attrs:{"data-cy":i.id}},[r("div",{},[r("div",{staticStyle:{display:"flex",background:"rgb(226 238 255)"}},[e.nativeFiles[i.id]?r("div",{staticClass:"overflow-hidden",staticStyle:{flex:"1"},attrs:{"data-cy":i.file_name.replace(/[^0-9a-zA-Z\-]/g,"-")}},[r("uploader-file",{attrs:{file:e.nativeFiles[i.id],list:!0}})],1):r("div",{staticClass:"text-truncate",staticStyle:{flex:"1"},attrs:{title:i.file_name}},[r("i",{staticClass:"fas fa-paperclip"}),e._v(" "+e._s(i.file_name)+" ")]),r("div",{staticClass:"pt-1"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"outline",title:e.$t("Delete")},on:{click:function(s){return e.removeFile(i)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)])])])}),0)]}}],null,!1,3267103099)}),r("div",{staticClass:"invalid-feedback",class:{"d-block":e.error&&!e.value}},[e._v(" "+e._s(e.$t("Field is required"))+" ")])],1):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],1)},O_=[],E_=oe(T_,A_,O_,!1,null,"91ddb437",null,null);const bn=E_.exports,yX="",M_={props:{width:{default:64},height:{default:64}},data(){return{user:window.Processmaker.user}},mounted(){this.getInitials()},methods:{getInitials(){return this.user.firstname&&this.user.lastname?this.user.firstname.match(/./u)[0]+this.user.lastname.match(/./u)[0]:""},variant(){return this.user.avatar?"secondary":"info"},styleAvatar(){return"width: "+this.width+"px; height: "+this.height+"px; font-size:"+this.height/2.5+"px; padding:0;"}}};var $_=function(){var e=this,r=e._self._c;return r("span",[r("b-button",{staticClass:"avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0",style:e.styleAvatar(),attrs:{variant:e.variant(),disabled:""}},[e.user.avatar?r("img",{class:e.image,attrs:{src:e.user.avatar,width:e.width,height:e.height,alt:e.user.fullname}}):r("span",{staticClass:"border-0 d-inline-flex align-items-center justify-content-center text-white text-uppercase text-nowrap font-weight-normal",style:e.styleAvatar()},[e.getInitials()?r("span",[e._v(e._s(e.getInitials()))]):r("span",[e._v("PM")])])])],1)},P_=[],D_=oe(M_,$_,P_,!1,null,"5418080e",null,null);const yn=D_.exports;var Vf={exports:{}};(function(t,e){(function(r,a){t.exports=a()})(wt,function(){/*!
208
+ `)])}]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader-list"},[i._t("default",[s("ul",i._l(i.fileList,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o,list:!0}})],1)}))],{fileList:i.fileList})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader-file",attrs:{status:i.status}},[i._t("default",[s("div",{staticClass:"uploader-file-progress",class:i.progressingClass,style:i.progressStyle}),i._v(" "),s("div",{staticClass:"uploader-file-info"},[s("div",{staticClass:"uploader-file-name"},[s("i",{staticClass:"uploader-file-icon",attrs:{icon:i.fileCategory}}),i._v(i._s(i.file.name))]),i._v(" "),s("div",{staticClass:"uploader-file-size"},[i._v(i._s(i.formatedSize))]),i._v(" "),s("div",{staticClass:"uploader-file-meta"}),i._v(" "),s("div",{staticClass:"uploader-file-status"},[s("span",{directives:[{name:"show",rawName:"v-show",value:i.status!=="uploading",expression:"status !== 'uploading'"}]},[i._v(i._s(i.statusText))]),i._v(" "),s("span",{directives:[{name:"show",rawName:"v-show",value:i.status==="uploading",expression:"status === 'uploading'"}]},[s("span",[i._v(i._s(i.progressStyle.progress))]),i._v(" "),s("em",[i._v(i._s(i.formatedAverageSpeed))]),i._v(" "),s("i",[i._v(i._s(i.formatedTimeRemaining))])])]),i._v(" "),s("div",{staticClass:"uploader-file-actions"},[s("span",{staticClass:"uploader-file-pause",on:{click:i.pause}}),i._v(" "),s("span",{staticClass:"uploader-file-resume",on:{click:i.resume}},[i._v("️")]),i._v(" "),s("span",{staticClass:"uploader-file-retry",on:{click:i.retry}}),i._v(" "),s("span",{staticClass:"uploader-file-remove",on:{click:i.remove}})])])],{file:i.file,list:i.list,status:i.status,paused:i.paused,error:i.error,response:i.response,averageSpeed:i.averageSpeed,formatedAverageSpeed:i.formatedAverageSpeed,currentSpeed:i.currentSpeed,isComplete:i.isComplete,isUploading:i.isUploading,size:i.size,formatedSize:i.formatedSize,uploadedSize:i.uploadedSize,progress:i.progress,progressStyle:i.progressStyle,progressingClass:i.progressingClass,timeRemaining:i.timeRemaining,formatedTimeRemaining:i.formatedTimeRemaining,type:i.type,extension:i.extension,fileCategory:i.fileCategory})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader"},[i._t("default",[s("uploader-unsupport"),i._v(" "),s("uploader-drop",[s("p",[i._v("Drop files here to upload or")]),i._v(" "),s("uploader-btn",[i._v("select files")]),i._v(" "),s("uploader-btn",{attrs:{directory:!0}},[i._v("select folder")])],1),i._v(" "),s("uploader-list")],{files:i.files,fileList:i.fileList,started:i.started})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement;return(i._self._c||n)("div",{directives:[{name:"show",rawName:"v-show",value:i.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:i.dropClass},[i._t("default")],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement,s=i._self._c||n;return s("div",{staticClass:"uploader-files"},[i._t("default",[s("ul",i._l(i.files,function(o){return s("li",{key:o.id},[s("uploader-file",{attrs:{file:o}})],1)}))],{files:i.files})],2)},staticRenderFns:[]}},function(r,a){r.exports={render:function(){var i=this,n=i.$createElement;return(i._self._c||n)("label",{directives:[{name:"show",rawName:"v-show",value:i.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[i._t("default")],2)},staticRenderFns:[]}},function(r,a,i){var n=i(63);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("2e4f4074",n,!0,{})},function(r,a,i){var n=i(64);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("30297bf6",n,!0,{})},function(r,a,i){var n=i(65);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("9c4391de",n,!0,{})},function(r,a,i){var n=i(66);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("6f0f0164",n,!0,{})},function(r,a,i){var n=i(67);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("f60d437e",n,!0,{})},function(r,a,i){var n=i(68);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("36e02209",n,!0,{})},function(r,a,i){var n=i(69);typeof n=="string"&&(n=[[r.i,n,""]]),n.locals&&(r.exports=n.locals),i(2)("fb1ffb7e",n,!0,{})},function(r,a){r.exports=function(i,n){for(var s=[],o={},u=0;u<n.length;u++){var l=n[u],c=l[0],d=l[1],p=l[2],v=l[3],_={id:i+":"+u,css:d,media:p,sourceMap:v};o[c]?o[c].parts.push(_):s.push(o[c]={id:c,parts:[_]})}return s}}])})})(Wf);var k_=Wf.exports;const __=ar(k_),bX="",w_=vn(),C_=["Cannot read property 'assignBrowse' of null","Cannot read property 'assignDrop' of null","Cannot read properties of null (reading 'assignBrowse')","Cannot read properties of null (reading 'assignDrop')"],T_={components:{...__,RequiredAsterisk:ee.RequiredAsterisk},mixins:[w_],props:["label","error","helper","name","value","controlClass","endpoint","accept","validation","parent","config","multipleUpload"],updated(){this.removeDefaultClasses()},mounted(){this.$root.$on("set-upload-data-name",(t,e,r)=>this.listenRecordList(t,e,r)),this.$root.$on("removed-record",(t,e)=>this.listenRemovedRecord(t,e)),this.$root.$on("removed-loop",(t,e)=>this.listenRemovedLoop(t,e)),window.ProcessMaker.EventBus.$on("modal-shown",()=>{this.clearFiles()}),this.removeDefaultClasses(),this.setPrefix(),this.$refs.uploader&&this.$refs.uploader.$forceUpdate(),this.disabled=H.get(window,"ProcessMaker.isSelfService",!1)},errorCaptured(t){if(C_.includes(t.message))return!1},computed:{filesFromGlobalRequestFiles(){return this.value?H.get(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,[]).filter(t=>this.multipleUpload?this.value.some(e=>e.file===t.id):t.id===this.value):[]},filesFromCollection(){return this.value?this.filesFromCollectionValue(this.value):[]},collection(){const t=document.head.querySelector('meta[name="collection-id"]');return t?t.content:!1},filesData(){return this.collection?this.filesFromCollection:this.filesFromGlobalRequestFiles},fileIds(){return this.files.map(t=>t.id)},nativeButtonAttrs(){const t={"data-cy":"file-upload-button"};return this.disabled&&(t.disabled=!0),t.accept=this.attrs.accept,t},required(){return this.config&&this.config.validation?this.config.validation==="required":!1},inPreviewMode(){return this.mode==="preview"&&!window.exampleScreens||this.mode==="editor"},mode(){return this.$root.$children[0].mode},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},inProgress(){return this.$refs.uploader.fileList.some(t=>t._prevProgress<1)},filesAccept(){if(!this.accept)return null;let t=[];return this.accept.split(",").forEach(e=>{t.push(e.trim())}),t},fileDataName(){return this.prefix+this.name+(this.row_id?"."+this.row_id:"")}},watch:{filesData:{handler(){this.setFiles()},immediate:!0,deep:!0},files:{handler(){this.collection||this.setRequestFiles(),this.$emit("input",this.valueToSend())},deep:!0},name:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},parent:{handler(){this.options.query.parent=this.parent},immediate:!0},prefix:{handler(){this.options.query.data_name=this.fileDataName},immediate:!0},row_id:{handler(){this.options.query.row_id=this.row_id,this.options.query.data_name=this.prefix+this.name+(this.row_id?"."+this.row_id:"")},immediate:!0},multipleUpload:{handler(){this.options.query.multiple=this.multipleUpload},immediate:!0}},data(){return{uploaderId:1,content:"",validator:{errorCount:0,errors:[]},prefix:"",row_id:null,options:{target:this.getTargetUrl,simultaneousUploads:1,query:{chunk:!0,data_name:this.name,parent:null,row_id:null,task_id:H.get(window,"_current_task_id",0)},testChunks:!1,headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":window.ProcessMaker.apiClient.defaults.headers.common["X-CSRF-TOKEN"]},singleFile:!this.multipleUpload},attrs:{accept:this.accept},disabled:!1,files:[],nativeFiles:{},uploading:!1,invalidFile:!1,showComponent:!0}},methods:{clearFiles(){this.showComponent=!1,this.$nextTick(()=>{this.showComponent=!0})},uploaderLoaded(){return this.$refs.uploader},setFiles(){H.isEqual(this.filesData,this.files)||(this.files=this.filesData)},filesFromCollectionValue(t){return t?this.multipleUpload?this.filesFromCollectionMulti(t):this.filesFromCollectionSingle(t):[]},filesFromCollectionSingle(t){return[{id:t.id,file_name:t.name}]},filesFromCollectionMulti(t){return t.map(e=>({id:e.file.id,file_name:e.file.name}))},setRequestFiles(){H.set(window,`PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`,this.files),this.$emit("input",this.valueToSend())},valueToSend(){return this.multipleUpload?this.valueForMulti():this.valueForSingle()},valueForMulti(){return this.files.map(t=>({file:this.formatForType(t)}))},valueForSingle(){return this.files.length>0?this.formatForType(this.files[0]):null},formatForType(t){return this.collection?{id:t.id,name:t.file_name}:t.id},hasFileId(t){return this.fileIds.includes(t)},listenRemovedLoop(t,e){this.deleteAssociatedFiles(e)},listenRemovedRecord(t,e){this.parentRecordList(this)===t&&this.deleteAssociatedFiles(e)},async deleteAssociatedFiles(t){for(const e in t)if(e===this.name&&t[e]){const r=this.idsFromValue(t[e]);for(const a of r)this.hasFileId(a)&&(await this.$dataProvider.deleteFile(a).catch(i=>{}),this.removeFromFiles(a))}},idsFromValue(t){return this.collection?this.filesFromCollectionValue(t).map(e=>e.id):this.multipleUpload?t.map(e=>e.file):[t]},async removeFile(t){const e=t.id,r=t.token?t.token:null;isNaN(e)||await this.$dataProvider.deleteFile(e,r),this.removeFromFiles(e)},removeFromFiles(t){const e=this.files.findIndex(r=>r.id===t);this.$delete(this.files,e),this.nativeFiles[t]&&(this.$refs.uploader&&this.$refs.uploader.uploader.removeFile(this.nativeFiles[t]),this.$delete(this.nativeFiles,t))},addToFiles(t){this.multipleUpload?this.files.push(t):this.files=[t]},listenRecordList(t,e,r){const a=this.parentRecordList(this);a===t&&(this.row_id=a!==null?r:null)},setPrefix(){let t=this.$parent,e=0;for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e++,e>100)throw"Loop Error"}t&&t.loopContext&&(this.prefix=t.loopContext+".")},addFile(t){if(this.disabled)return t.ignored=!0,!1;if(t.fileType===void 0){const e=this.files.find(r=>{if(r.name===t.name)return r.fileType});t.fileType=e.fileType}return this.filesAccept&&(t.ignored=!0,this.filesAccept.indexOf(t.fileType)!==-1&&(t.ignored=!1),t.ignored)?(this.invalidFile=!0,this.uploading=!1,window.ProcessMaker.alert(this.$t("This file type is not accepted."),"danger"),!1):(t.ignored=!1,this.name||(this.options.query.data_name=t.name),!0)},removeDefaultClasses(){this.$el.querySelectorAll(".uploader-btn, .uploader-drop").forEach(t=>{t.classList.remove("uploader-btn","uploader-drop")})},browse(t){["Enter","Space"].includes(t.code)&&t.target.click()},fileUploaded(t,e,r){this.uploading=!1;let a=e.name;if(r){const i=JSON.parse(r);let n=i.fileUploadId;this.collection&&(n=i.id);const s={id:n,file_name:a,mime_type:t.fileType,name:a,fileType:t.fileType};this.$set(this.nativeFiles,n,t),this.addToFiles(s)}else this.$emit("input",a)},removed(){this.inProgress||this.complete()},complete(){this.validator.errorCount=0,window.onbeforeunload=function(){}},parentRecordList(t){return t.$parent&&t.$parent.$options?t.$parent.$options._componentTag==="form-record-list"?t.$parent:this.parentRecordList(t.$parent):null},start(){this.invalidFile||(this.uploading=!0,this.parentRecordList(this)===null&&(this.row_id=null),this.validator.errorCount=1,window.onbeforeunload=function(){return!0})},getTargetUrl(){if(H.has(window,"PM4ConfigOverrides.postFileEndpoint"))return window.PM4ConfigOverrides.postFileEndpoint;if(this.endpoint)return this.endpoint;if(this.collection)return"/api/1.0/files?model=ProcessMaker\\Plugins\\Collections\\Models\\Collection&model_id="+this.collection+"&collection=collection";{const t=document.head.querySelector('meta[name="request-id"]');return t?`/api/1.0/requests/${t.content}/files`:null}}}};var A_=function(){var e=this,r=e._self._c;return r("div",[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.inPreviewMode?r("b-card",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("File uploads are unavailable in preview mode."))+" ")]):e._e(),!e.inPreviewMode&&e.showComponent?r("uploader",{ref:"uploader",class:{"was-validated":e.required},attrs:{options:e.options,attrs:e.attrs},on:{complete:e.complete,"upload-start":e.start,"file-removed":e.removed,"file-success":e.fileUploaded,"file-added":e.addFile}},[r("uploader-unsupport"),e.uploaderLoaded?r("uploader-drop",{staticClass:"form-control-file"},[r("p",[e._v(e._s(e.$t("Drop a file here to upload or")))]),r("uploader-btn",{staticClass:"btn btn-secondary text-white",class:{disabled:e.disabled},attrs:{attrs:e.nativeButtonAttrs,tabindex:"0","aria-label":e.$attrs["aria-label"]},nativeOn:{keyup:function(a){return e.browse.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("select file"))+" ")]),e.validation==="required"&&!e.value?r("span",{staticClass:"required"},[e._v(e._s(e.$t("Required")))]):e._e()],1):e._e(),r("uploader-list",{scopedSlots:e._u([{key:"default",fn:function({fileList:a}){return[e.uploading?r("ul",e._l(a,function(i){return r("li",{key:i.id},[r("uploader-file",{attrs:{file:i,list:!0}})],1)}),0):r("ul",e._l(e.files,function(i,n){return r("li",{key:n,attrs:{"data-cy":i.id}},[r("div",{},[r("div",{staticStyle:{display:"flex",background:"rgb(226 238 255)"}},[e.nativeFiles[i.id]?r("div",{staticClass:"overflow-hidden",staticStyle:{flex:"1"},attrs:{"data-cy":i.file_name.replace(/[^0-9a-zA-Z\-]/g,"-")}},[r("uploader-file",{attrs:{file:e.nativeFiles[i.id],list:!0}})],1):r("div",{staticClass:"text-truncate",staticStyle:{flex:"1"},attrs:{title:i.file_name}},[r("i",{staticClass:"fas fa-paperclip"}),e._v(" "+e._s(i.file_name)+" ")]),r("div",{staticClass:"pt-1"},[r("b-btn",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{variant:"outline",title:e.$t("Delete")},on:{click:function(s){return e.removeFile(i)}}},[r("i",{staticClass:"fas fa-trash-alt"})])],1)])])])}),0)]}}],null,!1,3267103099)}),r("div",{staticClass:"invalid-feedback",class:{"d-block":e.error&&!e.value}},[e._v(" "+e._s(e.$t("Field is required"))+" ")])],1):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],1)},O_=[],E_=oe(T_,A_,O_,!1,null,"c1f1eef6",null,null);const bn=E_.exports,yX="",M_={props:{width:{default:64},height:{default:64}},data(){return{user:window.Processmaker.user}},mounted(){this.getInitials()},methods:{getInitials(){return this.user.firstname&&this.user.lastname?this.user.firstname.match(/./u)[0]+this.user.lastname.match(/./u)[0]:""},variant(){return this.user.avatar?"secondary":"info"},styleAvatar(){return"width: "+this.width+"px; height: "+this.height+"px; font-size:"+this.height/2.5+"px; padding:0;"}}};var $_=function(){var e=this,r=e._self._c;return r("span",[r("b-button",{staticClass:"avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0",style:e.styleAvatar(),attrs:{variant:e.variant(),disabled:""}},[e.user.avatar?r("img",{class:e.image,attrs:{src:e.user.avatar,width:e.width,height:e.height,alt:e.user.fullname}}):r("span",{staticClass:"border-0 d-inline-flex align-items-center justify-content-center text-white text-uppercase text-nowrap font-weight-normal",style:e.styleAvatar()},[e.getInitials()?r("span",[e._v(e._s(e.getInitials()))]):r("span",[e._v("PM")])])])],1)},P_=[],D_=oe(M_,$_,P_,!1,null,"5418080e",null,null);const yn=D_.exports;var Vf={exports:{}};(function(t,e){(function(r,a){t.exports=a()})(wt,function(){/*!
209
209
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
210
210
  * http://github.com/janl/mustache.js
211
211
  */var r=Object.prototype.toString,a=Array.isArray||function(E){return r.call(E)==="[object Array]"};function i(T){return typeof T=="function"}function n(T){return a(T)?"array":typeof T}function s(T){return T.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(T,E){return T!=null&&typeof T=="object"&&E in T}function u(T,E){return T!=null&&typeof T!="object"&&T.hasOwnProperty&&T.hasOwnProperty(E)}var l=RegExp.prototype.test;function c(T,E){return l.call(T,E)}var d=/\S/;function p(T){return!c(d,T)}var v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function _(T){return String(T).replace(/[&<>"'`=\/]/g,function(z){return v[z]})}var h=/\s*/,y=/\s+/,x=/\s*=/,S=/\s*\}/,b=/#|\^|\/|>|\{|&|=|!/;function f(T,E){if(!T)return[];var z=!1,F=[],N=[],U=[],q=!1,P=!1,D="",I=0;function L(){if(q&&!P)for(;U.length;)delete N[U.pop()];else U=[];q=!1,P=!1}var W,Y,Q;function J(le){if(typeof le=="string"&&(le=le.split(y,2)),!a(le)||le.length!==2)throw new Error("Invalid tags: "+le);W=new RegExp(s(le[0])+"\\s*"),Y=new RegExp("\\s*"+s(le[1])),Q=new RegExp("\\s*"+s("}"+le[1]))}J(E||C.tags);for(var R=new m(T),A,$,j,B,G,Z;!R.eos();){if(A=R.pos,j=R.scanUntil(W),j)for(var te=0,re=j.length;te<re;++te)B=j.charAt(te),p(B)?(U.push(N.length),D+=B):(P=!0,z=!0,D+=" "),N.push(["text",B,A,A+1]),A+=1,B===`
@@ -265,7 +265,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
265
265
  `):" "+Dv(n[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:hd};function md(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Wn(null,t)}function zv(t){return md(t),t.headers=Wr.from(t.headers),t.data=fd.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Iv.getAdapter(t.adapter||dd.adapter)(t).then(function(a){return md(t),a.data=fd.call(t,t.transformResponse,a),a.headers=Wr.from(a.headers),a},function(a){return Mv(a)||(md(t),a&&a.response&&(a.response.data=fd.call(t,t.transformResponse,a.response),a.response.headers=Wr.from(a.response.headers))),Promise.reject(a)})}const Lv=t=>t instanceof Wr?t.toJSON():t;function ki(t,e){e=e||{};const r={};function a(l,c,d){return X.isPlainObject(l)&&X.isPlainObject(c)?X.merge.call({caseless:d},l,c):X.isPlainObject(c)?X.merge({},c):X.isArray(c)?c.slice():c}function i(l,c,d){if(X.isUndefined(c)){if(!X.isUndefined(l))return a(void 0,l,d)}else return a(l,c,d)}function n(l,c){if(!X.isUndefined(c))return a(void 0,c)}function s(l,c){if(X.isUndefined(c)){if(!X.isUndefined(l))return a(void 0,l)}else return a(void 0,c)}function o(l,c,d){if(d in e)return a(l,c);if(d in t)return a(void 0,l)}const u={url:n,method:n,data:n,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(l,c)=>i(Lv(l),Lv(c),!0)};return X.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=u[c]||i,p=d(t[c],e[c],c);X.isUndefined(p)&&d!==o||(r[c]=p)}),r}const jv="1.6.7",gd={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{gd[t]=function(a){return typeof a===t||"a"+(e<1?"n ":" ")+t}});const Nv={};gd.transitional=function(e,r,a){function i(n,s){return"[Axios v"+jv+"] Transitional option '"+n+"'"+s+(a?". "+a:"")}return(n,s,o)=>{if(e===!1)throw new Oe(i(s," has been removed"+(r?" in "+r:"")),Oe.ERR_DEPRECATED);return r&&!Nv[s]&&(Nv[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(n,s,o):!0}};function rB(t,e,r){if(typeof t!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let i=a.length;for(;i-- >0;){const n=a[i],s=e[n];if(s){const o=t[n],u=o===void 0||s(o,n,t);if(u!==!0)throw new Oe("option "+n+" must be "+u,Oe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Oe("Unknown option "+n,Oe.ERR_BAD_OPTION)}}const vd={assertOptions:rB,validators:gd},ca=vd.validators;class fl{constructor(e){this.defaults=e,this.interceptors={request:new Cv,response:new Cv}}async request(e,r){try{return await this._request(e,r)}catch(a){if(a instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const n=i.stack?i.stack.replace(/^.+\n/,""):"";a.stack?n&&!String(a.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(a.stack+=`
266
266
  `+n):a.stack=n}throw a}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=ki(this.defaults,r);const{transitional:a,paramsSerializer:i,headers:n}=r;a!==void 0&&vd.assertOptions(a,{silentJSONParsing:ca.transitional(ca.boolean),forcedJSONParsing:ca.transitional(ca.boolean),clarifyTimeoutError:ca.transitional(ca.boolean)},!1),i!=null&&(X.isFunction(i)?r.paramsSerializer={serialize:i}:vd.assertOptions(i,{encode:ca.function,serialize:ca.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=n&&X.merge(n.common,n[r.method]);n&&X.forEach(["delete","get","head","post","put","patch","common"],_=>{delete n[_]}),r.headers=Wr.concat(s,n);const o=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(u=u&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let c,d=0,p;if(!u){const _=[zv.bind(this),void 0];for(_.unshift.apply(_,o),_.push.apply(_,l),p=_.length,c=Promise.resolve(r);d<p;)c=c.then(_[d++],_[d++]);return c}p=o.length;let v=r;for(d=0;d<p;){const _=o[d++],h=o[d++];try{v=_(v)}catch(y){h.call(this,y);break}}try{c=zv.call(this,v)}catch(_){return Promise.reject(_)}for(d=0,p=l.length;d<p;)c=c.then(l[d++],l[d++]);return c}getUri(e){e=ki(this.defaults,e);const r=$v(e.baseURL,e.url);return ud(r,e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(e){fl.prototype[e]=function(r,a){return this.request(ki(a||{},{method:e,url:r,data:(a||{}).data}))}}),X.forEach(["post","put","patch"],function(e){function r(a){return function(n,s,o){return this.request(ki(o||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}fl.prototype[e]=r(),fl.prototype[e+"Form"]=r(!0)});const hl=fl;class bd{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});const a=this;this.promise.then(i=>{if(!a._listeners)return;let n=a._listeners.length;for(;n-- >0;)a._listeners[n](i);a._listeners=null}),this.promise.then=i=>{let n;const s=new Promise(o=>{a.subscribe(o),n=o}).then(i);return s.cancel=function(){a.unsubscribe(n)},s},e(function(n,s,o){a.reason||(a.reason=new Wn(n,s,o),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new bd(function(i){e=i}),cancel:e}}}const aB=bd;function iB(t){return function(r){return t.apply(null,r)}}function nB(t){return X.isObject(t)&&t.isAxiosError===!0}const yd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yd).forEach(([t,e])=>{yd[e]=t});const sB=yd;function Rv(t){const e=new hl(t),r=uv(hl.prototype.request,e);return X.extend(r,hl.prototype,e,{allOwnKeys:!0}),X.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Rv(ki(t,i))},r}const tt=Rv(dd);tt.Axios=hl,tt.CanceledError=Wn,tt.CancelToken=aB,tt.isCancel=Mv,tt.VERSION=jv,tt.toFormData=cl,tt.AxiosError=Oe,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=iB,tt.isAxiosError=nB,tt.mergeConfig=ki,tt.AxiosHeaders=Wr,tt.formToJSON=t=>Ov(X.isHTMLForm(t)?new FormData(t):t),tt.getAdapter=Iv.getAdapter,tt.HttpStatusCode=sB,tt.default=tt;const Vn=tt,Un=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ml=typeof AbortController=="function"?AbortController:class{constructor(){this.signal=new Fv}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},oB=typeof AbortSignal=="function",lB=typeof ml.AbortSignal=="function",Fv=oB?AbortSignal:lB?ml.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(r=>r(e),this))}onabort(){}addEventListener(e,r){e==="abort"&&this._listeners.push(r)}removeEventListener(e,r){e==="abort"&&(this._listeners=this._listeners.filter(a=>a!==r))}},xd=new Set,Sd=(t,e)=>{const r=`LRU_CACHE_OPTION_${t}`;gl(r)&&_d(r,`${t} option`,`options.${e}`,bl)},kd=(t,e)=>{const r=`LRU_CACHE_METHOD_${t}`;if(gl(r)){const{prototype:a}=bl,{get:i}=Object.getOwnPropertyDescriptor(a,t);_d(r,`${t} method`,`cache.${e}()`,i)}},uB=(t,e)=>{const r=`LRU_CACHE_PROPERTY_${t}`;if(gl(r)){const{prototype:a}=bl,{get:i}=Object.getOwnPropertyDescriptor(a,t);_d(r,`${t} property`,`cache.${e}`,i)}},qv=(...t)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...t):console.error(...t)},gl=t=>!xd.has(t),_d=(t,e,r,a)=>{xd.add(t);const i=`The ${e} is deprecated. Please use ${r} instead.`;qv(i,"DeprecationWarning",t,a)},da=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Bv=t=>da(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?vl:null:null;let vl=class extends Array{constructor(e){super(e),this.fill(0)}},cB=class{constructor(e){if(e===0)return[];const r=Bv(e);this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},bl=class pf{constructor(e={}){const{max:r=0,ttl:a,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:u,dispose:l,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:p,maxSize:v=0,maxEntrySize:_=0,sizeCalculation:h,fetchMethod:y,fetchContext:x,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:k,ignoreFetchAbort:g}=e,{length:m,maxAge:w,stale:O}=e instanceof pf?{}:e;if(r!==0&&!da(r))throw new TypeError("max option must be a nonnegative integer");const C=r?Bv(r):Array;if(!C)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=v,this.maxEntrySize=_||this.maxSize,this.sizeCalculation=h||m,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=y||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=x,!this.fetchMethod&&x!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new C(r),this.prev=new C(r),this.head=0,this.tail=0,this.free=new cB(r),this.initialFill=1,this.size=0,typeof l=="function"&&(this.dispose=l),typeof c=="function"?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!f,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!g,this.maxEntrySize!==0){if(this.maxSize!==0&&!da(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!da(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!u||!!O,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=da(i)||i===0?i:1,this.ttlAutopurge=!!n,this.ttl=a||w||0,this.ttl){if(!da(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const M="LRU_CACHE_UNBOUNDED";gl(M)&&(xd.add(M),qv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,pf))}O&&Sd("stale","allowStale"),w&&Sd("maxAge","ttl"),m&&Sd("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new vl(this.max),this.starts=new vl(this.max),this.setItemTTL=(a,i,n=Un.now())=>{if(this.starts[a]=i!==0?n:0,this.ttls[a]=i,i!==0&&this.ttlAutopurge){const s=setTimeout(()=>{this.isStale(a)&&this.delete(this.keyList[a])},i+1);s.unref&&s.unref()}},this.updateItemAge=a=>{this.starts[a]=this.ttls[a]!==0?Un.now():0},this.statusTTL=(a,i)=>{a&&(a.ttl=this.ttls[i],a.start=this.starts[i],a.now=e||r(),a.remainingTTL=a.now+a.ttl-a.start)};let e=0;const r=()=>{const a=Un.now();if(this.ttlResolution>0){e=a;const i=setTimeout(()=>e=0,this.ttlResolution);i.unref&&i.unref()}return a};this.getRemainingTTL=a=>{const i=this.keyMap.get(a);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(e||r())},this.isStale=a=>this.ttls[a]!==0&&this.starts[a]!==0&&(e||r())-this.starts[a]>this.ttls[a]}updateItemAge(e){}statusTTL(e,r){}setItemTTL(e,r,a){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new vl(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,r,a,i)=>{if(this.isBackgroundFetch(r))return 0;if(!da(a))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(a=i(r,e),!da(a))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return a},this.addItemSize=(e,r,a)=>{if(this.sizes[e]=r,this.maxSize){const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict(!0)}this.calculatedSize+=this.sizes[e],a&&(a.entrySize=r,a.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,r){}requireSize(e,r,a,i){if(a||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((e||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((e||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(const e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(const e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(const e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(const e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(const e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,r){for(const a of this.indexes()){const i=this.valList[a],n=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(n!==void 0&&e(n,this.keyList[a],this))return this.get(this.keyList[a],r)}}forEach(e,r=this){for(const a of this.indexes()){const i=this.valList[a],n=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;n!==void 0&&e.call(r,n,this.keyList[a],this)}}rforEach(e,r=this){for(const a of this.rindexes()){const i=this.valList[a],n=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;n!==void 0&&e.call(r,n,this.keyList[a],this)}}get prune(){return kd("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),e=!0);return e}dump(){const e=[];for(const r of this.indexes({allowStale:!0})){const a=this.keyList[r],i=this.valList[r],n=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(n===void 0)continue;const s={value:n};if(this.ttls){s.ttl=this.ttls[r];const o=Un.now()-this.starts[r];s.start=Math.floor(Date.now()-o)}this.sizes&&(s.size=this.sizes[r]),e.unshift([a,s])}return e}load(e){this.clear();for(const[r,a]of e){if(a.start){const i=Date.now()-a.start;a.start=Un.now()-i}this.set(r,a.value,a)}}dispose(e,r,a){}set(e,r,{ttl:a=this.ttl,start:i,noDisposeOnSet:n=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,status:l}={}){if(s=this.requireSize(e,r,s,o),this.maxEntrySize&&s>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let c=this.size===0?void 0:this.keyMap.get(e);if(c===void 0)c=this.newIndex(),this.keyList[c]=e,this.valList[c]=r,this.keyMap.set(e,c),this.next[this.tail]=c,this.prev[c]=this.tail,this.tail=c,this.size++,this.addItemSize(c,s,l),l&&(l.set="add"),u=!1;else{this.moveToTail(c);const d=this.valList[c];if(r!==d){if(this.isBackgroundFetch(d)?d.__abortController.abort(new Error("replaced")):n||(this.dispose(d,e,"set"),this.disposeAfter&&this.disposed.push([d,e,"set"])),this.removeItemSize(c),this.valList[c]=r,this.addItemSize(c,s,l),l){l.set="replace";const p=d&&this.isBackgroundFetch(d)?d.__staleWhileFetching:d;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(a!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),u||this.setItemTTL(c,a,i),this.statusTTL(l,c),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const r=this.head,a=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,a,"evict"),this.disposeAfter&&this.disposed.push([i,a,"evict"])),this.removeItemSize(r),e&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(a),this.size--,r}has(e,{updateAgeOnHas:r=this.updateAgeOnHas,status:a}={}){const i=this.keyMap.get(e);if(i!==void 0)if(this.isStale(i))a&&(a.has="stale",this.statusTTL(a,i));else return r&&this.updateItemAge(i),a&&(a.has="hit"),this.statusTTL(a,i),!0;else a&&(a.has="miss");return!1}peek(e,{allowStale:r=this.allowStale}={}){const a=this.keyMap.get(e);if(a!==void 0&&(r||!this.isStale(a))){const i=this.valList[a];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(e,r,a,i){const n=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(n))return n;const s=new ml;a.signal&&a.signal.addEventListener("abort",()=>s.abort(a.signal.reason));const o={signal:s.signal,options:a,context:i},u=(v,_=!1)=>{const{aborted:h}=s.signal,y=a.ignoreFetchAbort&&v!==void 0;return a.status&&(h&&!_?(a.status.fetchAborted=!0,a.status.fetchError=s.signal.reason,y&&(a.status.fetchAbortIgnored=!0)):a.status.fetchResolved=!0),h&&!y&&!_?c(s.signal.reason):(this.valList[r]===p&&(v===void 0?p.__staleWhileFetching?this.valList[r]=p.__staleWhileFetching:this.delete(e):(a.status&&(a.status.fetchUpdated=!0),this.set(e,v,o.options))),v)},l=v=>(a.status&&(a.status.fetchRejected=!0,a.status.fetchError=v),c(v)),c=v=>{const{aborted:_}=s.signal,h=_&&a.allowStaleOnFetchAbort,y=h||a.allowStaleOnFetchRejection,x=y||a.noDeleteOnFetchRejection;if(this.valList[r]===p&&(!x||p.__staleWhileFetching===void 0?this.delete(e):h||(this.valList[r]=p.__staleWhileFetching)),y)return a.status&&p.__staleWhileFetching!==void 0&&(a.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw v},d=(v,_)=>{this.fetchMethod(e,n,o).then(h=>v(h),_),s.signal.addEventListener("abort",()=>{(!a.ignoreFetchAbort||a.allowStaleOnFetchAbort)&&(v(),a.allowStaleOnFetchAbort&&(v=h=>u(h,!0)))})};a.status&&(a.status.fetchDispatched=!0);const p=new Promise(d).then(u,l);return p.__abortController=s,p.__staleWhileFetching=n,p.__returned=null,r===void 0?(this.set(e,p,{...o.options,status:void 0}),r=this.keyMap.get(e)):this.valList[r]=p,p}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:r=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,fetchContext:_=this.fetchContext,forceRefresh:h=!1,status:y,signal:x}={}){if(!this.fetchMethod)return y&&(y.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:a,noDeleteOnStaleGet:i,status:y});const S={allowStale:r,updateAgeOnGet:a,noDeleteOnStaleGet:i,ttl:n,noDisposeOnSet:s,size:o,sizeCalculation:u,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:v,ignoreFetchAbort:p,status:y,signal:x};let b=this.keyMap.get(e);if(b===void 0){y&&(y.fetch="miss");const f=this.backgroundFetch(e,b,S,_);return f.__returned=f}else{const f=this.valList[b];if(this.isBackgroundFetch(f)){const O=r&&f.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",O&&(y.returnedStale=!0)),O?f.__staleWhileFetching:f.__returned=f}const k=this.isStale(b);if(!h&&!k)return y&&(y.fetch="hit"),this.moveToTail(b),a&&this.updateItemAge(b),this.statusTTL(y,b),f;const g=this.backgroundFetch(e,b,S,_),m=g.__staleWhileFetching!==void 0,w=m&&r;return y&&(y.fetch=m&&k?"stale":"refresh",w&&k&&(y.returnedStale=!0)),w?g.__staleWhileFetching:g.__returned=g}}get(e,{allowStale:r=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:n}={}){const s=this.keyMap.get(e);if(s!==void 0){const o=this.valList[s],u=this.isBackgroundFetch(o);return this.statusTTL(n,s),this.isStale(s)?(n&&(n.get="stale"),u?(n&&(n.returnedStale=r&&o.__staleWhileFetching!==void 0),r?o.__staleWhileFetching:void 0):(i||this.delete(e),n&&(n.returnedStale=r),r?o:void 0)):(n&&(n.get="hit"),u?o.__staleWhileFetching:(this.moveToTail(s),a&&this.updateItemAge(s),o))}else n&&(n.get="miss")}connect(e,r){this.prev[r]=e,this.next[e]=r}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return kd("del","delete"),this.delete}delete(e){let r=!1;if(this.size!==0){const a=this.keyMap.get(e);if(a!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(a);const i=this.valList[a];this.isBackgroundFetch(i)?i.__abortController.abort(new Error("deleted")):(this.dispose(i,e,"delete"),this.disposeAfter&&this.disposed.push([i,e,"delete"])),this.keyMap.delete(e),this.keyList[a]=null,this.valList[a]=null,a===this.tail?this.tail=this.prev[a]:a===this.head?this.head=this.next[a]:(this.next[this.prev[a]]=this.next[a],this.prev[this.next[a]]=this.prev[a]),this.size--,this.free.push(a)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const e of this.rindexes({allowStale:!0})){const r=this.valList[e];if(this.isBackgroundFetch(r))r.__abortController.abort(new Error("deleted"));else{const a=this.keyList[e];this.dispose(r,a,"delete"),this.disposeAfter&&this.disposed.push([r,a,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return kd("reset","clear"),this.clear}get length(){return uB("length","size"),this.size}static get AbortController(){return ml}static get AbortSignal(){return Fv}};const dB=bl;function pB(t,e,r,a){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function o(c){try{l(a.next(c))}catch(d){s(d)}}function u(c){try{l(a.throw(c))}catch(d){s(d)}}function l(c){c.done?n(c.value):i(c.value).then(o,u)}l((a=a.apply(t,e||[])).next())})}function fB(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(c){return u([l,c])}}function u(l){if(a)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(a=1,i&&(n=l[0]&2?i.return:l[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;switch(i=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){r.label=l[1];break}if(l[0]===6&&r.label<n[1]){r.label=n[1],n=l;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(l);break}n[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],i=0}finally{a=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;function hB(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ud.apply(void 0,t),a=r.split("?"),i=a[0],n=a[1];if(n){var s=n.split("&");return"".concat(i,"?").concat(s.sort().join("&"))}return r}function mB(t){return typeof t.get=="function"&&typeof t.set=="function"&&(typeof t.delete=="function"||typeof t.del=="function")}var gB=1e3*60*5,vB=100;function Wv(t,e){var r=this;e===void 0&&(e={});var a=e.enabledByDefault,i=a===void 0?!0:a,n=e.cacheFlag,s=n===void 0?"cache":n,o=e.defaultCache,u=o===void 0?new dB({ttl:gB,max:vB}):o;return function(l){var c=l.url,d=l.method,p=l.params,v=l.paramsSerializer,_=l.forceUpdate,h=l[s]!==void 0&&l[s]!==null?l[s]:i;if(d==="get"&&h){var y=mB(h)?h:u,x=hB(c,p,v),S=y.get(x);return!S||_?(S=function(){return pB(r,void 0,void 0,function(){var b;return fB(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,t(l)];case 1:return[2,f.sent()];case 2:throw b=f.sent(),"delete"in y?y.delete(x):y.del(x),b;case 3:return[2]}})})}(),y.set(x,S),S):({}.LOGGER_LEVEL==="info"&&console.info("[axios-extensions] request cached by cache adapter --> url: ".concat(x)),S)}return t(l)}}const _i=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Vv=new Set,wd=typeof process=="object"&&process?process:{},Uv=(t,e,r,a)=>{typeof wd.emitWarning=="function"?wd.emitWarning(t,e,r,a):console.error(`[${r}] ${e}: ${t}`)};let yl=globalThis.AbortController,Gv=globalThis.AbortSignal;if(typeof yl>"u"){Gv=class{constructor(){se(this,"onabort");se(this,"_onabort",[]);se(this,"reason");se(this,"aborted",!1)}addEventListener(a,i){this._onabort.push(i)}},yl=class{constructor(){se(this,"signal",new Gv);e()}abort(a){var i,n;if(!this.signal.aborted){this.signal.reason=a,this.signal.aborted=!0;for(const s of this.signal._onabort)s(a);(n=(i=this.signal).onabort)==null||n.call(i,a)}}};let t=((uk=wd.env)==null?void 0:uk.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,Uv("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const bB=t=>!Vv.has(t),pa=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Hv=t=>pa(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?xl:null:null;class xl extends Array{constructor(e){super(e),this.fill(0)}}const Ka=class Ka{constructor(e,r){se(this,"heap");se(this,"length");if(!V(Ka,Qi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}static create(e){const r=Hv(e);if(!r)return[];ge(Ka,Qi,!0);const a=new Ka(e,r);return ge(Ka,Qi,!1),a}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Qi=new WeakMap,we(Ka,Qi,!1);let Cd=Ka;const of=class of{constructor(e){we(this,Os);we(this,xu);we(this,Pr);we(this,Dr);we(this,$s);we(this,Zi);we(this,Xi);we(this,ze);we(this,Ps);we(this,Xa);we(this,pr,void 0);we(this,Ft,void 0);we(this,fr,void 0);we(this,hr,void 0);we(this,Ki,void 0);se(this,"ttl");se(this,"ttlResolution");se(this,"ttlAutopurge");se(this,"updateAgeOnGet");se(this,"updateAgeOnHas");se(this,"allowStale");se(this,"noDisposeOnSet");se(this,"noUpdateTTL");se(this,"maxEntrySize");se(this,"sizeCalculation");se(this,"noDeleteOnFetchRejection");se(this,"noDeleteOnStaleGet");se(this,"allowStaleOnFetchAbort");se(this,"allowStaleOnFetchRejection");se(this,"ignoreFetchAbort");we(this,nt,void 0);we(this,mr,void 0);we(this,at,void 0);we(this,Be,void 0);we(this,ke,void 0);we(this,St,void 0);we(this,qt,void 0);we(this,gt,void 0);we(this,st,void 0);we(this,gr,void 0);we(this,ot,void 0);we(this,vr,void 0);we(this,br,void 0);we(this,Bt,void 0);we(this,yr,void 0);we(this,xa,void 0);we(this,kt,void 0);we(this,Ja,()=>{});we(this,ra,()=>{});we(this,Es,()=>{});we(this,Wt,()=>!1);we(this,Za,e=>{});we(this,Ji,(e,r,a)=>{});we(this,Ms,(e,r,a,i)=>{if(a||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:r=0,ttl:a,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:s,updateAgeOnHas:o,allowStale:u,dispose:l,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:p,maxSize:v=0,maxEntrySize:_=0,sizeCalculation:h,fetchMethod:y,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:f,ignoreFetchAbort:k}=e;if(r!==0&&!pa(r))throw new TypeError("max option must be a nonnegative integer");const g=r?Hv(r):Array;if(!g)throw new Error("invalid max value: "+r);if(ge(this,pr,r),ge(this,Ft,v),this.maxEntrySize=_||V(this,Ft),this.sizeCalculation=h,this.sizeCalculation){if(!V(this,Ft)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(ge(this,Ki,y),ge(this,xa,!!y),ge(this,at,new Map),ge(this,Be,new Array(r).fill(void 0)),ge(this,ke,new Array(r).fill(void 0)),ge(this,St,new g(r)),ge(this,qt,new g(r)),ge(this,gt,0),ge(this,st,0),ge(this,gr,Cd.create(r)),ge(this,nt,0),ge(this,mr,0),typeof l=="function"&&ge(this,fr,l),typeof c=="function"?(ge(this,hr,c),ge(this,ot,[])):(ge(this,hr,void 0),ge(this,ot,void 0)),ge(this,yr,!!V(this,fr)),ge(this,kt,!!V(this,hr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!f,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(V(this,Ft)!==0&&!pa(V(this,Ft)))throw new TypeError("maxSize must be a positive integer if specified");if(!pa(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");fe(this,xu,pk).call(this)}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!o,this.ttlResolution=pa(i)||i===0?i:1,this.ttlAutopurge=!!n,this.ttl=a||0,this.ttl){if(!pa(this.ttl))throw new TypeError("ttl must be a positive integer if specified");fe(this,Os,ff).call(this)}if(V(this,pr)===0&&this.ttl===0&&V(this,Ft)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!V(this,pr)&&!V(this,Ft)){const m="LRU_CACHE_UNBOUNDED";bB(m)&&(Vv.add(m),Uv("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",m,of))}}static unsafeExposeInternals(e){return{starts:V(e,br),ttls:V(e,Bt),sizes:V(e,vr),keyMap:V(e,at),keyList:V(e,Be),valList:V(e,ke),next:V(e,St),prev:V(e,qt),get head(){return V(e,gt)},get tail(){return V(e,st)},free:V(e,gr),isBackgroundFetch:r=>{var a;return fe(a=e,ze,We).call(a,r)},backgroundFetch:(r,a,i,n)=>{var s;return fe(s=e,Xi,Cu).call(s,r,a,i,n)},moveToTail:r=>{var a;return fe(a=e,Xa,Is).call(a,r)},indexes:r=>{var a;return fe(a=e,Pr,Sa).call(a,r)},rindexes:r=>{var a;return fe(a=e,Dr,ka).call(a,r)},isStale:r=>{var a;return V(a=e,Wt).call(a,r)}}}get max(){return V(this,pr)}get maxSize(){return V(this,Ft)}get calculatedSize(){return V(this,mr)}get size(){return V(this,nt)}get fetchMethod(){return V(this,Ki)}get dispose(){return V(this,fr)}get disposeAfter(){return V(this,hr)}getRemainingTTL(e){return V(this,at).has(e)?1/0:0}*entries(){for(const e of fe(this,Pr,Sa).call(this))V(this,ke)[e]!==void 0&&V(this,Be)[e]!==void 0&&!fe(this,ze,We).call(this,V(this,ke)[e])&&(yield[V(this,Be)[e],V(this,ke)[e]])}*rentries(){for(const e of fe(this,Dr,ka).call(this))V(this,ke)[e]!==void 0&&V(this,Be)[e]!==void 0&&!fe(this,ze,We).call(this,V(this,ke)[e])&&(yield[V(this,Be)[e],V(this,ke)[e]])}*keys(){for(const e of fe(this,Pr,Sa).call(this)){const r=V(this,Be)[e];r!==void 0&&!fe(this,ze,We).call(this,V(this,ke)[e])&&(yield r)}}*rkeys(){for(const e of fe(this,Dr,ka).call(this)){const r=V(this,Be)[e];r!==void 0&&!fe(this,ze,We).call(this,V(this,ke)[e])&&(yield r)}}*values(){for(const e of fe(this,Pr,Sa).call(this))V(this,ke)[e]!==void 0&&!fe(this,ze,We).call(this,V(this,ke)[e])&&(yield V(this,ke)[e])}*rvalues(){for(const e of fe(this,Dr,ka).call(this))V(this,ke)[e]!==void 0&&!fe(this,ze,We).call(this,V(this,ke)[e])&&(yield V(this,ke)[e])}[Symbol.iterator](){return this.entries()}find(e,r={}){for(const a of fe(this,Pr,Sa).call(this)){const i=V(this,ke)[a],n=fe(this,ze,We).call(this,i)?i.__staleWhileFetching:i;if(n!==void 0&&e(n,V(this,Be)[a],this))return this.get(V(this,Be)[a],r)}}forEach(e,r=this){for(const a of fe(this,Pr,Sa).call(this)){const i=V(this,ke)[a],n=fe(this,ze,We).call(this,i)?i.__staleWhileFetching:i;n!==void 0&&e.call(r,n,V(this,Be)[a],this)}}rforEach(e,r=this){for(const a of fe(this,Dr,ka).call(this)){const i=V(this,ke)[a],n=fe(this,ze,We).call(this,i)?i.__staleWhileFetching:i;n!==void 0&&e.call(r,n,V(this,Be)[a],this)}}purgeStale(){let e=!1;for(const r of fe(this,Dr,ka).call(this,{allowStale:!0}))V(this,Wt).call(this,r)&&(this.delete(V(this,Be)[r]),e=!0);return e}info(e){const r=V(this,at).get(e);if(r===void 0)return;const a=V(this,ke)[r],i=fe(this,ze,We).call(this,a)?a.__staleWhileFetching:a;if(i===void 0)return;const n={value:i};if(V(this,Bt)&&V(this,br)){const s=V(this,Bt)[r],o=V(this,br)[r];if(s&&o){const u=s-(_i.now()-o);n.ttl=u,n.start=Date.now()}}return V(this,vr)&&(n.size=V(this,vr)[r]),n}dump(){const e=[];for(const r of fe(this,Pr,Sa).call(this,{allowStale:!0})){const a=V(this,Be)[r],i=V(this,ke)[r],n=fe(this,ze,We).call(this,i)?i.__staleWhileFetching:i;if(n===void 0||a===void 0)continue;const s={value:n};if(V(this,Bt)&&V(this,br)){s.ttl=V(this,Bt)[r];const o=_i.now()-V(this,br)[r];s.start=Math.floor(Date.now()-o)}V(this,vr)&&(s.size=V(this,vr)[r]),e.unshift([a,s])}return e}load(e){this.clear();for(const[r,a]of e){if(a.start){const i=Date.now()-a.start;a.start=_i.now()-i}this.set(r,a.value,a)}}set(e,r,a={}){var p,v,_,h,y;if(r===void 0)return this.delete(e),this;const{ttl:i=this.ttl,start:n,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:u}=a;let{noUpdateTTL:l=this.noUpdateTTL}=a;const c=V(this,Ms).call(this,e,r,a.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(e),this;let d=V(this,nt)===0?void 0:V(this,at).get(e);if(d===void 0)d=V(this,nt)===0?V(this,st):V(this,gr).length!==0?V(this,gr).pop():V(this,nt)===V(this,pr)?fe(this,Zi,wu).call(this,!1):V(this,nt),V(this,Be)[d]=e,V(this,ke)[d]=r,V(this,at).set(e,d),V(this,St)[V(this,st)]=d,V(this,qt)[d]=V(this,st),ge(this,st,d),_u(this,nt)._++,V(this,Ji).call(this,d,c,u),u&&(u.set="add"),l=!1;else{fe(this,Xa,Is).call(this,d);const x=V(this,ke)[d];if(r!==x){if(V(this,xa)&&fe(this,ze,We).call(this,x)){x.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:S}=x;S!==void 0&&!s&&(V(this,yr)&&((p=V(this,fr))==null||p.call(this,S,e,"set")),V(this,kt)&&((v=V(this,ot))==null||v.push([S,e,"set"])))}else s||(V(this,yr)&&((_=V(this,fr))==null||_.call(this,x,e,"set")),V(this,kt)&&((h=V(this,ot))==null||h.push([x,e,"set"])));if(V(this,Za).call(this,d),V(this,Ji).call(this,d,c,u),V(this,ke)[d]=r,u){u.set="replace";const S=x&&fe(this,ze,We).call(this,x)?x.__staleWhileFetching:x;S!==void 0&&(u.oldValue=S)}}else u&&(u.set="update")}if(i!==0&&!V(this,Bt)&&fe(this,Os,ff).call(this),V(this,Bt)&&(l||V(this,Es).call(this,d,i,n),u&&V(this,ra).call(this,u,d)),!s&&V(this,kt)&&V(this,ot)){const x=V(this,ot);let S;for(;S=x==null?void 0:x.shift();)(y=V(this,hr))==null||y.call(this,...S)}return this}pop(){var e;try{for(;V(this,nt);){const r=V(this,ke)[V(this,gt)];if(fe(this,Zi,wu).call(this,!0),fe(this,ze,We).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(V(this,kt)&&V(this,ot)){const r=V(this,ot);let a;for(;a=r==null?void 0:r.shift();)(e=V(this,hr))==null||e.call(this,...a)}}}has(e,r={}){const{updateAgeOnHas:a=this.updateAgeOnHas,status:i}=r,n=V(this,at).get(e);if(n!==void 0){const s=V(this,ke)[n];if(fe(this,ze,We).call(this,s)&&s.__staleWhileFetching===void 0)return!1;if(V(this,Wt).call(this,n))i&&(i.has="stale",V(this,ra).call(this,i,n));else return a&&V(this,Ja).call(this,n),i&&(i.has="hit",V(this,ra).call(this,i,n)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){const{allowStale:a=this.allowStale}=r,i=V(this,at).get(e);if(i===void 0||!a&&V(this,Wt).call(this,i))return;const n=V(this,ke)[i];return fe(this,ze,We).call(this,n)?n.__staleWhileFetching:n}async fetch(e,r={}){const{allowStale:a=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:u=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:_=this.allowStaleOnFetchAbort,context:h,forceRefresh:y=!1,status:x,signal:S}=r;if(!V(this,xa))return x&&(x.fetch="get"),this.get(e,{allowStale:a,updateAgeOnGet:i,noDeleteOnStaleGet:n,status:x});const b={allowStale:a,updateAgeOnGet:i,noDeleteOnStaleGet:n,ttl:s,noDisposeOnSet:o,size:u,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:_,ignoreFetchAbort:v,status:x,signal:S};let f=V(this,at).get(e);if(f===void 0){x&&(x.fetch="miss");const k=fe(this,Xi,Cu).call(this,e,f,b,h);return k.__returned=k}else{const k=V(this,ke)[f];if(fe(this,ze,We).call(this,k)){const C=a&&k.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",C&&(x.returnedStale=!0)),C?k.__staleWhileFetching:k.__returned=k}const g=V(this,Wt).call(this,f);if(!y&&!g)return x&&(x.fetch="hit"),fe(this,Xa,Is).call(this,f),i&&V(this,Ja).call(this,f),x&&V(this,ra).call(this,x,f),k;const m=fe(this,Xi,Cu).call(this,e,f,b,h),O=m.__staleWhileFetching!==void 0&&a;return x&&(x.fetch=g?"stale":"refresh",O&&g&&(x.returnedStale=!0)),O?m.__staleWhileFetching:m.__returned=m}}get(e,r={}){const{allowStale:a=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:s}=r,o=V(this,at).get(e);if(o!==void 0){const u=V(this,ke)[o],l=fe(this,ze,We).call(this,u);return s&&V(this,ra).call(this,s,o),V(this,Wt).call(this,o)?(s&&(s.get="stale"),l?(s&&a&&u.__staleWhileFetching!==void 0&&(s.returnedStale=!0),a?u.__staleWhileFetching:void 0):(n||this.delete(e),s&&a&&(s.returnedStale=!0),a?u:void 0)):(s&&(s.get="hit"),l?u.__staleWhileFetching:(fe(this,Xa,Is).call(this,o),i&&V(this,Ja).call(this,o),u))}else s&&(s.get="miss")}delete(e){var a,i,n,s;let r=!1;if(V(this,nt)!==0){const o=V(this,at).get(e);if(o!==void 0)if(r=!0,V(this,nt)===1)this.clear();else{V(this,Za).call(this,o);const u=V(this,ke)[o];if(fe(this,ze,We).call(this,u)?u.__abortController.abort(new Error("deleted")):(V(this,yr)||V(this,kt))&&(V(this,yr)&&((a=V(this,fr))==null||a.call(this,u,e,"delete")),V(this,kt)&&((i=V(this,ot))==null||i.push([u,e,"delete"]))),V(this,at).delete(e),V(this,Be)[o]=void 0,V(this,ke)[o]=void 0,o===V(this,st))ge(this,st,V(this,qt)[o]);else if(o===V(this,gt))ge(this,gt,V(this,St)[o]);else{const l=V(this,qt)[o];V(this,St)[l]=V(this,St)[o];const c=V(this,St)[o];V(this,qt)[c]=V(this,qt)[o]}_u(this,nt)._--,V(this,gr).push(o)}}if(V(this,kt)&&((n=V(this,ot))!=null&&n.length)){const o=V(this,ot);let u;for(;u=o==null?void 0:o.shift();)(s=V(this,hr))==null||s.call(this,...u)}return r}clear(){var e,r,a;for(const i of fe(this,Dr,ka).call(this,{allowStale:!0})){const n=V(this,ke)[i];if(fe(this,ze,We).call(this,n))n.__abortController.abort(new Error("deleted"));else{const s=V(this,Be)[i];V(this,yr)&&((e=V(this,fr))==null||e.call(this,n,s,"delete")),V(this,kt)&&((r=V(this,ot))==null||r.push([n,s,"delete"]))}}if(V(this,at).clear(),V(this,ke).fill(void 0),V(this,Be).fill(void 0),V(this,Bt)&&V(this,br)&&(V(this,Bt).fill(0),V(this,br).fill(0)),V(this,vr)&&V(this,vr).fill(0),ge(this,gt,0),ge(this,st,0),V(this,gr).length=0,ge(this,mr,0),ge(this,nt,0),V(this,kt)&&V(this,ot)){const i=V(this,ot);let n;for(;n=i==null?void 0:i.shift();)(a=V(this,hr))==null||a.call(this,...n)}}};pr=new WeakMap,Ft=new WeakMap,fr=new WeakMap,hr=new WeakMap,Ki=new WeakMap,nt=new WeakMap,mr=new WeakMap,at=new WeakMap,Be=new WeakMap,ke=new WeakMap,St=new WeakMap,qt=new WeakMap,gt=new WeakMap,st=new WeakMap,gr=new WeakMap,ot=new WeakMap,vr=new WeakMap,br=new WeakMap,Bt=new WeakMap,yr=new WeakMap,xa=new WeakMap,kt=new WeakMap,Os=new WeakSet,ff=function(){const e=new xl(V(this,pr)),r=new xl(V(this,pr));ge(this,Bt,e),ge(this,br,r),ge(this,Es,(n,s,o=_i.now())=>{if(r[n]=s!==0?o:0,e[n]=s,s!==0&&this.ttlAutopurge){const u=setTimeout(()=>{V(this,Wt).call(this,n)&&this.delete(V(this,Be)[n])},s+1);u.unref&&u.unref()}}),ge(this,Ja,n=>{r[n]=e[n]!==0?_i.now():0}),ge(this,ra,(n,s)=>{if(e[s]){const o=e[s],u=r[s];if(!o||!u)return;n.ttl=o,n.start=u,n.now=a||i();const l=n.now-u;n.remainingTTL=o-l}});let a=0;const i=()=>{const n=_i.now();if(this.ttlResolution>0){a=n;const s=setTimeout(()=>a=0,this.ttlResolution);s.unref&&s.unref()}return n};this.getRemainingTTL=n=>{const s=V(this,at).get(n);if(s===void 0)return 0;const o=e[s],u=r[s];if(!o||!u)return 1/0;const l=(a||i())-u;return o-l},ge(this,Wt,n=>{const s=r[n],o=e[n];return!!o&&!!s&&(a||i())-s>o})},Ja=new WeakMap,ra=new WeakMap,Es=new WeakMap,Wt=new WeakMap,xu=new WeakSet,pk=function(){const e=new xl(V(this,pr));ge(this,mr,0),ge(this,vr,e),ge(this,Za,r=>{ge(this,mr,V(this,mr)-e[r]),e[r]=0}),ge(this,Ms,(r,a,i,n)=>{if(fe(this,ze,We).call(this,a))return 0;if(!pa(i))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(i=n(a,r),!pa(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),ge(this,Ji,(r,a,i)=>{if(e[r]=a,V(this,Ft)){const n=V(this,Ft)-e[r];for(;V(this,mr)>n;)fe(this,Zi,wu).call(this,!0)}ge(this,mr,V(this,mr)+e[r]),i&&(i.entrySize=a,i.totalCalculatedSize=V(this,mr))})},Za=new WeakMap,Ji=new WeakMap,Ms=new WeakMap,Pr=new WeakSet,Sa=function*({allowStale:e=this.allowStale}={}){if(V(this,nt))for(let r=V(this,st);!(!fe(this,$s,hf).call(this,r)||((e||!V(this,Wt).call(this,r))&&(yield r),r===V(this,gt)));)r=V(this,qt)[r]},Dr=new WeakSet,ka=function*({allowStale:e=this.allowStale}={}){if(V(this,nt))for(let r=V(this,gt);!(!fe(this,$s,hf).call(this,r)||((e||!V(this,Wt).call(this,r))&&(yield r),r===V(this,st)));)r=V(this,St)[r]},$s=new WeakSet,hf=function(e){return e!==void 0&&V(this,at).get(V(this,Be)[e])===e},Zi=new WeakSet,wu=function(e){var n,s;const r=V(this,gt),a=V(this,Be)[r],i=V(this,ke)[r];return V(this,xa)&&fe(this,ze,We).call(this,i)?i.__abortController.abort(new Error("evicted")):(V(this,yr)||V(this,kt))&&(V(this,yr)&&((n=V(this,fr))==null||n.call(this,i,a,"evict")),V(this,kt)&&((s=V(this,ot))==null||s.push([i,a,"evict"]))),V(this,Za).call(this,r),e&&(V(this,Be)[r]=void 0,V(this,ke)[r]=void 0,V(this,gr).push(r)),V(this,nt)===1?(ge(this,gt,ge(this,st,0)),V(this,gr).length=0):ge(this,gt,V(this,St)[r]),V(this,at).delete(a),_u(this,nt)._--,r},Xi=new WeakSet,Cu=function(e,r,a,i){const n=r===void 0?void 0:V(this,ke)[r];if(fe(this,ze,We).call(this,n))return n;const s=new yl,{signal:o}=a;o==null||o.addEventListener("abort",()=>s.abort(o.reason),{signal:s.signal});const u={signal:s.signal,options:a,context:i},l=(h,y=!1)=>{const{aborted:x}=s.signal,S=a.ignoreFetchAbort&&h!==void 0;if(a.status&&(x&&!y?(a.status.fetchAborted=!0,a.status.fetchError=s.signal.reason,S&&(a.status.fetchAbortIgnored=!0)):a.status.fetchResolved=!0),x&&!S&&!y)return d(s.signal.reason);const b=v;return V(this,ke)[r]===v&&(h===void 0?b.__staleWhileFetching?V(this,ke)[r]=b.__staleWhileFetching:this.delete(e):(a.status&&(a.status.fetchUpdated=!0),this.set(e,h,u.options))),h},c=h=>(a.status&&(a.status.fetchRejected=!0,a.status.fetchError=h),d(h)),d=h=>{const{aborted:y}=s.signal,x=y&&a.allowStaleOnFetchAbort,S=x||a.allowStaleOnFetchRejection,b=S||a.noDeleteOnFetchRejection,f=v;if(V(this,ke)[r]===v&&(!b||f.__staleWhileFetching===void 0?this.delete(e):x||(V(this,ke)[r]=f.__staleWhileFetching)),S)return a.status&&f.__staleWhileFetching!==void 0&&(a.status.returnedStale=!0),f.__staleWhileFetching;if(f.__returned===f)throw h},p=(h,y)=>{var S;const x=(S=V(this,Ki))==null?void 0:S.call(this,e,n,u);x&&x instanceof Promise&&x.then(b=>h(b===void 0?void 0:b),y),s.signal.addEventListener("abort",()=>{(!a.ignoreFetchAbort||a.allowStaleOnFetchAbort)&&(h(void 0),a.allowStaleOnFetchAbort&&(h=b=>l(b,!0)))})};a.status&&(a.status.fetchDispatched=!0);const v=new Promise(p).then(l,c),_=Object.assign(v,{__abortController:s,__staleWhileFetching:n,__returned:void 0});return r===void 0?(this.set(e,_,{...u.options,status:void 0}),r=V(this,at).get(e)):V(this,ke)[r]=_,_},ze=new WeakSet,We=function(e){if(!V(this,xa))return!1;const r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof yl},Ps=new WeakSet,mf=function(e,r){V(this,qt)[r]=e,V(this,St)[e]=r},Xa=new WeakSet,Is=function(e){e!==V(this,st)&&(e===V(this,gt)?ge(this,gt,V(this,St)[e]):fe(this,Ps,mf).call(this,V(this,qt)[e],V(this,St)[e]),fe(this,Ps,mf).call(this,V(this,st),e),ge(this,st,e))};let Sl=of;function ur(t){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(t)}function yB(t,e){if(ur(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e||"default");if(ur(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yv(t){var e=yB(t,"string");return ur(e)=="symbol"?e:String(e)}function xB(t,e,r){return e=Yv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&a.push.apply(a,Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),a.forEach(function(i){xB(t,i,r[i])})}return t}function Vr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qv(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Yv(a.key),a)}}function Ur(t,e,r){return e&&Qv(t.prototype,e),r&&Qv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gn(t,e){if(e&&(ur(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nt(t)}function wi(t){return wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wi(t)}function Td(t,e){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},Td(t,e)}function kl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Td(t,e)}function Ad(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function SB(t){if(Array.isArray(t))return Ad(t)}function kB(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Kv(t,e){if(t){if(typeof t=="string")return Ad(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ad(t,e)}}function _B(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
267
267
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wB(t){return SB(t)||kB(t)||Kv(t)||_B()}var CB={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,r){var a;console&&console[e]&&(a=console)[e].apply(a,wB(r))}},TB=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vr(this,t),this.init(e,r)}return Ur(t,[{key:"init",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=r||CB,this.options=a,this.debug=a.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return this.forward(a,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return this.forward(a,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return this.forward(a,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,a,i,n){return n&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(i).concat(this.prefix," ").concat(r[0])),this.logger[a](r))}},{key:"create",value:function(r){return new t(this.logger,jt({},{prefix:"".concat(this.prefix,":").concat(r,":")},this.options))}}]),t}();const Gr=new TB;var fa=function(){function t(){Vr(this,t),this.observers={}}return Ur(t,[{key:"on",value:function(r,a){var i=this;return r.split(" ").forEach(function(n){i.observers[n]=i.observers[n]||[],i.observers[n].push(a)}),this}},{key:"off",value:function(r,a){var i=this;this.observers[r]&&this.observers[r].forEach(function(){if(!a)delete i.observers[r];else{var n=i.observers[r].indexOf(a);n>-1&&i.observers[r].splice(n,1)}})}},{key:"emit",value:function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];if(this.observers[r]){var s=[].concat(this.observers[r]);s.forEach(function(u){u.apply(void 0,i)})}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach(function(u){u.apply(u,[r].concat(i))})}}}]),t}();function Hn(){var t,e,r=new Promise(function(a,i){t=a,e=i});return r.resolve=t,r.reject=e,r}function Jv(t){return t==null?"":""+t}function AB(t,e,r){t.forEach(function(a){e[a]&&(r[a]=e[a])})}function Od(t,e,r){function a(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!t||typeof t=="string"}for(var n=typeof e!="string"?[].concat(e):e.split(".");n.length>1;){if(i())return{};var s=a(n.shift());!t[s]&&r&&(t[s]=new r),t=t[s]}return i()?{}:{obj:t,k:a(n.shift())}}function Zv(t,e,r){var a=Od(t,e,Object),i=a.obj,n=a.k;i[n]=r}function OB(t,e,r,a){var i=Od(t,e,Object),n=i.obj,s=i.k;n[s]=n[s]||[],a&&(n[s]=n[s].concat(r)),a||n[s].push(r)}function _l(t,e){var r=Od(t,e),a=r.obj,i=r.k;if(a)return a[i]}function Xv(t,e,r){for(var a in e)a in t?typeof t[a]=="string"||t[a]instanceof String||typeof e[a]=="string"||e[a]instanceof String?r&&(t[a]=e[a]):Xv(t[a],e[a],r):t[a]=e[a];return t}function Ci(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var EB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function MB(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return EB[e]}):t}var $B=function(t){kl(e,t);function e(r){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Vr(this,e),a=Gn(this,wi(e).call(this)),fa.call(Nt(Nt(a))),a.data=r||{},a.options=i,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a}return Ur(e,[{key:"addNamespaces",value:function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}},{key:"removeNamespaces",value:function(a){var i=this.options.ns.indexOf(a);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(a,i,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,u=[a,i];return n&&typeof n!="string"&&(u=u.concat(n)),n&&typeof n=="string"&&(u=u.concat(o?n.split(o):n)),a.indexOf(".")>-1&&(u=a.split(".")),_l(this.data,u)}},{key:"addResource",value:function(a,i,n,s){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var l=[a,i];n&&(l=l.concat(u?n.split(u):n)),a.indexOf(".")>-1&&(l=a.split("."),s=i,i=l[1]),this.addNamespaces(i),Zv(this.data,l,s),o.silent||this.emit("added",a,i,n,s)}},{key:"addResources",value:function(a,i,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var o in n)(typeof n[o]=="string"||Object.prototype.toString.apply(n[o])==="[object Array]")&&this.addResource(a,i,o,n[o],{silent:!0});s.silent||this.emit("added",a,i,n)}},{key:"addResourceBundle",value:function(a,i,n,s,o){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[a,i];a.indexOf(".")>-1&&(l=a.split("."),s=n,n=i,i=l[1]),this.addNamespaces(i);var c=_l(this.data,l)||{};s?Xv(c,n,o):c=jt({},c,n),Zv(this.data,l,c),u.silent||this.emit("added",a,i,n)}},{key:"removeResourceBundle",value:function(a,i){this.hasResourceBundle(a,i)&&delete this.data[a][i],this.removeNamespaces(i),this.emit("removed",a,i)}},{key:"hasResourceBundle",value:function(a,i){return this.getResource(a,i)!==void 0}},{key:"getResourceBundle",value:function(a,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?jt({},{},this.getResource(a,i)):this.getResource(a,i)}},{key:"getDataByLanguage",value:function(a){return this.data[a]}},{key:"toJSON",value:function(){return this.data}}]),e}(fa);const eb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,r,a,i,n){var s=this;return e.forEach(function(o){s.processors[o]&&(r=s.processors[o].process(r,a,i,n))}),r}};var tb=function(t){kl(e,t);function e(r){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Vr(this,e),a=Gn(this,wi(e).call(this)),fa.call(Nt(Nt(a))),AB(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat"],r,Nt(Nt(a))),a.options=i,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.logger=Gr.create("translator"),a}return Ur(e,[{key:"changeLanguage",value:function(a){a&&(this.language=a)}},{key:"exists",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},n=this.resolve(a,i);return n&&n.res!==void 0}},{key:"extractFromKey",value:function(a,i){var n=i.nsSeparator||this.options.nsSeparator;n===void 0&&(n=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ns||this.options.defaultNS;if(n&&a.indexOf(n)>-1){var u=a.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),a=u.join(s)}return typeof o=="string"&&(o=[o]),{key:a,namespaces:o}}},{key:"translate",value:function(a,i){var n=this;if(ur(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),i||(i={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=this.extractFromKey(a[a.length-1],i),u=o.key,l=o.namespaces,c=l[l.length-1],d=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(p){var v=i.nsSeparator||this.options.nsSeparator;return c+v+u}return u}var _=this.resolve(a,i),h=_&&_.res,y=_&&_.usedKey||u,x=_&&_.exactUsedKey||u,S=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],f=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,g=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(k&&h&&g&&b.indexOf(S)<0&&!(typeof f=="string"&&S==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,h,i):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(s){var m=S==="[object Array]",w=m?[]:{},O=m?x:y;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var M="".concat(O).concat(s).concat(C);w[C]=this.translate(M,jt({},i,{joinArrays:!1,ns:l})),w[C]===M&&(w[C]=h[C])}h=w}}else if(k&&typeof f=="string"&&S==="[object Array]")h=h.join(f),h&&(h=this.extendTranslation(h,a,i));else{var T=!1,E=!1;if(!this.isValidLookup(h)&&i.defaultValue!==void 0){if(T=!0,i.count!==void 0){var z=this.pluralResolver.getSuffix(d,i.count);h=i["defaultValue".concat(z)]}h||(h=i.defaultValue)}this.isValidLookup(h)||(E=!0,h=u);var F=i.defaultValue&&i.defaultValue!==h&&this.options.updateMissing;if(E||T||F){this.logger.log(F?"updateKey":"missingKey",d,c,u,F?i.defaultValue:h);var N=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&U&&U[0])for(var q=0;q<U.length;q++)N.push(U[q]);else this.options.saveMissingTo==="all"?N=this.languageUtils.toResolveHierarchy(i.lng||this.language):N.push(i.lng||this.language);var P=function(L,W){n.options.missingKeyHandler?n.options.missingKeyHandler(L,c,W,F?i.defaultValue:h,F,i):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(L,c,W,F?i.defaultValue:h,F,i),n.emit("missingKey",L,c,W,h)};if(this.options.saveMissing){var D=i.count!==void 0&&typeof i.count!="string";this.options.saveMissingPlurals&&D?N.forEach(function(I){var L=n.pluralResolver.getPluralFormsOfKey(I,u);L.forEach(function(W){return P([I],W)})}):P(N,u)}}h=this.extendTranslation(h,a,i,_),E&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),E&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(a,i,n,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,n,s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(jt({},n,{interpolation:jt({},this.options.interpolation,n.interpolation)}));var u=n.replace&&typeof n.replace!="string"?n.replace:n;this.options.interpolation.defaultVariables&&(u=jt({},this.options.interpolation.defaultVariables,u)),a=this.interpolator.interpolate(a,u,n.lng||this.language,n),n.nest!==!1&&(a=this.interpolator.nest(a,function(){return o.translate.apply(o,arguments)},n)),n.interpolation&&this.interpolator.reset()}var l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return a!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(a=eb.handle(c,a,i,n,this)),a}},{key:"resolve",value:function(a){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,o,u,l,c;return typeof a=="string"&&(a=[a]),a.forEach(function(d){if(!i.isValidLookup(s)){var p=i.extractFromKey(d,n),v=p.key;o=v;var _=p.namespaces;i.options.fallbackNS&&(_=_.concat(i.options.fallbackNS));var h=n.count!==void 0&&typeof n.count!="string",y=n.context!==void 0&&typeof n.context=="string"&&n.context!=="",x=n.lngs?n.lngs:i.languageUtils.toResolveHierarchy(n.lng||i.language,n.fallbackLng);_.forEach(function(S){i.isValidLookup(s)||(c=S,x.forEach(function(b){if(!i.isValidLookup(s)){l=b;var f=v,k=[f];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(k,v,b,S,n);else{var g;h&&(g=i.pluralResolver.getSuffix(b,n.count)),h&&y&&k.push(f+g),y&&k.push(f+="".concat(i.options.contextSeparator).concat(n.context)),h&&k.push(f+=g)}for(var m;m=k.pop();)i.isValidLookup(s)||(u=m,s=i.getResource(b,S,m,n))}}))})}}),{res:s,usedKey:o,exactUsedKey:u,usedLng:l,usedNS:c}}},{key:"isValidLookup",value:function(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}},{key:"getResource",value:function(a,i,n){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,i,n,s):this.resourceStore.getResource(a,i,n,s)}}]),e}(fa);function Ed(t){return t.charAt(0).toUpperCase()+t.slice(1)}var PB=function(){function t(e){Vr(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=Gr.create("languageUtils")}return Ur(t,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var a=r.split("-");return a.length===2?null:(a.pop(),this.formatLanguageCode(a.join("-")))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var a=r.split("-");return this.formatLanguageCode(a[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var a=["hans","hant","latn","cyrl","cans","mong","arab"],i=r.split("-");return this.options.lowerCaseLng?i=i.map(function(n){return n.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ed(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ed(i[1].toLowerCase())),a.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ed(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isWhitelisted",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitWhitelist)&&(r=this.getLanguagePartFromCode(r)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(r)>-1}},{key:"getFallbackCodes",value:function(r,a){if(!r)return[];if(typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!a)return r.default||[];var i=r[a];return i||(i=r[this.getScriptPartFromCode(a)]),i||(i=r[this.formatLanguageCode(a)]),i||(i=r.default),i||[]}},{key:"toResolveHierarchy",value:function(r,a){var i=this,n=this.getFallbackCodes(a||this.options.fallbackLng||[],r),s=[],o=function(l){l&&(i.isWhitelisted(l)?s.push(l):i.logger.warn("rejecting non-whitelisted language code: ".concat(l)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(r))):typeof r=="string"&&o(this.formatLanguageCode(r)),n.forEach(function(u){s.indexOf(u)<0&&o(i.formatLanguageCode(u))}),s}}]),t}(),DB=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],IB={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e===0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e===0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e===1?0:e===2?1:(e<0||e>10)&&e%10==0?2:3}};function zB(){var t={};return DB.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:IB[e.fc]}})}),t}var LB=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vr(this,t),this.languageUtils=e,this.options=r,this.logger=Gr.create("pluralResolver"),this.rules=zB()}return Ur(t,[{key:"addRule",value:function(r,a){this.rules[r]=a}},{key:"getRule",value:function(r){return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var a=this.getRule(r);return a&&a.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,a){var i=this,n=[],s=this.getRule(r);return s&&s.numbers.forEach(function(o){var u=i.getSuffix(r,o);n.push("".concat(a).concat(u))}),n}},{key:"getSuffix",value:function(r,a){var i=this,n=this.getRule(r);if(n){var s=n.noAbs?n.plurals(a):n.plurals(Math.abs(a)),o=n.numbers[s];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var u=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?u():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}return this.logger.warn("no plural rule found for: ".concat(r)),""}}]),t}(),jB=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vr(this,t),this.logger=Gr.create("interpolator"),this.init(e,!0)}return Ur(t,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;a&&(this.options=r,this.format=r.interpolation&&r.interpolation.format||function(n){return n}),r.interpolation||(r.interpolation={escapeValue:!0});var i=r.interpolation;this.escape=i.escape!==void 0?i.escape:MB,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?Ci(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?Ci(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?Ci(i.nestingPrefix):i.nestingPrefixEscaped||Ci("$t("),this.nestingSuffix=i.nestingSuffix?Ci(i.nestingSuffix):i.nestingSuffixEscaped||Ci(")"),this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var a="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(a,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(r,a,i,n){var s=this,o,u,l;function c(_){return _.replace(/\$/g,"$$$$")}var d=function(h){if(h.indexOf(s.formatSeparator)<0)return _l(a,h);var y=h.split(s.formatSeparator),x=y.shift().trim(),S=y.join(s.formatSeparator).trim();return s.format(_l(a,x),S,i)};this.resetRegExp();var p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler;for(l=0;(o=this.regexpUnescape.exec(r))&&(u=d(o[1].trim()),r=r.replace(o[0],u),this.regexpUnescape.lastIndex=0,l++,!(l>=this.maxReplaces)););for(l=0;o=this.regexp.exec(r);){if(u=d(o[1].trim()),u===void 0)if(typeof p=="function"){var v=p(r,o,n);u=typeof v=="string"?v:""}else this.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(r)),u="";else typeof u!="string"&&!this.useRawValueToEscape&&(u=Jv(u));if(u=this.escapeValue?c(this.escape(u)):c(u),r=r.replace(o[0],u),this.regexp.lastIndex=0,l++,l>=this.maxReplaces)break}return r}},{key:"nest",value:function(r,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,o=jt({},i);o.applyPostProcessor=!1;function u(l,c){if(l.indexOf(",")<0)return l;var d=l.split(",");l=d.shift();var p=d.join(",");p=this.interpolate(p,o),p=p.replace(/'/g,'"');try{o=JSON.parse(p),c&&(o=jt({},c,o))}catch(v){this.logger.error("failed parsing options string in nesting for key ".concat(l),v)}return l}for(;n=this.nestingRegexp.exec(r);){if(s=a(u.call(this,n[1].trim(),o),o),s&&n[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=Jv(s)),s||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(r)),s=""),r=r.replace(n[0],s),this.regexp.lastIndex=0}return r}}]),t}();function NB(t){if(Array.isArray(t))return t}function RB(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a,i,n,s,o=[],u=!0,l=!1;try{if(n=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(a=n.call(r)).done)&&(o.push(a.value),o.length!==e);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function FB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
268
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rb(t,e){return NB(t)||RB(t,e)||Kv(t,e)||FB()}function qB(t,e){for(var r=t.indexOf(e);r!==-1;)t.splice(r,1),r=t.indexOf(e)}var BB=function(t){kl(e,t);function e(r,a,i){var n,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Vr(this,e),n=Gn(this,wi(e).call(this)),fa.call(Nt(Nt(n))),n.backend=r,n.store=a,n.languageUtils=i.languageUtils,n.options=s,n.logger=Gr.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(i,s.backend,s),n}return Ur(e,[{key:"queueLoad",value:function(a,i,n,s){var o=this,u=[],l=[],c=[],d=[];return a.forEach(function(p){var v=!0;i.forEach(function(_){var h="".concat(p,"|").concat(_);!n.reload&&o.store.hasResourceBundle(p,_)?o.state[h]=2:o.state[h]<0||(o.state[h]===1?l.indexOf(h)<0&&l.push(h):(o.state[h]=1,v=!1,l.indexOf(h)<0&&l.push(h),u.indexOf(h)<0&&u.push(h),d.indexOf(_)<0&&d.push(_)))}),v||c.push(p)}),(u.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:s}),{toLoad:u,pending:l,toLoadLanguages:c,toLoadNamespaces:d}}},{key:"loaded",value:function(a,i,n){var s=a.split("|"),o=rb(s,2),u=o[0],l=o[1];i&&this.emit("failedLoading",u,l,i),n&&this.store.addResourceBundle(u,l,n),this.state[a]=i?-1:2;var c={};this.queue.forEach(function(d){OB(d.loaded,[u],l),qB(d.pending,a),i&&d.errors.push(i),d.pending.length===0&&!d.done&&(Object.keys(d.loaded).forEach(function(p){c[p]||(c[p]=[]),d.loaded[p].length&&d.loaded[p].forEach(function(v){c[p].indexOf(v)<0&&c[p].push(v)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(a,i,n){var s=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:250,l=arguments.length>5?arguments[5]:void 0;return a.length?this.backend[n](a,i,function(c,d){if(c&&d&&o<5){setTimeout(function(){s.read.call(s,a,i,n,o+1,u*2,l)},u);return}l(c,d)}):l(null,{})}},{key:"prepareLoading",value:function(a,i){var n=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof i=="string"&&(i=[i]);var u=this.queueLoad(a,i,s,o);if(!u.toLoad.length)return u.pending.length||o(),null;u.toLoad.forEach(function(l){n.loadOne(l)})}},{key:"load",value:function(a,i,n){this.prepareLoading(a,i,{},n)}},{key:"reload",value:function(a,i,n){this.prepareLoading(a,i,{reload:!0},n)}},{key:"loadOne",value:function(a){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=a.split("|"),o=rb(s,2),u=o[0],l=o[1];this.read(u,l,"read",null,null,function(c,d){c&&i.logger.warn("".concat(n,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&d&&i.logger.log("".concat(n,"loaded namespace ").concat(l," for language ").concat(u),d),i.loaded(a,c,d)})}},{key:"saveMissing",value:function(a,i,n,s,o){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(a,i,n,s,null,jt({},u,{isUpdate:o})),!(!a||!a[0])&&this.store.addResource(a[0],i,n,s)}}]),e}(fa);function WB(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var r={};if(ur(e[1])==="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),ur(e[2])==="object"||ur(e[3])==="object"){var a=e[3]||e[2];Object.keys(a).forEach(function(i){r[i]=a[i]})}return r},interpolation:{escapeValue:!0,format:function(e,r,a){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function ab(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t}function wl(){}var VB=function(t){kl(e,t);function e(){var r,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Vr(this,e),r=Gn(this,wi(e).call(this)),fa.call(Nt(Nt(r))),r.options=ab(a),r.services={},r.logger=Gr,r.modules={external:[]},i&&!r.isInitialized&&!a.isClone){if(!r.options.initImmediate)return r.init(a,i),Gn(r,Nt(Nt(r)));setTimeout(function(){r.init(a,i)},0)}return r}return Ur(e,[{key:"init",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(n=i,i={}),this.options=jt({},WB(),this.options,ab(i)),this.format=this.options.interpolation.format,n||(n=wl);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Gr.init(s(this.modules.logger),this.options):Gr.init(null,this.options);var o=new PB(this.options);this.store=new $B(this.options.resources,this.options);var u=this.services;u.logger=Gr,u.resourceStore=this.store,u.languageUtils=o,u.pluralResolver=new LB(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new jB(this.options),u.backendConnector=new BB(s(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];a.emit.apply(a,[p].concat(_))}),this.modules.languageDetector&&(u.languageDetector=s(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=s(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new tb(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];a.emit.apply(a,[p].concat(_))}),this.modules.external.forEach(function(p){p.init&&p.init(a)})}var l=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){a[p]=function(){var v;return(v=a.store)[p].apply(v,arguments)}});var c=Hn(),d=function(){a.changeLanguage(a.options.lng,function(v,_){a.isInitialized=!0,a.logger.log("initialized",a.options),a.emit("initialized",a.options),c.resolve(_),n(v,_)})};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wl;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&this.language.toLowerCase()==="cimode")return i();var n=[],s=function(l){if(l){var c=a.services.languageUtils.toResolveHierarchy(l);c.forEach(function(d){n.indexOf(d)<0&&n.push(d)})}};if(this.language)s(this.language);else{var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.forEach(function(u){return s(u)})}this.options.preload&&this.options.preload.forEach(function(u){return s(u)}),this.services.backendConnector.load(n,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(a,i,n){var s=Hn();return a||(a=this.languages),i||(i=this.options.ns),n||(n=wl),this.services.backendConnector.reload(a,i,function(o){s.resolve(),n(o)}),s}},{key:"use",value:function(a){return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&eb.addPostProcessor(a),a.type==="3rdParty"&&this.modules.external.push(a),this}},{key:"changeLanguage",value:function(a,i){var n=this,s=Hn();this.emit("languageChanging",a);var o=function(c,d){n.translator.changeLanguage(d),d&&(n.emit("languageChanged",d),n.logger.log("languageChanged",d)),s.resolve(function(){return n.t.apply(n,arguments)}),i&&i(c,function(){return n.t.apply(n,arguments)})},u=function(c){c&&(n.language=c,n.languages=n.services.languageUtils.toResolveHierarchy(c),n.translator.language||n.translator.changeLanguage(c),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(c)),n.loadResources(function(d){o(d,c)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(a),s}},{key:"getFixedT",value:function(a,i){var n=this,s=function o(u,l){var c=jt({},l);if(ur(l)!=="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),v=2;v<d;v++)p[v-2]=arguments[v];c=n.options.overloadTranslationOptionHandler([u,l].concat(p))}return c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,n.t(u,c)};return typeof a=="string"?s.lng=a:s.lngs=a,s.ns=i,s}},{key:"t",value:function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)}},{key:"exists",value:function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)}},{key:"setDefaultNamespace",value:function(a){this.options.defaultNS=a}},{key:"loadNamespaces",value:function(a,i){var n=this,s=Hn();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(function(o){n.options.ns.indexOf(o)<0&&n.options.ns.push(o)}),this.loadResources(function(o){s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(a,i){var n=Hn();typeof a=="string"&&(a=[a]);var s=this.options.preload||[],o=a.filter(function(u){return s.indexOf(u)<0});return o.length?(this.options.preload=s.concat(o),this.loadResources(function(u){n.resolve(),i&&i(u)}),n):(i&&i(),Promise.resolve())}},{key:"dir",value:function(a){if(a||(a=this.languages&&this.languages.length>0?this.languages[0]:this.language),!a)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return i.indexOf(this.services.languageUtils.getLanguagePartFromCode(a))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new e(a,i)}},{key:"cloneInstance",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wl,s=jt({},this.options,i,{isClone:!0}),o=new e(s),u=["store","services","language"];return u.forEach(function(l){o[l]=a[l]}),o.translator=new tb(o.services,o.options),o.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];o.emit.apply(o,[l].concat(d))}),o.init(s,n),o.translator.options=o.options,o}}]),e}(fa);const Me=new VB;Me.changeLanguage.bind(Me),Me.cloneInstance.bind(Me),Me.createInstance.bind(Me),Me.dir.bind(Me),Me.exists.bind(Me),Me.getFixedT.bind(Me),Me.init.bind(Me),Me.loadLanguages.bind(Me),Me.loadNamespaces.bind(Me),Me.loadResources.bind(Me),Me.off.bind(Me),Me.on.bind(Me),Me.setDefaultNamespace.bind(Me),Me.t.bind(Me),Me.use.bind(Me);const Cl={screensCache:[],cachedScreenPromises:[],install(t){t.prototype.$dataProvider=this},apiInstance(){return H.has(window,"ProcessMaker.apiClient")&&!window.ProcessMaker.isStub?window.ProcessMaker.apiClient:this.token()?(Vn.defaults.baseURL=this.baseURL(),Vn.defaults.headers.common={Authorization:`Bearer ${this.token()}`},Vn.defaults.adapter=Wv(Vn.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new Sl({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})}),Vn):H.has(window,"ProcessMaker.apiClient")&&window.ProcessMaker.isStub?window.ProcessMaker.apiClient:{get(){return Promise.resolve({data:{data:[]}})}}},get(...t){return this.apiInstance().get(...t)},post(...t){return this.apiInstance().post(...t)},delete(...t){return this.apiInstance().delete(...t)},token(){return localStorage.getItem("token")},baseURL(){return localStorage.getItem("baseURL")},getTasks(t){const e=H.get(window,"PM4ConfigOverrides.getTasksEndpoint","/tasks");return this.get(e+t).then(r=>(r.data.screen&&r.data.screen.nested&&this.addNestedScreenCache(r.data.screen.nested),r))},addNestedScreenCache(t){t.forEach(e=>{e.screen_id&&(e.id=e.screen_id);const r=this.screensCache.findIndex(a=>a.id===e.id);r>-1?this.screensCache.splice(r,1,e):this.screensCache.push(e)})},getScreen(t,e=""){if(!t)return null;const r=this.cachedScreenPromises.find(s=>s.id===t&&s.query===e);if(r)return r.screenPromise;const a=H.get(window,"PM4ConfigOverrides.getScreenEndpoint","/screens"),i=this.screensCache.find(s=>s.id===t);if(i)return Promise.resolve({data:i});const n=new Promise((s,o)=>{this.get(`${a}/${t}${e}`).then(u=>{u.data.nested&&this.addNestedScreenCache(u.data.nested),s(u)}).catch(u=>o(u))});return this.cachedScreenPromises.push({id:t,query:e,screenPromise:n}),n},flushScreenCache(){this.cachedScreenPromises.splice(0,this.cachedScreenPromises.length)},postScript(t,e,r={}){const a=H.get(window,"PM4ConfigOverrides.postScriptEndpoint","/scripts/execute/{id}");return this.post(a.replace("{id}",t)+this.authQueryString(),e,r)},postDataSource(t,e,r){let a;return e?a=`/requests/${e}/data_sources/${t}`:a=`/requests/data_sources/${t}`,a+=this.authQueryString(),this.post(a,r,{timeout:0})},getDataSource(t,e){if(!window.ProcessMaker.screen.cacheEnabled&&!window.ProcessMaker.screen.cacheTimeout)return this.postDataSource(t,null,e);let r=`/requests/data_sources/${t}/resources/${e.config.endpoint}/data`;return r+=this.authQueryString(),this.get(r,{useCache:window.ProcessMaker.screen.cacheEnabled,params:{pmds_config:JSON.stringify(e.config),pmds_data:JSON.stringify(e.data)}}).then(a=>a)},authQueryString(){const t=H.get(window,"PM4ConfigOverrides.authParams",null);let e="";return t&&(e=`?${new URLSearchParams(t).toString()}`),e},deleteFile(t,e=null){let r=`files/${t}`;return e&&(r+=`?token=${e}`),this.delete(r)},download(t){return this.apiInstance().get(t,{responseType:"blob"})},getCollections(){return this.get("/collections?per_page=1000").catch(t=>{throw t.response&&t.response.status===404?new Error(Me.t("Collections package not installed")):t})},getCollectionFields(t){return this.get(`/collections/${t}/columns?per_page=1000`).catch(e=>{throw e.response&&e.response.status===404?new Error(Me.t("Collection id not found")):e})},getCollectionRecords(t,e,r=null){return e.useCache=window.ProcessMaker.screen.cacheEnabled,this.get(`/collections/${t}/records${this.authQueryString()}`,e).then(a=>{const i=a?a.data:null;if(!i)throw new Error(Me.t("No data returned"));return[i,r]}).catch(a=>{if(a.response&&a.response.status===404)return[{data:[]},r];throw a})}};let Yn=typeof window>"u"?global:window;class Ti{constructor(e,r){se(this,"screen",null);se(this,"firstPage",0);this.element=e,Object.assign(this,r)}async countItems(e){throw e}}class UB extends Ti{async countItems(e){for(const r of this.element)await Ai(r,{screen:this.screen}).countItems(e)}}class GB extends Ti{async countItems(e){for(let r=0,a=this.element.config.length;r<a;r++)await Ai(this.element.config[r].items,{screen:this.element}).countItems(e)}}class HB extends Ti{async countItems(e){e.push(this.element);const r=await this.loadScreen(this.element.config.screen);r&&r[0]&&r[0].items&&await Ai(r[0].items,{screen:this.screen}).countItems(e)}async loadScreen(e){try{if(Yn.nestedScreens||(Yn.nestedScreens={}),Yn.nestedScreens["id_"+e])return Yn.nestedScreens["id_"+e];const r=await Cl.getScreen(e);return Yn.nestedScreens["id_"+e]=r.data.config,r.data.config}catch{return!1}}}class YB extends Ti{async countItems(e){e.push(this.element),await Ai(this.element.items,{screen:this.screen}).countItems(e)}}class QB extends Ti{async countItems(e){await Ai(this.element.items,{screen:this.screen}).countItems(e)}}class KB extends Ti{async countItems(e){e.push(this.element)}}function Ai(t,e){return t instanceof Array?new UB(t,e):t.config instanceof Array?new GB(t,e):t.component==="FormNestedScreen"?new HB(t,e):t.component==="FormMultiColumn"?new QB(t,e):t.component==="FormLoop"?new YB(t,e):new KB(t,e)}let Or=typeof window>"u"?global:window,Qn=[];class Fa{constructor(e,r){se(this,"screen",null);se(this,"firstPage",0);se(this,"data",{});se(this,"insideLoop",!1);this.element=e,Object.assign(this,r)}async addValidations(e){throw e}isVisible(){if(!(this.element.visibleInDevice===null||this.element.visibleInDevice===void 0?!0:this.element.visibleInDevice))return!1;let r=!0;if(this.element.config.conditionalHide)try{r=!!At.evaluate(this.element.config.conditionalHide,this.data)}catch{r=!1}return r}}class JB extends Fa{async addValidations(e){for(const r of this.element)await ha(r,{screen:this.screen,data:this.data,parentVisibilityRule:this.parentVisibilityRule,insideLoop:this.insideLoop}).addValidations(e)}}class ZB extends Fa{async addValidations(e){this.element.config[this.firstPage]&&(Qn=[this.firstPage],await ha(this.element.config[this.firstPage].items,{screen:this.element,data:this.data}).addValidations(e),Qn=[])}}class XB extends Fa{async addValidations(e){if(!this.isVisible())return;const r=await this.loadNestedScreen(this.element.config.screen);if(r&&r.config){const a=r.config;let i=this.parentVisibilityRule?this.parentVisibilityRule:this.element.config.conditionalHide;a&&a[0]&&a[0].items&&await ha(a[0].items,{screen:r,data:this.data,parentVisibilityRule:i}).addValidations(e)}}async loadNestedScreen(e){if(!e)return null;if(Or.nestedScreens||(Or.nestedScreens={}),Or.nestedScreens["id_"+e])return{config:Or.nestedScreens["id_"+e]};const r=await Cl.getScreen(e);return Or.nestedScreens["id_"+e]=r.data.config,{config:r.data}}async loadScreen(e){if(!e)return null;if(Or.nestedScreens||(Or.nestedScreens={}),Or.nestedScreens["id_"+e])return Or.nestedScreens["id_"+e];const r=await Cl.getScreen(e);return Or.nestedScreens["id_"+e]=r.data.config,r.data.config}}class eW extends Fa{async addValidations(e){if(!this.isVisible())return;H.set(e,this.element.config.name,{});const r=H.get(e,this.element.config.name);r.$each={},this.checkForSiblings(e);const a=(H.get(this.data,this.element.config.name)||[{}])[0];await ha(this.element.items,{screen:this.screen,data:{_parent:this.data,...a},parentVisibilityRule:this.element.config.conditionalHide,insideLoop:!0}).addValidations(r.$each)}checkForSiblings(e){const r=[],a=[];if(this.screen.config.forEach(i=>{!i||!i.items||(i.items.filter(n=>{n.component==="FormLoop"&&n.config.name===this.element.config.name&&r.push(n)}),r&&r.forEach(n=>{n.items.filter(s=>{s.config.validation&&s.config.validation.forEach(o=>{const u=this.camelCase(o.value.split(":")[0]),l=nl[u],c={};let d={};d[u]=l,c[s.config.name]=d,H.merge(a,c)})})}))}),Object.keys(a).length!=0){const i=H.get(e,this.element.config.name);i.hasOwnProperty("$each")&&H.merge(i.$each,a),H.set(e[this.element.config.name].$each,i)}}camelCase(e){return e.replace(/_\w/g,r=>r.substr(1,1).toUpperCase())}}class tW extends Fa{async addValidations(e){this.isVisible()&&await ha(this.element.items,{screen:this.screen,data:this.data,parentVisibilityRule:this.element.config.conditionalHide}).addValidations(e)}}class rW extends Fa{async addValidations(e){if(!this.isVisible())return;const r=this.element.config.eventData;let a="Empty Screen";this.screen.config[r]&&this.screen.config[r].name&&(a=this.screen.config[r].name);const i=`${a}-${r}`;Qn.length>0&&!Qn.includes(i)&&this.screen.config[r]&&this.screen.config[r].items&&(Qn.push(i),await ha(this.screen.config[this.element.config.eventData].items,{screen:this.screen,data:this.data}).addValidations(e))}}class aW extends Fa{async addValidations(e){if(this.element.config&&this.element.config.readonly||this.element.config&&this.element.config.disabled||!(this.element.config&&this.element.config.name&&typeof this.element.config.name=="string"&&this.element.config.name.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/)))return;const r=this.element.config.name,a=this.element.config.validation,i=this.element.config.conditionalHide,n=this.parentVisibilityRule,s=this.insideLoop||!1,o=this.element.config.deviceVisibility?this.element.config.deviceVisibility:{showForDesktop:!0,showForMobile:!0};H.set(e,r,H.get(e,r,{}));const u=H.get(e,r);if(a instanceof Array)a.forEach(l=>{const c=this.camelCase(l.value.split(":")[0]);if(!c)return;let d=nl[c];if(d){if(l.configs instanceof Array){const p=[];l.configs.forEach(v=>{p.push(v.value)}),p.push(r),d=d(...p)}u[c]=function(...p){const v=p[1],_=r.split(".").length-1,h=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(v),_);if(n){const S=s?1:0,b=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(v),_+S);let f=!0;try{f=!!At.evaluate(n,b)}catch{f=!1}if(!f)return!0}let y=!0;try{const S=this.$root.$children[0].$refs.renderer.definition.isMobile;y=S&&o.showForMobile||!S&&o.showForDesktop}catch{y=!0}if(!y)return!0;let x=!0;if(i)try{x=!!At.evaluate(i,h)}catch{x=!1}return x?d.apply(this,p):!0}}});else if(typeof a=="string"&&a){let l=nl[a];if(!l)return;u[a]=function(...c){const d=c[1],p=r.split(".").length-1,v=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(d),p);if(n){const h=s?1:0,y=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(d),p+h);let x=!0;try{x=!!At.evaluate(n,y)}catch{x=!1}if(!x)return!0}let _=!0;if(i)try{_=!!At.evaluate(i,v)}catch{_=!1}return _?l.apply(this,c):!0}}this.element.items&&ha(this.element.items,{screen:this.screen,data:this.data}).addValidations(e)}camelCase(e){return e.replace(/_\w/g,r=>r.substr(1,1).toUpperCase())}}function ha(t,e){return t instanceof Array?new JB(t,e):t.config instanceof Array?new ZB(t,e):t.component==="FormNestedScreen"?new XB(t,e):t.component==="FormMultiColumn"?new tW(t,e):t.component==="FormLoop"?new eW(t,e):(t.component,t.component==="FormButton"&&t.config.event==="pageNavigate"?new rW(t,e):new aW(t,e))}let Kn;const ib={mixins:ov,props:{value:Object,_parent:null,definition:Object,components:{type:Object,default(){return{}}},showErrors:{type:Boolean,default:!1},testScreenDefinition:{type:Boolean,default:!1}},data(){return{references__:[],debugCmp:null,component:null,alias:{},extensions:[],nodeNameProperty:"component",variables:[],variablesTree:[],initialize:[],ownerDocument:window.document,updatedConfigs:[],building:{show:!1,error:"",component:"",errors:[]}}},methods:{dot2bracket(t){return t.replace(/\.\d/g,e=>`[${e.substr(1)}]`)},submit(t,e=!1,r=null){r&&this.loopContext&&(r.loopContext=this.loopContext),this.$emit("submit",this.value,e,r)},buildComponent(t){window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-build-component",this);const e=this.componentDefinition(t);if(!this.testScreenDefinition)return e;const r=this.$root.constructor,a=r.config.warnHandler,i=r.config.errorHandler,n=[];this.building.error="",this.building.component="",this.building.errors=[],this.building.show=!1;let s;try{r.config.warnHandler=u=>{n.push(u)},r.config.errorHandler=u=>{n.push(u)},s=r.component("ScreenRendered",e);const o=new s({propsData:{vdata:{}}});if(o.$parent=this,o.$mount(),n.length>0)throw this.$t("Building error");return this.codigo=e,e}catch(o){return console.error(o),this.building.error=o,this.building.component=e,this.building.errors=n,this.building.show=!0,e||{template:"<div></div>"}}finally{r.config.warnHandler=a,r.config.errorHandler=i}},parse(t,e){const r=this.ownerDocument.createElement("div");return this.loadPages(e,r,t),"<div>"+r.innerHTML+"</div>"},loadPages(t,e,r){const a=t.config;this.variables.splice(0),this.extensions.forEach(i=>i.beforeload instanceof Function&&i.beforeload.bind(this)({pages:a,owner:e,definition:t})),a.forEach((i,n)=>{if(i){const s=this.createComponent("div",{name:i.name,class:"page","v-if":`currentPage__==${n}`,key:`page-${n}`});this.loadItems(i.items,s,r,t,n),e.appendChild(s)}})},escapeVuePropertyName(t){return t.substr(0,1)==="@"?t.replace("@","v-on:"):this.snakeCase(t)},snakeCase(t){return t.replace(/[A-Z]/g,e=>`-${e}`).toLowerCase().replace(/^-/,"")},camelCase(t){return t.replace(/_\w/g,e=>e.substr(1,1).toUpperCase())},updateComponentConfig(t,e){this.updatedConfigs.push({name:t,properties:e})},mergeUpdatedConfig(t,e){let r=this.updatedConfigs.find(a=>a.name===t);if(r){let a=r.properties;for(let i in a)e[i]===void 0&&(e[i]=a[i])}return e},createComponent(t,e){e=this.mergeUpdatedConfig(t,this.setDefaultPropertyValues(e)),t=this.snakeCase(t);const r=this.ownerDocument.createElement(t);for(let a in e){const i=e[a];i!==!1&&i!==null&&i!==void 0&&(a.substr(0,1)===":"||typeof i=="string"&&i.indexOf("{{")===-1?r.setAttribute(this.escapeVuePropertyName(a),i):typeof i=="string"&&i.indexOf("{{")!==-1&&!e.ignoreMustache?r.setAttribute(":"+this.escapeVuePropertyName(a),"mustache("+this.byValue(i)+")"):i!==void 0&&r.setAttribute(":"+this.escapeVuePropertyName(a),this.byRef(i)))}return r},byValue(t){return JSON.stringify(t).replace("{{","{{").replace("}}","}}")},byRef(t){const r=`references__[${this.references__.indexOf(t)>-1?this.references__.indexOf(t):this.references__.length}]`;return this.references__.push(t),r},loadItems(t,e,r,a,i){t.forEach(n=>{const s=n[this.nodeNameProperty],o=this.alias[s]||s,u={...n.config};this.extensions.forEach(d=>d.onloadproperties instanceof Function&&d.onloadproperties.bind(this)({properties:u,element:n,component:e,items:t,nodeName:o,componentName:s,screen:r,definition:a,formIndex:i}));const l=this.createComponent(o,u),c=this.ownerDocument.createElement("div");c.appendChild(l),this.extensions.forEach(d=>d.onloaditems instanceof Function&&d.onloaditems.bind(this)({properties:u,element:n,component:e,items:t,nodeName:o,componentName:s,node:l,wrapper:c,screen:r,definition:a,formIndex:i})),e.appendChild(c)})},setDefaultPropertyValues(t){let e={...t};return(typeof e.ariaLabel>"u"||e.ariaLabel===null||e.ariaLabel==="")&&e.label&&(e.ariaLabel=e.label),e.tabindex&&(e.tabindex=parseInt(e.tabindex)),e},validVariableName(t){return t&&typeof t=="string"&&t.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/)},isComputedVariable(t,e){return e.computed&&e.computed.some(r=>new RegExp(`^${r.property}(\\.|$)`,"i").test(t))},registerVariable(t,e={}){if(t&&t.startsWith("_parent.")||t&&t.includes("._parent.")||!this.validVariableName(t))return;const r=H.get(e,"config",{});this.variables.find(i=>i.name===t)||(this.variables.push({name:t,config:r,element:e}),this.variablesTree.push({name:t,config:r,element:e}))},registerNestedVariable(t,e,r){const a=Kn.getVariablesTree(r);this.variablesTree.push({name:t,prefix:e,config:{},items:a}),Kn.getVariablesTree({config:[]})},getVariablesTree(t){let e;try{e={mixins:[ad],components:{},props:{},computed:{},methods:{},data:{},watch:{},mounted:[]},this.variablesTree=[];const r=this.parse(e,t);return this.extensions.forEach(a=>{a.onparse instanceof Function&&a.onparse.bind(this)({screen:e,template:r,definition:t})}),this.variablesTree}catch(r){return console.error(r),this.variablesTree}},elementCssClass(t){const e=[];return t.config.bgcolor&&e.push(t.config.bgcolor),t.config.color&&e.push(t.config.color),e.join(" ")},componentDefinition(t){let e;this.building.error="",this.building.component="",this.building.errors=[],this.building.show=!1;try{e={mixins:[ad],components:{},props:{},computed:{},methods:{},created:[],data:{},watch:{},mounted:[]};const r=this.parse(e,t);this.extensions.forEach(n=>{n.onparse instanceof Function&&n.onparse.bind(this)({screen:e,template:r,definition:t})}),e.template=r,this.extensions.forEach(n=>{n.onbuild instanceof Function&&n.onbuild.bind(this)({screen:e,definition:t})});const a=["currentPage__"],i=`let value;const data = {};
268
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rb(t,e){return NB(t)||RB(t,e)||Kv(t,e)||FB()}function qB(t,e){for(var r=t.indexOf(e);r!==-1;)t.splice(r,1),r=t.indexOf(e)}var BB=function(t){kl(e,t);function e(r,a,i){var n,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Vr(this,e),n=Gn(this,wi(e).call(this)),fa.call(Nt(Nt(n))),n.backend=r,n.store=a,n.languageUtils=i.languageUtils,n.options=s,n.logger=Gr.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(i,s.backend,s),n}return Ur(e,[{key:"queueLoad",value:function(a,i,n,s){var o=this,u=[],l=[],c=[],d=[];return a.forEach(function(p){var v=!0;i.forEach(function(_){var h="".concat(p,"|").concat(_);!n.reload&&o.store.hasResourceBundle(p,_)?o.state[h]=2:o.state[h]<0||(o.state[h]===1?l.indexOf(h)<0&&l.push(h):(o.state[h]=1,v=!1,l.indexOf(h)<0&&l.push(h),u.indexOf(h)<0&&u.push(h),d.indexOf(_)<0&&d.push(_)))}),v||c.push(p)}),(u.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:s}),{toLoad:u,pending:l,toLoadLanguages:c,toLoadNamespaces:d}}},{key:"loaded",value:function(a,i,n){var s=a.split("|"),o=rb(s,2),u=o[0],l=o[1];i&&this.emit("failedLoading",u,l,i),n&&this.store.addResourceBundle(u,l,n),this.state[a]=i?-1:2;var c={};this.queue.forEach(function(d){OB(d.loaded,[u],l),qB(d.pending,a),i&&d.errors.push(i),d.pending.length===0&&!d.done&&(Object.keys(d.loaded).forEach(function(p){c[p]||(c[p]=[]),d.loaded[p].length&&d.loaded[p].forEach(function(v){c[p].indexOf(v)<0&&c[p].push(v)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(a,i,n){var s=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:250,l=arguments.length>5?arguments[5]:void 0;return a.length?this.backend[n](a,i,function(c,d){if(c&&d&&o<5){setTimeout(function(){s.read.call(s,a,i,n,o+1,u*2,l)},u);return}l(c,d)}):l(null,{})}},{key:"prepareLoading",value:function(a,i){var n=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof i=="string"&&(i=[i]);var u=this.queueLoad(a,i,s,o);if(!u.toLoad.length)return u.pending.length||o(),null;u.toLoad.forEach(function(l){n.loadOne(l)})}},{key:"load",value:function(a,i,n){this.prepareLoading(a,i,{},n)}},{key:"reload",value:function(a,i,n){this.prepareLoading(a,i,{reload:!0},n)}},{key:"loadOne",value:function(a){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=a.split("|"),o=rb(s,2),u=o[0],l=o[1];this.read(u,l,"read",null,null,function(c,d){c&&i.logger.warn("".concat(n,"loading namespace ").concat(l," for language ").concat(u," failed"),c),!c&&d&&i.logger.log("".concat(n,"loaded namespace ").concat(l," for language ").concat(u),d),i.loaded(a,c,d)})}},{key:"saveMissing",value:function(a,i,n,s,o){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(a,i,n,s,null,jt({},u,{isUpdate:o})),!(!a||!a[0])&&this.store.addResource(a[0],i,n,s)}}]),e}(fa);function WB(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var r={};if(ur(e[1])==="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),ur(e[2])==="object"||ur(e[3])==="object"){var a=e[3]||e[2];Object.keys(a).forEach(function(i){r[i]=a[i]})}return r},interpolation:{escapeValue:!0,format:function(e,r,a){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}}}function ab(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t}function wl(){}var VB=function(t){kl(e,t);function e(){var r,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Vr(this,e),r=Gn(this,wi(e).call(this)),fa.call(Nt(Nt(r))),r.options=ab(a),r.services={},r.logger=Gr,r.modules={external:[]},i&&!r.isInitialized&&!a.isClone){if(!r.options.initImmediate)return r.init(a,i),Gn(r,Nt(Nt(r)));setTimeout(function(){r.init(a,i)},0)}return r}return Ur(e,[{key:"init",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(n=i,i={}),this.options=jt({},WB(),this.options,ab(i)),this.format=this.options.interpolation.format,n||(n=wl);function s(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Gr.init(s(this.modules.logger),this.options):Gr.init(null,this.options);var o=new PB(this.options);this.store=new $B(this.options.resources,this.options);var u=this.services;u.logger=Gr,u.resourceStore=this.store,u.languageUtils=o,u.pluralResolver=new LB(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new jB(this.options),u.backendConnector=new BB(s(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];a.emit.apply(a,[p].concat(_))}),this.modules.languageDetector&&(u.languageDetector=s(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=s(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new tb(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];a.emit.apply(a,[p].concat(_))}),this.modules.external.forEach(function(p){p.init&&p.init(a)})}var l=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){a[p]=function(){var v;return(v=a.store)[p].apply(v,arguments)}});var c=Hn(),d=function(){a.changeLanguage(a.options.lng,function(v,_){a.isInitialized=!0,a.logger.log("initialized",a.options),a.emit("initialized",a.options),c.resolve(_),n(v,_)})};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wl;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&this.language.toLowerCase()==="cimode")return i();var n=[],s=function(l){if(l){var c=a.services.languageUtils.toResolveHierarchy(l);c.forEach(function(d){n.indexOf(d)<0&&n.push(d)})}};if(this.language)s(this.language);else{var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.forEach(function(u){return s(u)})}this.options.preload&&this.options.preload.forEach(function(u){return s(u)}),this.services.backendConnector.load(n,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(a,i,n){var s=Hn();return a||(a=this.languages),i||(i=this.options.ns),n||(n=wl),this.services.backendConnector.reload(a,i,function(o){s.resolve(),n(o)}),s}},{key:"use",value:function(a){return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&eb.addPostProcessor(a),a.type==="3rdParty"&&this.modules.external.push(a),this}},{key:"changeLanguage",value:function(a,i){var n=this,s=Hn();this.emit("languageChanging",a);var o=function(c,d){n.translator.changeLanguage(d),d&&(n.emit("languageChanged",d),n.logger.log("languageChanged",d)),s.resolve(function(){return n.t.apply(n,arguments)}),i&&i(c,function(){return n.t.apply(n,arguments)})},u=function(c){c&&(n.language=c,n.languages=n.services.languageUtils.toResolveHierarchy(c),n.translator.language||n.translator.changeLanguage(c),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(c)),n.loadResources(function(d){o(d,c)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(a),s}},{key:"getFixedT",value:function(a,i){var n=this,s=function o(u,l){var c=jt({},l);if(ur(l)!=="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),v=2;v<d;v++)p[v-2]=arguments[v];c=n.options.overloadTranslationOptionHandler([u,l].concat(p))}return c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,n.t(u,c)};return typeof a=="string"?s.lng=a:s.lngs=a,s.ns=i,s}},{key:"t",value:function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)}},{key:"exists",value:function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)}},{key:"setDefaultNamespace",value:function(a){this.options.defaultNS=a}},{key:"loadNamespaces",value:function(a,i){var n=this,s=Hn();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(function(o){n.options.ns.indexOf(o)<0&&n.options.ns.push(o)}),this.loadResources(function(o){s.resolve(),i&&i(o)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(a,i){var n=Hn();typeof a=="string"&&(a=[a]);var s=this.options.preload||[],o=a.filter(function(u){return s.indexOf(u)<0});return o.length?(this.options.preload=s.concat(o),this.loadResources(function(u){n.resolve(),i&&i(u)}),n):(i&&i(),Promise.resolve())}},{key:"dir",value:function(a){if(a||(a=this.languages&&this.languages.length>0?this.languages[0]:this.language),!a)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return i.indexOf(this.services.languageUtils.getLanguagePartFromCode(a))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new e(a,i)}},{key:"cloneInstance",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wl,s=jt({},this.options,i,{isClone:!0}),o=new e(s),u=["store","services","language"];return u.forEach(function(l){o[l]=a[l]}),o.translator=new tb(o.services,o.options),o.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];o.emit.apply(o,[l].concat(d))}),o.init(s,n),o.translator.options=o.options,o}}]),e}(fa);const Me=new VB;Me.changeLanguage.bind(Me),Me.cloneInstance.bind(Me),Me.createInstance.bind(Me),Me.dir.bind(Me),Me.exists.bind(Me),Me.getFixedT.bind(Me),Me.init.bind(Me),Me.loadLanguages.bind(Me),Me.loadNamespaces.bind(Me),Me.loadResources.bind(Me),Me.off.bind(Me),Me.on.bind(Me),Me.setDefaultNamespace.bind(Me),Me.t.bind(Me),Me.use.bind(Me);const Cl={screensCache:[],cachedScreenPromises:[],install(t){t.prototype.$dataProvider=this},apiInstance(){return H.has(window,"ProcessMaker.apiClient")&&!window.ProcessMaker.isStub?window.ProcessMaker.apiClient:this.token()?(Vn.defaults.baseURL=this.baseURL(),Vn.defaults.headers.common={Authorization:`Bearer ${this.token()}`},Vn.defaults.adapter=Wv(Vn.defaults.adapter,{enabledByDefault:window.ProcessMaker.screen.cacheEnabled,cacheFlag:"useCache",defaultCache:new Sl({ttl:window.ProcessMaker.screen.cacheTimeout,max:100})}),Vn):H.has(window,"ProcessMaker.apiClient")&&window.ProcessMaker.isStub?window.ProcessMaker.apiClient:{get(){return Promise.resolve({data:{data:[]}})}}},get(...t){return this.apiInstance().get(...t)},post(...t){return this.apiInstance().post(...t)},delete(...t){return this.apiInstance().delete(...t)},token(){return localStorage.getItem("token")},baseURL(){return localStorage.getItem("baseURL")},getTasks(t){const e=H.get(window,"PM4ConfigOverrides.getTasksEndpoint","/tasks");return this.get(e+t).then(r=>(r.data.screen&&r.data.screen.nested&&this.addNestedScreenCache(r.data.screen.nested),r))},addNestedScreenCache(t){t.forEach(e=>{e.screen_id&&(e.id=e.screen_id);const r=this.screensCache.findIndex(a=>a.id===e.id);r>-1?this.screensCache.splice(r,1,e):this.screensCache.push(e)})},getScreen(t,e=""){if(!t)return null;const r=this.cachedScreenPromises.find(s=>s.id===t&&s.query===e);if(r)return r.screenPromise;const a=H.get(window,"PM4ConfigOverrides.getScreenEndpoint","/screens"),i=this.screensCache.find(s=>s.id===t);if(i)return Promise.resolve({data:i});const n=new Promise((s,o)=>{this.get(`${a}/${t}${e}`).then(u=>{u.data.nested&&this.addNestedScreenCache(u.data.nested),s(u)}).catch(u=>o(u))});return this.cachedScreenPromises.push({id:t,query:e,screenPromise:n}),n},flushScreenCache(){this.cachedScreenPromises.splice(0,this.cachedScreenPromises.length)},postScript(t,e,r={}){const a=H.get(window,"PM4ConfigOverrides.postScriptEndpoint","/scripts/execute/{id}");return this.post(a.replace("{id}",t)+this.authQueryString(),e,r)},postDataSource(t,e,r){let a;return e?a=`/requests/${e}/data_sources/${t}`:a=`/requests/data_sources/${t}`,a+=this.authQueryString(),this.post(a,r,{timeout:0})},getDataSource(t,e){if(!window.ProcessMaker.screen.cacheEnabled&&!window.ProcessMaker.screen.cacheTimeout)return this.postDataSource(t,null,e);let r=`/requests/data_sources/${t}/resources/${e.config.endpoint}/data`;return r+=this.authQueryString(),this.get(r,{useCache:window.ProcessMaker.screen.cacheEnabled,params:{pmds_config:JSON.stringify(e.config),pmds_data:JSON.stringify(e.data)}}).then(a=>a)},authQueryString(){const t=H.get(window,"PM4ConfigOverrides.authParams",null);let e="";return t&&(e=`?${new URLSearchParams(t).toString()}`),e},deleteFile(t,e=null){let r=`files/${t}`;const a={token:e},i=H.get(window,"_current_task_id",0);return i&&(a.task_id=i),this.delete(r,{params:a})},download(t){return this.apiInstance().get(t,{responseType:"blob"})},getCollections(){return this.get("/collections?per_page=1000").catch(t=>{throw t.response&&t.response.status===404?new Error(Me.t("Collections package not installed")):t})},getCollectionFields(t){return this.get(`/collections/${t}/columns?per_page=1000`).catch(e=>{throw e.response&&e.response.status===404?new Error(Me.t("Collection id not found")):e})},getCollectionRecords(t,e,r=null){return e.useCache=window.ProcessMaker.screen.cacheEnabled,this.get(`/collections/${t}/records${this.authQueryString()}`,e).then(a=>{const i=a?a.data:null;if(!i)throw new Error(Me.t("No data returned"));return[i,r]}).catch(a=>{if(a.response&&a.response.status===404)return[{data:[]},r];throw a})}};let Yn=typeof window>"u"?global:window;class Ti{constructor(e,r){se(this,"screen",null);se(this,"firstPage",0);this.element=e,Object.assign(this,r)}async countItems(e){throw e}}class UB extends Ti{async countItems(e){for(const r of this.element)await Ai(r,{screen:this.screen}).countItems(e)}}class GB extends Ti{async countItems(e){for(let r=0,a=this.element.config.length;r<a;r++)await Ai(this.element.config[r].items,{screen:this.element}).countItems(e)}}class HB extends Ti{async countItems(e){e.push(this.element);const r=await this.loadScreen(this.element.config.screen);r&&r[0]&&r[0].items&&await Ai(r[0].items,{screen:this.screen}).countItems(e)}async loadScreen(e){try{if(Yn.nestedScreens||(Yn.nestedScreens={}),Yn.nestedScreens["id_"+e])return Yn.nestedScreens["id_"+e];const r=await Cl.getScreen(e);return Yn.nestedScreens["id_"+e]=r.data.config,r.data.config}catch{return!1}}}class YB extends Ti{async countItems(e){e.push(this.element),await Ai(this.element.items,{screen:this.screen}).countItems(e)}}class QB extends Ti{async countItems(e){await Ai(this.element.items,{screen:this.screen}).countItems(e)}}class KB extends Ti{async countItems(e){e.push(this.element)}}function Ai(t,e){return t instanceof Array?new UB(t,e):t.config instanceof Array?new GB(t,e):t.component==="FormNestedScreen"?new HB(t,e):t.component==="FormMultiColumn"?new QB(t,e):t.component==="FormLoop"?new YB(t,e):new KB(t,e)}let Or=typeof window>"u"?global:window,Qn=[];class Fa{constructor(e,r){se(this,"screen",null);se(this,"firstPage",0);se(this,"data",{});se(this,"insideLoop",!1);this.element=e,Object.assign(this,r)}async addValidations(e){throw e}isVisible(){if(!(this.element.visibleInDevice===null||this.element.visibleInDevice===void 0?!0:this.element.visibleInDevice))return!1;let r=!0;if(this.element.config.conditionalHide)try{r=!!At.evaluate(this.element.config.conditionalHide,this.data)}catch{r=!1}return r}}class JB extends Fa{async addValidations(e){for(const r of this.element)await ha(r,{screen:this.screen,data:this.data,parentVisibilityRule:this.parentVisibilityRule,insideLoop:this.insideLoop}).addValidations(e)}}class ZB extends Fa{async addValidations(e){this.element.config[this.firstPage]&&(Qn=[this.firstPage],await ha(this.element.config[this.firstPage].items,{screen:this.element,data:this.data}).addValidations(e),Qn=[])}}class XB extends Fa{async addValidations(e){if(!this.isVisible())return;const r=await this.loadNestedScreen(this.element.config.screen);if(r&&r.config){const a=r.config;let i=this.parentVisibilityRule?this.parentVisibilityRule:this.element.config.conditionalHide;a&&a[0]&&a[0].items&&await ha(a[0].items,{screen:r,data:this.data,parentVisibilityRule:i}).addValidations(e)}}async loadNestedScreen(e){if(!e)return null;if(Or.nestedScreens||(Or.nestedScreens={}),Or.nestedScreens["id_"+e])return{config:Or.nestedScreens["id_"+e]};const r=await Cl.getScreen(e);return Or.nestedScreens["id_"+e]=r.data.config,{config:r.data}}async loadScreen(e){if(!e)return null;if(Or.nestedScreens||(Or.nestedScreens={}),Or.nestedScreens["id_"+e])return Or.nestedScreens["id_"+e];const r=await Cl.getScreen(e);return Or.nestedScreens["id_"+e]=r.data.config,r.data.config}}class eW extends Fa{async addValidations(e){if(!this.isVisible())return;H.set(e,this.element.config.name,{});const r=H.get(e,this.element.config.name);r.$each={},this.checkForSiblings(e);const a=(H.get(this.data,this.element.config.name)||[{}])[0];await ha(this.element.items,{screen:this.screen,data:{_parent:this.data,...a},parentVisibilityRule:this.element.config.conditionalHide,insideLoop:!0}).addValidations(r.$each)}checkForSiblings(e){const r=[],a=[];if(this.screen.config.forEach(i=>{!i||!i.items||(i.items.filter(n=>{n.component==="FormLoop"&&n.config.name===this.element.config.name&&r.push(n)}),r&&r.forEach(n=>{n.items.filter(s=>{s.config.validation&&s.config.validation.forEach(o=>{const u=this.camelCase(o.value.split(":")[0]),l=nl[u],c={};let d={};d[u]=l,c[s.config.name]=d,H.merge(a,c)})})}))}),Object.keys(a).length!=0){const i=H.get(e,this.element.config.name);i.hasOwnProperty("$each")&&H.merge(i.$each,a),H.set(e[this.element.config.name].$each,i)}}camelCase(e){return e.replace(/_\w/g,r=>r.substr(1,1).toUpperCase())}}class tW extends Fa{async addValidations(e){this.isVisible()&&await ha(this.element.items,{screen:this.screen,data:this.data,parentVisibilityRule:this.element.config.conditionalHide}).addValidations(e)}}class rW extends Fa{async addValidations(e){if(!this.isVisible())return;const r=this.element.config.eventData;let a="Empty Screen";this.screen.config[r]&&this.screen.config[r].name&&(a=this.screen.config[r].name);const i=`${a}-${r}`;Qn.length>0&&!Qn.includes(i)&&this.screen.config[r]&&this.screen.config[r].items&&(Qn.push(i),await ha(this.screen.config[this.element.config.eventData].items,{screen:this.screen,data:this.data}).addValidations(e))}}class aW extends Fa{async addValidations(e){if(this.element.config&&this.element.config.readonly||this.element.config&&this.element.config.disabled||!(this.element.config&&this.element.config.name&&typeof this.element.config.name=="string"&&this.element.config.name.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/)))return;const r=this.element.config.name,a=this.element.config.validation,i=this.element.config.conditionalHide,n=this.parentVisibilityRule,s=this.insideLoop||!1,o=this.element.config.deviceVisibility?this.element.config.deviceVisibility:{showForDesktop:!0,showForMobile:!0};H.set(e,r,H.get(e,r,{}));const u=H.get(e,r);if(a instanceof Array)a.forEach(l=>{const c=this.camelCase(l.value.split(":")[0]);if(!c)return;let d=nl[c];if(d){if(l.configs instanceof Array){const p=[];l.configs.forEach(v=>{p.push(v.value)}),p.push(r),d=d(...p)}u[c]=function(...p){const v=p[1],_=r.split(".").length-1,h=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(v),_);if(n){const S=s?1:0,b=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(v),_+S);let f=!0;try{f=!!At.evaluate(n,b)}catch{f=!1}if(!f)return!0}let y=!0;try{const S=this.$root.$children[0].$refs.renderer.definition.isMobile;y=S&&o.showForMobile||!S&&o.showForDesktop}catch{y=!0}if(!y)return!0;let x=!0;if(i)try{x=!!At.evaluate(i,h)}catch{x=!1}return x?d.apply(this,p):!0}}});else if(typeof a=="string"&&a){let l=nl[a];if(!l)return;u[a]=function(...c){const d=c[1],p=r.split(".").length-1,v=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(d),p);if(n){const h=s?1:0,y=this.getDataAccordingToFieldLevel(this.getRootScreen().addReferenceToParents(d),p+h);let x=!0;try{x=!!At.evaluate(n,y)}catch{x=!1}if(!x)return!0}let _=!0;if(i)try{_=!!At.evaluate(i,v)}catch{_=!1}return _?l.apply(this,c):!0}}this.element.items&&ha(this.element.items,{screen:this.screen,data:this.data}).addValidations(e)}camelCase(e){return e.replace(/_\w/g,r=>r.substr(1,1).toUpperCase())}}function ha(t,e){return t instanceof Array?new JB(t,e):t.config instanceof Array?new ZB(t,e):t.component==="FormNestedScreen"?new XB(t,e):t.component==="FormMultiColumn"?new tW(t,e):t.component==="FormLoop"?new eW(t,e):(t.component,t.component==="FormButton"&&t.config.event==="pageNavigate"?new rW(t,e):new aW(t,e))}let Kn;const ib={mixins:ov,props:{value:Object,_parent:null,definition:Object,components:{type:Object,default(){return{}}},showErrors:{type:Boolean,default:!1},testScreenDefinition:{type:Boolean,default:!1}},data(){return{references__:[],debugCmp:null,component:null,alias:{},extensions:[],nodeNameProperty:"component",variables:[],variablesTree:[],initialize:[],ownerDocument:window.document,updatedConfigs:[],building:{show:!1,error:"",component:"",errors:[]}}},methods:{dot2bracket(t){return t.replace(/\.\d/g,e=>`[${e.substr(1)}]`)},submit(t,e=!1,r=null){r&&this.loopContext&&(r.loopContext=this.loopContext),this.$emit("submit",this.value,e,r)},buildComponent(t){window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-build-component",this);const e=this.componentDefinition(t);if(!this.testScreenDefinition)return e;const r=this.$root.constructor,a=r.config.warnHandler,i=r.config.errorHandler,n=[];this.building.error="",this.building.component="",this.building.errors=[],this.building.show=!1;let s;try{r.config.warnHandler=u=>{n.push(u)},r.config.errorHandler=u=>{n.push(u)},s=r.component("ScreenRendered",e);const o=new s({propsData:{vdata:{}}});if(o.$parent=this,o.$mount(),n.length>0)throw this.$t("Building error");return this.codigo=e,e}catch(o){return console.error(o),this.building.error=o,this.building.component=e,this.building.errors=n,this.building.show=!0,e||{template:"<div></div>"}}finally{r.config.warnHandler=a,r.config.errorHandler=i}},parse(t,e){const r=this.ownerDocument.createElement("div");return this.loadPages(e,r,t),"<div>"+r.innerHTML+"</div>"},loadPages(t,e,r){const a=t.config;this.variables.splice(0),this.extensions.forEach(i=>i.beforeload instanceof Function&&i.beforeload.bind(this)({pages:a,owner:e,definition:t})),a.forEach((i,n)=>{if(i){const s=this.createComponent("div",{name:i.name,class:"page","v-if":`currentPage__==${n}`,key:`page-${n}`});this.loadItems(i.items,s,r,t,n),e.appendChild(s)}})},escapeVuePropertyName(t){return t.substr(0,1)==="@"?t.replace("@","v-on:"):this.snakeCase(t)},snakeCase(t){return t.replace(/[A-Z]/g,e=>`-${e}`).toLowerCase().replace(/^-/,"")},camelCase(t){return t.replace(/_\w/g,e=>e.substr(1,1).toUpperCase())},updateComponentConfig(t,e){this.updatedConfigs.push({name:t,properties:e})},mergeUpdatedConfig(t,e){let r=this.updatedConfigs.find(a=>a.name===t);if(r){let a=r.properties;for(let i in a)e[i]===void 0&&(e[i]=a[i])}return e},createComponent(t,e){e=this.mergeUpdatedConfig(t,this.setDefaultPropertyValues(e)),t=this.snakeCase(t);const r=this.ownerDocument.createElement(t);for(let a in e){const i=e[a];i!==!1&&i!==null&&i!==void 0&&(a.substr(0,1)===":"||typeof i=="string"&&i.indexOf("{{")===-1?r.setAttribute(this.escapeVuePropertyName(a),i):typeof i=="string"&&i.indexOf("{{")!==-1&&!e.ignoreMustache?r.setAttribute(":"+this.escapeVuePropertyName(a),"mustache("+this.byValue(i)+")"):i!==void 0&&r.setAttribute(":"+this.escapeVuePropertyName(a),this.byRef(i)))}return r},byValue(t){return JSON.stringify(t).replace("{{","{{").replace("}}","}}")},byRef(t){const r=`references__[${this.references__.indexOf(t)>-1?this.references__.indexOf(t):this.references__.length}]`;return this.references__.push(t),r},loadItems(t,e,r,a,i){t.forEach(n=>{const s=n[this.nodeNameProperty],o=this.alias[s]||s,u={...n.config};this.extensions.forEach(d=>d.onloadproperties instanceof Function&&d.onloadproperties.bind(this)({properties:u,element:n,component:e,items:t,nodeName:o,componentName:s,screen:r,definition:a,formIndex:i}));const l=this.createComponent(o,u),c=this.ownerDocument.createElement("div");c.appendChild(l),this.extensions.forEach(d=>d.onloaditems instanceof Function&&d.onloaditems.bind(this)({properties:u,element:n,component:e,items:t,nodeName:o,componentName:s,node:l,wrapper:c,screen:r,definition:a,formIndex:i})),e.appendChild(c)})},setDefaultPropertyValues(t){let e={...t};return(typeof e.ariaLabel>"u"||e.ariaLabel===null||e.ariaLabel==="")&&e.label&&(e.ariaLabel=e.label),e.tabindex&&(e.tabindex=parseInt(e.tabindex)),e},validVariableName(t){return t&&typeof t=="string"&&t.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/)},isComputedVariable(t,e){return e.computed&&e.computed.some(r=>new RegExp(`^${r.property}(\\.|$)`,"i").test(t))},registerVariable(t,e={}){if(t&&t.startsWith("_parent.")||t&&t.includes("._parent.")||!this.validVariableName(t))return;const r=H.get(e,"config",{});this.variables.find(i=>i.name===t)||(this.variables.push({name:t,config:r,element:e}),this.variablesTree.push({name:t,config:r,element:e}))},registerNestedVariable(t,e,r){const a=Kn.getVariablesTree(r);this.variablesTree.push({name:t,prefix:e,config:{},items:a}),Kn.getVariablesTree({config:[]})},getVariablesTree(t){let e;try{e={mixins:[ad],components:{},props:{},computed:{},methods:{},data:{},watch:{},mounted:[]},this.variablesTree=[];const r=this.parse(e,t);return this.extensions.forEach(a=>{a.onparse instanceof Function&&a.onparse.bind(this)({screen:e,template:r,definition:t})}),this.variablesTree}catch(r){return console.error(r),this.variablesTree}},elementCssClass(t){const e=[];return t.config.bgcolor&&e.push(t.config.bgcolor),t.config.color&&e.push(t.config.color),e.join(" ")},componentDefinition(t){let e;this.building.error="",this.building.component="",this.building.errors=[],this.building.show=!1;try{e={mixins:[ad],components:{},props:{},computed:{},methods:{},created:[],data:{},watch:{},mounted:[]};const r=this.parse(e,t);this.extensions.forEach(n=>{n.onparse instanceof Function&&n.onparse.bind(this)({screen:e,template:r,definition:t})}),e.template=r,this.extensions.forEach(n=>{n.onbuild instanceof Function&&n.onbuild.bind(this)({screen:e,definition:t})});const a=["currentPage__"],i=`let value;const data = {};
269
269
  ${Object.keys(e.data).map(n=>{const{code:s,variable:o}=e.data[n];return`value = ${s};
270
270
  data.${this.safeDotName(n)} = value;
271
271
  ${!o||a.includes(o)||o.endsWith("__")?"":`this.setValue(${JSON.stringify(o)}, value, this.vdata);`}`}).join(`
@@ -284,7 +284,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
284
284
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,w=!0,O=!1;return{s:function(){f=f.call(S)},n:function(){var C=f.next();return w=C.done,C},e:function(C){O=!0,m=C},f:function(){try{w||f.return==null||f.return()}finally{if(O)throw m}}}}function y(S,b){(b==null||b>S.length)&&(b=S.length);for(var f=0,k=new Array(b);f<b;f++)k[f]=S[f];return k}var x={keyEvent:function(S,b,f,k,g){var m=this.inputmask,w=m.opts,O=m.dependencyLib,C=m.maskset,M=this,T=O(M),E=S.key,z=l.caret.call(m,M),F=w.onKeyDown.call(this,S,l.getBuffer.call(m),z,w);if(F!==void 0)return F;if(E===c.keys.Backspace||E===c.keys.Delete||d.iphone&&E===c.keys.BACKSPACE_SAFARI||S.ctrlKey&&E===c.keys.x&&!("oncut"in M))S.preventDefault(),p.handleRemove.call(m,M,E,z),(0,v.writeBuffer)(M,l.getBuffer.call(m,!0),C.p,S,M.inputmask._valueGet()!==l.getBuffer.call(m).join(""));else if(E===c.keys.End||E===c.keys.PageDown){S.preventDefault();var N=l.seekNext.call(m,l.getLastValidPosition.call(m));l.caret.call(m,M,S.shiftKey?z.begin:N,N,!0)}else E===c.keys.Home&&!S.shiftKey||E===c.keys.PageUp?(S.preventDefault(),l.caret.call(m,M,0,S.shiftKey?z.begin:0,!0)):w.undoOnEscape&&E===c.keys.Escape&&S.altKey!==!0?((0,v.checkVal)(M,!0,!1,m.undoValue.split("")),T.trigger("click")):E!==c.keys.Insert||S.shiftKey||S.ctrlKey||m.userOptions.insertMode!==void 0?w.tabThrough===!0&&E===c.keys.Tab?S.shiftKey===!0?(z.end=l.seekPrevious.call(m,z.end,!0),_.getTest.call(m,z.end-1).match.static===!0&&z.end--,z.begin=l.seekPrevious.call(m,z.end,!0),z.begin>=0&&z.end>0&&(S.preventDefault(),l.caret.call(m,M,z.begin,z.end))):(z.begin=l.seekNext.call(m,z.begin,!0),z.end=l.seekNext.call(m,z.begin,!0),z.end<C.maskLength&&z.end--,z.begin<=C.maskLength&&(S.preventDefault(),l.caret.call(m,M,z.begin,z.end))):S.shiftKey||w.insertModeVisual&&w.insertMode===!1&&(E===c.keys.ArrowRight?setTimeout(function(){var U=l.caret.call(m,M);l.caret.call(m,M,U.begin)},0):E===c.keys.ArrowLeft&&setTimeout(function(){var U=l.translatePosition.call(m,M.inputmask.caretPos.begin);l.translatePosition.call(m,M.inputmask.caretPos.end),m.isRTL?l.caret.call(m,M,U+(U===C.maskLength?0:1)):l.caret.call(m,M,U-(U===0?0:1))},0)):p.isSelection.call(m,z)?w.insertMode=!w.insertMode:(w.insertMode=!w.insertMode,l.caret.call(m,M,z.begin,z.begin));return m.isComposing=E==c.keys.Process||E==c.keys.Unidentified,m.ignorable=w.ignorables.includes(E),x.keypressEvent.call(this,S,b,f,k,g)},keypressEvent:function(S,b,f,k,g){var m=this.inputmask||this,w=m.opts,O=m.dependencyLib,C=m.maskset,M=m.el,T=O(M),E=S.key;if(b===!0||S.ctrlKey&&S.altKey||!(S.ctrlKey||S.metaKey||m.ignorable)){if(E){var z,F=b?{begin:g,end:g}:l.caret.call(m,M);E=w.substitutes[E]||E,C.writeOutBuffer=!0;var N=p.isValid.call(m,F,E,k,void 0,void 0,void 0,b);if(N!==!1&&(l.resetMaskSet.call(m,!0),z=N.caret!==void 0?N.caret:l.seekNext.call(m,N.pos.begin?N.pos.begin:N.pos),C.p=z),z=w.numericInput&&N.caret===void 0?l.seekPrevious.call(m,z):z,f!==!1&&(setTimeout(function(){w.onKeyValidation.call(M,E,N)},0),C.writeOutBuffer&&N!==!1)){var U=l.getBuffer.call(m);(0,v.writeBuffer)(M,U,z,S,b!==!0)}if(S.preventDefault(),b)return N!==!1&&(N.forwardPosition=z),N}}else E===c.keys.Enter&&m.undoValue!==m._valueGet(!0)&&(m.undoValue=m._valueGet(!0),setTimeout(function(){T.trigger("change")},0))},pasteEvent:function(S){var b,f=this.inputmask,k=f.opts,g=f._valueGet(!0),m=l.caret.call(f,this);f.isRTL&&(b=m.end,m.end=l.translatePosition.call(f,m.begin),m.begin=l.translatePosition.call(f,b));var w=g.substr(0,m.begin),O=g.substr(m.end,g.length);if(w==(f.isRTL?l.getBufferTemplate.call(f).slice().reverse():l.getBufferTemplate.call(f)).slice(0,m.begin).join("")&&(w=""),O==(f.isRTL?l.getBufferTemplate.call(f).slice().reverse():l.getBufferTemplate.call(f)).slice(m.end).join("")&&(O=""),window.clipboardData&&window.clipboardData.getData)g=w+window.clipboardData.getData("Text")+O;else{if(!S.clipboardData||!S.clipboardData.getData)return!0;g=w+S.clipboardData.getData("text/plain")+O}var C=g;if(f.isRTL){C=C.split("");var M,T=h(l.getBufferTemplate.call(f));try{for(T.s();!(M=T.n()).done;){var E=M.value;C[0]===E&&C.shift()}}catch(z){T.e(z)}finally{T.f()}C=C.join("")}if(typeof k.onBeforePaste=="function"){if((C=k.onBeforePaste.call(f,C,k))===!1)return!1;C||(C=g)}(0,v.checkVal)(this,!0,!1,C.toString().split(""),S),S.preventDefault()},inputFallBackEvent:function(S){var b=this.inputmask,f=b.opts,k=b.dependencyLib,g,m=this,w=m.inputmask._valueGet(!0),O=(b.isRTL?l.getBuffer.call(b).slice().reverse():l.getBuffer.call(b)).join(""),C=l.caret.call(b,m,void 0,void 0,!0);if(O!==w){if(g=function(T,E,z){for(var F,N,U,q=T.substr(0,z.begin).split(""),P=T.substr(z.begin).split(""),D=E.substr(0,z.begin).split(""),I=E.substr(z.begin).split(""),L=q.length>=D.length?q.length:D.length,W=P.length>=I.length?P.length:I.length,Y="",Q=[],J="~";q.length<L;)q.push(J);for(;D.length<L;)D.push(J);for(;P.length<W;)P.unshift(J);for(;I.length<W;)I.unshift(J);var R=q.concat(P),A=D.concat(I);for(N=0,F=R.length;N<F;N++)switch(U=_.getPlaceholder.call(b,l.translatePosition.call(b,N)),Y){case"insertText":A[N-1]===R[N]&&z.begin==R.length-1&&Q.push(R[N]),N=F;break;case"insertReplacementText":case"deleteContentBackward":R[N]===J?z.end++:N=F;break;default:R[N]!==A[N]&&(R[N+1]!==J&&R[N+1]!==U&&R[N+1]!==void 0||(A[N]!==U||A[N+1]!==J)&&A[N]!==J?A[N+1]===J&&A[N]===R[N+1]?(Y="insertText",Q.push(R[N]),z.begin--,z.end--):R[N]!==U&&R[N]!==J&&(R[N+1]===J||A[N]!==R[N]&&A[N+1]===R[N+1])?(Y="insertReplacementText",Q.push(R[N]),z.begin--):R[N]===J?(Y="deleteContentBackward",(l.isMask.call(b,l.translatePosition.call(b,N),!0)||A[N]===f.radixPoint)&&z.end++):N=F:(Y="insertText",Q.push(R[N]),z.begin--,z.end--))}return{action:Y,data:Q,caret:z}}(w,O,C),(m.inputmask.shadowRoot||m.ownerDocument).activeElement!==m&&m.focus(),(0,v.writeBuffer)(m,l.getBuffer.call(b)),l.caret.call(b,m,C.begin,C.end,!0),!d.mobile&&b.skipNextInsert&&S.inputType==="insertText"&&g.action==="insertText"&&b.isComposing)return!1;switch(S.inputType==="insertCompositionText"&&g.action==="insertText"&&b.isComposing?b.skipNextInsert=!0:b.skipNextInsert=!1,g.action){case"insertText":case"insertReplacementText":g.data.forEach(function(T,E){var z=new k.Event("keypress");z.key=T,b.ignorable=!1,x.keypressEvent.call(m,z)}),setTimeout(function(){b.$el.trigger("keyup")},0);break;case"deleteContentBackward":var M=new k.Event("keydown");M.key=c.keys.Backspace,x.keyEvent.call(m,M);break;default:(0,v.applyInputValue)(m,w),l.caret.call(b,m,C.begin,C.end,!0)}S.preventDefault()}},setValueEvent:function(S){var b=this.inputmask,f=this,k=S&&S.detail?S.detail[0]:arguments[1];k===void 0&&(k=f.inputmask._valueGet(!0)),(0,v.applyInputValue)(f,k),(S.detail&&S.detail[1]!==void 0||arguments[2]!==void 0)&&l.caret.call(b,f,S.detail?S.detail[1]:arguments[2])},focusEvent:function(S){var b=this.inputmask,f=b.opts,k=b==null?void 0:b._valueGet();f.showMaskOnFocus&&k!==l.getBuffer.call(b).join("")&&(0,v.writeBuffer)(this,l.getBuffer.call(b),l.seekNext.call(b,l.getLastValidPosition.call(b))),f.positionCaretOnTab!==!0||b.mouseEnter!==!1||p.isComplete.call(b,l.getBuffer.call(b))&&l.getLastValidPosition.call(b)!==-1||x.clickEvent.apply(this,[S,!0]),b.undoValue=b==null?void 0:b._valueGet(!0)},invalidEvent:function(S){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var S=this.inputmask,b=S.opts,f=this;S.mouseEnter=!1,b.clearMaskOnLostFocus&&(f.inputmask.shadowRoot||f.ownerDocument).activeElement!==f&&(0,v.HandleNativePlaceholder)(f,S.originalPlaceholder)},clickEvent:function(S,b){var f=this.inputmask;f.clicked++;var k=this;if((k.inputmask.shadowRoot||k.ownerDocument).activeElement===k){var g=l.determineNewCaretPosition.call(f,l.caret.call(f,k),b);g!==void 0&&l.caret.call(f,k,g)}},cutEvent:function(S){var b=this.inputmask,f=b.maskset,k=this,g=l.caret.call(b,k),m=b.isRTL?l.getBuffer.call(b).slice(g.end,g.begin):l.getBuffer.call(b).slice(g.begin,g.end),w=b.isRTL?m.reverse().join(""):m.join("");window.navigator.clipboard?window.navigator.clipboard.writeText(w):window.clipboardData&&window.clipboardData.getData&&window.clipboardData.setData("Text",w),p.handleRemove.call(b,k,c.keys.Delete,g),(0,v.writeBuffer)(k,l.getBuffer.call(b),f.p,S,b.undoValue!==b._valueGet(!0))},blurEvent:function(S){var b=this.inputmask,f=b.opts,k=b.dependencyLib;b.clicked=0;var g=k(this),m=this;if(m.inputmask){(0,v.HandleNativePlaceholder)(m,b.originalPlaceholder);var w=m.inputmask._valueGet(),O=l.getBuffer.call(b).slice();w!==""&&(f.clearMaskOnLostFocus&&(l.getLastValidPosition.call(b)===-1&&w===l.getBufferTemplate.call(b).join("")?O=[]:v.clearOptionalTail.call(b,O)),p.isComplete.call(b,O)===!1&&(setTimeout(function(){g.trigger("incomplete")},0),f.clearIncomplete&&(l.resetMaskSet.call(b),O=f.clearMaskOnLostFocus?[]:l.getBufferTemplate.call(b).slice())),(0,v.writeBuffer)(m,O,void 0,S)),b.undoValue!==b._valueGet(!0)&&(b.undoValue=b._valueGet(!0),g.trigger("change"))}},mouseenterEvent:function(){var S=this.inputmask,b=S.opts.showMaskOnHover,f=this;if(S.mouseEnter=!0,(f.inputmask.shadowRoot||f.ownerDocument).activeElement!==f){var k=(S.isRTL?l.getBufferTemplate.call(S).slice().reverse():l.getBufferTemplate.call(S)).join("");b&&(0,v.HandleNativePlaceholder)(f,k)}},submitEvent:function(){var S=this.inputmask,b=S.opts;S.undoValue!==S._valueGet(!0)&&S.$el.trigger("change"),l.getLastValidPosition.call(S)===-1&&S._valueGet&&S._valueGet()===l.getBufferTemplate.call(S).join("")&&S._valueSet(""),b.clearIncomplete&&p.isComplete.call(S,l.getBuffer.call(S))===!1&&S._valueSet(""),b.removeMaskOnSubmit&&(S._valueSet(S.unmaskedvalue(),!0),setTimeout(function(){(0,v.writeBuffer)(S.el,l.getBuffer.call(S))},0))},resetEvent:function(){var S=this.inputmask;S.refreshValue=!0,setTimeout(function(){(0,v.applyInputValue)(S.el,S._valueGet(!0))},0)}};o.EventHandlers=x},9716:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.EventRuler=void 0;var l,c=(l=u(2394))&&l.__esModule?l:{default:l},d=u(2839),p=u(8711),v=u(7760),_={on:function(h,y,x){var S=h.inputmask.dependencyLib,b=function(f){f.originalEvent&&(f=f.originalEvent||f,arguments[0]=f);var k,g=this,m=g.inputmask,w=m?m.opts:void 0;if(m===void 0&&this.nodeName!=="FORM"){var O=S.data(g,"_inputmask_opts");S(g).off(),O&&new c.default(O).mask(g)}else{if(["submit","reset","setvalue"].includes(f.type)||this.nodeName==="FORM"||!(g.disabled||g.readOnly&&!(f.type==="keydown"&&f.ctrlKey&&f.key===d.keys.c||w.tabThrough===!1&&f.key===d.keys.Tab))){switch(f.type){case"input":if(m.skipInputEvent===!0)return m.skipInputEvent=!1,f.preventDefault();break;case"click":case"focus":return m.validationEvent?(m.validationEvent=!1,h.blur(),(0,v.HandleNativePlaceholder)(h,(m.isRTL?p.getBufferTemplate.call(m).slice().reverse():p.getBufferTemplate.call(m)).join("")),setTimeout(function(){h.focus()},w.validationEventTimeOut),!1):(k=arguments,void setTimeout(function(){h.inputmask&&x.apply(g,k)},0))}var C=x.apply(g,arguments);return C===!1&&(f.preventDefault(),f.stopPropagation()),C}f.preventDefault()}};["submit","reset"].includes(y)?(b=b.bind(h),h.form!==null&&S(h.form).on(y,b)):S(h).on(y,b),h.inputmask.events[y]=h.inputmask.events[y]||[],h.inputmask.events[y].push(b)},off:function(h,y){if(h.inputmask&&h.inputmask.events){var x=h.inputmask.dependencyLib,S=h.inputmask.events;for(var b in y&&((S=[])[y]=h.inputmask.events[y]),S){for(var f=S[b];f.length>0;){var k=f.pop();["submit","reset"].includes(b)?h.form!==null&&x(h.form).off(b,k):x(h).off(b,k)}delete h.inputmask.events[b]}}}};o.EventRuler=_},219:function(s,o,u){var l=S(u(2394)),c=u(2839),d=S(u(7184)),p=u(8711),v=u(4713);function _(P,D){return function(I){if(Array.isArray(I))return I}(P)||function(I,L){var W=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(W!=null){var Y,Q,J,R,A=[],$=!0,j=!1;try{if(J=(W=W.call(I)).next,L===0){if(Object(W)!==W)return;$=!1}else for(;!($=(Y=J.call(W)).done)&&(A.push(Y.value),A.length!==L);$=!0);}catch(B){j=!0,Q=B}finally{try{if(!$&&W.return!=null&&(R=W.return(),Object(R)!==R))return}finally{if(j)throw Q}}return A}}(P,D)||function(I,L){if(I){if(typeof I=="string")return h(I,L);var W=Object.prototype.toString.call(I).slice(8,-1);if(W==="Object"&&I.constructor&&(W=I.constructor.name),W==="Map"||W==="Set")return Array.from(I);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return h(I,L)}}(P,D)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
285
285
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function h(P,D){(D==null||D>P.length)&&(D=P.length);for(var I=0,L=new Array(D);I<D;I++)L[I]=P[I];return L}function y(P){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},y(P)}function x(P,D){for(var I=0;I<D.length;I++){var L=D[I];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(P,(W=L.key,Y=void 0,Y=function(Q,J){if(y(Q)!=="object"||Q===null)return Q;var R=Q[Symbol.toPrimitive];if(R!==void 0){var A=R.call(Q,J||"default");if(y(A)!=="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Q)}(W,"string"),y(Y)==="symbol"?Y:String(Y)),L)}var W,Y}function S(P){return P&&P.__esModule?P:{default:P}}var b=l.default.dependencyLib,f=function(){function P(L,W,Y){(function(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")})(this,P),this.mask=L,this.format=W,this.opts=Y,this._date=new Date(1,0,1),this.initDateObject(L,this.opts)}var D,I;return D=P,(I=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts)),this._date}},{key:"initDateObject",value:function(L,W){var Y;for(T(W).lastIndex=0;Y=T(W).exec(this.format);){var Q=new RegExp("\\d+$").exec(Y[0]),J=Q?Y[0][0]+"x":Y[0],R=void 0;if(L!==void 0){if(Q){var A=T(W).lastIndex,$=q(Y.index,W);T(W).lastIndex=A,R=L.slice(0,L.indexOf($.nextMatch[0]))}else R=L.slice(0,m[J]&&m[J][4]||J.length);L=L.slice(R.length)}Object.prototype.hasOwnProperty.call(m,J)&&this.setValue(this,R,J,m[J][2],m[J][1])}}},{key:"setValue",value:function(L,W,Y,Q,J){if(W!==void 0&&(L[Q]=Q==="ampm"?W:W.replace(/[^0-9]/g,"0"),L["raw"+Q]=W.replace(/\s/g,"_")),J!==void 0){var R=L[Q];(Q==="day"&&parseInt(R)===29||Q==="month"&&parseInt(R)===2)&&(parseInt(L.day)!==29||parseInt(L.month)!==2||L.year!==""&&L.year!==void 0||L._date.setFullYear(2012,1,29)),Q==="day"&&(g=!0,parseInt(R)===0&&(R=1)),Q==="month"&&(g=!0),Q==="year"&&(g=!0,R.length<4&&(R=F(R,4,!0))),R===""||isNaN(R)||J.call(L._date,R),Q==="ampm"&&J.call(L._date,R)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&x(D.prototype,I),Object.defineProperty(D,"prototype",{writable:!1}),P}(),k=new Date().getFullYear(),g=!1,m={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return F(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(P){var D=P?parseInt(P):0;return D>0&&D--,Date.prototype.setMonth.call(this,D)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(P){var D=P?parseInt(P):0;return D>0&&D--,Date.prototype.setMonth.call(this,D)},"month",function(){return F(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return F(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return F(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return F(Date.prototype.getHours.call(this),2)}],hx:[function(P){return"[0-9]{".concat(P,"}")},Date.prototype.setHours,"hours",function(P){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return F(Date.prototype.getHours.call(this),2)}],Hx:[function(P){return"[0-9]{".concat(P,"}")},Date.prototype.setHours,"hours",function(P){return function(){return F(Date.prototype.getHours.call(this),P)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return F(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return F(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return F(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return F(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",O,"ampm",C,1],tt:["[ap]m",O,"ampm",C,2],T:["[AP]",O,"ampm",C,1],TT:["[AP]M",O,"ampm",C,2],Z:[".*",void 0,"Z",function(){var P=this.toString().match(/\((.+)\)/)[1];return P.includes(" ")&&(P=(P=P.replace("-"," ").toUpperCase()).split(" ").map(function(D){return _(D,1)[0]}).join("")),P}],o:[""],S:[""]},w={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function O(P){var D=this.getHours();P.toLowerCase().includes("p")?this.setHours(D+12):P.toLowerCase().includes("a")&&D>=12&&this.setHours(D-12)}function C(){var P=this.getHours();return(P=P||12)>=12?"PM":"AM"}function M(P){var D=new RegExp("\\d+$").exec(P[0]);if(D&&D[0]!==void 0){var I=m[P[0][0]+"x"].slice("");return I[0]=I[0](D[0]),I[3]=I[3](D[0]),I}if(m[P[0]])return m[P[0]]}function T(P){if(!P.tokenizer){var D=[],I=[];for(var L in m)if(/\.*x$/.test(L)){var W=L[0]+"\\d+";I.indexOf(W)===-1&&I.push(W)}else D.indexOf(L[0])===-1&&D.push(L[0]);P.tokenizer="("+(I.length>0?I.join("|")+"|":"")+D.join("+|")+")+?|.",P.tokenizer=new RegExp(P.tokenizer,"g")}return P.tokenizer}function E(P,D,I){if(!g)return!0;if(P.rawday===void 0||!isFinite(P.rawday)&&new Date(P.date.getFullYear(),isFinite(P.rawmonth)?P.month:P.date.getMonth()+1,0).getDate()>=P.day||P.day=="29"&&(!isFinite(P.rawyear)||P.rawyear===void 0||P.rawyear==="")||new Date(P.date.getFullYear(),isFinite(P.rawmonth)?P.month:P.date.getMonth()+1,0).getDate()>=P.day)return D;if(P.day=="29"){var L=q(D.pos,I);if(L.targetMatch[0]==="yyyy"&&D.pos-L.targetMatchIndex==2)return D.remove=D.pos+1,D}else if(P.month=="02"&&P.day=="30"&&D.c!==void 0)return P.day="03",P.date.setDate(3),P.date.setMonth(1),D.insert=[{pos:D.pos,c:"0"},{pos:D.pos+1,c:D.c}],D.caret=p.seekNext.call(this,D.pos+1),D;return!1}function z(P,D,I,L){var W,Y,Q="";for(T(I).lastIndex=0;W=T(I).exec(P);)if(D===void 0)if(Y=M(W))Q+="("+Y[0]+")";else switch(W[0]){case"[":Q+="(";break;case"]":Q+=")?";break;default:Q+=(0,d.default)(W[0])}else(Y=M(W))?L!==!0&&Y[3]?Q+=Y[3].call(D.date):Y[2]?Q+=D["raw"+Y[2]]:Q+=W[0]:Q+=W[0];return Q}function F(P,D,I){for(P=String(P),D=D||2;P.length<D;)P=I?P+"0":"0"+P;return P}function N(P,D,I){return typeof P=="string"?new f(P,D,I):P&&y(P)==="object"&&Object.prototype.hasOwnProperty.call(P,"date")?P:void 0}function U(P,D){return z(D.inputFormat,{date:P},D)}function q(P,D){var I,L,W=0,Y=0;for(T(D).lastIndex=0;L=T(D).exec(D.inputFormat);){var Q=new RegExp("\\d+$").exec(L[0]);if((W+=Y=Q?parseInt(Q[0]):L[0].length)>=P+1){I=L,L=T(D).exec(D.inputFormat);break}}return{targetMatchIndex:W-Y,nextMatch:L,targetMatch:I}}l.default.extendAliases({datetime:{mask:function(P){return P.numericInput=!1,m.S=P.i18n.ordinalSuffix.join("|"),P.inputFormat=w[P.inputFormat]||P.inputFormat,P.displayFormat=w[P.displayFormat]||P.displayFormat||P.inputFormat,P.outputFormat=w[P.outputFormat]||P.outputFormat||P.inputFormat,P.placeholder=P.placeholder!==""?P.placeholder:P.inputFormat.replace(/[[\]]/,""),P.regex=z(P.inputFormat,void 0,P),P.min=N(P.min,P.inputFormat,P),P.max=N(P.max,P.inputFormat,P),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(P,D,I,L,W,Y,Q,J){if(J)return!0;if(isNaN(I)&&P[D]!==I){var R=q(D,W);if(R.nextMatch&&R.nextMatch[0]===I&&R.targetMatch[0].length>1){var A=m[R.targetMatch[0]][0];if(new RegExp(A).test("0"+P[D-1]))return P[D]=P[D-1],P[D-1]="0",{fuzzy:!0,buffer:P,refreshFromBuffer:{start:D-1,end:D+1},pos:D+1}}}return!0},postValidation:function(P,D,I,L,W,Y,Q,J){var R,A;if(Q)return!0;if(L===!1&&(((R=q(D+1,W)).targetMatch&&R.targetMatchIndex===D&&R.targetMatch[0].length>1&&m[R.targetMatch[0]]!==void 0||(R=q(D+2,W)).targetMatch&&R.targetMatchIndex===D+1&&R.targetMatch[0].length>1&&m[R.targetMatch[0]]!==void 0)&&(A=m[R.targetMatch[0]][0]),A!==void 0&&(Y.validPositions[D+1]!==void 0&&new RegExp(A).test(I+"0")?(P[D]=I,P[D+1]="0",L={pos:D+2,caret:D}):new RegExp(A).test("0"+I)&&(P[D]="0",P[D+1]=I,L={pos:D+2})),L===!1))return L;if(L.fuzzy&&(P=L.buffer,D=L.pos),(R=q(D,W)).targetMatch&&R.targetMatch[0]&&m[R.targetMatch[0]]!==void 0){var $=m[R.targetMatch[0]];A=$[0];var j=P.slice(R.targetMatchIndex,R.targetMatchIndex+R.targetMatch[0].length);if(new RegExp(A).test(j.join(""))===!1&&R.targetMatch[0].length===2&&Y.validPositions[R.targetMatchIndex]&&Y.validPositions[R.targetMatchIndex+1]&&(Y.validPositions[R.targetMatchIndex+1].input="0"),$[2]=="year")for(var B=v.getMaskTemplate.call(this,!1,1,void 0,!0),G=D+1;G<P.length;G++)P[G]=B[G],delete Y.validPositions[G]}var Z=L,te=N(P.join(""),W.inputFormat,W);return Z&&!isNaN(te.date.getTime())&&(W.prefillYear&&(Z=function(re,le,he){if(re.year!==re.rawyear){var ie=k.toString(),ue=re.rawyear.replace(/[^0-9]/g,""),ne=ie.slice(0,ue.length),pe=ie.slice(ue.length);if(ue.length===2&&ue===ne){var be=new Date(k,re.month-1,re.day);re.day==be.getDate()&&(!he.max||he.max.date.getTime()>=be.getTime())&&(re.date.setFullYear(k),re.year=ie,le.insert=[{pos:le.pos+1,c:pe[0]},{pos:le.pos+2,c:pe[1]}])}}return le}(te,Z,W)),Z=function(re,le,he,ie,ue){if(!le)return le;if(le&&he.min&&!isNaN(he.min.date.getTime())){var ne;for(re.reset(),T(he).lastIndex=0;ne=T(he).exec(he.inputFormat);){var pe;if((pe=M(ne))&&pe[3]){for(var be=pe[1],Pe=re[pe[2]],Ie=he.min[pe[2]],ct=he.max?he.max[pe[2]]:Ie,De=[],dt=!1,_t=0;_t<Ie.length;_t++)ie.validPositions[_t+ne.index]!==void 0||dt?(De[_t]=Pe[_t],dt=dt||Pe[_t]>Ie[_t]):(De[_t]=Ie[_t],pe[2]==="year"&&Pe.length-1==_t&&Ie!=ct&&(De=(parseInt(De.join(""))+1).toString().split("")),pe[2]==="ampm"&&Ie!=ct&&he.min.date.getTime()>re.date.getTime()&&(De[_t]=ct[_t]));be.call(re._date,De.join(""))}}le=he.min.date.getTime()<=re.date.getTime(),re.reInit()}return le&&he.max&&(isNaN(he.max.date.getTime())||(le=he.max.date.getTime()>=re.date.getTime())),le}(te,Z=E.call(this,te,Z,W),W,Y)),D!==void 0&&Z&&L.pos!==D?{buffer:z(W.inputFormat,te,W).split(""),refreshFromBuffer:{start:D,end:L.pos},pos:L.caret||L.pos}:Z},onKeyDown:function(P,D,I,L){P.ctrlKey&&P.key===c.keys.ArrowRight&&(this.inputmask._valueSet(U(new Date,L)),b(this).trigger("setvalue"))},onUnMask:function(P,D,I){return D&&z(I.outputFormat,N(P,I.inputFormat,I),I,!0)},casing:function(P,D,I,L){return D.nativeDef.indexOf("[ap]")==0?P.toLowerCase():D.nativeDef.indexOf("[AP]")==0?P.toUpperCase():P},onBeforeMask:function(P,D){return Object.prototype.toString.call(P)==="[object Date]"&&(P=U(P,D)),P},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(s,o,u){var l,c=(l=u(2394))&&l.__esModule?l:{default:l},d=u(8711),p=u(4713);c.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var v=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function _(h,y,x,S,b){return x-1>-1&&y.buffer[x-1]!=="."?(h=y.buffer[x-1]+h,h=x-2>-1&&y.buffer[x-2]!=="."?y.buffer[x-2]+h:"0"+h):h="00"+h,v.test(h)}c.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:_},j:{validator:_},k:{validator:_},l:{validator:_}},onUnMask:function(h,y,x){return h},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(h){var y=h.separator,x=h.quantifier,S="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",b=S;if(y)for(var f=0;f<x;f++)b+="[".concat(y).concat(S,"]");return b},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(h,y){return(h=h.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(h,y,x){return h},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(h,y,x,S,b,f,k){var g=p.getMaskTemplate.call(this,!0,d.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(g.join(""))}}})},207:function(s,o,u){var l=v(u(2394)),c=v(u(7184)),d=u(8711),p=u(2839);function v(f){return f&&f.__esModule?f:{default:f}}var _=l.default.dependencyLib;function h(f,k){for(var g="",m=0;m<f.length;m++)l.default.prototype.definitions[f.charAt(m)]||k.definitions[f.charAt(m)]||k.optionalmarker[0]===f.charAt(m)||k.optionalmarker[1]===f.charAt(m)||k.quantifiermarker[0]===f.charAt(m)||k.quantifiermarker[1]===f.charAt(m)||k.groupmarker[0]===f.charAt(m)||k.groupmarker[1]===f.charAt(m)||k.alternatormarker===f.charAt(m)?g+="\\"+f.charAt(m):g+=f.charAt(m);return g}function y(f,k,g,m){if(f.length>0&&k>0&&(!g.digitsOptional||m)){var w=f.indexOf(g.radixPoint),O=!1;g.negationSymbol.back===f[f.length-1]&&(O=!0,f.length--),w===-1&&(f.push(g.radixPoint),w=f.length-1);for(var C=1;C<=k;C++)isFinite(f[w+C])||(f[w+C]="0")}return O&&f.push(g.negationSymbol.back),f}function x(f,k){var g=0;for(var m in f==="+"&&(g=d.seekNext.call(this,k.validPositions.length-1)),k.tests)if((m=parseInt(m))>=g){for(var w=0,O=k.tests[m].length;w<O;w++)if((k.validPositions[m]===void 0||f==="-")&&k.tests[m][w].match.def===f)return m+(k.validPositions[m]!==void 0&&f!=="-"?1:0)}return g}function S(f,k){for(var g=-1,m=0,w=k.validPositions.length;m<w;m++){var O=k.validPositions[m];if(O&&O.match.def===f){g=m;break}}return g}function b(f,k,g,m,w){var O=k.buffer?k.buffer.indexOf(w.radixPoint):-1,C=(O!==-1||m&&w.jitMasking)&&new RegExp(w.definitions[9].validator).test(f);return w._radixDance&&O!==-1&&C&&k.validPositions[O]==null?{insert:{pos:O===g?O+1:O,c:w.radixPoint},pos:g}:C}l.default.extendAliases({numeric:{mask:function(f){f.repeat=0,f.groupSeparator===f.radixPoint&&f.digits&&f.digits!=="0"&&(f.radixPoint==="."?f.groupSeparator=",":f.radixPoint===","?f.groupSeparator=".":f.groupSeparator=""),f.groupSeparator===" "&&(f.skipOptionalPartCharacter=void 0),f.placeholder.length>1&&(f.placeholder=f.placeholder.charAt(0)),f.positionCaretOnClick==="radixFocus"&&f.placeholder===""&&(f.positionCaretOnClick="lvp");var k="0",g=f.radixPoint;f.numericInput===!0&&f.__financeInput===void 0?(k="1",f.positionCaretOnClick=f.positionCaretOnClick==="radixFocus"?"lvp":f.positionCaretOnClick,f.digitsOptional=!1,isNaN(f.digits)&&(f.digits=2),f._radixDance=!1,g=f.radixPoint===","?"?":"!",f.radixPoint!==""&&f.definitions[g]===void 0&&(f.definitions[g]={},f.definitions[g].validator="["+f.radixPoint+"]",f.definitions[g].placeholder=f.radixPoint,f.definitions[g].static=!0,f.definitions[g].generated=!0)):(f.__financeInput=!1,f.numericInput=!0);var m,w="[+]";if(w+=h(f.prefix,f),f.groupSeparator!==""?(f.definitions[f.groupSeparator]===void 0&&(f.definitions[f.groupSeparator]={},f.definitions[f.groupSeparator].validator="["+f.groupSeparator+"]",f.definitions[f.groupSeparator].placeholder=f.groupSeparator,f.definitions[f.groupSeparator].static=!0,f.definitions[f.groupSeparator].generated=!0),w+=f._mask(f)):w+="9{+}",f.digits!==void 0&&f.digits!==0){var O=f.digits.toString().split(",");isFinite(O[0])&&O[1]&&isFinite(O[1])?w+=g+k+"{"+f.digits+"}":(isNaN(f.digits)||parseInt(f.digits)>0)&&(f.digitsOptional||f.jitMasking?(m=w+g+k+"{0,"+f.digits+"}",f.keepStatic=!0):w+=g+k+"{"+f.digits+"}")}else f.inputmode="numeric";return w+=h(f.suffix,f),w+="[-]",m&&(w=[m+h(f.suffix,f)+"[-]",w]),f.greedy=!1,function(C){C.parseMinMaxOptions===void 0&&(C.min!==null&&(C.min=C.min.toString().replace(new RegExp((0,c.default)(C.groupSeparator),"g"),""),C.radixPoint===","&&(C.min=C.min.replace(C.radixPoint,".")),C.min=isFinite(C.min)?parseFloat(C.min):NaN,isNaN(C.min)&&(C.min=Number.MIN_VALUE)),C.max!==null&&(C.max=C.max.toString().replace(new RegExp((0,c.default)(C.groupSeparator),"g"),""),C.radixPoint===","&&(C.max=C.max.replace(C.radixPoint,".")),C.max=isFinite(C.max)?parseFloat(C.max):NaN,isNaN(C.max)&&(C.max=Number.MAX_VALUE)),C.parseMinMaxOptions="done")}(f),f.radixPoint!==""&&f.substituteRadixPoint&&(f.substitutes[f.radixPoint=="."?",":"."]=f.radixPoint),w},_mask:function(f){return"("+f.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:b},1:{validator:b,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(f,k,g,m,w){return w.allowMinus&&(f==="-"||f===w.negationSymbol.front)}},"-":{validator:function(f,k,g,m,w){return w.allowMinus&&f===w.negationSymbol.back}}},preValidation:function(f,k,g,m,w,O,C,M){if(w.__financeInput!==!1&&g===w.radixPoint)return!1;var T=f.indexOf(w.radixPoint),E=k;if(k=function(U,q,P,D,I){return I._radixDance&&I.numericInput&&q!==I.negationSymbol.back&&U<=P&&(P>0||q==I.radixPoint)&&(D.validPositions[U-1]===void 0||D.validPositions[U-1].input!==I.negationSymbol.back)&&(U-=1),U}(k,g,T,O,w),g==="-"||g===w.negationSymbol.front){if(w.allowMinus!==!0)return!1;var z=!1,F=S("+",O),N=S("-",O);return F!==-1&&(z=[F,N]),z!==!1?{remove:z,caret:E-w.negationSymbol.back.length}:{insert:[{pos:x.call(this,"+",O),c:w.negationSymbol.front,fromIsValid:!0},{pos:x.call(this,"-",O),c:w.negationSymbol.back,fromIsValid:void 0}],caret:E+w.negationSymbol.back.length}}if(g===w.groupSeparator)return{caret:E};if(M)return!0;if(T!==-1&&w._radixDance===!0&&m===!1&&g===w.radixPoint&&w.digits!==void 0&&(isNaN(w.digits)||parseInt(w.digits)>0)&&T!==k)return{caret:w._radixDance&&k===T-1?T+1:T};if(w.__financeInput===!1){if(m){if(w.digitsOptional)return{rewritePosition:C.end};if(!w.digitsOptional){if(C.begin>T&&C.end<=T)return g===w.radixPoint?{insert:{pos:T+1,c:"0",fromIsValid:!0},rewritePosition:T}:{rewritePosition:T+1};if(C.begin<T)return{rewritePosition:C.begin-1}}}else if(!w.showMaskOnHover&&!w.showMaskOnFocus&&!w.digitsOptional&&w.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:T}}return{rewritePosition:k}},postValidation:function(f,k,g,m,w,O,C){if(m===!1)return m;if(C)return!0;if(w.min!==null||w.max!==null){var M=w.onUnMask(f.slice().reverse().join(""),void 0,_.extend({},w,{unmaskAsNumber:!0}));if(w.min!==null&&M<w.min&&(M.toString().length>w.min.toString().length||M<0))return!1;if(w.max!==null&&M>w.max)return!!w.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:y(w.max.toString().replace(".",w.radixPoint).split(""),w.digits,w).reverse()}}return m},onUnMask:function(f,k,g){if(k===""&&g.nullable===!0)return k;var m=f.replace(g.prefix,"");return m=(m=m.replace(g.suffix,"")).replace(new RegExp((0,c.default)(g.groupSeparator),"g"),""),g.placeholder.charAt(0)!==""&&(m=m.replace(new RegExp(g.placeholder.charAt(0),"g"),"0")),g.unmaskAsNumber?(g.radixPoint!==""&&m.indexOf(g.radixPoint)!==-1&&(m=m.replace(c.default.call(this,g.radixPoint),".")),m=(m=m.replace(new RegExp("^"+(0,c.default)(g.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(g.negationSymbol.back)+"$"),""),Number(m)):m},isComplete:function(f,k){var g=(k.numericInput?f.slice().reverse():f).join("");return g=(g=(g=(g=(g=g.replace(new RegExp("^"+(0,c.default)(k.negationSymbol.front)),"-")).replace(new RegExp((0,c.default)(k.negationSymbol.back)+"$"),"")).replace(k.prefix,"")).replace(k.suffix,"")).replace(new RegExp((0,c.default)(k.groupSeparator)+"([0-9]{3})","g"),"$1"),k.radixPoint===","&&(g=g.replace((0,c.default)(k.radixPoint),".")),isFinite(g)},onBeforeMask:function(f,k){var g=k.radixPoint||",";isFinite(k.digits)&&(k.digits=parseInt(k.digits)),typeof f!="number"&&k.inputType!=="number"||g===""||(f=f.toString().replace(".",g));var m=f.charAt(0)==="-"||f.charAt(0)===k.negationSymbol.front,w=f.split(g),O=w[0].replace(/[^\-0-9]/g,""),C=w.length>1?w[1].replace(/[^0-9]/g,""):"",M=w.length>1;f=O+(C!==""?g+C:C);var T=0;if(g!==""&&(T=k.digitsOptional?k.digits<C.length?k.digits:C.length:k.digits,C!==""||!k.digitsOptional)){var E=Math.pow(10,T||1);f=f.replace((0,c.default)(g),"."),isNaN(parseFloat(f))||(f=(k.roundingFN(parseFloat(f)*E)/E).toFixed(T)),f=f.toString().replace(".",g)}if(k.digits===0&&f.indexOf(g)!==-1&&(f=f.substring(0,f.indexOf(g))),k.min!==null||k.max!==null){var z=f.toString().replace(g,".");k.min!==null&&z<k.min?f=k.min.toString().replace(".",g):k.max!==null&&z>k.max&&(f=k.max.toString().replace(".",g))}return m&&f.charAt(0)!=="-"&&(f="-"+f),y(f.toString().split(""),T,k,M).join("")},onBeforeWrite:function(f,k,g,m){function w(U,q){if(m.__financeInput!==!1||q){var P=U.indexOf(m.radixPoint);P!==-1&&U.splice(P,1)}if(m.groupSeparator!=="")for(;(P=U.indexOf(m.groupSeparator))!==-1;)U.splice(P,1);return U}var O,C;if(m.stripLeadingZeroes&&(C=function(U,q){var P=new RegExp("(^"+(q.negationSymbol.front!==""?(0,c.default)(q.negationSymbol.front)+"?":"")+(0,c.default)(q.prefix)+")(.*)("+(0,c.default)(q.suffix)+(q.negationSymbol.back!=""?(0,c.default)(q.negationSymbol.back)+"?":"")+"$)").exec(U.slice().reverse().join("")),D=P?P[2]:"",I=!1;return D&&(D=D.split(q.radixPoint.charAt(0))[0],I=new RegExp("^[0"+q.groupSeparator+"]*").exec(D)),!(!I||!(I[0].length>1||I[0].length>0&&I[0].length<D.length))&&I}(k,m)))for(var M=k.join("").lastIndexOf(C[0].split("").reverse().join(""))-(C[0]==C.input?0:1),T=C[0]==C.input?1:0,E=C[0].length-T;E>0;E--)delete this.maskset.validPositions[M+E],delete k[M+E];if(f)switch(f.type){case"blur":case"checkval":if(m.min!==null){var z=m.onUnMask(k.slice().reverse().join(""),void 0,_.extend({},m,{unmaskAsNumber:!0}));if(m.min!==null&&z<m.min)return{refreshFromBuffer:!0,buffer:y(m.min.toString().replace(".",m.radixPoint).split(""),m.digits,m).reverse()}}if(k[k.length-1]===m.negationSymbol.front){var F=new RegExp("(^"+(m.negationSymbol.front!=""?(0,c.default)(m.negationSymbol.front)+"?":"")+(0,c.default)(m.prefix)+")(.*)("+(0,c.default)(m.suffix)+(m.negationSymbol.back!=""?(0,c.default)(m.negationSymbol.back)+"?":"")+"$)").exec(w(k.slice(),!0).reverse().join(""));(F?F[2]:"")==0&&(O={refreshFromBuffer:!0,buffer:[0]})}else m.radixPoint!==""&&k.indexOf(m.radixPoint)===m.suffix.length&&(O&&O.buffer?O.buffer.splice(0,1+m.suffix.length):(k.splice(0,1+m.suffix.length),O={refreshFromBuffer:!0,buffer:w(k)}));if(m.enforceDigitsOnBlur){var N=(O=O||{})&&O.buffer||k.slice().reverse();O.refreshFromBuffer=!0,O.buffer=y(N,m.digits,m,!0).reverse()}}return O},onKeyDown:function(f,k,g,m){var w,O=_(this);if(f.location!=3){var C,M=f.key;if((C=m.shortcuts&&m.shortcuts[M])&&C.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(C)),O.trigger("setvalue"),!1}if(f.ctrlKey)switch(f.key){case p.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(m.step)),O.trigger("setvalue"),!1;case p.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(m.step)),O.trigger("setvalue"),!1}if(!f.shiftKey&&(f.key===p.keys.Delete||f.key===p.keys.Backspace||f.key===p.keys.BACKSPACE_SAFARI)&&g.begin!==k.length){if(k[f.key===p.keys.Delete?g.begin-1:g.end]===m.negationSymbol.front)return w=k.slice().reverse(),m.negationSymbol.front!==""&&w.shift(),m.negationSymbol.back!==""&&w.pop(),O.trigger("setvalue",[w.join(""),g.begin]),!1;if(m._radixDance===!0){var T=k.indexOf(m.radixPoint);if(m.digitsOptional){if(T===0)return(w=k.slice().reverse()).pop(),O.trigger("setvalue",[w.join(""),g.begin>=w.length?w.length:g.begin]),!1}else if(T!==-1&&(g.begin<T||g.end<T||f.key===p.keys.Delete&&(g.begin===T||g.begin-1===T))){var E=void 0;return g.begin===g.end&&(f.key===p.keys.Backspace||f.key===p.keys.BACKSPACE_SAFARI?g.begin++:f.key===p.keys.Delete&&g.begin-1===T&&(E=_.extend({},g),g.begin--,g.end--)),(w=k.slice().reverse()).splice(w.length-g.begin,g.begin-g.end+1),w=y(w,m.digits,m).join(""),E&&(g=E),O.trigger("setvalue",[w,g.begin>=w.length?T+1:g.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(f){return"("+f.groupSeparator+"99){*|1}("+f.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(s,o,u){var l;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var c=((l=u(8741))&&l.__esModule?l:{default:l}).default?window:{};o.default=c},7760:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.HandleNativePlaceholder=function(b,f){var k=b?b.inputmask:this;if(v.ie){if(b.inputmask._valueGet()!==f&&(b.placeholder!==f||b.placeholder==="")){var g=d.getBuffer.call(k).slice(),m=b.inputmask._valueGet();if(m!==f){var w=d.getLastValidPosition.call(k);w===-1&&m===d.getBufferTemplate.call(k).join("")?g=[]:w!==-1&&y.call(k,g),S(b,g)}}}else b.placeholder!==f&&(b.placeholder=f,b.placeholder===""&&b.removeAttribute("placeholder"))},o.applyInputValue=h,o.checkVal=x,o.clearOptionalTail=y,o.unmaskedvalue=function(b){var f=b?b.inputmask:this,k=f.opts,g=f.maskset;if(b){if(b.inputmask===void 0)return b.value;b.inputmask&&b.inputmask.refreshValue&&h(b,b.inputmask._valueGet(!0))}for(var m=[],w=g.validPositions,O=0,C=w.length;O<C;O++)w[O]&&w[O].match&&(w[O].match.static!=1||Array.isArray(g.metadata)&&w[O].generatedInput!==!0)&&m.push(w[O].input);var M=m.length===0?"":(f.isRTL?m.reverse():m).join("");if(typeof k.onUnMask=="function"){var T=(f.isRTL?d.getBuffer.call(f).slice().reverse():d.getBuffer.call(f)).join("");M=k.onUnMask.call(f,T,M,k)}return M},o.writeBuffer=S;var l=u(2839),c=u(4713),d=u(8711),p=u(7215),v=u(9845),_=u(6030);function h(b,f){var k=b?b.inputmask:this,g=k.opts;b.inputmask.refreshValue=!1,typeof g.onBeforeMask=="function"&&(f=g.onBeforeMask.call(k,f,g)||f),x(b,!0,!1,f=(f||"").toString().split("")),k.undoValue=k._valueGet(!0),(g.clearMaskOnLostFocus||g.clearIncomplete)&&b.inputmask._valueGet()===d.getBufferTemplate.call(k).join("")&&d.getLastValidPosition.call(k)===-1&&b.inputmask._valueSet("")}function y(b){b.length=0;for(var f,k=c.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(f=k.shift())!==void 0;)b.push(f);return b}function x(b,f,k,g,m){var w=b?b.inputmask:this,O=w.maskset,C=w.opts,M=w.dependencyLib,T=g.slice(),E="",z=-1,F=void 0,N=C.skipOptionalPartCharacter;C.skipOptionalPartCharacter="",d.resetMaskSet.call(w),O.tests={},z=C.radixPoint?d.determineNewCaretPosition.call(w,{begin:0,end:0},!1,C.__financeInput===!1?"radixFocus":void 0).begin:0,O.p=z,w.caretPos={begin:z};var U=[],q=w.caretPos;if(T.forEach(function(Y,Q){if(Y!==void 0){var J=new M.Event("_checkval");J.key=Y,E+=Y;var R=d.getLastValidPosition.call(w,void 0,!0);(function(A,$){for(var j=c.getMaskTemplate.call(w,!0,0).slice(A,d.seekNext.call(w,A,!1,!1)).join("").replace(/'/g,""),B=j.indexOf($);B>0&&j[B-1]===" ";)B--;var G=B===0&&!d.isMask.call(w,A)&&(c.getTest.call(w,A).match.nativeDef===$.charAt(0)||c.getTest.call(w,A).match.static===!0&&c.getTest.call(w,A).match.nativeDef==="'"+$.charAt(0)||c.getTest.call(w,A).match.nativeDef===" "&&(c.getTest.call(w,A+1).match.nativeDef===$.charAt(0)||c.getTest.call(w,A+1).match.static===!0&&c.getTest.call(w,A+1).match.nativeDef==="'"+$.charAt(0)));if(!G&&B>0&&!d.isMask.call(w,A,!1,!0)){var Z=d.seekNext.call(w,A);w.caretPos.begin<Z&&(w.caretPos={begin:Z})}return G})(z,E)?F=_.EventHandlers.keypressEvent.call(w,J,!0,!1,k,R+1):(F=_.EventHandlers.keypressEvent.call(w,J,!0,!1,k,w.caretPos.begin))&&(z=w.caretPos.begin+1,E=""),F?(F.pos!==void 0&&O.validPositions[F.pos]&&O.validPositions[F.pos].match.static===!0&&O.validPositions[F.pos].alternation===void 0&&(U.push(F.pos),w.isRTL||(F.forwardPosition=F.pos+1)),S.call(w,void 0,d.getBuffer.call(w),F.forwardPosition,J,!1),w.caretPos={begin:F.forwardPosition,end:F.forwardPosition},q=w.caretPos):O.validPositions[Q]===void 0&&T[Q]===c.getPlaceholder.call(w,Q)&&d.isMask.call(w,Q,!0)?w.caretPos.begin++:w.caretPos=q}}),U.length>0){var P,D,I=d.seekNext.call(w,-1,void 0,!1);if(!p.isComplete.call(w,d.getBuffer.call(w))&&U.length<=I||p.isComplete.call(w,d.getBuffer.call(w))&&U.length>0&&U.length!==I&&U[0]===0)for(var L=I;(P=U.shift())!==void 0;){var W=new M.Event("_checkval");if((D=O.validPositions[P]).generatedInput=!0,W.key=D.input,(F=_.EventHandlers.keypressEvent.call(w,W,!0,!1,k,L))&&F.pos!==void 0&&F.pos!==P&&O.validPositions[F.pos]&&O.validPositions[F.pos].match.static===!0)U.push(F.pos);else if(!F)break;L++}}f&&S.call(w,b,d.getBuffer.call(w),F?F.forwardPosition:w.caretPos.begin,m||new M.Event("checkval"),m&&(m.type==="input"&&w.undoValue!==d.getBuffer.call(w).join("")||m.type==="paste")),C.skipOptionalPartCharacter=N}function S(b,f,k,g,m){var w=b?b.inputmask:this,O=w.opts,C=w.dependencyLib;if(g&&typeof O.onBeforeWrite=="function"){var M=O.onBeforeWrite.call(w,g,f,k,O);if(M){if(M.refreshFromBuffer){var T=M.refreshFromBuffer;p.refreshFromBuffer.call(w,T===!0?T:T.start,T.end,M.buffer||f),f=d.getBuffer.call(w,!0)}k!==void 0&&(k=M.caret!==void 0?M.caret:k)}}if(b!==void 0&&(b.inputmask._valueSet(f.join("")),k===void 0||g!==void 0&&g.type==="blur"||d.caret.call(w,b,k,void 0,void 0,g!==void 0&&g.type==="keydown"&&(g.key===l.keys.Delete||g.key===l.keys.Backspace)),m===!0)){var E=C(b),z=b.inputmask._valueGet();b.inputmask.skipInputEvent=!0,E.trigger("input"),setTimeout(function(){z===d.getBufferTemplate.call(w).join("")?E.trigger("cleared"):p.isComplete.call(w,f)===!0&&E.trigger("complete")},0)}}},2394:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var l=u(157),c=g(u(4963)),d=g(u(9380)),p=u(2391),v=u(4713),_=u(8711),h=u(7215),y=u(7760),x=u(9716),S=g(u(7392)),b=g(u(3976)),f=g(u(8741));function k(T){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},k(T)}function g(T){return T&&T.__esModule?T:{default:T}}var m=d.default.document,w="_inputmask_opts";function O(T,E,z){if(f.default){if(!(this instanceof O))return new O(T,E,z);this.dependencyLib=c.default,this.el=void 0,this.events={},this.maskset=void 0,z!==!0&&(Object.prototype.toString.call(T)==="[object Object]"?E=T:(E=E||{},T&&(E.alias=T)),this.opts=c.default.extend(!0,{},this.defaults,E),this.noMasksCache=E&&E.definitions!==void 0,this.userOptions=E||{},C(this.opts.alias,E,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}}function C(T,E,z){var F=O.prototype.aliases[T];return F?(F.alias&&C(F.alias,void 0,z),c.default.extend(!0,z,F),c.default.extend(!0,z,E),!0):(z.mask===null&&(z.mask=T),!1)}O.prototype={dataAttribute:"data-inputmask",defaults:b.default,definitions:S.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(T){var E=this;return typeof T=="string"&&(T=m.getElementById(T)||m.querySelectorAll(T)),(T=T.nodeName?[T]:Array.isArray(T)?T:[].slice.call(T)).forEach(function(z,F){var N=c.default.extend(!0,{},E.opts);if(function(q,P,D,I){function L(A,$){var j=I===""?A:I+"-"+A;($=$!==void 0?$:q.getAttribute(j))!==null&&(typeof $=="string"&&(A.indexOf("on")===0?$=d.default[$]:$==="false"?$=!1:$==="true"&&($=!0)),D[A]=$)}if(P.importDataAttributes===!0){var W,Y,Q,J,R=q.getAttribute(I);if(R&&R!==""&&(R=R.replace(/'/g,'"'),Y=JSON.parse("{"+R+"}")),Y){for(J in Q=void 0,Y)if(J.toLowerCase()==="alias"){Q=Y[J];break}}for(W in L("alias",Q),D.alias&&C(D.alias,D,P),P){if(Y){for(J in Q=void 0,Y)if(J.toLowerCase()===W.toLowerCase()){Q=Y[J];break}}L(W,Q)}}return c.default.extend(!0,P,D),(q.dir==="rtl"||P.rightAlign)&&(q.style.textAlign="right"),(q.dir==="rtl"||P.numericInput)&&(q.dir="ltr",q.removeAttribute("dir"),P.isRTL=!0),Object.keys(D).length}(z,N,c.default.extend(!0,{},E.userOptions),E.dataAttribute)){var U=(0,p.generateMaskSet)(N,E.noMasksCache);U!==void 0&&(z.inputmask!==void 0&&(z.inputmask.opts.autoUnmask=!0,z.inputmask.remove()),z.inputmask=new O(void 0,void 0,!0),z.inputmask.opts=N,z.inputmask.noMasksCache=E.noMasksCache,z.inputmask.userOptions=c.default.extend(!0,{},E.userOptions),z.inputmask.el=z,z.inputmask.$el=(0,c.default)(z),z.inputmask.maskset=U,c.default.data(z,w,E.userOptions),l.mask.call(z.inputmask))}}),T&&T[0]&&T[0].inputmask||this},option:function(T,E){return typeof T=="string"?this.opts[T]:k(T)==="object"?(c.default.extend(this.userOptions,T),this.el&&E!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(T){if(this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||T!==void 0){var E=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,T,this.opts)||T).split("");y.checkVal.call(this,void 0,!1,!1,E),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,_.getBuffer.call(this),0,this.opts)}return y.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){c.default.data(this.el,w,null);var T=this.opts.autoUnmask?(0,y.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);T!==_.getBufferTemplate.call(this).join("")?this._valueSet(T,this.opts.autoUnmask):this._valueSet(""),x.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):m.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?_.getBufferTemplate.call(this).reverse():_.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),h.isComplete.call(this,_.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var T=v.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(E){return E.mask!==T||(T=E,!1)}),T}return this.maskset.metadata},isValid:function(T){if(this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache),T){var E=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,T,this.opts)||T).split("");y.checkVal.call(this,void 0,!0,!1,E)}else T=this.isRTL?_.getBuffer.call(this).slice().reverse().join(""):_.getBuffer.call(this).join("");for(var z=_.getBuffer.call(this),F=_.determineLastRequiredPosition.call(this),N=z.length-1;N>F&&!_.isMask.call(this,N);N--);return z.splice(F,N+1-F),h.isComplete.call(this,z)&&T===(this.isRTL?_.getBuffer.call(this).slice().reverse().join(""):_.getBuffer.call(this).join(""))},format:function(T,E){this.maskset=this.maskset||(0,p.generateMaskSet)(this.opts,this.noMasksCache);var z=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,T,this.opts)||T).split("");y.checkVal.call(this,void 0,!0,!1,z);var F=this.isRTL?_.getBuffer.call(this).slice().reverse().join(""):_.getBuffer.call(this).join("");return E?{value:F,metadata:this.getmetadata()}:F},setValue:function(T){this.el&&(0,c.default)(this.el).trigger("setvalue",[T])},analyseMask:p.analyseMask},O.extendDefaults=function(T){c.default.extend(!0,O.prototype.defaults,T)},O.extendDefinitions=function(T){c.default.extend(!0,O.prototype.definitions,T)},O.extendAliases=function(T){c.default.extend(!0,O.prototype.aliases,T)},O.format=function(T,E,z){return O(E).format(T,z)},O.unmask=function(T,E){return O(E).unmaskedvalue(T)},O.isValid=function(T,E){return O(E).isValid(T)},O.remove=function(T){typeof T=="string"&&(T=m.getElementById(T)||m.querySelectorAll(T)),(T=T.nodeName?[T]:T).forEach(function(E){E.inputmask&&E.inputmask.remove()})},O.setValue=function(T,E){typeof T=="string"&&(T=m.getElementById(T)||m.querySelectorAll(T)),(T=T.nodeName?[T]:T).forEach(function(z){z.inputmask?z.inputmask.setValue(E):(0,c.default)(z).trigger("setvalue",[E])})},O.dependencyLib=c.default,d.default.Inputmask=O;var M=O;o.default=M},5296:function(s,o,u){function l(g){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},l(g)}var c=b(u(9380)),d=b(u(2394)),p=b(u(8741));function v(g){var m=y();return function(){var w,O=S(g);if(m){var C=S(this).constructor;w=Reflect.construct(O,arguments,C)}else w=O.apply(this,arguments);return function(M,T){if(T&&(l(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(M)}(this,w)}}function _(g){var m=typeof Map=="function"?new Map:void 0;return _=function(w){if(w===null||(O=w,Function.toString.call(O).indexOf("[native code]")===-1))return w;var O;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(m!==void 0){if(m.has(w))return m.get(w);m.set(w,C)}function C(){return h(w,arguments,S(this).constructor)}return C.prototype=Object.create(w.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),x(C,w)},_(g)}function h(g,m,w){return h=y()?Reflect.construct.bind():function(O,C,M){var T=[null];T.push.apply(T,C);var E=new(Function.bind.apply(O,T));return M&&x(E,M.prototype),E},h.apply(null,arguments)}function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x(g,m){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,O){return w.__proto__=O,w},x(g,m)}function S(g){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(m){return m.__proto__||Object.getPrototypeOf(m)},S(g)}function b(g){return g&&g.__esModule?g:{default:g}}var f=c.default.document;if(p.default&&f&&f.head&&f.head.attachShadow&&c.default.customElements&&c.default.customElements.get("input-mask")===void 0){var k=function(g){(function(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(M&&M.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),M&&x(C,M)})(O,g);var m,w=v(O);function O(){var C;(function(N,U){if(!(N instanceof U))throw new TypeError("Cannot call a class as a function")})(this,O);var M=(C=w.call(this)).getAttributeNames(),T=C.attachShadow({mode:"closed"}),E=f.createElement("input");for(var z in E.type="text",T.appendChild(E),M)Object.prototype.hasOwnProperty.call(M,z)&&E.setAttribute(M[z],C.getAttribute(M[z]));var F=new d.default;return F.dataAttribute="",F.mask(E),E.inputmask.shadowRoot=T,C}return m=O,Object.defineProperty(m,"prototype",{writable:!1}),m}(_(HTMLElement));c.default.customElements.define("input-mask",k)}},2839:function(s,o){function u(v,_){return function(h){if(Array.isArray(h))return h}(v)||function(h,y){var x=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(x!=null){var S,b,f,k,g=[],m=!0,w=!1;try{if(f=(x=x.call(h)).next,y===0){if(Object(x)!==x)return;m=!1}else for(;!(m=(S=f.call(x)).done)&&(g.push(S.value),g.length!==y);m=!0);}catch(O){w=!0,b=O}finally{try{if(!m&&x.return!=null&&(k=x.return(),Object(k)!==k))return}finally{if(w)throw b}}return g}}(v,_)||function(h,y){if(h){if(typeof h=="string")return l(h,y);var x=Object.prototype.toString.call(h).slice(8,-1);if(x==="Object"&&h.constructor&&(x=h.constructor.name),x==="Map"||x==="Set")return Array.from(h);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return l(h,y)}}(v,_)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
286
286
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l(v,_){(_==null||_>v.length)&&(_=v.length);for(var h=0,y=new Array(_);h<_;h++)y[h]=v[h];return y}Object.defineProperty(o,"__esModule",{value:!0}),o.keys=o.keyCode=void 0,o.toKey=function(v,_){return d[v]||(_?String.fromCharCode(v):String.fromCharCode(v).toLowerCase())},o.toKeyCode=function(v){return c[v]};var c={AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,BACKSPACE_SAFARI:127,CapsLock:20,Delete:46,End:35,Enter:13,Escape:27,Home:36,Insert:45,PageDown:34,PageUp:33,Space:32,Tab:9,c:67,x:88,z:90,Shift:16,Control:17,Alt:18,Pause:19,Meta_LEFT:91,Meta_RIGHT:92,ContextMenu:93,Process:229,Unidentified:229,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};o.keyCode=c;var d=Object.entries(c).reduce(function(v,_){var h=u(_,2),y=h[0],x=h[1];return v[x]=v[x]===void 0?y:v[x],v},{}),p=Object.entries(c).reduce(function(v,_){var h=u(_,2),y=h[0];return h[1],v[y]=y==="Space"?" ":y,v},{});o.keys=p},2391:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.analyseMask=function(h,y,x){var S,b,f,k,g,m,w=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,O=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,C=!1,M=new c.default,T=[],E=[],z=!1;function F(j,B,G){G=G!==void 0?G:j.matches.length;var Z=j.matches[G-1];if(y){if(B.indexOf("[")===0||C&&/\\d|\\s|\\w|\\p/i.test(B)||B==="."){var te=x.casing?"i":"";/^\\p\{.*}$/i.test(B)&&(te+="u"),j.matches.splice(G++,0,{fn:new RegExp(B,te),static:!1,optionality:!1,newBlockMarker:Z===void 0?"master":Z.def!==B,casing:null,def:B,placeholder:void 0,nativeDef:B})}else C&&(B=B[B.length-1]),B.split("").forEach(function(le,he){Z=j.matches[G-1],j.matches.splice(G++,0,{fn:/[a-z]/i.test(x.staticDefinitionSymbol||le)?new RegExp("["+(x.staticDefinitionSymbol||le)+"]",x.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:Z===void 0?"master":Z.def!==le&&Z.static!==!0,casing:null,def:x.staticDefinitionSymbol||le,placeholder:x.staticDefinitionSymbol!==void 0?le:void 0,nativeDef:(C?"'":"")+le})});C=!1}else{var re=x.definitions&&x.definitions[B]||x.usePrototypeDefinitions&&d.default.prototype.definitions[B];re&&!C?j.matches.splice(G++,0,{fn:re.validator?typeof re.validator=="string"?new RegExp(re.validator,x.casing?"i":""):new function(){this.test=re.validator}:new RegExp("."),static:re.static||!1,optionality:re.optional||!1,defOptionality:re.optional||!1,newBlockMarker:Z===void 0||re.optional?"master":Z.def!==(re.definitionSymbol||B),casing:re.casing,def:re.definitionSymbol||B,placeholder:re.placeholder,nativeDef:B,generated:re.generated}):(j.matches.splice(G++,0,{fn:/[a-z]/i.test(x.staticDefinitionSymbol||B)?new RegExp("["+(x.staticDefinitionSymbol||B)+"]",x.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:Z===void 0?"master":Z.def!==B&&Z.static!==!0,casing:null,def:x.staticDefinitionSymbol||B,placeholder:x.staticDefinitionSymbol!==void 0?B:void 0,nativeDef:(C?"'":"")+B}),C=!1)}}function N(){if(T.length>0){if(F(k=T[T.length-1],b),k.isAlternator){g=T.pop();for(var j=0;j<g.matches.length;j++)g.matches[j].isGroup&&(g.matches[j].isGroup=!1);T.length>0?(k=T[T.length-1]).matches.push(g):M.matches.push(g)}}else F(M,b)}function U(j){var B=new c.default(!0);return B.openGroup=!1,B.matches=j,B}function q(){if((f=T.pop()).openGroup=!1,f!==void 0)if(T.length>0){if((k=T[T.length-1]).matches.push(f),k.isAlternator){for(var j=(g=T.pop()).matches[0].matches?g.matches[0].matches.length:1,B=0;B<g.matches.length;B++)g.matches[B].isGroup=!1,g.matches[B].alternatorGroup=!1,x.keepStatic===null&&j<(g.matches[B].matches?g.matches[B].matches.length:1)&&(x.keepStatic=!0),j=g.matches[B].matches?g.matches[B].matches.length:1;T.length>0?(k=T[T.length-1]).matches.push(g):M.matches.push(g)}}else M.matches.push(f);else N()}function P(j){var B=j.pop();return B.isQuantifier&&(B=U([j.pop(),B])),B}for(y&&(x.optionalmarker[0]=void 0,x.optionalmarker[1]=void 0);S=y?O.exec(h):w.exec(h);){if(b=S[0],y){switch(b.charAt(0)){case"?":b="{0,1}";break;case"+":case"*":b="{"+b+"}";break;case"|":if(T.length===0){var D=U(M.matches);D.openGroup=!0,T.push(D),M.matches=[],z=!0}}switch(b){case"\\d":b="[0-9]";break;case"\\p":b+=O.exec(h)[0],b+=O.exec(h)[0]}}if(C)N();else switch(b.charAt(0)){case"$":case"^":y||N();break;case x.escapeChar:C=!0,y&&N();break;case x.optionalmarker[1]:case x.groupmarker[1]:q();break;case x.optionalmarker[0]:T.push(new c.default(!1,!0));break;case x.groupmarker[0]:T.push(new c.default(!0));break;case x.quantifiermarker[0]:var I=new c.default(!1,!1,!0),L=(b=b.replace(/[{}?]/g,"")).split("|"),W=L[0].split(","),Y=isNaN(W[0])?W[0]:parseInt(W[0]),Q=W.length===1?Y:isNaN(W[1])?W[1]:parseInt(W[1]),J=isNaN(L[1])?L[1]:parseInt(L[1]);Y!=="*"&&Y!=="+"||(Y=Q==="*"?0:1),I.quantifier={min:Y,max:Q,jit:J};var R=T.length>0?T[T.length-1].matches:M.matches;(S=R.pop()).isGroup||(S=U([S])),R.push(S),R.push(I);break;case x.alternatormarker:if(T.length>0){var A=(k=T[T.length-1]).matches[k.matches.length-1];m=k.openGroup&&(A.matches===void 0||A.isGroup===!1&&A.isAlternator===!1)?T.pop():P(k.matches)}else m=P(M.matches);if(m.isAlternator)T.push(m);else if(m.alternatorGroup?(g=T.pop(),m.alternatorGroup=!1):g=new c.default(!1,!1,!1,!0),g.matches.push(m),T.push(g),m.openGroup){m.openGroup=!1;var $=new c.default(!0);$.alternatorGroup=!0,T.push($)}break;default:N()}}for(z&&q();T.length>0;)f=T.pop(),M.matches.push(f);return M.matches.length>0&&(function j(B){B&&B.matches&&B.matches.forEach(function(G,Z){var te=B.matches[Z+1];(te===void 0||te.matches===void 0||te.isQuantifier===!1)&&G&&G.isGroup&&(G.isGroup=!1,y||(F(G,x.groupmarker[0],0),G.openGroup!==!0&&F(G,x.groupmarker[1]))),j(G)})}(M),E.push(M)),(x.numericInput||x.isRTL)&&function j(B){for(var G in B.matches=B.matches.reverse(),B.matches)if(Object.prototype.hasOwnProperty.call(B.matches,G)){var Z=parseInt(G);if(B.matches[G].isQuantifier&&B.matches[Z+1]&&B.matches[Z+1].isGroup){var te=B.matches[G];B.matches.splice(G,1),B.matches.splice(Z+1,0,te)}B.matches[G].matches!==void 0?B.matches[G]=j(B.matches[G]):B.matches[G]=((re=B.matches[G])===x.optionalmarker[0]?re=x.optionalmarker[1]:re===x.optionalmarker[1]?re=x.optionalmarker[0]:re===x.groupmarker[0]?re=x.groupmarker[1]:re===x.groupmarker[1]&&(re=x.groupmarker[0]),re)}var re;return B}(E[0]),E},o.generateMaskSet=function(h,y){var x;function S(k,g){var m=g.repeat,w=g.groupmarker,O=g.quantifiermarker,C=g.keepStatic;if(m>0||m==="*"||m==="+"){var M=m==="*"?0:m==="+"?1:m;k=w[0]+k+w[1]+O[0]+M+","+m+O[1]}if(C===!0){var T=k.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));T&&T.forEach(function(E,z){var F=function(q,P){return function(D){if(Array.isArray(D))return D}(q)||function(D,I){var L=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(L!=null){var W,Y,Q,J,R=[],A=!0,$=!1;try{if(Q=(L=L.call(D)).next,I===0){if(Object(L)!==L)return;A=!1}else for(;!(A=(W=Q.call(L)).done)&&(R.push(W.value),R.length!==I);A=!0);}catch(j){$=!0,Y=j}finally{try{if(!A&&L.return!=null&&(J=L.return(),Object(J)!==J))return}finally{if($)throw Y}}return R}}(q,P)||function(D,I){if(D){if(typeof D=="string")return v(D,I);var L=Object.prototype.toString.call(D).slice(8,-1);if(L==="Object"&&D.constructor&&(L=D.constructor.name),L==="Map"||L==="Set")return Array.from(D);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return v(D,I)}}(q,P)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
287
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(E.split("["),2),N=F[0],U=F[1];U=U.replace("]",""),k=k.replace(new RegExp("".concat((0,p.default)(N),"\\[").concat((0,p.default)(U),"\\]")),N.charAt(0)===U.charAt(0)?"(".concat(N,"|").concat(N).concat(U,")"):"".concat(N,"[").concat(U,"]"))})}return k}function b(k,g,m){var w,O,C=!1;return k!==null&&k!==""||((C=m.regex!==null)?k=(k=m.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(C=!0,k=".*")),k.length===1&&m.greedy===!1&&m.repeat!==0&&(m.placeholder=""),k=S(k,m),O=C?"regex_"+m.regex:m.numericInput?k.split("").reverse().join(""):k,m.keepStatic!==null&&(O="ks_"+m.keepStatic+O),d.default.prototype.masksCache[O]===void 0||y===!0?(w={mask:k,maskToken:d.default.prototype.analyseMask(k,C,m),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:g,maskLength:void 0,jitOffset:{}},y!==!0&&(d.default.prototype.masksCache[O]=w,w=l.default.extend(!0,{},d.default.prototype.masksCache[O]))):w=l.default.extend(!0,{},d.default.prototype.masksCache[O]),w}if(typeof h.mask=="function"&&(h.mask=h.mask(h)),Array.isArray(h.mask)){if(h.mask.length>1){h.keepStatic===null&&(h.keepStatic=!0);var f=h.groupmarker[0];return(h.isRTL?h.mask.reverse():h.mask).forEach(function(k){f.length>1&&(f+=h.alternatormarker),k.mask!==void 0&&typeof k.mask!="function"?f+=k.mask:f+=k}),b(f+=h.groupmarker[1],h.mask,h)}h.mask=h.mask.pop()}return x=h.mask&&h.mask.mask!==void 0&&typeof h.mask.mask!="function"?b(h.mask.mask,h.mask,h):b(h.mask,h.mask,h),h.keepStatic===null&&(h.keepStatic=!1),x};var l=_(u(4963)),c=_(u(9695)),d=_(u(2394)),p=_(u(7184));function v(h,y){(y==null||y>h.length)&&(y=h.length);for(var x=0,S=new Array(y);x<y;x++)S[x]=h[x];return S}function _(h){return h&&h.__esModule?h:{default:h}}},157:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.mask=function(){var y=this,x=this.opts,S=this.el,b=this.dependencyLib;p.EventRuler.off(S);var f=function(m,w){m.tagName.toLowerCase()!=="textarea"&&w.ignorables.push(l.keys.Enter);var O=m.getAttribute("type"),C=m.tagName.toLowerCase()==="input"&&w.supportsInputType.includes(O)||m.isContentEditable||m.tagName.toLowerCase()==="textarea";if(!C)if(m.tagName.toLowerCase()==="input"){var M=document.createElement("input");M.setAttribute("type",O),C=M.type==="text",M=null}else C="partial";return C!==!1?function(T){var E,z;function F(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():c.getLastValidPosition.call(y)!==-1||w.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&w.clearMaskOnLostFocus?(y.isRTL?d.clearOptionalTail.call(y,c.getBuffer.call(y).slice()).reverse():d.clearOptionalTail.call(y,c.getBuffer.call(y).slice())).join(""):E.call(this):"":E.call(this)}function N(q){z.call(this,q),this.inputmask&&(0,d.applyInputValue)(this,q)}if(!T.inputmask.__valueGet){if(w.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var U=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(T),"value"):void 0;U&&U.get&&U.set?(E=U.get,z=U.set,Object.defineProperty(T,"value",{get:F,set:N,configurable:!0})):T.tagName.toLowerCase()!=="input"&&(E=function(){return this.textContent},z=function(q){this.textContent=q},Object.defineProperty(T,"value",{get:F,set:N,configurable:!0}))}else document.__lookupGetter__&&T.__lookupGetter__("value")&&(E=T.__lookupGetter__("value"),z=T.__lookupSetter__("value"),T.__defineGetter__("value",F),T.__defineSetter__("value",N));T.inputmask.__valueGet=E,T.inputmask.__valueSet=z}T.inputmask._valueGet=function(q){return y.isRTL&&q!==!0?E.call(this.el).split("").reverse().join(""):E.call(this.el)},T.inputmask._valueSet=function(q,P){z.call(this.el,q==null?"":P!==!0&&y.isRTL?q.split("").reverse().join(""):q)},E===void 0&&(E=function(){return this.value},z=function(q){this.value=q},function(q){if(b.valHooks&&(b.valHooks[q]===void 0||b.valHooks[q].inputmaskpatch!==!0)){var P=b.valHooks[q]&&b.valHooks[q].get?b.valHooks[q].get:function(I){return I.value},D=b.valHooks[q]&&b.valHooks[q].set?b.valHooks[q].set:function(I,L){return I.value=L,I};b.valHooks[q]={get:function(I){if(I.inputmask){if(I.inputmask.opts.autoUnmask)return I.inputmask.unmaskedvalue();var L=P(I);return c.getLastValidPosition.call(y,void 0,void 0,I.inputmask.maskset.validPositions)!==-1||w.nullable!==!0?L:""}return P(I)},set:function(I,L){var W=D(I,L);return I.inputmask&&(0,d.applyInputValue)(I,L),W},inputmaskpatch:!0}}}(T.type),function(q){p.EventRuler.on(q,"mouseenter",function(){var P=this,D=P.inputmask._valueGet(!0);D!=(P.inputmask.isRTL?c.getBuffer.call(P.inputmask).slice().reverse():c.getBuffer.call(P.inputmask)).join("")&&(0,d.applyInputValue)(P,D)})}(T))}}(m):m.inputmask=void 0,C}(S,x);if(f!==!1){y.originalPlaceholder=S.placeholder,y.maxLength=S!==void 0?S.maxLength:void 0,y.maxLength===-1&&(y.maxLength=void 0),"inputMode"in S&&S.getAttribute("inputmode")===null&&(S.inputMode=x.inputmode,S.setAttribute("inputmode",x.inputmode)),f===!0&&(x.showMaskOnFocus=x.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(S.autocomplete)===-1,v.iphone&&(x.insertModeVisual=!1,S.setAttribute("autocorrect","off")),p.EventRuler.on(S,"submit",h.EventHandlers.submitEvent),p.EventRuler.on(S,"reset",h.EventHandlers.resetEvent),p.EventRuler.on(S,"blur",h.EventHandlers.blurEvent),p.EventRuler.on(S,"focus",h.EventHandlers.focusEvent),p.EventRuler.on(S,"invalid",h.EventHandlers.invalidEvent),p.EventRuler.on(S,"click",h.EventHandlers.clickEvent),p.EventRuler.on(S,"mouseleave",h.EventHandlers.mouseleaveEvent),p.EventRuler.on(S,"mouseenter",h.EventHandlers.mouseenterEvent),p.EventRuler.on(S,"paste",h.EventHandlers.pasteEvent),p.EventRuler.on(S,"cut",h.EventHandlers.cutEvent),p.EventRuler.on(S,"complete",x.oncomplete),p.EventRuler.on(S,"incomplete",x.onincomplete),p.EventRuler.on(S,"cleared",x.oncleared),x.inputEventOnly!==!0&&p.EventRuler.on(S,"keydown",h.EventHandlers.keyEvent),(v.mobile||x.inputEventOnly)&&S.removeAttribute("maxLength"),p.EventRuler.on(S,"input",h.EventHandlers.inputFallBackEvent)),p.EventRuler.on(S,"setvalue",h.EventHandlers.setValueEvent),c.getBufferTemplate.call(y).join(""),y.undoValue=y._valueGet(!0);var k=(S.inputmask.shadowRoot||S.ownerDocument).activeElement;if(S.inputmask._valueGet(!0)!==""||x.clearMaskOnLostFocus===!1||k===S){(0,d.applyInputValue)(S,S.inputmask._valueGet(!0),x);var g=c.getBuffer.call(y).slice();_.isComplete.call(y,g)===!1&&x.clearIncomplete&&c.resetMaskSet.call(y),x.clearMaskOnLostFocus&&k!==S&&(c.getLastValidPosition.call(y)===-1?g=[]:d.clearOptionalTail.call(y,g)),(x.clearMaskOnLostFocus===!1||x.showMaskOnFocus&&k===S||S.inputmask._valueGet(!0)!=="")&&(0,d.writeBuffer)(S,g),k===S&&c.caret.call(y,S,c.seekNext.call(y,c.getLastValidPosition.call(y)))}}};var l=u(2839),c=u(8711),d=u(7760),p=u(9716),v=u(9845),_=u(7215),h=u(6030)},9695:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(u,l,c,d){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=l||!1,this.isQuantifier=c||!1,this.isAlternator=d||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(s,o){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),l=u.length>>>0;if(l===0)return!1;for(var c=0|o,d=Math.max(c>=0?c:l-Math.abs(c),0);d<l;){if(u[d]===s)return!0;d++}return!1}})},9302:function(){var s=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),l=Object.keys;Object.entries||(Object.entries=function(c){return s(l(c),function(d,p){return u(d,typeof p=="string"&&o(c,p)?[[p,c[p]]]:[])},[])})},7149:function(){function s(o){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},s(o)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=s("test".__proto__)==="object"?function(o){return o.__proto__}:function(o){return o.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(s,o){return typeof o!="number"&&(o=0),!(o+s.length>this.length)&&this.indexOf(s,o)!==-1})},8711:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.caret=function(y,x,S,b,f){var k,g=this,m=this.opts;if(x===void 0)return"selectionStart"in y&&"selectionEnd"in y?(x=y.selectionStart,S=y.selectionEnd):window.getSelection?(k=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==y&&k.commonAncestorContainer!==y||(x=k.startOffset,S=k.endOffset):document.selection&&document.selection.createRange&&(S=(x=0-(k=document.selection.createRange()).duplicate().moveStart("character",-y.inputmask._valueGet().length))+k.text.length),{begin:b?x:h.call(g,x),end:b?S:h.call(g,S)};if(Array.isArray(x)&&(S=g.isRTL?x[0]:x[1],x=g.isRTL?x[1]:x[0]),x.begin!==void 0&&(S=g.isRTL?x.begin:x.end,x=g.isRTL?x.end:x.begin),typeof x=="number"){x=b?x:h.call(g,x),S=typeof(S=b?S:h.call(g,S))=="number"?S:x;var w=parseInt(((y.ownerDocument.defaultView||window).getComputedStyle?(y.ownerDocument.defaultView||window).getComputedStyle(y,null):y.currentStyle).fontSize)*S;if(y.scrollLeft=w>y.scrollWidth?w:0,y.inputmask.caretPos={begin:x,end:S},m.insertModeVisual&&m.insertMode===!1&&x===S&&(f||S++),y===(y.inputmask.shadowRoot||y.ownerDocument).activeElement)if("setSelectionRange"in y)y.setSelectionRange(x,S);else if(window.getSelection){if(k=document.createRange(),y.firstChild===void 0||y.firstChild===null){var O=document.createTextNode("");y.appendChild(O)}k.setStart(y.firstChild,x<y.inputmask._valueGet().length?x:y.inputmask._valueGet().length),k.setEnd(y.firstChild,S<y.inputmask._valueGet().length?S:y.inputmask._valueGet().length),k.collapse(!0);var C=window.getSelection();C.removeAllRanges(),C.addRange(k)}else y.createTextRange&&((k=y.createTextRange()).collapse(!0),k.moveEnd("character",S),k.moveStart("character",x),k.select())}},o.determineLastRequiredPosition=function(y){var x,S,b=this,f=b.maskset,k=b.dependencyLib,g=l.getMaskTemplate.call(b,!0,p.call(b),!0,!0),m=g.length,w=p.call(b),O={},C=f.validPositions[w],M=C!==void 0?C.locator.slice():void 0;for(x=w+1;x<g.length;x++)M=(S=l.getTestTemplate.call(b,x,M,x-1)).locator.slice(),O[x]=k.extend(!0,{},S);var T=C&&C.alternation!==void 0?C.locator[C.alternation]:void 0;for(x=m-1;x>w&&((S=O[x]).match.optionality||S.match.optionalQuantifier&&S.match.newBlockMarker||T&&(T!==O[x].locator[C.alternation]&&S.match.static!=1||S.match.static===!0&&S.locator[C.alternation]&&c.checkAlternationMatch.call(b,S.locator[C.alternation].toString().split(","),T.toString().split(","))&&l.getTests.call(b,x)[0].def!==""))&&g[x]===l.getPlaceholder.call(b,x,S.match);x--)m--;return y?{l:m,def:O[m]?O[m].match:void 0}:m},o.determineNewCaretPosition=function(y,x,S){var b=this,f=b.maskset,k=b.opts;if(x&&(b.isRTL?y.end=y.begin:y.begin=y.end),y.begin===y.end){switch(S=S||k.positionCaretOnClick){case"none":break;case"select":y={begin:0,end:d.call(b).length};break;case"ignore":y.end=y.begin=_.call(b,p.call(b));break;case"radixFocus":if(b.clicked>1&&f.validPositions.length==0)break;if(function(z){if(k.radixPoint!==""&&k.digits!==0){var F=f.validPositions;if(F[z]===void 0||F[z].input===l.getPlaceholder.call(b,z)){if(z<_.call(b,-1))return!0;var N=d.call(b).indexOf(k.radixPoint);if(N!==-1){for(var U=0,q=F.length;U<q;U++)if(F[U]&&N<U&&F[U].input!==l.getPlaceholder.call(b,U))return!1;return!0}}}return!1}(y.begin)){var g=d.call(b).join("").indexOf(k.radixPoint);y.end=y.begin=k.numericInput?_.call(b,g):g;break}default:var m=y.begin,w=p.call(b,m,!0),O=_.call(b,w!==-1||v.call(b,0)?w:-1);if(m<=O)y.end=y.begin=v.call(b,m,!1,!0)?m:_.call(b,m);else{var C=f.validPositions[w],M=l.getTestTemplate.call(b,O,C?C.match.locator:void 0,C),T=l.getPlaceholder.call(b,O,M.match);if(T!==""&&d.call(b)[O]!==T&&M.match.optionalQuantifier!==!0&&M.match.newBlockMarker!==!0||!v.call(b,O,k.keepStatic,!0)&&M.match.def===T){var E=_.call(b,O);(m>=E||m===O)&&(O=E)}y.end=y.begin=O}}return y}},o.getBuffer=d,o.getBufferTemplate=function(){var y=this.maskset;return y._buffer===void 0&&(y._buffer=l.getMaskTemplate.call(this,!1,1),y.buffer===void 0&&(y.buffer=y._buffer.slice())),y._buffer},o.getLastValidPosition=p,o.isMask=v,o.resetMaskSet=function(y){var x=this.maskset;x.buffer=void 0,y!==!0&&(x.validPositions=[],x.p=0)},o.seekNext=_,o.seekPrevious=function(y,x){var S=this,b=y-1;if(y<=0)return 0;for(;b>0&&(x===!0&&(l.getTest.call(S,b).match.newBlockMarker!==!0||!v.call(S,b,void 0,!0))||x!==!0&&!v.call(S,b,void 0,!0));)b--;return b},o.translatePosition=h;var l=u(4713),c=u(7215);function d(y){var x=this,S=x.maskset;return S.buffer!==void 0&&y!==!0||(S.buffer=l.getMaskTemplate.call(x,!0,p.call(x),!0),S._buffer===void 0&&(S._buffer=S.buffer.slice())),S.buffer}function p(y,x,S){var b=this.maskset,f=-1,k=-1,g=S||b.validPositions;y===void 0&&(y=-1);for(var m=0,w=g.length;m<w;m++)g[m]&&(x||g[m].generatedInput!==!0)&&(m<=y&&(f=m),m>=y&&(k=m));return f===-1||f==y?k:k==-1||y-f<k-y?f:k}function v(y,x,S){var b=this,f=this.maskset,k=l.getTestTemplate.call(b,y).match;if(k.def===""&&(k=l.getTest.call(b,y).match),k.static!==!0)return k.fn;if(S===!0&&f.validPositions[y]!==void 0&&f.validPositions[y].generatedInput!==!0)return!0;if(x!==!0&&y>-1){if(S){var g=l.getTests.call(b,y);return g.length>1+(g[g.length-1].match.def===""?1:0)}var m=l.determineTestTemplate.call(b,y,l.getTests.call(b,y)),w=l.getPlaceholder.call(b,y,m.match);return m.match.def!==w}return!1}function _(y,x,S){var b=this;S===void 0&&(S=!0);for(var f=y+1;l.getTest.call(b,f).match.def!==""&&(x===!0&&(l.getTest.call(b,f).match.newBlockMarker!==!0||!v.call(b,f,void 0,!0))||x!==!0&&!v.call(b,f,void 0,S));)f++;return f}function h(y){var x=this.opts,S=this.el;return!this.isRTL||typeof y!="number"||x.greedy&&x.placeholder===""||!S||(y=this._valueGet().length-y)<0&&(y=0),y}},4713:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.determineTestTemplate=h,o.getDecisionTaker=p,o.getMaskTemplate=function(b,f,k,g,m){var w=this,O=this.opts,C=this.maskset,M=O.greedy;m&&O.greedy&&(O.greedy=!1,w.maskset.tests={}),f=f||0;var T,E,z,F,N=[],U=0;do{if(b===!0&&C.validPositions[U])E=(z=m&&C.validPositions[U].match.optionality&&C.validPositions[U+1]===void 0&&(C.validPositions[U].generatedInput===!0||C.validPositions[U].input==O.skipOptionalPartCharacter&&U>0)?h.call(w,U,S.call(w,U,T,U-1)):C.validPositions[U]).match,T=z.locator.slice(),N.push(k===!0?z.input:k===!1?E.nativeDef:v.call(w,U,E));else{E=(z=_.call(w,U,T,U-1)).match,T=z.locator.slice();var q=g!==!0&&(O.jitMasking!==!1?O.jitMasking:E.jit);(F=(F&&E.static&&E.def!==O.groupSeparator&&E.fn===null||C.validPositions[U-1]&&E.static&&E.def!==O.groupSeparator&&E.fn===null)&&C.tests[U])||q===!1||q===void 0||typeof q=="number"&&isFinite(q)&&q>U?N.push(k===!1?E.nativeDef:v.call(w,N.length,E)):F=!1}U++}while(E.static!==!0||E.def!==""||f>U);return N[N.length-1]===""&&N.pop(),k===!1&&C.maskLength!==void 0||(C.maskLength=U-1),O.greedy=M,N},o.getPlaceholder=v,o.getTest=y,o.getTestTemplate=_,o.getTests=S,o.isSubsetOf=x;var l,c=(l=u(2394))&&l.__esModule?l:{default:l};function d(b,f){var k=(b.alternation!=null?b.mloc[p(b)]:b.locator).join("");if(k!=="")for(;k.length<f;)k+="0";return k}function p(b){var f=b.locator[b.alternation];return typeof f=="string"&&f.length>0&&(f=f.split(",")[0]),f!==void 0?f.toString():""}function v(b,f,k){var g=this.opts,m=this.maskset;if((f=f||y.call(this,b).match).placeholder!==void 0||k===!0)return typeof f.placeholder=="function"?f.placeholder(g):f.placeholder;if(f.static===!0){if(b>-1&&m.validPositions[b]===void 0){var w,O=S.call(this,b),C=[];if(O.length>1+(O[O.length-1].match.def===""?1:0)){for(var M=0;M<O.length;M++)if(O[M].match.def!==""&&O[M].match.optionality!==!0&&O[M].match.optionalQuantifier!==!0&&(O[M].match.static===!0||w===void 0||O[M].match.fn.test(w.match.def,m,b,!0,g)!==!1)&&(C.push(O[M]),O[M].match.static===!0&&(w=O[M]),C.length>1&&/[0-9a-bA-Z]/.test(C[0].match.def)))return g.placeholder.charAt(b%g.placeholder.length)}}return f.def}return g.placeholder.charAt(b%g.placeholder.length)}function _(b,f,k){return this.maskset.validPositions[b]||h.call(this,b,S.call(this,b,f&&f.slice(),k))}function h(b,f){var k=this.opts,g=0,m=function(F,N){var U=0,q=!1;return N.forEach(function(P){P.match.optionality&&(U!==0&&U!==P.match.optionality&&(q=!0),(U===0||U>P.match.optionality)&&(U=P.match.optionality))}),U&&(F==0||N.length==1?U=0:q||(U=0)),U}(b,f);b=b>0?b-1:0;var w,O,C,M=d(y.call(this,b));k.greedy&&f.length>1&&f[f.length-1].match.def===""&&(g=1);for(var T=0;T<f.length-g;T++){var E=f[T];w=d(E,M.length);var z=Math.abs(w-M);(O===void 0||w!==""&&z<O||C&&!k.greedy&&C.match.optionality&&C.match.optionality-m>0&&C.match.newBlockMarker==="master"&&(!E.match.optionality||E.match.optionality-m<1||!E.match.newBlockMarker)||C&&!k.greedy&&C.match.optionalQuantifier&&!E.match.optionalQuantifier)&&(O=z,C=E)}return C}function y(b,f){var k=this.maskset;return k.validPositions[b]?k.validPositions[b]:(f||S.call(this,b))[0]}function x(b,f,k){function g(m){for(var w,O=[],C=-1,M=0,T=m.length;M<T;M++)if(m.charAt(M)==="-")for(w=m.charCodeAt(M+1);++C<w;)O.push(String.fromCharCode(C));else C=m.charCodeAt(M),O.push(m.charAt(M));return O.join("")}return b.match.def===f.match.nativeDef||!(!(k.regex||b.match.fn instanceof RegExp&&f.match.fn instanceof RegExp)||b.match.static===!0||f.match.static===!0)&&g(f.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(g(b.match.fn.toString().replace(/[[\]/]/g,"")))!==-1}function S(b,f,k){var g,m,w=this,O=this.dependencyLib,C=this.maskset,M=this.opts,T=this.el,E=C.maskToken,z=f?k:0,F=f?f.slice():[0],N=[],U=!1,q=f?f.join(""):"";function P(Y,Q,J,R){function A(B,G,Z){function te(ie,ue){var ne=ue.matches.indexOf(ie)===0;return ne||ue.matches.every(function(pe,be){return pe.isQuantifier===!0?ne=te(ie,ue.matches[be-1]):Object.prototype.hasOwnProperty.call(pe,"matches")&&(ne=te(ie,pe)),!ne}),ne}function re(ie,ue,ne){var pe,be;if((C.tests[ie]||C.validPositions[ie])&&(C.tests[ie]||[C.validPositions[ie]]).every(function(Ie,ct){if(Ie.mloc[ue])return pe=Ie,!1;var De=ne!==void 0?ne:Ie.alternation,dt=Ie.locator[De]!==void 0?Ie.locator[De].toString().indexOf(ue):-1;return(be===void 0||dt<be)&&dt!==-1&&(pe=Ie,be=dt),!0}),pe){var Pe=pe.locator[pe.alternation];return(pe.mloc[ue]||pe.mloc[Pe]||pe.locator).slice((ne!==void 0?ne:pe.alternation)+1)}return ne!==void 0?re(ie,ue):void 0}function le(ie,ue){var ne=ie.alternation,pe=ue===void 0||ne===ue.alternation&&ie.locator[ne].toString().indexOf(ue.locator[ne])===-1;if(!pe&&ne>ue.alternation){for(var be=ue.alternation;be<ne;be++)if(ie.locator[be]!==ue.locator[be]){ne=be,pe=!0;break}}if(pe){ie.mloc=ie.mloc||{};var Pe=ie.locator[ne];if(Pe!==void 0){if(typeof Pe=="string"&&(Pe=Pe.split(",")[0]),ie.mloc[Pe]===void 0&&(ie.mloc[Pe]=ie.locator.slice()),ue!==void 0){for(var Ie in ue.mloc)typeof Ie=="string"&&(Ie=Ie.split(",")[0]),ie.mloc[Ie]===void 0&&(ie.mloc[Ie]=ue.mloc[Ie]);ie.locator[ne]=Object.keys(ie.mloc).join(",")}return!0}ie.alternation=void 0}return!1}function he(ie,ue){if(ie.locator.length!==ue.locator.length)return!1;for(var ne=ie.alternation+1;ne<ie.locator.length;ne++)if(ie.locator[ne]!==ue.locator[ne])return!1;return!0}if(z>b+M._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+C.mask;if(z===b&&B.matches===void 0){if(N.push({match:B,locator:G.reverse(),cd:q,mloc:{}}),!B.optionality||Z!==void 0||!(M.definitions&&M.definitions[B.nativeDef]&&M.definitions[B.nativeDef].optional||c.default.prototype.definitions[B.nativeDef]&&c.default.prototype.definitions[B.nativeDef].optional))return!0;U=!0,z=b}else if(B.matches!==void 0){if(B.isGroup&&Z!==B)return function(){if(B=A(Y.matches[Y.matches.indexOf(B)+1],G,Z))return!0}();if(B.isOptional)return function(){var ie=B,ue=N.length;if(B=P(B,Q,G,Z),N.length>0){if(N.forEach(function(ne,pe){pe>=ue&&(ne.match.optionality=ne.match.optionality?ne.match.optionality+1:1)}),g=N[N.length-1].match,Z!==void 0||!te(g,ie))return B;U=!0,z=b}}();if(B.isAlternator)return function(){w.hasAlternator=!0;var ie,ue,ne,pe=B,be=[],Pe=N.slice(),Ie=G.length,ct=!1,De=Q.length>0?Q.shift():-1;if(De===-1||typeof De=="string"){var dt,_t=z,ck=Q.slice(),rr=[];if(typeof De=="string")rr=De.split(",");else for(dt=0;dt<pe.matches.length;dt++)rr.push(dt.toString());if(C.excludes[b]!==void 0){for(var JJ=rr.slice(),lf=0,ZJ=C.excludes[b].length;lf<ZJ;lf++){var dk=C.excludes[b][lf].toString().split(":");G.length==dk[1]&&rr.splice(rr.indexOf(dk[0]),1)}rr.length===0&&(delete C.excludes[b],rr=JJ)}(M.keepStatic===!0||isFinite(parseInt(M.keepStatic))&&_t>=M.keepStatic)&&(rr=rr.slice(0,1));for(var Su=0;Su<rr.length;Su++){dt=parseInt(rr[Su]),N=[],Q=typeof De=="string"&&re(z,dt,Ie)||ck.slice();var Ds=pe.matches[dt];if(Ds&&A(Ds,[dt].concat(G),Z))B=!0;else if(Su===0&&(ct=!0),Ds&&Ds.matches&&Ds.matches.length>pe.matches[0].matches.length)break;ie=N.slice(),z=_t,N=[];for(var uf=0;uf<ie.length;uf++){var it=ie[uf],ku=!1;it.match.jit=it.match.jit||ct,it.alternation=it.alternation||Ie,le(it);for(var cf=0;cf<be.length;cf++){var xr=be[cf];if(typeof De!="string"||it.alternation!==void 0&&rr.includes(it.locator[it.alternation].toString())){if(it.match.nativeDef===xr.match.nativeDef){ku=!0,le(xr,it);break}if(x(it,xr,M)){le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it));break}if(x(xr,it,M)){le(xr,it);break}if(ne=xr,(ue=it).match.static===!0&&ne.match.static!==!0&&ne.match.fn.test(ue.match.def,C,b,!1,M,!1)){he(it,xr)||T.inputmask.userOptions.keepStatic!==void 0?le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it)):M.keepStatic=!0;break}}}ku||be.push(it)}}N=Pe.concat(be),z=b,U=N.length>0,B=be.length>0,Q=ck.slice()}else B=A(pe.matches[De]||Y.matches[De],[De].concat(G),Z);if(B)return!0}();if(B.isQuantifier&&Z!==Y.matches[Y.matches.indexOf(B)-1])return function(){for(var ie=B,ue=!1,ne=Q.length>0?Q.shift():0;ne<(isNaN(ie.quantifier.max)?ne+1:ie.quantifier.max)&&z<=b;ne++){var pe=Y.matches[Y.matches.indexOf(ie)-1];if(B=A(pe,[ne].concat(G),pe)){if(N.forEach(function(be,Pe){(g=D(pe,be.match)?be.match:N[N.length-1].match).optionalQuantifier=ne>=ie.quantifier.min,g.jit=(ne+1)*(pe.matches.indexOf(g)+1)>ie.quantifier.jit,g.optionalQuantifier&&te(g,pe)&&(U=!0,z=b,M.greedy&&C.validPositions[b-1]==null&&ne>ie.quantifier.min&&["*","+"].indexOf(ie.quantifier.max)!=-1&&(N.pop(),q=void 0),ue=!0,B=!1),!ue&&g.jit&&(C.jitOffset[b]=pe.matches.length-pe.matches.indexOf(g))}),ue)break;return!0}}}();if(B=P(B,Q,G,Z))return!0}else z++}for(var $=Q.length>0?Q.shift():0;$<Y.matches.length;$++)if(Y.matches[$].isQuantifier!==!0){var j=A(Y.matches[$],[$].concat(J),R);if(j&&z===b)return j;if(z>b)break}}function D(Y,Q){var J=Y.matches.indexOf(Q)!=-1;return J||Y.matches.forEach(function(R,A){R.matches===void 0||J||(J=D(R,Q))}),J}if(b>-1){if(f===void 0){for(var I,L=b-1;(I=C.validPositions[L]||C.tests[L])===void 0&&L>-1;)L--;I!==void 0&&L>-1&&(F=function(Y,Q){var J,R=[];return Array.isArray(Q)||(Q=[Q]),Q.length>0&&(Q[0].alternation===void 0||M.keepStatic===!0?(R=h.call(w,Y,Q.slice()).locator.slice()).length===0&&(R=Q[0].locator.slice()):Q.forEach(function(A){A.def!==""&&(R.length===0?(J=A.alternation,R=A.locator.slice()):A.locator[J]&&R[J].toString().indexOf(A.locator[J])===-1&&(R[J]+=","+A.locator[J]))})),R}(L,I),q=F.join(""),z=L)}if(C.tests[b]&&C.tests[b][0].cd===q)return C.tests[b];for(var W=F.shift();W<E.length&&!(P(E[W],F,[W])&&z===b||z>b);W++);}return(N.length===0||U)&&N.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:q}),f!==void 0&&C.tests[b]?m=O.extend(!0,[],N):(C.tests[b]=O.extend(!0,[],N),m=C.tests[b]),N.forEach(function(Y){Y.match.optionality=Y.match.defOptionality||!1}),m}},7215:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.alternate=v,o.checkAlternationMatch=function(g,m,w){for(var O,C=this.opts.greedy?m:m.slice(0,1),M=!1,T=w!==void 0?w.split(","):[],E=0;E<T.length;E++)(O=g.indexOf(T[E]))!==-1&&g.splice(O,1);for(var z=0;z<g.length;z++)if(C.includes(g[z])){M=!0;break}return M},o.handleRemove=function(g,m,w,O,C){var M=this,T=this.maskset,E=this.opts;if((E.numericInput||M.isRTL)&&(m===c.keys.Backspace?m=c.keys.Delete:m===c.keys.Delete&&(m=c.keys.Backspace),M.isRTL)){var z=w.end;w.end=w.begin,w.begin=z}var F,N=d.getLastValidPosition.call(M,void 0,!0);if(w.end>=d.getBuffer.call(M).length&&N>=w.end&&(w.end=N+1),m===c.keys.Backspace?w.end-w.begin<1&&(w.begin=d.seekPrevious.call(M,w.begin)):m===c.keys.Delete&&w.begin===w.end&&(w.end=d.isMask.call(M,w.end,!0,!0)?w.end+1:d.seekNext.call(M,w.end)+1),(F=k.call(M,w))!==!1){if(O!==!0&&E.keepStatic!==!1||E.regex!==null&&l.getTest.call(M,w.begin).match.def.indexOf("|")!==-1){var U=v.call(M,!0);if(U){var q=U.caret!==void 0?U.caret:U.pos?d.seekNext.call(M,U.pos.begin?U.pos.begin:U.pos):d.getLastValidPosition.call(M,-1,!0);(m!==c.keys.Delete||w.begin>q)&&w.begin}}O!==!0&&(T.p=m===c.keys.Delete?w.begin+F:w.begin,T.p=d.determineNewCaretPosition.call(M,{begin:T.p,end:T.p},!1,E.insertMode===!1&&m===c.keys.Backspace?"none":void 0).begin)}},o.isComplete=h,o.isSelection=y,o.isValid=x,o.refreshFromBuffer=b,o.revalidateMask=k;var l=u(4713),c=u(2839),d=u(8711),p=u(6030);function v(g,m,w,O,C,M){var T,E,z,F,N,U,q,P,D,I,L,W=this,Y=this.dependencyLib,Q=this.opts,J=W.maskset,R=Y.extend(!0,[],J.validPositions),A=Y.extend(!0,{},J.tests),$=!1,j=!1,B=C!==void 0?C:d.getLastValidPosition.call(W);if(M&&(I=M.begin,L=M.end,M.begin>M.end&&(I=M.end,L=M.begin)),B===-1&&C===void 0)T=0,E=(F=l.getTest.call(W,T)).alternation;else for(;B>=0;B--)if((z=J.validPositions[B])&&z.alternation!==void 0){if(B<=(g||0)&&F&&F.locator[z.alternation]!==z.locator[z.alternation])break;T=B,E=J.validPositions[T].alternation,F=z}if(E!==void 0){q=parseInt(T),J.excludes[q]=J.excludes[q]||[],g!==!0&&J.excludes[q].push((0,l.getDecisionTaker)(F)+":"+F.alternation);var G=[],Z=-1;for(N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)Z===-1&&g<=N&&m!==void 0&&(G.push(m),Z=G.length-1),(U=J.validPositions[N])&&U.generatedInput!==!0&&(M===void 0||N<I||N>=L)&&G.push(U.input),delete J.validPositions[N];for(Z===-1&&m!==void 0&&(G.push(m),Z=G.length-1);J.excludes[q]!==void 0&&J.excludes[q].length<10;){for(J.tests={},d.resetMaskSet.call(W,!0),$=!0,N=0;N<G.length&&(P=$.caret||d.getLastValidPosition.call(W,void 0,!0)+1,D=G[N],$=x.call(W,P,D,!1,O,!0));N++)N===Z&&(j=$),g==1&&$&&(j={caretPos:N});if($)break;if(d.resetMaskSet.call(W),F=l.getTest.call(W,q),J.validPositions=Y.extend(!0,[],R),J.tests=Y.extend(!0,{},A),!J.excludes[q]){j=v.call(W,g,m,w,O,q-1,M);break}var te=(0,l.getDecisionTaker)(F);if(J.excludes[q].indexOf(te+":"+F.alternation)!==-1){j=v.call(W,g,m,w,O,q-1,M);break}for(J.excludes[q].push(te+":"+F.alternation),N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)delete J.validPositions[N]}}return j&&Q.keepStatic===!1||delete J.excludes[q],j}function _(g,m,w){var O=this.opts,C=this.maskset;switch(O.casing||m.casing){case"upper":g=g.toUpperCase();break;case"lower":g=g.toLowerCase();break;case"title":var M=C.validPositions[w-1];g=w===0||M&&M.input===String.fromCharCode(c.keyCode.Space)?g.toUpperCase():g.toLowerCase();break;default:if(typeof O.casing=="function"){var T=Array.prototype.slice.call(arguments);T.push(C.validPositions),g=O.casing.apply(this,T)}}return g}function h(g){var m=this,w=this.opts,O=this.maskset;if(typeof w.isComplete=="function")return w.isComplete(g,w);if(w.repeat!=="*"){var C=!1,M=d.determineLastRequiredPosition.call(m,!0),T=d.seekPrevious.call(m,M.l);if(M.def===void 0||M.def.newBlockMarker||M.def.optionality||M.def.optionalQuantifier){C=!0;for(var E=0;E<=T;E++){var z=l.getTestTemplate.call(m,E).match;if(z.static!==!0&&O.validPositions[E]===void 0&&z.optionality!==!0&&z.optionalQuantifier!==!0||z.static===!0&&g[E]!==l.getPlaceholder.call(m,E,z)){C=!1;break}}}return C}}function y(g){var m=this.opts.insertMode?0:1;return this.isRTL?g.begin-g.end>m:g.end-g.begin>m}function x(g,m,w,O,C,M,T){var E=this,z=this.dependencyLib,F=this.opts,N=E.maskset;w=w===!0;var U=g;function q($){if($!==void 0){if($.remove!==void 0&&(Array.isArray($.remove)||($.remove=[$.remove]),$.remove.sort(function(B,G){return E.isRTL?B.pos-G.pos:G.pos-B.pos}).forEach(function(B){k.call(E,{begin:B,end:B+1})}),$.remove=void 0),$.insert!==void 0&&(Array.isArray($.insert)||($.insert=[$.insert]),$.insert.sort(function(B,G){return E.isRTL?G.pos-B.pos:B.pos-G.pos}).forEach(function(B){B.c!==""&&x.call(E,B.pos,B.c,B.strict===void 0||B.strict,B.fromIsValid!==void 0?B.fromIsValid:O)}),$.insert=void 0),$.refreshFromBuffer&&$.buffer){var j=$.refreshFromBuffer;b.call(E,j===!0?j:j.start,j.end,$.buffer),$.refreshFromBuffer=void 0}$.rewritePosition!==void 0&&(U=$.rewritePosition,$=!0)}return $}function P($,j,B){var G=!1;return l.getTests.call(E,$).every(function(Z,te){var re=Z.match;if(d.getBuffer.call(E,!0),(G=(!re.jit||N.validPositions[d.seekPrevious.call(E,$)]!==void 0)&&(re.fn!=null?re.fn.test(j,N,$,B,F,y.call(E,g)):(j===re.def||j===F.skipOptionalPartCharacter)&&re.def!==""&&{c:l.getPlaceholder.call(E,$,re,!0)||re.def,pos:$}))!==!1){var le=G.c!==void 0?G.c:j,he=$;return le=le===F.skipOptionalPartCharacter&&re.static===!0?l.getPlaceholder.call(E,$,re,!0)||re.def:le,(G=q(G))!==!0&&G.pos!==void 0&&G.pos!==$&&(he=G.pos),G!==!0&&G.pos===void 0&&G.c===void 0||k.call(E,g,z.extend({},Z,{input:_.call(E,le,re,he)}),O,he)===!1&&(G=!1),!1}return!0}),G}g.begin!==void 0&&(U=E.isRTL?g.end:g.begin);var D=!0,I=z.extend(!0,{},N.validPositions);if(F.keepStatic===!1&&N.excludes[U]!==void 0&&C!==!0&&O!==!0)for(var L=U;L<(E.isRTL?g.begin:g.end);L++)N.excludes[L]!==void 0&&(N.excludes[L]=void 0,delete N.tests[L]);if(typeof F.preValidation=="function"&&O!==!0&&M!==!0&&(D=q(D=F.preValidation.call(E,d.getBuffer.call(E),U,m,y.call(E,g),F,N,g,w||C))),D===!0){if(D=P(U,m,w),(!w||O===!0)&&D===!1&&M!==!0){var W=N.validPositions[U];if(!W||W.match.static!==!0||W.match.def!==m&&m!==F.skipOptionalPartCharacter){if(F.insertMode||N.validPositions[d.seekNext.call(E,U)]===void 0||g.end>U){var Y=!1;if(N.jitOffset[U]&&N.validPositions[d.seekNext.call(E,U)]===void 0&&(D=x.call(E,U+N.jitOffset[U],m,!0,!0))!==!1&&(C!==!0&&(D.caret=U),Y=!0),g.end>U&&(N.validPositions[U]=void 0),!Y&&!d.isMask.call(E,U,F.keepStatic&&U===0)){for(var Q=U+1,J=d.seekNext.call(E,U,!1,U!==0);Q<=J;Q++)if((D=P(Q,m,w))!==!1){D=f.call(E,U,D.pos!==void 0?D.pos:Q)||D,U=Q;break}}}}else D={caret:d.seekNext.call(E,U)}}E.hasAlternator&&C!==!0&&!w&&(D===!1&&F.keepStatic&&(h.call(E,d.getBuffer.call(E))||U===0)?D=v.call(E,U,m,w,O,void 0,g):(y.call(E,g)&&N.tests[U]&&N.tests[U].length>1&&F.keepStatic||D==1&&F.numericInput!==!0&&N.tests[U]&&N.tests[U].length>1&&d.getLastValidPosition.call(E,void 0,!0)>U)&&(D=v.call(E,!0))),D===!0&&(D={pos:U})}if(typeof F.postValidation=="function"&&O!==!0&&M!==!0){var R=F.postValidation.call(E,d.getBuffer.call(E,!0),g.begin!==void 0?E.isRTL?g.end:g.begin:g,m,D,F,N,w,T);R!==void 0&&(D=R===!0?D:R)}D&&D.pos===void 0&&(D.pos=U),D===!1||M===!0?(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I)):f.call(E,void 0,U,!0);var A=q(D);return E.maxLength!==void 0&&d.getBuffer.call(E).length>E.maxLength&&!O&&(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I),A=!1),A}function S(g,m,w){for(var O=this.maskset,C=!1,M=l.getTests.call(this,g),T=0;T<M.length;T++){if(M[T].match&&(M[T].match.nativeDef===m.match[w.shiftPositions?"def":"nativeDef"]&&(!w.shiftPositions||!m.match.static)||M[T].match.nativeDef===m.match.nativeDef||w.regex&&!M[T].match.static&&M[T].match.fn.test(m.input,O,g,!1,w))){C=!0;break}if(M[T].match&&M[T].match.def===m.match.nativeDef){C=void 0;break}}return C===!1&&O.jitOffset[g]!==void 0&&(C=S.call(this,g+O.jitOffset[g],m,w)),C}function b(g,m,w){var O,C,M=this,T=this.maskset,E=this.opts,z=this.dependencyLib,F=E.skipOptionalPartCharacter,N=M.isRTL?w.slice().reverse():w;if(E.skipOptionalPartCharacter="",g===!0)d.resetMaskSet.call(M),T.tests={},g=0,m=w.length,C=d.determineNewCaretPosition.call(M,{begin:0,end:0},!1).begin;else{for(O=g;O<m;O++)delete T.validPositions[O];C=g}var U=new z.Event("keypress");for(O=g;O<m;O++){U.key=N[O].toString(),M.ignorable=!1;var q=p.EventHandlers.keypressEvent.call(M,U,!0,!1,!1,C);q!==!1&&q!==void 0&&(C=q.forwardPosition)}E.skipOptionalPartCharacter=F}function f(g,m,w){var O=this,C=this.maskset,M=this.dependencyLib;if(g===void 0)for(g=m-1;g>0&&!C.validPositions[g];g--);for(var T=g;T<m;T++)if(C.validPositions[T]===void 0&&!d.isMask.call(O,T,!1)&&(T==0?l.getTest.call(O,T):C.validPositions[T-1])){var E=l.getTests.call(O,T).slice();E[E.length-1].match.def===""&&E.pop();var z,F=l.determineTestTemplate.call(O,T,E);if(F&&(F.match.jit!==!0||F.match.newBlockMarker==="master"&&(z=C.validPositions[T+1])&&z.match.optionalQuantifier===!0)&&((F=M.extend({},F,{input:l.getPlaceholder.call(O,T,F.match,!0)||F.match.def})).generatedInput=!0,k.call(O,T,F,!0),w!==!0)){var N=C.validPositions[m].input;return C.validPositions[m]=void 0,x.call(O,m,N,!0,!0)}}}function k(g,m,w,O){var C=this,M=this.maskset,T=this.opts,E=this.dependencyLib;function z(R,A,$){var j=A[R];if(j!==void 0&&j.match.static===!0&&j.match.optionality!==!0&&(A[0]===void 0||A[0].alternation===void 0)){var B=$.begin<=R-1?A[R-1]&&A[R-1].match.static===!0&&A[R-1]:A[R-1],G=$.end>R+1?A[R+1]&&A[R+1].match.static===!0&&A[R+1]:A[R+1];return B&&G}return!1}var F=0,N=g.begin!==void 0?g.begin:g,U=g.end!==void 0?g.end:g,q=!0;if(g.begin>g.end&&(N=g.end,U=g.begin),O=O!==void 0?O:N,w===void 0&&(N!==U||T.insertMode&&M.validPositions[O]!==void 0||m===void 0||m.match.optionalQuantifier||m.match.optionality)){var P,D=E.extend(!0,{},M.validPositions),I=d.getLastValidPosition.call(C,void 0,!0);for(M.p=N,P=I;P>=N;P--)delete M.validPositions[P],m===void 0&&delete M.tests[P+1];var L,W,Y=O,Q=Y;for(m&&(M.validPositions[O]=E.extend(!0,{},m),Q++,Y++),P=m?U:U-1;P<=I;P++){if((L=D[P])!==void 0&&L.generatedInput!==!0&&(P>=U||P>=N&&z(P,D,{begin:N,end:U}))){for(;l.getTest.call(C,Q).match.def!=="";){if((W=S.call(C,Q,L,T))!==!1||L.match.def==="+"){L.match.def==="+"&&d.getBuffer.call(C,!0);var J=x.call(C,Q,L.input,L.match.def!=="+",!0);if(q=J!==!1,Y=(J.pos||Q)+1,!q&&W)break}else q=!1;if(q){m===void 0&&L.match.static&&P===g.begin&&F++;break}if(!q&&d.getBuffer.call(C),Q>M.maskLength)break;Q++}l.getTest.call(C,Q).match.def==""&&(q=!1),Q=Y}if(!q)break}if(!q)return M.validPositions=E.extend(!0,[],D),d.resetMaskSet.call(C,!0),!1}else m&&l.getTest.call(C,O).match.cd===m.match.cd&&(M.validPositions[O]=E.extend(!0,{},m));return d.resetMaskSet.call(C,!0),F}}},a={};function i(s){var o=a[s];if(o!==void 0)return o.exports;var u=a[s]={exports:{}};return r[s](u,u.exports,i),u.exports}var n={};return function(){var s,o=n;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,i(7149),i(3194),i(9302),i(4013),i(3851),i(219),i(207),i(5296);var u=((s=i(2394))&&s.__esModule?s:{default:s}).default;o.default=u}(),n}()})})(cb);var fW=cb.exports;const db=ar(fW),VX="",hW={props:{value:null,decimal:{type:String,default:","},thousands:{type:String,default:"."},prefix:{type:String,default:"$ "},suffix:{type:String,default:" USD"},precision:{type:Number,default:2}},computed:{currencyInput(){return this.$refs.currencyInput}},data(){return{currencyValue:"",unformattedValue:null}},watch:{value:{handler(t){t!=this.unformattedValue&&this.currencyInput.inputmask.setValue(t)}},currencyValue(){this.unformattedValue=parseFloat(this.currencyInput.inputmask.unmaskedvalue().replace(",",".")),this.$emit("input",this.unformattedValue||0)}},methods:{loadMasks(){const t=this.suffix.trim()==="INR"?"indianns":"currency";db(t,{digits:this.precision,prefix:this.prefix,suffix:this.suffix,radixPoint:this.decimal,groupSeparator:this.thousands}).mask(this.currencyInput),this.value&&this.currencyInput.inputmask.setValue(this.value)},keyup(t){this.currencyValue!==t.target.value&&(this.currencyValue=t.target.value)}},mounted(){this.loadMasks()}};var mW=function(){var e=this,r=e._self._c;return r("input",{directives:[{name:"model",rawName:"v-model",value:e.currencyValue,expression:"currencyValue"}],ref:"currencyInput",staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.currencyValue},on:{keyup:e.keyup,input:function(a){a.target.composing||(e.currencyValue=a.target.value)}}})},gW=[],vW=oe(hW,mW,gW,!1,null,null,null,null);const bW=vW.exports,yW=vn(),pb={currency:"inputmasked",date:"the-mask",datetime:"the-mask",percentage:"inputmasked",custom:"the-mask"},fb={currency:"getCurrencyFormat",date:"getDateFormat",datetime:"getDatetimeFormat",percentage:"getPercentageFormat",custom:"getCustomFormatter"},xW={components:{TheMask:pW.TheMask,Inputmasked:bW,RequiredAsterisk:ee.RequiredAsterisk},mixins:[yW,ee.ValidationMixin],inheritAttrs:!1,props:["value","label","error","helper","name","controlClass","dataMask","config","transientData","formConfig","form-watchers"],data(){const{dataFormat:t,customFormatter:e}=this.config,r=t==="int"||t==="float"?15:null,a=(()=>{const p=this.dataMask&&this.dataMask?this.dataMask&&this.dataMask.format:null,v=p?p.match(/[.,]/g):[".",","];v.length===0?v.push("","."):v.length===1&&v.push(v[0]==="."?",":".");const _=p?(p.split(v[1])[1]||"").length:2;return{decimal:v[1],thousands:v[0],prefix:this.dataMask&&this.dataMask.symbol?`${this.dataMask.symbol} `:"",suffix:this.dataMask&&this.dataMask.code?` ${this.dataMask.code}`:"",precision:_,masked:!1}})(),i={decimal:".",thousands:"",prefix:"",suffix:" %",precision:2,masked:!1},n={masked:!0,mask:this.getUserConfig().date_mask||this.getMask().date},s={masked:!0,mask:this.getUserConfig().datetime_mask||this.getMask().dateTime},o=(()=>e?pb.custom:pb[t]||"input")(),u=(()=>{switch(t){case"int":return"number";case"float":return"number";case"email":return"email";case"password":return"password";default:return"text"}})(),l={masked:!0,mask:e};let c;return e?c=fb.custom:c=fb[t],{dataFormat:t,customFormatter:e,maxlength:r,getCurrencyFormat:a,getPercentageFormat:i,getDateFormat:n,getDatetimeFormat:s,componentType:o,dataType:u,getCustomFormatter:l,componentConfig:JSON.parse(JSON.stringify({...c?{getCurrencyFormat:a,getDateFormat:n,getDatetimeFormat:s,getPercentageFormat:i,getCustomFormatter:l}[c]:{},...this.$attrs})),validator:null,localValue:null,validationRules:{percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/"}}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},componentConfigComputed(){return JSON.parse(JSON.stringify(this.componentConfig))}},watch:{value(t){this.localValue!==t&&(this.localValue=t)},localValue(t){t!==this.value&&this.$emit("input",this.convertToData(t))}},mounted(){this.value!==void 0&&(this.localValue=this.value)},methods:{onChange(){this.$emit("change",this.convertToData(this.localValue))},getUserConfig(){return window.ProcessMaker&&window.ProcessMaker.user||{}},getUserDateFormat:ee.getUserDateFormat,getUserDateTimeFormat:ee.getUserDateTimeFormat,convertToData(t){if(this.customFormatter)t=t.replace(/[^\w]/g,"");else switch(this.dataFormat){case"string":t=t.toString();break;case"boolean":t=!!t;break;case"currency":case"percentage":case"float":t=parseFloat(t),isNaN(t)&&(t=null);break;case"int":t=parseInt(t),isNaN(t)&&(t=null);break;case"date":this.componentName==="FormDatePicker"&&(t=Ze.utc(t,[ee.getUserDateFormat(),Ze.ISO_8601],!0).toISOString().split(RegExp("T[0-9]"))[0]);break;case"datetime":this.componentName==="FormDatePicker"&&(t=Ze(t,[ee.getUserDateTimeFormat(),Ze.ISO_8601],!0).toISOString());break;case"array":break;default:t=t.toString();break}return t},convertFromData(t){return t},getMask(){return{date:["####-##-##"],dateTime:["####-##-## ##:##"]}}}};var SW=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.componentType!=="input"?r(e.componentType,e._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],tag:"component",staticClass:"form-control",class:e.classList,attrs:{name:e.name,type:"text"},on:{change:e.onChange},model:{value:e.localValue,callback:function(a){e.localValue=a},expression:"localValue"}},"component",e.componentConfigComputed,!1)):e.dataType==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"checkbox"},domProps:{checked:Array.isArray(e.localValue)?e._i(e.localValue,null)>-1:e.localValue},on:{change:[function(a){var i=e.localValue,n=a.target,s=!!n.checked;if(Array.isArray(i)){var o=null,u=e._i(i,o);n.checked?u<0&&(e.localValue=i.concat([o])):u>-1&&(e.localValue=i.slice(0,u).concat(i.slice(u+1)))}else e.localValue=s},e.onChange]}},"input",e.componentConfig,!1)):e.dataType==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"radio"},domProps:{checked:e._q(e.localValue,null)},on:{change:[function(a){e.localValue=null},e.onChange]}},"input",e.componentConfig,!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:e.dataType},domProps:{value:e.localValue},on:{change:e.onChange,input:function(a){a.target.composing||(e.localValue=a.target.value)}}},"input",e.componentConfig,!1)),e.validator&&e.validator.errorCount?e._l(e.validator.errors.all(),function(a,i){return r("div",{key:i,staticClass:"invalid-feedback"},e._l(a,function(n,s){return r("div",{key:s},[e._v(" "+e._s(n)+" ")])}),0)}):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],2)},kW=[],_W=oe(xW,SW,kW,!1,null,null,null,null);const Ba=_W.exports;var $d={exports:{}},hb={};function Hr(t){return{prev:null,next:null,data:t}}function Oi(t,e,r){var a;return Mi!==null?(a=Mi,Mi=Mi.cursor,a.prev=e,a.next=r,a.cursor=t.cursor):a={prev:e,next:r,cursor:t.cursor},t.cursor=a,a}function Ei(t){var e=t.cursor;t.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Mi,Mi=e}var Mi=null,ye=function(){this.cursor=null,this.head=null,this.tail=null};ye.createItem=Hr,ye.prototype.createItem=Hr,ye.prototype.updateCursors=function(t,e,r,a){for(var i=this.cursor;i!==null;)i.prev===t&&(i.prev=e),i.next===r&&(i.next=a),i=i.cursor},ye.prototype.getSize=function(){for(var t=0,e=this.head;e;)t++,e=e.next;return t},ye.prototype.fromArray=function(t){var e=null;this.head=null;for(var r=0;r<t.length;r++){var a=Hr(t[r]);e!==null?e.next=a:this.head=a,a.prev=e,e=a}return this.tail=e,this},ye.prototype.toArray=function(){for(var t=this.head,e=[];t;)e.push(t.data),t=t.next;return e},ye.prototype.toJSON=ye.prototype.toArray,ye.prototype.isEmpty=function(){return this.head===null},ye.prototype.first=function(){return this.head&&this.head.data},ye.prototype.last=function(){return this.tail&&this.tail.data},ye.prototype.each=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,null,this.head);a.next!==null;)r=a.next,a.next=r.next,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEach=ye.prototype.each,ye.prototype.eachRight=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,this.tail,null);a.prev!==null;)r=a.prev,a.prev=r.prev,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEachRight=ye.prototype.eachRight,ye.prototype.reduce=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,null,this.head),n=e;i.next!==null;)a=i.next,i.next=a.next,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.reduceRight=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,this.tail,null),n=e;i.prev!==null;)a=i.prev,i.prev=a.prev,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.nextUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,null,t);i.next!==null&&(a=i.next,i.next=a.next,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.prevUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,t,null);i.prev!==null&&(a=i.prev,i.prev=a.prev,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.some=function(t,e){var r=this.head;for(e===void 0&&(e=this);r!==null;){if(t.call(e,r.data,r,this))return!0;r=r.next}return!1},ye.prototype.map=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)r.appendData(t.call(e,a.data,a,this)),a=a.next;return r},ye.prototype.filter=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)t.call(e,a.data,a,this)&&r.appendData(a.data),a=a.next;return r},ye.prototype.clear=function(){this.head=null,this.tail=null},ye.prototype.copy=function(){for(var t=new ye,e=this.head;e!==null;)t.insert(Hr(e.data)),e=e.next;return t},ye.prototype.prepend=function(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this},ye.prototype.prependData=function(t){return this.prepend(Hr(t))},ye.prototype.append=function(t){return this.insert(t)},ye.prototype.appendData=function(t){return this.insert(Hr(t))},ye.prototype.insert=function(t,e){if(e!=null)if(this.updateCursors(e.prev,t,e,t),e.prev===null){if(this.head!==e)throw new Error("before doesn't belong to list");this.head=t,e.prev=t,t.next=e,this.updateCursors(null,t)}else e.prev.next=t,t.prev=e.prev,e.prev=t,t.next=e;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this},ye.prototype.insertData=function(t,e){return this.insert(Hr(t),e)},ye.prototype.remove=function(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t},ye.prototype.push=function(t){this.insert(Hr(t))},ye.prototype.pop=function(){if(this.tail!==null)return this.remove(this.tail)},ye.prototype.unshift=function(t){this.prepend(Hr(t))},ye.prototype.shift=function(){if(this.head!==null)return this.remove(this.head)},ye.prototype.prependList=function(t){return this.insertList(t,this.head)},ye.prototype.appendList=function(t){return this.insertList(t)},ye.prototype.insertList=function(t,e){return t.head===null?this:(e!=null?(this.updateCursors(e.prev,t.tail,e,t.head),e.prev!==null?(e.prev.next=t.head,t.head.prev=e.prev):this.head=t.head,e.prev=t.tail,t.tail.next=e):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)},ye.prototype.replace=function(t,e){"head"in e?this.insertList(e,t):this.insert(e,t),this.remove(t)};var $i=ye,Pd=function(e,r){var a=Object.create(SyntaxError.prototype),i=new Error;return a.name=e,a.message=r,Object.defineProperty(a,"stack",{get:function(){return(i.stack||"").replace(/^(.+\n){1,3}/,e+": "+r+`
287
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(E.split("["),2),N=F[0],U=F[1];U=U.replace("]",""),k=k.replace(new RegExp("".concat((0,p.default)(N),"\\[").concat((0,p.default)(U),"\\]")),N.charAt(0)===U.charAt(0)?"(".concat(N,"|").concat(N).concat(U,")"):"".concat(N,"[").concat(U,"]"))})}return k}function b(k,g,m){var w,O,C=!1;return k!==null&&k!==""||((C=m.regex!==null)?k=(k=m.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(C=!0,k=".*")),k.length===1&&m.greedy===!1&&m.repeat!==0&&(m.placeholder=""),k=S(k,m),O=C?"regex_"+m.regex:m.numericInput?k.split("").reverse().join(""):k,m.keepStatic!==null&&(O="ks_"+m.keepStatic+O),d.default.prototype.masksCache[O]===void 0||y===!0?(w={mask:k,maskToken:d.default.prototype.analyseMask(k,C,m),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:g,maskLength:void 0,jitOffset:{}},y!==!0&&(d.default.prototype.masksCache[O]=w,w=l.default.extend(!0,{},d.default.prototype.masksCache[O]))):w=l.default.extend(!0,{},d.default.prototype.masksCache[O]),w}if(typeof h.mask=="function"&&(h.mask=h.mask(h)),Array.isArray(h.mask)){if(h.mask.length>1){h.keepStatic===null&&(h.keepStatic=!0);var f=h.groupmarker[0];return(h.isRTL?h.mask.reverse():h.mask).forEach(function(k){f.length>1&&(f+=h.alternatormarker),k.mask!==void 0&&typeof k.mask!="function"?f+=k.mask:f+=k}),b(f+=h.groupmarker[1],h.mask,h)}h.mask=h.mask.pop()}return x=h.mask&&h.mask.mask!==void 0&&typeof h.mask.mask!="function"?b(h.mask.mask,h.mask,h):b(h.mask,h.mask,h),h.keepStatic===null&&(h.keepStatic=!1),x};var l=_(u(4963)),c=_(u(9695)),d=_(u(2394)),p=_(u(7184));function v(h,y){(y==null||y>h.length)&&(y=h.length);for(var x=0,S=new Array(y);x<y;x++)S[x]=h[x];return S}function _(h){return h&&h.__esModule?h:{default:h}}},157:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.mask=function(){var y=this,x=this.opts,S=this.el,b=this.dependencyLib;p.EventRuler.off(S);var f=function(m,w){m.tagName.toLowerCase()!=="textarea"&&w.ignorables.push(l.keys.Enter);var O=m.getAttribute("type"),C=m.tagName.toLowerCase()==="input"&&w.supportsInputType.includes(O)||m.isContentEditable||m.tagName.toLowerCase()==="textarea";if(!C)if(m.tagName.toLowerCase()==="input"){var M=document.createElement("input");M.setAttribute("type",O),C=M.type==="text",M=null}else C="partial";return C!==!1?function(T){var E,z;function F(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():c.getLastValidPosition.call(y)!==-1||w.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&w.clearMaskOnLostFocus?(y.isRTL?d.clearOptionalTail.call(y,c.getBuffer.call(y).slice()).reverse():d.clearOptionalTail.call(y,c.getBuffer.call(y).slice())).join(""):E.call(this):"":E.call(this)}function N(q){z.call(this,q),this.inputmask&&(0,d.applyInputValue)(this,q)}if(!T.inputmask.__valueGet){if(w.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var U=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(T),"value"):void 0;U&&U.get&&U.set?(E=U.get,z=U.set,Object.defineProperty(T,"value",{get:F,set:N,configurable:!0})):T.tagName.toLowerCase()!=="input"&&(E=function(){return this.textContent},z=function(q){this.textContent=q},Object.defineProperty(T,"value",{get:F,set:N,configurable:!0}))}else document.__lookupGetter__&&T.__lookupGetter__("value")&&(E=T.__lookupGetter__("value"),z=T.__lookupSetter__("value"),T.__defineGetter__("value",F),T.__defineSetter__("value",N));T.inputmask.__valueGet=E,T.inputmask.__valueSet=z}T.inputmask._valueGet=function(q){return y.isRTL&&q!==!0?E.call(this.el).split("").reverse().join(""):E.call(this.el)},T.inputmask._valueSet=function(q,P){z.call(this.el,q==null?"":P!==!0&&y.isRTL?q.split("").reverse().join(""):q)},E===void 0&&(E=function(){return this.value},z=function(q){this.value=q},function(q){if(b.valHooks&&(b.valHooks[q]===void 0||b.valHooks[q].inputmaskpatch!==!0)){var P=b.valHooks[q]&&b.valHooks[q].get?b.valHooks[q].get:function(I){return I.value},D=b.valHooks[q]&&b.valHooks[q].set?b.valHooks[q].set:function(I,L){return I.value=L,I};b.valHooks[q]={get:function(I){if(I.inputmask){if(I.inputmask.opts.autoUnmask)return I.inputmask.unmaskedvalue();var L=P(I);return c.getLastValidPosition.call(y,void 0,void 0,I.inputmask.maskset.validPositions)!==-1||w.nullable!==!0?L:""}return P(I)},set:function(I,L){var W=D(I,L);return I.inputmask&&(0,d.applyInputValue)(I,L),W},inputmaskpatch:!0}}}(T.type),function(q){p.EventRuler.on(q,"mouseenter",function(){var P=this,D=P.inputmask._valueGet(!0);D!=(P.inputmask.isRTL?c.getBuffer.call(P.inputmask).slice().reverse():c.getBuffer.call(P.inputmask)).join("")&&(0,d.applyInputValue)(P,D)})}(T))}}(m):m.inputmask=void 0,C}(S,x);if(f!==!1){y.originalPlaceholder=S.placeholder,y.maxLength=S!==void 0?S.maxLength:void 0,y.maxLength===-1&&(y.maxLength=void 0),"inputMode"in S&&S.getAttribute("inputmode")===null&&(S.inputMode=x.inputmode,S.setAttribute("inputmode",x.inputmode)),f===!0&&(x.showMaskOnFocus=x.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(S.autocomplete)===-1,v.iphone&&(x.insertModeVisual=!1,S.setAttribute("autocorrect","off")),p.EventRuler.on(S,"submit",h.EventHandlers.submitEvent),p.EventRuler.on(S,"reset",h.EventHandlers.resetEvent),p.EventRuler.on(S,"blur",h.EventHandlers.blurEvent),p.EventRuler.on(S,"focus",h.EventHandlers.focusEvent),p.EventRuler.on(S,"invalid",h.EventHandlers.invalidEvent),p.EventRuler.on(S,"click",h.EventHandlers.clickEvent),p.EventRuler.on(S,"mouseleave",h.EventHandlers.mouseleaveEvent),p.EventRuler.on(S,"mouseenter",h.EventHandlers.mouseenterEvent),p.EventRuler.on(S,"paste",h.EventHandlers.pasteEvent),p.EventRuler.on(S,"cut",h.EventHandlers.cutEvent),p.EventRuler.on(S,"complete",x.oncomplete),p.EventRuler.on(S,"incomplete",x.onincomplete),p.EventRuler.on(S,"cleared",x.oncleared),x.inputEventOnly!==!0&&p.EventRuler.on(S,"keydown",h.EventHandlers.keyEvent),(v.mobile||x.inputEventOnly)&&S.removeAttribute("maxLength"),p.EventRuler.on(S,"input",h.EventHandlers.inputFallBackEvent)),p.EventRuler.on(S,"setvalue",h.EventHandlers.setValueEvent),c.getBufferTemplate.call(y).join(""),y.undoValue=y._valueGet(!0);var k=(S.inputmask.shadowRoot||S.ownerDocument).activeElement;if(S.inputmask._valueGet(!0)!==""||x.clearMaskOnLostFocus===!1||k===S){(0,d.applyInputValue)(S,S.inputmask._valueGet(!0),x);var g=c.getBuffer.call(y).slice();_.isComplete.call(y,g)===!1&&x.clearIncomplete&&c.resetMaskSet.call(y),x.clearMaskOnLostFocus&&k!==S&&(c.getLastValidPosition.call(y)===-1?g=[]:d.clearOptionalTail.call(y,g)),(x.clearMaskOnLostFocus===!1||x.showMaskOnFocus&&k===S||S.inputmask._valueGet(!0)!=="")&&(0,d.writeBuffer)(S,g),k===S&&c.caret.call(y,S,c.seekNext.call(y,c.getLastValidPosition.call(y)))}}};var l=u(2839),c=u(8711),d=u(7760),p=u(9716),v=u(9845),_=u(7215),h=u(6030)},9695:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(u,l,c,d){this.matches=[],this.openGroup=u||!1,this.alternatorGroup=!1,this.isGroup=u||!1,this.isOptional=l||!1,this.isQuantifier=c||!1,this.isAlternator=d||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(s,o){if(this==null)throw new TypeError('"this" is null or not defined');var u=Object(this),l=u.length>>>0;if(l===0)return!1;for(var c=0|o,d=Math.max(c>=0?c:l-Math.abs(c),0);d<l;){if(u[d]===s)return!0;d++}return!1}})},9302:function(){var s=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),u=Function.bind.call(Function.call,Array.prototype.concat),l=Object.keys;Object.entries||(Object.entries=function(c){return s(l(c),function(d,p){return u(d,typeof p=="string"&&o(c,p)?[[p,c[p]]]:[])},[])})},7149:function(){function s(o){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},s(o)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=s("test".__proto__)==="object"?function(o){return o.__proto__}:function(o){return o.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(s,o){return typeof o!="number"&&(o=0),!(o+s.length>this.length)&&this.indexOf(s,o)!==-1})},8711:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.caret=function(y,x,S,b,f){var k,g=this,m=this.opts;if(x===void 0)return"selectionStart"in y&&"selectionEnd"in y?(x=y.selectionStart,S=y.selectionEnd):window.getSelection?(k=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==y&&k.commonAncestorContainer!==y||(x=k.startOffset,S=k.endOffset):document.selection&&document.selection.createRange&&(S=(x=0-(k=document.selection.createRange()).duplicate().moveStart("character",-y.inputmask._valueGet().length))+k.text.length),{begin:b?x:h.call(g,x),end:b?S:h.call(g,S)};if(Array.isArray(x)&&(S=g.isRTL?x[0]:x[1],x=g.isRTL?x[1]:x[0]),x.begin!==void 0&&(S=g.isRTL?x.begin:x.end,x=g.isRTL?x.end:x.begin),typeof x=="number"){x=b?x:h.call(g,x),S=typeof(S=b?S:h.call(g,S))=="number"?S:x;var w=parseInt(((y.ownerDocument.defaultView||window).getComputedStyle?(y.ownerDocument.defaultView||window).getComputedStyle(y,null):y.currentStyle).fontSize)*S;if(y.scrollLeft=w>y.scrollWidth?w:0,y.inputmask.caretPos={begin:x,end:S},m.insertModeVisual&&m.insertMode===!1&&x===S&&(f||S++),y===(y.inputmask.shadowRoot||y.ownerDocument).activeElement)if("setSelectionRange"in y)y.setSelectionRange(x,S);else if(window.getSelection){if(k=document.createRange(),y.firstChild===void 0||y.firstChild===null){var O=document.createTextNode("");y.appendChild(O)}k.setStart(y.firstChild,x<y.inputmask._valueGet().length?x:y.inputmask._valueGet().length),k.setEnd(y.firstChild,S<y.inputmask._valueGet().length?S:y.inputmask._valueGet().length),k.collapse(!0);var C=window.getSelection();C.removeAllRanges(),C.addRange(k)}else y.createTextRange&&((k=y.createTextRange()).collapse(!0),k.moveEnd("character",S),k.moveStart("character",x),k.select())}},o.determineLastRequiredPosition=function(y){var x,S,b=this,f=b.maskset,k=b.dependencyLib,g=l.getMaskTemplate.call(b,!0,p.call(b),!0,!0),m=g.length,w=p.call(b),O={},C=f.validPositions[w],M=C!==void 0?C.locator.slice():void 0;for(x=w+1;x<g.length;x++)M=(S=l.getTestTemplate.call(b,x,M,x-1)).locator.slice(),O[x]=k.extend(!0,{},S);var T=C&&C.alternation!==void 0?C.locator[C.alternation]:void 0;for(x=m-1;x>w&&((S=O[x]).match.optionality||S.match.optionalQuantifier&&S.match.newBlockMarker||T&&(T!==O[x].locator[C.alternation]&&S.match.static!=1||S.match.static===!0&&S.locator[C.alternation]&&c.checkAlternationMatch.call(b,S.locator[C.alternation].toString().split(","),T.toString().split(","))&&l.getTests.call(b,x)[0].def!==""))&&g[x]===l.getPlaceholder.call(b,x,S.match);x--)m--;return y?{l:m,def:O[m]?O[m].match:void 0}:m},o.determineNewCaretPosition=function(y,x,S){var b=this,f=b.maskset,k=b.opts;if(x&&(b.isRTL?y.end=y.begin:y.begin=y.end),y.begin===y.end){switch(S=S||k.positionCaretOnClick){case"none":break;case"select":y={begin:0,end:d.call(b).length};break;case"ignore":y.end=y.begin=_.call(b,p.call(b));break;case"radixFocus":if(b.clicked>1&&f.validPositions.length==0)break;if(function(z){if(k.radixPoint!==""&&k.digits!==0){var F=f.validPositions;if(F[z]===void 0||F[z].input===l.getPlaceholder.call(b,z)){if(z<_.call(b,-1))return!0;var N=d.call(b).indexOf(k.radixPoint);if(N!==-1){for(var U=0,q=F.length;U<q;U++)if(F[U]&&N<U&&F[U].input!==l.getPlaceholder.call(b,U))return!1;return!0}}}return!1}(y.begin)){var g=d.call(b).join("").indexOf(k.radixPoint);y.end=y.begin=k.numericInput?_.call(b,g):g;break}default:var m=y.begin,w=p.call(b,m,!0),O=_.call(b,w!==-1||v.call(b,0)?w:-1);if(m<=O)y.end=y.begin=v.call(b,m,!1,!0)?m:_.call(b,m);else{var C=f.validPositions[w],M=l.getTestTemplate.call(b,O,C?C.match.locator:void 0,C),T=l.getPlaceholder.call(b,O,M.match);if(T!==""&&d.call(b)[O]!==T&&M.match.optionalQuantifier!==!0&&M.match.newBlockMarker!==!0||!v.call(b,O,k.keepStatic,!0)&&M.match.def===T){var E=_.call(b,O);(m>=E||m===O)&&(O=E)}y.end=y.begin=O}}return y}},o.getBuffer=d,o.getBufferTemplate=function(){var y=this.maskset;return y._buffer===void 0&&(y._buffer=l.getMaskTemplate.call(this,!1,1),y.buffer===void 0&&(y.buffer=y._buffer.slice())),y._buffer},o.getLastValidPosition=p,o.isMask=v,o.resetMaskSet=function(y){var x=this.maskset;x.buffer=void 0,y!==!0&&(x.validPositions=[],x.p=0)},o.seekNext=_,o.seekPrevious=function(y,x){var S=this,b=y-1;if(y<=0)return 0;for(;b>0&&(x===!0&&(l.getTest.call(S,b).match.newBlockMarker!==!0||!v.call(S,b,void 0,!0))||x!==!0&&!v.call(S,b,void 0,!0));)b--;return b},o.translatePosition=h;var l=u(4713),c=u(7215);function d(y){var x=this,S=x.maskset;return S.buffer!==void 0&&y!==!0||(S.buffer=l.getMaskTemplate.call(x,!0,p.call(x),!0),S._buffer===void 0&&(S._buffer=S.buffer.slice())),S.buffer}function p(y,x,S){var b=this.maskset,f=-1,k=-1,g=S||b.validPositions;y===void 0&&(y=-1);for(var m=0,w=g.length;m<w;m++)g[m]&&(x||g[m].generatedInput!==!0)&&(m<=y&&(f=m),m>=y&&(k=m));return f===-1||f==y?k:k==-1||y-f<k-y?f:k}function v(y,x,S){var b=this,f=this.maskset,k=l.getTestTemplate.call(b,y).match;if(k.def===""&&(k=l.getTest.call(b,y).match),k.static!==!0)return k.fn;if(S===!0&&f.validPositions[y]!==void 0&&f.validPositions[y].generatedInput!==!0)return!0;if(x!==!0&&y>-1){if(S){var g=l.getTests.call(b,y);return g.length>1+(g[g.length-1].match.def===""?1:0)}var m=l.determineTestTemplate.call(b,y,l.getTests.call(b,y)),w=l.getPlaceholder.call(b,y,m.match);return m.match.def!==w}return!1}function _(y,x,S){var b=this;S===void 0&&(S=!0);for(var f=y+1;l.getTest.call(b,f).match.def!==""&&(x===!0&&(l.getTest.call(b,f).match.newBlockMarker!==!0||!v.call(b,f,void 0,!0))||x!==!0&&!v.call(b,f,void 0,S));)f++;return f}function h(y){var x=this.opts,S=this.el;return!this.isRTL||typeof y!="number"||x.greedy&&x.placeholder===""||!S||(y=this._valueGet().length-y)<0&&(y=0),y}},4713:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.determineTestTemplate=h,o.getDecisionTaker=p,o.getMaskTemplate=function(b,f,k,g,m){var w=this,O=this.opts,C=this.maskset,M=O.greedy;m&&O.greedy&&(O.greedy=!1,w.maskset.tests={}),f=f||0;var T,E,z,F,N=[],U=0;do{if(b===!0&&C.validPositions[U])E=(z=m&&C.validPositions[U].match.optionality&&C.validPositions[U+1]===void 0&&(C.validPositions[U].generatedInput===!0||C.validPositions[U].input==O.skipOptionalPartCharacter&&U>0)?h.call(w,U,S.call(w,U,T,U-1)):C.validPositions[U]).match,T=z.locator.slice(),N.push(k===!0?z.input:k===!1?E.nativeDef:v.call(w,U,E));else{E=(z=_.call(w,U,T,U-1)).match,T=z.locator.slice();var q=g!==!0&&(O.jitMasking!==!1?O.jitMasking:E.jit);(F=(F&&E.static&&E.def!==O.groupSeparator&&E.fn===null||C.validPositions[U-1]&&E.static&&E.def!==O.groupSeparator&&E.fn===null)&&C.tests[U])||q===!1||q===void 0||typeof q=="number"&&isFinite(q)&&q>U?N.push(k===!1?E.nativeDef:v.call(w,N.length,E)):F=!1}U++}while(E.static!==!0||E.def!==""||f>U);return N[N.length-1]===""&&N.pop(),k===!1&&C.maskLength!==void 0||(C.maskLength=U-1),O.greedy=M,N},o.getPlaceholder=v,o.getTest=y,o.getTestTemplate=_,o.getTests=S,o.isSubsetOf=x;var l,c=(l=u(2394))&&l.__esModule?l:{default:l};function d(b,f){var k=(b.alternation!=null?b.mloc[p(b)]:b.locator).join("");if(k!=="")for(;k.length<f;)k+="0";return k}function p(b){var f=b.locator[b.alternation];return typeof f=="string"&&f.length>0&&(f=f.split(",")[0]),f!==void 0?f.toString():""}function v(b,f,k){var g=this.opts,m=this.maskset;if((f=f||y.call(this,b).match).placeholder!==void 0||k===!0)return typeof f.placeholder=="function"?f.placeholder(g):f.placeholder;if(f.static===!0){if(b>-1&&m.validPositions[b]===void 0){var w,O=S.call(this,b),C=[];if(O.length>1+(O[O.length-1].match.def===""?1:0)){for(var M=0;M<O.length;M++)if(O[M].match.def!==""&&O[M].match.optionality!==!0&&O[M].match.optionalQuantifier!==!0&&(O[M].match.static===!0||w===void 0||O[M].match.fn.test(w.match.def,m,b,!0,g)!==!1)&&(C.push(O[M]),O[M].match.static===!0&&(w=O[M]),C.length>1&&/[0-9a-bA-Z]/.test(C[0].match.def)))return g.placeholder.charAt(b%g.placeholder.length)}}return f.def}return g.placeholder.charAt(b%g.placeholder.length)}function _(b,f,k){return this.maskset.validPositions[b]||h.call(this,b,S.call(this,b,f&&f.slice(),k))}function h(b,f){var k=this.opts,g=0,m=function(F,N){var U=0,q=!1;return N.forEach(function(P){P.match.optionality&&(U!==0&&U!==P.match.optionality&&(q=!0),(U===0||U>P.match.optionality)&&(U=P.match.optionality))}),U&&(F==0||N.length==1?U=0:q||(U=0)),U}(b,f);b=b>0?b-1:0;var w,O,C,M=d(y.call(this,b));k.greedy&&f.length>1&&f[f.length-1].match.def===""&&(g=1);for(var T=0;T<f.length-g;T++){var E=f[T];w=d(E,M.length);var z=Math.abs(w-M);(O===void 0||w!==""&&z<O||C&&!k.greedy&&C.match.optionality&&C.match.optionality-m>0&&C.match.newBlockMarker==="master"&&(!E.match.optionality||E.match.optionality-m<1||!E.match.newBlockMarker)||C&&!k.greedy&&C.match.optionalQuantifier&&!E.match.optionalQuantifier)&&(O=z,C=E)}return C}function y(b,f){var k=this.maskset;return k.validPositions[b]?k.validPositions[b]:(f||S.call(this,b))[0]}function x(b,f,k){function g(m){for(var w,O=[],C=-1,M=0,T=m.length;M<T;M++)if(m.charAt(M)==="-")for(w=m.charCodeAt(M+1);++C<w;)O.push(String.fromCharCode(C));else C=m.charCodeAt(M),O.push(m.charAt(M));return O.join("")}return b.match.def===f.match.nativeDef||!(!(k.regex||b.match.fn instanceof RegExp&&f.match.fn instanceof RegExp)||b.match.static===!0||f.match.static===!0)&&g(f.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(g(b.match.fn.toString().replace(/[[\]/]/g,"")))!==-1}function S(b,f,k){var g,m,w=this,O=this.dependencyLib,C=this.maskset,M=this.opts,T=this.el,E=C.maskToken,z=f?k:0,F=f?f.slice():[0],N=[],U=!1,q=f?f.join(""):"";function P(Y,Q,J,R){function A(B,G,Z){function te(ie,ue){var ne=ue.matches.indexOf(ie)===0;return ne||ue.matches.every(function(pe,be){return pe.isQuantifier===!0?ne=te(ie,ue.matches[be-1]):Object.prototype.hasOwnProperty.call(pe,"matches")&&(ne=te(ie,pe)),!ne}),ne}function re(ie,ue,ne){var pe,be;if((C.tests[ie]||C.validPositions[ie])&&(C.tests[ie]||[C.validPositions[ie]]).every(function(Ie,ct){if(Ie.mloc[ue])return pe=Ie,!1;var De=ne!==void 0?ne:Ie.alternation,dt=Ie.locator[De]!==void 0?Ie.locator[De].toString().indexOf(ue):-1;return(be===void 0||dt<be)&&dt!==-1&&(pe=Ie,be=dt),!0}),pe){var Pe=pe.locator[pe.alternation];return(pe.mloc[ue]||pe.mloc[Pe]||pe.locator).slice((ne!==void 0?ne:pe.alternation)+1)}return ne!==void 0?re(ie,ue):void 0}function le(ie,ue){var ne=ie.alternation,pe=ue===void 0||ne===ue.alternation&&ie.locator[ne].toString().indexOf(ue.locator[ne])===-1;if(!pe&&ne>ue.alternation){for(var be=ue.alternation;be<ne;be++)if(ie.locator[be]!==ue.locator[be]){ne=be,pe=!0;break}}if(pe){ie.mloc=ie.mloc||{};var Pe=ie.locator[ne];if(Pe!==void 0){if(typeof Pe=="string"&&(Pe=Pe.split(",")[0]),ie.mloc[Pe]===void 0&&(ie.mloc[Pe]=ie.locator.slice()),ue!==void 0){for(var Ie in ue.mloc)typeof Ie=="string"&&(Ie=Ie.split(",")[0]),ie.mloc[Ie]===void 0&&(ie.mloc[Ie]=ue.mloc[Ie]);ie.locator[ne]=Object.keys(ie.mloc).join(",")}return!0}ie.alternation=void 0}return!1}function he(ie,ue){if(ie.locator.length!==ue.locator.length)return!1;for(var ne=ie.alternation+1;ne<ie.locator.length;ne++)if(ie.locator[ne]!==ue.locator[ne])return!1;return!0}if(z>b+M._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+C.mask;if(z===b&&B.matches===void 0){if(N.push({match:B,locator:G.reverse(),cd:q,mloc:{}}),!B.optionality||Z!==void 0||!(M.definitions&&M.definitions[B.nativeDef]&&M.definitions[B.nativeDef].optional||c.default.prototype.definitions[B.nativeDef]&&c.default.prototype.definitions[B.nativeDef].optional))return!0;U=!0,z=b}else if(B.matches!==void 0){if(B.isGroup&&Z!==B)return function(){if(B=A(Y.matches[Y.matches.indexOf(B)+1],G,Z))return!0}();if(B.isOptional)return function(){var ie=B,ue=N.length;if(B=P(B,Q,G,Z),N.length>0){if(N.forEach(function(ne,pe){pe>=ue&&(ne.match.optionality=ne.match.optionality?ne.match.optionality+1:1)}),g=N[N.length-1].match,Z!==void 0||!te(g,ie))return B;U=!0,z=b}}();if(B.isAlternator)return function(){w.hasAlternator=!0;var ie,ue,ne,pe=B,be=[],Pe=N.slice(),Ie=G.length,ct=!1,De=Q.length>0?Q.shift():-1;if(De===-1||typeof De=="string"){var dt,_t=z,ck=Q.slice(),rr=[];if(typeof De=="string")rr=De.split(",");else for(dt=0;dt<pe.matches.length;dt++)rr.push(dt.toString());if(C.excludes[b]!==void 0){for(var JJ=rr.slice(),lf=0,ZJ=C.excludes[b].length;lf<ZJ;lf++){var dk=C.excludes[b][lf].toString().split(":");G.length==dk[1]&&rr.splice(rr.indexOf(dk[0]),1)}rr.length===0&&(delete C.excludes[b],rr=JJ)}(M.keepStatic===!0||isFinite(parseInt(M.keepStatic))&&_t>=M.keepStatic)&&(rr=rr.slice(0,1));for(var Su=0;Su<rr.length;Su++){dt=parseInt(rr[Su]),N=[],Q=typeof De=="string"&&re(z,dt,Ie)||ck.slice();var Ds=pe.matches[dt];if(Ds&&A(Ds,[dt].concat(G),Z))B=!0;else if(Su===0&&(ct=!0),Ds&&Ds.matches&&Ds.matches.length>pe.matches[0].matches.length)break;ie=N.slice(),z=_t,N=[];for(var uf=0;uf<ie.length;uf++){var it=ie[uf],ku=!1;it.match.jit=it.match.jit||ct,it.alternation=it.alternation||Ie,le(it);for(var cf=0;cf<be.length;cf++){var xr=be[cf];if(typeof De!="string"||it.alternation!==void 0&&rr.includes(it.locator[it.alternation].toString())){if(it.match.nativeDef===xr.match.nativeDef){ku=!0,le(xr,it);break}if(x(it,xr,M)){le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it));break}if(x(xr,it,M)){le(xr,it);break}if(ne=xr,(ue=it).match.static===!0&&ne.match.static!==!0&&ne.match.fn.test(ue.match.def,C,b,!1,M,!1)){he(it,xr)||T.inputmask.userOptions.keepStatic!==void 0?le(it,xr)&&(ku=!0,be.splice(be.indexOf(xr),0,it)):M.keepStatic=!0;break}}}ku||be.push(it)}}N=Pe.concat(be),z=b,U=N.length>0,B=be.length>0,Q=ck.slice()}else B=A(pe.matches[De]||Y.matches[De],[De].concat(G),Z);if(B)return!0}();if(B.isQuantifier&&Z!==Y.matches[Y.matches.indexOf(B)-1])return function(){for(var ie=B,ue=!1,ne=Q.length>0?Q.shift():0;ne<(isNaN(ie.quantifier.max)?ne+1:ie.quantifier.max)&&z<=b;ne++){var pe=Y.matches[Y.matches.indexOf(ie)-1];if(B=A(pe,[ne].concat(G),pe)){if(N.forEach(function(be,Pe){(g=D(pe,be.match)?be.match:N[N.length-1].match).optionalQuantifier=ne>=ie.quantifier.min,g.jit=(ne+1)*(pe.matches.indexOf(g)+1)>ie.quantifier.jit,g.optionalQuantifier&&te(g,pe)&&(U=!0,z=b,M.greedy&&C.validPositions[b-1]==null&&ne>ie.quantifier.min&&["*","+"].indexOf(ie.quantifier.max)!=-1&&(N.pop(),q=void 0),ue=!0,B=!1),!ue&&g.jit&&(C.jitOffset[b]=pe.matches.length-pe.matches.indexOf(g))}),ue)break;return!0}}}();if(B=P(B,Q,G,Z))return!0}else z++}for(var $=Q.length>0?Q.shift():0;$<Y.matches.length;$++)if(Y.matches[$].isQuantifier!==!0){var j=A(Y.matches[$],[$].concat(J),R);if(j&&z===b)return j;if(z>b)break}}function D(Y,Q){var J=Y.matches.indexOf(Q)!=-1;return J||Y.matches.forEach(function(R,A){R.matches===void 0||J||(J=D(R,Q))}),J}if(b>-1){if(f===void 0){for(var I,L=b-1;(I=C.validPositions[L]||C.tests[L])===void 0&&L>-1;)L--;I!==void 0&&L>-1&&(F=function(Y,Q){var J,R=[];return Array.isArray(Q)||(Q=[Q]),Q.length>0&&(Q[0].alternation===void 0||M.keepStatic===!0?(R=h.call(w,Y,Q.slice()).locator.slice()).length===0&&(R=Q[0].locator.slice()):Q.forEach(function(A){A.def!==""&&(R.length===0?(J=A.alternation,R=A.locator.slice()):A.locator[J]&&R[J].toString().indexOf(A.locator[J])===-1&&(R[J]+=","+A.locator[J]))})),R}(L,I),q=F.join(""),z=L)}if(C.tests[b]&&C.tests[b][0].cd===q)return C.tests[b];for(var W=F.shift();W<E.length&&!(P(E[W],F,[W])&&z===b||z>b);W++);}return(N.length===0||U)&&N.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:q}),f!==void 0&&C.tests[b]?m=O.extend(!0,[],N):(C.tests[b]=O.extend(!0,[],N),m=C.tests[b]),N.forEach(function(Y){Y.match.optionality=Y.match.defOptionality||!1}),m}},7215:function(s,o,u){Object.defineProperty(o,"__esModule",{value:!0}),o.alternate=v,o.checkAlternationMatch=function(g,m,w){for(var O,C=this.opts.greedy?m:m.slice(0,1),M=!1,T=w!==void 0?w.split(","):[],E=0;E<T.length;E++)(O=g.indexOf(T[E]))!==-1&&g.splice(O,1);for(var z=0;z<g.length;z++)if(C.includes(g[z])){M=!0;break}return M},o.handleRemove=function(g,m,w,O,C){var M=this,T=this.maskset,E=this.opts;if((E.numericInput||M.isRTL)&&(m===c.keys.Backspace?m=c.keys.Delete:m===c.keys.Delete&&(m=c.keys.Backspace),M.isRTL)){var z=w.end;w.end=w.begin,w.begin=z}var F,N=d.getLastValidPosition.call(M,void 0,!0);if(w.end>=d.getBuffer.call(M).length&&N>=w.end&&(w.end=N+1),m===c.keys.Backspace?w.end-w.begin<1&&(w.begin=d.seekPrevious.call(M,w.begin)):m===c.keys.Delete&&w.begin===w.end&&(w.end=d.isMask.call(M,w.end,!0,!0)?w.end+1:d.seekNext.call(M,w.end)+1),(F=k.call(M,w))!==!1){if(O!==!0&&E.keepStatic!==!1||E.regex!==null&&l.getTest.call(M,w.begin).match.def.indexOf("|")!==-1){var U=v.call(M,!0);if(U){var q=U.caret!==void 0?U.caret:U.pos?d.seekNext.call(M,U.pos.begin?U.pos.begin:U.pos):d.getLastValidPosition.call(M,-1,!0);(m!==c.keys.Delete||w.begin>q)&&w.begin}}O!==!0&&(T.p=m===c.keys.Delete?w.begin+F:w.begin,T.p=d.determineNewCaretPosition.call(M,{begin:T.p,end:T.p},!1,E.insertMode===!1&&m===c.keys.Backspace?"none":void 0).begin)}},o.isComplete=h,o.isSelection=y,o.isValid=x,o.refreshFromBuffer=b,o.revalidateMask=k;var l=u(4713),c=u(2839),d=u(8711),p=u(6030);function v(g,m,w,O,C,M){var T,E,z,F,N,U,q,P,D,I,L,W=this,Y=this.dependencyLib,Q=this.opts,J=W.maskset,R=Y.extend(!0,[],J.validPositions),A=Y.extend(!0,{},J.tests),$=!1,j=!1,B=C!==void 0?C:d.getLastValidPosition.call(W);if(M&&(I=M.begin,L=M.end,M.begin>M.end&&(I=M.end,L=M.begin)),B===-1&&C===void 0)T=0,E=(F=l.getTest.call(W,T)).alternation;else for(;B>=0;B--)if((z=J.validPositions[B])&&z.alternation!==void 0){if(B<=(g||0)&&F&&F.locator[z.alternation]!==z.locator[z.alternation])break;T=B,E=J.validPositions[T].alternation,F=z}if(E!==void 0){q=parseInt(T),J.excludes[q]=J.excludes[q]||[],g!==!0&&J.excludes[q].push((0,l.getDecisionTaker)(F)+":"+F.alternation);var G=[],Z=-1;for(N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)Z===-1&&g<=N&&m!==void 0&&(G.push(m),Z=G.length-1),(U=J.validPositions[N])&&U.generatedInput!==!0&&(M===void 0||N<I||N>=L)&&G.push(U.input),delete J.validPositions[N];for(Z===-1&&m!==void 0&&(G.push(m),Z=G.length-1);J.excludes[q]!==void 0&&J.excludes[q].length<10;){for(J.tests={},d.resetMaskSet.call(W,!0),$=!0,N=0;N<G.length&&(P=$.caret||d.getLastValidPosition.call(W,void 0,!0)+1,D=G[N],$=x.call(W,P,D,!1,O,!0));N++)N===Z&&(j=$),g==1&&$&&(j={caretPos:N});if($)break;if(d.resetMaskSet.call(W),F=l.getTest.call(W,q),J.validPositions=Y.extend(!0,[],R),J.tests=Y.extend(!0,{},A),!J.excludes[q]){j=v.call(W,g,m,w,O,q-1,M);break}var te=(0,l.getDecisionTaker)(F);if(J.excludes[q].indexOf(te+":"+F.alternation)!==-1){j=v.call(W,g,m,w,O,q-1,M);break}for(J.excludes[q].push(te+":"+F.alternation),N=q;N<d.getLastValidPosition.call(W,void 0,!0)+1;N++)delete J.validPositions[N]}}return j&&Q.keepStatic===!1||delete J.excludes[q],j}function _(g,m,w){var O=this.opts,C=this.maskset;switch(O.casing||m.casing){case"upper":g=g.toUpperCase();break;case"lower":g=g.toLowerCase();break;case"title":var M=C.validPositions[w-1];g=w===0||M&&M.input===String.fromCharCode(c.keyCode.Space)?g.toUpperCase():g.toLowerCase();break;default:if(typeof O.casing=="function"){var T=Array.prototype.slice.call(arguments);T.push(C.validPositions),g=O.casing.apply(this,T)}}return g}function h(g){var m=this,w=this.opts,O=this.maskset;if(typeof w.isComplete=="function")return w.isComplete(g,w);if(w.repeat!=="*"){var C=!1,M=d.determineLastRequiredPosition.call(m,!0),T=d.seekPrevious.call(m,M.l);if(M.def===void 0||M.def.newBlockMarker||M.def.optionality||M.def.optionalQuantifier){C=!0;for(var E=0;E<=T;E++){var z=l.getTestTemplate.call(m,E).match;if(z.static!==!0&&O.validPositions[E]===void 0&&z.optionality!==!0&&z.optionalQuantifier!==!0||z.static===!0&&g[E]!==l.getPlaceholder.call(m,E,z)){C=!1;break}}}return C}}function y(g){var m=this.opts.insertMode?0:1;return this.isRTL?g.begin-g.end>m:g.end-g.begin>m}function x(g,m,w,O,C,M,T){var E=this,z=this.dependencyLib,F=this.opts,N=E.maskset;w=w===!0;var U=g;function q($){if($!==void 0){if($.remove!==void 0&&(Array.isArray($.remove)||($.remove=[$.remove]),$.remove.sort(function(B,G){return E.isRTL?B.pos-G.pos:G.pos-B.pos}).forEach(function(B){k.call(E,{begin:B,end:B+1})}),$.remove=void 0),$.insert!==void 0&&(Array.isArray($.insert)||($.insert=[$.insert]),$.insert.sort(function(B,G){return E.isRTL?G.pos-B.pos:B.pos-G.pos}).forEach(function(B){B.c!==""&&x.call(E,B.pos,B.c,B.strict===void 0||B.strict,B.fromIsValid!==void 0?B.fromIsValid:O)}),$.insert=void 0),$.refreshFromBuffer&&$.buffer){var j=$.refreshFromBuffer;b.call(E,j===!0?j:j.start,j.end,$.buffer),$.refreshFromBuffer=void 0}$.rewritePosition!==void 0&&(U=$.rewritePosition,$=!0)}return $}function P($,j,B){var G=!1;return l.getTests.call(E,$).every(function(Z,te){var re=Z.match;if(d.getBuffer.call(E,!0),(G=(!re.jit||N.validPositions[d.seekPrevious.call(E,$)]!==void 0)&&(re.fn!=null?re.fn.test(j,N,$,B,F,y.call(E,g)):(j===re.def||j===F.skipOptionalPartCharacter)&&re.def!==""&&{c:l.getPlaceholder.call(E,$,re,!0)||re.def,pos:$}))!==!1){var le=G.c!==void 0?G.c:j,he=$;return le=le===F.skipOptionalPartCharacter&&re.static===!0?l.getPlaceholder.call(E,$,re,!0)||re.def:le,(G=q(G))!==!0&&G.pos!==void 0&&G.pos!==$&&(he=G.pos),G!==!0&&G.pos===void 0&&G.c===void 0||k.call(E,g,z.extend({},Z,{input:_.call(E,le,re,he)}),O,he)===!1&&(G=!1),!1}return!0}),G}g.begin!==void 0&&(U=E.isRTL?g.end:g.begin);var D=!0,I=z.extend(!0,{},N.validPositions);if(F.keepStatic===!1&&N.excludes[U]!==void 0&&C!==!0&&O!==!0)for(var L=U;L<(E.isRTL?g.begin:g.end);L++)N.excludes[L]!==void 0&&(N.excludes[L]=void 0,delete N.tests[L]);if(typeof F.preValidation=="function"&&O!==!0&&M!==!0&&(D=q(D=F.preValidation.call(E,d.getBuffer.call(E),U,m,y.call(E,g),F,N,g,w||C))),D===!0){if(D=P(U,m,w),(!w||O===!0)&&D===!1&&M!==!0){var W=N.validPositions[U];if(!W||W.match.static!==!0||W.match.def!==m&&m!==F.skipOptionalPartCharacter){if(F.insertMode||N.validPositions[d.seekNext.call(E,U)]===void 0||g.end>U){var Y=!1;if(N.jitOffset[U]&&N.validPositions[d.seekNext.call(E,U)]===void 0&&(D=x.call(E,U+N.jitOffset[U],m,!0,!0))!==!1&&(C!==!0&&(D.caret=U),Y=!0),g.end>U&&(N.validPositions[U]=void 0),!Y&&!d.isMask.call(E,U,F.keepStatic&&U===0)){for(var Q=U+1,J=d.seekNext.call(E,U,!1,U!==0);Q<=J;Q++)if((D=P(Q,m,w))!==!1){D=f.call(E,U,D.pos!==void 0?D.pos:Q)||D,U=Q;break}}}}else D={caret:d.seekNext.call(E,U)}}E.hasAlternator&&C!==!0&&!w&&(D===!1&&F.keepStatic&&(h.call(E,d.getBuffer.call(E))||U===0)?D=v.call(E,U,m,w,O,void 0,g):(y.call(E,g)&&N.tests[U]&&N.tests[U].length>1&&F.keepStatic||D==1&&F.numericInput!==!0&&N.tests[U]&&N.tests[U].length>1&&d.getLastValidPosition.call(E,void 0,!0)>U)&&(D=v.call(E,!0))),D===!0&&(D={pos:U})}if(typeof F.postValidation=="function"&&O!==!0&&M!==!0){var R=F.postValidation.call(E,d.getBuffer.call(E,!0),g.begin!==void 0?E.isRTL?g.end:g.begin:g,m,D,F,N,w,T);R!==void 0&&(D=R===!0?D:R)}D&&D.pos===void 0&&(D.pos=U),D===!1||M===!0?(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I)):f.call(E,void 0,U,!0);var A=q(D);return E.maxLength!==void 0&&d.getBuffer.call(E).length>E.maxLength&&!O&&(d.resetMaskSet.call(E,!0),N.validPositions=z.extend(!0,[],I),A=!1),A}function S(g,m,w){for(var O=this.maskset,C=!1,M=l.getTests.call(this,g),T=0;T<M.length;T++){if(M[T].match&&(M[T].match.nativeDef===m.match[w.shiftPositions?"def":"nativeDef"]&&(!w.shiftPositions||!m.match.static)||M[T].match.nativeDef===m.match.nativeDef||w.regex&&!M[T].match.static&&M[T].match.fn.test(m.input,O,g,!1,w))){C=!0;break}if(M[T].match&&M[T].match.def===m.match.nativeDef){C=void 0;break}}return C===!1&&O.jitOffset[g]!==void 0&&(C=S.call(this,g+O.jitOffset[g],m,w)),C}function b(g,m,w){var O,C,M=this,T=this.maskset,E=this.opts,z=this.dependencyLib,F=E.skipOptionalPartCharacter,N=M.isRTL?w.slice().reverse():w;if(E.skipOptionalPartCharacter="",g===!0)d.resetMaskSet.call(M),T.tests={},g=0,m=w.length,C=d.determineNewCaretPosition.call(M,{begin:0,end:0},!1).begin;else{for(O=g;O<m;O++)delete T.validPositions[O];C=g}var U=new z.Event("keypress");for(O=g;O<m;O++){U.key=N[O].toString(),M.ignorable=!1;var q=p.EventHandlers.keypressEvent.call(M,U,!0,!1,!1,C);q!==!1&&q!==void 0&&(C=q.forwardPosition)}E.skipOptionalPartCharacter=F}function f(g,m,w){var O=this,C=this.maskset,M=this.dependencyLib;if(g===void 0)for(g=m-1;g>0&&!C.validPositions[g];g--);for(var T=g;T<m;T++)if(C.validPositions[T]===void 0&&!d.isMask.call(O,T,!1)&&(T==0?l.getTest.call(O,T):C.validPositions[T-1])){var E=l.getTests.call(O,T).slice();E[E.length-1].match.def===""&&E.pop();var z,F=l.determineTestTemplate.call(O,T,E);if(F&&(F.match.jit!==!0||F.match.newBlockMarker==="master"&&(z=C.validPositions[T+1])&&z.match.optionalQuantifier===!0)&&((F=M.extend({},F,{input:l.getPlaceholder.call(O,T,F.match,!0)||F.match.def})).generatedInput=!0,k.call(O,T,F,!0),w!==!0)){var N=C.validPositions[m].input;return C.validPositions[m]=void 0,x.call(O,m,N,!0,!0)}}}function k(g,m,w,O){var C=this,M=this.maskset,T=this.opts,E=this.dependencyLib;function z(R,A,$){var j=A[R];if(j!==void 0&&j.match.static===!0&&j.match.optionality!==!0&&(A[0]===void 0||A[0].alternation===void 0)){var B=$.begin<=R-1?A[R-1]&&A[R-1].match.static===!0&&A[R-1]:A[R-1],G=$.end>R+1?A[R+1]&&A[R+1].match.static===!0&&A[R+1]:A[R+1];return B&&G}return!1}var F=0,N=g.begin!==void 0?g.begin:g,U=g.end!==void 0?g.end:g,q=!0;if(g.begin>g.end&&(N=g.end,U=g.begin),O=O!==void 0?O:N,w===void 0&&(N!==U||T.insertMode&&M.validPositions[O]!==void 0||m===void 0||m.match.optionalQuantifier||m.match.optionality)){var P,D=E.extend(!0,{},M.validPositions),I=d.getLastValidPosition.call(C,void 0,!0);for(M.p=N,P=I;P>=N;P--)delete M.validPositions[P],m===void 0&&delete M.tests[P+1];var L,W,Y=O,Q=Y;for(m&&(M.validPositions[O]=E.extend(!0,{},m),Q++,Y++),P=m?U:U-1;P<=I;P++){if((L=D[P])!==void 0&&L.generatedInput!==!0&&(P>=U||P>=N&&z(P,D,{begin:N,end:U}))){for(;l.getTest.call(C,Q).match.def!=="";){if((W=S.call(C,Q,L,T))!==!1||L.match.def==="+"){L.match.def==="+"&&d.getBuffer.call(C,!0);var J=x.call(C,Q,L.input,L.match.def!=="+",!0);if(q=J!==!1,Y=(J.pos||Q)+1,!q&&W)break}else q=!1;if(q){m===void 0&&L.match.static&&P===g.begin&&F++;break}if(!q&&d.getBuffer.call(C),Q>M.maskLength)break;Q++}l.getTest.call(C,Q).match.def==""&&(q=!1),Q=Y}if(!q)break}if(!q)return M.validPositions=E.extend(!0,[],D),d.resetMaskSet.call(C,!0),!1}else m&&l.getTest.call(C,O).match.cd===m.match.cd&&(M.validPositions[O]=E.extend(!0,{},m));return d.resetMaskSet.call(C,!0),F}}},a={};function i(s){var o=a[s];if(o!==void 0)return o.exports;var u=a[s]={exports:{}};return r[s](u,u.exports,i),u.exports}var n={};return function(){var s,o=n;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,i(7149),i(3194),i(9302),i(4013),i(3851),i(219),i(207),i(5296);var u=((s=i(2394))&&s.__esModule?s:{default:s}).default;o.default=u}(),n}()})})(cb);var fW=cb.exports;const db=ar(fW),VX="",hW={props:{value:null,decimal:{type:String,default:","},thousands:{type:String,default:"."},prefix:{type:String,default:"$ "},suffix:{type:String,default:" USD"},precision:{type:Number,default:2}},computed:{currencyInput(){return this.$refs.currencyInput}},data(){return{currencyValue:"",unformattedValue:null}},watch:{value:{handler(t){t!=this.unformattedValue&&this.currencyInput.inputmask.setValue(t)}},currencyValue(){this.handleInput()}},methods:{loadMasks(){const t=this.suffix.trim()==="INR"?"indianns":"currency";db(t,{digits:this.precision,prefix:this.prefix,suffix:this.suffix,radixPoint:this.decimal,groupSeparator:this.thousands}).mask(this.currencyInput),this.value&&this.currencyInput.inputmask.setValue(this.value)},keyup(t){this.currencyValue!==t.target.value?this.currencyValue=t.target.value:this.handleInput()},handleInput(){this.unformattedValue=parseFloat(this.currencyInput.inputmask.unmaskedvalue().replace(",",".")),this.$emit("input",this.unformattedValue||0)}},mounted(){this.loadMasks()}};var mW=function(){var e=this,r=e._self._c;return r("input",{directives:[{name:"model",rawName:"v-model",value:e.currencyValue,expression:"currencyValue"}],ref:"currencyInput",staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.currencyValue},on:{keyup:e.keyup,input:function(a){a.target.composing||(e.currencyValue=a.target.value)}}})},gW=[],vW=oe(hW,mW,gW,!1,null,null,null,null);const bW=vW.exports,yW=vn(),pb={currency:"inputmasked",date:"the-mask",datetime:"the-mask",percentage:"inputmasked",custom:"the-mask"},fb={currency:"getCurrencyFormat",date:"getDateFormat",datetime:"getDatetimeFormat",percentage:"getPercentageFormat",custom:"getCustomFormatter"},xW={components:{TheMask:pW.TheMask,Inputmasked:bW,RequiredAsterisk:ee.RequiredAsterisk},mixins:[yW,ee.ValidationMixin],inheritAttrs:!1,props:["value","label","error","helper","name","controlClass","dataMask","config","transientData","formConfig","form-watchers"],data(){const{dataFormat:t,customFormatter:e}=this.config,r=t==="int"||t==="float"?15:null,a=(()=>{const p=this.dataMask&&this.dataMask?this.dataMask&&this.dataMask.format:null,v=p?p.match(/[.,]/g):[".",","];v.length===0?v.push("","."):v.length===1&&v.push(v[0]==="."?",":".");const _=p?(p.split(v[1])[1]||"").length:2;return{decimal:v[1],thousands:v[0],prefix:this.dataMask&&this.dataMask.symbol?`${this.dataMask.symbol} `:"",suffix:this.dataMask&&this.dataMask.code?` ${this.dataMask.code}`:"",precision:_,masked:!1}})(),i={decimal:".",thousands:"",prefix:"",suffix:" %",precision:2,masked:!1},n={masked:!0,mask:this.getUserConfig().date_mask||this.getMask().date},s={masked:!0,mask:this.getUserConfig().datetime_mask||this.getMask().dateTime},o=(()=>e?pb.custom:pb[t]||"input")(),u=(()=>{switch(t){case"int":return"number";case"float":return"number";case"email":return"email";case"password":return"password";default:return"text"}})(),l={masked:!0,mask:e};let c;return e?c=fb.custom:c=fb[t],{dataFormat:t,customFormatter:e,maxlength:r,getCurrencyFormat:a,getPercentageFormat:i,getDateFormat:n,getDatetimeFormat:s,componentType:o,dataType:u,getCustomFormatter:l,componentConfig:JSON.parse(JSON.stringify({...c?{getCurrencyFormat:a,getDateFormat:n,getDatetimeFormat:s,getPercentageFormat:i,getCustomFormatter:l}[c]:{},...this.$attrs})),validator:null,localValue:null,validationRules:{percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/"}}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},componentConfigComputed(){return JSON.parse(JSON.stringify(this.componentConfig))}},watch:{value(t){this.localValue!==t&&(this.localValue=t)},localValue(t){t!==this.value&&this.$emit("input",this.convertToData(t))}},mounted(){this.value!==void 0&&(this.localValue=this.value)},methods:{onChange(){this.$emit("change",this.convertToData(this.localValue))},getUserConfig(){return window.ProcessMaker&&window.ProcessMaker.user||{}},getUserDateFormat:ee.getUserDateFormat,getUserDateTimeFormat:ee.getUserDateTimeFormat,convertToData(t){if(this.customFormatter)t=t.replace(/[^\w]/g,"");else switch(this.dataFormat){case"string":t=t.toString();break;case"boolean":t=!!t;break;case"currency":case"percentage":case"float":t=parseFloat(t),isNaN(t)&&(t=null);break;case"int":t=parseInt(t),isNaN(t)&&(t=null);break;case"date":this.componentName==="FormDatePicker"&&(t=Ze.utc(t,[ee.getUserDateFormat(),Ze.ISO_8601],!0).toISOString().split(RegExp("T[0-9]"))[0]);break;case"datetime":this.componentName==="FormDatePicker"&&(t=Ze(t,[ee.getUserDateTimeFormat(),Ze.ISO_8601],!0).toISOString());break;case"array":break;default:t=t.toString();break}return t},convertFromData(t){return t},getMask(){return{date:["####-##-##"],dateTime:["####-##-## ##:##"]}}}};var SW=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("required-asterisk"),r("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:e.name,expression:"name"}]},[e._v(e._s(e.label))]),e.componentType!=="input"?r(e.componentType,e._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],tag:"component",staticClass:"form-control",class:e.classList,attrs:{name:e.name,type:"text"},on:{change:e.onChange},model:{value:e.localValue,callback:function(a){e.localValue=a},expression:"localValue"}},"component",e.componentConfigComputed,!1)):e.dataType==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"checkbox"},domProps:{checked:Array.isArray(e.localValue)?e._i(e.localValue,null)>-1:e.localValue},on:{change:[function(a){var i=e.localValue,n=a.target,s=!!n.checked;if(Array.isArray(i)){var o=null,u=e._i(i,o);n.checked?u<0&&(e.localValue=i.concat([o])):u>-1&&(e.localValue=i.slice(0,u).concat(i.slice(u+1)))}else e.localValue=s},e.onChange]}},"input",e.componentConfig,!1)):e.dataType==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:"radio"},domProps:{checked:e._q(e.localValue,null)},on:{change:[function(a){e.localValue=null},e.onChange]}},"input",e.componentConfig,!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"},{name:"uni-id",rawName:"v-uni-id",value:e.name,expression:"name"}],staticClass:"form-control",class:e.classList,attrs:{name:e.name,maxlength:e.maxlength,type:e.dataType},domProps:{value:e.localValue},on:{change:e.onChange,input:function(a){a.target.composing||(e.localValue=a.target.value)}}},"input",e.componentConfig,!1)),e.validator&&e.validator.errorCount?e._l(e.validator.errors.all(),function(a,i){return r("div",{key:i,staticClass:"invalid-feedback"},e._l(a,function(n,s){return r("div",{key:s},[e._v(" "+e._s(n)+" ")])}),0)}):e._e(),e.error?r("div",{staticClass:"invalid-feedback"},[e._v(e._s(e.error))]):e._e(),e.helper?r("small",{staticClass:"form-text text-muted"},[e._v(e._s(e.helper))]):e._e()],2)},kW=[],_W=oe(xW,SW,kW,!1,null,null,null,null);const Ba=_W.exports;var $d={exports:{}},hb={};function Hr(t){return{prev:null,next:null,data:t}}function Oi(t,e,r){var a;return Mi!==null?(a=Mi,Mi=Mi.cursor,a.prev=e,a.next=r,a.cursor=t.cursor):a={prev:e,next:r,cursor:t.cursor},t.cursor=a,a}function Ei(t){var e=t.cursor;t.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Mi,Mi=e}var Mi=null,ye=function(){this.cursor=null,this.head=null,this.tail=null};ye.createItem=Hr,ye.prototype.createItem=Hr,ye.prototype.updateCursors=function(t,e,r,a){for(var i=this.cursor;i!==null;)i.prev===t&&(i.prev=e),i.next===r&&(i.next=a),i=i.cursor},ye.prototype.getSize=function(){for(var t=0,e=this.head;e;)t++,e=e.next;return t},ye.prototype.fromArray=function(t){var e=null;this.head=null;for(var r=0;r<t.length;r++){var a=Hr(t[r]);e!==null?e.next=a:this.head=a,a.prev=e,e=a}return this.tail=e,this},ye.prototype.toArray=function(){for(var t=this.head,e=[];t;)e.push(t.data),t=t.next;return e},ye.prototype.toJSON=ye.prototype.toArray,ye.prototype.isEmpty=function(){return this.head===null},ye.prototype.first=function(){return this.head&&this.head.data},ye.prototype.last=function(){return this.tail&&this.tail.data},ye.prototype.each=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,null,this.head);a.next!==null;)r=a.next,a.next=r.next,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEach=ye.prototype.each,ye.prototype.eachRight=function(t,e){var r;e===void 0&&(e=this);for(var a=Oi(this,this.tail,null);a.prev!==null;)r=a.prev,a.prev=r.prev,t.call(e,r.data,r,this);Ei(this)},ye.prototype.forEachRight=ye.prototype.eachRight,ye.prototype.reduce=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,null,this.head),n=e;i.next!==null;)a=i.next,i.next=a.next,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.reduceRight=function(t,e,r){var a;r===void 0&&(r=this);for(var i=Oi(this,this.tail,null),n=e;i.prev!==null;)a=i.prev,i.prev=a.prev,n=t.call(r,n,a.data,a,this);return Ei(this),n},ye.prototype.nextUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,null,t);i.next!==null&&(a=i.next,i.next=a.next,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.prevUntil=function(t,e,r){if(t!==null){var a;r===void 0&&(r=this);for(var i=Oi(this,t,null);i.prev!==null&&(a=i.prev,i.prev=a.prev,!e.call(r,a.data,a,this)););Ei(this)}},ye.prototype.some=function(t,e){var r=this.head;for(e===void 0&&(e=this);r!==null;){if(t.call(e,r.data,r,this))return!0;r=r.next}return!1},ye.prototype.map=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)r.appendData(t.call(e,a.data,a,this)),a=a.next;return r},ye.prototype.filter=function(t,e){var r=new ye,a=this.head;for(e===void 0&&(e=this);a!==null;)t.call(e,a.data,a,this)&&r.appendData(a.data),a=a.next;return r},ye.prototype.clear=function(){this.head=null,this.tail=null},ye.prototype.copy=function(){for(var t=new ye,e=this.head;e!==null;)t.insert(Hr(e.data)),e=e.next;return t},ye.prototype.prepend=function(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this},ye.prototype.prependData=function(t){return this.prepend(Hr(t))},ye.prototype.append=function(t){return this.insert(t)},ye.prototype.appendData=function(t){return this.insert(Hr(t))},ye.prototype.insert=function(t,e){if(e!=null)if(this.updateCursors(e.prev,t,e,t),e.prev===null){if(this.head!==e)throw new Error("before doesn't belong to list");this.head=t,e.prev=t,t.next=e,this.updateCursors(null,t)}else e.prev.next=t,t.prev=e.prev,e.prev=t,t.next=e;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this},ye.prototype.insertData=function(t,e){return this.insert(Hr(t),e)},ye.prototype.remove=function(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t},ye.prototype.push=function(t){this.insert(Hr(t))},ye.prototype.pop=function(){if(this.tail!==null)return this.remove(this.tail)},ye.prototype.unshift=function(t){this.prepend(Hr(t))},ye.prototype.shift=function(){if(this.head!==null)return this.remove(this.head)},ye.prototype.prependList=function(t){return this.insertList(t,this.head)},ye.prototype.appendList=function(t){return this.insertList(t)},ye.prototype.insertList=function(t,e){return t.head===null?this:(e!=null?(this.updateCursors(e.prev,t.tail,e,t.head),e.prev!==null?(e.prev.next=t.head,t.head.prev=e.prev):this.head=t.head,e.prev=t.tail,t.tail.next=e):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)},ye.prototype.replace=function(t,e){"head"in e?this.insertList(e,t):this.insert(e,t),this.remove(t)};var $i=ye,Pd=function(e,r){var a=Object.create(SyntaxError.prototype),i=new Error;return a.name=e,a.message=r,Object.defineProperty(a,"stack",{get:function(){return(i.stack||"").replace(/^(.+\n){1,3}/,e+": "+r+`
288
288
  `)}}),a},wW=Pd,Dd=100,mb=60,gb=" ";function vb(t,e){function r(d,p){return a.slice(d,p).map(function(v,_){for(var h=String(d+_+1);h.length<u;)h=" "+h;return h+" |"+v}).join(`
289
289
  `)}var a=t.source.split(/\r\n?|\n|\f/),i=t.line,n=t.column,s=Math.max(1,i-e)-1,o=Math.min(i+e,a.length+1),u=Math.max(4,String(o).length)+1,l=0;n+=(gb.length-1)*(a[i-1].substr(0,n-1).match(/\t/g)||[]).length,n>Dd&&(l=n-mb+3,n=mb-2);for(var c=s;c<=o;c++)c>=0&&c<a.length&&(a[c]=a[c].replace(/\t/g,gb),a[c]=(l>0&&a[c].length>l?"…":"")+a[c].substr(l,Dd-2)+(a[c].length>l+Dd-1?"…":""));return[r(s,i),new Array(n+u+2).join("-")+"^",r(i,o)].filter(Boolean).join(`
290
290
  `)}var CW=function(t,e,r,a,i){var n=wW("SyntaxError",t);return n.source=e,n.offset=r,n.line=a,n.column=i,n.sourceFragment=function(s){return vb(n,isNaN(s)?0:s)},Object.defineProperty(n,"formattedMessage",{get:function(){return"Parse error: "+n.message+`