UNPKG

@digital-blueprint/dispatch-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/dispatch-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/dispatch-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/dispatch-app/) | [Dispatch Bundle](https://gi

63 lines 765 kB
let _2=t=>t,_t,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12,_t13,_t14,_t15,_t16,_t17,_t18,_t19,_t20,_t21;function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]==null?{}:arguments[r];r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,`string`);return typeof i==`symbol`?i:i+``}function _toPrimitive(t,r){if(typeof t!=`object`||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||`default`);if(typeof i!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(r===`string`?String:Number)(t)} /*! * License: LGPL-2.1-or-later * Dependencies: * * @webcomponents/scoped-custom-element-registry: BSD-3-Clause * @dbp-toolkit/app-shell: LGPL-2.1-or-later * @dbp-toolkit/language-select: LGPL-2.1-or-later * @dbp-toolkit/auth: LGPL-2.1-or-later * lit-html: BSD-3-Clause * @dbp-toolkit/notification: LGPL-2.1-or-later * @dbp-toolkit/theme-switcher: LGPL-2.1-or-later * universal-router: MIT * @dbp-toolkit/matomo: LGPL-2.1-or-later * @digital-blueprint/esign-app: LGPL-2.1-or-later * exceljs: MIT * fabric: MIT * jspdf-autotable: MIT * keycloak-js: Apache-2.0 * jszip: (MIT OR GPL-3.0-or-later) * pdfjs-dist: Apache-2.0 * path2d: MIT * fflate: MIT * @babel/runtime: MIT * iobuffer: MIT * pako: (MIT AND Zlib) * fast-png: MIT * jspdf: MIT * core-js: MIT * performance-now: MIT * raf: MIT * rgbcolor: MIT OR SEE LICENSE IN FEEL-FREE.md * svg-pathdata: MIT * stackblur-canvas: MIT * canvg: MIT * dompurify: (MPL-2.0 OR Apache-2.0) * html2canvas: MIT * i18next: MIT * @dbp-toolkit/common: LGPL-2.1-or-later * @lit/reactive-element: BSD-3-Clause * lit-element: BSD-3-Clause * @open-wc/dedupe-mixin: MIT * @open-wc/scoped-elements: MIT * dialog-polyfill: BSD * @dbp-toolkit/person-select: LGPL-2.1-or-later * @dbp-toolkit/file-handling: LGPL-2.1-or-later * @dbp-toolkit/tabulator-table: LGPL-2.1-or-later * webdav: MIT * tabulator-tables: MIT * jose: MIT * file-saver: MIT * @dbp-toolkit/pdf-viewer: LGPL-2.1-or-later * jquery: MIT * select2: MIT * @dbp-toolkit/resource-select: LGPL-2.1-or-later * @popperjs/core: MIT * tippy.js: MIT * @dbp-toolkit/tooltip: LGPL-2.1-or-later * @digital-blueprint/annotpdf: MIT */ import{t as __commonJSMin}from"./chunk.Cdv43ikU.js";import{$ as i,C as getButtonCSS,F as MiniSpinner,I as Icon,P as ScopedElementsMixin,Q as x,T as getGeneralCSS,c as LangMixin,nt as humanFileSize,p as e,t as sendNotification,tt as createInstance$1,v as DBPLitElement,x as IconButton,z as asyncObjectForEach}from"./dbp-lit-element.BfjLvJVI.js";import{c as importPdfJs,l,n as ResourceSelect,s as getPdfJsDocument,t as TabulatorTable}from"./src.CBTAcdze.js";import{t as TooltipElement}from"./src.WsPj5v14.js";var translation_default$1={"annotation-button-title":`Annotation hinzufügen`,"annotation-view":{"delete-all-button-text":`Alle entfernen`,"delete-all-button-title":`Alle entfernen`,"empty-annotation-message":`Bitte tragen Sie einen Wert für die gewählte Anmerkung ein.`,"empty-annotation-title":`{{annotationType}} ist leer!`,"insert-field":`Neues Feld einfügen`,"intended-use-placeholder":`Fügen Sie hier den gewünschten Text ein`,introduction:`In diesem Bereich können Sie zusätzlichen Text definieren, der in der Signatur enthalten sein soll. Klicken Sie dafür auf "Neues Feld einfügen" und wählen Sie das gewünschte Feld aus. Klicken Sie dann auf das "+" um das Feld einzufügen und den gewünschten Text einzugeben.`,"invalid-annotation-text-message":`Sie haben ein oder mehrere ungültige Zeichen eingegeben. Zulässige Sonderzeichen sind: \\/ !=+-_*&()`,"invalid-annotation-text-title":`Ungültiger Eingabewert!`,"reference-number-placeholder":`Fügen Sie hier die Geschäftszahl ein (z.B. 247/1/2020-S)`,"remove-field":`Feld löschen`,"save-all-button-text":`Für Dokument übernehmen`,"save-all-button-title":`Für Dokument übernehmen`},"annotations-count-text":`Dokument hat {{annotationCount}} Anmerkungen`,"button-cancel-text":`Abbrechen`,"button-close-text":`Schließen`,"confirm-delete-file":`Sind Sie sicher, dass Sie die {{file}} löschen möchten?`,"download-file-button-title":`Signiertes PDF Dokument herunterladen`,"download-file-completed":`Datei heruntergeladen`,"error-cancel-message":`Der Signaturprozess wurde manuell abgebrochen.`,"error-login-link":`Anmelden`,"error-login-message":`Bitte melden Sie sich an, um diese Funktion nutzen zu können.`,"error-manual-positioning-missing":`Ein oder mehrere Signaturen in der Warteschlange müssen manuell positioniert werden.`,"error-manual-positioning-missing-title":`Signature Fehler`,"error-permission-message-official":`Sie müssen das Recht auf Amtssignaturen besitzen um diese Funktion nutzen zu können.`,"error-permission-message-qualified":`Sie müssen das Recht auf persönliche Signaturen besitzen um diese Funktion nutzen zu können.`,"error-rights-message":`Abbruch auf Grund mangelnder Rechte Ihres Accounts.`,"failed-document-report-message_one":`Signierung für {{count}} Dokument fehlgeschlagen.`,"failed-document-report-message_other":`Signierung für {{count}} Dokumenten fehlgeschlagen.`,"label-manual-positioning-missing":`Bestehende Signatur vorhanden. Bitte benutzen Sie den hervorgehobenen Schalter, um die manuelle Positionierung zu aktivieren.`,"official-pdf-upload":{"annotation-view-label":`Anmerkungen zum Dokument hinzufügen`,"clear-all":`Löschen`,"confirm-page-leave":`Sind Sie sicher, dass Sie die Seite verlassen wollen? Es stehen signierte Dokumente zum Download bereit.`,"download-zip-button":`Alle herunterladen`,"download-zip-button-tooltip":`Alle signierten Dokumente herunterladen`,"error-files-label":`Fehlgeschlagene Dokumente`,"file-picker-context":`PDF-Dokumente zum Signieren auswählen (max. 32 MB pro Datei)`,"preview-label":`Dokumentenansicht`,"queued-files-empty1":`Kein Dokument in der Warteschlange`,"queued-files-empty2":`Sie können jetzt ein neues Dokument hochladen`,"queued-files-label":`Dokumente in der Warteschlange`,"re-upload-all-button":`Alle wiederholen`,"re-upload-all-button-title":``,"save-field-label_one":`{{count}} Datei speichern`,"save-field-label_other":`{{count}} Dateien speichern`,"signature-placement-label":`Signatur platzieren`,"signed-files-label":`Signierte Dokumente`,"start-signing-process-button":`Signatur starten`,"stop-signing-process-button":`Unterbrechen`,"upload-area-text":`Sie können in diesem Bereich PDF-Dokumente mit einer Maximalgröße von bis zu 32MB pro Dokument per Drag & Drop oder per Direktauswahl hochladen. Die PDF-Dokumente dürfen sich auch in ZIP-Dateien befinden.`,"upload-button-label":`PDF-Dokumente auswählen`,"upload-status-file-text":`({{fileSize}}) wird hochgeladen und verarbeitet...`,"upload-text":`Hier können Sie PDF-Dateien mit einer elektronischen Amtssignatur versehen. Die elektronische Amtssignatur bestätigt das signierte Dokument als eine öffentliche Urkunde. Um den Signaturprozess zu starten, laden Sie bitte eine oder mehrere PDF-Dateien hoch.`},"pdf-preview":{"error-message":`Fehler: Dieses Dokument ist beschädigt.`,"first-page":`Erste Seite`,"last-page":`Letzte Seite`,"next-page":`Nächste Seite`,"page-count":`von {{totalPages}}`,"previous-page":`Vorherige Seite`,rotate:`Signatur rotieren`,"rotate-signature":`Signatur im Uhrzeigersinn rotieren`,save:`Speichern`,"signature-description":`Die Signatur wird automatisch auf der letzten Seite am Ende des Dokumentinhalts positioniert. Falls der Platz beschränkt ist, wird eine neue Seite speziell für die Signatur erstellt. Um die Signatur anders zu positionieren, wählen Sie bitte die manuelle Positionierung der Signatur aus dem Dropdown.`},"positioning-automatic":`Automatisch`,"positioning-manual":`Manuell`,"positioning-type-label":`Typ der Positionierung`,"preview-file-button-title":`Vorschau Datei`,"qualified-pdf-upload":{"annotation-view-label":`Anmerkungen zum Dokument hinzufügen`,"clear-all":`Löschen`,"collapse-all":`Alles zuklappen`,"confirm-page-leave":`Sind Sie sicher, dass Sie die Seite verlassen wollen? Es stehen signierte Dokumente zum Download bereit.`,"current-signing-process-label":`Aktueller Signaturprozess`,"deselect-all":`Alle abwählen`,"download-zip-button":`Alle speichern`,"download-zip-button-tooltip":`Alle signierten Dokumente speichern`,"error-files-label":`Fehlgeschlagene Dokumente`,"expand-all":`Alles aufklappen`,"file-picker-context":`PDF-Dokumente zum Signieren auswählen (max. 32 MB pro Datei)`,"queued-files-empty1":`Kein Dokument in der Warteschlange`,"queued-files-empty2":`Sie können jetzt ein neues Dokument hochladen`,"queued-files-label":`Dokumente in der Warteschlange`,"re-upload-all-button":`Alle wiederholen`,"re-upload-all-button-title":``,"save-field-label_one":`{{count}} Datei speichern`,"save-field-label_other":`{{count}} Dateien speichern`,"select-all":`Alle auswählen`,"signed-files-label":`Signierte Dokumente`,"start-signing-process-button":`Signatur starten`,"upload-area-text":`Sie können in diesem Bereich PDF-Dokumente mit einer Maximalgröße von bis zu 32MB pro Dokument per Drag & Drop oder per Direktauswahl hochladen. Die PDF-Dokumente dürfen sich auch in ZIP-Dateien befinden.`,"upload-button-label":`PDF-Dokumente auswählen`,"upload-status-file-text":`({{fileSize}}) wird hochgeladen und verarbeitet...`,"upload-text":` Hier können Sie PDF-Dateien mit einer persönlichen elektronischen (qualifizierten) Signatur versehen. Eine qualifizierte persönliche Signatur ist Ihre persönliche Unterschrift, die Ihre Identität sowie die Integrität des Dokuments nachweist und der eigenhändigen Unterschrift rechtlich gleichgestellt ist. Um den Signaturprozess zu starten, laden Sie bitte eine oder mehrere PDF-Dateien hoch.`},"re-upload-file-button-title":`Erneut in die Warteschlange stellen`,"remove-failed-file-button-title":`Fehlgeschlagenes Dokument entfernen`,"remove-queued-file-button-title":`Dokument aus der Warteschlange entfernen`,"report-message-title":`Bericht!`,"signature-verification-extern":{"adobe-reader-text":`Des Weiteren besteht auch die Möglichkeit, das Dokument lokal mit dem Adobe Reader zu überprüfen.`,"description-text":`Um eine PDF-Signatur auf ihre Gültigkeit zu überprüfen, benutzen Sie bitte das Verifikationsservice der Rundfunk und Telekom Regulierungs-GmbH. Mit diesem Verifikationsservice können Sie überprüfen, ob das Dokument eine valide Signatur enthält.`,"link-label":`Zum RTR Verifikationsservice wechseln`},"signed-document-report-message_one":`{{count}} Dokument erfolgreich signiert.`,"signed-document-report-message_other":`{{count}} Dokumente erfolgreich signiert.`,"table-header-buttons":`Aktionen`,"table-header-download":`Herunterladen`,"table-header-error-message":`Fehlermeldung`,"table-header-file-name":`Dateiname`,"table-header-file-size":`Dateigröße`,"table-header-positioning":`Manuelle Positionierung`,"toggle-switch-label-text-off":`Aus`,"toggle-switch-label-text-on":`An`},translation_default={"annotation-button-title":`Add annotation`,"annotation-view":{"delete-all-button-text":`Clear all`,"delete-all-button-title":`Clear all`,"empty-annotation-message":`Please enter a value for the selected annotation.`,"empty-annotation-title":`{{annotationType}} is empty!`,"insert-field":`Insert new field`,"intended-use-placeholder":`Insert text here`,introduction:`In this area you can define additional text to be included in the signature. To do this, click on "Insert new field" and select the desired field. Then click on the "+" to insert the field and enter the desired text.`,"invalid-annotation-text-message":`You have entered one or more invalid characters. Valid special characters are: \\/ !?=+-_*&()`,"invalid-annotation-text-title":`Invalid Input Value!`,"reference-number-placeholder":`Insert reference number here (e.g. 247/1/2020-S)`,"remove-field":`Delete field`,"save-all-button-text":`Add to document`,"save-all-button-title":`Add to document`},"annotations-count-text":`Document has {{annotationCount}} annotations`,"button-cancel-text":`Cancel`,"button-close-text":`Close`,"confirm-delete-file":`Are you sure you want to delete {{file}}?`,"download-file-button-title":`Download signed PDF`,"download-file-completed":`File downloaded`,"error-cancel-message":`The signature process was manually aborted.`,"error-login-link":`Log in`,"error-login-message":`Please log in to use this functionality.`,"error-manual-positioning-missing":`One or more signatures in the queue must be positioned manually.`,"error-manual-positioning-missing-title":`Signature error`,"error-permission-message-official":`You need have permissions to use the official signature to use this function.`,"error-permission-message-qualified":`You need have permissions to use the qualified signature to use this function.`,"error-rights-message":`Abort due to insufficient rights of your account.`,"failed-document-report-message_one":`Failed signing {{count}} document`,"failed-document-report-message_other":`Failed signing {{count}} documents`,"label-manual-positioning-missing":`Existing signature present. Please use the highlighted toggle switch to activate manual positioning.`,"official-pdf-upload":{"annotation-view-label":`Add annotations to document`,"clear-all":`Delete`,"confirm-page-leave":`Are you sure you want to leave this page? There are still signed documents ready to be downloaded.`,"download-zip-button":`Download all`,"download-zip-button-tooltip":`Download all signed documents`,"error-files-label":`Failed documents`,"file-picker-context":`Upload PDF-documents to sign (max. 32 MB per file)`,"preview-label":`Document view`,"queued-files-empty1":`No queued documents`,"queued-files-empty2":`You can now upload more documents`,"queued-files-label":`Queued documents`,"re-upload-all-button":`Queue all`,"re-upload-all-button-title":``,"save-field-label_one":`Save {{count}} file`,"save-field-label_other":`Save {{count}} files`,"signature-placement-label":`Place signature`,"signed-files-label":`Signed documents`,"start-signing-process-button":`Start signing`,"stop-signing-process-button":`Stop signing`,"upload-area-text":`In this area you can upload PDF-documents up to a size of 32MB via Drag & Drop or by selecting them directly. The PDF-documents can also be located in a ZIP-file.`,"upload-button-label":`Select PDF-documents`,"upload-status-file-text":`({{fileSize}}) is currently uploading and being processed...`,"upload-text":`You can use this application to add a official electronic signature (Amtssignatur/authority signature) to PDF documents. To start the signature process, please upload one or more PDF files.`},"pdf-preview":{"error-message":`Error: This document is incorrect.`,"first-page":`First page`,"last-page":`Last page`,"next-page":`Next page`,"page-count":`of {{totalPages}}`,"previous-page":`Previous page`,rotate:`Rotate signature`,"rotate-signature":`Rotate signature clockwise`,save:`Save`,"signature-description":`The signature will be automatically positioned on the last page at the end of the document's content. In the case of limited space, a new page will be created specifically for the signature. To position the signature differently, please select manual signature positioning from the dropdown.`},"positioning-automatic":`Auto`,"positioning-manual":`Manual`,"positioning-type-label":`Positioning type`,"preview-file-button-title":`Preview file`,"qualified-pdf-upload":{"annotation-view-label":`Add annotations to document`,"clear-all":`Delete`,"collapse-all":`Collapse all`,"confirm-page-leave":`Are you sure you want to leave this page? There are still signed documents ready to be downloaded.`,"current-signing-process-label":`Current signing process`,"deselect-all":`Deselect all`,"download-zip-button":`Save all`,"download-zip-button-tooltip":`Save all signed documents`,"error-files-label":`Failed documents`,"expand-all":`Expand all`,"file-picker-context":`Upload PDF-documents to sign (max. 32 MB per file)`,"queued-files-empty1":`No queued documents`,"queued-files-empty2":`You can now upload more documents`,"queued-files-label":`Queued documents`,"re-upload-all-button":`Queue all`,"re-upload-all-button-title":``,"save-field-label_one":`Save {{count}} file`,"save-field-label_other":`Save {{count}} files`,"select-all":`Select all`,"signed-files-label":`Signed documents`,"start-signing-process-button":`Start signing`,"upload-area-text":`In this area you can upload PDF-documents up to a size of 32MB via Drag & Drop or by selecting them directly. The PDF-documents can also be located in a ZIP-file.`,"upload-button-label":`Select PDF-documents`,"upload-status-file-text":`({{fileSize}}) is currently uploading and being processed...`,"upload-text":`You can use this application to add a qualified electronic signature to PDF documents. A qualified signature proves your identity and the integrity of the document and is legally equivalent to a handwritten signature. To start the signature process, please upload one or more PDF documents.`},"re-upload-file-button-title":`Queue again`,"remove-failed-file-button-title":`Remove failed document`,"remove-queued-file-button-title":`Remove document from queue`,"report-message-title":`Report!`,"signature-verification-extern":{"adobe-reader-text":`Furthermore, it is also possible to verify the signature locally with the Adobe Reader.`,"description-text":`To check a PDF signature for validity, please use the verification service of the Rundfunk und Telekom Regulierungs-GmbH. This verification service allows you to check whether the document contains a valid signature.`,"link-label":`Switch to the RTR verification service`},"signed-document-report-message_one":`Successfully signed {{count}} document`,"signed-document-report-message_other":`Successfully signed {{count}} documents`,"table-header-buttons":`Actions`,"table-header-download":`Download`,"table-header-error-message":`Error message`,"table-header-file-name":`File name`,"table-header-file-size":`File size`,"table-header-positioning":`Manual positioning`,"toggle-switch-label-text-off":`Off`,"toggle-switch-label-text-on":`On`};function createInstance(){return createInstance$1({en:translation_default,de:translation_default$1},`de`,`en`)}var require_pdfAnnotate=__commonJSMin((exports,module)=>{(function(root,factory){typeof exports==`object`&&typeof module==`object`?module.exports=factory():typeof define==`function`&&define.amd?define(`pdfAnnotate`,[],factory):typeof exports==`object`?exports.pdfAnnotate=factory():root.pdfAnnotate=factory()})(window,function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module$1=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module$1.exports,module$1,module$1.exports,__webpack_require__),module$1.l=!0,module$1.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports$1,name$1,getter){__webpack_require__.o(exports$1,name$1)||Object.defineProperty(exports$1,name$1,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports$1){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(exports$1,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(exports$1,`__esModule`,{value:!0})},__webpack_require__.t=function(value,mode){if(mode&1&&(value=__webpack_require__(value)),mode&8||mode&4&&typeof value==`object`&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,`default`,{enumerable:!0,value}),mode&2&&typeof value!=`string`)for(var key in value)__webpack_require__.d(ns,key,function(key$1){return value[key$1]}.bind(null,key));return ns},__webpack_require__.n=function(module$1){var getter=module$1&&module$1.__esModule?function(){return module$1.default}:function(){return module$1};return __webpack_require__.d(getter,`a`,getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p=``,__webpack_require__(__webpack_require__.s=`./src/index.ts`)}({"./node_modules/asn1.js/lib/asn1.js":function(module$1,exports$1,__webpack_require__){var asn1=exports$1;asn1.bignum=__webpack_require__(`./node_modules/bn.js/lib/bn.js`),asn1.define=__webpack_require__(`./node_modules/asn1.js/lib/asn1/api.js`).define,asn1.base=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/index.js`),asn1.constants=__webpack_require__(`./node_modules/asn1.js/lib/asn1/constants/index.js`),asn1.decoders=__webpack_require__(`./node_modules/asn1.js/lib/asn1/decoders/index.js`),asn1.encoders=__webpack_require__(`./node_modules/asn1.js/lib/asn1/encoders/index.js`)},"./node_modules/asn1.js/lib/asn1/api.js":function(module$1,exports$1,__webpack_require__){var asn1=__webpack_require__(`./node_modules/asn1.js/lib/asn1.js`),inherits=__webpack_require__(`./node_modules/inherits/inherits_browser.js`),api=exports$1;api.define=function(name$1,body){return new Entity(name$1,body)};function Entity(name$1,body){this.name=name$1,this.body=body,this.decoders={},this.encoders={}}Entity.prototype._createNamed=function(base){var named;try{named=__webpack_require__(`./node_modules/vm-browserify/index.js`).runInThisContext(`(function `+this.name+`(entity) { this._initNamed(entity); })`)}catch{named=function(entity){this._initNamed(entity)}}return inherits(named,base),named.prototype._initNamed=function(entity){base.call(this,entity)},new named(this)},Entity.prototype._getDecoder=function(enc){return enc||=`der`,this.decoders.hasOwnProperty(enc)||(this.decoders[enc]=this._createNamed(asn1.decoders[enc])),this.decoders[enc]},Entity.prototype.decode=function(data,enc,options){return this._getDecoder(enc).decode(data,options)},Entity.prototype._getEncoder=function(enc){return enc||=`der`,this.encoders.hasOwnProperty(enc)||(this.encoders[enc]=this._createNamed(asn1.encoders[enc])),this.encoders[enc]},Entity.prototype.encode=function(data,enc,reporter){return this._getEncoder(enc).encode(data,reporter)}},"./node_modules/asn1.js/lib/asn1/base/buffer.js":function(module$1,exports$1,__webpack_require__){var inherits=__webpack_require__(`./node_modules/inherits/inherits_browser.js`),Reporter=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/index.js`).Reporter,Buffer=__webpack_require__(`./node_modules/buffer/index.js`).Buffer;function DecoderBuffer(base,options){if(Reporter.call(this,options),!Buffer.isBuffer(base)){this.error(`Input not Buffer`);return}this.base=base,this.offset=0,this.length=base.length}inherits(DecoderBuffer,Reporter),exports$1.DecoderBuffer=DecoderBuffer,DecoderBuffer.prototype.save=function(){return{offset:this.offset,reporter:Reporter.prototype.save.call(this)}},DecoderBuffer.prototype.restore=function(save){var res=new DecoderBuffer(this.base);return res.offset=save.offset,res.length=this.offset,this.offset=save.offset,Reporter.prototype.restore.call(this,save.reporter),res},DecoderBuffer.prototype.isEmpty=function(){return this.offset===this.length},DecoderBuffer.prototype.readUInt8=function(fail){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(fail||`DecoderBuffer overrun`)},DecoderBuffer.prototype.skip=function(bytes,fail){if(!(this.offset+bytes<=this.length))return this.error(fail||`DecoderBuffer overrun`);var res=new DecoderBuffer(this.base);return res._reporterState=this._reporterState,res.offset=this.offset,res.length=this.offset+bytes,this.offset+=bytes,res},DecoderBuffer.prototype.raw=function(save){return this.base.slice(save?save.offset:this.offset,this.length)};function EncoderBuffer(value,reporter){if(Array.isArray(value))this.length=0,this.value=value.map(function(item){return item instanceof EncoderBuffer||(item=new EncoderBuffer(item,reporter)),this.length+=item.length,item},this);else if(typeof value==`number`){if(!(0<=value&&value<=255))return reporter.error(`non-byte EncoderBuffer value`);this.value=value,this.length=1}else if(typeof value==`string`)this.value=value,this.length=Buffer.byteLength(value);else if(Buffer.isBuffer(value))this.value=value,this.length=value.length;else return reporter.error(`Unsupported type: `+typeof value)}exports$1.EncoderBuffer=EncoderBuffer,EncoderBuffer.prototype.join=function(out,offset){return out||=new Buffer(this.length),offset||=0,this.length===0||(Array.isArray(this.value)?this.value.forEach(function(item){item.join(out,offset),offset+=item.length}):(typeof this.value==`number`?out[offset]=this.value:typeof this.value==`string`?out.write(this.value,offset):Buffer.isBuffer(this.value)&&this.value.copy(out,offset),offset+=this.length)),out}},"./node_modules/asn1.js/lib/asn1/base/index.js":function(module$1,exports$1,__webpack_require__){var base=exports$1;base.Reporter=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/reporter.js`).Reporter,base.DecoderBuffer=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/buffer.js`).DecoderBuffer,base.EncoderBuffer=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/buffer.js`).EncoderBuffer,base.Node=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/node.js`)},"./node_modules/asn1.js/lib/asn1/base/node.js":function(module$1,exports$1,__webpack_require__){var Reporter=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/index.js`).Reporter,EncoderBuffer=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/index.js`).EncoderBuffer,DecoderBuffer=__webpack_require__(`./node_modules/asn1.js/lib/asn1/base/index.js`).DecoderBuffer,assert=__webpack_require__(`./node_modules/minimalistic-assert/index.js`),tags=`seq.seqof.set.setof.objid.bool.gentime.utctime.null_.enum.int.objDesc.bitstr.bmpstr.charstr.genstr.graphstr.ia5str.iso646str.numstr.octstr.printstr.t61str.unistr.utf8str.videostr`.split(`.`),methods=[`key`,`obj`,`use`,`optional`,`explicit`,`implicit`,`def`,`choice`,`any`,`contains`].concat(tags),overrided=[`_peekTag`,`_decodeTag`,`_use`,`_decodeStr`,`_decodeObjid`,`_decodeTime`,`_decodeNull`,`_decodeInt`,`_decodeBool`,`_decodeList`,`_encodeComposite`,`_encodeStr`,`_encodeObjid`,`_encodeTime`,`_encodeNull`,`_encodeInt`,`_encodeBool`];function Node(enc,parent){var state={};this._baseState=state,state.enc=enc,state.parent=parent||null,state.children=null,state.tag=null,state.args=null,state.reverseArgs=null,state.choice=null,state.optional=!1,state.any=!1,state.obj=!1,state.use=null,state.useDecoder=null,state.key=null,state.default=null,state.explicit=null,state.implicit=null,state.contains=null,state.parent||(state.children=[],this._wrap())}module$1.exports=Node;var stateProps=[`enc`,`parent`,`children`,`tag`,`args`,`reverseArgs`,`choice`,`optional`,`any`,`obj`,`use`,`alteredUse`,`key`,`default`,`explicit`,`implicit`,`contains`];Node.prototype.clone=function(){var state=this._baseState,cstate={};stateProps.forEach(function(prop){cstate[prop]=state[prop]});var res=new this.constructor(cstate.parent);return res._baseState=cstate,res},Node.prototype._wrap=function(){var state=this._baseState;methods.forEach(function(method){this[method]=function(){var clone=new this.constructor(this);return state.children.push(clone),clone[method].apply(clone,arguments)}},this)},Node.prototype._init=function(body){var state=this._baseState;assert(state.parent===null),body.call(this),state.children=state.children.filter(function(child){return child._baseState.parent===this},this),assert.equal(state.children.length,1,`Root node can have only one child`)},Node.prototype._useArgs=function(args){var state=this._baseState,children=args.filter(function(arg){return arg instanceof this.constructor},this);args=args.filter(function(arg){return!(arg instanceof this.constructor)},this),children.length!==0&&(assert(state.children===null),state.children=children,children.forEach(function(child){child._baseState.parent=this},this)),args.length!==0&&(assert(state.args===null),state.args=args,state.reverseArgs=args.map(function(arg){if(typeof arg!=`object`||arg.constructor!==Object)return arg;var res={};return Object.keys(arg).forEach(function(key){key==(key|0)&&(key|=0);var value=arg[key];res[value]=key}),res}))},overrided.forEach(function(method){Node.prototype[method]=function(){var state=this._baseState;throw Error(method+` not implemented for encoding: `+state.enc)}}),tags.forEach(function(tag){Node.prototype[tag]=function(){var state=this._baseState,args=Array.prototype.slice.call(arguments);return assert(state.tag===null),state.tag=tag,this._useArgs(args),this}}),Node.prototype.use=function(item){assert(item);var state=this._baseState;return assert(state.use===null),state.use=item,this},Node.prototype.optional=function(){var state=this._baseState;return state.optional=!0,this},Node.prototype.def=function(val){var state=this._baseState;return assert(state.default===null),state.default=val,state.optional=!0,this},Node.prototype.explicit=function(num){var state=this._baseState;return assert(state.explicit===null&&state.implicit===null),state.explicit=num,this},Node.prototype.implicit=function(num){var state=this._baseState;return assert(state.explicit===null&&state.implicit===null),state.implicit=num,this},Node.prototype.obj=function(){var state=this._baseState,args=Array.prototype.slice.call(arguments);return state.obj=!0,args.length!==0&&this._useArgs(args),this},Node.prototype.key=function(newKey){var state=this._baseState;return assert(state.key===null),state.key=newKey,this},Node.prototype.any=function(){var state=this._baseState;return state.any=!0,this},Node.prototype.choice=function(obj){var state=this._baseState;return assert(state.choice===null),state.choice=obj,this._useArgs(Object.keys(obj).map(function(key){return obj[key]})),this},Node.prototype.contains=function(item){var state=this._baseState;return assert(state.use===null),state.contains=item,this},Node.prototype._decode=function(input,options){var state=this._baseState;if(state.parent===null)return input.wrapResult(state.children[0]._decode(input,options));var result=state.default,present=!0,prevKey=null;if(state.key!==null&&(prevKey=input.enterKey(state.key)),state.optional){var tag=null;if(state.explicit===null?state.implicit===null?state.tag!==null&&(tag=state.tag):tag=state.implicit:tag=state.explicit,tag===null&&!state.any){var save=input.save();try{state.choice===null?this._decodeGeneric(state.tag,input,options):this._decodeChoice(input,options),present=!0}catch{present=!1}input.restore(save)}else if(present=this._peekTag(input,tag,state.any),input.isError(present))return present}var prevObj;if(state.obj&&present&&(prevObj=input.enterObject()),present){if(state.explicit!==null){var explicit=this._decodeTag(input,state.explicit);if(input.isError(explicit))return explicit;input=explicit}var start=input.offset;if(state.use===null&&state.choice===null){if(state.any)var save=input.save();var body=this._decodeTag(input,state.implicit===null?state.tag:state.implicit,state.any);if(input.isError(body))return body;state.any?result=input.raw(save):input=body}if(options&&options.track&&state.tag!==null&&options.track(input.path(),start,input.length,`tagged`),options&&options.track&&state.tag!==null&&options.track(input.path(),input.offset,input.length,`content`),result=state.any?result:state.choice===null?this._decodeGeneric(state.tag,input,options):this._decodeChoice(input,options),input.isError(result))return result;if(!state.any&&state.choice===null&&state.children!==null&&state.children.forEach(function(child){child._decode(input,options)}),state.contains&&(state.tag===`octstr`||state.tag===`bitstr`)){var data=new DecoderBuffer(result);result=this._getUse(state.contains,input._reporterState.obj)._decode(data,options)}}return state.obj&&present&&(result=input.leaveObject(prevObj)),state.key!==null&&(result!==null||present===!0)?input.leaveKey(prevKey,state.key,result):prevKey!==null&&input.exitKey(prevKey),result},Node.prototype._decodeGeneric=function(tag,input,options){var state=this._baseState;return tag===`seq`||tag===`set`?null:tag===`seqof`||tag===`setof`?this._decodeList(input,tag,state.args[0],options):/str$/.test(tag)?this._decodeStr(input,tag,options):tag===`objid`&&state.args?this._decodeObjid(input,state.args[0],state.args[1],options):tag===`objid`?this._decodeObjid(input,null,null,options):tag===`gentime`||tag===`utctime`?this._decodeTime(input,tag,options):tag===`null_`?this._decodeNull(input,options):tag===`bool`?this._decodeBool(input,options):tag===`objDesc`?this._decodeStr(input,tag,options):tag===`int`||tag===`enum`?this._decodeInt(input,state.args&&state.args[0],options):state.use===null?input.error(`unknown tag: `+tag):this._getUse(state.use,input._reporterState.obj)._decode(input,options)},Node.prototype._getUse=function(entity,obj){var state=this._baseState;return state.useDecoder=this._use(entity,obj),assert(state.useDecoder._baseState.parent===null),state.useDecoder=state.useDecoder._baseState.children[0],state.implicit!==state.useDecoder._baseState.implicit&&(state.useDecoder=state.useDecoder.clone(),state.useDecoder._baseState.implicit=state.implicit),state.useDecoder},Node.prototype._decodeChoice=function(input,options){var state=this._baseState,result=null,match=!1;return Object.keys(state.choice).some(function(key){var save=input.save(),node=state.choice[key];try{var value=node._decode(input,options);if(input.isError(value))return!1;result={type:key,value},match=!0}catch{return input.restore(save),!1}return!0},this),match?result:input.error(`Choice not matched`)},Node.prototype._createEncoderBuffer=function(data){return new EncoderBuffer(data,this.reporter)},Node.prototype._encode=function(data,reporter,parent){var state=this._baseState;if(!(state.default!==null&&state.default===data)){var result=this._encodeValue(data,reporter,parent);if(result!==void 0&&!this._skipDefault(result,reporter,parent))return result}},Node.prototype._encodeValue=function(data,reporter,parent){var state=this._baseState;if(state.parent===null)return state.children[0]._encode(data,reporter||new Reporter);var result=null;if(this.reporter=reporter,state.optional&&data===void 0)if(state.default!==null)data=state.default;else return;var content=null,primitive=!1;if(state.any)result=this._createEncoderBuffer(data);else if(state.choice)result=this._encodeChoice(data,reporter);else if(state.contains)content=this._getUse(state.contains,parent)._encode(data,reporter),primitive=!0;else if(state.children)content=state.children.map(function(child$1){if(child$1._baseState.tag===`null_`)return child$1._encode(null,reporter,data);if(child$1._baseState.key===null)return reporter.error(`Child should have a key`);var prevKey=reporter.enterKey(child$1._baseState.key);if(typeof data!=`object`)return reporter.error(`Child expected, but input is not object`);var res=child$1._encode(data[child$1._baseState.key],reporter,data);return reporter.leaveKey(prevKey),res},this).filter(function(child$1){return child$1}),content=this._createEncoderBuffer(content);else if(state.tag===`seqof`||state.tag===`setof`){if(!(state.args&&state.args.length===1))return reporter.error(`Too many args for : `+state.tag);if(!Array.isArray(data))return reporter.error(`seqof/setof, but data is not Array`);var child=this.clone();child._baseState.implicit=null,content=this._createEncoderBuffer(data.map(function(item){var state$1=this._baseState;return this._getUse(state$1.args[0],data)._encode(item,reporter)},child))}else state.use===null?(content=this._encodePrimitive(state.tag,data),primitive=!0):result=this._getUse(state.use,parent)._encode(data,reporter);var result;if(!state.any&&state.choice===null){var tag=state.implicit===null?state.tag:state.implicit,cls=state.implicit===null?`universal`:`context`;tag===null?state.use===null&&reporter.error(`Tag could be omitted only for .use()`):state.use===null&&(result=this._encodeComposite(tag,primitive,cls,content))}return state.explicit!==null&&(result=this._encodeComposite(state.explicit,!1,`context`,result)),result},Node.prototype._encodeChoice=function(data,reporter){var state=this._baseState,node=state.choice[data.type];return node||assert(!1,data.type+` not found in `+JSON.stringify(Object.keys(state.choice))),node._encode(data.value,reporter)},Node.prototype._encodePrimitive=function(tag,data){var state=this._baseState;if(/str$/.test(tag))return this._encodeStr(data,tag);if(tag===`objid`&&state.args)return this._encodeObjid(data,state.reverseArgs[0],state.args[1]);if(tag===`objid`)return this._encodeObjid(data,null,null);if(tag===`gentime`||tag===`utctime`)return this._encodeTime(data,tag);if(tag===`null_`)return this._encodeNull();if(tag===`int`||tag===`enum`)return this._encodeInt(data,state.args&&state.reverseArgs[0]);if(tag===`bool`)return this._encodeBool(data);if(tag===`objDesc`)return this._encodeStr(data,tag);throw Error(`Unsupported tag: `+tag)},Node.prototype._isNumstr=function(str){return/^[0-9 ]*$/.test(str)},Node.prototype._isPrintstr=function(str){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(str)}},"./node_modules/asn1.js/lib/asn1/base/reporter.js":function(module$1,exports$1,__webpack_require__){var inherits=__webpack_require__(`./node_modules/inherits/inherits_browser.js`);function Reporter(options){this._reporterState={obj:null,path:[],options:options||{},errors:[]}}exports$1.Reporter=Reporter,Reporter.prototype.isError=function(obj){return obj instanceof ReporterError},Reporter.prototype.save=function(){var state=this._reporterState;return{obj:state.obj,pathLen:state.path.length}},Reporter.prototype.restore=function(data){var state=this._reporterState;state.obj=data.obj,state.path=state.path.slice(0,data.pathLen)},Reporter.prototype.enterKey=function(key){return this._reporterState.path.push(key)},Reporter.prototype.exitKey=function(index){var state=this._reporterState;state.path=state.path.slice(0,index-1)},Reporter.prototype.leaveKey=function(index,key,value){var state=this._reporterState;this.exitKey(index),state.obj!==null&&(state.obj[key]=value)},Reporter.prototype.path=function(){return this._reporterState.path.join(`/`)},Reporter.prototype.enterObject=function(){var state=this._reporterState,prev=state.obj;return state.obj={},prev},Reporter.prototype.leaveObject=function(prev){var state=this._reporterState,now=state.obj;return state.obj=prev,now},Reporter.prototype.error=function(msg){var err,state=this._reporterState,inherited=msg instanceof ReporterError;if(err=inherited?msg:new ReporterError(state.path.map(function(elem){return`[`+JSON.stringify(elem)+`]`}).join(``),msg.message||msg,msg.stack),!state.options.partial)throw err;return inherited||state.errors.push(err),err},Reporter.prototype.wrapResult=function(result){var state=this._reporterState;return state.options.partial?{result:this.isError(result)?null:result,errors:state.errors}:result};function ReporterError(path,msg){this.path=path,this.rethrow(msg)}inherits(ReporterError,Error),ReporterError.prototype.rethrow=function(msg){if(this.message=msg+` at: `+(this.path||`(shallow)`),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw Error(this.message)}catch(e$1){this.stack=e$1.stack}return this}},"./node_modules/asn1.js/lib/asn1/constants/der.js":function(module$1,exports$1,__webpack_require__){var constants=__webpack_require__(`./node_modules/asn1.js/lib/asn1/constants/index.js`);exports$1.tagClass={0:`universal`,1:`application`,2:`context`,3:`private`},exports$1.tagClassByName=constants._reverse(exports$1.tagClass),exports$1.tag={0:`end`,1:`bool`,2:`int`,3:`bitstr`,4:`octstr`,5:`null_`,6:`objid`,7:`objDesc`,8:`external`,9:`real`,10:`enum`,11:`embed`,12:`utf8str`,13:`relativeOid`,16:`seq`,17:`set`,18:`numstr`,19:`printstr`,20:`t61str`,21:`videostr`,22:`ia5str`,23:`utctime`,24:`gentime`,25:`graphstr`,26:`iso646str`,27:`genstr`,28:`unistr`,29:`charstr`,30:`bmpstr`},exports$1.tagByName=constants._reverse(exports$1.tag)},"./node_modules/asn1.js/lib/asn1/constants/index.js":function(module$1,exports$1,__webpack_require__){var constants=exports$1;constants._reverse=function(map){var res={};return Object.keys(map).forEach(function(key){(key|0)==key&&(key|=0);var value=map[key];res[value]=key}),res},constants.der=__webpack_require__(`./node_modules/asn1.js/lib/asn1/constants/der.js`)},"./node_modules/asn1.js/lib/asn1/decoders/der.js":function(module$1,exports$1,__webpack_require__){var inherits=__webpack_require__(`./node_modules/inherits/inherits_browser.js`),asn1=__webpack_require__(`./node_modules/asn1.js/lib/asn1.js`),base=asn1.base,bignum=asn1.bignum,der=asn1.constants.der;function DERDecoder(entity){this.enc=`der`,this.name=entity.name,this.entity=entity,this.tree=new DERNode,this.tree._init(entity.body)}module$1.exports=DERDecoder,DERDecoder.prototype.decode=function(data,options){return data instanceof base.DecoderBuffer||(data=new base.DecoderBuffer(data,options)),this.tree._decode(data,options)};function DERNode(parent){base.Node.call(this,`der`,parent)}inherits(DERNode,base.Node),DERNode.prototype._peekTag=function(buffer,tag,any){if(buffer.isEmpty())return!1;var state=buffer.save(),decodedTag=derDecodeTag(buffer,`Failed to peek tag: "`+tag+`"`);return buffer.isError(decodedTag)?decodedTag:(buffer.restore(state),decodedTag.tag===tag||decodedTag.tagStr===tag||decodedTag.tagStr+`of`===tag||any)},DERNode.prototype._decodeTag=function(buffer,tag,any){var decodedTag=derDecodeTag(buffer,`Failed to decode tag of "`+tag+`"`);if(buffer.isError(decodedTag))return decodedTag;var len=derDecodeLen(buffer,decodedTag.primitive,`Failed to get length of "`+tag+`"`);if(buffer.isError(len))return len;if(!any&&decodedTag.tag!==tag&&decodedTag.tagStr!==tag&&decodedTag.tagStr+`of`!==tag)return buffer.error(`Failed to match tag: "`+tag+`"`);if(decodedTag.primitive||len!==null)return buffer.skip(len,`Failed to match body of: "`+tag+`"`);var state=buffer.save(),res=this._skipUntilEnd(buffer,`Failed to skip indefinite length body: "`+this.tag+`"`);return buffer.isError(res)?res:(len=buffer.offset-state.offset,buffer.restore(state),buffer.skip(len,`Failed to match body of: "`+tag+`"`))},DERNode.prototype._skipUntilEnd=function(buffer,fail){for(;;){var tag=derDecodeTag(buffer,fail);if(buffer.isError(tag))return tag;var len=derDecodeLen(buffer,tag.primitive,fail);if(buffer.isError(len))return len;var res=tag.primitive||len!==null?buffer.skip(len):this._skipUntilEnd(buffer,fail);if(buffer.isError(res))return res;if(tag.tagStr===`end`)break}},DERNode.prototype._decodeList=function(buffer,tag,decoder,options){for(var result=[];!buffer.isEmpty();){var possibleEnd=this._peekTag(buffer,`end`);if(buffer.isError(possibleEnd))return possibleEnd;var res=decoder.decode(buffer,`der`,options);if(buffer.isError(res)&&possibleEnd)break;result.push(res)}return result},DERNode.prototype._decodeStr=function(buffer,tag){if(tag===`bitstr`){var unused=buffer.readUInt8();return buffer.isError(unused)?unused:{unused,data:buffer.raw()}}else if(tag===`bmpstr`){var raw=buffer.raw();if(raw.length%2==1)return buffer.error(`Decoding of string type: bmpstr length mismatch`);for(var str=``,i$1=0;i$1<raw.length/2;i$1++)str+=String.fromCharCode(raw.readUInt16BE(i$1*2));return str}else if(tag===`numstr`){var numstr=buffer.raw().toString(`ascii`);return this._isNumstr(numstr)?numstr:buffer.error(`Decoding of string type: numstr unsupported characters`)}else if(tag===`octstr`)return buffer.raw();else if(tag===`objDesc`)return buffer.raw();else if(tag===`printstr`){var printstr=buffer.raw().toString(`ascii`);return this._isPrintstr(printstr)?printstr:buffer.error(`Decoding of string type: printstr unsupported characters`)}else if(/str$/.test(tag))return buffer.raw().toString();else return buffer.error(`Decoding of string type: `+tag+` unsupported`)},DERNode.prototype._decodeObjid=function(buffer,values,relative){for(var result,identifiers=[],ident=0;!buffer.isEmpty();){var subident=buffer.readUInt8();ident<<=7,ident|=subident&127,subident&128||(identifiers.push(ident),ident=0)}subident&128&&identifiers.push(ident);var first=identifiers[0]/40|0,second=identifiers[0]%40;if(result=relative?identifiers:[first,second].concat(identifiers.slice(1)),values){var tmp=values[result.join(` `)];tmp===void 0&&(tmp=values[result.join(`.`)]),tmp!==void 0&&(result=tmp)}return result},DERNode.prototype._decodeTime=function(buffer,tag){var str=buffer.raw().toString();if(tag===`gentime`)var year=str.slice(0,4)|0,mon=str.slice(4,6)|0,day=str.slice(6,8)|0,hour=str.slice(8,10)|0,min=str.slice(10,12)|0,sec=str.slice(12,14)|0;else if(tag===`utctime`){var year=str.slice(0,2)|0,mon=str.slice(2,4)|0,day=str.slice(4,6)|0,hour=str.slice(6,8)|0,min=str.slice(8,10)|0,sec=str.slice(10,12)|0;year=year<70?2e3+year:1900+year}else return buffer.error(`Decoding `+tag+` time is not supported yet`);return Date.UTC(year,mon-1,day,hour,min,sec,0)},DERNode.prototype._decodeNull=function(buffer){return null},DERNode.prototype._decodeBool=function(buffer){var res=buffer.readUInt8();return buffer.isError(res)?res:res!==0},DERNode.prototype._decodeInt=function(buffer,values){var res=new bignum(buffer.raw());return values&&(res=values[res.toString(10)]||res),res},DERNode.prototype._use=function(entity,obj){return typeof entity==`function`&&(entity=entity(obj)),entity._getDecoder(`der`).tree};function derDecodeTag(buf,fail){var tag=buf.readUInt8(fail);if(buf.isError(tag))return tag;var cls=der.tagClass[tag>>6],primitive=(tag&32)==0;if((tag&31)==31){var oct=tag;for(tag=0;(oct&128)==128;){if(oct=buf.readUInt8(fail),buf.isError(oct))return oct;tag<<=7,tag|=oct&127}}else tag&=31;var tagStr=der.tag[tag];return{cls,primitive,tag,tagStr}}function derDecodeLen(buf,primitive,fail){var len=buf.readUInt8(fail);if(buf.isError(len))return len;if(!primitive&&len===128)return null;if(!(len&128))return len;var num=len&127;if(num>4)return buf.error(`length octect is too long`);len=0;for(var i$1=0;i$1<num;i$1++){len<<=8;var j=buf.readUInt8(fail);if(buf.isError(j))return j;len|=j}return len}},"./node_modules/asn1.js/lib/asn1/decoders/index.js":function(module$1,exports$1,__webpack_require__){var decoders=exports$1;decoders.der=__webpack_require__(`./node_modules/asn1.js/lib/asn1/decoders/der.js`),decoders.pem=__webpack_require__(`./node_modules/asn1.js/lib/asn1/decoders/pem.js`)},"./node_modules/asn1.js/lib/asn1/decoders/pem.js":function(module$1,exports$1,__webpack_require__){var inherits=__webpack_require__(`./node_modules/inherits/inherits_browser.js`),Buffer=__webpack_require__(`./node_modules/buffer/index.js`).Buffer,DERDecoder=__webpack_require__(`./node_modules/asn1.js/lib/asn1/decoders/der.js`);function PEMDecoder(entity){DERDecoder.call(this,entity),this.enc=`pem`}inherits(PEMDecoder,DERDecoder),module$1.exports=PEMDecoder,PEMDecoder.prototype.decode=function(data,options){for(var lines=data.toString().split(/[\r\n]+/g),label=options.label.toUpperCase(),re=/^-----(BEGIN|END) ([^-]+)-----$/,start=-1,end=-1,i$1=0;i$1<lines.length;i$1++){var match=lines[i$1].match(re);if(match!==null&&match[2]===label)if(start===-1){if(match[1]!==`BEGIN`)break;start=i$1}else{if(match[1]!==`END`)break;end=i$1;break}}if(start===-1||end===-1)throw Error(`PEM section not found for: `+label);var base64=lines.slice(start+1,end).join(``);base64.replace(/[^a-z0-9\+\/=]+/gi,``);var input=new Buffer(base64,`base64`);return DERDecoder.prototype.decode.call(this,input,options)}},"./node_modules/asn1.js/lib/asn1/encoders/der.js":function(module$1,exports$1,__webpack_require__){var inherits=__webpack_require__(`./node_modules/inherits/inherits_browser.js`),Buffer=__webpack_require__(`./node_modules/buffer/index.js`).Buffer,asn1=__webpack_require__(`./node_modules/asn1.js/lib/asn1.js`),base=asn1.base,der=asn1.constants.der;function DEREncoder(entity){this.enc=`der`,this.name=entity.name,this.entity=entity,this.tree=new DERNode,this.tree._init(entity.body)}module$1.exports=DEREncoder,DEREncoder.prototype.encode=function(data,reporter){return this.tree._encode(data,reporter).join()};function DERNode(parent){base.Node.call(this,`der`,parent)}inherits(DERNode,base.Node),DERNode.prototype._encodeComposite=function(tag,primitive,cls,content){var encodedTag=encodeTag(tag,primitive,cls,this.reporter);if(content.length<128){var header=new Buffer(2);return header[0]=encodedTag,header[1]=content.length,this._createEncoderBuffer([header,content])}for(var lenOctets=1,i$1=content.length;i$1>=256;i$1>>=8)lenOctets++;var header=new Buffer(2+lenOctets);header[0]=encodedTag,header[1]=128|lenOctets;for(var i$1=1+lenOctets,j=content.length;j>0;i$1--,j>>=8)header[i$1]=j&255;return this._createEncoderBuffer([header,content])},DERNode.prototype._encodeStr=function(str,tag){if(tag===`bitstr`)return this._createEncoderBuffer([str.unused|0,str.data]);if(tag===`bmpstr`){for(var buf=new Buffer(str.length*2),i$1=0;i$1<str.length;i$1++)buf.writeUInt16BE(str.charCodeAt(i$1),i$1*2);return this._createEncoderBuffer(buf)}else if(tag===`numstr`)return this._isNumstr(str)?this._createEncoderBuffer(str):this.reporter.error(`Encoding of string type: numstr supports only digits and space`);else if(tag===`printstr`)return this._isPrintstr(str)?this._createEncoderBuffer(str):this.reporter.error(`Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark`);else if(/str$/.test(tag))return this._createEncoderBuffer(str);else if(tag===`objDesc`)r