@formio/esignature 1.0.3 → 1.2.0-api98.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esignature.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(_0x2d794a,_0x19da92){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x19da92():'function'==typeof define&&define['amd']?define([],_0x19da92):'object'==typeof exports?exports['esignature']=_0x19da92():_0x2d794a['esignature']=_0x19da92();}(self,function(){return(function(){var _0x3cc44a={0x0:function(_0x51b426,_0xa03404){Object['defineProperty'](_0xa03404,'__esModule',{'value':!0x0}),_0xa03404['default']=function(_0x1f8a08){var _0x2c6bec;return''+((null==(_0x2c6bec=_0x1f8a08['children'])?'':_0x2c6bec)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x2c6bec=_0x1f8a08['eSignStamp'])?'':_0x2c6bec)+'</div>\x0a';};},0x14e:function(_0x3f9a40,_0x14cee6,_0x1e0aa9){'use strict';Object['defineProperty'](_0x14cee6,'__esModule',{'value':!0x0});const _0x55facf=_0x1e0aa9(0x170),_0x21a25b=_0x55facf['Displays']['getDisplay']('webform'),_0x21324d=_0x55facf['Utils']['_'];Object['defineProperty'](_0x21a25b['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x2c3c45,_0x140673;return!_0x21324d['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0x21324d['some'](null===(_0x2c3c45=this['_submission'])||void 0x0===_0x2c3c45?void 0x0:_0x2c3c45['eSignatures'],_0x39cc9d=>!0x0===_0x39cc9d['valid'])&&!!(null===(_0x140673=this['esign']['signatures'])||void 0x0===_0x140673?void 0x0:_0x140673['length']);}}),Object['defineProperty'](_0x21a25b['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x42aa96;return(null===(_0x42aa96=this['form'])||void 0x0===_0x42aa96?void 0x0:_0x42aa96['esign'])||{};}}),Object['defineProperty'](_0x21a25b['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x472162=_0x21324d['filter'](_0x21324d['get'](this['submission'],'eSignatures',[]),_0x26e1c3=>!0x0===_0x26e1c3['valid']),_0x3eed18=this['esign']['signatures']||[],_0x516b34={'all':!0x1,'components':[]};return _0x21324d['isEmpty'](_0x472162||_0x21324d['isEmpty'](_0x3eed18))||(_0x21324d['each'](_0x472162,_0x2794bc=>{if(_0x516b34['all'])return;const {compPath:_0x2aa01c}=_0x2794bc['signature']||{},_0x58cd2d=_0x21324d['find'](_0x3eed18,_0x3a3e81=>_0x3a3e81['component']===_0x2aa01c);_0x58cd2d['signAll']&&(_0x516b34['all']=!0x0,_0x516b34['components']=[]),_0x516b34['components']=_0x21324d['concat'](_0x516b34['components'],_0x58cd2d['signedData']||[]);}),_0x516b34['components']['length']&&(_0x516b34['components']=_0x21324d['uniq'](_0x516b34['components']))),_0x516b34;}});const _0x406531=_0x21a25b['prototype']['setSubmission'];_0x21a25b['prototype']['setSubmission']=function(_0x12a8e4,_0x576d27){return this['setSignedSubmission'](_0x12a8e4),_0x406531['call'](this,_0x12a8e4,_0x576d27);},_0x21a25b['prototype']['setSignedSubmission']=function(_0x5be682){var _0x5e96ea;if((null===(_0x5e96ea=this['esign']['signatures'])||void 0x0===_0x5e96ea?void 0x0:_0x5e96ea['length'])&&_0x21324d['some'](_0x21324d['get'](_0x5be682,'eSignatures',[]),_0x1696e5=>!0x0===_0x1696e5['valid'])){const _0x50d59c=_0x21324d['omit'](_0x5be682,['eSignatures']);this['signedSubmission']=_0x55facf['Utils']['fastCloneDeep'](_0x50d59c);}else this['signedSubmission']=null;};const _0x2f79b2=_0x21a25b['prototype']['onSetSubmission'];_0x21a25b['prototype']['onSetSubmission']=function(_0x2caed0,_0x43f2c1={}){_0x2f79b2['call'](this,_0x2caed0,_0x43f2c1),this['setESignatures'](_0x2caed0,_0x43f2c1);},_0x21a25b['prototype']['setESignatures']=function(_0xe758de={},_0x39b9e6={}){const _0x6eeb74=this['esign']['signatures']||[];if(!_0x6eeb74['length'])return;const _0x462826=_0x21324d['groupBy'](_0x21324d['get'](_0xe758de,'eSignatures',[]),'signature.valuePath');_0x21324d['each'](_0x6eeb74,_0x3ccf4d=>{if(_0x3ccf4d['component']){let _0x50cbc6=this['getComponent'](_0x3ccf4d['component'])||[];_0x50cbc6=_0x21324d['isArray'](_0x50cbc6)?_0x50cbc6:[_0x50cbc6],_0x21324d['each'](_0x50cbc6,_0x34aba7=>{_0x34aba7['setESignature'](_0x21324d['get'](_0x462826[_0x34aba7['jsonPathInLocalRoot']],'[0]',null),_0x39b9e6);});}}),_0x39b9e6['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0x21324d['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x5b2d54=_0x21a25b['prototype']['checkData'];_0x21a25b['prototype']['checkData']=function(_0x47e832,_0x26af26){const _0x163ddd=_0x5b2d54['call'](this,_0x47e832,_0x26af26);return(null==_0x26af26?void 0x0:_0x26af26['fromSubmission'])||this['validateESignatureCustomProps'](),_0x163ddd;},_0x21a25b['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x4840a9=''}=this['esign'];if(!_0x4840a9||!this['shouldValidateESignatures']())return;const _0x396930={},_0x1686c3={},_0x5c02a8=_0x21324d['chain'](_0x4840a9)['split'](',')['map'](_0x46c223=>_0x21324d['trim'](_0x46c223))['value']();_0x21324d['each'](_0x5c02a8||[],_0x2f3742=>{_0x21324d['set'](_0x396930,_0x2f3742,_0x21324d['get'](this['signedSubmission'],_0x2f3742)),_0x21324d['set'](_0x1686c3,_0x2f3742,_0x21324d['get'](this['submission'],_0x2f3742));}),_0x21324d['isEqual'](_0x396930,_0x1686c3)||this['emitSignedValueChange'](!0x0);},_0x21a25b['prototype']['shouldValidateESignatures']=function(){var _0x2fbec0,_0x77d1fa,_0x36838e;return!(_0x21324d['isEmpty'](_0x21324d['filter']((null===(_0x2fbec0=this['submission'])||void 0x0===_0x2fbec0?void 0x0:_0x2fbec0['eSignatures'])||[],_0x30ead6=>!0x0===(null==_0x30ead6?void 0x0:_0x30ead6['valid'])))||_0x21324d['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x77d1fa=this['submission'])||void 0x0===_0x77d1fa?void 0x0:_0x77d1fa['_id'])!==(null===(_0x36838e=this['signedSubmission'])||void 0x0===_0x36838e?void 0x0:_0x36838e['_id']));},_0x14cee6['default']=_0x21a25b;},0x15e:function(_0x3a2553,_0x52b392,_0x5c8e0d){'use strict';Object['defineProperty'](_0x52b392,'__esModule',{'value':!0x0});const _0x2a3936=_0x5c8e0d(0x295),_0x46d4fc=_0x5c8e0d(0x2bd),_0x4ddce0=_0x5c8e0d(0x2c1),_0x381f70=_0x5c8e0d(0x2bf),_0x57659e=_0x5c8e0d(0x2bb);_0x52b392['default']={'component':_0x2a3936['default'],'nested':_0x46d4fc['default'],'nestedarray':_0x4ddce0['default'],'form':_0x381f70['default'],'componentmodal':_0x57659e['default']};},0x170:function(_0x328557){'use strict';_0x328557['exports']=window['Formio'];},0x193:function(_0x11cfbc,_0x2af6c1,_0x71b3e1){'use strict';Object['defineProperty'](_0x2af6c1,'__esModule',{'value':!0x0});const _0x3619e9=_0x71b3e1(0x1ab);_0x2af6c1['default']={'form':_0x3619e9['default']};},0x197:function(_0x390929,_0x55fe50,_0x438426){'use strict';Object['defineProperty'](_0x55fe50,'__esModule',{'value':!0x0});const _0x253deb=_0x438426(0x27f);_0x55fe50['default']={'form':_0x253deb['default']};},0x1ab:function(_0x155380,_0x45d051){Object['defineProperty'](_0x45d051,'__esModule',{'value':!0x0}),_0x45d051['default']=function(_0x4aef0e){var _0x2badac,_0x59a41f='';return Array['prototype']['join'],_0x59a41f+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x2badac=!0x0!==_0x4aef0e['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x2badac)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x2badac=_0x4aef0e['t']('eSignature'))?'':_0x2badac)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x2badac=_0x4aef0e['t'](!0x0!==_0x4aef0e['esign']['valid']?'invalid':'verified'))?'':_0x2badac)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x4aef0e['pdfForm']&&!0x0!==_0x4aef0e['esign']['valid']&&(_0x59a41f+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x2badac=_0x4aef0e['esignInvalidMessage'])?'':_0x2badac)+'</div>\x0a\x20\x20\x20\x20'),_0x59a41f+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x4aef0e['pdfForm']&&(_0x59a41f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('Signed\x20by'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['user']?.['data']||_0x4aef0e['esign']?.['signature']?.['user']?.['_id'])?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('Signed\x20on'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=new Date(_0x4aef0e['esign']?.['created'])['toLocaleString']())?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x59a41f+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('ID'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['_id']||'-')?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('Path'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['valuePath']||'-')?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('Submission\x20Rev.'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('Form\x20Rev.'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x2badac=_0x4aef0e['t']('User\x20ID'))?'':_0x2badac)+':</span><span>'+(null==(_0x2badac=_0x4aef0e['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x2badac)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203:function(_0x4ba9e,_0x48f5e5){'use strict';Object['defineProperty'](_0x48f5e5,'__esModule',{'value':!0x0}),_0x48f5e5['default']='esignature';},0x268:function(_0x2f4567,_0xbd667f,_0x221cc5){'use strict';Object['defineProperty'](_0xbd667f,'__esModule',{'value':!0x0});const _0x5af029=_0x221cc5(0x356),_0x300e4e=_0x221cc5(0x3e0),_0x3f1e86=_0x221cc5(0x36c);_0xbd667f['default']={'esignature':_0x5af029['default'],'esignStamp':_0x300e4e['default'],'esignTooltip':_0x3f1e86['default']};},0x26e:function(_0xb236e4,_0xd1bed4){Object['defineProperty'](_0xd1bed4,'__esModule',{'value':!0x0}),_0xd1bed4['default']=function(_0xa10770){var _0x53677c,_0x72febc='';return Array['prototype']['join'],_0x72febc+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x53677c=!0x0!==_0xa10770['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x53677c)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x53677c=_0xa10770['t']('eSignature'))?'':_0x53677c)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x53677c=_0xa10770['t'](!0x0!==_0xa10770['esign']['valid']?'invalid':'verified'))?'':_0x53677c)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0xa10770['pdfForm']&&!0x0!==_0xa10770['esign']['valid']&&(_0x72febc+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x53677c=_0xa10770['esignInvalidMessage'])?'':_0x53677c)+'</div>\x0a\x20\x20\x20\x20'),_0x72febc+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0xa10770['pdfForm']&&(_0x72febc+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('Signed\x20by'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['user']?.['data']||_0xa10770['esign']?.['signature']?.['user']?.['_id'])?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('Signed\x20on'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=new Date(_0xa10770['esign']?.['created'])['toLocaleString']())?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x72febc+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('ID'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['_id']||'-')?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('Path'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['valuePath']||'-')?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('Submission\x20Rev.'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('Form\x20Rev.'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x53677c=_0xa10770['t']('User\x20ID'))?'':_0x53677c)+':</span><span>'+(null==(_0x53677c=_0xa10770['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x53677c)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f:function(_0x34979f,_0x1bf69d){Object['defineProperty'](_0x1bf69d,'__esModule',{'value':!0x0}),_0x1bf69d['default']=function(_0x134279){var _0x2e29f6,_0x4a0e69='';return Array['prototype']['join'],_0x134279['esign']&&(_0x4a0e69+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x2e29f6=!0x0===_0x134279['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x2e29f6)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x2e29f6=_0x134279['esignTooltip'])?'':_0x2e29f6)+'\x22\x20class=\x27'+(null==(_0x2e29f6=_0x134279['iconClass'](!0x0!==_0x134279['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x2e29f6)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x134279['esign']['valid']||_0x134279['pdfForm']||(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x2e29f6=_0x134279['esign']?.['signature']?.['user']?.['data']||_0x134279['esign']?.['signature']?.['user']?.['_id'])?'':_0x2e29f6)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x134279['esign']?.['created']&&(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x2e29f6=new Date(_0x134279['esign']['created'])['toLocaleString']())?'':_0x2e29f6)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x134279['esign']['valid']&&_0x134279['pdfForm']&&(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2e29f6=_0x134279['t']('Signed'))?'':_0x2e29f6)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x134279['esign']['valid']&&(_0x4a0e69+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2e29f6=_0x134279['esignInvalidMessage'])?'':_0x2e29f6)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4a0e69+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x4a0e69+'\x0a';};},0x295:function(_0x5854d2,_0x5a3302,_0x53f399){'use strict';Object['defineProperty'](_0x5a3302,'__esModule',{'value':!0x0});const _0x5689e9=_0x53f399(0x170),_0x3a4500=_0x5689e9['Components']['components']['component'],_0x395e95=_0x5689e9['Utils']['_'],_0x402bfd=_0x3a4500['prototype']['init'];_0x3a4500['prototype']['init']=function(){var _0x14685b,_0x583558,_0x1ad584;this['builderMode']||(null===(_0x14685b=this['options'])||void 0x0===_0x14685b?void 0x0:_0x14685b['building'])||(null===(_0x583558=this['options'])||void 0x0===_0x583558?void 0x0:_0x583558['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x1ad584=this['options'])||void 0x0===_0x1ad584?void 0x0:_0x1ad584['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x402bfd['call'](this);},_0x3a4500['prototype']['getEsignConfig']=function(){const _0x3a7c92=this['esign']['signatures']||[];return _0x395e95['find'](_0x3a7c92,_0x503110=>_0x503110['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0x3a4500['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x5547d4;return(null===(_0x5547d4=this['root'])||void 0x0===_0x5547d4?void 0x0:_0x5547d4['esign'])||{};}}),Object['defineProperty'](_0x3a4500['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x395e95['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0x3a4500['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x395e95['replace'](this['path'],this['_parentPath'],'');}}),_0x3a4500['prototype']['attachESignTooltip']=function(_0x3c94e4){(_0x3c94e4=_0x3c94e4||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x3c94e4,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x395e95['map'](this['refs']['esignTooltip']||[],_0x1fb0a8=>this['createTooltip'](_0x1fb0a8,{'theme':'formioEsign'}))));};const _0x56a052=_0x3a4500['prototype']['attach'];_0x3a4500['prototype']['attach']=function(_0x5f3ed5){const _0x55479e=_0x56a052['call'](this,_0x5f3ed5);return this['attachESignTooltip'](_0x5f3ed5),this['attachESignatureValidation'](),_0x55479e;},_0x3a4500['prototype']['setESignature']=function(_0x3dedb3,_0x49ad03){var _0x30a411;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x3dedb3&&_0x49ad03['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x23180f=!_0x395e95['isEqual'](this['eSignature'],_0x3dedb3);this['eSignature']=_0x3dedb3,this['attachESignatureValidation'](),_0x23180f&&(this['eSignature']&&!0x0!==(null===(_0x30a411=this['eSignature'])||void 0x0===_0x30a411?void 0x0:_0x30a411['valid'])&&this['resetValue'](),this['redraw']());},_0x3a4500['prototype']['attachESignatureValidation']=function(){var _0x49d659;!_0x395e95['isEmpty'](this['esignConfig'])&&(null===(_0x49d659=this['eSignature'])||void 0x0===_0x49d659?void 0x0:_0x49d659['valid'])&&this['on']('signedValueChanged',_0x9ecc8=>{var _0x418248;if(!(null===(_0x418248=this['eSignature'])||void 0x0===_0x418248?void 0x0:_0x418248['valid'])||!_0x9ecc8)return;const {valuePath:_0x3db475,compPath:_0x12f9ba,parent:_0x95fd80,customProps:_0x3dffe8}=_0x9ecc8;_0x3dffe8&&this['invalidateESignature'](),_0x3db475===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x12f9ba,_0x95fd80)&&this['invalidateESignature']();});},_0x3a4500['prototype']['invalidateESignature']=function(_0x49523f){this['eSignature']['valid']='The\x20data\x20has\x20changed',_0x49523f||this['resetValue'](),this['redraw']();},_0x3a4500['prototype']['isESignatureDataPath']=function(_0x239e3c,_0x528eec){if(!_0x239e3c)return!0x1;const {signAll:_0x389600,signedData:_0x3252d7=[]}=this['esignConfig']||{};return _0x389600||_0x395e95['some'](_0x3252d7,_0x302dd2=>_0x528eec&&_0x395e95['startsWith'](_0x302dd2,_0x239e3c+'.')||_0x302dd2===_0x239e3c||_0x395e95['startsWith'](_0x239e3c,_0x302dd2+'.'));},_0x3a4500['prototype']['formatEsignTooltip']=function(_0x631a23=''){const _0x5d4575=_0x631a23['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0x5d4575);},_0x3a4500['prototype']['renderESignature']=function(_0x196c45){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x196c45,'eSignStamp':this['renderEsignStamp']()}):_0x196c45;};const _0x496fb5=_0x3a4500['prototype']['render'];_0x3a4500['prototype']['render']=function(_0x3b87cb='Unknown\x20component:\x20'+this['component']['type'],_0x50db67=!0x1){return _0x3b87cb=this['renderESignature'](_0x3b87cb),_0x496fb5['call'](this,_0x3b87cb,_0x50db67);},_0x3a4500['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x100962}=this['esign'],_0x1ae31d={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x4e736e=_0x100962?this['renderString'](_0x100962,_0x1ae31d):this['renderTemplate']('esignTooltip',_0x1ae31d);return this['formatEsignTooltip'](_0x4e736e);};const _0x4389d4=_0x3a4500['prototype']['renderModalPreview'];_0x3a4500['prototype']['renderModalPreview']=function(_0x3ecefa){return this['renderESignature'](_0x4389d4['call'](this,_0x3ecefa));},_0x3a4500['prototype']['getInvalidESigntureMessage']=function(_0x32ffb6){if(!0x0===this['eSignature']['valid'])return'';if(_0x32ffb6)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']}):'';const _0x124362=this['t']('Invalid\x20eSignature.');return'pdf'===this['options']['display']?_0x124362:_0x124362+'\x20'+this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']});},_0x3a4500['prototype']['renderEsignStamp']=function(){const _0x2d1463=this['renderEsignTooltip'](),_0x2ead72={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x2d1463,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x377323}=this['esign'];return _0x377323?this['renderString'](_0x377323,_0x2ead72):this['renderTemplate']('esignStamp',_0x2ead72);},_0x3a4500['prototype']['destroyESignTooltip']=function(){_0x395e95['each'](this['esignTooltip']||[],_0x3277f6=>{var _0x312edd;_0x3277f6&&!(null===(_0x312edd=_0x3277f6['state'])||void 0x0===_0x312edd?void 0x0:_0x312edd['isDestroyed'])&&_0x3277f6['destroy']&&_0x3277f6['destroy']();});};const _0x290b4d=_0x3a4500['prototype']['removeEventListeners'];_0x3a4500['prototype']['removeEventListeners']=function(){_0x290b4d['call'](this),this['destroyESignTooltip']();};const _0x1ffaa4=Object['getOwnPropertyDescriptor'](_0x3a4500['prototype'],'disabled');Object['defineProperty'](_0x3a4500['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x34d129;return _0x1ffaa4['get']['call'](this)||(null===(_0x34d129=this['parent'])||void 0x0===_0x34d129?void 0x0:_0x34d129['disabled'])||this['shouldDisableSignedData']();}}),_0x3a4500['prototype']['shouldDisableSignedData']=function(){return _0x395e95['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0x3a4500['prototype']['isValueSigned']=function(){var _0x34aaca,_0x14be4f;if(!0x0===(null===(_0x34aaca=this['eSignature'])||void 0x0===_0x34aaca?void 0x0:_0x34aaca['valid']))return!0x0;const _0x2858f9=(null===(_0x14be4f=this['root'])||void 0x0===_0x14be4f?void 0x0:_0x14be4f['signedComponentsInfo'])||{};if(null==_0x2858f9?void 0x0:_0x2858f9['all'])return!0x0;const _0xbb12d6=this['jsonPathInLocalRoot'];return _0x395e95['some']((null==_0x2858f9?void 0x0:_0x2858f9['components'])||[],_0x1b473e=>_0xbb12d6===_0x1b473e||_0x395e95['startsWith'](_0xbb12d6,_0x1b473e+'.'));};const _0x4378ac=_0x3a4500['prototype']['checkData'];_0x3a4500['prototype']['checkData']=function(_0x2750d7,_0x17a414,_0x37227e){const _0xa63b62=_0x4378ac['call'](this,_0x2750d7,_0x17a414,_0x37227e);return(null==_0x17a414?void 0x0:_0x17a414['fromSubmission'])||this['validateSignedValue'](),_0xa63b62;},_0x3a4500['prototype']['checkSignedDataChange']=function(_0x27e8d6={}){return this['hasSignedValueChanged'](_0x27e8d6);},_0x3a4500['prototype']['validateSignedValue']=function(){var _0x1ba133;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x1ba133=this['root'])||void 0x0===_0x1ba133?void 0x0:_0x1ba133['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0x3a4500['prototype']['emitSignedValueChange']=function(_0x3782a7){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x3782a7});},_0x3a4500['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x4a4a28,_0x21fb55=this;for(;_0x21fb55&&_0x21fb55['row']&&!_0x4a4a28;)_0x21fb55=_0x21fb55['parent'],'tagpad'===_0x21fb55['type']&&(_0x4a4a28=_0x21fb55);if(_0x4a4a28){const _0x44f25e=_0x395e95['split'](this['pathInLocalRoot'],new RegExp('^'+_0x4a4a28['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x395e95['split'](this['pathInLocalRoot'],_0x44f25e)[0x0]+'.data'+_0x44f25e;}}return this['pathInLocalRoot'];},_0x3a4500['prototype']['compareSignedValue']=function(_0xa3f307){return!this['isEqual'](_0x395e95['isNil'](_0xa3f307)?this['emptyValue']:_0xa3f307,_0x395e95['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0x3a4500['prototype']['hasSignedValueChanged']=function(_0x2661a8={}){var _0x2fbcd3,_0x17e797;const {checkAll:_0x1ab9d9,signedData:_0x3f521d}=_0x2661a8,_0x1e6fa2=_0x1ab9d9||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x1e6fa2)return!0x1;const _0x1e65b3=_0x3f521d||(null===(_0x17e797=null===(_0x2fbcd3=this['root'])||void 0x0===_0x2fbcd3?void 0x0:_0x2fbcd3['signedSubmission'])||void 0x0===_0x17e797?void 0x0:_0x17e797['data']);if(!_0x1e65b3)return!0x1;const _0x203361=_0x395e95['get'](_0x1e65b3,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x203361);},_0x3a4500['prototype']['hasSignedChildren']=_0x30d334=>!0x1,_0x5a3302['default']=_0x3a4500;},0x2bb:function(_0x38deee,_0xa551a2,_0x480935){'use strict';Object['defineProperty'](_0xa551a2,'__esModule',{'value':!0x0});const _0x5684d0=_0x480935(0x170)['Components']['components']['componentmodal'],_0x3e4af0=_0x5684d0['prototype']['setOpenEventListener'];_0x5684d0['prototype']['setOpenEventListener']=function(){_0x3e4af0['call'](this),this['component']['attachESignTooltip']();},_0xa551a2['default']=_0x5684d0;},0x2bd:function(_0x567a22,_0xbb65f9,_0x9c3302){'use strict';Object['defineProperty'](_0xbb65f9,'__esModule',{'value':!0x0});const _0x293041=_0x9c3302(0x170),_0x965b8d=_0x293041['Components']['components']['nested'],_0x480c8e=_0x293041['Utils']['_'];_0x965b8d['prototype']['hasSignedValueChanged']=()=>!0x1,_0x965b8d['prototype']['checkSignedDataChange']=function(_0x7c6355={}){const {checkAll:_0x5598f2}=_0x7c6355;return!(!_0x5598f2&&!this['hasSignedChildren']())&&_0x480c8e['some'](this['getComponents']()||[],_0x3ec486=>_0x3ec486['checkSignedDataChange'](_0x7c6355));},_0x965b8d['prototype']['hasSignedChildren']=function(){var _0x4f448c;const _0x2db611=(null===(_0x4f448c=this['root'])||void 0x0===_0x4f448c?void 0x0:_0x4f448c['signedComponentsInfo'])||{};if(null==_0x2db611?void 0x0:_0x2db611['all'])return!0x0;const _0xd20cb6=this['jsonPathInLocalRoot'];return _0x480c8e['some']((null==_0x2db611?void 0x0:_0x2db611['components'])||[],_0xef5255=>_0xd20cb6===_0xef5255||_0x480c8e['startsWith'](_0xd20cb6,_0xef5255+'.'||_0x480c8e['startsWith'](_0xef5255,_0xd20cb6+'.')));},_0xbb65f9['default']=_0x965b8d;},0x2bf:function(_0x12fb54,_0x5c4bdc,_0x9958a5){'use strict';Object['defineProperty'](_0x5c4bdc,'__esModule',{'value':!0x0});const _0x4c2648=_0x9958a5(0x170),_0x4d2642=_0x4c2648['Components']['components']['form'],_0x39569b=(_0x4c2648['Utils']['_'],_0x4d2642['prototype']['onSetSubFormValue']);_0x4d2642['prototype']['onSetSubFormValue']=function(_0x39d9d1,_0x3a3e24){const _0x26dc56=(null==_0x3a3e24?void 0x0:_0x3a3e24['fromSubmission'])&&this['subForm'];_0x26dc56&&this['subForm']['setSignedSubmission'](_0x39d9d1),_0x39569b['call'](this,_0x39d9d1,_0x3a3e24),_0x26dc56&&this['subForm']['setESignatures'](_0x39d9d1);};const _0x145fa4=_0x4d2642['prototype']['getSubOptions'];_0x4d2642['prototype']['getSubOptions']=function(_0x355765={}){return _0x355765['parentPath']=this['path']+'.data.',_0x145fa4['call'](this,_0x355765);},_0x4d2642['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x4d2642['prototype']['compareSignedValue']=function(_0x193523){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x193523});};const _0x16d3ea=_0x4d2642['prototype']['isInternalEvent'];_0x4d2642['prototype']['isInternalEvent']=function(_0x23e51e){return _0x16d3ea['call'](this,_0x23e51e)||'signedValueChanged'===_0x23e51e;},_0x5c4bdc['default']=_0x4d2642;},0x2c1:function(_0x17fc21,_0x104f82,_0x3b3fb3){'use strict';Object['defineProperty'](_0x104f82,'__esModule',{'value':!0x0});const _0x6d6bbb=_0x3b3fb3(0x170),_0x11cc51=_0x6d6bbb['Components']['components']['nestedarray'],_0x2df443=_0x6d6bbb['Utils']['_'];_0x11cc51['prototype']['hasSignedValueChanged']=function(_0x10e0b0={}){var _0x5de0b3,_0x241d39;const {checkAll:_0x3a93ce,signedData:_0xe1860d}=_0x10e0b0;if(_0x3a93ce||this['hasSignedChildren']()){const _0xb3f6f0=_0x2df443['get'](_0xe1860d||(null===(_0x241d39=null===(_0x5de0b3=this['root'])||void 0x0===_0x5de0b3?void 0x0:_0x5de0b3['signedSubmission'])||void 0x0===_0x241d39?void 0x0:_0x241d39['data']),this['getValuePathInSignedData']());if(_0x2df443['keys'](this['dataValue'])['length']!==_0x2df443['keys'](_0xb3f6f0)['length'])return!0x0;}return!0x1;},_0x104f82['default']=_0x11cc51;},0x2ed:function(_0x39a8ac,_0x5f1803){Object['defineProperty'](_0x5f1803,'__esModule',{'value':!0x0}),_0x5f1803['default']=function(_0x5a400f){var _0x3e48a0;return''+((null==(_0x3e48a0=_0x5a400f['children'])?'':_0x3e48a0)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x3e48a0=_0x5a400f['eSignStamp'])?'':_0x3e48a0)+'</div>\x0a';};},0x2f5:function(_0x3a0710,_0x41b739,_0x26ff9f){'use strict';Object['defineProperty'](_0x41b739,'__esModule',{'value':!0x0});const _0xfcb372=_0x26ff9f(0x14e);_0x41b739['default']={'webform':_0xfcb372['default']};},0x339:function(_0x23b93a,_0xdb93e3,_0x2cfaa4){'use strict';Object['defineProperty'](_0xdb93e3,'__esModule',{'value':!0x0});const _0xf72ae9=_0x2cfaa4(0x39d),_0x25fef8=_0x2cfaa4(0x197),_0x3e68bc=_0x2cfaa4(0x193);_0xdb93e3['default']={'esignature':_0xf72ae9['default'],'esignStamp':_0x25fef8['default'],'esignTooltip':_0x3e68bc['default']};},0x34a:function(_0x11047e,_0x567e29){Object['defineProperty'](_0x567e29,'__esModule',{'value':!0x0}),_0x567e29['default']=function(_0x13528e){var _0x1263a3,_0x550484='';return Array['prototype']['join'],_0x13528e['esign']&&(_0x550484+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x1263a3=!0x0===_0x13528e['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x1263a3)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x1263a3=_0x13528e['esignTooltip'])?'':_0x1263a3)+'\x22\x20class=\x27'+(null==(_0x1263a3=_0x13528e['esignIconClass'])?'':_0x1263a3)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x13528e['esign']['valid']||_0x13528e['pdfForm']||(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x1263a3=_0x13528e['esign']?.['signature']?.['user']?.['data']||_0x13528e['esign']?.['signature']?.['user']?.['_id'])?'':_0x1263a3)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x13528e['esign']?.['created']&&(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x1263a3=new Date(_0x13528e['esign']['created'])['toLocaleString']())?'':_0x1263a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x13528e['esign']['valid']&&_0x13528e['pdfForm']&&(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x1263a3=_0x13528e['t']('Signed'))?'':_0x1263a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x13528e['esign']['valid']&&(_0x550484+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x1263a3=_0x13528e['esignInvalidMessage'])?'':_0x1263a3)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x550484+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x550484+'\x0a';};},0x356:function(_0x6f629c,_0x391ff6,_0x1c9f29){'use strict';Object['defineProperty'](_0x391ff6,'__esModule',{'value':!0x0});const _0x19f012=_0x1c9f29(0x0);_0x391ff6['default']={'form':_0x19f012['default']};},0x36c:function(_0x569bc9,_0x44c84c,_0x57704f){'use strict';Object['defineProperty'](_0x44c84c,'__esModule',{'value':!0x0});const _0x17edaf=_0x57704f(0x26e);_0x44c84c['default']={'form':_0x17edaf['default']};},0x39d:function(_0x2c3039,_0x503c80,_0x4e6d59){'use strict';Object['defineProperty'](_0x503c80,'__esModule',{'value':!0x0});const _0x17aa9b=_0x4e6d59(0x2ed);_0x503c80['default']={'form':_0x17aa9b['default']};},0x3c9:function(_0x45159a,_0x3bf56c,_0x2fe41c){'use strict';Object['defineProperty'](_0x3bf56c,'__esModule',{'value':!0x0});const _0x35878d=_0x2fe41c(0x268),_0x62d796=_0x2fe41c(0x339);_0x3bf56c['default']={'bootstrap':_0x35878d['default'],'bootstrap3':_0x62d796['default'],'bootstrap4':_0x35878d['default'],'bootstrap5':_0x35878d['default']};},0x3e0:function(_0xdb217c,_0xb79c58,_0x5318d1){'use strict';Object['defineProperty'](_0xb79c58,'__esModule',{'value':!0x0});const _0x1e98c6=_0x5318d1(0x34a);_0xb79c58['default']={'form':_0x1e98c6['default']};}},_0x305c68={};function _0x560d91(_0x35efc4){var _0x152398=_0x305c68[_0x35efc4];if(void 0x0!==_0x152398)return _0x152398['exports'];var _0x530de6=_0x305c68[_0x35efc4]={'exports':{}};return _0x3cc44a[_0x35efc4](_0x530de6,_0x530de6['exports'],_0x560d91),_0x530de6['exports'];}var _0x572a90={};return(function(){'use strict';var _0x2a4aea=_0x572a90;const _0x55eefa=_0x560d91(0x15e),_0x24580b=_0x560d91(0x3c9),_0x594d19=_0x560d91(0x203),_0xea2292=_0x560d91(0x2f5);_0x2a4aea['default']={'components':_0x55eefa['default'],'templates':_0x24580b['default'],'library':_0x594d19['default'],'displays':_0xea2292['default']};}()),_0x572a90['default'];}());});
|
|
1
|
+
!function(_0x35ce34,_0x3ac81e){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x3ac81e():'function'==typeof define&&define['amd']?define([],_0x3ac81e):'object'==typeof exports?exports['esignature']=_0x3ac81e():_0x35ce34['esignature']=_0x3ac81e();}(self,function(){return(function(){var _0x11e4f5={0x0(_0xcc485e,_0x4003e4){Object['defineProperty'](_0x4003e4,'__esModule',{'value':!0x0}),_0x4003e4['default']=function(_0x16aeb9){var _0x189868;return''+((null==(_0x189868=_0x16aeb9['children'])?'':_0x189868)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x189868=_0x16aeb9['eSignStamp'])?'':_0x189868)+'</div>\x0a';};},0xfd(_0x23a686,_0x67b12d){'use strict';function _0x5d51ec(_0x178d0e){return!Number['isNaN'](Date['parse'](_0x178d0e));}function _0x623f8e(_0x40dd75){return(_0x40dd75=_0x40dd75['replace'](/\*\./,'(\x5cS+\x5c.)?')['replace'](/([A-Za-z0-9])\.([A-Za-z0-9])/g,'$1\x5c.$2'))['match'](/^\(+?http|capacitor/)||(_0x40dd75='((http[s]?|capacitor)://)?'+_0x40dd75),_0x40dd75;}Object['defineProperty'](_0x67b12d,'__esModule',{'value':!0x0}),_0x67b12d['isValidDate']=_0x5d51ec,_0x67b12d['dateStringToMilliseconds']=function(_0x145e8){if(!_0x5d51ec(_0x145e8))throw new Error('Provided\x20invalid\x20date\x20string.');return new Date(_0x145e8)['getTime']();},_0x67b12d['normalizeUrl']=_0x623f8e,_0x67b12d['capitalize']=function(_0x363e91){return'string'!=typeof _0x363e91?'':''+_0x363e91['charAt'](0x0)['toUpperCase']()+_0x363e91['slice'](0x1)['toLowerCase']();},_0x67b12d['isAllowedUrl']=function(_0x29978f=[],_0x1fe595){return['file://(.*)','((http[s]?|capacitor)://)?(\x5cS+\x5c.)?localhost(:[0-9]+)?','((http[s]?|capacitor)://)?(\x5cS+\x5c.)?lvh.me(:[0-9]+)?','((http[s]?|capacitor)://)?(\x5cS+\x5c.)?\x5cS+\x5c.local(:[0-9]+)?']['concat'](_0x29978f=_0x29978f||[])['some'](_0x1fad95=>new RegExp('^'+_0x623f8e(_0x1fad95),'i')['test'](_0x1fe595));};},0x10d(_0x15033f,_0x54a8bf,_0x522ffe){'use strict';Object['defineProperty'](_0x54a8bf,'__esModule',{'value':!0x0});const _0x2cea55=_0x522ffe(0x170),_0x3f8caf=_0x2cea55['Components']['components']['address'],_0x152e32=_0x2cea55['Utils']['_'];_0x3f8caf['prototype']['hasSignedValueChanged']=function(_0x37eae3={}){var _0x389fe7,_0x1b0977;const {checkAll:_0xb84b2c,signedData:_0x5d1ed4}=_0x37eae3;if(_0xb84b2c||this['isValueSigned']()){const _0x50aa23=_0x152e32['get'](_0x5d1ed4||(null===(_0x1b0977=null===(_0x389fe7=this['root'])||void 0x0===_0x389fe7?void 0x0:_0x389fe7['signedSubmission'])||void 0x0===_0x1b0977?void 0x0:_0x1b0977['data']),this['getValuePathInSignedData']());return!_0x152e32['isEqual'](_0x50aa23,this['dataValue']);}return!0x1;},_0x54a8bf['default']=_0x3f8caf;},0x14e(_0x4b1d73,_0x32d1e3,_0x5b4cb8){'use strict';Object['defineProperty'](_0x32d1e3,'__esModule',{'value':!0x0});const _0x1e7bc5=_0x5b4cb8(0x170),_0x3ef376=_0x1e7bc5['Displays']['getDisplay']('webform'),_0x511491=_0x1e7bc5['Utils']['_'];Object['defineProperty'](_0x3ef376['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x441690,_0x5989cc;return!_0x511491['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0x511491['some'](null===(_0x441690=this['_submission'])||void 0x0===_0x441690?void 0x0:_0x441690['eSignatures'],_0x23641e=>!0x0===_0x23641e['valid'])&&!!(null===(_0x5989cc=this['esign']['signatures'])||void 0x0===_0x5989cc?void 0x0:_0x5989cc['length']);}}),Object['defineProperty'](_0x3ef376['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0xe47c6d;return(null===(_0xe47c6d=this['form'])||void 0x0===_0xe47c6d?void 0x0:_0xe47c6d['esign'])||{};}}),Object['defineProperty'](_0x3ef376['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x22e591=_0x511491['filter'](_0x511491['get'](this['submission'],'eSignatures',[]),_0x1e74dc=>!0x0===_0x1e74dc['valid']),_0x55fa40=this['esign']['signatures']||[],_0x54b0a2={'all':!0x1,'components':[]};return _0x511491['isEmpty'](_0x22e591||_0x511491['isEmpty'](_0x55fa40))||(_0x511491['each'](_0x22e591,_0x322274=>{if(_0x54b0a2['all'])return;const {compPath:_0x5846c8}=_0x322274['signature']||{},_0x1b0499=_0x511491['find'](_0x55fa40,_0x206241=>_0x206241['component']===_0x5846c8);_0x1b0499['signAll']&&(_0x54b0a2['all']=!0x0,_0x54b0a2['components']=[]),_0x54b0a2['components']=_0x511491['concat'](_0x54b0a2['components'],_0x1b0499['signedData']||[]);}),_0x54b0a2['components']['length']&&(_0x54b0a2['components']=_0x511491['uniq'](_0x54b0a2['components']))),_0x54b0a2;}});const _0x116c9f=_0x3ef376['prototype']['setSubmission'];_0x3ef376['prototype']['setSubmission']=function(_0x9a1310,_0xf1f4e1){return this['setSignedSubmission'](_0x9a1310),_0x116c9f['call'](this,_0x9a1310,_0xf1f4e1);},_0x3ef376['prototype']['setSignedSubmission']=function(_0x551ce5){var _0x5b5572;if((null===(_0x5b5572=this['esign']['signatures'])||void 0x0===_0x5b5572?void 0x0:_0x5b5572['length'])&&_0x511491['some'](_0x511491['get'](_0x551ce5,'eSignatures',[]),_0x21643a=>!0x0===_0x21643a['valid'])){const _0x282ff3=_0x511491['omit'](_0x551ce5,['eSignatures']);this['signedSubmission']=_0x1e7bc5['Utils']['fastCloneDeep'](_0x282ff3);}else this['signedSubmission']=null;};const _0x3fb59b=_0x3ef376['prototype']['onSetSubmission'];_0x3ef376['prototype']['onSetSubmission']=function(_0x15fa8e,_0xc6f81b={}){_0x3fb59b['call'](this,_0x15fa8e,_0xc6f81b),this['setESignatures'](_0x15fa8e,_0xc6f81b);},_0x3ef376['prototype']['setESignatures']=function(_0x3f9fe1={},_0xfc167d={}){const _0x1d636=this['esign']['signatures']||[];if(!_0x1d636['length'])return;const _0x35d09d=_0x511491['groupBy'](_0x511491['get'](_0x3f9fe1,'eSignatures',[]),'signature.valuePath');_0x511491['each'](_0x1d636,_0xfaf410=>{if(_0xfaf410['component']){let _0x24d37d=this['getComponent'](_0xfaf410['component'])||[];_0x24d37d=_0x511491['isArray'](_0x24d37d)?_0x24d37d:[_0x24d37d],_0x511491['each'](_0x24d37d,_0xddf619=>{_0xddf619['setESignature'](_0x511491['get'](_0x35d09d[_0xddf619['jsonPathInLocalRoot']],'[0]',null),_0xfc167d);});}}),_0xfc167d['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0x511491['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x42aa05=_0x3ef376['prototype']['checkData'];_0x3ef376['prototype']['checkData']=function(_0x1fcc97,_0xd044e2){const _0x42c8d6=_0x42aa05['call'](this,_0x1fcc97,_0xd044e2);return(null==_0xd044e2?void 0x0:_0xd044e2['fromSubmission'])||this['validateESignatureCustomProps'](),_0x42c8d6;},_0x3ef376['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x26fe7b=''}=this['esign'];if(!_0x26fe7b||!this['shouldValidateESignatures']())return;const _0x4b7590={},_0xb7736c={},_0x2ecbfa=_0x511491['chain'](_0x26fe7b)['split'](',')['map'](_0xa29c2a=>_0x511491['trim'](_0xa29c2a))['value']();_0x511491['each'](_0x2ecbfa||[],_0x36956d=>{_0x511491['set'](_0x4b7590,_0x36956d,_0x511491['get'](this['signedSubmission'],_0x36956d)),_0x511491['set'](_0xb7736c,_0x36956d,_0x511491['get'](this['submission'],_0x36956d));}),_0x511491['isEqual'](_0x4b7590,_0xb7736c)||this['emitSignedValueChange'](!0x0);},_0x3ef376['prototype']['shouldValidateESignatures']=function(){var _0x17e546,_0x3293c7,_0x5e421f;return!(_0x511491['isEmpty'](_0x511491['filter']((null===(_0x17e546=this['submission'])||void 0x0===_0x17e546?void 0x0:_0x17e546['eSignatures'])||[],_0x27fb6c=>!0x0===(null==_0x27fb6c?void 0x0:_0x27fb6c['valid'])))||_0x511491['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x3293c7=this['submission'])||void 0x0===_0x3293c7?void 0x0:_0x3293c7['_id'])!==(null===(_0x5e421f=this['signedSubmission'])||void 0x0===_0x5e421f?void 0x0:_0x5e421f['_id']));},_0x32d1e3['default']=_0x3ef376;},0x15e(_0x931f08,_0x493ae5,_0x497217){'use strict';Object['defineProperty'](_0x493ae5,'__esModule',{'value':!0x0});const _0x5a4847=_0x497217(0x295),_0x1d6916=_0x497217(0x2bd),_0x92f431=_0x497217(0x2c1),_0x342420=_0x497217(0x2bf),_0x2fe1a2=_0x497217(0x2bb),_0x50aafb=_0x497217(0x10d);_0x493ae5['default']={'component':_0x5a4847['default'],'nested':_0x1d6916['default'],'nestedarray':_0x92f431['default'],'form':_0x342420['default'],'componentmodal':_0x2fe1a2['default'],'address':_0x50aafb['default']};},0x170(_0x3b1ea8){'use strict';_0x3b1ea8['exports']=window['Formio'];},0x174(_0x56eb75,_0x5c67c6,_0x18adc9){'use strict';var _0x1ff6ec=this&&this['__awaiter']||function(_0x5b1a27,_0x2308ba,_0x2d010f,_0x5ed1f1){return new(_0x2d010f||(_0x2d010f=Promise))(function(_0x2194f3,_0xbd77bf){function _0x1abf3a(_0x40a0c9){try{_0x23a11a(_0x5ed1f1['next'](_0x40a0c9));}catch(_0x29d04f){_0xbd77bf(_0x29d04f);}}function _0x1a3410(_0x109cde){try{_0x23a11a(_0x5ed1f1['throw'](_0x109cde));}catch(_0xab9e9d){_0xbd77bf(_0xab9e9d);}}function _0x23a11a(_0x44ee91){var _0xee4396;_0x44ee91['done']?_0x2194f3(_0x44ee91['value']):(_0xee4396=_0x44ee91['value'],_0xee4396 instanceof _0x2d010f?_0xee4396:new _0x2d010f(function(_0x27628d){_0x27628d(_0xee4396);}))['then'](_0x1abf3a,_0x1a3410);}_0x23a11a((_0x5ed1f1=_0x5ed1f1['apply'](_0x5b1a27,_0x2308ba||[]))['next']());});};Object['defineProperty'](_0x5c67c6,'__esModule',{'value':!0x0}),_0x5c67c6['isAllowedUrl']=_0x5c67c6['OfflineLibraryLicense']=void 0x0;const _0x21b4ce=_0x18adc9(0x23c),_0xa9f2a0=_0x18adc9(0xfd);Object['defineProperty'](_0x5c67c6,'isAllowedUrl',{'enumerable':!0x0,'get':function(){return _0xa9f2a0['isAllowedUrl'];}});class _0x986756 extends Error{constructor(_0x243bc9,_0x15909b){super(_0x243bc9?_0x986756['errorMessagePrefix']+'\x0a'+_0x243bc9:_0x986756['errorMessagePrefix']+'\x0aUnexpected\x20error\x20occurred.'),this['softFailLicenseExpiration']=!0x1,this['softFailLicenseExpiration']=_0x15909b;}}_0x986756['errorMessagePrefix']='Library\x20License\x20check\x20error:',_0x5c67c6['OfflineLibraryLicense']=class{constructor(_0x4b46d8,_0xe93855){this['libraryName']=_0x4b46d8,this['injectedPublicKey']=_0xe93855,this['publicKey']='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA18xeGY0UiaVCjhkJeb68\x0aIHs/MkytZSeZwL75gySrVnVF6VI36CrEZe1hSZwXgufGVSLm2+Ec3KXeLLNtGFYP\x0aHzx66kPl6jRc1/7RnZdEQYeANDNg/BhlG+54Eu4dczp17agImfehsAyEIctvlL63\x0ayRAGqnoBWt1Khxfa5ocqtbZaep+3PI9yTgbyiYw/9rBYI5U8NiTPti9xt/jw/phe\x0aborJ64CeCQB/ipCFYgRj+WlnskDkL1/0TMi+4Hsu4eZSTZP7Mx6+qmjAGF9ahQmL\x0aIR7SEwFmVZK8aBe4knBKkL9IjOFl60Pjx4LoLvbpjIKCoM91pz2lMOoMHJIxhhwp\x0akQIDAQAB\x0a-----END\x20PUBLIC\x20KEY-----\x0a';}['checkTerms'](){var _0x1e2b3,_0x754165;if(this['libraryName']&&!(null===(_0x754165=null===(_0x1e2b3=this['parsedLicenseKey'])||void 0x0===_0x1e2b3?void 0x0:_0x1e2b3['terms'])||void 0x0===_0x754165?void 0x0:_0x754165[this['libraryName']]))throw new _0x986756((0x0,_0xa9f2a0['capitalize'])(this['libraryName'])+'\x20is\x20disabled\x20in\x20your\x20license.');}['checkExpiration'](){let {exp:_0x58caa4,failDate:_0x4b2bfb}=this['parsedLicenseKey'];if(!_0x58caa4)return;let _0x4817b9=!0x1;const _0x13ef25=Math['floor'](Date['now']()/0x3e8);switch(typeof _0x58caa4){case'string':_0x4817b9=(0x0,_0xa9f2a0['dateStringToMilliseconds'])(_0x58caa4)<_0x13ef25;break;case'number':case'object':_0x4817b9=_0x58caa4<_0x13ef25;break;default:throw new _0x986756('Invalid\x20expiration\x20date\x20provided.');}if(_0x4b2bfb=function(_0x12c6a8){return _0x12c6a8>0xe8d4a51000?Math['floor'](_0x12c6a8/0x3e8):_0x12c6a8;}(_0x4b2bfb),_0x4817b9)throw _0x13ef25<_0x4b2bfb?new _0x986756('Your\x20Library\x20License\x20has\x20expired.\x20Please\x20contact\x20sales@form.io\x20to\x20renew\x20it',!0x0):new _0x986756('License\x20is\x20expired');}['checkAllowedHostnames'](){var _0xa6b468;let {hostnames:_0x24f523}=null===(_0xa6b468=this['parsedLicenseKey'])||void 0x0===_0xa6b468?void 0x0:_0xa6b468['terms'];const _0x4fdb9b=window['location']['protocol']+'//'+window['location']['hostname'];if(!(0x0,_0xa9f2a0['isAllowedUrl'])(_0x24f523,_0x4fdb9b))throw new _0x986756('Current\x20hostname\x20('+_0x4fdb9b+')\x20is\x20not\x20allowed.');}['checkAllowedEndpoints'](_0x299a38,_0x4295ad){return _0x1ff6ec(this,void 0x0,void 0x0,function*(){var _0x261584;if(!this['parsedLicenseKey']){if(!_0x4295ad)throw new _0x986756('License\x20Key\x20should\x20be\x20provided\x20to\x20verify\x20allowed\x20endpoints.');this['parsedLicenseKey']=yield this['parseKey'](_0x4295ad);}let {endpoints:_0x4a36fc}=null===(_0x261584=this['parsedLicenseKey'])||void 0x0===_0x261584?void 0x0:_0x261584['terms'];if('undefined'!=typeof window&&window['Formio']){const _0xb4a291=window['Formio']['getProjectUrl'](),_0x3fde86=window['Formio']['getBaseUrl']();if(!(0x0,_0xa9f2a0['isAllowedUrl'])(_0x4a36fc,_0xb4a291)&&!(0x0,_0xa9f2a0['isAllowedUrl'])(_0x4a36fc,_0x3fde86))throw new _0x986756('Formio.projectUrl\x20and\x20Formio.baseUrl\x20are\x20not\x20allowed\x20for\x20this\x20license.');}else{if(!(0x0,_0xa9f2a0['isAllowedUrl'])(_0x4a36fc,_0x299a38))throw new _0x986756('Endpoint\x20'+_0x299a38+'\x20is\x20not\x20allowed\x20for\x20this\x20license.');}});}['parseKey'](_0x14d397){return _0x1ff6ec(this,void 0x0,void 0x0,function*(){try{const {payload:_0x54348c}=yield(0x0,_0x21b4ce['compactVerify'])(_0x14d397,yield(0x0,_0x21b4ce['importSPKI'])(this['injectedPublicKey']||this['publicKey'],'PS256'));return JSON['parse'](new TextDecoder('utf-8')['decode'](_0x54348c));}catch(_0x2f16f4){throw console['error']('Error\x20parsing\x20Library\x20License\x20key:\x20'+_0x2f16f4['message']),new _0x986756('Invalid\x20key\x20provided.');}});}['verify'](_0x1d93bf){return _0x1ff6ec(this,arguments,void 0x0,function*(_0x48c40b,_0x540946=!0x0){if(!_0x48c40b)throw new _0x986756('License\x20key\x20not\x20provided.');try{this['parsedLicenseKey']=yield this['parseKey'](_0x48c40b),this['checkTerms'](),this['checkExpiration'](),_0x540946&&this['checkAllowedHostnames']();}catch(_0x1e40ce){throw _0x1e40ce instanceof _0x986756?_0x1e40ce:(console['error']('Unexpected\x20Library\x20License\x20verify\x20error:\x20'+_0x1e40ce['message']),new _0x986756());}});}['generate'](_0x1266f7,_0x1fb45c){return _0x1ff6ec(this,void 0x0,void 0x0,function*(){const _0x32bdff=yield(0x0,_0x21b4ce['importPKCS8'])(_0x1fb45c,'PS256');return yield new _0x21b4ce['CompactSign'](new TextEncoder()['encode'](JSON['stringify'](_0x1266f7)))['setProtectedHeader']({'alg':'PS256'})['sign'](_0x32bdff);});}};},0x190(_0x330e1f,_0x1a1c1a,_0xfba8fe){'use strict';var _0x39d498=this&&this['__awaiter']||function(_0x33aa0e,_0x382548,_0x264101,_0x42f08e){return new(_0x264101||(_0x264101=Promise))(function(_0x108267,_0x131a4d){function _0x3f613c(_0x5ee869){try{_0x48589d(_0x42f08e['next'](_0x5ee869));}catch(_0x57164d){_0x131a4d(_0x57164d);}}function _0x25b30d(_0x513f90){try{_0x48589d(_0x42f08e['throw'](_0x513f90));}catch(_0xae7f2a){_0x131a4d(_0xae7f2a);}}function _0x48589d(_0x59b901){var _0x119c94;_0x59b901['done']?_0x108267(_0x59b901['value']):(_0x119c94=_0x59b901['value'],_0x119c94 instanceof _0x264101?_0x119c94:new _0x264101(function(_0xa70f33){_0xa70f33(_0x119c94);}))['then'](_0x3f613c,_0x25b30d);}_0x48589d((_0x42f08e=_0x42f08e['apply'](_0x33aa0e,_0x382548||[]))['next']());});};Object['defineProperty'](_0x1a1c1a,'__esModule',{'value':!0x0}),_0x1a1c1a['checkLicense']=_0x1a1c1a['checkEndpointAllowed']=_0x1a1c1a['verifyLicense']=void 0x0;const _0x364f65=new(_0xfba8fe(0x174))['OfflineLibraryLicense']('esign'),_0x2a416b=_0xd45168=>_0x39d498(void 0x0,void 0x0,void 0x0,function*(){var _0x3fb874;if(!(null===(_0x3fb874=null===window||void 0x0===window?void 0x0:window['Formio'])||void 0x0===_0x3fb874?void 0x0:_0x3fb874['license']))throw new Error('You\x20need\x20to\x20set\x20the\x20license\x20key\x20in\x20order\x20to\x20use\x20the\x20\x27@formio/esignature\x27\x20library.\x20\x0a\x20You\x20can\x20do\x20it\x20this\x20way:\x20Formio.license\x20=\x20\x22YourLicenseKey\x22;');yield _0xd45168();});function _0x370ab0(){return _0x39d498(this,void 0x0,void 0x0,function*(){yield _0x2a416b(()=>_0x364f65['verify'](window['Formio']['license']));});}function _0x53d841(_0x4f04f7){return _0x39d498(this,void 0x0,void 0x0,function*(){yield _0x2a416b(()=>_0x364f65['checkAllowedEndpoints'](_0x4f04f7,window['Formio']['license']));});}_0x1a1c1a['verifyLicense']=_0x370ab0,_0x1a1c1a['checkEndpointAllowed']=_0x53d841;let _0x1b5b4b,_0x47d854=!0x1,_0x129fea=!0x1;_0x1a1c1a['checkLicense']=function(_0x5bf278){return _0x39d498(this,void 0x0,void 0x0,function*(){if(!_0x129fea){if(_0x47d854){if(!_0x129fea)throw new Error(_0x1b5b4b);}else try{yield _0x370ab0(),yield _0x53d841(_0x5bf278),_0x47d854=!0x0,_0x129fea=!0x0;}catch(_0x307605){if(_0x47d854)throw new Error(_0x307605);throw alert(_0x307605),_0x1b5b4b=_0x307605,_0x47d854=!0x0,new Error(_0x307605);}}});};},0x193(_0x393841,_0x10d5e1,_0x4e8347){'use strict';Object['defineProperty'](_0x10d5e1,'__esModule',{'value':!0x0});const _0x3962e3=_0x4e8347(0x1ab);_0x10d5e1['default']={'form':_0x3962e3['default']};},0x197(_0x4ce822,_0x140625,_0x4b069c){'use strict';Object['defineProperty'](_0x140625,'__esModule',{'value':!0x0});const _0x418f90=_0x4b069c(0x27f);_0x140625['default']={'form':_0x418f90['default']};},0x1ab(_0x1fc48d,_0x3de968){Object['defineProperty'](_0x3de968,'__esModule',{'value':!0x0}),_0x3de968['default']=function(_0x462cae){var _0x19a2a6,_0x4fef4c='';return Array['prototype']['join'],_0x4fef4c+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x19a2a6=!0x0!==_0x462cae['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x19a2a6)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x19a2a6=_0x462cae['t']('Digital\x20Signature'))?'':_0x19a2a6)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x19a2a6=_0x462cae['t'](!0x0!==_0x462cae['esign']['valid']?'invalid':'verified'))?'':_0x19a2a6)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x462cae['pdfForm']&&!0x0!==_0x462cae['esign']['valid']&&(_0x4fef4c+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x19a2a6=_0x462cae['esignInvalidMessage'])?'':_0x19a2a6)+'</div>\x0a\x20\x20\x20\x20'),_0x4fef4c+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x462cae['pdfForm']&&(_0x4fef4c+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('Signed\x20by'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=_0x462cae['esign']?.['signature']?.['user']?.['data']||_0x462cae['esign']?.['signature']?.['user']?.['_id'])?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('Signed\x20on'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=new Date(_0x462cae['esign']?.['created'])['toLocaleString']())?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4fef4c+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('ID'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=_0x462cae['esign']?.['_id']||'-')?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('Path'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=_0x462cae['esign']?.['signature']?.['valuePath']||'-')?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('Submission\x20Rev.'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=_0x462cae['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('Form\x20Rev.'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=_0x462cae['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x19a2a6=_0x462cae['t']('User\x20ID'))?'':_0x19a2a6)+':</span><span>'+(null==(_0x19a2a6=_0x462cae['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x19a2a6)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203(_0x40d177,_0x1368cc){'use strict';Object['defineProperty'](_0x1368cc,'__esModule',{'value':!0x0}),_0x1368cc['default']='esignature';},0x23c(_0x521ab8,_0x256d64,_0x347516){'use strict';_0x347516['r'](_0x256d64),_0x347516['d'](_0x256d64,{'CompactEncrypt':function(){return _0x3bb226;},'CompactSign':function(){return _0x321a29;},'EmbeddedJWK':function(){return _0x7fd559;},'EncryptJWT':function(){return _0x258481;},'FlattenedEncrypt':function(){return _0x58fa6b;},'FlattenedSign':function(){return _0x31457a;},'GeneralEncrypt':function(){return _0x41c23f;},'GeneralSign':function(){return _0x3e966a;},'SignJWT':function(){return _0x21c38c;},'UnsecuredJWT':function(){return _0x668d2b;},'base64url':function(){return _0x5b1a94;},'calculateJwkThumbprint':function(){return _0x244319;},'calculateJwkThumbprintUri':function(){return _0x4d569f;},'compactDecrypt':function(){return _0x2f188e;},'compactVerify':function(){return _0x2f1e69;},'createLocalJWKSet':function(){return _0x530074;},'createRemoteJWKSet':function(){return _0x18ba28;},'cryptoRuntime':function(){return _0x5b87b1;},'decodeJwt':function(){return _0x55e6a2;},'decodeProtectedHeader':function(){return _0x27cf61;},'errors':function(){return _0x52d68c;},'experimental_jwksCache':function(){return _0x4b6adc;},'exportJWK':function(){return _0x1c7b9f;},'exportPKCS8':function(){return _0x1858a9;},'exportSPKI':function(){return _0x111f55;},'flattenedDecrypt':function(){return _0xa608a8;},'flattenedVerify':function(){return _0x256bad;},'generalDecrypt':function(){return _0x115e78;},'generalVerify':function(){return _0x44331b;},'generateKeyPair':function(){return _0x2e6731;},'generateSecret':function(){return _0x2fd369;},'importJWK':function(){return _0x194ced;},'importPKCS8':function(){return _0x21d927;},'importSPKI':function(){return _0x221131;},'importX509':function(){return _0x202811;},'jwksCache':function(){return _0x817a47;},'jwtDecrypt':function(){return _0x319b93;},'jwtVerify':function(){return _0x4c173a;}});var _0x52d68c={};_0x347516['r'](_0x52d68c),_0x347516['d'](_0x52d68c,{'JOSEAlgNotAllowed':function(){return _0x42ffc8;},'JOSEError':function(){return _0x449128;},'JOSENotSupported':function(){return _0x214f0b;},'JWEDecryptionFailed':function(){return _0x41a6f0;},'JWEInvalid':function(){return _0x167bac;},'JWKInvalid':function(){return _0x3600e0;},'JWKSInvalid':function(){return _0x51cd7d;},'JWKSMultipleMatchingKeys':function(){return _0x489ca6;},'JWKSNoMatchingKey':function(){return _0x246ab2;},'JWKSTimeout':function(){return _0x427a5a;},'JWSInvalid':function(){return _0x3e3f4a;},'JWSSignatureVerificationFailed':function(){return _0x54fa78;},'JWTClaimValidationFailed':function(){return _0x14fc2c;},'JWTExpired':function(){return _0x32bde;},'JWTInvalid':function(){return _0x70530f;}});var _0x5b1a94={};_0x347516['r'](_0x5b1a94),_0x347516['d'](_0x5b1a94,{'decode':function(){return _0x4c2b58;},'encode':function(){return _0x5a0bc5;}});var _0x227e5f=crypto;const _0x4ce946=_0x3034a1=>_0x3034a1 instanceof CryptoKey;var _0x5f0e8b=async(_0x3b43cd,_0x4aba18)=>{const _0x50a3bb='SHA-'+_0x3b43cd['slice'](-0x3);return new Uint8Array(await _0x227e5f['subtle']['digest'](_0x50a3bb,_0x4aba18));};const _0x23f780=new TextEncoder(),_0x388aab=new TextDecoder(),_0x3bf18d=0x2**0x20;function _0x2da615(..._0x197982){const _0x40a00b=_0x197982['reduce']((_0x4b4a55,{length:_0x31117e})=>_0x4b4a55+_0x31117e,0x0),_0x471ad0=new Uint8Array(_0x40a00b);let _0x17a060=0x0;for(const _0x390f2c of _0x197982)_0x471ad0['set'](_0x390f2c,_0x17a060),_0x17a060+=_0x390f2c['length'];return _0x471ad0;}function _0x56b91a(_0x1f9b2e,_0x2ea632,_0x3aae67){if(_0x2ea632<0x0||_0x2ea632>=_0x3bf18d)throw new RangeError('value\x20must\x20be\x20>=\x200\x20and\x20<=\x204294967295.\x20Received\x20'+_0x2ea632);_0x1f9b2e['set']([_0x2ea632>>>0x18,_0x2ea632>>>0x10,_0x2ea632>>>0x8,0xff&_0x2ea632],_0x3aae67);}function _0x1e629a(_0x41f242){const _0x3a17fb=Math['floor'](_0x41f242/_0x3bf18d),_0x4b3663=_0x41f242%_0x3bf18d,_0x43e9de=new Uint8Array(0x8);return _0x56b91a(_0x43e9de,_0x3a17fb,0x0),_0x56b91a(_0x43e9de,_0x4b3663,0x4),_0x43e9de;}function _0x8a6dd7(_0x624c49){const _0x28bf81=new Uint8Array(0x4);return _0x56b91a(_0x28bf81,_0x624c49),_0x28bf81;}function _0x8f335f(_0xd25639){return _0x2da615(_0x8a6dd7(_0xd25639['length']),_0xd25639);}const _0x2e8312=_0xf4b3e8=>{let _0x8252ee=_0xf4b3e8;'string'==typeof _0x8252ee&&(_0x8252ee=_0x23f780['encode'](_0x8252ee));const _0xc7a3bc=[];for(let _0x34bc50=0x0;_0x34bc50<_0x8252ee['length'];_0x34bc50+=0x8000)_0xc7a3bc['push'](String['fromCharCode']['apply'](null,_0x8252ee['subarray'](_0x34bc50,_0x34bc50+0x8000)));return btoa(_0xc7a3bc['join'](''));},_0xb39e7b=_0x32018f=>_0x2e8312(_0x32018f)['replace'](/=/g,'')['replace'](/\+/g,'-')['replace'](/\//g,'_'),_0x3cea7a=_0x217f1=>{const _0x1e238a=atob(_0x217f1),_0x3ac89e=new Uint8Array(_0x1e238a['length']);for(let _0xbcf6a7=0x0;_0xbcf6a7<_0x1e238a['length'];_0xbcf6a7++)_0x3ac89e[_0xbcf6a7]=_0x1e238a['charCodeAt'](_0xbcf6a7);return _0x3ac89e;},_0x341128=_0x54adf5=>{let _0x281d37=_0x54adf5;_0x281d37 instanceof Uint8Array&&(_0x281d37=_0x388aab['decode'](_0x281d37)),_0x281d37=_0x281d37['replace'](/-/g,'+')['replace'](/_/g,'/')['replace'](/\s/g,'');try{return _0x3cea7a(_0x281d37);}catch{throw new TypeError('The\x20input\x20to\x20be\x20decoded\x20is\x20not\x20correctly\x20encoded.');}};class _0x449128 extends Error{constructor(_0x23f6c5,_0x2204c4){super(_0x23f6c5,_0x2204c4),this['code']='ERR_JOSE_GENERIC',this['name']=this['constructor']['name'],Error['captureStackTrace']?.(this,this['constructor']);}}_0x449128['code']='ERR_JOSE_GENERIC';class _0x14fc2c extends _0x449128{constructor(_0x5af12c,_0x3078a5,_0x4257e8='unspecified',_0x365a76='unspecified'){super(_0x5af12c,{'cause':{'claim':_0x4257e8,'reason':_0x365a76,'payload':_0x3078a5}}),this['code']='ERR_JWT_CLAIM_VALIDATION_FAILED',this['claim']=_0x4257e8,this['reason']=_0x365a76,this['payload']=_0x3078a5;}}_0x14fc2c['code']='ERR_JWT_CLAIM_VALIDATION_FAILED';class _0x32bde extends _0x449128{constructor(_0x22b4a4,_0x55bb85,_0x4f39f5='unspecified',_0xc25f18='unspecified'){super(_0x22b4a4,{'cause':{'claim':_0x4f39f5,'reason':_0xc25f18,'payload':_0x55bb85}}),this['code']='ERR_JWT_EXPIRED',this['claim']=_0x4f39f5,this['reason']=_0xc25f18,this['payload']=_0x55bb85;}}_0x32bde['code']='ERR_JWT_EXPIRED';class _0x42ffc8 extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JOSE_ALG_NOT_ALLOWED';}}_0x42ffc8['code']='ERR_JOSE_ALG_NOT_ALLOWED';class _0x214f0b extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JOSE_NOT_SUPPORTED';}}_0x214f0b['code']='ERR_JOSE_NOT_SUPPORTED';class _0x41a6f0 extends _0x449128{constructor(_0x4a654d='decryption\x20operation\x20failed',_0x152c22){super(_0x4a654d,_0x152c22),this['code']='ERR_JWE_DECRYPTION_FAILED';}}_0x41a6f0['code']='ERR_JWE_DECRYPTION_FAILED';class _0x167bac extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JWE_INVALID';}}_0x167bac['code']='ERR_JWE_INVALID';class _0x3e3f4a extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JWS_INVALID';}}_0x3e3f4a['code']='ERR_JWS_INVALID';class _0x70530f extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JWT_INVALID';}}_0x70530f['code']='ERR_JWT_INVALID';class _0x3600e0 extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JWK_INVALID';}}_0x3600e0['code']='ERR_JWK_INVALID';class _0x51cd7d extends _0x449128{constructor(){super(...arguments),this['code']='ERR_JWKS_INVALID';}}_0x51cd7d['code']='ERR_JWKS_INVALID';class _0x246ab2 extends _0x449128{constructor(_0xbfc89f='no\x20applicable\x20key\x20found\x20in\x20the\x20JSON\x20Web\x20Key\x20Set',_0x97564){super(_0xbfc89f,_0x97564),this['code']='ERR_JWKS_NO_MATCHING_KEY';}}_0x246ab2['code']='ERR_JWKS_NO_MATCHING_KEY';class _0x489ca6 extends _0x449128{constructor(_0x3e61d1='multiple\x20matching\x20keys\x20found\x20in\x20the\x20JSON\x20Web\x20Key\x20Set',_0x396cf1){super(_0x3e61d1,_0x396cf1),this['code']='ERR_JWKS_MULTIPLE_MATCHING_KEYS';}}Symbol['asyncIterator'],_0x489ca6['code']='ERR_JWKS_MULTIPLE_MATCHING_KEYS';class _0x427a5a extends _0x449128{constructor(_0xcd59e4='request\x20timed\x20out',_0x1685a9){super(_0xcd59e4,_0x1685a9),this['code']='ERR_JWKS_TIMEOUT';}}_0x427a5a['code']='ERR_JWKS_TIMEOUT';class _0x54fa78 extends _0x449128{constructor(_0x5347ab='signature\x20verification\x20failed',_0x1b43c5){super(_0x5347ab,_0x1b43c5),this['code']='ERR_JWS_SIGNATURE_VERIFICATION_FAILED';}}_0x54fa78['code']='ERR_JWS_SIGNATURE_VERIFICATION_FAILED';var _0x55bd21=_0x227e5f['getRandomValues']['bind'](_0x227e5f);function _0x4eae0e(_0x150bfb){switch(_0x150bfb){case'A128GCM':case'A128GCMKW':case'A192GCM':case'A192GCMKW':case'A256GCM':case'A256GCMKW':return 0x60;case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return 0x80;default:throw new _0x214f0b('Unsupported\x20JWE\x20Algorithm:\x20'+_0x150bfb);}}var _0x13e05b=(_0x2eae95,_0x3b3be8)=>{if(_0x3b3be8['length']<<0x3!==_0x4eae0e(_0x2eae95))throw new _0x167bac('Invalid\x20Initialization\x20Vector\x20length');},_0x5cd136=(_0x2ef444,_0x404b88)=>{const _0x47e1b8=_0x2ef444['byteLength']<<0x3;if(_0x47e1b8!==_0x404b88)throw new _0x167bac('Invalid\x20Content\x20Encryption\x20Key\x20length.\x20Expected\x20'+_0x404b88+'\x20bits,\x20got\x20'+_0x47e1b8+'\x20bits');};function _0x5eb897(_0x1ea92a,_0x369973='algorithm.name'){return new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation,\x20its\x20'+_0x369973+'\x20must\x20be\x20'+_0x1ea92a);}function _0x357c38(_0x88656a,_0x4525c3){return _0x88656a['name']===_0x4525c3;}function _0x56e81e(_0x3866f6){return parseInt(_0x3866f6['name']['slice'](0x4),0xa);}function _0x7edb1f(_0x582564,_0x293bc6){if(_0x293bc6['length']&&!_0x293bc6['some'](_0x11ca24=>_0x582564['usages']['includes'](_0x11ca24))){let _0x560811='CryptoKey\x20does\x20not\x20support\x20this\x20operation,\x20its\x20usages\x20must\x20include\x20';if(_0x293bc6['length']>0x2){const _0x2d8b55=_0x293bc6['pop']();_0x560811+='one\x20of\x20'+_0x293bc6['join'](',\x20')+',\x20or\x20'+_0x2d8b55+'.';}else 0x2===_0x293bc6['length']?_0x560811+='one\x20of\x20'+_0x293bc6[0x0]+'\x20or\x20'+_0x293bc6[0x1]+'.':_0x560811+=_0x293bc6[0x0]+'.';throw new TypeError(_0x560811);}}function _0x242496(_0x2f6b9f,_0xae3e60,..._0x51b0e8){switch(_0xae3e60){case'A128GCM':case'A192GCM':case'A256GCM':{if(!_0x357c38(_0x2f6b9f['algorithm'],'AES-GCM'))throw _0x5eb897('AES-GCM');const _0x4feb1f=parseInt(_0xae3e60['slice'](0x1,0x4),0xa);if(_0x2f6b9f['algorithm']['length']!==_0x4feb1f)throw _0x5eb897(_0x4feb1f,'algorithm.length');break;}case'A128KW':case'A192KW':case'A256KW':{if(!_0x357c38(_0x2f6b9f['algorithm'],'AES-KW'))throw _0x5eb897('AES-KW');const _0x32ee97=parseInt(_0xae3e60['slice'](0x1,0x4),0xa);if(_0x2f6b9f['algorithm']['length']!==_0x32ee97)throw _0x5eb897(_0x32ee97,'algorithm.length');break;}case'ECDH':switch(_0x2f6b9f['algorithm']['name']){case'ECDH':case'X25519':case'X448':break;default:throw _0x5eb897('ECDH,\x20X25519,\x20or\x20X448');}break;case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':if(!_0x357c38(_0x2f6b9f['algorithm'],'PBKDF2'))throw _0x5eb897('PBKDF2');break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':{if(!_0x357c38(_0x2f6b9f['algorithm'],'RSA-OAEP'))throw _0x5eb897('RSA-OAEP');const _0x46968c=parseInt(_0xae3e60['slice'](0x9),0xa)||0x1;if(_0x56e81e(_0x2f6b9f['algorithm']['hash'])!==_0x46968c)throw _0x5eb897('SHA-'+_0x46968c,'algorithm.hash');break;}default:throw new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation');}_0x7edb1f(_0x2f6b9f,_0x51b0e8);}function _0x2e8ae8(_0x1e9849,_0x1756e5,..._0x5824a3){if((_0x5824a3=_0x5824a3['filter'](Boolean))['length']>0x2){const _0x13bfa8=_0x5824a3['pop']();_0x1e9849+='one\x20of\x20type\x20'+_0x5824a3['join'](',\x20')+',\x20or\x20'+_0x13bfa8+'.';}else 0x2===_0x5824a3['length']?_0x1e9849+='one\x20of\x20type\x20'+_0x5824a3[0x0]+'\x20or\x20'+_0x5824a3[0x1]+'.':_0x1e9849+='of\x20type\x20'+_0x5824a3[0x0]+'.';return null==_0x1756e5?_0x1e9849+='\x20Received\x20'+_0x1756e5:'function'==typeof _0x1756e5&&_0x1756e5['name']?_0x1e9849+='\x20Received\x20function\x20'+_0x1756e5['name']:'object'==typeof _0x1756e5&&null!=_0x1756e5&&_0x1756e5['constructor']?.['name']&&(_0x1e9849+='\x20Received\x20an\x20instance\x20of\x20'+_0x1756e5['constructor']['name']),_0x1e9849;}var _0x301e99=(_0x493a58,..._0x565dd7)=>_0x2e8ae8('Key\x20must\x20be\x20',_0x493a58,..._0x565dd7);function _0x36d77(_0x15cfdc,_0x2c700e,..._0x4fdc4b){return _0x2e8ae8('Key\x20for\x20the\x20'+_0x15cfdc+'\x20algorithm\x20must\x20be\x20',_0x2c700e,..._0x4fdc4b);}var _0xdcf8ca=_0x3daa4c=>!!_0x4ce946(_0x3daa4c)||'KeyObject'===_0x3daa4c?.[Symbol['toStringTag']];const _0x2a1496=['CryptoKey'];var _0x5b1b44=async(_0x51305d,_0x568816,_0x101f69,_0x56b908,_0x647ca0,_0x5b8e66)=>{if(!(_0x4ce946(_0x568816)||_0x568816 instanceof Uint8Array))throw new TypeError(_0x301e99(_0x568816,..._0x2a1496,'Uint8Array'));if(!_0x56b908)throw new _0x167bac('JWE\x20Initialization\x20Vector\x20missing');if(!_0x647ca0)throw new _0x167bac('JWE\x20Authentication\x20Tag\x20missing');switch(_0x13e05b(_0x51305d,_0x56b908),_0x51305d){case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x568816 instanceof Uint8Array&&_0x5cd136(_0x568816,parseInt(_0x51305d['slice'](-0x3),0xa)),async function(_0x181485,_0x85cb6,_0x3bd845,_0x416999,_0x437688,_0x5924d9){if(!(_0x85cb6 instanceof Uint8Array))throw new TypeError(_0x301e99(_0x85cb6,'Uint8Array'));const _0x24f505=parseInt(_0x181485['slice'](0x1,0x4),0xa),_0x5e7e99=await _0x227e5f['subtle']['importKey']('raw',_0x85cb6['subarray'](_0x24f505>>0x3),'AES-CBC',!0x1,['decrypt']),_0x32a3cc=await _0x227e5f['subtle']['importKey']('raw',_0x85cb6['subarray'](0x0,_0x24f505>>0x3),{'hash':'SHA-'+(_0x24f505<<0x1),'name':'HMAC'},!0x1,['sign']),_0x538ee5=_0x2da615(_0x5924d9,_0x416999,_0x3bd845,_0x1e629a(_0x5924d9['length']<<0x3)),_0x313778=new Uint8Array((await _0x227e5f['subtle']['sign']('HMAC',_0x32a3cc,_0x538ee5))['slice'](0x0,_0x24f505>>0x3));let _0x1183f6,_0x43476c;try{_0x1183f6=((_0x49bed4,_0x52abaa)=>{if(!(_0x49bed4 instanceof Uint8Array))throw new TypeError('First\x20argument\x20must\x20be\x20a\x20buffer');if(!(_0x52abaa instanceof Uint8Array))throw new TypeError('Second\x20argument\x20must\x20be\x20a\x20buffer');if(_0x49bed4['length']!==_0x52abaa['length'])throw new TypeError('Input\x20buffers\x20must\x20have\x20the\x20same\x20length');const _0xfa6e9=_0x49bed4['length'];let _0x397717=0x0,_0x3dff8d=-0x1;for(;++_0x3dff8d<_0xfa6e9;)_0x397717|=_0x49bed4[_0x3dff8d]^_0x52abaa[_0x3dff8d];return 0x0===_0x397717;})(_0x437688,_0x313778);}catch{}if(!_0x1183f6)throw new _0x41a6f0();try{_0x43476c=new Uint8Array(await _0x227e5f['subtle']['decrypt']({'iv':_0x416999,'name':'AES-CBC'},_0x5e7e99,_0x3bd845));}catch{}if(!_0x43476c)throw new _0x41a6f0();return _0x43476c;}(_0x51305d,_0x568816,_0x101f69,_0x56b908,_0x647ca0,_0x5b8e66);case'A128GCM':case'A192GCM':case'A256GCM':return _0x568816 instanceof Uint8Array&&_0x5cd136(_0x568816,parseInt(_0x51305d['slice'](0x1,0x4),0xa)),async function(_0x1aa90f,_0xb8ff43,_0x55a79c,_0x36c2fc,_0x3f34a8,_0x21945d){let _0x124f5c;_0xb8ff43 instanceof Uint8Array?_0x124f5c=await _0x227e5f['subtle']['importKey']('raw',_0xb8ff43,'AES-GCM',!0x1,['decrypt']):(_0x242496(_0xb8ff43,_0x1aa90f,'decrypt'),_0x124f5c=_0xb8ff43);try{return new Uint8Array(await _0x227e5f['subtle']['decrypt']({'additionalData':_0x21945d,'iv':_0x36c2fc,'name':'AES-GCM','tagLength':0x80},_0x124f5c,_0x2da615(_0x55a79c,_0x3f34a8)));}catch{throw new _0x41a6f0();}}(_0x51305d,_0x568816,_0x101f69,_0x56b908,_0x647ca0,_0x5b8e66);default:throw new _0x214f0b('Unsupported\x20JWE\x20Content\x20Encryption\x20Algorithm');}},_0x50ca83=(..._0x286a8b)=>{const _0x41fe62=_0x286a8b['filter'](Boolean);if(0x0===_0x41fe62['length']||0x1===_0x41fe62['length'])return!0x0;let _0x3af180;for(const _0x2a2b8b of _0x41fe62){const _0x995061=Object['keys'](_0x2a2b8b);if(_0x3af180&&0x0!==_0x3af180['size'])for(const _0x466fe9 of _0x995061){if(_0x3af180['has'](_0x466fe9))return!0x1;_0x3af180['add'](_0x466fe9);}else _0x3af180=new Set(_0x995061);}return!0x0;};function _0x12de36(_0x2cc819){if('object'!=typeof(_0x368537=_0x2cc819)||null===_0x368537||'[object\x20Object]'!==Object['prototype']['toString']['call'](_0x2cc819))return!0x1;var _0x368537;if(null===Object['getPrototypeOf'](_0x2cc819))return!0x0;let _0x3ab44d=_0x2cc819;for(;null!==Object['getPrototypeOf'](_0x3ab44d);)_0x3ab44d=Object['getPrototypeOf'](_0x3ab44d);return Object['getPrototypeOf'](_0x2cc819)===_0x3ab44d;}var _0x31b122=[{'hash':'SHA-256','name':'HMAC'},!0x0,['sign']];function _0x46eaa8(_0x423b0b,_0x4e8004){if(_0x423b0b['algorithm']['length']!==parseInt(_0x4e8004['slice'](0x1,0x4),0xa))throw new TypeError('Invalid\x20key\x20size\x20for\x20alg:\x20'+_0x4e8004);}function _0x56d1a6(_0xbb5704,_0x3cb75a,_0x26bc5e){if(_0x4ce946(_0xbb5704))return _0x242496(_0xbb5704,_0x3cb75a,_0x26bc5e),_0xbb5704;if(_0xbb5704 instanceof Uint8Array)return _0x227e5f['subtle']['importKey']('raw',_0xbb5704,'AES-KW',!0x0,[_0x26bc5e]);throw new TypeError(_0x301e99(_0xbb5704,..._0x2a1496,'Uint8Array'));}const _0x2a70e7=async(_0x3be57e,_0x290dce,_0x3661f7)=>{const _0x5a8cd4=await _0x56d1a6(_0x290dce,_0x3be57e,'wrapKey');_0x46eaa8(_0x5a8cd4,_0x3be57e);const _0x39bfd3=await _0x227e5f['subtle']['importKey']('raw',_0x3661f7,..._0x31b122);return new Uint8Array(await _0x227e5f['subtle']['wrapKey']('raw',_0x39bfd3,_0x5a8cd4,'AES-KW'));},_0xcb569c=async(_0x584ea6,_0x5c30ca,_0x1d1462)=>{const _0x565218=await _0x56d1a6(_0x5c30ca,_0x584ea6,'unwrapKey');_0x46eaa8(_0x565218,_0x584ea6);const _0xe1dd3=await _0x227e5f['subtle']['unwrapKey']('raw',_0x1d1462,_0x565218,'AES-KW',..._0x31b122);return new Uint8Array(await _0x227e5f['subtle']['exportKey']('raw',_0xe1dd3));};async function _0x48c974(_0x4f182c,_0xe6812e,_0x23f951,_0x458dfa,_0xc489be=new Uint8Array(0x0),_0x210800=new Uint8Array(0x0)){if(!_0x4ce946(_0x4f182c))throw new TypeError(_0x301e99(_0x4f182c,..._0x2a1496));if(_0x242496(_0x4f182c,'ECDH'),!_0x4ce946(_0xe6812e))throw new TypeError(_0x301e99(_0xe6812e,..._0x2a1496));_0x242496(_0xe6812e,'ECDH','deriveBits');const _0x58b9cc=_0x2da615(_0x8f335f(_0x23f780['encode'](_0x23f951)),_0x8f335f(_0xc489be),_0x8f335f(_0x210800),_0x8a6dd7(_0x458dfa));let _0x57998b;return _0x57998b='X25519'===_0x4f182c['algorithm']['name']?0x100:'X448'===_0x4f182c['algorithm']['name']?0x1c0:Math['ceil'](parseInt(_0x4f182c['algorithm']['namedCurve']['substr'](-0x3),0xa)/0x8)<<0x3,async function(_0x39ed81,_0x632f7f,_0x4e30f9){const _0x1d193e=Math['ceil']((_0x632f7f>>0x3)/0x20),_0x5ef9a2=new Uint8Array(0x20*_0x1d193e);for(let _0x47a612=0x0;_0x47a612<_0x1d193e;_0x47a612++){const _0x1d7afe=new Uint8Array(0x4+_0x39ed81['length']+_0x4e30f9['length']);_0x1d7afe['set'](_0x8a6dd7(_0x47a612+0x1)),_0x1d7afe['set'](_0x39ed81,0x4),_0x1d7afe['set'](_0x4e30f9,0x4+_0x39ed81['length']),_0x5ef9a2['set'](await _0x5f0e8b('sha256',_0x1d7afe),0x20*_0x47a612);}return _0x5ef9a2['slice'](0x0,_0x632f7f>>0x3);}(new Uint8Array(await _0x227e5f['subtle']['deriveBits']({'name':_0x4f182c['algorithm']['name'],'public':_0x4f182c},_0xe6812e,_0x57998b)),_0x458dfa,_0x58b9cc);}function _0xb1dffd(_0x1104fd){if(!_0x4ce946(_0x1104fd))throw new TypeError(_0x301e99(_0x1104fd,..._0x2a1496));return['P-256','P-384','P-521']['includes'](_0x1104fd['algorithm']['namedCurve'])||'X25519'===_0x1104fd['algorithm']['name']||'X448'===_0x1104fd['algorithm']['name'];}async function _0x57a500(_0x510860,_0x284cdd,_0x364c5e,_0x305bcc){!function(_0x3d270c){if(!(_0x3d270c instanceof Uint8Array)||_0x3d270c['length']<0x8)throw new _0x167bac('PBES2\x20Salt\x20Input\x20must\x20be\x208\x20or\x20more\x20octets');}(_0x510860);const _0x3b1c0e=function(_0x223c22,_0x333fba){return _0x2da615(_0x23f780['encode'](_0x223c22),new Uint8Array([0x0]),_0x333fba);}(_0x284cdd,_0x510860),_0x14efd8=parseInt(_0x284cdd['slice'](0xd,0x10),0xa),_0x583765={'hash':'SHA-'+_0x284cdd['slice'](0x8,0xb),'iterations':_0x364c5e,'name':'PBKDF2','salt':_0x3b1c0e},_0x5c583a={'length':_0x14efd8,'name':'AES-KW'},_0x562da2=await function(_0x1e395e,_0xfe581e){if(_0x1e395e instanceof Uint8Array)return _0x227e5f['subtle']['importKey']('raw',_0x1e395e,'PBKDF2',!0x1,['deriveBits']);if(_0x4ce946(_0x1e395e))return _0x242496(_0x1e395e,_0xfe581e,'deriveBits','deriveKey'),_0x1e395e;throw new TypeError(_0x301e99(_0x1e395e,..._0x2a1496,'Uint8Array'));}(_0x305bcc,_0x284cdd);if(_0x562da2['usages']['includes']('deriveBits'))return new Uint8Array(await _0x227e5f['subtle']['deriveBits'](_0x583765,_0x562da2,_0x14efd8));if(_0x562da2['usages']['includes']('deriveKey'))return _0x227e5f['subtle']['deriveKey'](_0x583765,_0x562da2,_0x5c583a,!0x1,['wrapKey','unwrapKey']);throw new TypeError('PBKDF2\x20key\x20\x22usages\x22\x20must\x20include\x20\x22deriveBits\x22\x20or\x20\x22deriveKey\x22');}function _0x471af4(_0x1e5017){switch(_0x1e5017){case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':return'RSA-OAEP';default:throw new _0x214f0b('alg\x20'+_0x1e5017+'\x20is\x20not\x20supported\x20either\x20by\x20JOSE\x20or\x20your\x20javascript\x20runtime');}}var _0x2b14c0=(_0x3619c2,_0x221316)=>{if(_0x3619c2['startsWith']('RS')||_0x3619c2['startsWith']('PS')){const {modulusLength:_0x40d3f5}=_0x221316['algorithm'];if('number'!=typeof _0x40d3f5||_0x40d3f5<0x800)throw new TypeError(_0x3619c2+'\x20requires\x20key\x20modulusLength\x20to\x20be\x202048\x20bits\x20or\x20larger');}};function _0x226ec6(_0x31ae81){return _0x12de36(_0x31ae81)&&'string'==typeof _0x31ae81['kty'];}var _0x28bec4=async _0x29eb66=>{if(!_0x29eb66['alg'])throw new TypeError('\x22alg\x22\x20argument\x20is\x20required\x20when\x20\x22jwk.alg\x22\x20is\x20not\x20present');const {algorithm:_0x33e6a4,keyUsages:_0x5870a4}=function(_0x2117d7){let _0x16935a,_0xba3b01;switch(_0x2117d7['kty']){case'RSA':switch(_0x2117d7['alg']){case'PS256':case'PS384':case'PS512':_0x16935a={'name':'RSA-PSS','hash':'SHA-'+_0x2117d7['alg']['slice'](-0x3)},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'RS256':case'RS384':case'RS512':_0x16935a={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x2117d7['alg']['slice'](-0x3)},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x16935a={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x2117d7['alg']['slice'](-0x3),0xa)||0x1)},_0xba3b01=_0x2117d7['d']?['decrypt','unwrapKey']:['encrypt','wrapKey'];break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;case'EC':switch(_0x2117d7['alg']){case'ES256':_0x16935a={'name':'ECDSA','namedCurve':'P-256'},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'ES384':_0x16935a={'name':'ECDSA','namedCurve':'P-384'},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'ES512':_0x16935a={'name':'ECDSA','namedCurve':'P-521'},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':_0x16935a={'name':'ECDH','namedCurve':_0x2117d7['crv']},_0xba3b01=_0x2117d7['d']?['deriveBits']:[];break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;case'OKP':switch(_0x2117d7['alg']){case'Ed25519':_0x16935a={'name':'Ed25519'},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'EdDSA':_0x16935a={'name':_0x2117d7['crv']},_0xba3b01=_0x2117d7['d']?['sign']:['verify'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':_0x16935a={'name':_0x2117d7['crv']},_0xba3b01=_0x2117d7['d']?['deriveBits']:[];break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20JWK\x20\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20value');}return{'algorithm':_0x16935a,'keyUsages':_0xba3b01};}(_0x29eb66),_0x17555e=[_0x33e6a4,_0x29eb66['ext']??!0x1,_0x29eb66['key_ops']??_0x5870a4],_0x5cdfd1={..._0x29eb66};return delete _0x5cdfd1['alg'],delete _0x5cdfd1['use'],_0x227e5f['subtle']['importKey']('jwk',_0x5cdfd1,..._0x17555e);};const _0x2bd304=_0x5cfe1f=>_0x341128(_0x5cfe1f);let _0x3dd52d,_0x20f08b;const _0x4305e4=_0x9a5296=>'KeyObject'===_0x9a5296?.[Symbol['toStringTag']],_0x5671e4=async(_0x57df3b,_0x1a1332,_0x5ac5a2,_0x421159,_0x1fdfd2=!0x1)=>{let _0xcb6fb=_0x57df3b['get'](_0x1a1332);if(_0xcb6fb?.[_0x421159])return _0xcb6fb[_0x421159];const _0x724ca=await _0x28bec4({..._0x5ac5a2,'alg':_0x421159});return _0x1fdfd2&&Object['freeze'](_0x1a1332),_0xcb6fb?_0xcb6fb[_0x421159]=_0x724ca:_0x57df3b['set'](_0x1a1332,{[_0x421159]:_0x724ca}),_0x724ca;};var _0x263d29=(_0x24cbaa,_0x34d885)=>{if(_0x4305e4(_0x24cbaa)){let _0x567799=_0x24cbaa['export']({'format':'jwk'});return delete _0x567799['d'],delete _0x567799['dp'],delete _0x567799['dq'],delete _0x567799['p'],delete _0x567799['q'],delete _0x567799['qi'],_0x567799['k']?_0x2bd304(_0x567799['k']):(_0x20f08b||(_0x20f08b=new WeakMap()),_0x5671e4(_0x20f08b,_0x24cbaa,_0x567799,_0x34d885));}return _0x226ec6(_0x24cbaa)?_0x24cbaa['k']?_0x341128(_0x24cbaa['k']):(_0x20f08b||(_0x20f08b=new WeakMap()),_0x5671e4(_0x20f08b,_0x24cbaa,_0x24cbaa,_0x34d885,!0x0)):_0x24cbaa;},_0x576e3a=(_0x50eaa1,_0x346087)=>{if(_0x4305e4(_0x50eaa1)){let _0x4b6cdf=_0x50eaa1['export']({'format':'jwk'});return _0x4b6cdf['k']?_0x2bd304(_0x4b6cdf['k']):(_0x3dd52d||(_0x3dd52d=new WeakMap()),_0x5671e4(_0x3dd52d,_0x50eaa1,_0x4b6cdf,_0x346087));}return _0x226ec6(_0x50eaa1)?_0x50eaa1['k']?_0x341128(_0x50eaa1['k']):(_0x3dd52d||(_0x3dd52d=new WeakMap()),_0x5671e4(_0x3dd52d,_0x50eaa1,_0x50eaa1,_0x346087,!0x0)):_0x50eaa1;};function _0x403fc5(_0x568905){switch(_0x568905){case'A128GCM':return 0x80;case'A192GCM':return 0xc0;case'A256GCM':case'A128CBC-HS256':return 0x100;case'A192CBC-HS384':return 0x180;case'A256CBC-HS512':return 0x200;default:throw new _0x214f0b('Unsupported\x20JWE\x20Algorithm:\x20'+_0x568905);}}var _0x185c4e=_0x792827=>_0x55bd21(new Uint8Array(_0x403fc5(_0x792827)>>0x3)),_0x1d8a9e=(_0xe9cd75,_0x1a7b56)=>'-----BEGIN\x20'+_0x1a7b56+'-----\x0a'+(_0xe9cd75['match'](/.{1,64}/g)||[])['join']('\x0a')+'\x0a-----END\x20'+_0x1a7b56+'-----';const _0x12f75f=async(_0x3e4b1c,_0x1defef,_0x8aa84e)=>{if(!_0x4ce946(_0x8aa84e))throw new TypeError(_0x301e99(_0x8aa84e,..._0x2a1496));if(!_0x8aa84e['extractable'])throw new TypeError('CryptoKey\x20is\x20not\x20extractable');if(_0x8aa84e['type']!==_0x3e4b1c)throw new TypeError('key\x20is\x20not\x20a\x20'+_0x3e4b1c+'\x20key');return _0x1d8a9e(_0x2e8312(new Uint8Array(await _0x227e5f['subtle']['exportKey'](_0x1defef,_0x8aa84e))),_0x3e4b1c['toUpperCase']()+'\x20KEY');},_0x29ef0d=(_0x3f6901,_0x3bdc98,_0x867577=0x0)=>{0x0===_0x867577&&(_0x3bdc98['unshift'](_0x3bdc98['length']),_0x3bdc98['unshift'](0x6));const _0x3649fc=_0x3f6901['indexOf'](_0x3bdc98[0x0],_0x867577);if(-0x1===_0x3649fc)return!0x1;const _0x16bd61=_0x3f6901['subarray'](_0x3649fc,_0x3649fc+_0x3bdc98['length']);return _0x16bd61['length']===_0x3bdc98['length']&&(_0x16bd61['every']((_0xd4a25b,_0x26c319)=>_0xd4a25b===_0x3bdc98[_0x26c319])||_0x29ef0d(_0x3f6901,_0x3bdc98,_0x3649fc+0x1));},_0x883665=_0x1e3056=>{switch(!0x0){case _0x29ef0d(_0x1e3056,[0x2a,0x86,0x48,0xce,0x3d,0x3,0x1,0x7]):return'P-256';case _0x29ef0d(_0x1e3056,[0x2b,0x81,0x4,0x0,0x22]):return'P-384';case _0x29ef0d(_0x1e3056,[0x2b,0x81,0x4,0x0,0x23]):return'P-521';case _0x29ef0d(_0x1e3056,[0x2b,0x65,0x6e]):return'X25519';case _0x29ef0d(_0x1e3056,[0x2b,0x65,0x6f]):return'X448';case _0x29ef0d(_0x1e3056,[0x2b,0x65,0x70]):return'Ed25519';case _0x29ef0d(_0x1e3056,[0x2b,0x65,0x71]):return'Ed448';default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20EC\x20Key\x20Curve\x20or\x20OKP\x20Key\x20Sub\x20Type');}},_0xfd356f=async(_0x502f31,_0x16bc44,_0x5d0e9d,_0x3102d0,_0x548735)=>{let _0x281f03,_0xe4fa17;const _0x1a76f9=new Uint8Array(atob(_0x5d0e9d['replace'](_0x502f31,''))['split']('')['map'](_0x338a2d=>_0x338a2d['charCodeAt'](0x0))),_0x2ddf44='spki'===_0x16bc44;switch(_0x3102d0){case'PS256':case'PS384':case'PS512':_0x281f03={'name':'RSA-PSS','hash':'SHA-'+_0x3102d0['slice'](-0x3)},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;case'RS256':case'RS384':case'RS512':_0x281f03={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x3102d0['slice'](-0x3)},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x281f03={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x3102d0['slice'](-0x3),0xa)||0x1)},_0xe4fa17=_0x2ddf44?['encrypt','wrapKey']:['decrypt','unwrapKey'];break;case'ES256':_0x281f03={'name':'ECDSA','namedCurve':'P-256'},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;case'ES384':_0x281f03={'name':'ECDSA','namedCurve':'P-384'},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;case'ES512':_0x281f03={'name':'ECDSA','namedCurve':'P-521'},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{const _0x202dc7=_0x883665(_0x1a76f9);_0x281f03=_0x202dc7['startsWith']('P-')?{'name':'ECDH','namedCurve':_0x202dc7}:{'name':_0x202dc7},_0xe4fa17=_0x2ddf44?[]:['deriveBits'];break;}case'Ed25519':_0x281f03={'name':'Ed25519'},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;case'EdDSA':_0x281f03={'name':_0x883665(_0x1a76f9)},_0xe4fa17=_0x2ddf44?['verify']:['sign'];break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(Algorithm)\x20value');}return _0x227e5f['subtle']['importKey'](_0x16bc44,_0x1a76f9,_0x281f03,_0x548735?.['extractable']??!0x1,_0xe4fa17);},_0x3de028=(_0x2d2fd3,_0x597dd7,_0x457a99)=>_0xfd356f(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,'spki',_0x2d2fd3,_0x597dd7,_0x457a99);function _0x13b8a7(_0x56d6af){const _0x5ac5c1=[];let _0xd358b8=0x0;for(;_0xd358b8<_0x56d6af['length'];){const _0x3d6e04=_0x405994(_0x56d6af['subarray'](_0xd358b8));_0x5ac5c1['push'](_0x3d6e04),_0xd358b8+=_0x3d6e04['byteLength'];}return _0x5ac5c1;}function _0x405994(_0x2047d2){let _0x269ac9=0x0,_0x56a88c=0x1f&_0x2047d2[0x0];if(_0x269ac9++,0x1f===_0x56a88c){for(_0x56a88c=0x0;_0x2047d2[_0x269ac9]>=0x80;)_0x56a88c=0x80*_0x56a88c+_0x2047d2[_0x269ac9]-0x80,_0x269ac9++;_0x56a88c=0x80*_0x56a88c+_0x2047d2[_0x269ac9]-0x80,_0x269ac9++;}let _0x46c621=0x0;if(_0x2047d2[_0x269ac9]<0x80)_0x46c621=_0x2047d2[_0x269ac9],_0x269ac9++;else{if(0x80===_0x46c621){for(_0x46c621=0x0;0x0!==_0x2047d2[_0x269ac9+_0x46c621]||0x0!==_0x2047d2[_0x269ac9+_0x46c621+0x1];){if(_0x46c621>_0x2047d2['byteLength'])throw new TypeError('invalid\x20indefinite\x20form\x20length');_0x46c621++;}const _0x48baab=_0x269ac9+_0x46c621+0x2;return{'byteLength':_0x48baab,'contents':_0x2047d2['subarray'](_0x269ac9,_0x269ac9+_0x46c621),'raw':_0x2047d2['subarray'](0x0,_0x48baab)};}{const _0x2cca53=0x7f&_0x2047d2[_0x269ac9];_0x269ac9++,_0x46c621=0x0;for(let _0x17d4e6=0x0;_0x17d4e6<_0x2cca53;_0x17d4e6++)_0x46c621=0x100*_0x46c621+_0x2047d2[_0x269ac9],_0x269ac9++;}}const _0x59f6c5=_0x269ac9+_0x46c621;return{'byteLength':_0x59f6c5,'contents':_0x2047d2['subarray'](_0x269ac9,_0x59f6c5),'raw':_0x2047d2['subarray'](0x0,_0x59f6c5)};}async function _0x221131(_0x44ef24,_0x41d584,_0x37014f){if('string'!=typeof _0x44ef24||0x0!==_0x44ef24['indexOf']('-----BEGIN\x20PUBLIC\x20KEY-----'))throw new TypeError('\x22spki\x22\x20must\x20be\x20SPKI\x20formatted\x20string');return _0x3de028(_0x44ef24,_0x41d584,_0x37014f);}async function _0x202811(_0x3a6ed2,_0x356f9f,_0x5186e7){if('string'!=typeof _0x3a6ed2||0x0!==_0x3a6ed2['indexOf']('-----BEGIN\x20CERTIFICATE-----'))throw new TypeError('\x22x509\x22\x20must\x20be\x20X.509\x20formatted\x20string');return((_0x3cc0cc,_0x259c3e,_0x25140f)=>{let _0x2af69d;try{_0x2af69d=function(_0x1c321b){const _0x55a39e=_0x1c321b['replace'](/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,''),_0x3f489f=_0x3cea7a(_0x55a39e);return _0x1d8a9e(function(_0x1865fc){const _0x25f6e1=_0x13b8a7(_0x13b8a7(_0x405994(_0x1865fc)['contents'])[0x0]['contents']);return _0x2e8312(_0x25f6e1[0xa0===_0x25f6e1[0x0]['raw'][0x0]?0x6:0x5]['raw']);}(_0x3f489f),'PUBLIC\x20KEY');}(_0x3cc0cc);}catch(_0x22be0a){throw new TypeError('Failed\x20to\x20parse\x20the\x20X.509\x20certificate',{'cause':_0x22be0a});}return _0x3de028(_0x2af69d,_0x259c3e,_0x25140f);})(_0x3a6ed2,_0x356f9f,_0x5186e7);}async function _0x21d927(_0x26d5b5,_0x571955,_0x939dc2){if('string'!=typeof _0x26d5b5||0x0!==_0x26d5b5['indexOf']('-----BEGIN\x20PRIVATE\x20KEY-----'))throw new TypeError('\x22pkcs8\x22\x20must\x20be\x20PKCS#8\x20formatted\x20string');return((_0x1b3499,_0x21032a,_0x379bd1)=>_0xfd356f(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,'pkcs8',_0x1b3499,_0x21032a,_0x379bd1))(_0x26d5b5,_0x571955,_0x939dc2);}async function _0x194ced(_0x504b0f,_0x48faec){if(!_0x12de36(_0x504b0f))throw new TypeError('JWK\x20must\x20be\x20an\x20object');switch(_0x48faec||(_0x48faec=_0x504b0f['alg']),_0x504b0f['kty']){case'oct':if('string'!=typeof _0x504b0f['k']||!_0x504b0f['k'])throw new TypeError('missing\x20\x22k\x22\x20(Key\x20Value)\x20Parameter\x20value');return _0x341128(_0x504b0f['k']);case'RSA':if('oth'in _0x504b0f&&void 0x0!==_0x504b0f['oth'])throw new _0x214f0b('RSA\x20JWK\x20\x22oth\x22\x20(Other\x20Primes\x20Info)\x20Parameter\x20value\x20is\x20not\x20supported');case'EC':case'OKP':return _0x28bec4({..._0x504b0f,'alg':_0x48faec});default:throw new _0x214f0b('Unsupported\x20\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20value');}}const _0x44458f=_0x441883=>_0x441883?.[Symbol['toStringTag']],_0x562fa6=(_0x3c6fb5,_0x25bcc7,_0x3d8c0e)=>{if(void 0x0!==_0x25bcc7['use']&&'sig'!==_0x25bcc7['use'])throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20use\x20must\x20be\x20sig');if(void 0x0!==_0x25bcc7['key_ops']&&!0x0!==_0x25bcc7['key_ops']['includes']?.(_0x3d8c0e))throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20key_ops\x20must\x20include\x20'+_0x3d8c0e);if(void 0x0!==_0x25bcc7['alg']&&_0x25bcc7['alg']!==_0x3c6fb5)throw new TypeError('Invalid\x20key\x20for\x20this\x20operation,\x20when\x20present\x20its\x20alg\x20must\x20be\x20'+_0x3c6fb5);return!0x0;};function _0x4b04b4(_0x317063,_0x2ee8e3,_0x281913,_0x411de7){_0x2ee8e3['startsWith']('HS')||'dir'===_0x2ee8e3||_0x2ee8e3['startsWith']('PBES2')||/^A\d{3}(?:GCM)?KW$/['test'](_0x2ee8e3)?((_0x2a28fc,_0x15c6c4,_0x2aa76b,_0x322af6)=>{if(!(_0x15c6c4 instanceof Uint8Array)){if(_0x322af6&&_0x226ec6(_0x15c6c4)){if(function(_0x52ef85){return _0x226ec6(_0x52ef85)&&'oct'===_0x52ef85['kty']&&'string'==typeof _0x52ef85['k'];}(_0x15c6c4)&&_0x562fa6(_0x2a28fc,_0x15c6c4,_0x2aa76b))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20symmetric\x20algorithms\x20must\x20have\x20JWK\x20\x22kty\x22\x20(Key\x20Type)\x20equal\x20to\x20\x22oct\x22\x20and\x20the\x20JWK\x20\x22k\x22\x20(Key\x20Value)\x20present');}if(!_0xdcf8ca(_0x15c6c4))throw new TypeError(_0x36d77(_0x2a28fc,_0x15c6c4,..._0x2a1496,'Uint8Array',_0x322af6?'JSON\x20Web\x20Key':null));if('secret'!==_0x15c6c4['type'])throw new TypeError(_0x44458f(_0x15c6c4)+'\x20instances\x20for\x20symmetric\x20algorithms\x20must\x20be\x20of\x20type\x20\x22secret\x22');}})(_0x2ee8e3,_0x281913,_0x411de7,_0x317063):((_0x3eaf4b,_0x20f0df,_0x4c99f9,_0x6312cf)=>{if(_0x6312cf&&_0x226ec6(_0x20f0df))switch(_0x4c99f9){case'sign':if(function(_0x194555){return'oct'!==_0x194555['kty']&&'string'==typeof _0x194555['d'];}(_0x20f0df)&&_0x562fa6(_0x3eaf4b,_0x20f0df,_0x4c99f9))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20this\x20operation\x20be\x20a\x20private\x20JWK');case'verify':if(function(_0x398daa){return'oct'!==_0x398daa['kty']&&void 0x0===_0x398daa['d'];}(_0x20f0df)&&_0x562fa6(_0x3eaf4b,_0x20f0df,_0x4c99f9))return;throw new TypeError('JSON\x20Web\x20Key\x20for\x20this\x20operation\x20be\x20a\x20public\x20JWK');}if(!_0xdcf8ca(_0x20f0df))throw new TypeError(_0x36d77(_0x3eaf4b,_0x20f0df,..._0x2a1496,_0x6312cf?'JSON\x20Web\x20Key':null));if('secret'===_0x20f0df['type'])throw new TypeError(_0x44458f(_0x20f0df)+'\x20instances\x20for\x20asymmetric\x20algorithms\x20must\x20not\x20be\x20of\x20type\x20\x22secret\x22');if('sign'===_0x4c99f9&&'public'===_0x20f0df['type'])throw new TypeError(_0x44458f(_0x20f0df)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20signing\x20must\x20be\x20of\x20type\x20\x22private\x22');if('decrypt'===_0x4c99f9&&'public'===_0x20f0df['type'])throw new TypeError(_0x44458f(_0x20f0df)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20decryption\x20must\x20be\x20of\x20type\x20\x22private\x22');if(_0x20f0df['algorithm']&&'verify'===_0x4c99f9&&'private'===_0x20f0df['type'])throw new TypeError(_0x44458f(_0x20f0df)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20verifying\x20must\x20be\x20of\x20type\x20\x22public\x22');if(_0x20f0df['algorithm']&&'encrypt'===_0x4c99f9&&'private'===_0x20f0df['type'])throw new TypeError(_0x44458f(_0x20f0df)+'\x20instances\x20for\x20asymmetric\x20algorithm\x20encryption\x20must\x20be\x20of\x20type\x20\x22public\x22');})(_0x2ee8e3,_0x281913,_0x411de7,_0x317063);}var _0x25dfcc=_0x4b04b4['bind'](void 0x0,!0x1);const _0x3b866a=_0x4b04b4['bind'](void 0x0,!0x0);var _0x4846be=async(_0x2197bd,_0x173fc4,_0x642744,_0xbddd2c,_0x4b03af)=>{if(!(_0x4ce946(_0x642744)||_0x642744 instanceof Uint8Array))throw new TypeError(_0x301e99(_0x642744,..._0x2a1496,'Uint8Array'));switch(_0xbddd2c?_0x13e05b(_0x2197bd,_0xbddd2c):_0xbddd2c=_0x55bd21(new Uint8Array(_0x4eae0e(_0x2197bd)>>0x3)),_0x2197bd){case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x642744 instanceof Uint8Array&&_0x5cd136(_0x642744,parseInt(_0x2197bd['slice'](-0x3),0xa)),async function(_0x269baa,_0x182ad3,_0x535ecf,_0x52ce90,_0x4bad8d){if(!(_0x535ecf instanceof Uint8Array))throw new TypeError(_0x301e99(_0x535ecf,'Uint8Array'));const _0x2754b7=parseInt(_0x269baa['slice'](0x1,0x4),0xa),_0x4d60ea=await _0x227e5f['subtle']['importKey']('raw',_0x535ecf['subarray'](_0x2754b7>>0x3),'AES-CBC',!0x1,['encrypt']),_0xa0a9c2=await _0x227e5f['subtle']['importKey']('raw',_0x535ecf['subarray'](0x0,_0x2754b7>>0x3),{'hash':'SHA-'+(_0x2754b7<<0x1),'name':'HMAC'},!0x1,['sign']),_0x107338=new Uint8Array(await _0x227e5f['subtle']['encrypt']({'iv':_0x52ce90,'name':'AES-CBC'},_0x4d60ea,_0x182ad3)),_0x4b2237=_0x2da615(_0x4bad8d,_0x52ce90,_0x107338,_0x1e629a(_0x4bad8d['length']<<0x3));return{'ciphertext':_0x107338,'tag':new Uint8Array((await _0x227e5f['subtle']['sign']('HMAC',_0xa0a9c2,_0x4b2237))['slice'](0x0,_0x2754b7>>0x3)),'iv':_0x52ce90};}(_0x2197bd,_0x173fc4,_0x642744,_0xbddd2c,_0x4b03af);case'A128GCM':case'A192GCM':case'A256GCM':return _0x642744 instanceof Uint8Array&&_0x5cd136(_0x642744,parseInt(_0x2197bd['slice'](0x1,0x4),0xa)),async function(_0x28ab7e,_0x65f48,_0x594749,_0x20d6e1,_0x331083){let _0x59dbdb;_0x594749 instanceof Uint8Array?_0x59dbdb=await _0x227e5f['subtle']['importKey']('raw',_0x594749,'AES-GCM',!0x1,['encrypt']):(_0x242496(_0x594749,_0x28ab7e,'encrypt'),_0x59dbdb=_0x594749);const _0x1e51db=new Uint8Array(await _0x227e5f['subtle']['encrypt']({'additionalData':_0x331083,'iv':_0x20d6e1,'name':'AES-GCM','tagLength':0x80},_0x59dbdb,_0x65f48)),_0x55e313=_0x1e51db['slice'](-0x10);return{'ciphertext':_0x1e51db['slice'](0x0,-0x10),'tag':_0x55e313,'iv':_0x20d6e1};}(_0x2197bd,_0x173fc4,_0x642744,_0xbddd2c,_0x4b03af);default:throw new _0x214f0b('Unsupported\x20JWE\x20Content\x20Encryption\x20Algorithm');}},_0x42e970=function(_0x2d397d,_0x36e9d0,_0x17cb25,_0x2779d6,_0x7b1b5f){if(void 0x0!==_0x7b1b5f['crit']&&void 0x0===_0x2779d6?.['crit'])throw new _0x2d397d('\x22crit\x22\x20(Critical)\x20Header\x20Parameter\x20MUST\x20be\x20integrity\x20protected');if(!_0x2779d6||void 0x0===_0x2779d6['crit'])return new Set();if(!Array['isArray'](_0x2779d6['crit'])||0x0===_0x2779d6['crit']['length']||_0x2779d6['crit']['some'](_0x1f69f4=>'string'!=typeof _0x1f69f4||0x0===_0x1f69f4['length']))throw new _0x2d397d('\x22crit\x22\x20(Critical)\x20Header\x20Parameter\x20MUST\x20be\x20an\x20array\x20of\x20non-empty\x20strings\x20when\x20present');let _0x36f137;_0x36f137=void 0x0!==_0x17cb25?new Map([...Object['entries'](_0x17cb25),..._0x36e9d0['entries']()]):_0x36e9d0;for(const _0x244aab of _0x2779d6['crit']){if(!_0x36f137['has'](_0x244aab))throw new _0x214f0b('Extension\x20Header\x20Parameter\x20\x22'+_0x244aab+'\x22\x20is\x20not\x20recognized');if(void 0x0===_0x7b1b5f[_0x244aab])throw new _0x2d397d('Extension\x20Header\x20Parameter\x20\x22'+_0x244aab+'\x22\x20is\x20missing');if(_0x36f137['get'](_0x244aab)&&void 0x0===_0x2779d6[_0x244aab])throw new _0x2d397d('Extension\x20Header\x20Parameter\x20\x22'+_0x244aab+'\x22\x20MUST\x20be\x20integrity\x20protected');}return new Set(_0x2779d6['crit']);},_0x203e53=(_0x110dec,_0xc802fe)=>{if(void 0x0!==_0xc802fe&&(!Array['isArray'](_0xc802fe)||_0xc802fe['some'](_0x14df99=>'string'!=typeof _0x14df99)))throw new TypeError('\x22'+_0x110dec+'\x22\x20option\x20must\x20be\x20an\x20array\x20of\x20strings');if(_0xc802fe)return new Set(_0xc802fe);};async function _0xa608a8(_0x57ce8b,_0x4fee8f,_0x2b4c41){if(!_0x12de36(_0x57ce8b))throw new _0x167bac('Flattened\x20JWE\x20must\x20be\x20an\x20object');if(void 0x0===_0x57ce8b['protected']&&void 0x0===_0x57ce8b['header']&&void 0x0===_0x57ce8b['unprotected'])throw new _0x167bac('JOSE\x20Header\x20missing');if(void 0x0!==_0x57ce8b['iv']&&'string'!=typeof _0x57ce8b['iv'])throw new _0x167bac('JWE\x20Initialization\x20Vector\x20incorrect\x20type');if('string'!=typeof _0x57ce8b['ciphertext'])throw new _0x167bac('JWE\x20Ciphertext\x20missing\x20or\x20incorrect\x20type');if(void 0x0!==_0x57ce8b['tag']&&'string'!=typeof _0x57ce8b['tag'])throw new _0x167bac('JWE\x20Authentication\x20Tag\x20incorrect\x20type');if(void 0x0!==_0x57ce8b['protected']&&'string'!=typeof _0x57ce8b['protected'])throw new _0x167bac('JWE\x20Protected\x20Header\x20incorrect\x20type');if(void 0x0!==_0x57ce8b['encrypted_key']&&'string'!=typeof _0x57ce8b['encrypted_key'])throw new _0x167bac('JWE\x20Encrypted\x20Key\x20incorrect\x20type');if(void 0x0!==_0x57ce8b['aad']&&'string'!=typeof _0x57ce8b['aad'])throw new _0x167bac('JWE\x20AAD\x20incorrect\x20type');if(void 0x0!==_0x57ce8b['header']&&!_0x12de36(_0x57ce8b['header']))throw new _0x167bac('JWE\x20Shared\x20Unprotected\x20Header\x20incorrect\x20type');if(void 0x0!==_0x57ce8b['unprotected']&&!_0x12de36(_0x57ce8b['unprotected']))throw new _0x167bac('JWE\x20Per-Recipient\x20Unprotected\x20Header\x20incorrect\x20type');let _0x53b1c2;if(_0x57ce8b['protected'])try{const _0x3bdd10=_0x341128(_0x57ce8b['protected']);_0x53b1c2=JSON['parse'](_0x388aab['decode'](_0x3bdd10));}catch{throw new _0x167bac('JWE\x20Protected\x20Header\x20is\x20invalid');}if(!_0x50ca83(_0x53b1c2,_0x57ce8b['header'],_0x57ce8b['unprotected']))throw new _0x167bac('JWE\x20Protected,\x20JWE\x20Unprotected\x20Header,\x20and\x20JWE\x20Per-Recipient\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x45a7d4={..._0x53b1c2,..._0x57ce8b['header'],..._0x57ce8b['unprotected']};if(_0x42e970(_0x167bac,new Map(),_0x2b4c41?.['crit'],_0x53b1c2,_0x45a7d4),void 0x0!==_0x45a7d4['zip'])throw new _0x214f0b('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');const {alg:_0x43699c,enc:_0x173f2a}=_0x45a7d4;if('string'!=typeof _0x43699c||!_0x43699c)throw new _0x167bac('missing\x20JWE\x20Algorithm\x20(alg)\x20in\x20JWE\x20Header');if('string'!=typeof _0x173f2a||!_0x173f2a)throw new _0x167bac('missing\x20JWE\x20Encryption\x20Algorithm\x20(enc)\x20in\x20JWE\x20Header');const _0x22de05=_0x2b4c41&&_0x203e53('keyManagementAlgorithms',_0x2b4c41['keyManagementAlgorithms']),_0x51eb8a=_0x2b4c41&&_0x203e53('contentEncryptionAlgorithms',_0x2b4c41['contentEncryptionAlgorithms']);if(_0x22de05&&!_0x22de05['has'](_0x43699c)||!_0x22de05&&_0x43699c['startsWith']('PBES2'))throw new _0x42ffc8('\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');if(_0x51eb8a&&!_0x51eb8a['has'](_0x173f2a))throw new _0x42ffc8('\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');let _0x14d925;if(void 0x0!==_0x57ce8b['encrypted_key'])try{_0x14d925=_0x341128(_0x57ce8b['encrypted_key']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20encrypted_key');}let _0x30cee5,_0x26d9ae,_0x34162c,_0x445224=!0x1;'function'==typeof _0x4fee8f&&(_0x4fee8f=await _0x4fee8f(_0x53b1c2,_0x57ce8b),_0x445224=!0x0);try{_0x30cee5=await async function(_0x4c1ab8,_0x8296a7,_0x4b6329,_0x4b67d7,_0x47f0a4){switch(_0x25dfcc(_0x4c1ab8,_0x8296a7,'decrypt'),_0x8296a7=await _0x576e3a?.(_0x8296a7,_0x4c1ab8)||_0x8296a7,_0x4c1ab8){case'dir':if(void 0x0!==_0x4b6329)throw new _0x167bac('Encountered\x20unexpected\x20JWE\x20Encrypted\x20Key');return _0x8296a7;case'ECDH-ES':if(void 0x0!==_0x4b6329)throw new _0x167bac('Encountered\x20unexpected\x20JWE\x20Encrypted\x20Key');case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{if(!_0x12de36(_0x4b67d7['epk']))throw new _0x167bac('JOSE\x20Header\x20\x22epk\x22\x20(Ephemeral\x20Public\x20Key)\x20missing\x20or\x20invalid');if(!_0xb1dffd(_0x8296a7))throw new _0x214f0b('ECDH\x20with\x20the\x20provided\x20key\x20is\x20not\x20allowed\x20or\x20not\x20supported\x20by\x20your\x20javascript\x20runtime');const _0xd2f9d5=await _0x194ced(_0x4b67d7['epk'],_0x4c1ab8);let _0x184adb,_0x3b6c4b;if(void 0x0!==_0x4b67d7['apu']){if('string'!=typeof _0x4b67d7['apu'])throw new _0x167bac('JOSE\x20Header\x20\x22apu\x22\x20(Agreement\x20PartyUInfo)\x20invalid');try{_0x184adb=_0x341128(_0x4b67d7['apu']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20apu');}}if(void 0x0!==_0x4b67d7['apv']){if('string'!=typeof _0x4b67d7['apv'])throw new _0x167bac('JOSE\x20Header\x20\x22apv\x22\x20(Agreement\x20PartyVInfo)\x20invalid');try{_0x3b6c4b=_0x341128(_0x4b67d7['apv']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20apv');}}const _0x479243=await _0x48c974(_0xd2f9d5,_0x8296a7,'ECDH-ES'===_0x4c1ab8?_0x4b67d7['enc']:_0x4c1ab8,'ECDH-ES'===_0x4c1ab8?_0x403fc5(_0x4b67d7['enc']):parseInt(_0x4c1ab8['slice'](-0x5,-0x2),0xa),_0x184adb,_0x3b6c4b);if('ECDH-ES'===_0x4c1ab8)return _0x479243;if(void 0x0===_0x4b6329)throw new _0x167bac('JWE\x20Encrypted\x20Key\x20missing');return _0xcb569c(_0x4c1ab8['slice'](-0x6),_0x479243,_0x4b6329);}case'RSA1_5':case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':if(void 0x0===_0x4b6329)throw new _0x167bac('JWE\x20Encrypted\x20Key\x20missing');return(async(_0x4f3980,_0x5460f4,_0x2d64d2)=>{if(!_0x4ce946(_0x5460f4))throw new TypeError(_0x301e99(_0x5460f4,..._0x2a1496));if(_0x242496(_0x5460f4,_0x4f3980,'decrypt','unwrapKey'),_0x2b14c0(_0x4f3980,_0x5460f4),_0x5460f4['usages']['includes']('decrypt'))return new Uint8Array(await _0x227e5f['subtle']['decrypt'](_0x471af4(_0x4f3980),_0x5460f4,_0x2d64d2));if(_0x5460f4['usages']['includes']('unwrapKey')){const _0x26881f=await _0x227e5f['subtle']['unwrapKey']('raw',_0x2d64d2,_0x5460f4,_0x471af4(_0x4f3980),..._0x31b122);return new Uint8Array(await _0x227e5f['subtle']['exportKey']('raw',_0x26881f));}throw new TypeError('RSA-OAEP\x20key\x20\x22usages\x22\x20must\x20include\x20\x22decrypt\x22\x20or\x20\x22unwrapKey\x22\x20for\x20this\x20operation');})(_0x4c1ab8,_0x8296a7,_0x4b6329);case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':{if(void 0x0===_0x4b6329)throw new _0x167bac('JWE\x20Encrypted\x20Key\x20missing');if('number'!=typeof _0x4b67d7['p2c'])throw new _0x167bac('JOSE\x20Header\x20\x22p2c\x22\x20(PBES2\x20Count)\x20missing\x20or\x20invalid');const _0x4fbb60=_0x47f0a4?.['maxPBES2Count']||0x2710;if(_0x4b67d7['p2c']>_0x4fbb60)throw new _0x167bac('JOSE\x20Header\x20\x22p2c\x22\x20(PBES2\x20Count)\x20out\x20is\x20of\x20acceptable\x20bounds');if('string'!=typeof _0x4b67d7['p2s'])throw new _0x167bac('JOSE\x20Header\x20\x22p2s\x22\x20(PBES2\x20Salt)\x20missing\x20or\x20invalid');let _0x4d8b08;try{_0x4d8b08=_0x341128(_0x4b67d7['p2s']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20p2s');}return(async(_0x473d80,_0x5c6d7a,_0x2053c6,_0x1d454e,_0x3fa657)=>{const _0x56511b=await _0x57a500(_0x3fa657,_0x473d80,_0x1d454e,_0x5c6d7a);return _0xcb569c(_0x473d80['slice'](-0x6),_0x56511b,_0x2053c6);})(_0x4c1ab8,_0x8296a7,_0x4b6329,_0x4b67d7['p2c'],_0x4d8b08);}case'A128KW':case'A192KW':case'A256KW':if(void 0x0===_0x4b6329)throw new _0x167bac('JWE\x20Encrypted\x20Key\x20missing');return _0xcb569c(_0x4c1ab8,_0x8296a7,_0x4b6329);case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':{if(void 0x0===_0x4b6329)throw new _0x167bac('JWE\x20Encrypted\x20Key\x20missing');if('string'!=typeof _0x4b67d7['iv'])throw new _0x167bac('JOSE\x20Header\x20\x22iv\x22\x20(Initialization\x20Vector)\x20missing\x20or\x20invalid');if('string'!=typeof _0x4b67d7['tag'])throw new _0x167bac('JOSE\x20Header\x20\x22tag\x22\x20(Authentication\x20Tag)\x20missing\x20or\x20invalid');let _0x1a572b,_0x4489f6;try{_0x1a572b=_0x341128(_0x4b67d7['iv']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20iv');}try{_0x4489f6=_0x341128(_0x4b67d7['tag']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20tag');}return async function(_0x369e6f,_0x3350a8,_0x5466d5,_0x1ec8b5,_0x4db2b3){const _0x2dc881=_0x369e6f['slice'](0x0,0x7);return _0x5b1b44(_0x2dc881,_0x3350a8,_0x5466d5,_0x1ec8b5,_0x4db2b3,new Uint8Array(0x0));}(_0x4c1ab8,_0x8296a7,_0x4b6329,_0x1a572b,_0x4489f6);}default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(JWE\x20Algorithm)\x20header\x20value');}}(_0x43699c,_0x4fee8f,_0x14d925,_0x45a7d4,_0x2b4c41);}catch(_0x540336){if(_0x540336 instanceof TypeError||_0x540336 instanceof _0x167bac||_0x540336 instanceof _0x214f0b)throw _0x540336;_0x30cee5=_0x185c4e(_0x173f2a);}if(void 0x0!==_0x57ce8b['iv'])try{_0x26d9ae=_0x341128(_0x57ce8b['iv']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20iv');}if(void 0x0!==_0x57ce8b['tag'])try{_0x34162c=_0x341128(_0x57ce8b['tag']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20tag');}const _0x3c174c=_0x23f780['encode'](_0x57ce8b['protected']??'');let _0x2bb50e,_0x315c59;_0x2bb50e=void 0x0!==_0x57ce8b['aad']?_0x2da615(_0x3c174c,_0x23f780['encode']('.'),_0x23f780['encode'](_0x57ce8b['aad'])):_0x3c174c;try{_0x315c59=_0x341128(_0x57ce8b['ciphertext']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20ciphertext');}const _0x4299d6={'plaintext':await _0x5b1b44(_0x173f2a,_0x30cee5,_0x315c59,_0x26d9ae,_0x34162c,_0x2bb50e)};if(void 0x0!==_0x57ce8b['protected']&&(_0x4299d6['protectedHeader']=_0x53b1c2),void 0x0!==_0x57ce8b['aad'])try{_0x4299d6['additionalAuthenticatedData']=_0x341128(_0x57ce8b['aad']);}catch{throw new _0x167bac('Failed\x20to\x20base64url\x20decode\x20the\x20aad');}return void 0x0!==_0x57ce8b['unprotected']&&(_0x4299d6['sharedUnprotectedHeader']=_0x57ce8b['unprotected']),void 0x0!==_0x57ce8b['header']&&(_0x4299d6['unprotectedHeader']=_0x57ce8b['header']),_0x445224?{..._0x4299d6,'key':_0x4fee8f}:_0x4299d6;}async function _0x2f188e(_0x36fa8e,_0x44661a,_0x5155a8){if(_0x36fa8e instanceof Uint8Array&&(_0x36fa8e=_0x388aab['decode'](_0x36fa8e)),'string'!=typeof _0x36fa8e)throw new _0x167bac('Compact\x20JWE\x20must\x20be\x20a\x20string\x20or\x20Uint8Array');const {0x0:_0x113c08,0x1:_0x48a88a,0x2:_0x377222,0x3:_0x2d6c0b,0x4:_0x554fb2,length:_0x3bc25c}=_0x36fa8e['split']('.');if(0x5!==_0x3bc25c)throw new _0x167bac('Invalid\x20Compact\x20JWE');const _0x56d6ef=await _0xa608a8({'ciphertext':_0x2d6c0b,'iv':_0x377222||void 0x0,'protected':_0x113c08,'tag':_0x554fb2||void 0x0,'encrypted_key':_0x48a88a||void 0x0},_0x44661a,_0x5155a8),_0x26ce5e={'plaintext':_0x56d6ef['plaintext'],'protectedHeader':_0x56d6ef['protectedHeader']};return'function'==typeof _0x44661a?{..._0x26ce5e,'key':_0x56d6ef['key']}:_0x26ce5e;}async function _0x115e78(_0x2af1a8,_0x1dbafc,_0x599f60){if(!_0x12de36(_0x2af1a8))throw new _0x167bac('General\x20JWE\x20must\x20be\x20an\x20object');if(!Array['isArray'](_0x2af1a8['recipients'])||!_0x2af1a8['recipients']['every'](_0x12de36))throw new _0x167bac('JWE\x20Recipients\x20missing\x20or\x20incorrect\x20type');if(!_0x2af1a8['recipients']['length'])throw new _0x167bac('JWE\x20Recipients\x20has\x20no\x20members');for(const _0xcf8b71 of _0x2af1a8['recipients'])try{return await _0xa608a8({'aad':_0x2af1a8['aad'],'ciphertext':_0x2af1a8['ciphertext'],'encrypted_key':_0xcf8b71['encrypted_key'],'header':_0xcf8b71['header'],'iv':_0x2af1a8['iv'],'protected':_0x2af1a8['protected'],'tag':_0x2af1a8['tag'],'unprotected':_0x2af1a8['unprotected']},_0x1dbafc,_0x599f60);}catch{}throw new _0x41a6f0();}const _0x125d50=Symbol();async function _0x111f55(_0x1e7994){return(_0x25698a=>_0x12f75f('public','spki',_0x25698a))(_0x1e7994);}async function _0x1858a9(_0x316e1c){return(_0x2f1ca5=>_0x12f75f('private','pkcs8',_0x2f1ca5))(_0x316e1c);}async function _0x1c7b9f(_0x66afec){return(async _0x51b3c4=>{if(_0x51b3c4 instanceof Uint8Array)return{'kty':'oct','k':_0xb39e7b(_0x51b3c4)};if(!_0x4ce946(_0x51b3c4))throw new TypeError(_0x301e99(_0x51b3c4,..._0x2a1496,'Uint8Array'));if(!_0x51b3c4['extractable'])throw new TypeError('non-extractable\x20CryptoKey\x20cannot\x20be\x20exported\x20as\x20a\x20JWK');const {ext:_0x351cc8,key_ops:_0x404e6b,alg:_0x5546c0,use:_0x138a85,..._0x28bcca}=await _0x227e5f['subtle']['exportKey']('jwk',_0x51b3c4);return _0x28bcca;})(_0x66afec);}var _0x2d278a=async function(_0x3b3a59,_0x256de5,_0x1ab199,_0x5dec1a,_0x3d27e3={}){let _0x1b1f75,_0x1f9f3e,_0x262d3b;switch(_0x25dfcc(_0x3b3a59,_0x1ab199,'encrypt'),_0x1ab199=await _0x263d29?.(_0x1ab199,_0x3b3a59)||_0x1ab199,_0x3b3a59){case'dir':_0x262d3b=_0x1ab199;break;case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{if(!_0xb1dffd(_0x1ab199))throw new _0x214f0b('ECDH\x20with\x20the\x20provided\x20key\x20is\x20not\x20allowed\x20or\x20not\x20supported\x20by\x20your\x20javascript\x20runtime');const {apu:_0x20bc21,apv:_0x2625f8}=_0x3d27e3;let {epk:_0x109e0a}=_0x3d27e3;_0x109e0a||(_0x109e0a=(await async function(_0x3b7b1f){if(!_0x4ce946(_0x3b7b1f))throw new TypeError(_0x301e99(_0x3b7b1f,..._0x2a1496));return _0x227e5f['subtle']['generateKey'](_0x3b7b1f['algorithm'],!0x0,['deriveBits']);}(_0x1ab199))['privateKey']);const {x:_0x1e26f6,y:_0x3122e5,crv:_0x596dfb,kty:_0x14349a}=await _0x1c7b9f(_0x109e0a),_0x5e9e34=await _0x48c974(_0x1ab199,_0x109e0a,'ECDH-ES'===_0x3b3a59?_0x256de5:_0x3b3a59,'ECDH-ES'===_0x3b3a59?_0x403fc5(_0x256de5):parseInt(_0x3b3a59['slice'](-0x5,-0x2),0xa),_0x20bc21,_0x2625f8);if(_0x1f9f3e={'epk':{'x':_0x1e26f6,'crv':_0x596dfb,'kty':_0x14349a}},'EC'===_0x14349a&&(_0x1f9f3e['epk']['y']=_0x3122e5),_0x20bc21&&(_0x1f9f3e['apu']=_0xb39e7b(_0x20bc21)),_0x2625f8&&(_0x1f9f3e['apv']=_0xb39e7b(_0x2625f8)),'ECDH-ES'===_0x3b3a59){_0x262d3b=_0x5e9e34;break;}_0x262d3b=_0x5dec1a||_0x185c4e(_0x256de5);const _0x3d3d55=_0x3b3a59['slice'](-0x6);_0x1b1f75=await _0x2a70e7(_0x3d3d55,_0x5e9e34,_0x262d3b);break;}case'RSA1_5':case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x262d3b=_0x5dec1a||_0x185c4e(_0x256de5),_0x1b1f75=await(async(_0x1c311c,_0x55b9b4,_0x574673)=>{if(!_0x4ce946(_0x55b9b4))throw new TypeError(_0x301e99(_0x55b9b4,..._0x2a1496));if(_0x242496(_0x55b9b4,_0x1c311c,'encrypt','wrapKey'),_0x2b14c0(_0x1c311c,_0x55b9b4),_0x55b9b4['usages']['includes']('encrypt'))return new Uint8Array(await _0x227e5f['subtle']['encrypt'](_0x471af4(_0x1c311c),_0x55b9b4,_0x574673));if(_0x55b9b4['usages']['includes']('wrapKey')){const _0x53b165=await _0x227e5f['subtle']['importKey']('raw',_0x574673,..._0x31b122);return new Uint8Array(await _0x227e5f['subtle']['wrapKey']('raw',_0x53b165,_0x55b9b4,_0x471af4(_0x1c311c)));}throw new TypeError('RSA-OAEP\x20key\x20\x22usages\x22\x20must\x20include\x20\x22encrypt\x22\x20or\x20\x22wrapKey\x22\x20for\x20this\x20operation');})(_0x3b3a59,_0x1ab199,_0x262d3b);break;case'PBES2-HS256+A128KW':case'PBES2-HS384+A192KW':case'PBES2-HS512+A256KW':{_0x262d3b=_0x5dec1a||_0x185c4e(_0x256de5);const {p2c:_0x204f01,p2s:_0x2d4b4b}=_0x3d27e3;({encryptedKey:_0x1b1f75,..._0x1f9f3e}=await(async(_0x4aa99a,_0x5b9c5f,_0x2a6e30,_0x39b0d4=0x800,_0x5cf355=_0x55bd21(new Uint8Array(0x10)))=>{const _0x423023=await _0x57a500(_0x5cf355,_0x4aa99a,_0x39b0d4,_0x5b9c5f);return{'encryptedKey':await _0x2a70e7(_0x4aa99a['slice'](-0x6),_0x423023,_0x2a6e30),'p2c':_0x39b0d4,'p2s':_0xb39e7b(_0x5cf355)};})(_0x3b3a59,_0x1ab199,_0x262d3b,_0x204f01,_0x2d4b4b));break;}case'A128KW':case'A192KW':case'A256KW':_0x262d3b=_0x5dec1a||_0x185c4e(_0x256de5),_0x1b1f75=await _0x2a70e7(_0x3b3a59,_0x1ab199,_0x262d3b);break;case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':{_0x262d3b=_0x5dec1a||_0x185c4e(_0x256de5);const {iv:_0x489384}=_0x3d27e3;({encryptedKey:_0x1b1f75,..._0x1f9f3e}=await async function(_0x19f416,_0x5b7a5f,_0xf65d7e,_0xec9e37){const _0x22d89d=_0x19f416['slice'](0x0,0x7),_0x4ca997=await _0x4846be(_0x22d89d,_0xf65d7e,_0x5b7a5f,_0xec9e37,new Uint8Array(0x0));return{'encryptedKey':_0x4ca997['ciphertext'],'iv':_0xb39e7b(_0x4ca997['iv']),'tag':_0xb39e7b(_0x4ca997['tag'])};}(_0x3b3a59,_0x1ab199,_0x262d3b,_0x489384));break;}default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20\x22alg\x22\x20(JWE\x20Algorithm)\x20header\x20value');}return{'cek':_0x262d3b,'encryptedKey':_0x1b1f75,'parameters':_0x1f9f3e};};class _0x58fa6b{constructor(_0x27d7da){if(!(_0x27d7da instanceof Uint8Array))throw new TypeError('plaintext\x20must\x20be\x20an\x20instance\x20of\x20Uint8Array');this['_plaintext']=_0x27d7da;}['setKeyManagementParameters'](_0x37d5cd){if(this['_keyManagementParameters'])throw new TypeError('setKeyManagementParameters\x20can\x20only\x20be\x20called\x20once');return this['_keyManagementParameters']=_0x37d5cd,this;}['setProtectedHeader'](_0xcf63f5){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0xcf63f5,this;}['setSharedUnprotectedHeader'](_0x5ab94e){if(this['_sharedUnprotectedHeader'])throw new TypeError('setSharedUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_sharedUnprotectedHeader']=_0x5ab94e,this;}['setUnprotectedHeader'](_0x1d7f8c){if(this['_unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x1d7f8c,this;}['setAdditionalAuthenticatedData'](_0x4e6eb8){return this['_aad']=_0x4e6eb8,this;}['setContentEncryptionKey'](_0x57c914){if(this['_cek'])throw new TypeError('setContentEncryptionKey\x20can\x20only\x20be\x20called\x20once');return this['_cek']=_0x57c914,this;}['setInitializationVector'](_0x4d669e){if(this['_iv'])throw new TypeError('setInitializationVector\x20can\x20only\x20be\x20called\x20once');return this['_iv']=_0x4d669e,this;}async['encrypt'](_0x3bc10a,_0x236a56){if(!this['_protectedHeader']&&!this['_unprotectedHeader']&&!this['_sharedUnprotectedHeader'])throw new _0x167bac('either\x20setProtectedHeader,\x20setUnprotectedHeader,\x20or\x20sharedUnprotectedHeader\x20must\x20be\x20called\x20before\x20#encrypt()');if(!_0x50ca83(this['_protectedHeader'],this['_unprotectedHeader'],this['_sharedUnprotectedHeader']))throw new _0x167bac('JWE\x20Protected,\x20JWE\x20Shared\x20Unprotected\x20and\x20JWE\x20Per-Recipient\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x38cd22={...this['_protectedHeader'],...this['_unprotectedHeader'],...this['_sharedUnprotectedHeader']};if(_0x42e970(_0x167bac,new Map(),_0x236a56?.['crit'],this['_protectedHeader'],_0x38cd22),void 0x0!==_0x38cd22['zip'])throw new _0x214f0b('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');const {alg:_0x335d06,enc:_0x1b1cb7}=_0x38cd22;if('string'!=typeof _0x335d06||!_0x335d06)throw new _0x167bac('JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if('string'!=typeof _0x1b1cb7||!_0x1b1cb7)throw new _0x167bac('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');let _0x39ecac,_0x2ba673,_0xd40d7b,_0x205009,_0x41f344;if(this['_cek']&&('dir'===_0x335d06||'ECDH-ES'===_0x335d06))throw new TypeError('setContentEncryptionKey\x20cannot\x20be\x20called\x20with\x20JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20'+_0x335d06);{let _0x3bbfd1;({cek:_0x2ba673,encryptedKey:_0x39ecac,parameters:_0x3bbfd1}=await _0x2d278a(_0x335d06,_0x1b1cb7,_0x3bc10a,this['_cek'],this['_keyManagementParameters']),_0x3bbfd1&&(_0x236a56&&_0x125d50 in _0x236a56?this['_unprotectedHeader']?this['_unprotectedHeader']={...this['_unprotectedHeader'],..._0x3bbfd1}:this['setUnprotectedHeader'](_0x3bbfd1):this['_protectedHeader']?this['_protectedHeader']={...this['_protectedHeader'],..._0x3bbfd1}:this['setProtectedHeader'](_0x3bbfd1)));}_0x205009=this['_protectedHeader']?_0x23f780['encode'](_0xb39e7b(JSON['stringify'](this['_protectedHeader']))):_0x23f780['encode'](''),this['_aad']?(_0x41f344=_0xb39e7b(this['_aad']),_0xd40d7b=_0x2da615(_0x205009,_0x23f780['encode']('.'),_0x23f780['encode'](_0x41f344))):_0xd40d7b=_0x205009;const {ciphertext:_0x1105c8,tag:_0x42b73e,iv:_0x269a3b}=await _0x4846be(_0x1b1cb7,this['_plaintext'],_0x2ba673,this['_iv'],_0xd40d7b),_0x35e7fe={'ciphertext':_0xb39e7b(_0x1105c8)};return _0x269a3b&&(_0x35e7fe['iv']=_0xb39e7b(_0x269a3b)),_0x42b73e&&(_0x35e7fe['tag']=_0xb39e7b(_0x42b73e)),_0x39ecac&&(_0x35e7fe['encrypted_key']=_0xb39e7b(_0x39ecac)),_0x41f344&&(_0x35e7fe['aad']=_0x41f344),this['_protectedHeader']&&(_0x35e7fe['protected']=_0x388aab['decode'](_0x205009)),this['_sharedUnprotectedHeader']&&(_0x35e7fe['unprotected']=this['_sharedUnprotectedHeader']),this['_unprotectedHeader']&&(_0x35e7fe['header']=this['_unprotectedHeader']),_0x35e7fe;}}class _0x2a3bd9{constructor(_0x2372b7,_0x294b15,_0x5f2a31){this['parent']=_0x2372b7,this['key']=_0x294b15,this['options']=_0x5f2a31;}['setUnprotectedHeader'](_0x1eaea1){if(this['unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['unprotectedHeader']=_0x1eaea1,this;}['addRecipient'](..._0x3f31c0){return this['parent']['addRecipient'](..._0x3f31c0);}['encrypt'](..._0x4f859a){return this['parent']['encrypt'](..._0x4f859a);}['done'](){return this['parent'];}}class _0x41c23f{constructor(_0x11fb98){this['_recipients']=[],this['_plaintext']=_0x11fb98;}['addRecipient'](_0xba2961,_0x303eed){const _0x1c4a46=new _0x2a3bd9(this,_0xba2961,{'crit':_0x303eed?.['crit']});return this['_recipients']['push'](_0x1c4a46),_0x1c4a46;}['setProtectedHeader'](_0x4c0814){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x4c0814,this;}['setSharedUnprotectedHeader'](_0x31dd07){if(this['_unprotectedHeader'])throw new TypeError('setSharedUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x31dd07,this;}['setAdditionalAuthenticatedData'](_0x373979){return this['_aad']=_0x373979,this;}async['encrypt'](){if(!this['_recipients']['length'])throw new _0x167bac('at\x20least\x20one\x20recipient\x20must\x20be\x20added');if(0x1===this['_recipients']['length']){const [_0x53f96f]=this['_recipients'],_0x56eea8=await new _0x58fa6b(this['_plaintext'])['setAdditionalAuthenticatedData'](this['_aad'])['setProtectedHeader'](this['_protectedHeader'])['setSharedUnprotectedHeader'](this['_unprotectedHeader'])['setUnprotectedHeader'](_0x53f96f['unprotectedHeader'])['encrypt'](_0x53f96f['key'],{..._0x53f96f['options']}),_0x31c0f1={'ciphertext':_0x56eea8['ciphertext'],'iv':_0x56eea8['iv'],'recipients':[{}],'tag':_0x56eea8['tag']};return _0x56eea8['aad']&&(_0x31c0f1['aad']=_0x56eea8['aad']),_0x56eea8['protected']&&(_0x31c0f1['protected']=_0x56eea8['protected']),_0x56eea8['unprotected']&&(_0x31c0f1['unprotected']=_0x56eea8['unprotected']),_0x56eea8['encrypted_key']&&(_0x31c0f1['recipients'][0x0]['encrypted_key']=_0x56eea8['encrypted_key']),_0x56eea8['header']&&(_0x31c0f1['recipients'][0x0]['header']=_0x56eea8['header']),_0x31c0f1;}let _0x57a895;for(let _0x1bc805=0x0;_0x1bc805<this['_recipients']['length'];_0x1bc805++){const _0x3d4eec=this['_recipients'][_0x1bc805];if(!_0x50ca83(this['_protectedHeader'],this['_unprotectedHeader'],_0x3d4eec['unprotectedHeader']))throw new _0x167bac('JWE\x20Protected,\x20JWE\x20Shared\x20Unprotected\x20and\x20JWE\x20Per-Recipient\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x37a9b8={...this['_protectedHeader'],...this['_unprotectedHeader'],..._0x3d4eec['unprotectedHeader']},{alg:_0x8d8bce}=_0x37a9b8;if('string'!=typeof _0x8d8bce||!_0x8d8bce)throw new _0x167bac('JWE\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if('dir'===_0x8d8bce||'ECDH-ES'===_0x8d8bce)throw new _0x167bac('\x22dir\x22\x20and\x20\x22ECDH-ES\x22\x20alg\x20may\x20only\x20be\x20used\x20with\x20a\x20single\x20recipient');if('string'!=typeof _0x37a9b8['enc']||!_0x37a9b8['enc'])throw new _0x167bac('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');if(_0x57a895){if(_0x57a895!==_0x37a9b8['enc'])throw new _0x167bac('JWE\x20\x22enc\x22\x20(Encryption\x20Algorithm)\x20Header\x20Parameter\x20must\x20be\x20the\x20same\x20for\x20all\x20recipients');}else _0x57a895=_0x37a9b8['enc'];if(_0x42e970(_0x167bac,new Map(),_0x3d4eec['options']['crit'],this['_protectedHeader'],_0x37a9b8),void 0x0!==_0x37a9b8['zip'])throw new _0x214f0b('JWE\x20\x22zip\x22\x20(Compression\x20Algorithm)\x20Header\x20Parameter\x20is\x20not\x20supported.');}const _0x17f1e6=_0x185c4e(_0x57a895),_0x354fc0={'ciphertext':'','iv':'','recipients':[],'tag':''};for(let _0x179ace=0x0;_0x179ace<this['_recipients']['length'];_0x179ace++){const _0x38bab8=this['_recipients'][_0x179ace],_0x1fdf70={};_0x354fc0['recipients']['push'](_0x1fdf70);const _0x5ced38={...this['_protectedHeader'],...this['_unprotectedHeader'],..._0x38bab8['unprotectedHeader']}['alg']['startsWith']('PBES2')?0x800+_0x179ace:void 0x0;if(0x0===_0x179ace){const _0x2167f2=await new _0x58fa6b(this['_plaintext'])['setAdditionalAuthenticatedData'](this['_aad'])['setContentEncryptionKey'](_0x17f1e6)['setProtectedHeader'](this['_protectedHeader'])['setSharedUnprotectedHeader'](this['_unprotectedHeader'])['setUnprotectedHeader'](_0x38bab8['unprotectedHeader'])['setKeyManagementParameters']({'p2c':_0x5ced38})['encrypt'](_0x38bab8['key'],{..._0x38bab8['options'],[_0x125d50]:!0x0});_0x354fc0['ciphertext']=_0x2167f2['ciphertext'],_0x354fc0['iv']=_0x2167f2['iv'],_0x354fc0['tag']=_0x2167f2['tag'],_0x2167f2['aad']&&(_0x354fc0['aad']=_0x2167f2['aad']),_0x2167f2['protected']&&(_0x354fc0['protected']=_0x2167f2['protected']),_0x2167f2['unprotected']&&(_0x354fc0['unprotected']=_0x2167f2['unprotected']),_0x1fdf70['encrypted_key']=_0x2167f2['encrypted_key'],_0x2167f2['header']&&(_0x1fdf70['header']=_0x2167f2['header']);continue;}const {encryptedKey:_0x174e9b,parameters:_0x311b06}=await _0x2d278a(_0x38bab8['unprotectedHeader']?.['alg']||this['_protectedHeader']?.['alg']||this['_unprotectedHeader']?.['alg'],_0x57a895,_0x38bab8['key'],_0x17f1e6,{'p2c':_0x5ced38});_0x1fdf70['encrypted_key']=_0xb39e7b(_0x174e9b),(_0x38bab8['unprotectedHeader']||_0x311b06)&&(_0x1fdf70['header']={..._0x38bab8['unprotectedHeader'],..._0x311b06});}return _0x354fc0;}}function _0x12b109(_0x2052d3,_0x2d2ed6){const _0x3c20ac='SHA-'+_0x2052d3['slice'](-0x3);switch(_0x2052d3){case'HS256':case'HS384':case'HS512':return{'hash':_0x3c20ac,'name':'HMAC'};case'PS256':case'PS384':case'PS512':return{'hash':_0x3c20ac,'name':'RSA-PSS','saltLength':_0x2052d3['slice'](-0x3)>>0x3};case'RS256':case'RS384':case'RS512':return{'hash':_0x3c20ac,'name':'RSASSA-PKCS1-v1_5'};case'ES256':case'ES384':case'ES512':return{'hash':_0x3c20ac,'name':'ECDSA','namedCurve':_0x2d2ed6['namedCurve']};case'Ed25519':return{'name':'Ed25519'};case'EdDSA':return{'name':_0x2d2ed6['name']};default:throw new _0x214f0b('alg\x20'+_0x2052d3+'\x20is\x20not\x20supported\x20either\x20by\x20JOSE\x20or\x20your\x20javascript\x20runtime');}}async function _0x38e890(_0x358904,_0x1841c0,_0xa57f55){if('sign'===_0xa57f55&&(_0x1841c0=await _0x576e3a(_0x1841c0,_0x358904)),'verify'===_0xa57f55&&(_0x1841c0=await _0x263d29(_0x1841c0,_0x358904)),_0x4ce946(_0x1841c0))return function(_0x3d63c4,_0x686676,..._0x1555c0){switch(_0x686676){case'HS256':case'HS384':case'HS512':{if(!_0x357c38(_0x3d63c4['algorithm'],'HMAC'))throw _0x5eb897('HMAC');const _0x5c81e1=parseInt(_0x686676['slice'](0x2),0xa);if(_0x56e81e(_0x3d63c4['algorithm']['hash'])!==_0x5c81e1)throw _0x5eb897('SHA-'+_0x5c81e1,'algorithm.hash');break;}case'RS256':case'RS384':case'RS512':{if(!_0x357c38(_0x3d63c4['algorithm'],'RSASSA-PKCS1-v1_5'))throw _0x5eb897('RSASSA-PKCS1-v1_5');const _0x16f302=parseInt(_0x686676['slice'](0x2),0xa);if(_0x56e81e(_0x3d63c4['algorithm']['hash'])!==_0x16f302)throw _0x5eb897('SHA-'+_0x16f302,'algorithm.hash');break;}case'PS256':case'PS384':case'PS512':{if(!_0x357c38(_0x3d63c4['algorithm'],'RSA-PSS'))throw _0x5eb897('RSA-PSS');const _0x4ddb5a=parseInt(_0x686676['slice'](0x2),0xa);if(_0x56e81e(_0x3d63c4['algorithm']['hash'])!==_0x4ddb5a)throw _0x5eb897('SHA-'+_0x4ddb5a,'algorithm.hash');break;}case'EdDSA':if('Ed25519'!==_0x3d63c4['algorithm']['name']&&'Ed448'!==_0x3d63c4['algorithm']['name'])throw _0x5eb897('Ed25519\x20or\x20Ed448');break;case'Ed25519':if(!_0x357c38(_0x3d63c4['algorithm'],'Ed25519'))throw _0x5eb897('Ed25519');break;case'ES256':case'ES384':case'ES512':{if(!_0x357c38(_0x3d63c4['algorithm'],'ECDSA'))throw _0x5eb897('ECDSA');const _0x1cc79d=function(_0x442638){switch(_0x442638){case'ES256':return'P-256';case'ES384':return'P-384';case'ES512':return'P-521';default:throw new Error('unreachable');}}(_0x686676);if(_0x3d63c4['algorithm']['namedCurve']!==_0x1cc79d)throw _0x5eb897(_0x1cc79d,'algorithm.namedCurve');break;}default:throw new TypeError('CryptoKey\x20does\x20not\x20support\x20this\x20operation');}_0x7edb1f(_0x3d63c4,_0x1555c0);}(_0x1841c0,_0x358904,_0xa57f55),_0x1841c0;if(_0x1841c0 instanceof Uint8Array){if(!_0x358904['startsWith']('HS'))throw new TypeError(_0x301e99(_0x1841c0,..._0x2a1496));return _0x227e5f['subtle']['importKey']('raw',_0x1841c0,{'hash':'SHA-'+_0x358904['slice'](-0x3),'name':'HMAC'},!0x1,[_0xa57f55]);}throw new TypeError(_0x301e99(_0x1841c0,..._0x2a1496,'Uint8Array','JSON\x20Web\x20Key'));}async function _0x256bad(_0x1f77cd,_0xfa3a81,_0x152407){if(!_0x12de36(_0x1f77cd))throw new _0x3e3f4a('Flattened\x20JWS\x20must\x20be\x20an\x20object');if(void 0x0===_0x1f77cd['protected']&&void 0x0===_0x1f77cd['header'])throw new _0x3e3f4a('Flattened\x20JWS\x20must\x20have\x20either\x20of\x20the\x20\x22protected\x22\x20or\x20\x22header\x22\x20members');if(void 0x0!==_0x1f77cd['protected']&&'string'!=typeof _0x1f77cd['protected'])throw new _0x3e3f4a('JWS\x20Protected\x20Header\x20incorrect\x20type');if(void 0x0===_0x1f77cd['payload'])throw new _0x3e3f4a('JWS\x20Payload\x20missing');if('string'!=typeof _0x1f77cd['signature'])throw new _0x3e3f4a('JWS\x20Signature\x20missing\x20or\x20incorrect\x20type');if(void 0x0!==_0x1f77cd['header']&&!_0x12de36(_0x1f77cd['header']))throw new _0x3e3f4a('JWS\x20Unprotected\x20Header\x20incorrect\x20type');let _0x3db353={};if(_0x1f77cd['protected'])try{const _0xb17710=_0x341128(_0x1f77cd['protected']);_0x3db353=JSON['parse'](_0x388aab['decode'](_0xb17710));}catch{throw new _0x3e3f4a('JWS\x20Protected\x20Header\x20is\x20invalid');}if(!_0x50ca83(_0x3db353,_0x1f77cd['header']))throw new _0x3e3f4a('JWS\x20Protected\x20and\x20JWS\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x3d1081={..._0x3db353,..._0x1f77cd['header']};let _0x474746=!0x0;if(_0x42e970(_0x3e3f4a,new Map([['b64',!0x0]]),_0x152407?.['crit'],_0x3db353,_0x3d1081)['has']('b64')&&(_0x474746=_0x3db353['b64'],'boolean'!=typeof _0x474746))throw new _0x3e3f4a('The\x20\x22b64\x22\x20(base64url-encode\x20payload)\x20Header\x20Parameter\x20must\x20be\x20a\x20boolean');const {alg:_0x42fe3e}=_0x3d1081;if('string'!=typeof _0x42fe3e||!_0x42fe3e)throw new _0x3e3f4a('JWS\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');const _0x3120e3=_0x152407&&_0x203e53('algorithms',_0x152407['algorithms']);if(_0x3120e3&&!_0x3120e3['has'](_0x42fe3e))throw new _0x42ffc8('\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20value\x20not\x20allowed');if(_0x474746){if('string'!=typeof _0x1f77cd['payload'])throw new _0x3e3f4a('JWS\x20Payload\x20must\x20be\x20a\x20string');}else{if('string'!=typeof _0x1f77cd['payload']&&!(_0x1f77cd['payload']instanceof Uint8Array))throw new _0x3e3f4a('JWS\x20Payload\x20must\x20be\x20a\x20string\x20or\x20an\x20Uint8Array\x20instance');}let _0xf5a03d=!0x1;'function'==typeof _0xfa3a81?(_0xfa3a81=await _0xfa3a81(_0x3db353,_0x1f77cd),_0xf5a03d=!0x0,_0x3b866a(_0x42fe3e,_0xfa3a81,'verify'),_0x226ec6(_0xfa3a81)&&(_0xfa3a81=await _0x194ced(_0xfa3a81,_0x42fe3e))):_0x3b866a(_0x42fe3e,_0xfa3a81,'verify');const _0x93408a=_0x2da615(_0x23f780['encode'](_0x1f77cd['protected']??''),_0x23f780['encode']('.'),'string'==typeof _0x1f77cd['payload']?_0x23f780['encode'](_0x1f77cd['payload']):_0x1f77cd['payload']);let _0x2071d3,_0xb0176d;try{_0x2071d3=_0x341128(_0x1f77cd['signature']);}catch{throw new _0x3e3f4a('Failed\x20to\x20base64url\x20decode\x20the\x20signature');}if(!await(async(_0x5949c7,_0x3d8380,_0x53bed3,_0x4e97fc)=>{const _0x3e3974=await _0x38e890(_0x5949c7,_0x3d8380,'verify');_0x2b14c0(_0x5949c7,_0x3e3974);const _0x2ed57b=_0x12b109(_0x5949c7,_0x3e3974['algorithm']);try{return await _0x227e5f['subtle']['verify'](_0x2ed57b,_0x3e3974,_0x53bed3,_0x4e97fc);}catch{return!0x1;}})(_0x42fe3e,_0xfa3a81,_0x2071d3,_0x93408a))throw new _0x54fa78();if(_0x474746)try{_0xb0176d=_0x341128(_0x1f77cd['payload']);}catch{throw new _0x3e3f4a('Failed\x20to\x20base64url\x20decode\x20the\x20payload');}else _0xb0176d='string'==typeof _0x1f77cd['payload']?_0x23f780['encode'](_0x1f77cd['payload']):_0x1f77cd['payload'];const _0x2ec7e6={'payload':_0xb0176d};return void 0x0!==_0x1f77cd['protected']&&(_0x2ec7e6['protectedHeader']=_0x3db353),void 0x0!==_0x1f77cd['header']&&(_0x2ec7e6['unprotectedHeader']=_0x1f77cd['header']),_0xf5a03d?{..._0x2ec7e6,'key':_0xfa3a81}:_0x2ec7e6;}async function _0x2f1e69(_0x42a623,_0x2467b0,_0x35a504){if(_0x42a623 instanceof Uint8Array&&(_0x42a623=_0x388aab['decode'](_0x42a623)),'string'!=typeof _0x42a623)throw new _0x3e3f4a('Compact\x20JWS\x20must\x20be\x20a\x20string\x20or\x20Uint8Array');const {0x0:_0x1c1268,0x1:_0x2c6f4a,0x2:_0x431fbf,length:_0x7fc4f6}=_0x42a623['split']('.');if(0x3!==_0x7fc4f6)throw new _0x3e3f4a('Invalid\x20Compact\x20JWS');const _0x44bb7e=await _0x256bad({'payload':_0x2c6f4a,'protected':_0x1c1268,'signature':_0x431fbf},_0x2467b0,_0x35a504),_0x1d6d32={'payload':_0x44bb7e['payload'],'protectedHeader':_0x44bb7e['protectedHeader']};return'function'==typeof _0x2467b0?{..._0x1d6d32,'key':_0x44bb7e['key']}:_0x1d6d32;}async function _0x44331b(_0x5dcfae,_0x1edcb9,_0x3535c6){if(!_0x12de36(_0x5dcfae))throw new _0x3e3f4a('General\x20JWS\x20must\x20be\x20an\x20object');if(!Array['isArray'](_0x5dcfae['signatures'])||!_0x5dcfae['signatures']['every'](_0x12de36))throw new _0x3e3f4a('JWS\x20Signatures\x20missing\x20or\x20incorrect\x20type');for(const _0x20bb88 of _0x5dcfae['signatures'])try{return await _0x256bad({'header':_0x20bb88['header'],'payload':_0x5dcfae['payload'],'protected':_0x20bb88['protected'],'signature':_0x20bb88['signature']},_0x1edcb9,_0x3535c6);}catch{}throw new _0x54fa78();}var _0x4f0419=_0x27680a=>Math['floor'](_0x27680a['getTime']()/0x3e8);const _0x13636b=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;var _0x21d8d0=_0x5b7f36=>{const _0x2d117d=_0x13636b['exec'](_0x5b7f36);if(!_0x2d117d||_0x2d117d[0x4]&&_0x2d117d[0x1])throw new TypeError('Invalid\x20time\x20period\x20format');const _0x21ae8d=parseFloat(_0x2d117d[0x2]);let _0x44cec3;switch(_0x2d117d[0x3]['toLowerCase']()){case'sec':case'secs':case'second':case'seconds':case's':_0x44cec3=Math['round'](_0x21ae8d);break;case'minute':case'minutes':case'min':case'mins':case'm':_0x44cec3=Math['round'](0x3c*_0x21ae8d);break;case'hour':case'hours':case'hr':case'hrs':case'h':_0x44cec3=Math['round'](0xe10*_0x21ae8d);break;case'day':case'days':case'd':_0x44cec3=Math['round'](0x15180*_0x21ae8d);break;case'week':case'weeks':case'w':_0x44cec3=Math['round'](0x93a80*_0x21ae8d);break;default:_0x44cec3=Math['round'](0x1e187e0*_0x21ae8d);}return'-'===_0x2d117d[0x1]||'ago'===_0x2d117d[0x4]?-_0x44cec3:_0x44cec3;};const _0x2c4fda=_0x378d97=>_0x378d97['toLowerCase']()['replace'](/^application\//,'');var _0x5d2876=(_0x218832,_0x547b93,_0x13058c={})=>{let _0x111829;try{_0x111829=JSON['parse'](_0x388aab['decode'](_0x547b93));}catch{}if(!_0x12de36(_0x111829))throw new _0x70530f('JWT\x20Claims\x20Set\x20must\x20be\x20a\x20top-level\x20JSON\x20object');const {typ:_0x1da1a9}=_0x13058c;if(_0x1da1a9&&('string'!=typeof _0x218832['typ']||_0x2c4fda(_0x218832['typ'])!==_0x2c4fda(_0x1da1a9)))throw new _0x14fc2c('unexpected\x20\x22typ\x22\x20JWT\x20header\x20value',_0x111829,'typ','check_failed');const {requiredClaims:_0x547e41=[],issuer:_0x3fd1b8,subject:_0x1e325a,audience:_0x1905d0,maxTokenAge:_0x1eb523}=_0x13058c,_0x4b9ed7=[..._0x547e41];void 0x0!==_0x1eb523&&_0x4b9ed7['push']('iat'),void 0x0!==_0x1905d0&&_0x4b9ed7['push']('aud'),void 0x0!==_0x1e325a&&_0x4b9ed7['push']('sub'),void 0x0!==_0x3fd1b8&&_0x4b9ed7['push']('iss');for(const _0x4c1800 of new Set(_0x4b9ed7['reverse']()))if(!(_0x4c1800 in _0x111829))throw new _0x14fc2c('missing\x20required\x20\x22'+_0x4c1800+'\x22\x20claim',_0x111829,_0x4c1800,'missing');if(_0x3fd1b8&&!(Array['isArray'](_0x3fd1b8)?_0x3fd1b8:[_0x3fd1b8])['includes'](_0x111829['iss']))throw new _0x14fc2c('unexpected\x20\x22iss\x22\x20claim\x20value',_0x111829,'iss','check_failed');if(_0x1e325a&&_0x111829['sub']!==_0x1e325a)throw new _0x14fc2c('unexpected\x20\x22sub\x22\x20claim\x20value',_0x111829,'sub','check_failed');if(_0x1905d0&&(_0x483d00='string'==typeof _0x1905d0?[_0x1905d0]:_0x1905d0,!('string'==typeof(_0x42ce41=_0x111829['aud'])?_0x483d00['includes'](_0x42ce41):Array['isArray'](_0x42ce41)&&_0x483d00['some'](Set['prototype']['has']['bind'](new Set(_0x42ce41))))))throw new _0x14fc2c('unexpected\x20\x22aud\x22\x20claim\x20value',_0x111829,'aud','check_failed');var _0x42ce41,_0x483d00;let _0x3fffe0;switch(typeof _0x13058c['clockTolerance']){case'string':_0x3fffe0=_0x21d8d0(_0x13058c['clockTolerance']);break;case'number':_0x3fffe0=_0x13058c['clockTolerance'];break;case'undefined':_0x3fffe0=0x0;break;default:throw new TypeError('Invalid\x20clockTolerance\x20option\x20type');}const {currentDate:_0x14aede}=_0x13058c,_0x54fe85=_0x4f0419(_0x14aede||new Date());if((void 0x0!==_0x111829['iat']||_0x1eb523)&&'number'!=typeof _0x111829['iat'])throw new _0x14fc2c('\x22iat\x22\x20claim\x20must\x20be\x20a\x20number',_0x111829,'iat','invalid');if(void 0x0!==_0x111829['nbf']){if('number'!=typeof _0x111829['nbf'])throw new _0x14fc2c('\x22nbf\x22\x20claim\x20must\x20be\x20a\x20number',_0x111829,'nbf','invalid');if(_0x111829['nbf']>_0x54fe85+_0x3fffe0)throw new _0x14fc2c('\x22nbf\x22\x20claim\x20timestamp\x20check\x20failed',_0x111829,'nbf','check_failed');}if(void 0x0!==_0x111829['exp']){if('number'!=typeof _0x111829['exp'])throw new _0x14fc2c('\x22exp\x22\x20claim\x20must\x20be\x20a\x20number',_0x111829,'exp','invalid');if(_0x111829['exp']<=_0x54fe85-_0x3fffe0)throw new _0x32bde('\x22exp\x22\x20claim\x20timestamp\x20check\x20failed',_0x111829,'exp','check_failed');}if(_0x1eb523){const _0x31adfc=_0x54fe85-_0x111829['iat'];if(_0x31adfc-_0x3fffe0>('number'==typeof _0x1eb523?_0x1eb523:_0x21d8d0(_0x1eb523)))throw new _0x32bde('\x22iat\x22\x20claim\x20timestamp\x20check\x20failed\x20(too\x20far\x20in\x20the\x20past)',_0x111829,'iat','check_failed');if(_0x31adfc<0x0-_0x3fffe0)throw new _0x14fc2c('\x22iat\x22\x20claim\x20timestamp\x20check\x20failed\x20(it\x20should\x20be\x20in\x20the\x20past)',_0x111829,'iat','check_failed');}return _0x111829;};async function _0x4c173a(_0x140b21,_0x2742ed,_0xeaebd){const _0x4a3259=await _0x2f1e69(_0x140b21,_0x2742ed,_0xeaebd);if(_0x4a3259['protectedHeader']['crit']?.['includes']('b64')&&!0x1===_0x4a3259['protectedHeader']['b64'])throw new _0x70530f('JWTs\x20MUST\x20NOT\x20use\x20unencoded\x20payload');const _0x4da395={'payload':_0x5d2876(_0x4a3259['protectedHeader'],_0x4a3259['payload'],_0xeaebd),'protectedHeader':_0x4a3259['protectedHeader']};return'function'==typeof _0x2742ed?{..._0x4da395,'key':_0x4a3259['key']}:_0x4da395;}async function _0x319b93(_0x22e3bc,_0x21ace8,_0x81897e){const _0x26a6ad=await _0x2f188e(_0x22e3bc,_0x21ace8,_0x81897e),_0xce3256=_0x5d2876(_0x26a6ad['protectedHeader'],_0x26a6ad['plaintext'],_0x81897e),{protectedHeader:_0x1849ee}=_0x26a6ad;if(void 0x0!==_0x1849ee['iss']&&_0x1849ee['iss']!==_0xce3256['iss'])throw new _0x14fc2c('replicated\x20\x22iss\x22\x20claim\x20header\x20parameter\x20mismatch',_0xce3256,'iss','mismatch');if(void 0x0!==_0x1849ee['sub']&&_0x1849ee['sub']!==_0xce3256['sub'])throw new _0x14fc2c('replicated\x20\x22sub\x22\x20claim\x20header\x20parameter\x20mismatch',_0xce3256,'sub','mismatch');if(void 0x0!==_0x1849ee['aud']&&JSON['stringify'](_0x1849ee['aud'])!==JSON['stringify'](_0xce3256['aud']))throw new _0x14fc2c('replicated\x20\x22aud\x22\x20claim\x20header\x20parameter\x20mismatch',_0xce3256,'aud','mismatch');const _0xa9f80={'payload':_0xce3256,'protectedHeader':_0x1849ee};return'function'==typeof _0x21ace8?{..._0xa9f80,'key':_0x26a6ad['key']}:_0xa9f80;}class _0x3bb226{constructor(_0x29a9dc){this['_flattened']=new _0x58fa6b(_0x29a9dc);}['setContentEncryptionKey'](_0x2f35cd){return this['_flattened']['setContentEncryptionKey'](_0x2f35cd),this;}['setInitializationVector'](_0xe666f5){return this['_flattened']['setInitializationVector'](_0xe666f5),this;}['setProtectedHeader'](_0x5e2c87){return this['_flattened']['setProtectedHeader'](_0x5e2c87),this;}['setKeyManagementParameters'](_0xcc9181){return this['_flattened']['setKeyManagementParameters'](_0xcc9181),this;}async['encrypt'](_0x2bbf47,_0x2a849f){const _0x10bdc6=await this['_flattened']['encrypt'](_0x2bbf47,_0x2a849f);return[_0x10bdc6['protected'],_0x10bdc6['encrypted_key'],_0x10bdc6['iv'],_0x10bdc6['ciphertext'],_0x10bdc6['tag']]['join']('.');}}class _0x31457a{constructor(_0xfefe2a){if(!(_0xfefe2a instanceof Uint8Array))throw new TypeError('payload\x20must\x20be\x20an\x20instance\x20of\x20Uint8Array');this['_payload']=_0xfefe2a;}['setProtectedHeader'](_0x23b4aa){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x23b4aa,this;}['setUnprotectedHeader'](_0x249492){if(this['_unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_unprotectedHeader']=_0x249492,this;}async['sign'](_0x2650a7,_0x1bf0df){if(!this['_protectedHeader']&&!this['_unprotectedHeader'])throw new _0x3e3f4a('either\x20setProtectedHeader\x20or\x20setUnprotectedHeader\x20must\x20be\x20called\x20before\x20#sign()');if(!_0x50ca83(this['_protectedHeader'],this['_unprotectedHeader']))throw new _0x3e3f4a('JWS\x20Protected\x20and\x20JWS\x20Unprotected\x20Header\x20Parameter\x20names\x20must\x20be\x20disjoint');const _0x1f1f06={...this['_protectedHeader'],...this['_unprotectedHeader']};let _0x53b9bb=!0x0;if(_0x42e970(_0x3e3f4a,new Map([['b64',!0x0]]),_0x1bf0df?.['crit'],this['_protectedHeader'],_0x1f1f06)['has']('b64')&&(_0x53b9bb=this['_protectedHeader']['b64'],'boolean'!=typeof _0x53b9bb))throw new _0x3e3f4a('The\x20\x22b64\x22\x20(base64url-encode\x20payload)\x20Header\x20Parameter\x20must\x20be\x20a\x20boolean');const {alg:_0x5887ea}=_0x1f1f06;if('string'!=typeof _0x5887ea||!_0x5887ea)throw new _0x3e3f4a('JWS\x20\x22alg\x22\x20(Algorithm)\x20Header\x20Parameter\x20missing\x20or\x20invalid');_0x3b866a(_0x5887ea,_0x2650a7,'sign');let _0xe11345,_0x170326=this['_payload'];_0x53b9bb&&(_0x170326=_0x23f780['encode'](_0xb39e7b(_0x170326))),_0xe11345=this['_protectedHeader']?_0x23f780['encode'](_0xb39e7b(JSON['stringify'](this['_protectedHeader']))):_0x23f780['encode']('');const _0x47466b=_0x2da615(_0xe11345,_0x23f780['encode']('.'),_0x170326),_0x4dc4dc=await(async(_0x154efc,_0x16d56f,_0x284513)=>{const _0x3ea78c=await _0x38e890(_0x154efc,_0x16d56f,'sign');_0x2b14c0(_0x154efc,_0x3ea78c);const _0x324c4b=await _0x227e5f['subtle']['sign'](_0x12b109(_0x154efc,_0x3ea78c['algorithm']),_0x3ea78c,_0x284513);return new Uint8Array(_0x324c4b);})(_0x5887ea,_0x2650a7,_0x47466b),_0x41367b={'signature':_0xb39e7b(_0x4dc4dc),'payload':''};return _0x53b9bb&&(_0x41367b['payload']=_0x388aab['decode'](_0x170326)),this['_unprotectedHeader']&&(_0x41367b['header']=this['_unprotectedHeader']),this['_protectedHeader']&&(_0x41367b['protected']=_0x388aab['decode'](_0xe11345)),_0x41367b;}}class _0x321a29{constructor(_0x295e9c){this['_flattened']=new _0x31457a(_0x295e9c);}['setProtectedHeader'](_0x2730f2){return this['_flattened']['setProtectedHeader'](_0x2730f2),this;}async['sign'](_0x2e8003,_0x268dfb){const _0x4aa535=await this['_flattened']['sign'](_0x2e8003,_0x268dfb);if(void 0x0===_0x4aa535['payload'])throw new TypeError('use\x20the\x20flattened\x20module\x20for\x20creating\x20JWS\x20with\x20b64:\x20false');return _0x4aa535['protected']+'.'+_0x4aa535['payload']+'.'+_0x4aa535['signature'];}}class _0x537f58{constructor(_0x5b0509,_0x39f9f5,_0x4ca62f){this['parent']=_0x5b0509,this['key']=_0x39f9f5,this['options']=_0x4ca62f;}['setProtectedHeader'](_0x2afc23){if(this['protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['protectedHeader']=_0x2afc23,this;}['setUnprotectedHeader'](_0x5cce1d){if(this['unprotectedHeader'])throw new TypeError('setUnprotectedHeader\x20can\x20only\x20be\x20called\x20once');return this['unprotectedHeader']=_0x5cce1d,this;}['addSignature'](..._0x384211){return this['parent']['addSignature'](..._0x384211);}['sign'](..._0x5a18ab){return this['parent']['sign'](..._0x5a18ab);}['done'](){return this['parent'];}}class _0x3e966a{constructor(_0x845706){this['_signatures']=[],this['_payload']=_0x845706;}['addSignature'](_0x35e251,_0x1f56f8){const _0x4a4d8c=new _0x537f58(this,_0x35e251,_0x1f56f8);return this['_signatures']['push'](_0x4a4d8c),_0x4a4d8c;}async['sign'](){if(!this['_signatures']['length'])throw new _0x3e3f4a('at\x20least\x20one\x20signature\x20must\x20be\x20added');const _0x1d87b7={'signatures':[],'payload':''};for(let _0x3a2352=0x0;_0x3a2352<this['_signatures']['length'];_0x3a2352++){const _0x58aa4b=this['_signatures'][_0x3a2352],_0x2af4cc=new _0x31457a(this['_payload']);_0x2af4cc['setProtectedHeader'](_0x58aa4b['protectedHeader']),_0x2af4cc['setUnprotectedHeader'](_0x58aa4b['unprotectedHeader']);const {payload:_0x4e4179,..._0x2d2260}=await _0x2af4cc['sign'](_0x58aa4b['key'],_0x58aa4b['options']);if(0x0===_0x3a2352)_0x1d87b7['payload']=_0x4e4179;else{if(_0x1d87b7['payload']!==_0x4e4179)throw new _0x3e3f4a('inconsistent\x20use\x20of\x20JWS\x20Unencoded\x20Payload\x20(RFC7797)');}_0x1d87b7['signatures']['push'](_0x2d2260);}return _0x1d87b7;}}function _0x2f791c(_0x46eb1f,_0x1ef081){if(!Number['isFinite'](_0x1ef081))throw new TypeError('Invalid\x20'+_0x46eb1f+'\x20input');return _0x1ef081;}class _0x47e883{constructor(_0x3477b2={}){if(!_0x12de36(_0x3477b2))throw new TypeError('JWT\x20Claims\x20Set\x20MUST\x20be\x20an\x20object');this['_payload']=_0x3477b2;}['setIssuer'](_0x1721d5){return this['_payload']={...this['_payload'],'iss':_0x1721d5},this;}['setSubject'](_0x1382ae){return this['_payload']={...this['_payload'],'sub':_0x1382ae},this;}['setAudience'](_0x3aef4b){return this['_payload']={...this['_payload'],'aud':_0x3aef4b},this;}['setJti'](_0x4bc4f4){return this['_payload']={...this['_payload'],'jti':_0x4bc4f4},this;}['setNotBefore'](_0x77695b){return'number'==typeof _0x77695b?this['_payload']={...this['_payload'],'nbf':_0x2f791c('setNotBefore',_0x77695b)}:_0x77695b instanceof Date?this['_payload']={...this['_payload'],'nbf':_0x2f791c('setNotBefore',_0x4f0419(_0x77695b))}:this['_payload']={...this['_payload'],'nbf':_0x4f0419(new Date())+_0x21d8d0(_0x77695b)},this;}['setExpirationTime'](_0xe92b45){return'number'==typeof _0xe92b45?this['_payload']={...this['_payload'],'exp':_0x2f791c('setExpirationTime',_0xe92b45)}:_0xe92b45 instanceof Date?this['_payload']={...this['_payload'],'exp':_0x2f791c('setExpirationTime',_0x4f0419(_0xe92b45))}:this['_payload']={...this['_payload'],'exp':_0x4f0419(new Date())+_0x21d8d0(_0xe92b45)},this;}['setIssuedAt'](_0x146232){return void 0x0===_0x146232?this['_payload']={...this['_payload'],'iat':_0x4f0419(new Date())}:_0x146232 instanceof Date?this['_payload']={...this['_payload'],'iat':_0x2f791c('setIssuedAt',_0x4f0419(_0x146232))}:this['_payload']='string'==typeof _0x146232?{...this['_payload'],'iat':_0x2f791c('setIssuedAt',_0x4f0419(new Date())+_0x21d8d0(_0x146232))}:{...this['_payload'],'iat':_0x2f791c('setIssuedAt',_0x146232)},this;}}class _0x21c38c extends _0x47e883{['setProtectedHeader'](_0x39636e){return this['_protectedHeader']=_0x39636e,this;}async['sign'](_0xe5ce17,_0x45ff46){const _0x44c3ba=new _0x321a29(_0x23f780['encode'](JSON['stringify'](this['_payload'])));if(_0x44c3ba['setProtectedHeader'](this['_protectedHeader']),Array['isArray'](this['_protectedHeader']?.['crit'])&&this['_protectedHeader']['crit']['includes']('b64')&&!0x1===this['_protectedHeader']['b64'])throw new _0x70530f('JWTs\x20MUST\x20NOT\x20use\x20unencoded\x20payload');return _0x44c3ba['sign'](_0xe5ce17,_0x45ff46);}}class _0x258481 extends _0x47e883{['setProtectedHeader'](_0x2f25bc){if(this['_protectedHeader'])throw new TypeError('setProtectedHeader\x20can\x20only\x20be\x20called\x20once');return this['_protectedHeader']=_0x2f25bc,this;}['setKeyManagementParameters'](_0x445e2b){if(this['_keyManagementParameters'])throw new TypeError('setKeyManagementParameters\x20can\x20only\x20be\x20called\x20once');return this['_keyManagementParameters']=_0x445e2b,this;}['setContentEncryptionKey'](_0x5420c8){if(this['_cek'])throw new TypeError('setContentEncryptionKey\x20can\x20only\x20be\x20called\x20once');return this['_cek']=_0x5420c8,this;}['setInitializationVector'](_0x55a8ec){if(this['_iv'])throw new TypeError('setInitializationVector\x20can\x20only\x20be\x20called\x20once');return this['_iv']=_0x55a8ec,this;}['replicateIssuerAsHeader'](){return this['_replicateIssuerAsHeader']=!0x0,this;}['replicateSubjectAsHeader'](){return this['_replicateSubjectAsHeader']=!0x0,this;}['replicateAudienceAsHeader'](){return this['_replicateAudienceAsHeader']=!0x0,this;}async['encrypt'](_0xc23284,_0x4222c0){const _0x445dd3=new _0x3bb226(_0x23f780['encode'](JSON['stringify'](this['_payload'])));return this['_replicateIssuerAsHeader']&&(this['_protectedHeader']={...this['_protectedHeader'],'iss':this['_payload']['iss']}),this['_replicateSubjectAsHeader']&&(this['_protectedHeader']={...this['_protectedHeader'],'sub':this['_payload']['sub']}),this['_replicateAudienceAsHeader']&&(this['_protectedHeader']={...this['_protectedHeader'],'aud':this['_payload']['aud']}),_0x445dd3['setProtectedHeader'](this['_protectedHeader']),this['_iv']&&_0x445dd3['setInitializationVector'](this['_iv']),this['_cek']&&_0x445dd3['setContentEncryptionKey'](this['_cek']),this['_keyManagementParameters']&&_0x445dd3['setKeyManagementParameters'](this['_keyManagementParameters']),_0x445dd3['encrypt'](_0xc23284,_0x4222c0);}}const _0x2d8688=(_0x234927,_0x4586ae)=>{if('string'!=typeof _0x234927||!_0x234927)throw new _0x3600e0(_0x4586ae+'\x20missing\x20or\x20invalid');};async function _0x244319(_0x4ba44d,_0x3a3eaf){if(!_0x12de36(_0x4ba44d))throw new TypeError('JWK\x20must\x20be\x20an\x20object');if(_0x3a3eaf??(_0x3a3eaf='sha256'),'sha256'!==_0x3a3eaf&&'sha384'!==_0x3a3eaf&&'sha512'!==_0x3a3eaf)throw new TypeError('digestAlgorithm\x20must\x20one\x20of\x20\x22sha256\x22,\x20\x22sha384\x22,\x20or\x20\x22sha512\x22');let _0x25e003;switch(_0x4ba44d['kty']){case'EC':_0x2d8688(_0x4ba44d['crv'],'\x22crv\x22\x20(Curve)\x20Parameter'),_0x2d8688(_0x4ba44d['x'],'\x22x\x22\x20(X\x20Coordinate)\x20Parameter'),_0x2d8688(_0x4ba44d['y'],'\x22y\x22\x20(Y\x20Coordinate)\x20Parameter'),_0x25e003={'crv':_0x4ba44d['crv'],'kty':_0x4ba44d['kty'],'x':_0x4ba44d['x'],'y':_0x4ba44d['y']};break;case'OKP':_0x2d8688(_0x4ba44d['crv'],'\x22crv\x22\x20(Subtype\x20of\x20Key\x20Pair)\x20Parameter'),_0x2d8688(_0x4ba44d['x'],'\x22x\x22\x20(Public\x20Key)\x20Parameter'),_0x25e003={'crv':_0x4ba44d['crv'],'kty':_0x4ba44d['kty'],'x':_0x4ba44d['x']};break;case'RSA':_0x2d8688(_0x4ba44d['e'],'\x22e\x22\x20(Exponent)\x20Parameter'),_0x2d8688(_0x4ba44d['n'],'\x22n\x22\x20(Modulus)\x20Parameter'),_0x25e003={'e':_0x4ba44d['e'],'kty':_0x4ba44d['kty'],'n':_0x4ba44d['n']};break;case'oct':_0x2d8688(_0x4ba44d['k'],'\x22k\x22\x20(Key\x20Value)\x20Parameter'),_0x25e003={'k':_0x4ba44d['k'],'kty':_0x4ba44d['kty']};break;default:throw new _0x214f0b('\x22kty\x22\x20(Key\x20Type)\x20Parameter\x20missing\x20or\x20unsupported');}const _0x48ef9c=_0x23f780['encode'](JSON['stringify'](_0x25e003));return _0xb39e7b(await _0x5f0e8b(_0x3a3eaf,_0x48ef9c));}async function _0x4d569f(_0x2a2c09,_0x1ab495){_0x1ab495??(_0x1ab495='sha256');const _0x576d04=await _0x244319(_0x2a2c09,_0x1ab495);return'urn:ietf:params:oauth:jwk-thumbprint:sha-'+_0x1ab495['slice'](-0x3)+':'+_0x576d04;}async function _0x7fd559(_0x234908,_0x560b44){const _0x31ba20={..._0x234908,..._0x560b44?.['header']};if(!_0x12de36(_0x31ba20['jwk']))throw new _0x3e3f4a('\x22jwk\x22\x20(JSON\x20Web\x20Key)\x20Header\x20Parameter\x20must\x20be\x20a\x20JSON\x20object');const _0xe76fb2=await _0x194ced({..._0x31ba20['jwk'],'ext':!0x0},_0x31ba20['alg']);if(_0xe76fb2 instanceof Uint8Array||'public'!==_0xe76fb2['type'])throw new _0x3e3f4a('\x22jwk\x22\x20(JSON\x20Web\x20Key)\x20Header\x20Parameter\x20must\x20be\x20a\x20public\x20key');return _0xe76fb2;}function _0x483c2d(_0x228774){return _0x12de36(_0x228774);}function _0x16ab93(_0x4ff88a){return'function'==typeof structuredClone?structuredClone(_0x4ff88a):JSON['parse'](JSON['stringify'](_0x4ff88a));}class _0x444ddf{constructor(_0x4dd860){if(this['_cached']=new WeakMap(),!function(_0x52c30c){return _0x52c30c&&'object'==typeof _0x52c30c&&Array['isArray'](_0x52c30c['keys'])&&_0x52c30c['keys']['every'](_0x483c2d);}(_0x4dd860))throw new _0x51cd7d('JSON\x20Web\x20Key\x20Set\x20malformed');this['_jwks']=_0x16ab93(_0x4dd860);}async['getKey'](_0x203b6d,_0x432e41){const {alg:_0x32f140,kid:_0x370c4b}={..._0x203b6d,..._0x432e41?.['header']},_0x2d58ba=function(_0x465eb0){switch('string'==typeof _0x465eb0&&_0x465eb0['slice'](0x0,0x2)){case'RS':case'PS':return'RSA';case'ES':return'EC';case'Ed':return'OKP';default:throw new _0x214f0b('Unsupported\x20\x22alg\x22\x20value\x20for\x20a\x20JSON\x20Web\x20Key\x20Set');}}(_0x32f140),_0x5db8f4=this['_jwks']['keys']['filter'](_0x2865b7=>{let _0x26f13a=_0x2d58ba===_0x2865b7['kty'];if(_0x26f13a&&'string'==typeof _0x370c4b&&(_0x26f13a=_0x370c4b===_0x2865b7['kid']),_0x26f13a&&'string'==typeof _0x2865b7['alg']&&(_0x26f13a=_0x32f140===_0x2865b7['alg']),_0x26f13a&&'string'==typeof _0x2865b7['use']&&(_0x26f13a='sig'===_0x2865b7['use']),_0x26f13a&&Array['isArray'](_0x2865b7['key_ops'])&&(_0x26f13a=_0x2865b7['key_ops']['includes']('verify')),_0x26f13a)switch(_0x32f140){case'ES256':_0x26f13a='P-256'===_0x2865b7['crv'];break;case'ES256K':_0x26f13a='secp256k1'===_0x2865b7['crv'];break;case'ES384':_0x26f13a='P-384'===_0x2865b7['crv'];break;case'ES512':_0x26f13a='P-521'===_0x2865b7['crv'];break;case'Ed25519':_0x26f13a='Ed25519'===_0x2865b7['crv'];break;case'EdDSA':_0x26f13a='Ed25519'===_0x2865b7['crv']||'Ed448'===_0x2865b7['crv'];}return _0x26f13a;}),{0x0:_0x4a335e,length:_0x20225a}=_0x5db8f4;if(0x0===_0x20225a)throw new _0x246ab2();if(0x1!==_0x20225a){const _0x240c4f=new _0x489ca6(),{_cached:_0x5c82b9}=this;throw _0x240c4f[Symbol['asyncIterator']]=async function*(){for(const _0xcc38d of _0x5db8f4)try{yield await _0x29db16(_0x5c82b9,_0xcc38d,_0x32f140);}catch{}},_0x240c4f;}return _0x29db16(this['_cached'],_0x4a335e,_0x32f140);}}async function _0x29db16(_0x428a03,_0x2a1c7f,_0x52bafa){const _0x1d4636=_0x428a03['get'](_0x2a1c7f)||_0x428a03['set'](_0x2a1c7f,{})['get'](_0x2a1c7f);if(void 0x0===_0x1d4636[_0x52bafa]){const _0x48766b=await _0x194ced({..._0x2a1c7f,'ext':!0x0},_0x52bafa);if(_0x48766b instanceof Uint8Array||'public'!==_0x48766b['type'])throw new _0x51cd7d('JSON\x20Web\x20Key\x20Set\x20members\x20must\x20be\x20public\x20keys');_0x1d4636[_0x52bafa]=_0x48766b;}return _0x1d4636[_0x52bafa];}function _0x530074(_0x3ac081){const _0x521a19=new _0x444ddf(_0x3ac081),_0x1b9d7b=async(_0x1e2e61,_0x3beb8c)=>_0x521a19['getKey'](_0x1e2e61,_0x3beb8c);return Object['defineProperties'](_0x1b9d7b,{'jwks':{'value':()=>_0x16ab93(_0x521a19['_jwks']),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1}}),_0x1b9d7b;}let _0x1bd249;'undefined'!=typeof navigator&&navigator['userAgent']?.['startsWith']?.('Mozilla/5.0\x20')||(_0x1bd249='jose/v5.10.0');const _0x817a47=Symbol();class _0x354d0f{constructor(_0x20e479,_0x261de0){if(!(_0x20e479 instanceof URL))throw new TypeError('url\x20must\x20be\x20an\x20instance\x20of\x20URL');var _0x240cad,_0x45f870;this['_url']=new URL(_0x20e479['href']),this['_options']={'agent':_0x261de0?.['agent'],'headers':_0x261de0?.['headers']},this['_timeoutDuration']='number'==typeof _0x261de0?.['timeoutDuration']?_0x261de0?.['timeoutDuration']:0x1388,this['_cooldownDuration']='number'==typeof _0x261de0?.['cooldownDuration']?_0x261de0?.['cooldownDuration']:0x7530,this['_cacheMaxAge']='number'==typeof _0x261de0?.['cacheMaxAge']?_0x261de0?.['cacheMaxAge']:0x927c0,void 0x0!==_0x261de0?.[_0x817a47]&&(this['_cache']=_0x261de0?.[_0x817a47],_0x240cad=_0x261de0?.[_0x817a47],_0x45f870=this['_cacheMaxAge'],'object'==typeof _0x240cad&&null!==_0x240cad&&'uat'in _0x240cad&&'number'==typeof _0x240cad['uat']&&!(Date['now']()-_0x240cad['uat']>=_0x45f870)&&'jwks'in _0x240cad&&_0x12de36(_0x240cad['jwks'])&&Array['isArray'](_0x240cad['jwks']['keys'])&&Array['prototype']['every']['call'](_0x240cad['jwks']['keys'],_0x12de36)&&(this['_jwksTimestamp']=this['_cache']['uat'],this['_local']=_0x530074(this['_cache']['jwks'])));}['coolingDown'](){return'number'==typeof this['_jwksTimestamp']&&Date['now']()<this['_jwksTimestamp']+this['_cooldownDuration'];}['fresh'](){return'number'==typeof this['_jwksTimestamp']&&Date['now']()<this['_jwksTimestamp']+this['_cacheMaxAge'];}async['getKey'](_0x5871f1,_0x2e5cee){this['_local']&&this['fresh']()||await this['reload']();try{return await this['_local'](_0x5871f1,_0x2e5cee);}catch(_0x5d7c2b){if(_0x5d7c2b instanceof _0x246ab2&&!0x1===this['coolingDown']())return await this['reload'](),this['_local'](_0x5871f1,_0x2e5cee);throw _0x5d7c2b;}}async['reload'](){this['_pendingFetch']&&('undefined'!=typeof WebSocketPair||'undefined'!=typeof navigator&&'Cloudflare-Workers'===navigator['userAgent']||'undefined'!=typeof EdgeRuntime&&'vercel'===EdgeRuntime)&&(this['_pendingFetch']=void 0x0);const _0x522022=new Headers(this['_options']['headers']);_0x1bd249&&!_0x522022['has']('User-Agent')&&(_0x522022['set']('User-Agent',_0x1bd249),this['_options']['headers']=Object['fromEntries'](_0x522022['entries']())),this['_pendingFetch']||(this['_pendingFetch']=(async(_0x13e00f,_0x40c186,_0x9aefd7)=>{let _0x1ddd56,_0x2f517f,_0x999175=!0x1;'function'==typeof AbortController&&(_0x1ddd56=new AbortController(),_0x2f517f=setTimeout(()=>{_0x999175=!0x0,_0x1ddd56['abort']();},_0x40c186));const _0x3821b1=await fetch(_0x13e00f['href'],{'signal':_0x1ddd56?_0x1ddd56['signal']:void 0x0,'redirect':'manual','headers':_0x9aefd7['headers']})['catch'](_0x42c7f2=>{if(_0x999175)throw new _0x427a5a();throw _0x42c7f2;});if(void 0x0!==_0x2f517f&&clearTimeout(_0x2f517f),0xc8!==_0x3821b1['status'])throw new _0x449128('Expected\x20200\x20OK\x20from\x20the\x20JSON\x20Web\x20Key\x20Set\x20HTTP\x20response');try{return await _0x3821b1['json']();}catch{throw new _0x449128('Failed\x20to\x20parse\x20the\x20JSON\x20Web\x20Key\x20Set\x20HTTP\x20response\x20as\x20JSON');}})(this['_url'],this['_timeoutDuration'],this['_options'])['then'](_0xfea1ae=>{this['_local']=_0x530074(_0xfea1ae),this['_cache']&&(this['_cache']['uat']=Date['now'](),this['_cache']['jwks']=_0xfea1ae),this['_jwksTimestamp']=Date['now'](),this['_pendingFetch']=void 0x0;})['catch'](_0x1ea944=>{throw this['_pendingFetch']=void 0x0,_0x1ea944;})),await this['_pendingFetch'];}}function _0x18ba28(_0x23c4c2,_0x207146){const _0x5715d1=new _0x354d0f(_0x23c4c2,_0x207146),_0x22d0ea=async(_0x3f21ee,_0x5b8e0f)=>_0x5715d1['getKey'](_0x3f21ee,_0x5b8e0f);return Object['defineProperties'](_0x22d0ea,{'coolingDown':{'get':()=>_0x5715d1['coolingDown'](),'enumerable':!0x0,'configurable':!0x1},'fresh':{'get':()=>_0x5715d1['fresh'](),'enumerable':!0x0,'configurable':!0x1},'reload':{'value':()=>_0x5715d1['reload'](),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1},'reloading':{'get':()=>!!_0x5715d1['_pendingFetch'],'enumerable':!0x0,'configurable':!0x1},'jwks':{'value':()=>_0x5715d1['_local']?.['jwks'](),'enumerable':!0x0,'configurable':!0x1,'writable':!0x1}}),_0x22d0ea;}const _0x4b6adc=_0x817a47;class _0x668d2b extends _0x47e883{['encode'](){return _0xb39e7b(JSON['stringify']({'alg':'none'}))+'.'+_0xb39e7b(JSON['stringify'](this['_payload']))+'.';}static['decode'](_0x2947de,_0xc21e93){if('string'!=typeof _0x2947de)throw new _0x70530f('Unsecured\x20JWT\x20must\x20be\x20a\x20string');const {0x0:_0x373ec3,0x1:_0x51b75c,0x2:_0x823625,length:_0x16b33e}=_0x2947de['split']('.');if(0x3!==_0x16b33e||''!==_0x823625)throw new _0x70530f('Invalid\x20Unsecured\x20JWT');let _0x5c038a;try{if(_0x5c038a=JSON['parse'](_0x388aab['decode'](_0x341128(_0x373ec3))),'none'!==_0x5c038a['alg'])throw new Error();}catch{throw new _0x70530f('Invalid\x20Unsecured\x20JWT');}return{'payload':_0x5d2876(_0x5c038a,_0x341128(_0x51b75c),_0xc21e93),'header':_0x5c038a};}}const _0x5a0bc5=_0xb39e7b,_0x4c2b58=_0x341128;function _0x27cf61(_0x4cbeb2){let _0x2433c9;if('string'==typeof _0x4cbeb2){const _0x48ea9c=_0x4cbeb2['split']('.');0x3!==_0x48ea9c['length']&&0x5!==_0x48ea9c['length']||([_0x2433c9]=_0x48ea9c);}else{if('object'==typeof _0x4cbeb2&&_0x4cbeb2){if(!('protected'in _0x4cbeb2))throw new TypeError('Token\x20does\x20not\x20contain\x20a\x20Protected\x20Header');_0x2433c9=_0x4cbeb2['protected'];}}try{if('string'!=typeof _0x2433c9||!_0x2433c9)throw new Error();const _0x47f3f1=JSON['parse'](_0x388aab['decode'](_0x4c2b58(_0x2433c9)));if(!_0x12de36(_0x47f3f1))throw new Error();return _0x47f3f1;}catch{throw new TypeError('Invalid\x20Token\x20or\x20Protected\x20Header\x20formatting');}}function _0x55e6a2(_0x23cddc){if('string'!=typeof _0x23cddc)throw new _0x70530f('JWTs\x20must\x20use\x20Compact\x20JWS\x20serialization,\x20JWT\x20must\x20be\x20a\x20string');const {0x1:_0x42a527,length:_0x3c4bd6}=_0x23cddc['split']('.');if(0x5===_0x3c4bd6)throw new _0x70530f('Only\x20JWTs\x20using\x20Compact\x20JWS\x20serialization\x20can\x20be\x20decoded');if(0x3!==_0x3c4bd6)throw new _0x70530f('Invalid\x20JWT');if(!_0x42a527)throw new _0x70530f('JWTs\x20must\x20contain\x20a\x20payload');let _0x10c01f,_0x49ca61;try{_0x10c01f=_0x4c2b58(_0x42a527);}catch{throw new _0x70530f('Failed\x20to\x20base64url\x20decode\x20the\x20payload');}try{_0x49ca61=JSON['parse'](_0x388aab['decode'](_0x10c01f));}catch{throw new _0x70530f('Failed\x20to\x20parse\x20the\x20decoded\x20payload\x20as\x20JSON');}if(!_0x12de36(_0x49ca61))throw new _0x70530f('Invalid\x20JWT\x20Claims\x20Set');return _0x49ca61;}function _0x41cea3(_0x5b303a){const _0x29e9ed=_0x5b303a?.['modulusLength']??0x800;if('number'!=typeof _0x29e9ed||_0x29e9ed<0x800)throw new _0x214f0b('Invalid\x20or\x20unsupported\x20modulusLength\x20option\x20provided,\x202048\x20bits\x20or\x20larger\x20keys\x20must\x20be\x20used');return _0x29e9ed;}async function _0x2e6731(_0x28f8fa,_0x4e1c2f){return async function(_0x31e896,_0x32043f){let _0x2a3b9c,_0x12966c;switch(_0x31e896){case'PS256':case'PS384':case'PS512':_0x2a3b9c={'name':'RSA-PSS','hash':'SHA-'+_0x31e896['slice'](-0x3),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x41cea3(_0x32043f)},_0x12966c=['sign','verify'];break;case'RS256':case'RS384':case'RS512':_0x2a3b9c={'name':'RSASSA-PKCS1-v1_5','hash':'SHA-'+_0x31e896['slice'](-0x3),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x41cea3(_0x32043f)},_0x12966c=['sign','verify'];break;case'RSA-OAEP':case'RSA-OAEP-256':case'RSA-OAEP-384':case'RSA-OAEP-512':_0x2a3b9c={'name':'RSA-OAEP','hash':'SHA-'+(parseInt(_0x31e896['slice'](-0x3),0xa)||0x1),'publicExponent':new Uint8Array([0x1,0x0,0x1]),'modulusLength':_0x41cea3(_0x32043f)},_0x12966c=['decrypt','unwrapKey','encrypt','wrapKey'];break;case'ES256':_0x2a3b9c={'name':'ECDSA','namedCurve':'P-256'},_0x12966c=['sign','verify'];break;case'ES384':_0x2a3b9c={'name':'ECDSA','namedCurve':'P-384'},_0x12966c=['sign','verify'];break;case'ES512':_0x2a3b9c={'name':'ECDSA','namedCurve':'P-521'},_0x12966c=['sign','verify'];break;case'Ed25519':_0x2a3b9c={'name':'Ed25519'},_0x12966c=['sign','verify'];break;case'EdDSA':{_0x12966c=['sign','verify'];const _0x478e77=_0x32043f?.['crv']??'Ed25519';switch(_0x478e77){case'Ed25519':case'Ed448':_0x2a3b9c={'name':_0x478e77};break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20crv\x20option\x20provided');}break;}case'ECDH-ES':case'ECDH-ES+A128KW':case'ECDH-ES+A192KW':case'ECDH-ES+A256KW':{_0x12966c=['deriveKey','deriveBits'];const _0x5a5445=_0x32043f?.['crv']??'P-256';switch(_0x5a5445){case'P-256':case'P-384':case'P-521':_0x2a3b9c={'name':'ECDH','namedCurve':_0x5a5445};break;case'X25519':case'X448':_0x2a3b9c={'name':_0x5a5445};break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20crv\x20option\x20provided,\x20supported\x20values\x20are\x20P-256,\x20P-384,\x20P-521,\x20X25519,\x20and\x20X448');}break;}default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}return _0x227e5f['subtle']['generateKey'](_0x2a3b9c,_0x32043f?.['extractable']??!0x1,_0x12966c);}(_0x28f8fa,_0x4e1c2f);}async function _0x2fd369(_0x359e1,_0x200520){return async function(_0x309103,_0x2995ca){let _0x194a80,_0xcbe515,_0x4cdfda;switch(_0x309103){case'HS256':case'HS384':case'HS512':_0x194a80=parseInt(_0x309103['slice'](-0x3),0xa),_0xcbe515={'name':'HMAC','hash':'SHA-'+_0x194a80,'length':_0x194a80},_0x4cdfda=['sign','verify'];break;case'A128CBC-HS256':case'A192CBC-HS384':case'A256CBC-HS512':return _0x194a80=parseInt(_0x309103['slice'](-0x3),0xa),_0x55bd21(new Uint8Array(_0x194a80>>0x3));case'A128KW':case'A192KW':case'A256KW':_0x194a80=parseInt(_0x309103['slice'](0x1,0x4),0xa),_0xcbe515={'name':'AES-KW','length':_0x194a80},_0x4cdfda=['wrapKey','unwrapKey'];break;case'A128GCMKW':case'A192GCMKW':case'A256GCMKW':case'A128GCM':case'A192GCM':case'A256GCM':_0x194a80=parseInt(_0x309103['slice'](0x1,0x4),0xa),_0xcbe515={'name':'AES-GCM','length':_0x194a80},_0x4cdfda=['encrypt','decrypt'];break;default:throw new _0x214f0b('Invalid\x20or\x20unsupported\x20JWK\x20\x22alg\x22\x20(Algorithm)\x20Parameter\x20value');}return _0x227e5f['subtle']['generateKey'](_0xcbe515,_0x2995ca?.['extractable']??!0x1,_0x4cdfda);}(_0x359e1,_0x200520);}var _0x5b87b1='WebCryptoAPI';},0x268(_0x107f89,_0x495937,_0x1b9773){'use strict';Object['defineProperty'](_0x495937,'__esModule',{'value':!0x0});const _0xbc4fd=_0x1b9773(0x356),_0x58aca7=_0x1b9773(0x3e0),_0x125cac=_0x1b9773(0x36c);_0x495937['default']={'esignature':_0xbc4fd['default'],'esignStamp':_0x58aca7['default'],'esignTooltip':_0x125cac['default']};},0x26e(_0x3df35d,_0x4edd97){Object['defineProperty'](_0x4edd97,'__esModule',{'value':!0x0}),_0x4edd97['default']=function(_0x4b065f){var _0xf3599c,_0x293c13='';return Array['prototype']['join'],_0x293c13+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0xf3599c=!0x0!==_0x4b065f['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0xf3599c)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0xf3599c=_0x4b065f['t']('Digital\x20Signature'))?'':_0xf3599c)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0xf3599c=_0x4b065f['t'](!0x0!==_0x4b065f['esign']['valid']?'invalid':'verified'))?'':_0xf3599c)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x4b065f['pdfForm']&&!0x0!==_0x4b065f['esign']['valid']&&(_0x293c13+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0xf3599c=_0x4b065f['esignInvalidMessage'])?'':_0xf3599c)+'</div>\x0a\x20\x20\x20\x20'),_0x293c13+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x4b065f['pdfForm']&&(_0x293c13+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('Signed\x20by'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=_0x4b065f['esign']?.['signature']?.['user']?.['data']||_0x4b065f['esign']?.['signature']?.['user']?.['_id'])?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('Signed\x20on'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=new Date(_0x4b065f['esign']?.['created'])['toLocaleString']())?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x293c13+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('ID'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=_0x4b065f['esign']?.['_id']||'-')?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('Path'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=_0x4b065f['esign']?.['signature']?.['valuePath']||'-')?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('Submission\x20Rev.'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=_0x4b065f['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('Form\x20Rev.'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=_0x4b065f['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xf3599c=_0x4b065f['t']('User\x20ID'))?'':_0xf3599c)+':</span><span>'+(null==(_0xf3599c=_0x4b065f['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0xf3599c)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f(_0x2d2309,_0x5b5cdd){Object['defineProperty'](_0x5b5cdd,'__esModule',{'value':!0x0}),_0x5b5cdd['default']=function(_0x135468){var _0x2a6594,_0x3020f8='';return Array['prototype']['join'],_0x135468['esign']&&(_0x3020f8+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x2a6594=!0x0===_0x135468['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x2a6594)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x2a6594=_0x135468['esignTooltip'])?'':_0x2a6594)+'\x22\x20class=\x27'+(null==(_0x2a6594=_0x135468['iconClass'](!0x0!==_0x135468['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x2a6594)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x135468['esign']['valid']||_0x135468['pdfForm']||(_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x2a6594=_0x135468['esign']?.['signature']?.['user']?.['data']||_0x135468['esign']?.['signature']?.['user']?.['_id'])?'':_0x2a6594)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x135468['esign']?.['created']&&(_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x2a6594=new Date(_0x135468['esign']['created'])['toLocaleString']())?'':_0x2a6594)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x135468['esign']['valid']&&_0x135468['pdfForm']&&(_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2a6594=_0x135468['t']('Signed'))?'':_0x2a6594)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x135468['esign']['valid']&&(_0x3020f8+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2a6594=_0x135468['esignInvalidMessage'])?'':_0x2a6594)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x3020f8+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x3020f8+'\x0a';};},0x295(_0x438087,_0x4e705b,_0x1d574d){'use strict';var _0x43f2eb=this&&this['__awaiter']||function(_0x5f136e,_0x1f8b13,_0x5543de,_0x5ceedf){return new(_0x5543de||(_0x5543de=Promise))(function(_0x41aea3,_0x1db88b){function _0x4a0c27(_0x4fb649){try{_0x5e410b(_0x5ceedf['next'](_0x4fb649));}catch(_0xc23d6e){_0x1db88b(_0xc23d6e);}}function _0x3d7c11(_0x7efe38){try{_0x5e410b(_0x5ceedf['throw'](_0x7efe38));}catch(_0x40785d){_0x1db88b(_0x40785d);}}function _0x5e410b(_0x4023ce){var _0x4c9987;_0x4023ce['done']?_0x41aea3(_0x4023ce['value']):(_0x4c9987=_0x4023ce['value'],_0x4c9987 instanceof _0x5543de?_0x4c9987:new _0x5543de(function(_0x37685e){_0x37685e(_0x4c9987);}))['then'](_0x4a0c27,_0x3d7c11);}_0x5e410b((_0x5ceedf=_0x5ceedf['apply'](_0x5f136e,_0x1f8b13||[]))['next']());});};Object['defineProperty'](_0x4e705b,'__esModule',{'value':!0x0});const _0x3a4387=_0x1d574d(0x170),_0x48a762=_0x1d574d(0x190),_0x436ffc=_0x3a4387['Components']['components']['component'],_0x2b443d=_0x3a4387['Utils']['_'],_0x2ad771=_0x436ffc['prototype']['init'];_0x436ffc['prototype']['init']=function(){var _0x15aeb5,_0x3266d3,_0x183e81;this['builderMode']||(null===(_0x15aeb5=this['options'])||void 0x0===_0x15aeb5?void 0x0:_0x15aeb5['building'])||(null===(_0x3266d3=this['options'])||void 0x0===_0x3266d3?void 0x0:_0x3266d3['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x183e81=this['options'])||void 0x0===_0x183e81?void 0x0:_0x183e81['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x2ad771['call'](this);},_0x436ffc['prototype']['getEsignConfig']=function(){const _0x592498=this['esign']['signatures']||[];return _0x2b443d['find'](_0x592498,_0x200ee4=>_0x200ee4['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0x436ffc['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x2130ae;return(null===(_0x2130ae=this['root'])||void 0x0===_0x2130ae?void 0x0:_0x2130ae['esign'])||{};}}),Object['defineProperty'](_0x436ffc['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x2b443d['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0x436ffc['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x2b443d['replace'](this['path'],this['_parentPath'],'');}}),_0x436ffc['prototype']['attachESignTooltip']=function(_0x401f26){(_0x401f26=_0x401f26||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x401f26,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x2b443d['map'](this['refs']['esignTooltip']||[],_0x1080eb=>this['createTooltip'](_0x1080eb,{'theme':'formioEsign'}))));};const _0x45e1b1=_0x436ffc['prototype']['attach'];_0x436ffc['prototype']['attach']=function(_0x4ef495){return _0x43f2eb(this,void 0x0,void 0x0,function*(){const _0x59849b=_0x45e1b1['call'](this,_0x4ef495);try{yield(0x0,_0x48a762['checkLicense'])(window['location']['href']),this['attachESignTooltip'](_0x4ef495),this['attachESignatureValidation']();}catch(_0x4d95bc){return;}return _0x59849b;});},_0x436ffc['prototype']['setESignature']=function(_0xbdef1f,_0x5dd7e9){var _0x155ff0;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0xbdef1f&&_0x5dd7e9['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x3186fe=!_0x2b443d['isEqual'](this['eSignature'],_0xbdef1f);this['eSignature']=_0xbdef1f,this['attachESignatureValidation'](),_0x3186fe&&(this['eSignature']&&!0x0!==(null===(_0x155ff0=this['eSignature'])||void 0x0===_0x155ff0?void 0x0:_0x155ff0['valid'])&&this['resetValue'](),this['redraw']());},_0x436ffc['prototype']['attachESignatureValidation']=function(){var _0x119736;!_0x2b443d['isEmpty'](this['esignConfig'])&&(null===(_0x119736=this['eSignature'])||void 0x0===_0x119736?void 0x0:_0x119736['valid'])&&this['on']('signedValueChanged',_0x1a6b16=>{var _0x4ed8d1;if(!(null===(_0x4ed8d1=this['eSignature'])||void 0x0===_0x4ed8d1?void 0x0:_0x4ed8d1['valid'])||!_0x1a6b16)return;const {valuePath:_0x4bb145,compPath:_0x2c4f65,parent:_0x9a111d,customProps:_0x3f0a24}=_0x1a6b16;_0x3f0a24&&this['invalidateESignature'](),_0x4bb145===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x2c4f65,_0x9a111d)&&this['invalidateESignature']();});},_0x436ffc['prototype']['invalidateESignature']=function(_0xd38f0a){this['eSignature']['valid']='the\x20data\x20has\x20been\x20modified',_0xd38f0a||this['resetValue'](),this['redraw']();},_0x436ffc['prototype']['isESignatureDataPath']=function(_0x2c47ba,_0x57af6c){if(!_0x2c47ba)return!0x1;const {signAll:_0x2d8252,signedData:_0x1a968e=[]}=this['esignConfig']||{};return _0x2d8252||_0x2b443d['some'](_0x1a968e,_0x27ca15=>_0x57af6c&&_0x2b443d['startsWith'](_0x27ca15,_0x2c47ba+'.')||_0x27ca15===_0x2c47ba||_0x2b443d['startsWith'](_0x2c47ba,_0x27ca15+'.'));},_0x436ffc['prototype']['formatEsignTooltip']=function(_0x114592=''){const _0xce9781=_0x114592['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0xce9781);},_0x436ffc['prototype']['renderESignature']=function(_0x3c2b94){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x3c2b94,'eSignStamp':this['renderEsignStamp']()}):_0x3c2b94;};const _0x5d7123=_0x436ffc['prototype']['render'];_0x436ffc['prototype']['render']=function(_0x5c88d7='Unknown\x20component:\x20'+this['component']['type'],_0x216d89=!0x1){return _0x5c88d7=this['renderESignature'](_0x5c88d7),_0x5d7123['call'](this,_0x5c88d7,_0x216d89);},_0x436ffc['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x3e76e4}=this['esign'],_0x2fa836={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x2476cc=_0x3e76e4?this['renderString'](_0x3e76e4,_0x2fa836):this['renderTemplate']('esignTooltip',_0x2fa836);return this['formatEsignTooltip'](_0x2476cc);};const _0x94ad6=_0x436ffc['prototype']['renderModalPreview'];_0x436ffc['prototype']['renderModalPreview']=function(_0x12cbf7){return this['renderESignature'](_0x94ad6['call'](this,_0x12cbf7));},_0x436ffc['prototype']['getInvalidESigntureMessage']=function(_0x4c4a49){if(!0x0===this['eSignature']['valid'])return'';if(_0x4c4a49)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20provide\x20an\x20updated\x20signature.',{'reason':this['eSignature']['valid']}):'';const _0x30cdb4=this['t']('Invalid\x20signature:');return'pdf'===this['options']['display']?_0x30cdb4:_0x30cdb4+'\x20'+this['t']('{{reason}}.\x20Please\x20provide\x20an\x20updated\x20signature.',{'reason':this['eSignature']['valid']});},_0x436ffc['prototype']['renderEsignStamp']=function(){const _0x146eb7=this['renderEsignTooltip'](),_0x344ec7={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x146eb7,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x2a4a24}=this['esign'];return _0x2a4a24?this['renderString'](_0x2a4a24,_0x344ec7):this['renderTemplate']('esignStamp',_0x344ec7);},_0x436ffc['prototype']['destroyESignTooltip']=function(){_0x2b443d['each'](this['esignTooltip']||[],_0x1425e4=>{var _0x30800e;_0x1425e4&&!(null===(_0x30800e=_0x1425e4['state'])||void 0x0===_0x30800e?void 0x0:_0x30800e['isDestroyed'])&&_0x1425e4['destroy']&&_0x1425e4['destroy']();});};const _0x4891e2=_0x436ffc['prototype']['removeEventListeners'];_0x436ffc['prototype']['removeEventListeners']=function(){_0x4891e2['call'](this),this['destroyESignTooltip']();};const _0x37b6f7=Object['getOwnPropertyDescriptor'](_0x436ffc['prototype'],'disabled');Object['defineProperty'](_0x436ffc['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x1f9d49;return _0x37b6f7['get']['call'](this)||(null===(_0x1f9d49=this['parent'])||void 0x0===_0x1f9d49?void 0x0:_0x1f9d49['disabled'])||this['shouldDisableSignedData']();}}),_0x436ffc['prototype']['shouldDisableSignedData']=function(){return _0x2b443d['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0x436ffc['prototype']['isValueSigned']=function(){var _0x430076,_0x23fdc9;if(!0x0===(null===(_0x430076=this['eSignature'])||void 0x0===_0x430076?void 0x0:_0x430076['valid']))return!0x0;const _0x3bd6c6=(null===(_0x23fdc9=this['root'])||void 0x0===_0x23fdc9?void 0x0:_0x23fdc9['signedComponentsInfo'])||{};if(null==_0x3bd6c6?void 0x0:_0x3bd6c6['all'])return!0x0;const _0x5a2e89=this['jsonPathInLocalRoot'];return _0x2b443d['some']((null==_0x3bd6c6?void 0x0:_0x3bd6c6['components'])||[],_0x493706=>_0x5a2e89===_0x493706||_0x2b443d['startsWith'](_0x5a2e89,_0x493706+'.'));};const _0x45b068=_0x436ffc['prototype']['checkData'];_0x436ffc['prototype']['checkData']=function(_0x1e9f4e,_0x543570,_0x532f8f){const _0x26aba4=_0x45b068['call'](this,_0x1e9f4e,_0x543570,_0x532f8f);return(null==_0x543570?void 0x0:_0x543570['fromSubmission'])||this['validateSignedValue'](),_0x26aba4;},_0x436ffc['prototype']['checkSignedDataChange']=function(_0x18446f={}){return this['hasSignedValueChanged'](_0x18446f);},_0x436ffc['prototype']['validateSignedValue']=function(){var _0x26cde9;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x26cde9=this['root'])||void 0x0===_0x26cde9?void 0x0:_0x26cde9['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0x436ffc['prototype']['emitSignedValueChange']=function(_0x3aec5f){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x3aec5f});},_0x436ffc['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x458e7b,_0x2d22e3=this;for(;_0x2d22e3&&_0x2d22e3['row']&&!_0x458e7b;)_0x2d22e3=_0x2d22e3['parent'],'tagpad'===_0x2d22e3['type']&&(_0x458e7b=_0x2d22e3);if(_0x458e7b){const _0x9a7b81=_0x2b443d['split'](this['pathInLocalRoot'],new RegExp('^'+_0x458e7b['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x2b443d['split'](this['pathInLocalRoot'],_0x9a7b81)[0x0]+'.data'+_0x9a7b81;}}return this['pathInLocalRoot'];},_0x436ffc['prototype']['compareSignedValue']=function(_0x4884bb){return!this['isEqual'](_0x2b443d['isNil'](_0x4884bb)?this['emptyValue']:_0x4884bb,_0x2b443d['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0x436ffc['prototype']['hasSignedValueChanged']=function(_0x5e908d={}){var _0x422878,_0x4c03f0;const {checkAll:_0x3ab334,signedData:_0x892c25}=_0x5e908d,_0x328d02=_0x3ab334||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x328d02)return!0x1;const _0x52035d=_0x892c25||(null===(_0x4c03f0=null===(_0x422878=this['root'])||void 0x0===_0x422878?void 0x0:_0x422878['signedSubmission'])||void 0x0===_0x4c03f0?void 0x0:_0x4c03f0['data']);if(!_0x52035d)return!0x1;const _0x4873ed=_0x2b443d['get'](_0x52035d,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x4873ed);},_0x436ffc['prototype']['hasSignedChildren']=_0x132173=>!0x1,_0x4e705b['default']=_0x436ffc;},0x2bb(_0x46c217,_0xb11439,_0x27b3b7){'use strict';Object['defineProperty'](_0xb11439,'__esModule',{'value':!0x0});const _0x3ca178=_0x27b3b7(0x170)['Components']['components']['componentmodal'],_0x29f151=_0x3ca178['prototype']['setOpenEventListener'];_0x3ca178['prototype']['setOpenEventListener']=function(){_0x29f151['call'](this),this['component']['attachESignTooltip']();},_0xb11439['default']=_0x3ca178;},0x2bd(_0x572720,_0x534e6d,_0x5b24aa){'use strict';Object['defineProperty'](_0x534e6d,'__esModule',{'value':!0x0});const _0xe00fa9=_0x5b24aa(0x170),_0x5b6590=_0xe00fa9['Components']['components']['nested'],_0x48f7a3=_0xe00fa9['Utils']['_'];_0x5b6590['prototype']['hasSignedValueChanged']=()=>!0x1,_0x5b6590['prototype']['checkSignedDataChange']=function(_0x133f0f={}){const {checkAll:_0xf083ff}=_0x133f0f;return!(!_0xf083ff&&!this['hasSignedChildren']())&&_0x48f7a3['some'](this['getComponents']()||[],_0x438a2f=>_0x438a2f['checkSignedDataChange'](_0x133f0f));},_0x5b6590['prototype']['hasSignedChildren']=function(){var _0x4c1354;const _0x568344=(null===(_0x4c1354=this['root'])||void 0x0===_0x4c1354?void 0x0:_0x4c1354['signedComponentsInfo'])||{};if(null==_0x568344?void 0x0:_0x568344['all'])return!0x0;const _0x2bcabd=this['jsonPathInLocalRoot'];return _0x48f7a3['some']((null==_0x568344?void 0x0:_0x568344['components'])||[],_0x159e1d=>_0x2bcabd===_0x159e1d||_0x48f7a3['startsWith'](_0x2bcabd,_0x159e1d+'.'||_0x48f7a3['startsWith'](_0x159e1d,_0x2bcabd+'.')));},_0x534e6d['default']=_0x5b6590;},0x2bf(_0x1028f3,_0x47095b,_0x54e95e){'use strict';Object['defineProperty'](_0x47095b,'__esModule',{'value':!0x0});const _0x17d209=_0x54e95e(0x170),_0x3fcaca=_0x17d209['Components']['components']['form'],_0x2cdf6a=(_0x17d209['Utils']['_'],_0x3fcaca['prototype']['onSetSubFormValue']);_0x3fcaca['prototype']['onSetSubFormValue']=function(_0x36d487,_0xce427){const _0x17cbe3=(null==_0xce427?void 0x0:_0xce427['fromSubmission'])&&this['subForm'];_0x17cbe3&&this['subForm']['setSignedSubmission'](_0x36d487),_0x2cdf6a['call'](this,_0x36d487,_0xce427),_0x17cbe3&&this['subForm']['setESignatures'](_0x36d487);};const _0x307292=_0x3fcaca['prototype']['getSubOptions'];_0x3fcaca['prototype']['getSubOptions']=function(_0x2ccced={}){return _0x2ccced['parentPath']=this['path']+'.data.',_0x307292['call'](this,_0x2ccced);},_0x3fcaca['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x3fcaca['prototype']['compareSignedValue']=function(_0x4febbf){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x4febbf});};const _0x4bff3d=_0x3fcaca['prototype']['isInternalEvent'];_0x3fcaca['prototype']['isInternalEvent']=function(_0x23d5d7){return _0x4bff3d['call'](this,_0x23d5d7)||'signedValueChanged'===_0x23d5d7;},_0x47095b['default']=_0x3fcaca;},0x2c1(_0x540afb,_0x2bb28c,_0x5c6d5d){'use strict';Object['defineProperty'](_0x2bb28c,'__esModule',{'value':!0x0});const _0x49e015=_0x5c6d5d(0x170),_0x4ef355=_0x49e015['Components']['components']['nestedarray'],_0x3715cc=_0x49e015['Utils']['_'];_0x4ef355['prototype']['hasSignedValueChanged']=function(_0x246975={}){var _0x399341,_0x524836;const {checkAll:_0x1a1147,signedData:_0x4d680c}=_0x246975;if(_0x1a1147||this['hasSignedChildren']()){const _0x4bdeeb=_0x3715cc['get'](_0x4d680c||(null===(_0x524836=null===(_0x399341=this['root'])||void 0x0===_0x399341?void 0x0:_0x399341['signedSubmission'])||void 0x0===_0x524836?void 0x0:_0x524836['data']),this['getValuePathInSignedData']());if(_0x3715cc['keys'](this['dataValue'])['length']!==_0x3715cc['keys'](_0x4bdeeb)['length'])return!0x0;}return!0x1;},_0x2bb28c['default']=_0x4ef355;},0x2ed(_0x4edd51,_0x1b3f74){Object['defineProperty'](_0x1b3f74,'__esModule',{'value':!0x0}),_0x1b3f74['default']=function(_0x46d814){var _0x3670e1;return''+((null==(_0x3670e1=_0x46d814['children'])?'':_0x3670e1)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x3670e1=_0x46d814['eSignStamp'])?'':_0x3670e1)+'</div>\x0a';};},0x2f5(_0x50f310,_0x199574,_0x7be1de){'use strict';Object['defineProperty'](_0x199574,'__esModule',{'value':!0x0});const _0x23750f=_0x7be1de(0x14e);_0x199574['default']={'webform':_0x23750f['default']};},0x339(_0xb1be2f,_0x2fc591,_0x259d62){'use strict';Object['defineProperty'](_0x2fc591,'__esModule',{'value':!0x0});const _0x20b742=_0x259d62(0x39d),_0x398002=_0x259d62(0x197),_0x47ca5a=_0x259d62(0x193);_0x2fc591['default']={'esignature':_0x20b742['default'],'esignStamp':_0x398002['default'],'esignTooltip':_0x47ca5a['default']};},0x34a(_0x345dad,_0x149867){Object['defineProperty'](_0x149867,'__esModule',{'value':!0x0}),_0x149867['default']=function(_0x5833fe){var _0x1c71cd,_0x4ab5f4='';return Array['prototype']['join'],_0x5833fe['esign']&&(_0x4ab5f4+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x1c71cd=!0x0===_0x5833fe['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x1c71cd)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x1c71cd=_0x5833fe['esignTooltip'])?'':_0x1c71cd)+'\x22\x20class=\x27'+(null==(_0x1c71cd=_0x5833fe['esignIconClass'])?'':_0x1c71cd)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x5833fe['esign']['valid']||_0x5833fe['pdfForm']||(_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x1c71cd=_0x5833fe['esign']?.['signature']?.['user']?.['data']||_0x5833fe['esign']?.['signature']?.['user']?.['_id'])?'':_0x1c71cd)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x5833fe['esign']?.['created']&&(_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x1c71cd=new Date(_0x5833fe['esign']['created'])['toLocaleString']())?'':_0x1c71cd)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x5833fe['esign']['valid']&&_0x5833fe['pdfForm']&&(_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x1c71cd=_0x5833fe['t']('Signed'))?'':_0x1c71cd)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x5833fe['esign']['valid']&&(_0x4ab5f4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x1c71cd=_0x5833fe['esignInvalidMessage'])?'':_0x1c71cd)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4ab5f4+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x4ab5f4+'\x0a';};},0x356(_0x224356,_0x187ccf,_0x25b1e2){'use strict';Object['defineProperty'](_0x187ccf,'__esModule',{'value':!0x0});const _0x14a86b=_0x25b1e2(0x0);_0x187ccf['default']={'form':_0x14a86b['default']};},0x36c(_0xf0f59f,_0x5a615e,_0x35dcd4){'use strict';Object['defineProperty'](_0x5a615e,'__esModule',{'value':!0x0});const _0x10b106=_0x35dcd4(0x26e);_0x5a615e['default']={'form':_0x10b106['default']};},0x39d(_0x548028,_0x314a0b,_0x4fd830){'use strict';Object['defineProperty'](_0x314a0b,'__esModule',{'value':!0x0});const _0x5a37cb=_0x4fd830(0x2ed);_0x314a0b['default']={'form':_0x5a37cb['default']};},0x3c9(_0x27108e,_0x381c62,_0x5661ba){'use strict';Object['defineProperty'](_0x381c62,'__esModule',{'value':!0x0});const _0x142311=_0x5661ba(0x268),_0x2f6a55=_0x5661ba(0x339);_0x381c62['default']={'bootstrap':_0x142311['default'],'bootstrap3':_0x2f6a55['default'],'bootstrap4':_0x142311['default'],'bootstrap5':_0x142311['default']};},0x3e0(_0x1ba3c4,_0x55a5bf,_0xa1a560){'use strict';Object['defineProperty'](_0x55a5bf,'__esModule',{'value':!0x0});const _0x5532ed=_0xa1a560(0x34a);_0x55a5bf['default']={'form':_0x5532ed['default']};}},_0x12b011={};function _0x225752(_0x5a8817){var _0x487214=_0x12b011[_0x5a8817];if(void 0x0!==_0x487214)return _0x487214['exports'];var _0x4a900d=_0x12b011[_0x5a8817]={'exports':{}};return _0x11e4f5[_0x5a8817]['call'](_0x4a900d['exports'],_0x4a900d,_0x4a900d['exports'],_0x225752),_0x4a900d['exports'];}_0x225752['d']=function(_0x4dbe2d,_0x14b636){for(var _0x3bdbb4 in _0x14b636)_0x225752['o'](_0x14b636,_0x3bdbb4)&&!_0x225752['o'](_0x4dbe2d,_0x3bdbb4)&&Object['defineProperty'](_0x4dbe2d,_0x3bdbb4,{'enumerable':!0x0,'get':_0x14b636[_0x3bdbb4]});},_0x225752['o']=function(_0x2f9b1e,_0x180f94){return Object['prototype']['hasOwnProperty']['call'](_0x2f9b1e,_0x180f94);},_0x225752['r']=function(_0x334f3b){'undefined'!=typeof Symbol&&Symbol['toStringTag']&&Object['defineProperty'](_0x334f3b,Symbol['toStringTag'],{'value':'Module'}),Object['defineProperty'](_0x334f3b,'__esModule',{'value':!0x0});};var _0x3c8924={};return(function(){'use strict';var _0x183d9a=_0x3c8924;const _0x4162cf=_0x225752(0x15e),_0x350b73=_0x225752(0x3c9),_0x38351a=_0x225752(0x203),_0x85c8af=_0x225752(0x2f5);_0x183d9a['default']={'components':_0x4162cf['default'],'templates':_0x350b73['default'],'library':_0x38351a['default'],'displays':_0x85c8af['default']};}()),_0x3c8924['default'];}());});
|
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/esignature",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.2.0-api98.1",
|
|
4
4
|
"description": "eSignature components for form.io",
|
|
5
5
|
"main": "esignature.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -27,10 +27,11 @@
|
|
|
27
27
|
"bugs": {
|
|
28
28
|
"url": "https://github.com/formio/esignature/issues"
|
|
29
29
|
},
|
|
30
|
-
"configVersion":
|
|
30
|
+
"configVersion": 10,
|
|
31
31
|
"homepage": "https://github.com/formio/esignature#readme",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@formio/js": "^5.
|
|
33
|
+
"@formio/js": "^5.4.0-api98.1",
|
|
34
|
+
"@formio/license": "^2.1.0-api98.0",
|
|
34
35
|
"@types/mocha": "^10.0.1",
|
|
35
36
|
"@types/node": "^20.1.5",
|
|
36
37
|
"chai": "^4.3.7",
|
|
@@ -59,17 +60,17 @@
|
|
|
59
60
|
"webpack-obfuscator": "^3.5.1"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
|
-
"@formio/js": "^5.
|
|
63
|
+
"@formio/js": "^5.4.0-api98.1"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {},
|
|
65
66
|
"scripts": {
|
|
66
67
|
"watch": "tsc -w",
|
|
67
|
-
"precommit": "gulp esignature-config-template",
|
|
68
68
|
"build:style": "sass ./src/sass/esignature.scss ./dist/esignature.css",
|
|
69
|
-
"build:dist": "
|
|
70
|
-
"build:dev": "
|
|
71
|
-
"build:portal": "
|
|
72
|
-
"build": "npm run build:portal
|
|
69
|
+
"build:dist": "npm run clean && gulp licenseCheck && tsc && gulp templates && webpack --config=config/webpack.prod.js && gulp modifyPackage && npm run build:style",
|
|
70
|
+
"build:dev": "npm run clean && gulp licenseCheck:disable && tsc && gulp templates && webpack --config=config/webpack.dev.js && gulp modifyPackage && npm run build:style",
|
|
71
|
+
"build:portal": "npm run clean && gulp licenseCheck:disable && tsc && gulp templates && gulp esignature-config-template && webpack --config=config/webpack.portal.js && gulp modifyPackage && npm run build:style",
|
|
72
|
+
"build": "npm run build:portal",
|
|
73
|
+
"clean": "rm -rf lib && rm -rf dist",
|
|
73
74
|
"lint": "tslint -p .",
|
|
74
75
|
"test": "rm -rf lib && tsc && gulp templates && mocha test/*.spec.ts"
|
|
75
76
|
}
|
package/esignatureConfig.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"title":"E SIGNATURE SETTINGS","name":"eSignatureSettings","path":"esignaturesettings","type":"form","display":"form","components":[{"label":"eSignatures","hideLabel":true,"tableView":false,"templates":{"header":"<div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class=\"col-sm-{{component.key === 'component' ? '9' : '3'}} fw-bold font-weight-bold\">{{ t(component.label) }}</div>\n {% } %}\n {% }) %}\n </div>","row":"<div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class=\"col-sm-{{component.key === 'component' ? '8' : '2'}}\">\n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : ''}}\n </div>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <div class=\"col-sm-3\">\n <div class=\"btn-group pull-right\">\n <button class=\"btn btn-default btn-light btn-sm editRow\"><i class=\"{{ iconClass('edit') }}\"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>"},"addAnother":"Add eSignature","rowDrafts":false,"key":"signatures","type":"editgrid","displayAsTable":false,"reorder":false,"addAnotherPosition":"bottom","layoutFixed":false,"enableRowGroups":false,"initEmpty":false,"input":true,"components":[{"label":"eSignature Component","widget":"choicesjs","tooltip":"Select the form component that will be used as the signature.","tableView":true,"dataSrc":"custom","data":{"custom":"const compOptions = []\r\nutils.eachComponent(instance.options?.esignForm?.components || [], (comp, path) => {\r\n if (_.includes(['button', 'form', 'datasource'], comp.type)) {\r\n return;\r\n }\r\n const compClass = Formio.Components.components[comp.type];\r\n const compFullSchema = compClass ? compClass.schema(comp) : null;\r\n const nestedDataComp = Formio.Components.components.nesteddata;\r\n const excludeComp = !comp.input || !compFullSchema.persistent || compFullSchema.tree || (compClass && nestedDataComp && compClass.prototype instanceof nestedDataComp);\r\n if (!excludeComp || _.includes(['address'], comp.type)) {\r\n compOptions.push({\r\n label: comp.label + ' (' + path + ')',\r\n value: path,\r\n });\r\n }\r\n}, true);\r\nvalues = compOptions;"},"valueProperty":"value","validate":{"required":true},"key":"component","type":"select","input":true},{"label":"eSignature Data","widget":"choicesjs","tooltip":"Select the components those values must be confirmed by this eSignature. Changing the value of these components will invalidate the eSignature.","tableView":false,"multiple":true,"dataSrc":"custom","data":{"custom":"const compOptions = [];\r\nutils.eachComponent(instance.options?.esignForm?.components || [], (comp, path) => {\r\nif (comp.input) {\r\n compOptions.push({\r\n label: comp.label + ' (' + path + ')',\r\n value: path,\r\n });\r\n}\r\n}, true);\r\nvalues = compOptions;"},"valueProperty":"value","validate":{"required":true},"key":"signedData","customConditional":"show = !row.signAll;","type":"select","input":true},{"label":"Include all form data in eSignature","tooltip":"When checked, the eSignature will be responsible for all form data. If some value of the form components is changed, the eSignature will be invalid.","tableView":false,"defaultValue":false,"key":"signAll","type":"checkbox","input":true}]},{"label":"Submission properties to include in eSignature","placeholder":"e.g. metadata.timezone","tooltip":"Add a comma separated paths to the data inside the submission object that must be used for the eSignature verification. Submission data is verified by default.","applyMaskOn":"change","tableView":true,"key":"submissionProps","type":"textfield","input":true},{"label":"Do not disable signed data","tooltip":"When enabled, the form fields confirmed by eSignature will not be disabled in the UI.","tableView":false,"defaultValue":false,"key":"notDisableSignedData","type":"checkbox","input":true},{"title":"Templates","collapsible":true,"key":"templates","type":"panel","label":"Panel","input":false,"tableView":false,"components":[{"title":"Available variables","collapsible":true,"key":"availableVariables","type":"panel","label":"Panel","collapsed":true,"input":false,"tableView":false,"components":[{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"<p>The following variables are available for templates:</p>\n<table class=\"table table-bordered table-condensed table-striped\">\n <tr><th>esign</th><td>The form.io eSignature object</td></tr>\n <tr><th>esignTooltip</th><td>The markup of the eSignature tooltip represented as a string (available only for the stamp template).</td></tr>\n <tr><th>esignInvalidMessage</th><td>The default message for invalid eSignature (available only for the stamp template).</td></tr>\n <tr><th>esignIconClass</th><td>The class of the eSignature default stamp icon (available only for the stamp template).</td></tr>\n <tr><th>pdfForm</th><td>Indicates whether the current form has a PDF display type.</td></tr>\n <tr><th>form</th><td>The complete form JSON object</td></tr>\n <tr><th>submission</th><td>The complete submission object.</td></tr>\n <tr><th>data</th><td>The complete submission data object.</td></tr>\n <tr><th>row</th><td>Contextual \"row\" data, used within DataGrid, EditGrid, and Container components</td></tr>\n <tr><th>component</th><td>The current component JSON</td></tr>\n <tr><th>instance</th><td>The current component instance.</td></tr>\n <tr><th>value</th><td>The current value of the component.</td></tr>\n <tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr>\n <th>_</th><td>An instance of <a href=\"https://lodash.com/docs/\" target=\"_blank\" rel=\"noopener noreferrer\">Lodash</a>.</td></tr>\n <tr><th>utils</th><td>An instance of the <a href=\"http://formio.github.io/formio.js/docs/identifiers.html#utils\" target=\"_blank\" rel=\"noopener noreferrer\">FormioUtils</a> object.</td></tr>\n <tr><th>util</th><td>An alias for \"utils\".</td></tr>\n</table>","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false}]},{"label":"eSignature stamp template","placeholder":"/*** Lodash Template Code ***/","description":"Example:\n</br>\n<code>\n{% if (esign.valid === true) { %}\n</br>\n<span class=\"formio-esign-stamp\">\n</br>\n <i ref=\"esignTooltip\" style=\"cursor:pointer\" data-tooltip=\"{{esignTooltip}}\" class='{{esignIconClass}}' aria-hidden='true'></i>\n</br>\n <span class=\"formio-esign-stamp-description\">\n</br>\n Signed on {{new Date(esign.created).toLocaleString()}}\n</br>\n </span>\n</br>\n</span>\n</br>\n{% } %}\n</br>\n{% if (esign.valid !== true) { %}\n</br>\n<span class=\"formio-esign-stamp formio-esign-stamp-invalid formio-esign-stamp-description\">\n</br>\n <i ref=\"esignTooltip\" style=\"cursor:pointer\" data-tooltip=\"{{esignTooltip}}\" class='{{esignIconClass}}' aria-hidden='true'></i> \n</br>\n Invalid eSignature\n</br>\n</span>\n</br>\n{% } %}\n</code>\n</br>","tooltip":"Add your <a href='https://lodash.com/docs#template'>Lodash Template</a> that will be used to render eSignature stamp instead of form.io default stamp template.","applyMaskOn":"change","editor":"ace","autoExpand":false,"tableView":true,"key":"stampTemplate","type":"textarea","as":"html","input":true},{"label":"eSignature tooltip template","placeholder":"/*** Lodash Template Code ***/","description":"Example:\n</br>\n<code>\n<div class=\"formio-esign-tooltip\">\n</br>\n <span class=\"{{esign.valid !== true ? 'formio-esign-tooltip-header-invalid' : ''}} formio-esign-tooltip-header\">\n</br>\n <span>eSignature</span>\n</br>\n <span class=\"formio-esign-tooltip-status\" >{{esign.valid !== true ? 'invalid' : 'verified'}}</span>\n</br>\n </span>\n</br>\n <ul class=\"formio-esign-tooltip-info\">\n</br>\n <li class=\"formio-esign-tooltip-info-item\"><span class=\"formio-esign-tooltip-info-item-title\">ID:</span><<span>{{esign?._id || '-'}}</span></li>\n</br>\n <li class=\"formio-esign-tooltip-info-item\"><span class=\"formio-esign-tooltip-info-item-title\">Path:</span><span>{{esign?.signature?.valuePath || '-'}}</span></li>\n</br>\n </ul>\n</br>\n</div>\n</br>\n</code>\n</br>","tooltip":"Add your <a href='https://lodash.com/docs#template'>Lodash Template</a> for eSignature stamp tooltip. This template overrides the default eSignature tooltip.","applyMaskOn":"change","editor":"ace","autoExpand":false,"tableView":true,"key":"tooltipTemplate","type":"textarea","as":"html","input":true}],"collapsed":true}]}
|